vendor.js 972 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, 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__876EB51",
  754. appName: "uni_applet",
  755. appVersion: "1.0.0",
  756. appVersionCode: "100",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "3.8.3",
  759. uniRuntimeVersion: "3.8.3",
  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__876EB51",
  853. appName: "uni_applet",
  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":"uni_applet","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. var eventChannelStack = [];
  1925. function getEventChannel(id) {
  1926. if (id) {
  1927. var eventChannel = eventChannels[id];
  1928. delete eventChannels[id];
  1929. return eventChannel;
  1930. }
  1931. return eventChannelStack.shift();
  1932. }
  1933. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1934. function initEventChannel() {
  1935. _vue.default.prototype.getOpenerEventChannel = function () {
  1936. // 微信小程序使用自身getOpenerEventChannel
  1937. {
  1938. return this.$scope.getOpenerEventChannel();
  1939. }
  1940. };
  1941. var callHook = _vue.default.prototype.__call_hook;
  1942. _vue.default.prototype.__call_hook = function (hook, args) {
  1943. if (hook === 'onLoad' && args && args.__id__) {
  1944. this.__eventChannel__ = getEventChannel(args.__id__);
  1945. delete args.__id__;
  1946. }
  1947. return callHook.call(this, hook, args);
  1948. };
  1949. }
  1950. function initScopedSlotsParams() {
  1951. var center = {};
  1952. var parents = {};
  1953. function currentId(fn) {
  1954. var vueIds = this.$options.propsData.vueId;
  1955. if (vueIds) {
  1956. var vueId = vueIds.split(',')[0];
  1957. fn(vueId);
  1958. }
  1959. }
  1960. _vue.default.prototype.$hasSSP = function (vueId) {
  1961. var slot = center[vueId];
  1962. if (!slot) {
  1963. parents[vueId] = this;
  1964. this.$on('hook:destroyed', function () {
  1965. delete parents[vueId];
  1966. });
  1967. }
  1968. return slot;
  1969. };
  1970. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1971. var slot = center[vueId];
  1972. if (slot) {
  1973. var params = slot[name] || [];
  1974. if (needAll) {
  1975. return params;
  1976. }
  1977. return params[0];
  1978. }
  1979. };
  1980. _vue.default.prototype.$setSSP = function (name, value) {
  1981. var index = 0;
  1982. currentId.call(this, function (vueId) {
  1983. var slot = center[vueId];
  1984. var params = slot[name] = slot[name] || [];
  1985. params.push(value);
  1986. index = params.length - 1;
  1987. });
  1988. return index;
  1989. };
  1990. _vue.default.prototype.$initSSP = function () {
  1991. currentId.call(this, function (vueId) {
  1992. center[vueId] = {};
  1993. });
  1994. };
  1995. _vue.default.prototype.$callSSP = function () {
  1996. currentId.call(this, function (vueId) {
  1997. if (parents[vueId]) {
  1998. parents[vueId].$forceUpdate();
  1999. }
  2000. });
  2001. };
  2002. _vue.default.mixin({
  2003. destroyed: function destroyed() {
  2004. var propsData = this.$options.propsData;
  2005. var vueId = propsData && propsData.vueId;
  2006. if (vueId) {
  2007. delete center[vueId];
  2008. delete parents[vueId];
  2009. }
  2010. }
  2011. });
  2012. }
  2013. function parseBaseApp(vm, _ref4) {
  2014. var mocks = _ref4.mocks,
  2015. initRefs = _ref4.initRefs;
  2016. initEventChannel();
  2017. {
  2018. initScopedSlotsParams();
  2019. }
  2020. if (vm.$options.store) {
  2021. _vue.default.prototype.$store = vm.$options.store;
  2022. }
  2023. uniIdMixin(_vue.default);
  2024. _vue.default.prototype.mpHost = "mp-weixin";
  2025. _vue.default.mixin({
  2026. beforeCreate: function beforeCreate() {
  2027. if (!this.$options.mpType) {
  2028. return;
  2029. }
  2030. this.mpType = this.$options.mpType;
  2031. this.$mp = (0, _defineProperty2.default)({
  2032. data: {}
  2033. }, this.mpType, this.$options.mpInstance);
  2034. this.$scope = this.$options.mpInstance;
  2035. delete this.$options.mpType;
  2036. delete this.$options.mpInstance;
  2037. if (this.mpType === 'page' && typeof getApp === 'function') {
  2038. // hack vue-i18n
  2039. var app = getApp();
  2040. if (app.$vm && app.$vm.$i18n) {
  2041. this._i18n = app.$vm.$i18n;
  2042. }
  2043. }
  2044. if (this.mpType !== 'app') {
  2045. initRefs(this);
  2046. initMocks(this, mocks);
  2047. }
  2048. }
  2049. });
  2050. var appOptions = {
  2051. onLaunch: function onLaunch(args) {
  2052. if (this.$vm) {
  2053. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2054. return;
  2055. }
  2056. {
  2057. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2058. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2059. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2060. }
  2061. }
  2062. this.$vm = vm;
  2063. this.$vm.$mp = {
  2064. app: this
  2065. };
  2066. this.$vm.$scope = this;
  2067. // vm 上也挂载 globalData
  2068. this.$vm.globalData = this.globalData;
  2069. this.$vm._isMounted = true;
  2070. this.$vm.__call_hook('mounted', args);
  2071. this.$vm.__call_hook('onLaunch', args);
  2072. }
  2073. };
  2074. // 兼容旧版本 globalData
  2075. appOptions.globalData = vm.$options.globalData || {};
  2076. // 将 methods 中的方法挂在 getApp() 中
  2077. var methods = vm.$options.methods;
  2078. if (methods) {
  2079. Object.keys(methods).forEach(function (name) {
  2080. appOptions[name] = methods[name];
  2081. });
  2082. }
  2083. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2084. initHooks(appOptions, hooks);
  2085. initUnknownHooks(appOptions, vm.$options);
  2086. return appOptions;
  2087. }
  2088. function parseApp(vm) {
  2089. return parseBaseApp(vm, {
  2090. mocks: mocks,
  2091. initRefs: initRefs
  2092. });
  2093. }
  2094. function createApp(vm) {
  2095. App(parseApp(vm));
  2096. return vm;
  2097. }
  2098. var encodeReserveRE = /[!'()*]/g;
  2099. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2100. return '%' + c.charCodeAt(0).toString(16);
  2101. };
  2102. var commaRE = /%2C/g;
  2103. // fixed encodeURIComponent which is more conformant to RFC3986:
  2104. // - escapes [!'()*]
  2105. // - preserve commas
  2106. var encode = function encode(str) {
  2107. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2108. };
  2109. function stringifyQuery(obj) {
  2110. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2111. var res = obj ? Object.keys(obj).map(function (key) {
  2112. var val = obj[key];
  2113. if (val === undefined) {
  2114. return '';
  2115. }
  2116. if (val === null) {
  2117. return encodeStr(key);
  2118. }
  2119. if (Array.isArray(val)) {
  2120. var result = [];
  2121. val.forEach(function (val2) {
  2122. if (val2 === undefined) {
  2123. return;
  2124. }
  2125. if (val2 === null) {
  2126. result.push(encodeStr(key));
  2127. } else {
  2128. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2129. }
  2130. });
  2131. return result.join('&');
  2132. }
  2133. return encodeStr(key) + '=' + encodeStr(val);
  2134. }).filter(function (x) {
  2135. return x.length > 0;
  2136. }).join('&') : null;
  2137. return res ? "?".concat(res) : '';
  2138. }
  2139. function parseBaseComponent(vueComponentOptions) {
  2140. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2141. isPage = _ref5.isPage,
  2142. initRelation = _ref5.initRelation;
  2143. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2144. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2145. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2146. VueComponent = _initVueComponent2[0],
  2147. vueOptions = _initVueComponent2[1];
  2148. var options = _objectSpread({
  2149. multipleSlots: true,
  2150. // styleIsolation: 'apply-shared',
  2151. addGlobalClass: true
  2152. }, vueOptions.options || {});
  2153. {
  2154. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2155. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2156. Object.assign(options, vueOptions['mp-weixin'].options);
  2157. }
  2158. }
  2159. var componentOptions = {
  2160. options: options,
  2161. data: initData(vueOptions, _vue.default.prototype),
  2162. behaviors: initBehaviors(vueOptions, initBehavior),
  2163. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2164. lifetimes: {
  2165. attached: function attached() {
  2166. var properties = this.properties;
  2167. var options = {
  2168. mpType: isPage.call(this) ? 'page' : 'component',
  2169. mpInstance: this,
  2170. propsData: properties
  2171. };
  2172. initVueIds(properties.vueId, this);
  2173. // 处理父子关系
  2174. initRelation.call(this, {
  2175. vuePid: this._$vuePid,
  2176. vueOptions: options
  2177. });
  2178. // 初始化 vue 实例
  2179. this.$vm = new VueComponent(options);
  2180. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2181. initSlots(this.$vm, properties.vueSlots);
  2182. // 触发首次 setData
  2183. this.$vm.$mount();
  2184. },
  2185. ready: function ready() {
  2186. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2187. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2188. if (this.$vm) {
  2189. this.$vm._isMounted = true;
  2190. this.$vm.__call_hook('mounted');
  2191. this.$vm.__call_hook('onReady');
  2192. }
  2193. },
  2194. detached: function detached() {
  2195. this.$vm && this.$vm.$destroy();
  2196. }
  2197. },
  2198. pageLifetimes: {
  2199. show: function show(args) {
  2200. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2201. },
  2202. hide: function hide() {
  2203. this.$vm && this.$vm.__call_hook('onPageHide');
  2204. },
  2205. resize: function resize(size) {
  2206. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2207. }
  2208. },
  2209. methods: {
  2210. __l: handleLink,
  2211. __e: handleEvent
  2212. }
  2213. };
  2214. // externalClasses
  2215. if (vueOptions.externalClasses) {
  2216. componentOptions.externalClasses = vueOptions.externalClasses;
  2217. }
  2218. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2219. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2220. componentOptions.methods[callMethod] = function (args) {
  2221. return this.$vm[callMethod](args);
  2222. };
  2223. });
  2224. }
  2225. if (needVueOptions) {
  2226. return [componentOptions, vueOptions, VueComponent];
  2227. }
  2228. if (isPage) {
  2229. return componentOptions;
  2230. }
  2231. return [componentOptions, VueComponent];
  2232. }
  2233. function parseComponent(vueComponentOptions, needVueOptions) {
  2234. return parseBaseComponent(vueComponentOptions, {
  2235. isPage: isPage,
  2236. initRelation: initRelation
  2237. }, needVueOptions);
  2238. }
  2239. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2240. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2241. function parseBasePage(vuePageOptions) {
  2242. var _parseComponent = parseComponent(vuePageOptions, true),
  2243. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2244. pageOptions = _parseComponent2[0],
  2245. vueOptions = _parseComponent2[1];
  2246. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2247. pageOptions.methods.onLoad = function (query) {
  2248. this.options = query;
  2249. var copyQuery = Object.assign({}, query);
  2250. delete copyQuery.__id__;
  2251. this.$page = {
  2252. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2253. };
  2254. this.$vm.$mp.query = query; // 兼容 mpvue
  2255. this.$vm.__call_hook('onLoad', query);
  2256. };
  2257. {
  2258. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2259. }
  2260. {
  2261. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2262. }
  2263. return pageOptions;
  2264. }
  2265. function parsePage(vuePageOptions) {
  2266. return parseBasePage(vuePageOptions);
  2267. }
  2268. function createPage(vuePageOptions) {
  2269. {
  2270. return Component(parsePage(vuePageOptions));
  2271. }
  2272. }
  2273. function createComponent(vueOptions) {
  2274. {
  2275. return Component(parseComponent(vueOptions));
  2276. }
  2277. }
  2278. function createSubpackageApp(vm) {
  2279. var appOptions = parseApp(vm);
  2280. var app = getApp({
  2281. allowDefault: true
  2282. });
  2283. vm.$scope = app;
  2284. var globalData = app.globalData;
  2285. if (globalData) {
  2286. Object.keys(appOptions.globalData).forEach(function (name) {
  2287. if (!hasOwn(globalData, name)) {
  2288. globalData[name] = appOptions.globalData[name];
  2289. }
  2290. });
  2291. }
  2292. Object.keys(appOptions).forEach(function (name) {
  2293. if (!hasOwn(app, name)) {
  2294. app[name] = appOptions[name];
  2295. }
  2296. });
  2297. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2298. wx.onAppShow(function () {
  2299. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2300. args[_key5] = arguments[_key5];
  2301. }
  2302. vm.__call_hook('onShow', args);
  2303. });
  2304. }
  2305. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2306. wx.onAppHide(function () {
  2307. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2308. args[_key6] = arguments[_key6];
  2309. }
  2310. vm.__call_hook('onHide', args);
  2311. });
  2312. }
  2313. if (isFn(appOptions.onLaunch)) {
  2314. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2315. vm.__call_hook('onLaunch', args);
  2316. }
  2317. return vm;
  2318. }
  2319. function createPlugin(vm) {
  2320. var appOptions = parseApp(vm);
  2321. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2322. wx.onAppShow(function () {
  2323. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2324. args[_key7] = arguments[_key7];
  2325. }
  2326. vm.__call_hook('onShow', args);
  2327. });
  2328. }
  2329. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2330. wx.onAppHide(function () {
  2331. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2332. args[_key8] = arguments[_key8];
  2333. }
  2334. vm.__call_hook('onHide', args);
  2335. });
  2336. }
  2337. if (isFn(appOptions.onLaunch)) {
  2338. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2339. vm.__call_hook('onLaunch', args);
  2340. }
  2341. return vm;
  2342. }
  2343. todos.forEach(function (todoApi) {
  2344. protocols[todoApi] = false;
  2345. });
  2346. canIUses.forEach(function (canIUseApi) {
  2347. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2348. if (!wx.canIUse(apiName)) {
  2349. protocols[canIUseApi] = false;
  2350. }
  2351. });
  2352. var uni = {};
  2353. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2354. uni = new Proxy({}, {
  2355. get: function get(target, name) {
  2356. if (hasOwn(target, name)) {
  2357. return target[name];
  2358. }
  2359. if (baseApi[name]) {
  2360. return baseApi[name];
  2361. }
  2362. if (api[name]) {
  2363. return promisify(name, api[name]);
  2364. }
  2365. {
  2366. if (extraApi[name]) {
  2367. return promisify(name, extraApi[name]);
  2368. }
  2369. if (todoApis[name]) {
  2370. return promisify(name, todoApis[name]);
  2371. }
  2372. }
  2373. if (eventApi[name]) {
  2374. return eventApi[name];
  2375. }
  2376. return promisify(name, wrapper(name, wx[name]));
  2377. },
  2378. set: function set(target, name, value) {
  2379. target[name] = value;
  2380. return true;
  2381. }
  2382. });
  2383. } else {
  2384. Object.keys(baseApi).forEach(function (name) {
  2385. uni[name] = baseApi[name];
  2386. });
  2387. {
  2388. Object.keys(todoApis).forEach(function (name) {
  2389. uni[name] = promisify(name, todoApis[name]);
  2390. });
  2391. Object.keys(extraApi).forEach(function (name) {
  2392. uni[name] = promisify(name, todoApis[name]);
  2393. });
  2394. }
  2395. Object.keys(eventApi).forEach(function (name) {
  2396. uni[name] = eventApi[name];
  2397. });
  2398. Object.keys(api).forEach(function (name) {
  2399. uni[name] = promisify(name, api[name]);
  2400. });
  2401. Object.keys(wx).forEach(function (name) {
  2402. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2403. uni[name] = promisify(name, wrapper(name, wx[name]));
  2404. }
  2405. });
  2406. }
  2407. wx.createApp = createApp;
  2408. wx.createPage = createPage;
  2409. wx.createComponent = createComponent;
  2410. wx.createSubpackageApp = createSubpackageApp;
  2411. wx.createPlugin = createPlugin;
  2412. var uni$1 = uni;
  2413. var _default = uni$1;
  2414. exports.default = _default;
  2415. /* 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)))
  2416. /***/ }),
  2417. /* 3 */
  2418. /*!***********************************!*\
  2419. !*** (webpack)/buildin/global.js ***!
  2420. \***********************************/
  2421. /*! no static exports found */
  2422. /***/ (function(module, exports) {
  2423. var g;
  2424. // This works in non-strict mode
  2425. g = (function() {
  2426. return this;
  2427. })();
  2428. try {
  2429. // This works if eval is allowed (see CSP)
  2430. g = g || new Function("return this")();
  2431. } catch (e) {
  2432. // This works if the window reference is available
  2433. if (typeof window === "object") g = window;
  2434. }
  2435. // g can still be undefined, but nothing to do about it...
  2436. // We return undefined, instead of nothing here, so it's
  2437. // easier to handle this case. if(!global) { ...}
  2438. module.exports = g;
  2439. /***/ }),
  2440. /* 4 */
  2441. /*!**********************************************************************!*\
  2442. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2443. \**********************************************************************/
  2444. /*! no static exports found */
  2445. /***/ (function(module, exports) {
  2446. function _interopRequireDefault(obj) {
  2447. return obj && obj.__esModule ? obj : {
  2448. "default": obj
  2449. };
  2450. }
  2451. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2452. /***/ }),
  2453. /* 5 */
  2454. /*!**************************************************************!*\
  2455. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2456. \**************************************************************/
  2457. /*! no static exports found */
  2458. /***/ (function(module, exports, __webpack_require__) {
  2459. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2460. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2461. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2462. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2463. function _slicedToArray(arr, i) {
  2464. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2465. }
  2466. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2467. /***/ }),
  2468. /* 6 */
  2469. /*!***************************************************************!*\
  2470. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2471. \***************************************************************/
  2472. /*! no static exports found */
  2473. /***/ (function(module, exports) {
  2474. function _arrayWithHoles(arr) {
  2475. if (Array.isArray(arr)) return arr;
  2476. }
  2477. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2478. /***/ }),
  2479. /* 7 */
  2480. /*!*********************************************************************!*\
  2481. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2482. \*********************************************************************/
  2483. /*! no static exports found */
  2484. /***/ (function(module, exports) {
  2485. function _iterableToArrayLimit(arr, i) {
  2486. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2487. if (null != _i) {
  2488. var _s,
  2489. _e,
  2490. _x,
  2491. _r,
  2492. _arr = [],
  2493. _n = !0,
  2494. _d = !1;
  2495. try {
  2496. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2497. if (Object(_i) !== _i) return;
  2498. _n = !1;
  2499. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2500. ;
  2501. }
  2502. } catch (err) {
  2503. _d = !0, _e = err;
  2504. } finally {
  2505. try {
  2506. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2507. } finally {
  2508. if (_d) throw _e;
  2509. }
  2510. }
  2511. return _arr;
  2512. }
  2513. }
  2514. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2515. /***/ }),
  2516. /* 8 */
  2517. /*!***************************************************************************!*\
  2518. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2519. \***************************************************************************/
  2520. /*! no static exports found */
  2521. /***/ (function(module, exports, __webpack_require__) {
  2522. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2523. function _unsupportedIterableToArray(o, minLen) {
  2524. if (!o) return;
  2525. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2526. var n = Object.prototype.toString.call(o).slice(8, -1);
  2527. if (n === "Object" && o.constructor) n = o.constructor.name;
  2528. if (n === "Map" || n === "Set") return Array.from(o);
  2529. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2530. }
  2531. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2532. /***/ }),
  2533. /* 9 */
  2534. /*!*****************************************************************!*\
  2535. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2536. \*****************************************************************/
  2537. /*! no static exports found */
  2538. /***/ (function(module, exports) {
  2539. function _arrayLikeToArray(arr, len) {
  2540. if (len == null || len > arr.length) len = arr.length;
  2541. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2542. arr2[i] = arr[i];
  2543. }
  2544. return arr2;
  2545. }
  2546. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2547. /***/ }),
  2548. /* 10 */
  2549. /*!****************************************************************!*\
  2550. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2551. \****************************************************************/
  2552. /*! no static exports found */
  2553. /***/ (function(module, exports) {
  2554. function _nonIterableRest() {
  2555. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2556. }
  2557. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2558. /***/ }),
  2559. /* 11 */
  2560. /*!***************************************************************!*\
  2561. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2562. \***************************************************************/
  2563. /*! no static exports found */
  2564. /***/ (function(module, exports, __webpack_require__) {
  2565. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2566. function _defineProperty(obj, key, value) {
  2567. key = toPropertyKey(key);
  2568. if (key in obj) {
  2569. Object.defineProperty(obj, key, {
  2570. value: value,
  2571. enumerable: true,
  2572. configurable: true,
  2573. writable: true
  2574. });
  2575. } else {
  2576. obj[key] = value;
  2577. }
  2578. return obj;
  2579. }
  2580. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2581. /***/ }),
  2582. /* 12 */
  2583. /*!**************************************************************!*\
  2584. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2585. \**************************************************************/
  2586. /*! no static exports found */
  2587. /***/ (function(module, exports, __webpack_require__) {
  2588. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2589. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2590. function _toPropertyKey(arg) {
  2591. var key = toPrimitive(arg, "string");
  2592. return _typeof(key) === "symbol" ? key : String(key);
  2593. }
  2594. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2595. /***/ }),
  2596. /* 13 */
  2597. /*!*******************************************************!*\
  2598. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2599. \*******************************************************/
  2600. /*! no static exports found */
  2601. /***/ (function(module, exports) {
  2602. function _typeof(obj) {
  2603. "@babel/helpers - typeof";
  2604. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2605. return typeof obj;
  2606. } : function (obj) {
  2607. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2608. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2609. }
  2610. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2611. /***/ }),
  2612. /* 14 */
  2613. /*!************************************************************!*\
  2614. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2615. \************************************************************/
  2616. /*! no static exports found */
  2617. /***/ (function(module, exports, __webpack_require__) {
  2618. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2619. function _toPrimitive(input, hint) {
  2620. if (_typeof(input) !== "object" || input === null) return input;
  2621. var prim = input[Symbol.toPrimitive];
  2622. if (prim !== undefined) {
  2623. var res = prim.call(input, hint || "default");
  2624. if (_typeof(res) !== "object") return res;
  2625. throw new TypeError("@@toPrimitive must return a primitive value.");
  2626. }
  2627. return (hint === "string" ? String : Number)(input);
  2628. }
  2629. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2630. /***/ }),
  2631. /* 15 */
  2632. /*!**********************************************************!*\
  2633. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2634. \**********************************************************/
  2635. /*! no static exports found */
  2636. /***/ (function(module, exports, __webpack_require__) {
  2637. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2638. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2639. function _construct(Parent, args, Class) {
  2640. if (isNativeReflectConstruct()) {
  2641. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2642. } else {
  2643. module.exports = _construct = function _construct(Parent, args, Class) {
  2644. var a = [null];
  2645. a.push.apply(a, args);
  2646. var Constructor = Function.bind.apply(Parent, a);
  2647. var instance = new Constructor();
  2648. if (Class) setPrototypeOf(instance, Class.prototype);
  2649. return instance;
  2650. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2651. }
  2652. return _construct.apply(null, arguments);
  2653. }
  2654. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2655. /***/ }),
  2656. /* 16 */
  2657. /*!***************************************************************!*\
  2658. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2659. \***************************************************************/
  2660. /*! no static exports found */
  2661. /***/ (function(module, exports) {
  2662. function _setPrototypeOf(o, p) {
  2663. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2664. o.__proto__ = p;
  2665. return o;
  2666. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2667. return _setPrototypeOf(o, p);
  2668. }
  2669. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2670. /***/ }),
  2671. /* 17 */
  2672. /*!*************************************************************************!*\
  2673. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2674. \*************************************************************************/
  2675. /*! no static exports found */
  2676. /***/ (function(module, exports) {
  2677. function _isNativeReflectConstruct() {
  2678. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2679. if (Reflect.construct.sham) return false;
  2680. if (typeof Proxy === "function") return true;
  2681. try {
  2682. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2683. return true;
  2684. } catch (e) {
  2685. return false;
  2686. }
  2687. }
  2688. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2689. /***/ }),
  2690. /* 18 */
  2691. /*!******************************************************************!*\
  2692. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2693. \******************************************************************/
  2694. /*! no static exports found */
  2695. /***/ (function(module, exports, __webpack_require__) {
  2696. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2697. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2698. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2699. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2700. function _toConsumableArray(arr) {
  2701. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2702. }
  2703. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2704. /***/ }),
  2705. /* 19 */
  2706. /*!******************************************************************!*\
  2707. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2708. \******************************************************************/
  2709. /*! no static exports found */
  2710. /***/ (function(module, exports, __webpack_require__) {
  2711. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2712. function _arrayWithoutHoles(arr) {
  2713. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2714. }
  2715. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2716. /***/ }),
  2717. /* 20 */
  2718. /*!****************************************************************!*\
  2719. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2720. \****************************************************************/
  2721. /*! no static exports found */
  2722. /***/ (function(module, exports) {
  2723. function _iterableToArray(iter) {
  2724. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2725. }
  2726. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2727. /***/ }),
  2728. /* 21 */
  2729. /*!******************************************************************!*\
  2730. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2731. \******************************************************************/
  2732. /*! no static exports found */
  2733. /***/ (function(module, exports) {
  2734. function _nonIterableSpread() {
  2735. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2736. }
  2737. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2738. /***/ }),
  2739. /* 22 */
  2740. /*!*************************************************************!*\
  2741. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2742. \*************************************************************/
  2743. /*! no static exports found */
  2744. /***/ (function(module, exports, __webpack_require__) {
  2745. "use strict";
  2746. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2747. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2748. Object.defineProperty(exports, "__esModule", {
  2749. value: true
  2750. });
  2751. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2752. exports.compileI18nJsonStr = compileI18nJsonStr;
  2753. exports.hasI18nJson = hasI18nJson;
  2754. exports.initVueI18n = initVueI18n;
  2755. exports.isI18nStr = isI18nStr;
  2756. exports.isString = void 0;
  2757. exports.normalizeLocale = normalizeLocale;
  2758. exports.parseI18nJson = parseI18nJson;
  2759. exports.resolveLocale = resolveLocale;
  2760. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2761. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2762. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2763. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2764. var isObject = function isObject(val) {
  2765. return val !== null && (0, _typeof2.default)(val) === 'object';
  2766. };
  2767. var defaultDelimiters = ['{', '}'];
  2768. var BaseFormatter = /*#__PURE__*/function () {
  2769. function BaseFormatter() {
  2770. (0, _classCallCheck2.default)(this, BaseFormatter);
  2771. this._caches = Object.create(null);
  2772. }
  2773. (0, _createClass2.default)(BaseFormatter, [{
  2774. key: "interpolate",
  2775. value: function interpolate(message, values) {
  2776. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2777. if (!values) {
  2778. return [message];
  2779. }
  2780. var tokens = this._caches[message];
  2781. if (!tokens) {
  2782. tokens = parse(message, delimiters);
  2783. this._caches[message] = tokens;
  2784. }
  2785. return compile(tokens, values);
  2786. }
  2787. }]);
  2788. return BaseFormatter;
  2789. }();
  2790. exports.Formatter = BaseFormatter;
  2791. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2792. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2793. function parse(format, _ref) {
  2794. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2795. startDelimiter = _ref2[0],
  2796. endDelimiter = _ref2[1];
  2797. var tokens = [];
  2798. var position = 0;
  2799. var text = '';
  2800. while (position < format.length) {
  2801. var char = format[position++];
  2802. if (char === startDelimiter) {
  2803. if (text) {
  2804. tokens.push({
  2805. type: 'text',
  2806. value: text
  2807. });
  2808. }
  2809. text = '';
  2810. var sub = '';
  2811. char = format[position++];
  2812. while (char !== undefined && char !== endDelimiter) {
  2813. sub += char;
  2814. char = format[position++];
  2815. }
  2816. var isClosed = char === endDelimiter;
  2817. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2818. tokens.push({
  2819. value: sub,
  2820. type: type
  2821. });
  2822. }
  2823. // else if (char === '%') {
  2824. // // when found rails i18n syntax, skip text capture
  2825. // if (format[position] !== '{') {
  2826. // text += char
  2827. // }
  2828. // }
  2829. else {
  2830. text += char;
  2831. }
  2832. }
  2833. text && tokens.push({
  2834. type: 'text',
  2835. value: text
  2836. });
  2837. return tokens;
  2838. }
  2839. function compile(tokens, values) {
  2840. var compiled = [];
  2841. var index = 0;
  2842. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2843. if (mode === 'unknown') {
  2844. return compiled;
  2845. }
  2846. while (index < tokens.length) {
  2847. var token = tokens[index];
  2848. switch (token.type) {
  2849. case 'text':
  2850. compiled.push(token.value);
  2851. break;
  2852. case 'list':
  2853. compiled.push(values[parseInt(token.value, 10)]);
  2854. break;
  2855. case 'named':
  2856. if (mode === 'named') {
  2857. compiled.push(values[token.value]);
  2858. } else {
  2859. if (true) {
  2860. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2861. }
  2862. }
  2863. break;
  2864. case 'unknown':
  2865. if (true) {
  2866. console.warn("Detect 'unknown' type of token!");
  2867. }
  2868. break;
  2869. }
  2870. index++;
  2871. }
  2872. return compiled;
  2873. }
  2874. var LOCALE_ZH_HANS = 'zh-Hans';
  2875. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2876. var LOCALE_ZH_HANT = 'zh-Hant';
  2877. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2878. var LOCALE_EN = 'en';
  2879. exports.LOCALE_EN = LOCALE_EN;
  2880. var LOCALE_FR = 'fr';
  2881. exports.LOCALE_FR = LOCALE_FR;
  2882. var LOCALE_ES = 'es';
  2883. exports.LOCALE_ES = LOCALE_ES;
  2884. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2885. var hasOwn = function hasOwn(val, key) {
  2886. return hasOwnProperty.call(val, key);
  2887. };
  2888. var defaultFormatter = new BaseFormatter();
  2889. function include(str, parts) {
  2890. return !!parts.find(function (part) {
  2891. return str.indexOf(part) !== -1;
  2892. });
  2893. }
  2894. function startsWith(str, parts) {
  2895. return parts.find(function (part) {
  2896. return str.indexOf(part) === 0;
  2897. });
  2898. }
  2899. function normalizeLocale(locale, messages) {
  2900. if (!locale) {
  2901. return;
  2902. }
  2903. locale = locale.trim().replace(/_/g, '-');
  2904. if (messages && messages[locale]) {
  2905. return locale;
  2906. }
  2907. locale = locale.toLowerCase();
  2908. if (locale === 'chinese') {
  2909. // 支付宝
  2910. return LOCALE_ZH_HANS;
  2911. }
  2912. if (locale.indexOf('zh') === 0) {
  2913. if (locale.indexOf('-hans') > -1) {
  2914. return LOCALE_ZH_HANS;
  2915. }
  2916. if (locale.indexOf('-hant') > -1) {
  2917. return LOCALE_ZH_HANT;
  2918. }
  2919. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2920. return LOCALE_ZH_HANT;
  2921. }
  2922. return LOCALE_ZH_HANS;
  2923. }
  2924. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2925. if (messages && Object.keys(messages).length > 0) {
  2926. locales = Object.keys(messages);
  2927. }
  2928. var lang = startsWith(locale, locales);
  2929. if (lang) {
  2930. return lang;
  2931. }
  2932. }
  2933. var I18n = /*#__PURE__*/function () {
  2934. function I18n(_ref3) {
  2935. var locale = _ref3.locale,
  2936. fallbackLocale = _ref3.fallbackLocale,
  2937. messages = _ref3.messages,
  2938. watcher = _ref3.watcher,
  2939. formater = _ref3.formater;
  2940. (0, _classCallCheck2.default)(this, I18n);
  2941. this.locale = LOCALE_EN;
  2942. this.fallbackLocale = LOCALE_EN;
  2943. this.message = {};
  2944. this.messages = {};
  2945. this.watchers = [];
  2946. if (fallbackLocale) {
  2947. this.fallbackLocale = fallbackLocale;
  2948. }
  2949. this.formater = formater || defaultFormatter;
  2950. this.messages = messages || {};
  2951. this.setLocale(locale || LOCALE_EN);
  2952. if (watcher) {
  2953. this.watchLocale(watcher);
  2954. }
  2955. }
  2956. (0, _createClass2.default)(I18n, [{
  2957. key: "setLocale",
  2958. value: function setLocale(locale) {
  2959. var _this = this;
  2960. var oldLocale = this.locale;
  2961. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2962. if (!this.messages[this.locale]) {
  2963. // 可能初始化时不存在
  2964. this.messages[this.locale] = {};
  2965. }
  2966. this.message = this.messages[this.locale];
  2967. // 仅发生变化时,通知
  2968. if (oldLocale !== this.locale) {
  2969. this.watchers.forEach(function (watcher) {
  2970. watcher(_this.locale, oldLocale);
  2971. });
  2972. }
  2973. }
  2974. }, {
  2975. key: "getLocale",
  2976. value: function getLocale() {
  2977. return this.locale;
  2978. }
  2979. }, {
  2980. key: "watchLocale",
  2981. value: function watchLocale(fn) {
  2982. var _this2 = this;
  2983. var index = this.watchers.push(fn) - 1;
  2984. return function () {
  2985. _this2.watchers.splice(index, 1);
  2986. };
  2987. }
  2988. }, {
  2989. key: "add",
  2990. value: function add(locale, message) {
  2991. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2992. var curMessages = this.messages[locale];
  2993. if (curMessages) {
  2994. if (override) {
  2995. Object.assign(curMessages, message);
  2996. } else {
  2997. Object.keys(message).forEach(function (key) {
  2998. if (!hasOwn(curMessages, key)) {
  2999. curMessages[key] = message[key];
  3000. }
  3001. });
  3002. }
  3003. } else {
  3004. this.messages[locale] = message;
  3005. }
  3006. }
  3007. }, {
  3008. key: "f",
  3009. value: function f(message, values, delimiters) {
  3010. return this.formater.interpolate(message, values, delimiters).join('');
  3011. }
  3012. }, {
  3013. key: "t",
  3014. value: function t(key, locale, values) {
  3015. var message = this.message;
  3016. if (typeof locale === 'string') {
  3017. locale = normalizeLocale(locale, this.messages);
  3018. locale && (message = this.messages[locale]);
  3019. } else {
  3020. values = locale;
  3021. }
  3022. if (!hasOwn(message, key)) {
  3023. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3024. return key;
  3025. }
  3026. return this.formater.interpolate(message[key], values).join('');
  3027. }
  3028. }]);
  3029. return I18n;
  3030. }();
  3031. exports.I18n = I18n;
  3032. function watchAppLocale(appVm, i18n) {
  3033. // 需要保证 watch 的触发在组件渲染之前
  3034. if (appVm.$watchLocale) {
  3035. // vue2
  3036. appVm.$watchLocale(function (newLocale) {
  3037. i18n.setLocale(newLocale);
  3038. });
  3039. } else {
  3040. appVm.$watch(function () {
  3041. return appVm.$locale;
  3042. }, function (newLocale) {
  3043. i18n.setLocale(newLocale);
  3044. });
  3045. }
  3046. }
  3047. function getDefaultLocale() {
  3048. if (typeof uni !== 'undefined' && uni.getLocale) {
  3049. return uni.getLocale();
  3050. }
  3051. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3052. if (typeof global !== 'undefined' && global.getLocale) {
  3053. return global.getLocale();
  3054. }
  3055. return LOCALE_EN;
  3056. }
  3057. function initVueI18n(locale) {
  3058. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3059. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3060. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3061. // 兼容旧版本入参
  3062. if (typeof locale !== 'string') {
  3063. var _ref4 = [messages, locale];
  3064. locale = _ref4[0];
  3065. messages = _ref4[1];
  3066. }
  3067. if (typeof locale !== 'string') {
  3068. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3069. locale = getDefaultLocale();
  3070. }
  3071. if (typeof fallbackLocale !== 'string') {
  3072. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3073. }
  3074. var i18n = new I18n({
  3075. locale: locale,
  3076. fallbackLocale: fallbackLocale,
  3077. messages: messages,
  3078. watcher: watcher
  3079. });
  3080. var _t = function t(key, values) {
  3081. if (typeof getApp !== 'function') {
  3082. // app view
  3083. /* eslint-disable no-func-assign */
  3084. _t = function t(key, values) {
  3085. return i18n.t(key, values);
  3086. };
  3087. } else {
  3088. var isWatchedAppLocale = false;
  3089. _t = function t(key, values) {
  3090. var appVm = getApp().$vm;
  3091. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3092. // options: {
  3093. // type: Array,
  3094. // default () {
  3095. // return [{
  3096. // icon: 'shop',
  3097. // text: t("uni-goods-nav.options.shop"),
  3098. // }, {
  3099. // icon: 'cart',
  3100. // text: t("uni-goods-nav.options.cart")
  3101. // }]
  3102. // }
  3103. // },
  3104. if (appVm) {
  3105. // 触发响应式
  3106. appVm.$locale;
  3107. if (!isWatchedAppLocale) {
  3108. isWatchedAppLocale = true;
  3109. watchAppLocale(appVm, i18n);
  3110. }
  3111. }
  3112. return i18n.t(key, values);
  3113. };
  3114. }
  3115. return _t(key, values);
  3116. };
  3117. return {
  3118. i18n: i18n,
  3119. f: function f(message, values, delimiters) {
  3120. return i18n.f(message, values, delimiters);
  3121. },
  3122. t: function t(key, values) {
  3123. return _t(key, values);
  3124. },
  3125. add: function add(locale, message) {
  3126. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3127. return i18n.add(locale, message, override);
  3128. },
  3129. watch: function watch(fn) {
  3130. return i18n.watchLocale(fn);
  3131. },
  3132. getLocale: function getLocale() {
  3133. return i18n.getLocale();
  3134. },
  3135. setLocale: function setLocale(newLocale) {
  3136. return i18n.setLocale(newLocale);
  3137. }
  3138. };
  3139. }
  3140. var isString = function isString(val) {
  3141. return typeof val === 'string';
  3142. };
  3143. exports.isString = isString;
  3144. var formater;
  3145. function hasI18nJson(jsonObj, delimiters) {
  3146. if (!formater) {
  3147. formater = new BaseFormatter();
  3148. }
  3149. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3150. var value = jsonObj[key];
  3151. if (isString(value)) {
  3152. if (isI18nStr(value, delimiters)) {
  3153. return true;
  3154. }
  3155. } else {
  3156. return hasI18nJson(value, delimiters);
  3157. }
  3158. });
  3159. }
  3160. function parseI18nJson(jsonObj, values, delimiters) {
  3161. if (!formater) {
  3162. formater = new BaseFormatter();
  3163. }
  3164. walkJsonObj(jsonObj, function (jsonObj, key) {
  3165. var value = jsonObj[key];
  3166. if (isString(value)) {
  3167. if (isI18nStr(value, delimiters)) {
  3168. jsonObj[key] = compileStr(value, values, delimiters);
  3169. }
  3170. } else {
  3171. parseI18nJson(value, values, delimiters);
  3172. }
  3173. });
  3174. return jsonObj;
  3175. }
  3176. function compileI18nJsonStr(jsonStr, _ref5) {
  3177. var locale = _ref5.locale,
  3178. locales = _ref5.locales,
  3179. delimiters = _ref5.delimiters;
  3180. if (!isI18nStr(jsonStr, delimiters)) {
  3181. return jsonStr;
  3182. }
  3183. if (!formater) {
  3184. formater = new BaseFormatter();
  3185. }
  3186. var localeValues = [];
  3187. Object.keys(locales).forEach(function (name) {
  3188. if (name !== locale) {
  3189. localeValues.push({
  3190. locale: name,
  3191. values: locales[name]
  3192. });
  3193. }
  3194. });
  3195. localeValues.unshift({
  3196. locale: locale,
  3197. values: locales[locale]
  3198. });
  3199. try {
  3200. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3201. } catch (e) {}
  3202. return jsonStr;
  3203. }
  3204. function isI18nStr(value, delimiters) {
  3205. return value.indexOf(delimiters[0]) > -1;
  3206. }
  3207. function compileStr(value, values, delimiters) {
  3208. return formater.interpolate(value, values, delimiters).join('');
  3209. }
  3210. function compileValue(jsonObj, key, localeValues, delimiters) {
  3211. var value = jsonObj[key];
  3212. if (isString(value)) {
  3213. // 存在国际化
  3214. if (isI18nStr(value, delimiters)) {
  3215. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3216. if (localeValues.length > 1) {
  3217. // 格式化国际化语言
  3218. var valueLocales = jsonObj[key + 'Locales'] = {};
  3219. localeValues.forEach(function (localValue) {
  3220. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3221. });
  3222. }
  3223. }
  3224. } else {
  3225. compileJsonObj(value, localeValues, delimiters);
  3226. }
  3227. }
  3228. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3229. walkJsonObj(jsonObj, function (jsonObj, key) {
  3230. compileValue(jsonObj, key, localeValues, delimiters);
  3231. });
  3232. return jsonObj;
  3233. }
  3234. function walkJsonObj(jsonObj, walk) {
  3235. if (Array.isArray(jsonObj)) {
  3236. for (var i = 0; i < jsonObj.length; i++) {
  3237. if (walk(jsonObj, i)) {
  3238. return true;
  3239. }
  3240. }
  3241. } else if (isObject(jsonObj)) {
  3242. for (var key in jsonObj) {
  3243. if (walk(jsonObj, key)) {
  3244. return true;
  3245. }
  3246. }
  3247. }
  3248. return false;
  3249. }
  3250. function resolveLocale(locales) {
  3251. return function (locale) {
  3252. if (!locale) {
  3253. return locale;
  3254. }
  3255. locale = normalizeLocale(locale) || locale;
  3256. return resolveLocaleChain(locale).find(function (locale) {
  3257. return locales.indexOf(locale) > -1;
  3258. });
  3259. };
  3260. }
  3261. function resolveLocaleChain(locale) {
  3262. var chain = [];
  3263. var tokens = locale.split('-');
  3264. while (tokens.length) {
  3265. chain.push(tokens.join('-'));
  3266. tokens.pop();
  3267. }
  3268. return chain;
  3269. }
  3270. /* 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)))
  3271. /***/ }),
  3272. /* 23 */
  3273. /*!***************************************************************!*\
  3274. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3275. \***************************************************************/
  3276. /*! no static exports found */
  3277. /***/ (function(module, exports) {
  3278. function _classCallCheck(instance, Constructor) {
  3279. if (!(instance instanceof Constructor)) {
  3280. throw new TypeError("Cannot call a class as a function");
  3281. }
  3282. }
  3283. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3284. /***/ }),
  3285. /* 24 */
  3286. /*!************************************************************!*\
  3287. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3288. \************************************************************/
  3289. /*! no static exports found */
  3290. /***/ (function(module, exports, __webpack_require__) {
  3291. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3292. function _defineProperties(target, props) {
  3293. for (var i = 0; i < props.length; i++) {
  3294. var descriptor = props[i];
  3295. descriptor.enumerable = descriptor.enumerable || false;
  3296. descriptor.configurable = true;
  3297. if ("value" in descriptor) descriptor.writable = true;
  3298. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3299. }
  3300. }
  3301. function _createClass(Constructor, protoProps, staticProps) {
  3302. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3303. if (staticProps) _defineProperties(Constructor, staticProps);
  3304. Object.defineProperty(Constructor, "prototype", {
  3305. writable: false
  3306. });
  3307. return Constructor;
  3308. }
  3309. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3310. /***/ }),
  3311. /* 25 */
  3312. /*!******************************************************************************************!*\
  3313. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3314. \******************************************************************************************/
  3315. /*! exports provided: default */
  3316. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3317. "use strict";
  3318. __webpack_require__.r(__webpack_exports__);
  3319. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3320. * Vue.js v2.6.11
  3321. * (c) 2014-2023 Evan You
  3322. * Released under the MIT License.
  3323. */
  3324. /* */
  3325. var emptyObject = Object.freeze({});
  3326. // These helpers produce better VM code in JS engines due to their
  3327. // explicitness and function inlining.
  3328. function isUndef (v) {
  3329. return v === undefined || v === null
  3330. }
  3331. function isDef (v) {
  3332. return v !== undefined && v !== null
  3333. }
  3334. function isTrue (v) {
  3335. return v === true
  3336. }
  3337. function isFalse (v) {
  3338. return v === false
  3339. }
  3340. /**
  3341. * Check if value is primitive.
  3342. */
  3343. function isPrimitive (value) {
  3344. return (
  3345. typeof value === 'string' ||
  3346. typeof value === 'number' ||
  3347. // $flow-disable-line
  3348. typeof value === 'symbol' ||
  3349. typeof value === 'boolean'
  3350. )
  3351. }
  3352. /**
  3353. * Quick object check - this is primarily used to tell
  3354. * Objects from primitive values when we know the value
  3355. * is a JSON-compliant type.
  3356. */
  3357. function isObject (obj) {
  3358. return obj !== null && typeof obj === 'object'
  3359. }
  3360. /**
  3361. * Get the raw type string of a value, e.g., [object Object].
  3362. */
  3363. var _toString = Object.prototype.toString;
  3364. function toRawType (value) {
  3365. return _toString.call(value).slice(8, -1)
  3366. }
  3367. /**
  3368. * Strict object type check. Only returns true
  3369. * for plain JavaScript objects.
  3370. */
  3371. function isPlainObject (obj) {
  3372. return _toString.call(obj) === '[object Object]'
  3373. }
  3374. function isRegExp (v) {
  3375. return _toString.call(v) === '[object RegExp]'
  3376. }
  3377. /**
  3378. * Check if val is a valid array index.
  3379. */
  3380. function isValidArrayIndex (val) {
  3381. var n = parseFloat(String(val));
  3382. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3383. }
  3384. function isPromise (val) {
  3385. return (
  3386. isDef(val) &&
  3387. typeof val.then === 'function' &&
  3388. typeof val.catch === 'function'
  3389. )
  3390. }
  3391. /**
  3392. * Convert a value to a string that is actually rendered.
  3393. */
  3394. function toString (val) {
  3395. return val == null
  3396. ? ''
  3397. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3398. ? JSON.stringify(val, null, 2)
  3399. : String(val)
  3400. }
  3401. /**
  3402. * Convert an input value to a number for persistence.
  3403. * If the conversion fails, return original string.
  3404. */
  3405. function toNumber (val) {
  3406. var n = parseFloat(val);
  3407. return isNaN(n) ? val : n
  3408. }
  3409. /**
  3410. * Make a map and return a function for checking if a key
  3411. * is in that map.
  3412. */
  3413. function makeMap (
  3414. str,
  3415. expectsLowerCase
  3416. ) {
  3417. var map = Object.create(null);
  3418. var list = str.split(',');
  3419. for (var i = 0; i < list.length; i++) {
  3420. map[list[i]] = true;
  3421. }
  3422. return expectsLowerCase
  3423. ? function (val) { return map[val.toLowerCase()]; }
  3424. : function (val) { return map[val]; }
  3425. }
  3426. /**
  3427. * Check if a tag is a built-in tag.
  3428. */
  3429. var isBuiltInTag = makeMap('slot,component', true);
  3430. /**
  3431. * Check if an attribute is a reserved attribute.
  3432. */
  3433. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3434. /**
  3435. * Remove an item from an array.
  3436. */
  3437. function remove (arr, item) {
  3438. if (arr.length) {
  3439. var index = arr.indexOf(item);
  3440. if (index > -1) {
  3441. return arr.splice(index, 1)
  3442. }
  3443. }
  3444. }
  3445. /**
  3446. * Check whether an object has the property.
  3447. */
  3448. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3449. function hasOwn (obj, key) {
  3450. return hasOwnProperty.call(obj, key)
  3451. }
  3452. /**
  3453. * Create a cached version of a pure function.
  3454. */
  3455. function cached (fn) {
  3456. var cache = Object.create(null);
  3457. return (function cachedFn (str) {
  3458. var hit = cache[str];
  3459. return hit || (cache[str] = fn(str))
  3460. })
  3461. }
  3462. /**
  3463. * Camelize a hyphen-delimited string.
  3464. */
  3465. var camelizeRE = /-(\w)/g;
  3466. var camelize = cached(function (str) {
  3467. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3468. });
  3469. /**
  3470. * Capitalize a string.
  3471. */
  3472. var capitalize = cached(function (str) {
  3473. return str.charAt(0).toUpperCase() + str.slice(1)
  3474. });
  3475. /**
  3476. * Hyphenate a camelCase string.
  3477. */
  3478. var hyphenateRE = /\B([A-Z])/g;
  3479. var hyphenate = cached(function (str) {
  3480. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3481. });
  3482. /**
  3483. * Simple bind polyfill for environments that do not support it,
  3484. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3485. * since native bind is now performant enough in most browsers.
  3486. * But removing it would mean breaking code that was able to run in
  3487. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3488. */
  3489. /* istanbul ignore next */
  3490. function polyfillBind (fn, ctx) {
  3491. function boundFn (a) {
  3492. var l = arguments.length;
  3493. return l
  3494. ? l > 1
  3495. ? fn.apply(ctx, arguments)
  3496. : fn.call(ctx, a)
  3497. : fn.call(ctx)
  3498. }
  3499. boundFn._length = fn.length;
  3500. return boundFn
  3501. }
  3502. function nativeBind (fn, ctx) {
  3503. return fn.bind(ctx)
  3504. }
  3505. var bind = Function.prototype.bind
  3506. ? nativeBind
  3507. : polyfillBind;
  3508. /**
  3509. * Convert an Array-like object to a real Array.
  3510. */
  3511. function toArray (list, start) {
  3512. start = start || 0;
  3513. var i = list.length - start;
  3514. var ret = new Array(i);
  3515. while (i--) {
  3516. ret[i] = list[i + start];
  3517. }
  3518. return ret
  3519. }
  3520. /**
  3521. * Mix properties into target object.
  3522. */
  3523. function extend (to, _from) {
  3524. for (var key in _from) {
  3525. to[key] = _from[key];
  3526. }
  3527. return to
  3528. }
  3529. /**
  3530. * Merge an Array of Objects into a single Object.
  3531. */
  3532. function toObject (arr) {
  3533. var res = {};
  3534. for (var i = 0; i < arr.length; i++) {
  3535. if (arr[i]) {
  3536. extend(res, arr[i]);
  3537. }
  3538. }
  3539. return res
  3540. }
  3541. /* eslint-disable no-unused-vars */
  3542. /**
  3543. * Perform no operation.
  3544. * Stubbing args to make Flow happy without leaving useless transpiled code
  3545. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3546. */
  3547. function noop (a, b, c) {}
  3548. /**
  3549. * Always return false.
  3550. */
  3551. var no = function (a, b, c) { return false; };
  3552. /* eslint-enable no-unused-vars */
  3553. /**
  3554. * Return the same value.
  3555. */
  3556. var identity = function (_) { return _; };
  3557. /**
  3558. * Check if two values are loosely equal - that is,
  3559. * if they are plain objects, do they have the same shape?
  3560. */
  3561. function looseEqual (a, b) {
  3562. if (a === b) { return true }
  3563. var isObjectA = isObject(a);
  3564. var isObjectB = isObject(b);
  3565. if (isObjectA && isObjectB) {
  3566. try {
  3567. var isArrayA = Array.isArray(a);
  3568. var isArrayB = Array.isArray(b);
  3569. if (isArrayA && isArrayB) {
  3570. return a.length === b.length && a.every(function (e, i) {
  3571. return looseEqual(e, b[i])
  3572. })
  3573. } else if (a instanceof Date && b instanceof Date) {
  3574. return a.getTime() === b.getTime()
  3575. } else if (!isArrayA && !isArrayB) {
  3576. var keysA = Object.keys(a);
  3577. var keysB = Object.keys(b);
  3578. return keysA.length === keysB.length && keysA.every(function (key) {
  3579. return looseEqual(a[key], b[key])
  3580. })
  3581. } else {
  3582. /* istanbul ignore next */
  3583. return false
  3584. }
  3585. } catch (e) {
  3586. /* istanbul ignore next */
  3587. return false
  3588. }
  3589. } else if (!isObjectA && !isObjectB) {
  3590. return String(a) === String(b)
  3591. } else {
  3592. return false
  3593. }
  3594. }
  3595. /**
  3596. * Return the first index at which a loosely equal value can be
  3597. * found in the array (if value is a plain object, the array must
  3598. * contain an object of the same shape), or -1 if it is not present.
  3599. */
  3600. function looseIndexOf (arr, val) {
  3601. for (var i = 0; i < arr.length; i++) {
  3602. if (looseEqual(arr[i], val)) { return i }
  3603. }
  3604. return -1
  3605. }
  3606. /**
  3607. * Ensure a function is called only once.
  3608. */
  3609. function once (fn) {
  3610. var called = false;
  3611. return function () {
  3612. if (!called) {
  3613. called = true;
  3614. fn.apply(this, arguments);
  3615. }
  3616. }
  3617. }
  3618. var ASSET_TYPES = [
  3619. 'component',
  3620. 'directive',
  3621. 'filter'
  3622. ];
  3623. var LIFECYCLE_HOOKS = [
  3624. 'beforeCreate',
  3625. 'created',
  3626. 'beforeMount',
  3627. 'mounted',
  3628. 'beforeUpdate',
  3629. 'updated',
  3630. 'beforeDestroy',
  3631. 'destroyed',
  3632. 'activated',
  3633. 'deactivated',
  3634. 'errorCaptured',
  3635. 'serverPrefetch'
  3636. ];
  3637. /* */
  3638. var config = ({
  3639. /**
  3640. * Option merge strategies (used in core/util/options)
  3641. */
  3642. // $flow-disable-line
  3643. optionMergeStrategies: Object.create(null),
  3644. /**
  3645. * Whether to suppress warnings.
  3646. */
  3647. silent: false,
  3648. /**
  3649. * Show production mode tip message on boot?
  3650. */
  3651. productionTip: "development" !== 'production',
  3652. /**
  3653. * Whether to enable devtools
  3654. */
  3655. devtools: "development" !== 'production',
  3656. /**
  3657. * Whether to record perf
  3658. */
  3659. performance: false,
  3660. /**
  3661. * Error handler for watcher errors
  3662. */
  3663. errorHandler: null,
  3664. /**
  3665. * Warn handler for watcher warns
  3666. */
  3667. warnHandler: null,
  3668. /**
  3669. * Ignore certain custom elements
  3670. */
  3671. ignoredElements: [],
  3672. /**
  3673. * Custom user key aliases for v-on
  3674. */
  3675. // $flow-disable-line
  3676. keyCodes: Object.create(null),
  3677. /**
  3678. * Check if a tag is reserved so that it cannot be registered as a
  3679. * component. This is platform-dependent and may be overwritten.
  3680. */
  3681. isReservedTag: no,
  3682. /**
  3683. * Check if an attribute is reserved so that it cannot be used as a component
  3684. * prop. This is platform-dependent and may be overwritten.
  3685. */
  3686. isReservedAttr: no,
  3687. /**
  3688. * Check if a tag is an unknown element.
  3689. * Platform-dependent.
  3690. */
  3691. isUnknownElement: no,
  3692. /**
  3693. * Get the namespace of an element
  3694. */
  3695. getTagNamespace: noop,
  3696. /**
  3697. * Parse the real tag name for the specific platform.
  3698. */
  3699. parsePlatformTagName: identity,
  3700. /**
  3701. * Check if an attribute must be bound using property, e.g. value
  3702. * Platform-dependent.
  3703. */
  3704. mustUseProp: no,
  3705. /**
  3706. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3707. * This will significantly reduce performance if set to false.
  3708. */
  3709. async: true,
  3710. /**
  3711. * Exposed for legacy reasons
  3712. */
  3713. _lifecycleHooks: LIFECYCLE_HOOKS
  3714. });
  3715. /* */
  3716. /**
  3717. * unicode letters used for parsing html tags, component names and property paths.
  3718. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3719. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3720. */
  3721. 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/;
  3722. /**
  3723. * Check if a string starts with $ or _
  3724. */
  3725. function isReserved (str) {
  3726. var c = (str + '').charCodeAt(0);
  3727. return c === 0x24 || c === 0x5F
  3728. }
  3729. /**
  3730. * Define a property.
  3731. */
  3732. function def (obj, key, val, enumerable) {
  3733. Object.defineProperty(obj, key, {
  3734. value: val,
  3735. enumerable: !!enumerable,
  3736. writable: true,
  3737. configurable: true
  3738. });
  3739. }
  3740. /**
  3741. * Parse simple path.
  3742. */
  3743. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3744. function parsePath (path) {
  3745. if (bailRE.test(path)) {
  3746. return
  3747. }
  3748. var segments = path.split('.');
  3749. return function (obj) {
  3750. for (var i = 0; i < segments.length; i++) {
  3751. if (!obj) { return }
  3752. obj = obj[segments[i]];
  3753. }
  3754. return obj
  3755. }
  3756. }
  3757. /* */
  3758. // can we use __proto__?
  3759. var hasProto = '__proto__' in {};
  3760. // Browser environment sniffing
  3761. var inBrowser = typeof window !== 'undefined';
  3762. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3763. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3764. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3765. var isIE = UA && /msie|trident/.test(UA);
  3766. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3767. var isEdge = UA && UA.indexOf('edge/') > 0;
  3768. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3769. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3770. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3771. var isPhantomJS = UA && /phantomjs/.test(UA);
  3772. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3773. // Firefox has a "watch" function on Object.prototype...
  3774. var nativeWatch = ({}).watch;
  3775. if (inBrowser) {
  3776. try {
  3777. var opts = {};
  3778. Object.defineProperty(opts, 'passive', ({
  3779. get: function get () {
  3780. }
  3781. })); // https://github.com/facebook/flow/issues/285
  3782. window.addEventListener('test-passive', null, opts);
  3783. } catch (e) {}
  3784. }
  3785. // this needs to be lazy-evaled because vue may be required before
  3786. // vue-server-renderer can set VUE_ENV
  3787. var _isServer;
  3788. var isServerRendering = function () {
  3789. if (_isServer === undefined) {
  3790. /* istanbul ignore if */
  3791. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3792. // detect presence of vue-server-renderer and avoid
  3793. // Webpack shimming the process
  3794. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3795. } else {
  3796. _isServer = false;
  3797. }
  3798. }
  3799. return _isServer
  3800. };
  3801. // detect devtools
  3802. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3803. /* istanbul ignore next */
  3804. function isNative (Ctor) {
  3805. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3806. }
  3807. var hasSymbol =
  3808. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3809. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3810. var _Set;
  3811. /* istanbul ignore if */ // $flow-disable-line
  3812. if (typeof Set !== 'undefined' && isNative(Set)) {
  3813. // use native Set when available.
  3814. _Set = Set;
  3815. } else {
  3816. // a non-standard Set polyfill that only works with primitive keys.
  3817. _Set = /*@__PURE__*/(function () {
  3818. function Set () {
  3819. this.set = Object.create(null);
  3820. }
  3821. Set.prototype.has = function has (key) {
  3822. return this.set[key] === true
  3823. };
  3824. Set.prototype.add = function add (key) {
  3825. this.set[key] = true;
  3826. };
  3827. Set.prototype.clear = function clear () {
  3828. this.set = Object.create(null);
  3829. };
  3830. return Set;
  3831. }());
  3832. }
  3833. /* */
  3834. var warn = noop;
  3835. var tip = noop;
  3836. var generateComponentTrace = (noop); // work around flow check
  3837. var formatComponentName = (noop);
  3838. if (true) {
  3839. var hasConsole = typeof console !== 'undefined';
  3840. var classifyRE = /(?:^|[-_])(\w)/g;
  3841. var classify = function (str) { return str
  3842. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3843. .replace(/[-_]/g, ''); };
  3844. warn = function (msg, vm) {
  3845. var trace = vm ? generateComponentTrace(vm) : '';
  3846. if (config.warnHandler) {
  3847. config.warnHandler.call(null, msg, vm, trace);
  3848. } else if (hasConsole && (!config.silent)) {
  3849. console.error(("[Vue warn]: " + msg + trace));
  3850. }
  3851. };
  3852. tip = function (msg, vm) {
  3853. if (hasConsole && (!config.silent)) {
  3854. console.warn("[Vue tip]: " + msg + (
  3855. vm ? generateComponentTrace(vm) : ''
  3856. ));
  3857. }
  3858. };
  3859. formatComponentName = function (vm, includeFile) {
  3860. if (vm.$root === vm) {
  3861. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3862. return ('') + vm.$options.__file
  3863. }
  3864. return '<Root>'
  3865. }
  3866. var options = typeof vm === 'function' && vm.cid != null
  3867. ? vm.options
  3868. : vm._isVue
  3869. ? vm.$options || vm.constructor.options
  3870. : vm;
  3871. var name = options.name || options._componentTag;
  3872. var file = options.__file;
  3873. if (!name && file) {
  3874. var match = file.match(/([^/\\]+)\.vue$/);
  3875. name = match && match[1];
  3876. }
  3877. return (
  3878. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3879. (file && includeFile !== false ? (" at " + file) : '')
  3880. )
  3881. };
  3882. var repeat = function (str, n) {
  3883. var res = '';
  3884. while (n) {
  3885. if (n % 2 === 1) { res += str; }
  3886. if (n > 1) { str += str; }
  3887. n >>= 1;
  3888. }
  3889. return res
  3890. };
  3891. generateComponentTrace = function (vm) {
  3892. if (vm._isVue && vm.$parent) {
  3893. var tree = [];
  3894. var currentRecursiveSequence = 0;
  3895. while (vm && vm.$options.name !== 'PageBody') {
  3896. if (tree.length > 0) {
  3897. var last = tree[tree.length - 1];
  3898. if (last.constructor === vm.constructor) {
  3899. currentRecursiveSequence++;
  3900. vm = vm.$parent;
  3901. continue
  3902. } else if (currentRecursiveSequence > 0) {
  3903. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3904. currentRecursiveSequence = 0;
  3905. }
  3906. }
  3907. !vm.$options.isReserved && tree.push(vm);
  3908. vm = vm.$parent;
  3909. }
  3910. return '\n\nfound in\n\n' + tree
  3911. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3912. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3913. : formatComponentName(vm))); })
  3914. .join('\n')
  3915. } else {
  3916. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3917. }
  3918. };
  3919. }
  3920. /* */
  3921. var uid = 0;
  3922. /**
  3923. * A dep is an observable that can have multiple
  3924. * directives subscribing to it.
  3925. */
  3926. var Dep = function Dep () {
  3927. this.id = uid++;
  3928. this.subs = [];
  3929. };
  3930. Dep.prototype.addSub = function addSub (sub) {
  3931. this.subs.push(sub);
  3932. };
  3933. Dep.prototype.removeSub = function removeSub (sub) {
  3934. remove(this.subs, sub);
  3935. };
  3936. Dep.prototype.depend = function depend () {
  3937. if (Dep.SharedObject.target) {
  3938. Dep.SharedObject.target.addDep(this);
  3939. }
  3940. };
  3941. Dep.prototype.notify = function notify () {
  3942. // stabilize the subscriber list first
  3943. var subs = this.subs.slice();
  3944. if ( true && !config.async) {
  3945. // subs aren't sorted in scheduler if not running async
  3946. // we need to sort them now to make sure they fire in correct
  3947. // order
  3948. subs.sort(function (a, b) { return a.id - b.id; });
  3949. }
  3950. for (var i = 0, l = subs.length; i < l; i++) {
  3951. subs[i].update();
  3952. }
  3953. };
  3954. // The current target watcher being evaluated.
  3955. // This is globally unique because only one watcher
  3956. // can be evaluated at a time.
  3957. // fixed by xxxxxx (nvue shared vuex)
  3958. /* eslint-disable no-undef */
  3959. Dep.SharedObject = {};
  3960. Dep.SharedObject.target = null;
  3961. Dep.SharedObject.targetStack = [];
  3962. function pushTarget (target) {
  3963. Dep.SharedObject.targetStack.push(target);
  3964. Dep.SharedObject.target = target;
  3965. Dep.target = target;
  3966. }
  3967. function popTarget () {
  3968. Dep.SharedObject.targetStack.pop();
  3969. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3970. Dep.target = Dep.SharedObject.target;
  3971. }
  3972. /* */
  3973. var VNode = function VNode (
  3974. tag,
  3975. data,
  3976. children,
  3977. text,
  3978. elm,
  3979. context,
  3980. componentOptions,
  3981. asyncFactory
  3982. ) {
  3983. this.tag = tag;
  3984. this.data = data;
  3985. this.children = children;
  3986. this.text = text;
  3987. this.elm = elm;
  3988. this.ns = undefined;
  3989. this.context = context;
  3990. this.fnContext = undefined;
  3991. this.fnOptions = undefined;
  3992. this.fnScopeId = undefined;
  3993. this.key = data && data.key;
  3994. this.componentOptions = componentOptions;
  3995. this.componentInstance = undefined;
  3996. this.parent = undefined;
  3997. this.raw = false;
  3998. this.isStatic = false;
  3999. this.isRootInsert = true;
  4000. this.isComment = false;
  4001. this.isCloned = false;
  4002. this.isOnce = false;
  4003. this.asyncFactory = asyncFactory;
  4004. this.asyncMeta = undefined;
  4005. this.isAsyncPlaceholder = false;
  4006. };
  4007. var prototypeAccessors = { child: { configurable: true } };
  4008. // DEPRECATED: alias for componentInstance for backwards compat.
  4009. /* istanbul ignore next */
  4010. prototypeAccessors.child.get = function () {
  4011. return this.componentInstance
  4012. };
  4013. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4014. var createEmptyVNode = function (text) {
  4015. if ( text === void 0 ) text = '';
  4016. var node = new VNode();
  4017. node.text = text;
  4018. node.isComment = true;
  4019. return node
  4020. };
  4021. function createTextVNode (val) {
  4022. return new VNode(undefined, undefined, undefined, String(val))
  4023. }
  4024. // optimized shallow clone
  4025. // used for static nodes and slot nodes because they may be reused across
  4026. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4027. // on their elm reference.
  4028. function cloneVNode (vnode) {
  4029. var cloned = new VNode(
  4030. vnode.tag,
  4031. vnode.data,
  4032. // #7975
  4033. // clone children array to avoid mutating original in case of cloning
  4034. // a child.
  4035. vnode.children && vnode.children.slice(),
  4036. vnode.text,
  4037. vnode.elm,
  4038. vnode.context,
  4039. vnode.componentOptions,
  4040. vnode.asyncFactory
  4041. );
  4042. cloned.ns = vnode.ns;
  4043. cloned.isStatic = vnode.isStatic;
  4044. cloned.key = vnode.key;
  4045. cloned.isComment = vnode.isComment;
  4046. cloned.fnContext = vnode.fnContext;
  4047. cloned.fnOptions = vnode.fnOptions;
  4048. cloned.fnScopeId = vnode.fnScopeId;
  4049. cloned.asyncMeta = vnode.asyncMeta;
  4050. cloned.isCloned = true;
  4051. return cloned
  4052. }
  4053. /*
  4054. * not type checking this file because flow doesn't play well with
  4055. * dynamically accessing methods on Array prototype
  4056. */
  4057. var arrayProto = Array.prototype;
  4058. var arrayMethods = Object.create(arrayProto);
  4059. var methodsToPatch = [
  4060. 'push',
  4061. 'pop',
  4062. 'shift',
  4063. 'unshift',
  4064. 'splice',
  4065. 'sort',
  4066. 'reverse'
  4067. ];
  4068. /**
  4069. * Intercept mutating methods and emit events
  4070. */
  4071. methodsToPatch.forEach(function (method) {
  4072. // cache original method
  4073. var original = arrayProto[method];
  4074. def(arrayMethods, method, function mutator () {
  4075. var args = [], len = arguments.length;
  4076. while ( len-- ) args[ len ] = arguments[ len ];
  4077. var result = original.apply(this, args);
  4078. var ob = this.__ob__;
  4079. var inserted;
  4080. switch (method) {
  4081. case 'push':
  4082. case 'unshift':
  4083. inserted = args;
  4084. break
  4085. case 'splice':
  4086. inserted = args.slice(2);
  4087. break
  4088. }
  4089. if (inserted) { ob.observeArray(inserted); }
  4090. // notify change
  4091. ob.dep.notify();
  4092. return result
  4093. });
  4094. });
  4095. /* */
  4096. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4097. /**
  4098. * In some cases we may want to disable observation inside a component's
  4099. * update computation.
  4100. */
  4101. var shouldObserve = true;
  4102. function toggleObserving (value) {
  4103. shouldObserve = value;
  4104. }
  4105. /**
  4106. * Observer class that is attached to each observed
  4107. * object. Once attached, the observer converts the target
  4108. * object's property keys into getter/setters that
  4109. * collect dependencies and dispatch updates.
  4110. */
  4111. var Observer = function Observer (value) {
  4112. this.value = value;
  4113. this.dep = new Dep();
  4114. this.vmCount = 0;
  4115. def(value, '__ob__', this);
  4116. if (Array.isArray(value)) {
  4117. if (hasProto) {
  4118. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4119. if(value.push !== value.__proto__.push){
  4120. copyAugment(value, arrayMethods, arrayKeys);
  4121. } else {
  4122. protoAugment(value, arrayMethods);
  4123. }
  4124. }
  4125. } else {
  4126. copyAugment(value, arrayMethods, arrayKeys);
  4127. }
  4128. this.observeArray(value);
  4129. } else {
  4130. this.walk(value);
  4131. }
  4132. };
  4133. /**
  4134. * Walk through all properties and convert them into
  4135. * getter/setters. This method should only be called when
  4136. * value type is Object.
  4137. */
  4138. Observer.prototype.walk = function walk (obj) {
  4139. var keys = Object.keys(obj);
  4140. for (var i = 0; i < keys.length; i++) {
  4141. defineReactive$$1(obj, keys[i]);
  4142. }
  4143. };
  4144. /**
  4145. * Observe a list of Array items.
  4146. */
  4147. Observer.prototype.observeArray = function observeArray (items) {
  4148. for (var i = 0, l = items.length; i < l; i++) {
  4149. observe(items[i]);
  4150. }
  4151. };
  4152. // helpers
  4153. /**
  4154. * Augment a target Object or Array by intercepting
  4155. * the prototype chain using __proto__
  4156. */
  4157. function protoAugment (target, src) {
  4158. /* eslint-disable no-proto */
  4159. target.__proto__ = src;
  4160. /* eslint-enable no-proto */
  4161. }
  4162. /**
  4163. * Augment a target Object or Array by defining
  4164. * hidden properties.
  4165. */
  4166. /* istanbul ignore next */
  4167. function copyAugment (target, src, keys) {
  4168. for (var i = 0, l = keys.length; i < l; i++) {
  4169. var key = keys[i];
  4170. def(target, key, src[key]);
  4171. }
  4172. }
  4173. /**
  4174. * Attempt to create an observer instance for a value,
  4175. * returns the new observer if successfully observed,
  4176. * or the existing observer if the value already has one.
  4177. */
  4178. function observe (value, asRootData) {
  4179. if (!isObject(value) || value instanceof VNode) {
  4180. return
  4181. }
  4182. var ob;
  4183. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4184. ob = value.__ob__;
  4185. } else if (
  4186. shouldObserve &&
  4187. !isServerRendering() &&
  4188. (Array.isArray(value) || isPlainObject(value)) &&
  4189. Object.isExtensible(value) &&
  4190. !value._isVue &&
  4191. !value.__v_isMPComponent
  4192. ) {
  4193. ob = new Observer(value);
  4194. }
  4195. if (asRootData && ob) {
  4196. ob.vmCount++;
  4197. }
  4198. return ob
  4199. }
  4200. /**
  4201. * Define a reactive property on an Object.
  4202. */
  4203. function defineReactive$$1 (
  4204. obj,
  4205. key,
  4206. val,
  4207. customSetter,
  4208. shallow
  4209. ) {
  4210. var dep = new Dep();
  4211. var property = Object.getOwnPropertyDescriptor(obj, key);
  4212. if (property && property.configurable === false) {
  4213. return
  4214. }
  4215. // cater for pre-defined getter/setters
  4216. var getter = property && property.get;
  4217. var setter = property && property.set;
  4218. if ((!getter || setter) && arguments.length === 2) {
  4219. val = obj[key];
  4220. }
  4221. var childOb = !shallow && observe(val);
  4222. Object.defineProperty(obj, key, {
  4223. enumerable: true,
  4224. configurable: true,
  4225. get: function reactiveGetter () {
  4226. var value = getter ? getter.call(obj) : val;
  4227. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4228. dep.depend();
  4229. if (childOb) {
  4230. childOb.dep.depend();
  4231. if (Array.isArray(value)) {
  4232. dependArray(value);
  4233. }
  4234. }
  4235. }
  4236. return value
  4237. },
  4238. set: function reactiveSetter (newVal) {
  4239. var value = getter ? getter.call(obj) : val;
  4240. /* eslint-disable no-self-compare */
  4241. if (newVal === value || (newVal !== newVal && value !== value)) {
  4242. return
  4243. }
  4244. /* eslint-enable no-self-compare */
  4245. if ( true && customSetter) {
  4246. customSetter();
  4247. }
  4248. // #7981: for accessor properties without setter
  4249. if (getter && !setter) { return }
  4250. if (setter) {
  4251. setter.call(obj, newVal);
  4252. } else {
  4253. val = newVal;
  4254. }
  4255. childOb = !shallow && observe(newVal);
  4256. dep.notify();
  4257. }
  4258. });
  4259. }
  4260. /**
  4261. * Set a property on an object. Adds the new property and
  4262. * triggers change notification if the property doesn't
  4263. * already exist.
  4264. */
  4265. function set (target, key, val) {
  4266. if ( true &&
  4267. (isUndef(target) || isPrimitive(target))
  4268. ) {
  4269. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4270. }
  4271. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4272. target.length = Math.max(target.length, key);
  4273. target.splice(key, 1, val);
  4274. return val
  4275. }
  4276. if (key in target && !(key in Object.prototype)) {
  4277. target[key] = val;
  4278. return val
  4279. }
  4280. var ob = (target).__ob__;
  4281. if (target._isVue || (ob && ob.vmCount)) {
  4282. true && warn(
  4283. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4284. 'at runtime - declare it upfront in the data option.'
  4285. );
  4286. return val
  4287. }
  4288. if (!ob) {
  4289. target[key] = val;
  4290. return val
  4291. }
  4292. defineReactive$$1(ob.value, key, val);
  4293. ob.dep.notify();
  4294. return val
  4295. }
  4296. /**
  4297. * Delete a property and trigger change if necessary.
  4298. */
  4299. function del (target, key) {
  4300. if ( true &&
  4301. (isUndef(target) || isPrimitive(target))
  4302. ) {
  4303. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4304. }
  4305. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4306. target.splice(key, 1);
  4307. return
  4308. }
  4309. var ob = (target).__ob__;
  4310. if (target._isVue || (ob && ob.vmCount)) {
  4311. true && warn(
  4312. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4313. '- just set it to null.'
  4314. );
  4315. return
  4316. }
  4317. if (!hasOwn(target, key)) {
  4318. return
  4319. }
  4320. delete target[key];
  4321. if (!ob) {
  4322. return
  4323. }
  4324. ob.dep.notify();
  4325. }
  4326. /**
  4327. * Collect dependencies on array elements when the array is touched, since
  4328. * we cannot intercept array element access like property getters.
  4329. */
  4330. function dependArray (value) {
  4331. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4332. e = value[i];
  4333. e && e.__ob__ && e.__ob__.dep.depend();
  4334. if (Array.isArray(e)) {
  4335. dependArray(e);
  4336. }
  4337. }
  4338. }
  4339. /* */
  4340. /**
  4341. * Option overwriting strategies are functions that handle
  4342. * how to merge a parent option value and a child option
  4343. * value into the final value.
  4344. */
  4345. var strats = config.optionMergeStrategies;
  4346. /**
  4347. * Options with restrictions
  4348. */
  4349. if (true) {
  4350. strats.el = strats.propsData = function (parent, child, vm, key) {
  4351. if (!vm) {
  4352. warn(
  4353. "option \"" + key + "\" can only be used during instance " +
  4354. 'creation with the `new` keyword.'
  4355. );
  4356. }
  4357. return defaultStrat(parent, child)
  4358. };
  4359. }
  4360. /**
  4361. * Helper that recursively merges two data objects together.
  4362. */
  4363. function mergeData (to, from) {
  4364. if (!from) { return to }
  4365. var key, toVal, fromVal;
  4366. var keys = hasSymbol
  4367. ? Reflect.ownKeys(from)
  4368. : Object.keys(from);
  4369. for (var i = 0; i < keys.length; i++) {
  4370. key = keys[i];
  4371. // in case the object is already observed...
  4372. if (key === '__ob__') { continue }
  4373. toVal = to[key];
  4374. fromVal = from[key];
  4375. if (!hasOwn(to, key)) {
  4376. set(to, key, fromVal);
  4377. } else if (
  4378. toVal !== fromVal &&
  4379. isPlainObject(toVal) &&
  4380. isPlainObject(fromVal)
  4381. ) {
  4382. mergeData(toVal, fromVal);
  4383. }
  4384. }
  4385. return to
  4386. }
  4387. /**
  4388. * Data
  4389. */
  4390. function mergeDataOrFn (
  4391. parentVal,
  4392. childVal,
  4393. vm
  4394. ) {
  4395. if (!vm) {
  4396. // in a Vue.extend merge, both should be functions
  4397. if (!childVal) {
  4398. return parentVal
  4399. }
  4400. if (!parentVal) {
  4401. return childVal
  4402. }
  4403. // when parentVal & childVal are both present,
  4404. // we need to return a function that returns the
  4405. // merged result of both functions... no need to
  4406. // check if parentVal is a function here because
  4407. // it has to be a function to pass previous merges.
  4408. return function mergedDataFn () {
  4409. return mergeData(
  4410. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4411. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4412. )
  4413. }
  4414. } else {
  4415. return function mergedInstanceDataFn () {
  4416. // instance merge
  4417. var instanceData = typeof childVal === 'function'
  4418. ? childVal.call(vm, vm)
  4419. : childVal;
  4420. var defaultData = typeof parentVal === 'function'
  4421. ? parentVal.call(vm, vm)
  4422. : parentVal;
  4423. if (instanceData) {
  4424. return mergeData(instanceData, defaultData)
  4425. } else {
  4426. return defaultData
  4427. }
  4428. }
  4429. }
  4430. }
  4431. strats.data = function (
  4432. parentVal,
  4433. childVal,
  4434. vm
  4435. ) {
  4436. if (!vm) {
  4437. if (childVal && typeof childVal !== 'function') {
  4438. true && warn(
  4439. 'The "data" option should be a function ' +
  4440. 'that returns a per-instance value in component ' +
  4441. 'definitions.',
  4442. vm
  4443. );
  4444. return parentVal
  4445. }
  4446. return mergeDataOrFn(parentVal, childVal)
  4447. }
  4448. return mergeDataOrFn(parentVal, childVal, vm)
  4449. };
  4450. /**
  4451. * Hooks and props are merged as arrays.
  4452. */
  4453. function mergeHook (
  4454. parentVal,
  4455. childVal
  4456. ) {
  4457. var res = childVal
  4458. ? parentVal
  4459. ? parentVal.concat(childVal)
  4460. : Array.isArray(childVal)
  4461. ? childVal
  4462. : [childVal]
  4463. : parentVal;
  4464. return res
  4465. ? dedupeHooks(res)
  4466. : res
  4467. }
  4468. function dedupeHooks (hooks) {
  4469. var res = [];
  4470. for (var i = 0; i < hooks.length; i++) {
  4471. if (res.indexOf(hooks[i]) === -1) {
  4472. res.push(hooks[i]);
  4473. }
  4474. }
  4475. return res
  4476. }
  4477. LIFECYCLE_HOOKS.forEach(function (hook) {
  4478. strats[hook] = mergeHook;
  4479. });
  4480. /**
  4481. * Assets
  4482. *
  4483. * When a vm is present (instance creation), we need to do
  4484. * a three-way merge between constructor options, instance
  4485. * options and parent options.
  4486. */
  4487. function mergeAssets (
  4488. parentVal,
  4489. childVal,
  4490. vm,
  4491. key
  4492. ) {
  4493. var res = Object.create(parentVal || null);
  4494. if (childVal) {
  4495. true && assertObjectType(key, childVal, vm);
  4496. return extend(res, childVal)
  4497. } else {
  4498. return res
  4499. }
  4500. }
  4501. ASSET_TYPES.forEach(function (type) {
  4502. strats[type + 's'] = mergeAssets;
  4503. });
  4504. /**
  4505. * Watchers.
  4506. *
  4507. * Watchers hashes should not overwrite one
  4508. * another, so we merge them as arrays.
  4509. */
  4510. strats.watch = function (
  4511. parentVal,
  4512. childVal,
  4513. vm,
  4514. key
  4515. ) {
  4516. // work around Firefox's Object.prototype.watch...
  4517. if (parentVal === nativeWatch) { parentVal = undefined; }
  4518. if (childVal === nativeWatch) { childVal = undefined; }
  4519. /* istanbul ignore if */
  4520. if (!childVal) { return Object.create(parentVal || null) }
  4521. if (true) {
  4522. assertObjectType(key, childVal, vm);
  4523. }
  4524. if (!parentVal) { return childVal }
  4525. var ret = {};
  4526. extend(ret, parentVal);
  4527. for (var key$1 in childVal) {
  4528. var parent = ret[key$1];
  4529. var child = childVal[key$1];
  4530. if (parent && !Array.isArray(parent)) {
  4531. parent = [parent];
  4532. }
  4533. ret[key$1] = parent
  4534. ? parent.concat(child)
  4535. : Array.isArray(child) ? child : [child];
  4536. }
  4537. return ret
  4538. };
  4539. /**
  4540. * Other object hashes.
  4541. */
  4542. strats.props =
  4543. strats.methods =
  4544. strats.inject =
  4545. strats.computed = function (
  4546. parentVal,
  4547. childVal,
  4548. vm,
  4549. key
  4550. ) {
  4551. if (childVal && "development" !== 'production') {
  4552. assertObjectType(key, childVal, vm);
  4553. }
  4554. if (!parentVal) { return childVal }
  4555. var ret = Object.create(null);
  4556. extend(ret, parentVal);
  4557. if (childVal) { extend(ret, childVal); }
  4558. return ret
  4559. };
  4560. strats.provide = mergeDataOrFn;
  4561. /**
  4562. * Default strategy.
  4563. */
  4564. var defaultStrat = function (parentVal, childVal) {
  4565. return childVal === undefined
  4566. ? parentVal
  4567. : childVal
  4568. };
  4569. /**
  4570. * Validate component names
  4571. */
  4572. function checkComponents (options) {
  4573. for (var key in options.components) {
  4574. validateComponentName(key);
  4575. }
  4576. }
  4577. function validateComponentName (name) {
  4578. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4579. warn(
  4580. 'Invalid component name: "' + name + '". Component names ' +
  4581. 'should conform to valid custom element name in html5 specification.'
  4582. );
  4583. }
  4584. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4585. warn(
  4586. 'Do not use built-in or reserved HTML elements as component ' +
  4587. 'id: ' + name
  4588. );
  4589. }
  4590. }
  4591. /**
  4592. * Ensure all props option syntax are normalized into the
  4593. * Object-based format.
  4594. */
  4595. function normalizeProps (options, vm) {
  4596. var props = options.props;
  4597. if (!props) { return }
  4598. var res = {};
  4599. var i, val, name;
  4600. if (Array.isArray(props)) {
  4601. i = props.length;
  4602. while (i--) {
  4603. val = props[i];
  4604. if (typeof val === 'string') {
  4605. name = camelize(val);
  4606. res[name] = { type: null };
  4607. } else if (true) {
  4608. warn('props must be strings when using array syntax.');
  4609. }
  4610. }
  4611. } else if (isPlainObject(props)) {
  4612. for (var key in props) {
  4613. val = props[key];
  4614. name = camelize(key);
  4615. res[name] = isPlainObject(val)
  4616. ? val
  4617. : { type: val };
  4618. }
  4619. } else if (true) {
  4620. warn(
  4621. "Invalid value for option \"props\": expected an Array or an Object, " +
  4622. "but got " + (toRawType(props)) + ".",
  4623. vm
  4624. );
  4625. }
  4626. options.props = res;
  4627. }
  4628. /**
  4629. * Normalize all injections into Object-based format
  4630. */
  4631. function normalizeInject (options, vm) {
  4632. var inject = options.inject;
  4633. if (!inject) { return }
  4634. var normalized = options.inject = {};
  4635. if (Array.isArray(inject)) {
  4636. for (var i = 0; i < inject.length; i++) {
  4637. normalized[inject[i]] = { from: inject[i] };
  4638. }
  4639. } else if (isPlainObject(inject)) {
  4640. for (var key in inject) {
  4641. var val = inject[key];
  4642. normalized[key] = isPlainObject(val)
  4643. ? extend({ from: key }, val)
  4644. : { from: val };
  4645. }
  4646. } else if (true) {
  4647. warn(
  4648. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4649. "but got " + (toRawType(inject)) + ".",
  4650. vm
  4651. );
  4652. }
  4653. }
  4654. /**
  4655. * Normalize raw function directives into object format.
  4656. */
  4657. function normalizeDirectives (options) {
  4658. var dirs = options.directives;
  4659. if (dirs) {
  4660. for (var key in dirs) {
  4661. var def$$1 = dirs[key];
  4662. if (typeof def$$1 === 'function') {
  4663. dirs[key] = { bind: def$$1, update: def$$1 };
  4664. }
  4665. }
  4666. }
  4667. }
  4668. function assertObjectType (name, value, vm) {
  4669. if (!isPlainObject(value)) {
  4670. warn(
  4671. "Invalid value for option \"" + name + "\": expected an Object, " +
  4672. "but got " + (toRawType(value)) + ".",
  4673. vm
  4674. );
  4675. }
  4676. }
  4677. /**
  4678. * Merge two option objects into a new one.
  4679. * Core utility used in both instantiation and inheritance.
  4680. */
  4681. function mergeOptions (
  4682. parent,
  4683. child,
  4684. vm
  4685. ) {
  4686. if (true) {
  4687. checkComponents(child);
  4688. }
  4689. if (typeof child === 'function') {
  4690. child = child.options;
  4691. }
  4692. normalizeProps(child, vm);
  4693. normalizeInject(child, vm);
  4694. normalizeDirectives(child);
  4695. // Apply extends and mixins on the child options,
  4696. // but only if it is a raw options object that isn't
  4697. // the result of another mergeOptions call.
  4698. // Only merged options has the _base property.
  4699. if (!child._base) {
  4700. if (child.extends) {
  4701. parent = mergeOptions(parent, child.extends, vm);
  4702. }
  4703. if (child.mixins) {
  4704. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4705. parent = mergeOptions(parent, child.mixins[i], vm);
  4706. }
  4707. }
  4708. }
  4709. var options = {};
  4710. var key;
  4711. for (key in parent) {
  4712. mergeField(key);
  4713. }
  4714. for (key in child) {
  4715. if (!hasOwn(parent, key)) {
  4716. mergeField(key);
  4717. }
  4718. }
  4719. function mergeField (key) {
  4720. var strat = strats[key] || defaultStrat;
  4721. options[key] = strat(parent[key], child[key], vm, key);
  4722. }
  4723. return options
  4724. }
  4725. /**
  4726. * Resolve an asset.
  4727. * This function is used because child instances need access
  4728. * to assets defined in its ancestor chain.
  4729. */
  4730. function resolveAsset (
  4731. options,
  4732. type,
  4733. id,
  4734. warnMissing
  4735. ) {
  4736. /* istanbul ignore if */
  4737. if (typeof id !== 'string') {
  4738. return
  4739. }
  4740. var assets = options[type];
  4741. // check local registration variations first
  4742. if (hasOwn(assets, id)) { return assets[id] }
  4743. var camelizedId = camelize(id);
  4744. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4745. var PascalCaseId = capitalize(camelizedId);
  4746. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4747. // fallback to prototype chain
  4748. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4749. if ( true && warnMissing && !res) {
  4750. warn(
  4751. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4752. options
  4753. );
  4754. }
  4755. return res
  4756. }
  4757. /* */
  4758. function validateProp (
  4759. key,
  4760. propOptions,
  4761. propsData,
  4762. vm
  4763. ) {
  4764. var prop = propOptions[key];
  4765. var absent = !hasOwn(propsData, key);
  4766. var value = propsData[key];
  4767. // boolean casting
  4768. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4769. if (booleanIndex > -1) {
  4770. if (absent && !hasOwn(prop, 'default')) {
  4771. value = false;
  4772. } else if (value === '' || value === hyphenate(key)) {
  4773. // only cast empty string / same name to boolean if
  4774. // boolean has higher priority
  4775. var stringIndex = getTypeIndex(String, prop.type);
  4776. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4777. value = true;
  4778. }
  4779. }
  4780. }
  4781. // check default value
  4782. if (value === undefined) {
  4783. value = getPropDefaultValue(vm, prop, key);
  4784. // since the default value is a fresh copy,
  4785. // make sure to observe it.
  4786. var prevShouldObserve = shouldObserve;
  4787. toggleObserving(true);
  4788. observe(value);
  4789. toggleObserving(prevShouldObserve);
  4790. }
  4791. if (
  4792. true
  4793. ) {
  4794. assertProp(prop, key, value, vm, absent);
  4795. }
  4796. return value
  4797. }
  4798. /**
  4799. * Get the default value of a prop.
  4800. */
  4801. function getPropDefaultValue (vm, prop, key) {
  4802. // no default, return undefined
  4803. if (!hasOwn(prop, 'default')) {
  4804. return undefined
  4805. }
  4806. var def = prop.default;
  4807. // warn against non-factory defaults for Object & Array
  4808. if ( true && isObject(def)) {
  4809. warn(
  4810. 'Invalid default value for prop "' + key + '": ' +
  4811. 'Props with type Object/Array must use a factory function ' +
  4812. 'to return the default value.',
  4813. vm
  4814. );
  4815. }
  4816. // the raw prop value was also undefined from previous render,
  4817. // return previous default value to avoid unnecessary watcher trigger
  4818. if (vm && vm.$options.propsData &&
  4819. vm.$options.propsData[key] === undefined &&
  4820. vm._props[key] !== undefined
  4821. ) {
  4822. return vm._props[key]
  4823. }
  4824. // call factory function for non-Function types
  4825. // a value is Function if its prototype is function even across different execution context
  4826. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4827. ? def.call(vm)
  4828. : def
  4829. }
  4830. /**
  4831. * Assert whether a prop is valid.
  4832. */
  4833. function assertProp (
  4834. prop,
  4835. name,
  4836. value,
  4837. vm,
  4838. absent
  4839. ) {
  4840. if (prop.required && absent) {
  4841. warn(
  4842. 'Missing required prop: "' + name + '"',
  4843. vm
  4844. );
  4845. return
  4846. }
  4847. if (value == null && !prop.required) {
  4848. return
  4849. }
  4850. var type = prop.type;
  4851. var valid = !type || type === true;
  4852. var expectedTypes = [];
  4853. if (type) {
  4854. if (!Array.isArray(type)) {
  4855. type = [type];
  4856. }
  4857. for (var i = 0; i < type.length && !valid; i++) {
  4858. var assertedType = assertType(value, type[i]);
  4859. expectedTypes.push(assertedType.expectedType || '');
  4860. valid = assertedType.valid;
  4861. }
  4862. }
  4863. if (!valid) {
  4864. warn(
  4865. getInvalidTypeMessage(name, value, expectedTypes),
  4866. vm
  4867. );
  4868. return
  4869. }
  4870. var validator = prop.validator;
  4871. if (validator) {
  4872. if (!validator(value)) {
  4873. warn(
  4874. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4875. vm
  4876. );
  4877. }
  4878. }
  4879. }
  4880. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4881. function assertType (value, type) {
  4882. var valid;
  4883. var expectedType = getType(type);
  4884. if (simpleCheckRE.test(expectedType)) {
  4885. var t = typeof value;
  4886. valid = t === expectedType.toLowerCase();
  4887. // for primitive wrapper objects
  4888. if (!valid && t === 'object') {
  4889. valid = value instanceof type;
  4890. }
  4891. } else if (expectedType === 'Object') {
  4892. valid = isPlainObject(value);
  4893. } else if (expectedType === 'Array') {
  4894. valid = Array.isArray(value);
  4895. } else {
  4896. valid = value instanceof type;
  4897. }
  4898. return {
  4899. valid: valid,
  4900. expectedType: expectedType
  4901. }
  4902. }
  4903. /**
  4904. * Use function string name to check built-in types,
  4905. * because a simple equality check will fail when running
  4906. * across different vms / iframes.
  4907. */
  4908. function getType (fn) {
  4909. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4910. return match ? match[1] : ''
  4911. }
  4912. function isSameType (a, b) {
  4913. return getType(a) === getType(b)
  4914. }
  4915. function getTypeIndex (type, expectedTypes) {
  4916. if (!Array.isArray(expectedTypes)) {
  4917. return isSameType(expectedTypes, type) ? 0 : -1
  4918. }
  4919. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4920. if (isSameType(expectedTypes[i], type)) {
  4921. return i
  4922. }
  4923. }
  4924. return -1
  4925. }
  4926. function getInvalidTypeMessage (name, value, expectedTypes) {
  4927. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4928. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4929. var expectedType = expectedTypes[0];
  4930. var receivedType = toRawType(value);
  4931. var expectedValue = styleValue(value, expectedType);
  4932. var receivedValue = styleValue(value, receivedType);
  4933. // check if we need to specify expected value
  4934. if (expectedTypes.length === 1 &&
  4935. isExplicable(expectedType) &&
  4936. !isBoolean(expectedType, receivedType)) {
  4937. message += " with value " + expectedValue;
  4938. }
  4939. message += ", got " + receivedType + " ";
  4940. // check if we need to specify received value
  4941. if (isExplicable(receivedType)) {
  4942. message += "with value " + receivedValue + ".";
  4943. }
  4944. return message
  4945. }
  4946. function styleValue (value, type) {
  4947. if (type === 'String') {
  4948. return ("\"" + value + "\"")
  4949. } else if (type === 'Number') {
  4950. return ("" + (Number(value)))
  4951. } else {
  4952. return ("" + value)
  4953. }
  4954. }
  4955. function isExplicable (value) {
  4956. var explicitTypes = ['string', 'number', 'boolean'];
  4957. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4958. }
  4959. function isBoolean () {
  4960. var args = [], len = arguments.length;
  4961. while ( len-- ) args[ len ] = arguments[ len ];
  4962. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4963. }
  4964. /* */
  4965. function handleError (err, vm, info) {
  4966. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4967. // See: https://github.com/vuejs/vuex/issues/1505
  4968. pushTarget();
  4969. try {
  4970. if (vm) {
  4971. var cur = vm;
  4972. while ((cur = cur.$parent)) {
  4973. var hooks = cur.$options.errorCaptured;
  4974. if (hooks) {
  4975. for (var i = 0; i < hooks.length; i++) {
  4976. try {
  4977. var capture = hooks[i].call(cur, err, vm, info) === false;
  4978. if (capture) { return }
  4979. } catch (e) {
  4980. globalHandleError(e, cur, 'errorCaptured hook');
  4981. }
  4982. }
  4983. }
  4984. }
  4985. }
  4986. globalHandleError(err, vm, info);
  4987. } finally {
  4988. popTarget();
  4989. }
  4990. }
  4991. function invokeWithErrorHandling (
  4992. handler,
  4993. context,
  4994. args,
  4995. vm,
  4996. info
  4997. ) {
  4998. var res;
  4999. try {
  5000. res = args ? handler.apply(context, args) : handler.call(context);
  5001. if (res && !res._isVue && isPromise(res) && !res._handled) {
  5002. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  5003. // issue #9511
  5004. // avoid catch triggering multiple times when nested calls
  5005. res._handled = true;
  5006. }
  5007. } catch (e) {
  5008. handleError(e, vm, info);
  5009. }
  5010. return res
  5011. }
  5012. function globalHandleError (err, vm, info) {
  5013. if (config.errorHandler) {
  5014. try {
  5015. return config.errorHandler.call(null, err, vm, info)
  5016. } catch (e) {
  5017. // if the user intentionally throws the original error in the handler,
  5018. // do not log it twice
  5019. if (e !== err) {
  5020. logError(e, null, 'config.errorHandler');
  5021. }
  5022. }
  5023. }
  5024. logError(err, vm, info);
  5025. }
  5026. function logError (err, vm, info) {
  5027. if (true) {
  5028. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5029. }
  5030. /* istanbul ignore else */
  5031. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5032. console.error(err);
  5033. } else {
  5034. throw err
  5035. }
  5036. }
  5037. /* */
  5038. var callbacks = [];
  5039. var pending = false;
  5040. function flushCallbacks () {
  5041. pending = false;
  5042. var copies = callbacks.slice(0);
  5043. callbacks.length = 0;
  5044. for (var i = 0; i < copies.length; i++) {
  5045. copies[i]();
  5046. }
  5047. }
  5048. // Here we have async deferring wrappers using microtasks.
  5049. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5050. // However, it has subtle problems when state is changed right before repaint
  5051. // (e.g. #6813, out-in transitions).
  5052. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5053. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5054. // So we now use microtasks everywhere, again.
  5055. // A major drawback of this tradeoff is that there are some scenarios
  5056. // where microtasks have too high a priority and fire in between supposedly
  5057. // sequential events (e.g. #4521, #6690, which have workarounds)
  5058. // or even between bubbling of the same event (#6566).
  5059. var timerFunc;
  5060. // The nextTick behavior leverages the microtask queue, which can be accessed
  5061. // via either native Promise.then or MutationObserver.
  5062. // MutationObserver has wider support, however it is seriously bugged in
  5063. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5064. // completely stops working after triggering a few times... so, if native
  5065. // Promise is available, we will use it:
  5066. /* istanbul ignore next, $flow-disable-line */
  5067. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5068. var p = Promise.resolve();
  5069. timerFunc = function () {
  5070. p.then(flushCallbacks);
  5071. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5072. // it can get stuck in a weird state where callbacks are pushed into the
  5073. // microtask queue but the queue isn't being flushed, until the browser
  5074. // needs to do some other work, e.g. handle a timer. Therefore we can
  5075. // "force" the microtask queue to be flushed by adding an empty timer.
  5076. if (isIOS) { setTimeout(noop); }
  5077. };
  5078. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5079. isNative(MutationObserver) ||
  5080. // PhantomJS and iOS 7.x
  5081. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5082. )) {
  5083. // Use MutationObserver where native Promise is not available,
  5084. // e.g. PhantomJS, iOS7, Android 4.4
  5085. // (#6466 MutationObserver is unreliable in IE11)
  5086. var counter = 1;
  5087. var observer = new MutationObserver(flushCallbacks);
  5088. var textNode = document.createTextNode(String(counter));
  5089. observer.observe(textNode, {
  5090. characterData: true
  5091. });
  5092. timerFunc = function () {
  5093. counter = (counter + 1) % 2;
  5094. textNode.data = String(counter);
  5095. };
  5096. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5097. // Fallback to setImmediate.
  5098. // Technically it leverages the (macro) task queue,
  5099. // but it is still a better choice than setTimeout.
  5100. timerFunc = function () {
  5101. setImmediate(flushCallbacks);
  5102. };
  5103. } else {
  5104. // Fallback to setTimeout.
  5105. timerFunc = function () {
  5106. setTimeout(flushCallbacks, 0);
  5107. };
  5108. }
  5109. function nextTick (cb, ctx) {
  5110. var _resolve;
  5111. callbacks.push(function () {
  5112. if (cb) {
  5113. try {
  5114. cb.call(ctx);
  5115. } catch (e) {
  5116. handleError(e, ctx, 'nextTick');
  5117. }
  5118. } else if (_resolve) {
  5119. _resolve(ctx);
  5120. }
  5121. });
  5122. if (!pending) {
  5123. pending = true;
  5124. timerFunc();
  5125. }
  5126. // $flow-disable-line
  5127. if (!cb && typeof Promise !== 'undefined') {
  5128. return new Promise(function (resolve) {
  5129. _resolve = resolve;
  5130. })
  5131. }
  5132. }
  5133. /* */
  5134. /* not type checking this file because flow doesn't play well with Proxy */
  5135. var initProxy;
  5136. if (true) {
  5137. var allowedGlobals = makeMap(
  5138. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5139. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5140. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5141. 'require' // for Webpack/Browserify
  5142. );
  5143. var warnNonPresent = function (target, key) {
  5144. warn(
  5145. "Property or method \"" + key + "\" is not defined on the instance but " +
  5146. 'referenced during render. Make sure that this property is reactive, ' +
  5147. 'either in the data option, or for class-based components, by ' +
  5148. 'initializing the property. ' +
  5149. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5150. target
  5151. );
  5152. };
  5153. var warnReservedPrefix = function (target, key) {
  5154. warn(
  5155. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5156. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5157. 'prevent conflicts with Vue internals. ' +
  5158. 'See: https://vuejs.org/v2/api/#data',
  5159. target
  5160. );
  5161. };
  5162. var hasProxy =
  5163. typeof Proxy !== 'undefined' && isNative(Proxy);
  5164. if (hasProxy) {
  5165. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5166. config.keyCodes = new Proxy(config.keyCodes, {
  5167. set: function set (target, key, value) {
  5168. if (isBuiltInModifier(key)) {
  5169. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5170. return false
  5171. } else {
  5172. target[key] = value;
  5173. return true
  5174. }
  5175. }
  5176. });
  5177. }
  5178. var hasHandler = {
  5179. has: function has (target, key) {
  5180. var has = key in target;
  5181. var isAllowed = allowedGlobals(key) ||
  5182. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5183. if (!has && !isAllowed) {
  5184. if (key in target.$data) { warnReservedPrefix(target, key); }
  5185. else { warnNonPresent(target, key); }
  5186. }
  5187. return has || !isAllowed
  5188. }
  5189. };
  5190. var getHandler = {
  5191. get: function get (target, key) {
  5192. if (typeof key === 'string' && !(key in target)) {
  5193. if (key in target.$data) { warnReservedPrefix(target, key); }
  5194. else { warnNonPresent(target, key); }
  5195. }
  5196. return target[key]
  5197. }
  5198. };
  5199. initProxy = function initProxy (vm) {
  5200. if (hasProxy) {
  5201. // determine which proxy handler to use
  5202. var options = vm.$options;
  5203. var handlers = options.render && options.render._withStripped
  5204. ? getHandler
  5205. : hasHandler;
  5206. vm._renderProxy = new Proxy(vm, handlers);
  5207. } else {
  5208. vm._renderProxy = vm;
  5209. }
  5210. };
  5211. }
  5212. /* */
  5213. var seenObjects = new _Set();
  5214. /**
  5215. * Recursively traverse an object to evoke all converted
  5216. * getters, so that every nested property inside the object
  5217. * is collected as a "deep" dependency.
  5218. */
  5219. function traverse (val) {
  5220. _traverse(val, seenObjects);
  5221. seenObjects.clear();
  5222. }
  5223. function _traverse (val, seen) {
  5224. var i, keys;
  5225. var isA = Array.isArray(val);
  5226. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5227. return
  5228. }
  5229. if (val.__ob__) {
  5230. var depId = val.__ob__.dep.id;
  5231. if (seen.has(depId)) {
  5232. return
  5233. }
  5234. seen.add(depId);
  5235. }
  5236. if (isA) {
  5237. i = val.length;
  5238. while (i--) { _traverse(val[i], seen); }
  5239. } else {
  5240. keys = Object.keys(val);
  5241. i = keys.length;
  5242. while (i--) { _traverse(val[keys[i]], seen); }
  5243. }
  5244. }
  5245. var mark;
  5246. var measure;
  5247. if (true) {
  5248. var perf = inBrowser && window.performance;
  5249. /* istanbul ignore if */
  5250. if (
  5251. perf &&
  5252. perf.mark &&
  5253. perf.measure &&
  5254. perf.clearMarks &&
  5255. perf.clearMeasures
  5256. ) {
  5257. mark = function (tag) { return perf.mark(tag); };
  5258. measure = function (name, startTag, endTag) {
  5259. perf.measure(name, startTag, endTag);
  5260. perf.clearMarks(startTag);
  5261. perf.clearMarks(endTag);
  5262. // perf.clearMeasures(name)
  5263. };
  5264. }
  5265. }
  5266. /* */
  5267. var normalizeEvent = cached(function (name) {
  5268. var passive = name.charAt(0) === '&';
  5269. name = passive ? name.slice(1) : name;
  5270. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5271. name = once$$1 ? name.slice(1) : name;
  5272. var capture = name.charAt(0) === '!';
  5273. name = capture ? name.slice(1) : name;
  5274. return {
  5275. name: name,
  5276. once: once$$1,
  5277. capture: capture,
  5278. passive: passive
  5279. }
  5280. });
  5281. function createFnInvoker (fns, vm) {
  5282. function invoker () {
  5283. var arguments$1 = arguments;
  5284. var fns = invoker.fns;
  5285. if (Array.isArray(fns)) {
  5286. var cloned = fns.slice();
  5287. for (var i = 0; i < cloned.length; i++) {
  5288. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5289. }
  5290. } else {
  5291. // return handler return value for single handlers
  5292. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5293. }
  5294. }
  5295. invoker.fns = fns;
  5296. return invoker
  5297. }
  5298. function updateListeners (
  5299. on,
  5300. oldOn,
  5301. add,
  5302. remove$$1,
  5303. createOnceHandler,
  5304. vm
  5305. ) {
  5306. var name, def$$1, cur, old, event;
  5307. for (name in on) {
  5308. def$$1 = cur = on[name];
  5309. old = oldOn[name];
  5310. event = normalizeEvent(name);
  5311. if (isUndef(cur)) {
  5312. true && warn(
  5313. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5314. vm
  5315. );
  5316. } else if (isUndef(old)) {
  5317. if (isUndef(cur.fns)) {
  5318. cur = on[name] = createFnInvoker(cur, vm);
  5319. }
  5320. if (isTrue(event.once)) {
  5321. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5322. }
  5323. add(event.name, cur, event.capture, event.passive, event.params);
  5324. } else if (cur !== old) {
  5325. old.fns = cur;
  5326. on[name] = old;
  5327. }
  5328. }
  5329. for (name in oldOn) {
  5330. if (isUndef(on[name])) {
  5331. event = normalizeEvent(name);
  5332. remove$$1(event.name, oldOn[name], event.capture);
  5333. }
  5334. }
  5335. }
  5336. /* */
  5337. /* */
  5338. // fixed by xxxxxx (mp properties)
  5339. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5340. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5341. if (isUndef(propOptions)) {
  5342. return res
  5343. }
  5344. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5345. var attrs = data.attrs;
  5346. var props = data.props;
  5347. if (isDef(attrs) || isDef(props)) {
  5348. for (var key in propOptions) {
  5349. var altKey = hyphenate(key);
  5350. var result = checkProp(res, props, key, altKey, true) ||
  5351. checkProp(res, attrs, key, altKey, false);
  5352. // externalClass
  5353. if (
  5354. result &&
  5355. res[key] &&
  5356. externalClasses.indexOf(altKey) !== -1 &&
  5357. context[camelize(res[key])]
  5358. ) {
  5359. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5360. res[key] = context[camelize(res[key])];
  5361. }
  5362. }
  5363. }
  5364. return res
  5365. }
  5366. function extractPropsFromVNodeData (
  5367. data,
  5368. Ctor,
  5369. tag,
  5370. context// fixed by xxxxxx
  5371. ) {
  5372. // we are only extracting raw values here.
  5373. // validation and default values are handled in the child
  5374. // component itself.
  5375. var propOptions = Ctor.options.props;
  5376. if (isUndef(propOptions)) {
  5377. // fixed by xxxxxx
  5378. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5379. }
  5380. var res = {};
  5381. var attrs = data.attrs;
  5382. var props = data.props;
  5383. if (isDef(attrs) || isDef(props)) {
  5384. for (var key in propOptions) {
  5385. var altKey = hyphenate(key);
  5386. if (true) {
  5387. var keyInLowerCase = key.toLowerCase();
  5388. if (
  5389. key !== keyInLowerCase &&
  5390. attrs && hasOwn(attrs, keyInLowerCase)
  5391. ) {
  5392. tip(
  5393. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5394. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5395. " \"" + key + "\". " +
  5396. "Note that HTML attributes are case-insensitive and camelCased " +
  5397. "props need to use their kebab-case equivalents when using in-DOM " +
  5398. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5399. );
  5400. }
  5401. }
  5402. checkProp(res, props, key, altKey, true) ||
  5403. checkProp(res, attrs, key, altKey, false);
  5404. }
  5405. }
  5406. // fixed by xxxxxx
  5407. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5408. }
  5409. function checkProp (
  5410. res,
  5411. hash,
  5412. key,
  5413. altKey,
  5414. preserve
  5415. ) {
  5416. if (isDef(hash)) {
  5417. if (hasOwn(hash, key)) {
  5418. res[key] = hash[key];
  5419. if (!preserve) {
  5420. delete hash[key];
  5421. }
  5422. return true
  5423. } else if (hasOwn(hash, altKey)) {
  5424. res[key] = hash[altKey];
  5425. if (!preserve) {
  5426. delete hash[altKey];
  5427. }
  5428. return true
  5429. }
  5430. }
  5431. return false
  5432. }
  5433. /* */
  5434. // The template compiler attempts to minimize the need for normalization by
  5435. // statically analyzing the template at compile time.
  5436. //
  5437. // For plain HTML markup, normalization can be completely skipped because the
  5438. // generated render function is guaranteed to return Array<VNode>. There are
  5439. // two cases where extra normalization is needed:
  5440. // 1. When the children contains components - because a functional component
  5441. // may return an Array instead of a single root. In this case, just a simple
  5442. // normalization is needed - if any child is an Array, we flatten the whole
  5443. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5444. // because functional components already normalize their own children.
  5445. function simpleNormalizeChildren (children) {
  5446. for (var i = 0; i < children.length; i++) {
  5447. if (Array.isArray(children[i])) {
  5448. return Array.prototype.concat.apply([], children)
  5449. }
  5450. }
  5451. return children
  5452. }
  5453. // 2. When the children contains constructs that always generated nested Arrays,
  5454. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5455. // with hand-written render functions / JSX. In such cases a full normalization
  5456. // is needed to cater to all possible types of children values.
  5457. function normalizeChildren (children) {
  5458. return isPrimitive(children)
  5459. ? [createTextVNode(children)]
  5460. : Array.isArray(children)
  5461. ? normalizeArrayChildren(children)
  5462. : undefined
  5463. }
  5464. function isTextNode (node) {
  5465. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5466. }
  5467. function normalizeArrayChildren (children, nestedIndex) {
  5468. var res = [];
  5469. var i, c, lastIndex, last;
  5470. for (i = 0; i < children.length; i++) {
  5471. c = children[i];
  5472. if (isUndef(c) || typeof c === 'boolean') { continue }
  5473. lastIndex = res.length - 1;
  5474. last = res[lastIndex];
  5475. // nested
  5476. if (Array.isArray(c)) {
  5477. if (c.length > 0) {
  5478. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5479. // merge adjacent text nodes
  5480. if (isTextNode(c[0]) && isTextNode(last)) {
  5481. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5482. c.shift();
  5483. }
  5484. res.push.apply(res, c);
  5485. }
  5486. } else if (isPrimitive(c)) {
  5487. if (isTextNode(last)) {
  5488. // merge adjacent text nodes
  5489. // this is necessary for SSR hydration because text nodes are
  5490. // essentially merged when rendered to HTML strings
  5491. res[lastIndex] = createTextVNode(last.text + c);
  5492. } else if (c !== '') {
  5493. // convert primitive to vnode
  5494. res.push(createTextVNode(c));
  5495. }
  5496. } else {
  5497. if (isTextNode(c) && isTextNode(last)) {
  5498. // merge adjacent text nodes
  5499. res[lastIndex] = createTextVNode(last.text + c.text);
  5500. } else {
  5501. // default key for nested array children (likely generated by v-for)
  5502. if (isTrue(children._isVList) &&
  5503. isDef(c.tag) &&
  5504. isUndef(c.key) &&
  5505. isDef(nestedIndex)) {
  5506. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5507. }
  5508. res.push(c);
  5509. }
  5510. }
  5511. }
  5512. return res
  5513. }
  5514. /* */
  5515. function initProvide (vm) {
  5516. var provide = vm.$options.provide;
  5517. if (provide) {
  5518. vm._provided = typeof provide === 'function'
  5519. ? provide.call(vm)
  5520. : provide;
  5521. }
  5522. }
  5523. function initInjections (vm) {
  5524. var result = resolveInject(vm.$options.inject, vm);
  5525. if (result) {
  5526. toggleObserving(false);
  5527. Object.keys(result).forEach(function (key) {
  5528. /* istanbul ignore else */
  5529. if (true) {
  5530. defineReactive$$1(vm, key, result[key], function () {
  5531. warn(
  5532. "Avoid mutating an injected value directly since the changes will be " +
  5533. "overwritten whenever the provided component re-renders. " +
  5534. "injection being mutated: \"" + key + "\"",
  5535. vm
  5536. );
  5537. });
  5538. } else {}
  5539. });
  5540. toggleObserving(true);
  5541. }
  5542. }
  5543. function resolveInject (inject, vm) {
  5544. if (inject) {
  5545. // inject is :any because flow is not smart enough to figure out cached
  5546. var result = Object.create(null);
  5547. var keys = hasSymbol
  5548. ? Reflect.ownKeys(inject)
  5549. : Object.keys(inject);
  5550. for (var i = 0; i < keys.length; i++) {
  5551. var key = keys[i];
  5552. // #6574 in case the inject object is observed...
  5553. if (key === '__ob__') { continue }
  5554. var provideKey = inject[key].from;
  5555. var source = vm;
  5556. while (source) {
  5557. if (source._provided && hasOwn(source._provided, provideKey)) {
  5558. result[key] = source._provided[provideKey];
  5559. break
  5560. }
  5561. source = source.$parent;
  5562. }
  5563. if (!source) {
  5564. if ('default' in inject[key]) {
  5565. var provideDefault = inject[key].default;
  5566. result[key] = typeof provideDefault === 'function'
  5567. ? provideDefault.call(vm)
  5568. : provideDefault;
  5569. } else if (true) {
  5570. warn(("Injection \"" + key + "\" not found"), vm);
  5571. }
  5572. }
  5573. }
  5574. return result
  5575. }
  5576. }
  5577. /* */
  5578. /**
  5579. * Runtime helper for resolving raw children VNodes into a slot object.
  5580. */
  5581. function resolveSlots (
  5582. children,
  5583. context
  5584. ) {
  5585. if (!children || !children.length) {
  5586. return {}
  5587. }
  5588. var slots = {};
  5589. for (var i = 0, l = children.length; i < l; i++) {
  5590. var child = children[i];
  5591. var data = child.data;
  5592. // remove slot attribute if the node is resolved as a Vue slot node
  5593. if (data && data.attrs && data.attrs.slot) {
  5594. delete data.attrs.slot;
  5595. }
  5596. // named slots should only be respected if the vnode was rendered in the
  5597. // same context.
  5598. if ((child.context === context || child.fnContext === context) &&
  5599. data && data.slot != null
  5600. ) {
  5601. var name = data.slot;
  5602. var slot = (slots[name] || (slots[name] = []));
  5603. if (child.tag === 'template') {
  5604. slot.push.apply(slot, child.children || []);
  5605. } else {
  5606. slot.push(child);
  5607. }
  5608. } else {
  5609. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5610. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5611. (slots['page'] || (slots['page'] = [])).push(child);
  5612. }else{
  5613. (slots.default || (slots.default = [])).push(child);
  5614. }
  5615. }
  5616. }
  5617. // ignore slots that contains only whitespace
  5618. for (var name$1 in slots) {
  5619. if (slots[name$1].every(isWhitespace)) {
  5620. delete slots[name$1];
  5621. }
  5622. }
  5623. return slots
  5624. }
  5625. function isWhitespace (node) {
  5626. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5627. }
  5628. /* */
  5629. function normalizeScopedSlots (
  5630. slots,
  5631. normalSlots,
  5632. prevSlots
  5633. ) {
  5634. var res;
  5635. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5636. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5637. var key = slots && slots.$key;
  5638. if (!slots) {
  5639. res = {};
  5640. } else if (slots._normalized) {
  5641. // fast path 1: child component re-render only, parent did not change
  5642. return slots._normalized
  5643. } else if (
  5644. isStable &&
  5645. prevSlots &&
  5646. prevSlots !== emptyObject &&
  5647. key === prevSlots.$key &&
  5648. !hasNormalSlots &&
  5649. !prevSlots.$hasNormal
  5650. ) {
  5651. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5652. // only need to normalize once
  5653. return prevSlots
  5654. } else {
  5655. res = {};
  5656. for (var key$1 in slots) {
  5657. if (slots[key$1] && key$1[0] !== '$') {
  5658. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5659. }
  5660. }
  5661. }
  5662. // expose normal slots on scopedSlots
  5663. for (var key$2 in normalSlots) {
  5664. if (!(key$2 in res)) {
  5665. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5666. }
  5667. }
  5668. // avoriaz seems to mock a non-extensible $scopedSlots object
  5669. // and when that is passed down this would cause an error
  5670. if (slots && Object.isExtensible(slots)) {
  5671. (slots)._normalized = res;
  5672. }
  5673. def(res, '$stable', isStable);
  5674. def(res, '$key', key);
  5675. def(res, '$hasNormal', hasNormalSlots);
  5676. return res
  5677. }
  5678. function normalizeScopedSlot(normalSlots, key, fn) {
  5679. var normalized = function () {
  5680. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5681. res = res && typeof res === 'object' && !Array.isArray(res)
  5682. ? [res] // single vnode
  5683. : normalizeChildren(res);
  5684. return res && (
  5685. res.length === 0 ||
  5686. (res.length === 1 && res[0].isComment) // #9658
  5687. ) ? undefined
  5688. : res
  5689. };
  5690. // this is a slot using the new v-slot syntax without scope. although it is
  5691. // compiled as a scoped slot, render fn users would expect it to be present
  5692. // on this.$slots because the usage is semantically a normal slot.
  5693. if (fn.proxy) {
  5694. Object.defineProperty(normalSlots, key, {
  5695. get: normalized,
  5696. enumerable: true,
  5697. configurable: true
  5698. });
  5699. }
  5700. return normalized
  5701. }
  5702. function proxyNormalSlot(slots, key) {
  5703. return function () { return slots[key]; }
  5704. }
  5705. /* */
  5706. /**
  5707. * Runtime helper for rendering v-for lists.
  5708. */
  5709. function renderList (
  5710. val,
  5711. render
  5712. ) {
  5713. var ret, i, l, keys, key;
  5714. if (Array.isArray(val) || typeof val === 'string') {
  5715. ret = new Array(val.length);
  5716. for (i = 0, l = val.length; i < l; i++) {
  5717. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5718. }
  5719. } else if (typeof val === 'number') {
  5720. ret = new Array(val);
  5721. for (i = 0; i < val; i++) {
  5722. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5723. }
  5724. } else if (isObject(val)) {
  5725. if (hasSymbol && val[Symbol.iterator]) {
  5726. ret = [];
  5727. var iterator = val[Symbol.iterator]();
  5728. var result = iterator.next();
  5729. while (!result.done) {
  5730. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5731. result = iterator.next();
  5732. }
  5733. } else {
  5734. keys = Object.keys(val);
  5735. ret = new Array(keys.length);
  5736. for (i = 0, l = keys.length; i < l; i++) {
  5737. key = keys[i];
  5738. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5739. }
  5740. }
  5741. }
  5742. if (!isDef(ret)) {
  5743. ret = [];
  5744. }
  5745. (ret)._isVList = true;
  5746. return ret
  5747. }
  5748. /* */
  5749. /**
  5750. * Runtime helper for rendering <slot>
  5751. */
  5752. function renderSlot (
  5753. name,
  5754. fallback,
  5755. props,
  5756. bindObject
  5757. ) {
  5758. var scopedSlotFn = this.$scopedSlots[name];
  5759. var nodes;
  5760. if (scopedSlotFn) { // scoped slot
  5761. props = props || {};
  5762. if (bindObject) {
  5763. if ( true && !isObject(bindObject)) {
  5764. warn(
  5765. 'slot v-bind without argument expects an Object',
  5766. this
  5767. );
  5768. }
  5769. props = extend(extend({}, bindObject), props);
  5770. }
  5771. // fixed by xxxxxx app-plus scopedSlot
  5772. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5773. } else {
  5774. nodes = this.$slots[name] || fallback;
  5775. }
  5776. var target = props && props.slot;
  5777. if (target) {
  5778. return this.$createElement('template', { slot: target }, nodes)
  5779. } else {
  5780. return nodes
  5781. }
  5782. }
  5783. /* */
  5784. /**
  5785. * Runtime helper for resolving filters
  5786. */
  5787. function resolveFilter (id) {
  5788. return resolveAsset(this.$options, 'filters', id, true) || identity
  5789. }
  5790. /* */
  5791. function isKeyNotMatch (expect, actual) {
  5792. if (Array.isArray(expect)) {
  5793. return expect.indexOf(actual) === -1
  5794. } else {
  5795. return expect !== actual
  5796. }
  5797. }
  5798. /**
  5799. * Runtime helper for checking keyCodes from config.
  5800. * exposed as Vue.prototype._k
  5801. * passing in eventKeyName as last argument separately for backwards compat
  5802. */
  5803. function checkKeyCodes (
  5804. eventKeyCode,
  5805. key,
  5806. builtInKeyCode,
  5807. eventKeyName,
  5808. builtInKeyName
  5809. ) {
  5810. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5811. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5812. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5813. } else if (mappedKeyCode) {
  5814. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5815. } else if (eventKeyName) {
  5816. return hyphenate(eventKeyName) !== key
  5817. }
  5818. }
  5819. /* */
  5820. /**
  5821. * Runtime helper for merging v-bind="object" into a VNode's data.
  5822. */
  5823. function bindObjectProps (
  5824. data,
  5825. tag,
  5826. value,
  5827. asProp,
  5828. isSync
  5829. ) {
  5830. if (value) {
  5831. if (!isObject(value)) {
  5832. true && warn(
  5833. 'v-bind without argument expects an Object or Array value',
  5834. this
  5835. );
  5836. } else {
  5837. if (Array.isArray(value)) {
  5838. value = toObject(value);
  5839. }
  5840. var hash;
  5841. var loop = function ( key ) {
  5842. if (
  5843. key === 'class' ||
  5844. key === 'style' ||
  5845. isReservedAttribute(key)
  5846. ) {
  5847. hash = data;
  5848. } else {
  5849. var type = data.attrs && data.attrs.type;
  5850. hash = asProp || config.mustUseProp(tag, type, key)
  5851. ? data.domProps || (data.domProps = {})
  5852. : data.attrs || (data.attrs = {});
  5853. }
  5854. var camelizedKey = camelize(key);
  5855. var hyphenatedKey = hyphenate(key);
  5856. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5857. hash[key] = value[key];
  5858. if (isSync) {
  5859. var on = data.on || (data.on = {});
  5860. on[("update:" + key)] = function ($event) {
  5861. value[key] = $event;
  5862. };
  5863. }
  5864. }
  5865. };
  5866. for (var key in value) loop( key );
  5867. }
  5868. }
  5869. return data
  5870. }
  5871. /* */
  5872. /**
  5873. * Runtime helper for rendering static trees.
  5874. */
  5875. function renderStatic (
  5876. index,
  5877. isInFor
  5878. ) {
  5879. var cached = this._staticTrees || (this._staticTrees = []);
  5880. var tree = cached[index];
  5881. // if has already-rendered static tree and not inside v-for,
  5882. // we can reuse the same tree.
  5883. if (tree && !isInFor) {
  5884. return tree
  5885. }
  5886. // otherwise, render a fresh tree.
  5887. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5888. this._renderProxy,
  5889. null,
  5890. this // for render fns generated for functional component templates
  5891. );
  5892. markStatic(tree, ("__static__" + index), false);
  5893. return tree
  5894. }
  5895. /**
  5896. * Runtime helper for v-once.
  5897. * Effectively it means marking the node as static with a unique key.
  5898. */
  5899. function markOnce (
  5900. tree,
  5901. index,
  5902. key
  5903. ) {
  5904. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5905. return tree
  5906. }
  5907. function markStatic (
  5908. tree,
  5909. key,
  5910. isOnce
  5911. ) {
  5912. if (Array.isArray(tree)) {
  5913. for (var i = 0; i < tree.length; i++) {
  5914. if (tree[i] && typeof tree[i] !== 'string') {
  5915. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5916. }
  5917. }
  5918. } else {
  5919. markStaticNode(tree, key, isOnce);
  5920. }
  5921. }
  5922. function markStaticNode (node, key, isOnce) {
  5923. node.isStatic = true;
  5924. node.key = key;
  5925. node.isOnce = isOnce;
  5926. }
  5927. /* */
  5928. function bindObjectListeners (data, value) {
  5929. if (value) {
  5930. if (!isPlainObject(value)) {
  5931. true && warn(
  5932. 'v-on without argument expects an Object value',
  5933. this
  5934. );
  5935. } else {
  5936. var on = data.on = data.on ? extend({}, data.on) : {};
  5937. for (var key in value) {
  5938. var existing = on[key];
  5939. var ours = value[key];
  5940. on[key] = existing ? [].concat(existing, ours) : ours;
  5941. }
  5942. }
  5943. }
  5944. return data
  5945. }
  5946. /* */
  5947. function resolveScopedSlots (
  5948. fns, // see flow/vnode
  5949. res,
  5950. // the following are added in 2.6
  5951. hasDynamicKeys,
  5952. contentHashKey
  5953. ) {
  5954. res = res || { $stable: !hasDynamicKeys };
  5955. for (var i = 0; i < fns.length; i++) {
  5956. var slot = fns[i];
  5957. if (Array.isArray(slot)) {
  5958. resolveScopedSlots(slot, res, hasDynamicKeys);
  5959. } else if (slot) {
  5960. // marker for reverse proxying v-slot without scope on this.$slots
  5961. if (slot.proxy) {
  5962. slot.fn.proxy = true;
  5963. }
  5964. res[slot.key] = slot.fn;
  5965. }
  5966. }
  5967. if (contentHashKey) {
  5968. (res).$key = contentHashKey;
  5969. }
  5970. return res
  5971. }
  5972. /* */
  5973. function bindDynamicKeys (baseObj, values) {
  5974. for (var i = 0; i < values.length; i += 2) {
  5975. var key = values[i];
  5976. if (typeof key === 'string' && key) {
  5977. baseObj[values[i]] = values[i + 1];
  5978. } else if ( true && key !== '' && key !== null) {
  5979. // null is a special value for explicitly removing a binding
  5980. warn(
  5981. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5982. this
  5983. );
  5984. }
  5985. }
  5986. return baseObj
  5987. }
  5988. // helper to dynamically append modifier runtime markers to event names.
  5989. // ensure only append when value is already string, otherwise it will be cast
  5990. // to string and cause the type check to miss.
  5991. function prependModifier (value, symbol) {
  5992. return typeof value === 'string' ? symbol + value : value
  5993. }
  5994. /* */
  5995. function installRenderHelpers (target) {
  5996. target._o = markOnce;
  5997. target._n = toNumber;
  5998. target._s = toString;
  5999. target._l = renderList;
  6000. target._t = renderSlot;
  6001. target._q = looseEqual;
  6002. target._i = looseIndexOf;
  6003. target._m = renderStatic;
  6004. target._f = resolveFilter;
  6005. target._k = checkKeyCodes;
  6006. target._b = bindObjectProps;
  6007. target._v = createTextVNode;
  6008. target._e = createEmptyVNode;
  6009. target._u = resolveScopedSlots;
  6010. target._g = bindObjectListeners;
  6011. target._d = bindDynamicKeys;
  6012. target._p = prependModifier;
  6013. }
  6014. /* */
  6015. function FunctionalRenderContext (
  6016. data,
  6017. props,
  6018. children,
  6019. parent,
  6020. Ctor
  6021. ) {
  6022. var this$1 = this;
  6023. var options = Ctor.options;
  6024. // ensure the createElement function in functional components
  6025. // gets a unique context - this is necessary for correct named slot check
  6026. var contextVm;
  6027. if (hasOwn(parent, '_uid')) {
  6028. contextVm = Object.create(parent);
  6029. // $flow-disable-line
  6030. contextVm._original = parent;
  6031. } else {
  6032. // the context vm passed in is a functional context as well.
  6033. // in this case we want to make sure we are able to get a hold to the
  6034. // real context instance.
  6035. contextVm = parent;
  6036. // $flow-disable-line
  6037. parent = parent._original;
  6038. }
  6039. var isCompiled = isTrue(options._compiled);
  6040. var needNormalization = !isCompiled;
  6041. this.data = data;
  6042. this.props = props;
  6043. this.children = children;
  6044. this.parent = parent;
  6045. this.listeners = data.on || emptyObject;
  6046. this.injections = resolveInject(options.inject, parent);
  6047. this.slots = function () {
  6048. if (!this$1.$slots) {
  6049. normalizeScopedSlots(
  6050. data.scopedSlots,
  6051. this$1.$slots = resolveSlots(children, parent)
  6052. );
  6053. }
  6054. return this$1.$slots
  6055. };
  6056. Object.defineProperty(this, 'scopedSlots', ({
  6057. enumerable: true,
  6058. get: function get () {
  6059. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6060. }
  6061. }));
  6062. // support for compiled functional template
  6063. if (isCompiled) {
  6064. // exposing $options for renderStatic()
  6065. this.$options = options;
  6066. // pre-resolve slots for renderSlot()
  6067. this.$slots = this.slots();
  6068. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6069. }
  6070. if (options._scopeId) {
  6071. this._c = function (a, b, c, d) {
  6072. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6073. if (vnode && !Array.isArray(vnode)) {
  6074. vnode.fnScopeId = options._scopeId;
  6075. vnode.fnContext = parent;
  6076. }
  6077. return vnode
  6078. };
  6079. } else {
  6080. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6081. }
  6082. }
  6083. installRenderHelpers(FunctionalRenderContext.prototype);
  6084. function createFunctionalComponent (
  6085. Ctor,
  6086. propsData,
  6087. data,
  6088. contextVm,
  6089. children
  6090. ) {
  6091. var options = Ctor.options;
  6092. var props = {};
  6093. var propOptions = options.props;
  6094. if (isDef(propOptions)) {
  6095. for (var key in propOptions) {
  6096. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6097. }
  6098. } else {
  6099. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6100. if (isDef(data.props)) { mergeProps(props, data.props); }
  6101. }
  6102. var renderContext = new FunctionalRenderContext(
  6103. data,
  6104. props,
  6105. children,
  6106. contextVm,
  6107. Ctor
  6108. );
  6109. var vnode = options.render.call(null, renderContext._c, renderContext);
  6110. if (vnode instanceof VNode) {
  6111. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6112. } else if (Array.isArray(vnode)) {
  6113. var vnodes = normalizeChildren(vnode) || [];
  6114. var res = new Array(vnodes.length);
  6115. for (var i = 0; i < vnodes.length; i++) {
  6116. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6117. }
  6118. return res
  6119. }
  6120. }
  6121. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6122. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6123. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6124. // that should not be matched to match.
  6125. var clone = cloneVNode(vnode);
  6126. clone.fnContext = contextVm;
  6127. clone.fnOptions = options;
  6128. if (true) {
  6129. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6130. }
  6131. if (data.slot) {
  6132. (clone.data || (clone.data = {})).slot = data.slot;
  6133. }
  6134. return clone
  6135. }
  6136. function mergeProps (to, from) {
  6137. for (var key in from) {
  6138. to[camelize(key)] = from[key];
  6139. }
  6140. }
  6141. /* */
  6142. /* */
  6143. /* */
  6144. /* */
  6145. // inline hooks to be invoked on component VNodes during patch
  6146. var componentVNodeHooks = {
  6147. init: function init (vnode, hydrating) {
  6148. if (
  6149. vnode.componentInstance &&
  6150. !vnode.componentInstance._isDestroyed &&
  6151. vnode.data.keepAlive
  6152. ) {
  6153. // kept-alive components, treat as a patch
  6154. var mountedNode = vnode; // work around flow
  6155. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6156. } else {
  6157. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6158. vnode,
  6159. activeInstance
  6160. );
  6161. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6162. }
  6163. },
  6164. prepatch: function prepatch (oldVnode, vnode) {
  6165. var options = vnode.componentOptions;
  6166. var child = vnode.componentInstance = oldVnode.componentInstance;
  6167. updateChildComponent(
  6168. child,
  6169. options.propsData, // updated props
  6170. options.listeners, // updated listeners
  6171. vnode, // new parent vnode
  6172. options.children // new children
  6173. );
  6174. },
  6175. insert: function insert (vnode) {
  6176. var context = vnode.context;
  6177. var componentInstance = vnode.componentInstance;
  6178. if (!componentInstance._isMounted) {
  6179. callHook(componentInstance, 'onServiceCreated');
  6180. callHook(componentInstance, 'onServiceAttached');
  6181. componentInstance._isMounted = true;
  6182. callHook(componentInstance, 'mounted');
  6183. }
  6184. if (vnode.data.keepAlive) {
  6185. if (context._isMounted) {
  6186. // vue-router#1212
  6187. // During updates, a kept-alive component's child components may
  6188. // change, so directly walking the tree here may call activated hooks
  6189. // on incorrect children. Instead we push them into a queue which will
  6190. // be processed after the whole patch process ended.
  6191. queueActivatedComponent(componentInstance);
  6192. } else {
  6193. activateChildComponent(componentInstance, true /* direct */);
  6194. }
  6195. }
  6196. },
  6197. destroy: function destroy (vnode) {
  6198. var componentInstance = vnode.componentInstance;
  6199. if (!componentInstance._isDestroyed) {
  6200. if (!vnode.data.keepAlive) {
  6201. componentInstance.$destroy();
  6202. } else {
  6203. deactivateChildComponent(componentInstance, true /* direct */);
  6204. }
  6205. }
  6206. }
  6207. };
  6208. var hooksToMerge = Object.keys(componentVNodeHooks);
  6209. function createComponent (
  6210. Ctor,
  6211. data,
  6212. context,
  6213. children,
  6214. tag
  6215. ) {
  6216. if (isUndef(Ctor)) {
  6217. return
  6218. }
  6219. var baseCtor = context.$options._base;
  6220. // plain options object: turn it into a constructor
  6221. if (isObject(Ctor)) {
  6222. Ctor = baseCtor.extend(Ctor);
  6223. }
  6224. // if at this stage it's not a constructor or an async component factory,
  6225. // reject.
  6226. if (typeof Ctor !== 'function') {
  6227. if (true) {
  6228. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6229. }
  6230. return
  6231. }
  6232. // async component
  6233. var asyncFactory;
  6234. if (isUndef(Ctor.cid)) {
  6235. asyncFactory = Ctor;
  6236. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6237. if (Ctor === undefined) {
  6238. // return a placeholder node for async component, which is rendered
  6239. // as a comment node but preserves all the raw information for the node.
  6240. // the information will be used for async server-rendering and hydration.
  6241. return createAsyncPlaceholder(
  6242. asyncFactory,
  6243. data,
  6244. context,
  6245. children,
  6246. tag
  6247. )
  6248. }
  6249. }
  6250. data = data || {};
  6251. // resolve constructor options in case global mixins are applied after
  6252. // component constructor creation
  6253. resolveConstructorOptions(Ctor);
  6254. // transform component v-model data into props & events
  6255. if (isDef(data.model)) {
  6256. transformModel(Ctor.options, data);
  6257. }
  6258. // extract props
  6259. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6260. // functional component
  6261. if (isTrue(Ctor.options.functional)) {
  6262. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6263. }
  6264. // extract listeners, since these needs to be treated as
  6265. // child component listeners instead of DOM listeners
  6266. var listeners = data.on;
  6267. // replace with listeners with .native modifier
  6268. // so it gets processed during parent component patch.
  6269. data.on = data.nativeOn;
  6270. if (isTrue(Ctor.options.abstract)) {
  6271. // abstract components do not keep anything
  6272. // other than props & listeners & slot
  6273. // work around flow
  6274. var slot = data.slot;
  6275. data = {};
  6276. if (slot) {
  6277. data.slot = slot;
  6278. }
  6279. }
  6280. // install component management hooks onto the placeholder node
  6281. installComponentHooks(data);
  6282. // return a placeholder vnode
  6283. var name = Ctor.options.name || tag;
  6284. var vnode = new VNode(
  6285. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6286. data, undefined, undefined, undefined, context,
  6287. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6288. asyncFactory
  6289. );
  6290. return vnode
  6291. }
  6292. function createComponentInstanceForVnode (
  6293. vnode, // we know it's MountedComponentVNode but flow doesn't
  6294. parent // activeInstance in lifecycle state
  6295. ) {
  6296. var options = {
  6297. _isComponent: true,
  6298. _parentVnode: vnode,
  6299. parent: parent
  6300. };
  6301. // check inline-template render functions
  6302. var inlineTemplate = vnode.data.inlineTemplate;
  6303. if (isDef(inlineTemplate)) {
  6304. options.render = inlineTemplate.render;
  6305. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6306. }
  6307. return new vnode.componentOptions.Ctor(options)
  6308. }
  6309. function installComponentHooks (data) {
  6310. var hooks = data.hook || (data.hook = {});
  6311. for (var i = 0; i < hooksToMerge.length; i++) {
  6312. var key = hooksToMerge[i];
  6313. var existing = hooks[key];
  6314. var toMerge = componentVNodeHooks[key];
  6315. if (existing !== toMerge && !(existing && existing._merged)) {
  6316. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6317. }
  6318. }
  6319. }
  6320. function mergeHook$1 (f1, f2) {
  6321. var merged = function (a, b) {
  6322. // flow complains about extra args which is why we use any
  6323. f1(a, b);
  6324. f2(a, b);
  6325. };
  6326. merged._merged = true;
  6327. return merged
  6328. }
  6329. // transform component v-model info (value and callback) into
  6330. // prop and event handler respectively.
  6331. function transformModel (options, data) {
  6332. var prop = (options.model && options.model.prop) || 'value';
  6333. var event = (options.model && options.model.event) || 'input'
  6334. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6335. var on = data.on || (data.on = {});
  6336. var existing = on[event];
  6337. var callback = data.model.callback;
  6338. if (isDef(existing)) {
  6339. if (
  6340. Array.isArray(existing)
  6341. ? existing.indexOf(callback) === -1
  6342. : existing !== callback
  6343. ) {
  6344. on[event] = [callback].concat(existing);
  6345. }
  6346. } else {
  6347. on[event] = callback;
  6348. }
  6349. }
  6350. /* */
  6351. var SIMPLE_NORMALIZE = 1;
  6352. var ALWAYS_NORMALIZE = 2;
  6353. // wrapper function for providing a more flexible interface
  6354. // without getting yelled at by flow
  6355. function createElement (
  6356. context,
  6357. tag,
  6358. data,
  6359. children,
  6360. normalizationType,
  6361. alwaysNormalize
  6362. ) {
  6363. if (Array.isArray(data) || isPrimitive(data)) {
  6364. normalizationType = children;
  6365. children = data;
  6366. data = undefined;
  6367. }
  6368. if (isTrue(alwaysNormalize)) {
  6369. normalizationType = ALWAYS_NORMALIZE;
  6370. }
  6371. return _createElement(context, tag, data, children, normalizationType)
  6372. }
  6373. function _createElement (
  6374. context,
  6375. tag,
  6376. data,
  6377. children,
  6378. normalizationType
  6379. ) {
  6380. if (isDef(data) && isDef((data).__ob__)) {
  6381. true && warn(
  6382. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6383. 'Always create fresh vnode data objects in each render!',
  6384. context
  6385. );
  6386. return createEmptyVNode()
  6387. }
  6388. // object syntax in v-bind
  6389. if (isDef(data) && isDef(data.is)) {
  6390. tag = data.is;
  6391. }
  6392. if (!tag) {
  6393. // in case of component :is set to falsy value
  6394. return createEmptyVNode()
  6395. }
  6396. // warn against non-primitive key
  6397. if ( true &&
  6398. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6399. ) {
  6400. {
  6401. warn(
  6402. 'Avoid using non-primitive value as key, ' +
  6403. 'use string/number value instead.',
  6404. context
  6405. );
  6406. }
  6407. }
  6408. // support single function children as default scoped slot
  6409. if (Array.isArray(children) &&
  6410. typeof children[0] === 'function'
  6411. ) {
  6412. data = data || {};
  6413. data.scopedSlots = { default: children[0] };
  6414. children.length = 0;
  6415. }
  6416. if (normalizationType === ALWAYS_NORMALIZE) {
  6417. children = normalizeChildren(children);
  6418. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6419. children = simpleNormalizeChildren(children);
  6420. }
  6421. var vnode, ns;
  6422. if (typeof tag === 'string') {
  6423. var Ctor;
  6424. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6425. if (config.isReservedTag(tag)) {
  6426. // platform built-in elements
  6427. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6428. warn(
  6429. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6430. context
  6431. );
  6432. }
  6433. vnode = new VNode(
  6434. config.parsePlatformTagName(tag), data, children,
  6435. undefined, undefined, context
  6436. );
  6437. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6438. // component
  6439. vnode = createComponent(Ctor, data, context, children, tag);
  6440. } else {
  6441. // unknown or unlisted namespaced elements
  6442. // check at runtime because it may get assigned a namespace when its
  6443. // parent normalizes children
  6444. vnode = new VNode(
  6445. tag, data, children,
  6446. undefined, undefined, context
  6447. );
  6448. }
  6449. } else {
  6450. // direct component options / constructor
  6451. vnode = createComponent(tag, data, context, children);
  6452. }
  6453. if (Array.isArray(vnode)) {
  6454. return vnode
  6455. } else if (isDef(vnode)) {
  6456. if (isDef(ns)) { applyNS(vnode, ns); }
  6457. if (isDef(data)) { registerDeepBindings(data); }
  6458. return vnode
  6459. } else {
  6460. return createEmptyVNode()
  6461. }
  6462. }
  6463. function applyNS (vnode, ns, force) {
  6464. vnode.ns = ns;
  6465. if (vnode.tag === 'foreignObject') {
  6466. // use default namespace inside foreignObject
  6467. ns = undefined;
  6468. force = true;
  6469. }
  6470. if (isDef(vnode.children)) {
  6471. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6472. var child = vnode.children[i];
  6473. if (isDef(child.tag) && (
  6474. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6475. applyNS(child, ns, force);
  6476. }
  6477. }
  6478. }
  6479. }
  6480. // ref #5318
  6481. // necessary to ensure parent re-render when deep bindings like :style and
  6482. // :class are used on slot nodes
  6483. function registerDeepBindings (data) {
  6484. if (isObject(data.style)) {
  6485. traverse(data.style);
  6486. }
  6487. if (isObject(data.class)) {
  6488. traverse(data.class);
  6489. }
  6490. }
  6491. /* */
  6492. function initRender (vm) {
  6493. vm._vnode = null; // the root of the child tree
  6494. vm._staticTrees = null; // v-once cached trees
  6495. var options = vm.$options;
  6496. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6497. var renderContext = parentVnode && parentVnode.context;
  6498. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6499. vm.$scopedSlots = emptyObject;
  6500. // bind the createElement fn to this instance
  6501. // so that we get proper render context inside it.
  6502. // args order: tag, data, children, normalizationType, alwaysNormalize
  6503. // internal version is used by render functions compiled from templates
  6504. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6505. // normalization is always applied for the public version, used in
  6506. // user-written render functions.
  6507. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6508. // $attrs & $listeners are exposed for easier HOC creation.
  6509. // they need to be reactive so that HOCs using them are always updated
  6510. var parentData = parentVnode && parentVnode.data;
  6511. /* istanbul ignore else */
  6512. if (true) {
  6513. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6514. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6515. }, true);
  6516. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6517. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6518. }, true);
  6519. } else {}
  6520. }
  6521. var currentRenderingInstance = null;
  6522. function renderMixin (Vue) {
  6523. // install runtime convenience helpers
  6524. installRenderHelpers(Vue.prototype);
  6525. Vue.prototype.$nextTick = function (fn) {
  6526. return nextTick(fn, this)
  6527. };
  6528. Vue.prototype._render = function () {
  6529. var vm = this;
  6530. var ref = vm.$options;
  6531. var render = ref.render;
  6532. var _parentVnode = ref._parentVnode;
  6533. if (_parentVnode) {
  6534. vm.$scopedSlots = normalizeScopedSlots(
  6535. _parentVnode.data.scopedSlots,
  6536. vm.$slots,
  6537. vm.$scopedSlots
  6538. );
  6539. }
  6540. // set parent vnode. this allows render functions to have access
  6541. // to the data on the placeholder node.
  6542. vm.$vnode = _parentVnode;
  6543. // render self
  6544. var vnode;
  6545. try {
  6546. // There's no need to maintain a stack because all render fns are called
  6547. // separately from one another. Nested component's render fns are called
  6548. // when parent component is patched.
  6549. currentRenderingInstance = vm;
  6550. vnode = render.call(vm._renderProxy, vm.$createElement);
  6551. } catch (e) {
  6552. handleError(e, vm, "render");
  6553. // return error render result,
  6554. // or previous vnode to prevent render error causing blank component
  6555. /* istanbul ignore else */
  6556. if ( true && vm.$options.renderError) {
  6557. try {
  6558. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6559. } catch (e) {
  6560. handleError(e, vm, "renderError");
  6561. vnode = vm._vnode;
  6562. }
  6563. } else {
  6564. vnode = vm._vnode;
  6565. }
  6566. } finally {
  6567. currentRenderingInstance = null;
  6568. }
  6569. // if the returned array contains only a single node, allow it
  6570. if (Array.isArray(vnode) && vnode.length === 1) {
  6571. vnode = vnode[0];
  6572. }
  6573. // return empty vnode in case the render function errored out
  6574. if (!(vnode instanceof VNode)) {
  6575. if ( true && Array.isArray(vnode)) {
  6576. warn(
  6577. 'Multiple root nodes returned from render function. Render function ' +
  6578. 'should return a single root node.',
  6579. vm
  6580. );
  6581. }
  6582. vnode = createEmptyVNode();
  6583. }
  6584. // set parent
  6585. vnode.parent = _parentVnode;
  6586. return vnode
  6587. };
  6588. }
  6589. /* */
  6590. function ensureCtor (comp, base) {
  6591. if (
  6592. comp.__esModule ||
  6593. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6594. ) {
  6595. comp = comp.default;
  6596. }
  6597. return isObject(comp)
  6598. ? base.extend(comp)
  6599. : comp
  6600. }
  6601. function createAsyncPlaceholder (
  6602. factory,
  6603. data,
  6604. context,
  6605. children,
  6606. tag
  6607. ) {
  6608. var node = createEmptyVNode();
  6609. node.asyncFactory = factory;
  6610. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6611. return node
  6612. }
  6613. function resolveAsyncComponent (
  6614. factory,
  6615. baseCtor
  6616. ) {
  6617. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6618. return factory.errorComp
  6619. }
  6620. if (isDef(factory.resolved)) {
  6621. return factory.resolved
  6622. }
  6623. var owner = currentRenderingInstance;
  6624. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6625. // already pending
  6626. factory.owners.push(owner);
  6627. }
  6628. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6629. return factory.loadingComp
  6630. }
  6631. if (owner && !isDef(factory.owners)) {
  6632. var owners = factory.owners = [owner];
  6633. var sync = true;
  6634. var timerLoading = null;
  6635. var timerTimeout = null
  6636. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6637. var forceRender = function (renderCompleted) {
  6638. for (var i = 0, l = owners.length; i < l; i++) {
  6639. (owners[i]).$forceUpdate();
  6640. }
  6641. if (renderCompleted) {
  6642. owners.length = 0;
  6643. if (timerLoading !== null) {
  6644. clearTimeout(timerLoading);
  6645. timerLoading = null;
  6646. }
  6647. if (timerTimeout !== null) {
  6648. clearTimeout(timerTimeout);
  6649. timerTimeout = null;
  6650. }
  6651. }
  6652. };
  6653. var resolve = once(function (res) {
  6654. // cache resolved
  6655. factory.resolved = ensureCtor(res, baseCtor);
  6656. // invoke callbacks only if this is not a synchronous resolve
  6657. // (async resolves are shimmed as synchronous during SSR)
  6658. if (!sync) {
  6659. forceRender(true);
  6660. } else {
  6661. owners.length = 0;
  6662. }
  6663. });
  6664. var reject = once(function (reason) {
  6665. true && warn(
  6666. "Failed to resolve async component: " + (String(factory)) +
  6667. (reason ? ("\nReason: " + reason) : '')
  6668. );
  6669. if (isDef(factory.errorComp)) {
  6670. factory.error = true;
  6671. forceRender(true);
  6672. }
  6673. });
  6674. var res = factory(resolve, reject);
  6675. if (isObject(res)) {
  6676. if (isPromise(res)) {
  6677. // () => Promise
  6678. if (isUndef(factory.resolved)) {
  6679. res.then(resolve, reject);
  6680. }
  6681. } else if (isPromise(res.component)) {
  6682. res.component.then(resolve, reject);
  6683. if (isDef(res.error)) {
  6684. factory.errorComp = ensureCtor(res.error, baseCtor);
  6685. }
  6686. if (isDef(res.loading)) {
  6687. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6688. if (res.delay === 0) {
  6689. factory.loading = true;
  6690. } else {
  6691. timerLoading = setTimeout(function () {
  6692. timerLoading = null;
  6693. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6694. factory.loading = true;
  6695. forceRender(false);
  6696. }
  6697. }, res.delay || 200);
  6698. }
  6699. }
  6700. if (isDef(res.timeout)) {
  6701. timerTimeout = setTimeout(function () {
  6702. timerTimeout = null;
  6703. if (isUndef(factory.resolved)) {
  6704. reject(
  6705. true
  6706. ? ("timeout (" + (res.timeout) + "ms)")
  6707. : undefined
  6708. );
  6709. }
  6710. }, res.timeout);
  6711. }
  6712. }
  6713. }
  6714. sync = false;
  6715. // return in case resolved synchronously
  6716. return factory.loading
  6717. ? factory.loadingComp
  6718. : factory.resolved
  6719. }
  6720. }
  6721. /* */
  6722. function isAsyncPlaceholder (node) {
  6723. return node.isComment && node.asyncFactory
  6724. }
  6725. /* */
  6726. function getFirstComponentChild (children) {
  6727. if (Array.isArray(children)) {
  6728. for (var i = 0; i < children.length; i++) {
  6729. var c = children[i];
  6730. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6731. return c
  6732. }
  6733. }
  6734. }
  6735. }
  6736. /* */
  6737. /* */
  6738. function initEvents (vm) {
  6739. vm._events = Object.create(null);
  6740. vm._hasHookEvent = false;
  6741. // init parent attached events
  6742. var listeners = vm.$options._parentListeners;
  6743. if (listeners) {
  6744. updateComponentListeners(vm, listeners);
  6745. }
  6746. }
  6747. var target;
  6748. function add (event, fn) {
  6749. target.$on(event, fn);
  6750. }
  6751. function remove$1 (event, fn) {
  6752. target.$off(event, fn);
  6753. }
  6754. function createOnceHandler (event, fn) {
  6755. var _target = target;
  6756. return function onceHandler () {
  6757. var res = fn.apply(null, arguments);
  6758. if (res !== null) {
  6759. _target.$off(event, onceHandler);
  6760. }
  6761. }
  6762. }
  6763. function updateComponentListeners (
  6764. vm,
  6765. listeners,
  6766. oldListeners
  6767. ) {
  6768. target = vm;
  6769. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6770. target = undefined;
  6771. }
  6772. function eventsMixin (Vue) {
  6773. var hookRE = /^hook:/;
  6774. Vue.prototype.$on = function (event, fn) {
  6775. var vm = this;
  6776. if (Array.isArray(event)) {
  6777. for (var i = 0, l = event.length; i < l; i++) {
  6778. vm.$on(event[i], fn);
  6779. }
  6780. } else {
  6781. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6782. // optimize hook:event cost by using a boolean flag marked at registration
  6783. // instead of a hash lookup
  6784. if (hookRE.test(event)) {
  6785. vm._hasHookEvent = true;
  6786. }
  6787. }
  6788. return vm
  6789. };
  6790. Vue.prototype.$once = function (event, fn) {
  6791. var vm = this;
  6792. function on () {
  6793. vm.$off(event, on);
  6794. fn.apply(vm, arguments);
  6795. }
  6796. on.fn = fn;
  6797. vm.$on(event, on);
  6798. return vm
  6799. };
  6800. Vue.prototype.$off = function (event, fn) {
  6801. var vm = this;
  6802. // all
  6803. if (!arguments.length) {
  6804. vm._events = Object.create(null);
  6805. return vm
  6806. }
  6807. // array of events
  6808. if (Array.isArray(event)) {
  6809. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6810. vm.$off(event[i$1], fn);
  6811. }
  6812. return vm
  6813. }
  6814. // specific event
  6815. var cbs = vm._events[event];
  6816. if (!cbs) {
  6817. return vm
  6818. }
  6819. if (!fn) {
  6820. vm._events[event] = null;
  6821. return vm
  6822. }
  6823. // specific handler
  6824. var cb;
  6825. var i = cbs.length;
  6826. while (i--) {
  6827. cb = cbs[i];
  6828. if (cb === fn || cb.fn === fn) {
  6829. cbs.splice(i, 1);
  6830. break
  6831. }
  6832. }
  6833. return vm
  6834. };
  6835. Vue.prototype.$emit = function (event) {
  6836. var vm = this;
  6837. if (true) {
  6838. var lowerCaseEvent = event.toLowerCase();
  6839. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6840. tip(
  6841. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6842. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6843. "Note that HTML attributes are case-insensitive and you cannot use " +
  6844. "v-on to listen to camelCase events when using in-DOM templates. " +
  6845. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6846. );
  6847. }
  6848. }
  6849. var cbs = vm._events[event];
  6850. if (cbs) {
  6851. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6852. var args = toArray(arguments, 1);
  6853. var info = "event handler for \"" + event + "\"";
  6854. for (var i = 0, l = cbs.length; i < l; i++) {
  6855. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6856. }
  6857. }
  6858. return vm
  6859. };
  6860. }
  6861. /* */
  6862. var activeInstance = null;
  6863. var isUpdatingChildComponent = false;
  6864. function setActiveInstance(vm) {
  6865. var prevActiveInstance = activeInstance;
  6866. activeInstance = vm;
  6867. return function () {
  6868. activeInstance = prevActiveInstance;
  6869. }
  6870. }
  6871. function initLifecycle (vm) {
  6872. var options = vm.$options;
  6873. // locate first non-abstract parent
  6874. var parent = options.parent;
  6875. if (parent && !options.abstract) {
  6876. while (parent.$options.abstract && parent.$parent) {
  6877. parent = parent.$parent;
  6878. }
  6879. parent.$children.push(vm);
  6880. }
  6881. vm.$parent = parent;
  6882. vm.$root = parent ? parent.$root : vm;
  6883. vm.$children = [];
  6884. vm.$refs = {};
  6885. vm._watcher = null;
  6886. vm._inactive = null;
  6887. vm._directInactive = false;
  6888. vm._isMounted = false;
  6889. vm._isDestroyed = false;
  6890. vm._isBeingDestroyed = false;
  6891. }
  6892. function lifecycleMixin (Vue) {
  6893. Vue.prototype._update = function (vnode, hydrating) {
  6894. var vm = this;
  6895. var prevEl = vm.$el;
  6896. var prevVnode = vm._vnode;
  6897. var restoreActiveInstance = setActiveInstance(vm);
  6898. vm._vnode = vnode;
  6899. // Vue.prototype.__patch__ is injected in entry points
  6900. // based on the rendering backend used.
  6901. if (!prevVnode) {
  6902. // initial render
  6903. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6904. } else {
  6905. // updates
  6906. vm.$el = vm.__patch__(prevVnode, vnode);
  6907. }
  6908. restoreActiveInstance();
  6909. // update __vue__ reference
  6910. if (prevEl) {
  6911. prevEl.__vue__ = null;
  6912. }
  6913. if (vm.$el) {
  6914. vm.$el.__vue__ = vm;
  6915. }
  6916. // if parent is an HOC, update its $el as well
  6917. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6918. vm.$parent.$el = vm.$el;
  6919. }
  6920. // updated hook is called by the scheduler to ensure that children are
  6921. // updated in a parent's updated hook.
  6922. };
  6923. Vue.prototype.$forceUpdate = function () {
  6924. var vm = this;
  6925. if (vm._watcher) {
  6926. vm._watcher.update();
  6927. }
  6928. };
  6929. Vue.prototype.$destroy = function () {
  6930. var vm = this;
  6931. if (vm._isBeingDestroyed) {
  6932. return
  6933. }
  6934. callHook(vm, 'beforeDestroy');
  6935. vm._isBeingDestroyed = true;
  6936. // remove self from parent
  6937. var parent = vm.$parent;
  6938. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6939. remove(parent.$children, vm);
  6940. }
  6941. // teardown watchers
  6942. if (vm._watcher) {
  6943. vm._watcher.teardown();
  6944. }
  6945. var i = vm._watchers.length;
  6946. while (i--) {
  6947. vm._watchers[i].teardown();
  6948. }
  6949. // remove reference from data ob
  6950. // frozen object may not have observer.
  6951. if (vm._data.__ob__) {
  6952. vm._data.__ob__.vmCount--;
  6953. }
  6954. // call the last hook...
  6955. vm._isDestroyed = true;
  6956. // invoke destroy hooks on current rendered tree
  6957. vm.__patch__(vm._vnode, null);
  6958. // fire destroyed hook
  6959. callHook(vm, 'destroyed');
  6960. // turn off all instance listeners.
  6961. vm.$off();
  6962. // remove __vue__ reference
  6963. if (vm.$el) {
  6964. vm.$el.__vue__ = null;
  6965. }
  6966. // release circular reference (#6759)
  6967. if (vm.$vnode) {
  6968. vm.$vnode.parent = null;
  6969. }
  6970. };
  6971. }
  6972. function updateChildComponent (
  6973. vm,
  6974. propsData,
  6975. listeners,
  6976. parentVnode,
  6977. renderChildren
  6978. ) {
  6979. if (true) {
  6980. isUpdatingChildComponent = true;
  6981. }
  6982. // determine whether component has slot children
  6983. // we need to do this before overwriting $options._renderChildren.
  6984. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6985. // dynamic slot names). Static scoped slots compiled from template has the
  6986. // "$stable" marker.
  6987. var newScopedSlots = parentVnode.data.scopedSlots;
  6988. var oldScopedSlots = vm.$scopedSlots;
  6989. var hasDynamicScopedSlot = !!(
  6990. (newScopedSlots && !newScopedSlots.$stable) ||
  6991. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6992. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6993. );
  6994. // Any static slot children from the parent may have changed during parent's
  6995. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6996. // update is necessary to ensure correctness.
  6997. var needsForceUpdate = !!(
  6998. renderChildren || // has new static slots
  6999. vm.$options._renderChildren || // has old static slots
  7000. hasDynamicScopedSlot
  7001. );
  7002. vm.$options._parentVnode = parentVnode;
  7003. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7004. if (vm._vnode) { // update child tree's parent
  7005. vm._vnode.parent = parentVnode;
  7006. }
  7007. vm.$options._renderChildren = renderChildren;
  7008. // update $attrs and $listeners hash
  7009. // these are also reactive so they may trigger child update if the child
  7010. // used them during render
  7011. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7012. vm.$listeners = listeners || emptyObject;
  7013. // update props
  7014. if (propsData && vm.$options.props) {
  7015. toggleObserving(false);
  7016. var props = vm._props;
  7017. var propKeys = vm.$options._propKeys || [];
  7018. for (var i = 0; i < propKeys.length; i++) {
  7019. var key = propKeys[i];
  7020. var propOptions = vm.$options.props; // wtf flow?
  7021. props[key] = validateProp(key, propOptions, propsData, vm);
  7022. }
  7023. toggleObserving(true);
  7024. // keep a copy of raw propsData
  7025. vm.$options.propsData = propsData;
  7026. }
  7027. // fixed by xxxxxx update properties(mp runtime)
  7028. vm._$updateProperties && vm._$updateProperties(vm);
  7029. // update listeners
  7030. listeners = listeners || emptyObject;
  7031. var oldListeners = vm.$options._parentListeners;
  7032. vm.$options._parentListeners = listeners;
  7033. updateComponentListeners(vm, listeners, oldListeners);
  7034. // resolve slots + force update if has children
  7035. if (needsForceUpdate) {
  7036. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7037. vm.$forceUpdate();
  7038. }
  7039. if (true) {
  7040. isUpdatingChildComponent = false;
  7041. }
  7042. }
  7043. function isInInactiveTree (vm) {
  7044. while (vm && (vm = vm.$parent)) {
  7045. if (vm._inactive) { return true }
  7046. }
  7047. return false
  7048. }
  7049. function activateChildComponent (vm, direct) {
  7050. if (direct) {
  7051. vm._directInactive = false;
  7052. if (isInInactiveTree(vm)) {
  7053. return
  7054. }
  7055. } else if (vm._directInactive) {
  7056. return
  7057. }
  7058. if (vm._inactive || vm._inactive === null) {
  7059. vm._inactive = false;
  7060. for (var i = 0; i < vm.$children.length; i++) {
  7061. activateChildComponent(vm.$children[i]);
  7062. }
  7063. callHook(vm, 'activated');
  7064. }
  7065. }
  7066. function deactivateChildComponent (vm, direct) {
  7067. if (direct) {
  7068. vm._directInactive = true;
  7069. if (isInInactiveTree(vm)) {
  7070. return
  7071. }
  7072. }
  7073. if (!vm._inactive) {
  7074. vm._inactive = true;
  7075. for (var i = 0; i < vm.$children.length; i++) {
  7076. deactivateChildComponent(vm.$children[i]);
  7077. }
  7078. callHook(vm, 'deactivated');
  7079. }
  7080. }
  7081. function callHook (vm, hook) {
  7082. // #7573 disable dep collection when invoking lifecycle hooks
  7083. pushTarget();
  7084. var handlers = vm.$options[hook];
  7085. var info = hook + " hook";
  7086. if (handlers) {
  7087. for (var i = 0, j = handlers.length; i < j; i++) {
  7088. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7089. }
  7090. }
  7091. if (vm._hasHookEvent) {
  7092. vm.$emit('hook:' + hook);
  7093. }
  7094. popTarget();
  7095. }
  7096. /* */
  7097. var MAX_UPDATE_COUNT = 100;
  7098. var queue = [];
  7099. var activatedChildren = [];
  7100. var has = {};
  7101. var circular = {};
  7102. var waiting = false;
  7103. var flushing = false;
  7104. var index = 0;
  7105. /**
  7106. * Reset the scheduler's state.
  7107. */
  7108. function resetSchedulerState () {
  7109. index = queue.length = activatedChildren.length = 0;
  7110. has = {};
  7111. if (true) {
  7112. circular = {};
  7113. }
  7114. waiting = flushing = false;
  7115. }
  7116. // Async edge case #6566 requires saving the timestamp when event listeners are
  7117. // attached. However, calling performance.now() has a perf overhead especially
  7118. // if the page has thousands of event listeners. Instead, we take a timestamp
  7119. // every time the scheduler flushes and use that for all event listeners
  7120. // attached during that flush.
  7121. var currentFlushTimestamp = 0;
  7122. // Async edge case fix requires storing an event listener's attach timestamp.
  7123. var getNow = Date.now;
  7124. // Determine what event timestamp the browser is using. Annoyingly, the
  7125. // timestamp can either be hi-res (relative to page load) or low-res
  7126. // (relative to UNIX epoch), so in order to compare time we have to use the
  7127. // same timestamp type when saving the flush timestamp.
  7128. // All IE versions use low-res event timestamps, and have problematic clock
  7129. // implementations (#9632)
  7130. if (inBrowser && !isIE) {
  7131. var performance = window.performance;
  7132. if (
  7133. performance &&
  7134. typeof performance.now === 'function' &&
  7135. getNow() > document.createEvent('Event').timeStamp
  7136. ) {
  7137. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7138. // smaller than it, it means the event is using a hi-res timestamp,
  7139. // and we need to use the hi-res version for event listener timestamps as
  7140. // well.
  7141. getNow = function () { return performance.now(); };
  7142. }
  7143. }
  7144. /**
  7145. * Flush both queues and run the watchers.
  7146. */
  7147. function flushSchedulerQueue () {
  7148. currentFlushTimestamp = getNow();
  7149. flushing = true;
  7150. var watcher, id;
  7151. // Sort queue before flush.
  7152. // This ensures that:
  7153. // 1. Components are updated from parent to child. (because parent is always
  7154. // created before the child)
  7155. // 2. A component's user watchers are run before its render watcher (because
  7156. // user watchers are created before the render watcher)
  7157. // 3. If a component is destroyed during a parent component's watcher run,
  7158. // its watchers can be skipped.
  7159. queue.sort(function (a, b) { return a.id - b.id; });
  7160. // do not cache length because more watchers might be pushed
  7161. // as we run existing watchers
  7162. for (index = 0; index < queue.length; index++) {
  7163. watcher = queue[index];
  7164. if (watcher.before) {
  7165. watcher.before();
  7166. }
  7167. id = watcher.id;
  7168. has[id] = null;
  7169. watcher.run();
  7170. // in dev build, check and stop circular updates.
  7171. if ( true && has[id] != null) {
  7172. circular[id] = (circular[id] || 0) + 1;
  7173. if (circular[id] > MAX_UPDATE_COUNT) {
  7174. warn(
  7175. 'You may have an infinite update loop ' + (
  7176. watcher.user
  7177. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7178. : "in a component render function."
  7179. ),
  7180. watcher.vm
  7181. );
  7182. break
  7183. }
  7184. }
  7185. }
  7186. // keep copies of post queues before resetting state
  7187. var activatedQueue = activatedChildren.slice();
  7188. var updatedQueue = queue.slice();
  7189. resetSchedulerState();
  7190. // call component updated and activated hooks
  7191. callActivatedHooks(activatedQueue);
  7192. callUpdatedHooks(updatedQueue);
  7193. // devtool hook
  7194. /* istanbul ignore if */
  7195. if (devtools && config.devtools) {
  7196. devtools.emit('flush');
  7197. }
  7198. }
  7199. function callUpdatedHooks (queue) {
  7200. var i = queue.length;
  7201. while (i--) {
  7202. var watcher = queue[i];
  7203. var vm = watcher.vm;
  7204. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7205. callHook(vm, 'updated');
  7206. }
  7207. }
  7208. }
  7209. /**
  7210. * Queue a kept-alive component that was activated during patch.
  7211. * The queue will be processed after the entire tree has been patched.
  7212. */
  7213. function queueActivatedComponent (vm) {
  7214. // setting _inactive to false here so that a render function can
  7215. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7216. vm._inactive = false;
  7217. activatedChildren.push(vm);
  7218. }
  7219. function callActivatedHooks (queue) {
  7220. for (var i = 0; i < queue.length; i++) {
  7221. queue[i]._inactive = true;
  7222. activateChildComponent(queue[i], true /* true */);
  7223. }
  7224. }
  7225. /**
  7226. * Push a watcher into the watcher queue.
  7227. * Jobs with duplicate IDs will be skipped unless it's
  7228. * pushed when the queue is being flushed.
  7229. */
  7230. function queueWatcher (watcher) {
  7231. var id = watcher.id;
  7232. if (has[id] == null) {
  7233. has[id] = true;
  7234. if (!flushing) {
  7235. queue.push(watcher);
  7236. } else {
  7237. // if already flushing, splice the watcher based on its id
  7238. // if already past its id, it will be run next immediately.
  7239. var i = queue.length - 1;
  7240. while (i > index && queue[i].id > watcher.id) {
  7241. i--;
  7242. }
  7243. queue.splice(i + 1, 0, watcher);
  7244. }
  7245. // queue the flush
  7246. if (!waiting) {
  7247. waiting = true;
  7248. if ( true && !config.async) {
  7249. flushSchedulerQueue();
  7250. return
  7251. }
  7252. nextTick(flushSchedulerQueue);
  7253. }
  7254. }
  7255. }
  7256. /* */
  7257. var uid$2 = 0;
  7258. /**
  7259. * A watcher parses an expression, collects dependencies,
  7260. * and fires callback when the expression value changes.
  7261. * This is used for both the $watch() api and directives.
  7262. */
  7263. var Watcher = function Watcher (
  7264. vm,
  7265. expOrFn,
  7266. cb,
  7267. options,
  7268. isRenderWatcher
  7269. ) {
  7270. this.vm = vm;
  7271. if (isRenderWatcher) {
  7272. vm._watcher = this;
  7273. }
  7274. vm._watchers.push(this);
  7275. // options
  7276. if (options) {
  7277. this.deep = !!options.deep;
  7278. this.user = !!options.user;
  7279. this.lazy = !!options.lazy;
  7280. this.sync = !!options.sync;
  7281. this.before = options.before;
  7282. } else {
  7283. this.deep = this.user = this.lazy = this.sync = false;
  7284. }
  7285. this.cb = cb;
  7286. this.id = ++uid$2; // uid for batching
  7287. this.active = true;
  7288. this.dirty = this.lazy; // for lazy watchers
  7289. this.deps = [];
  7290. this.newDeps = [];
  7291. this.depIds = new _Set();
  7292. this.newDepIds = new _Set();
  7293. this.expression = true
  7294. ? expOrFn.toString()
  7295. : undefined;
  7296. // parse expression for getter
  7297. if (typeof expOrFn === 'function') {
  7298. this.getter = expOrFn;
  7299. } else {
  7300. this.getter = parsePath(expOrFn);
  7301. if (!this.getter) {
  7302. this.getter = noop;
  7303. true && warn(
  7304. "Failed watching path: \"" + expOrFn + "\" " +
  7305. 'Watcher only accepts simple dot-delimited paths. ' +
  7306. 'For full control, use a function instead.',
  7307. vm
  7308. );
  7309. }
  7310. }
  7311. this.value = this.lazy
  7312. ? undefined
  7313. : this.get();
  7314. };
  7315. /**
  7316. * Evaluate the getter, and re-collect dependencies.
  7317. */
  7318. Watcher.prototype.get = function get () {
  7319. pushTarget(this);
  7320. var value;
  7321. var vm = this.vm;
  7322. try {
  7323. value = this.getter.call(vm, vm);
  7324. } catch (e) {
  7325. if (this.user) {
  7326. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7327. } else {
  7328. throw e
  7329. }
  7330. } finally {
  7331. // "touch" every property so they are all tracked as
  7332. // dependencies for deep watching
  7333. if (this.deep) {
  7334. traverse(value);
  7335. }
  7336. popTarget();
  7337. this.cleanupDeps();
  7338. }
  7339. return value
  7340. };
  7341. /**
  7342. * Add a dependency to this directive.
  7343. */
  7344. Watcher.prototype.addDep = function addDep (dep) {
  7345. var id = dep.id;
  7346. if (!this.newDepIds.has(id)) {
  7347. this.newDepIds.add(id);
  7348. this.newDeps.push(dep);
  7349. if (!this.depIds.has(id)) {
  7350. dep.addSub(this);
  7351. }
  7352. }
  7353. };
  7354. /**
  7355. * Clean up for dependency collection.
  7356. */
  7357. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7358. var i = this.deps.length;
  7359. while (i--) {
  7360. var dep = this.deps[i];
  7361. if (!this.newDepIds.has(dep.id)) {
  7362. dep.removeSub(this);
  7363. }
  7364. }
  7365. var tmp = this.depIds;
  7366. this.depIds = this.newDepIds;
  7367. this.newDepIds = tmp;
  7368. this.newDepIds.clear();
  7369. tmp = this.deps;
  7370. this.deps = this.newDeps;
  7371. this.newDeps = tmp;
  7372. this.newDeps.length = 0;
  7373. };
  7374. /**
  7375. * Subscriber interface.
  7376. * Will be called when a dependency changes.
  7377. */
  7378. Watcher.prototype.update = function update () {
  7379. /* istanbul ignore else */
  7380. if (this.lazy) {
  7381. this.dirty = true;
  7382. } else if (this.sync) {
  7383. this.run();
  7384. } else {
  7385. queueWatcher(this);
  7386. }
  7387. };
  7388. /**
  7389. * Scheduler job interface.
  7390. * Will be called by the scheduler.
  7391. */
  7392. Watcher.prototype.run = function run () {
  7393. if (this.active) {
  7394. var value = this.get();
  7395. if (
  7396. value !== this.value ||
  7397. // Deep watchers and watchers on Object/Arrays should fire even
  7398. // when the value is the same, because the value may
  7399. // have mutated.
  7400. isObject(value) ||
  7401. this.deep
  7402. ) {
  7403. // set new value
  7404. var oldValue = this.value;
  7405. this.value = value;
  7406. if (this.user) {
  7407. try {
  7408. this.cb.call(this.vm, value, oldValue);
  7409. } catch (e) {
  7410. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7411. }
  7412. } else {
  7413. this.cb.call(this.vm, value, oldValue);
  7414. }
  7415. }
  7416. }
  7417. };
  7418. /**
  7419. * Evaluate the value of the watcher.
  7420. * This only gets called for lazy watchers.
  7421. */
  7422. Watcher.prototype.evaluate = function evaluate () {
  7423. this.value = this.get();
  7424. this.dirty = false;
  7425. };
  7426. /**
  7427. * Depend on all deps collected by this watcher.
  7428. */
  7429. Watcher.prototype.depend = function depend () {
  7430. var i = this.deps.length;
  7431. while (i--) {
  7432. this.deps[i].depend();
  7433. }
  7434. };
  7435. /**
  7436. * Remove self from all dependencies' subscriber list.
  7437. */
  7438. Watcher.prototype.teardown = function teardown () {
  7439. if (this.active) {
  7440. // remove self from vm's watcher list
  7441. // this is a somewhat expensive operation so we skip it
  7442. // if the vm is being destroyed.
  7443. if (!this.vm._isBeingDestroyed) {
  7444. remove(this.vm._watchers, this);
  7445. }
  7446. var i = this.deps.length;
  7447. while (i--) {
  7448. this.deps[i].removeSub(this);
  7449. }
  7450. this.active = false;
  7451. }
  7452. };
  7453. /* */
  7454. var sharedPropertyDefinition = {
  7455. enumerable: true,
  7456. configurable: true,
  7457. get: noop,
  7458. set: noop
  7459. };
  7460. function proxy (target, sourceKey, key) {
  7461. sharedPropertyDefinition.get = function proxyGetter () {
  7462. return this[sourceKey][key]
  7463. };
  7464. sharedPropertyDefinition.set = function proxySetter (val) {
  7465. this[sourceKey][key] = val;
  7466. };
  7467. Object.defineProperty(target, key, sharedPropertyDefinition);
  7468. }
  7469. function initState (vm) {
  7470. vm._watchers = [];
  7471. var opts = vm.$options;
  7472. if (opts.props) { initProps(vm, opts.props); }
  7473. if (opts.methods) { initMethods(vm, opts.methods); }
  7474. if (opts.data) {
  7475. initData(vm);
  7476. } else {
  7477. observe(vm._data = {}, true /* asRootData */);
  7478. }
  7479. if (opts.computed) { initComputed(vm, opts.computed); }
  7480. if (opts.watch && opts.watch !== nativeWatch) {
  7481. initWatch(vm, opts.watch);
  7482. }
  7483. }
  7484. function initProps (vm, propsOptions) {
  7485. var propsData = vm.$options.propsData || {};
  7486. var props = vm._props = {};
  7487. // cache prop keys so that future props updates can iterate using Array
  7488. // instead of dynamic object key enumeration.
  7489. var keys = vm.$options._propKeys = [];
  7490. var isRoot = !vm.$parent;
  7491. // root instance props should be converted
  7492. if (!isRoot) {
  7493. toggleObserving(false);
  7494. }
  7495. var loop = function ( key ) {
  7496. keys.push(key);
  7497. var value = validateProp(key, propsOptions, propsData, vm);
  7498. /* istanbul ignore else */
  7499. if (true) {
  7500. var hyphenatedKey = hyphenate(key);
  7501. if (isReservedAttribute(hyphenatedKey) ||
  7502. config.isReservedAttr(hyphenatedKey)) {
  7503. warn(
  7504. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7505. vm
  7506. );
  7507. }
  7508. defineReactive$$1(props, key, value, function () {
  7509. if (!isRoot && !isUpdatingChildComponent) {
  7510. {
  7511. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7512. return
  7513. }
  7514. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7515. if(
  7516. key === 'value' &&
  7517. Array.isArray(vm.$options.behaviors) &&
  7518. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7519. ){
  7520. return
  7521. }
  7522. if(vm._getFormData){
  7523. return
  7524. }
  7525. var $parent = vm.$parent;
  7526. while($parent){
  7527. if($parent.__next_tick_pending){
  7528. return
  7529. }
  7530. $parent = $parent.$parent;
  7531. }
  7532. }
  7533. warn(
  7534. "Avoid mutating a prop directly since the value will be " +
  7535. "overwritten whenever the parent component re-renders. " +
  7536. "Instead, use a data or computed property based on the prop's " +
  7537. "value. Prop being mutated: \"" + key + "\"",
  7538. vm
  7539. );
  7540. }
  7541. });
  7542. } else {}
  7543. // static props are already proxied on the component's prototype
  7544. // during Vue.extend(). We only need to proxy props defined at
  7545. // instantiation here.
  7546. if (!(key in vm)) {
  7547. proxy(vm, "_props", key);
  7548. }
  7549. };
  7550. for (var key in propsOptions) loop( key );
  7551. toggleObserving(true);
  7552. }
  7553. function initData (vm) {
  7554. var data = vm.$options.data;
  7555. data = vm._data = typeof data === 'function'
  7556. ? getData(data, vm)
  7557. : data || {};
  7558. if (!isPlainObject(data)) {
  7559. data = {};
  7560. true && warn(
  7561. 'data functions should return an object:\n' +
  7562. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7563. vm
  7564. );
  7565. }
  7566. // proxy data on instance
  7567. var keys = Object.keys(data);
  7568. var props = vm.$options.props;
  7569. var methods = vm.$options.methods;
  7570. var i = keys.length;
  7571. while (i--) {
  7572. var key = keys[i];
  7573. if (true) {
  7574. if (methods && hasOwn(methods, key)) {
  7575. warn(
  7576. ("Method \"" + key + "\" has already been defined as a data property."),
  7577. vm
  7578. );
  7579. }
  7580. }
  7581. if (props && hasOwn(props, key)) {
  7582. true && warn(
  7583. "The data property \"" + key + "\" is already declared as a prop. " +
  7584. "Use prop default value instead.",
  7585. vm
  7586. );
  7587. } else if (!isReserved(key)) {
  7588. proxy(vm, "_data", key);
  7589. }
  7590. }
  7591. // observe data
  7592. observe(data, true /* asRootData */);
  7593. }
  7594. function getData (data, vm) {
  7595. // #7573 disable dep collection when invoking data getters
  7596. pushTarget();
  7597. try {
  7598. return data.call(vm, vm)
  7599. } catch (e) {
  7600. handleError(e, vm, "data()");
  7601. return {}
  7602. } finally {
  7603. popTarget();
  7604. }
  7605. }
  7606. var computedWatcherOptions = { lazy: true };
  7607. function initComputed (vm, computed) {
  7608. // $flow-disable-line
  7609. var watchers = vm._computedWatchers = Object.create(null);
  7610. // computed properties are just getters during SSR
  7611. var isSSR = isServerRendering();
  7612. for (var key in computed) {
  7613. var userDef = computed[key];
  7614. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7615. if ( true && getter == null) {
  7616. warn(
  7617. ("Getter is missing for computed property \"" + key + "\"."),
  7618. vm
  7619. );
  7620. }
  7621. if (!isSSR) {
  7622. // create internal watcher for the computed property.
  7623. watchers[key] = new Watcher(
  7624. vm,
  7625. getter || noop,
  7626. noop,
  7627. computedWatcherOptions
  7628. );
  7629. }
  7630. // component-defined computed properties are already defined on the
  7631. // component prototype. We only need to define computed properties defined
  7632. // at instantiation here.
  7633. if (!(key in vm)) {
  7634. defineComputed(vm, key, userDef);
  7635. } else if (true) {
  7636. if (key in vm.$data) {
  7637. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7638. } else if (vm.$options.props && key in vm.$options.props) {
  7639. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7640. }
  7641. }
  7642. }
  7643. }
  7644. function defineComputed (
  7645. target,
  7646. key,
  7647. userDef
  7648. ) {
  7649. var shouldCache = !isServerRendering();
  7650. if (typeof userDef === 'function') {
  7651. sharedPropertyDefinition.get = shouldCache
  7652. ? createComputedGetter(key)
  7653. : createGetterInvoker(userDef);
  7654. sharedPropertyDefinition.set = noop;
  7655. } else {
  7656. sharedPropertyDefinition.get = userDef.get
  7657. ? shouldCache && userDef.cache !== false
  7658. ? createComputedGetter(key)
  7659. : createGetterInvoker(userDef.get)
  7660. : noop;
  7661. sharedPropertyDefinition.set = userDef.set || noop;
  7662. }
  7663. if ( true &&
  7664. sharedPropertyDefinition.set === noop) {
  7665. sharedPropertyDefinition.set = function () {
  7666. warn(
  7667. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7668. this
  7669. );
  7670. };
  7671. }
  7672. Object.defineProperty(target, key, sharedPropertyDefinition);
  7673. }
  7674. function createComputedGetter (key) {
  7675. return function computedGetter () {
  7676. var watcher = this._computedWatchers && this._computedWatchers[key];
  7677. if (watcher) {
  7678. if (watcher.dirty) {
  7679. watcher.evaluate();
  7680. }
  7681. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7682. watcher.depend();
  7683. }
  7684. return watcher.value
  7685. }
  7686. }
  7687. }
  7688. function createGetterInvoker(fn) {
  7689. return function computedGetter () {
  7690. return fn.call(this, this)
  7691. }
  7692. }
  7693. function initMethods (vm, methods) {
  7694. var props = vm.$options.props;
  7695. for (var key in methods) {
  7696. if (true) {
  7697. if (typeof methods[key] !== 'function') {
  7698. warn(
  7699. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7700. "Did you reference the function correctly?",
  7701. vm
  7702. );
  7703. }
  7704. if (props && hasOwn(props, key)) {
  7705. warn(
  7706. ("Method \"" + key + "\" has already been defined as a prop."),
  7707. vm
  7708. );
  7709. }
  7710. if ((key in vm) && isReserved(key)) {
  7711. warn(
  7712. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7713. "Avoid defining component methods that start with _ or $."
  7714. );
  7715. }
  7716. }
  7717. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7718. }
  7719. }
  7720. function initWatch (vm, watch) {
  7721. for (var key in watch) {
  7722. var handler = watch[key];
  7723. if (Array.isArray(handler)) {
  7724. for (var i = 0; i < handler.length; i++) {
  7725. createWatcher(vm, key, handler[i]);
  7726. }
  7727. } else {
  7728. createWatcher(vm, key, handler);
  7729. }
  7730. }
  7731. }
  7732. function createWatcher (
  7733. vm,
  7734. expOrFn,
  7735. handler,
  7736. options
  7737. ) {
  7738. if (isPlainObject(handler)) {
  7739. options = handler;
  7740. handler = handler.handler;
  7741. }
  7742. if (typeof handler === 'string') {
  7743. handler = vm[handler];
  7744. }
  7745. return vm.$watch(expOrFn, handler, options)
  7746. }
  7747. function stateMixin (Vue) {
  7748. // flow somehow has problems with directly declared definition object
  7749. // when using Object.defineProperty, so we have to procedurally build up
  7750. // the object here.
  7751. var dataDef = {};
  7752. dataDef.get = function () { return this._data };
  7753. var propsDef = {};
  7754. propsDef.get = function () { return this._props };
  7755. if (true) {
  7756. dataDef.set = function () {
  7757. warn(
  7758. 'Avoid replacing instance root $data. ' +
  7759. 'Use nested data properties instead.',
  7760. this
  7761. );
  7762. };
  7763. propsDef.set = function () {
  7764. warn("$props is readonly.", this);
  7765. };
  7766. }
  7767. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7768. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7769. Vue.prototype.$set = set;
  7770. Vue.prototype.$delete = del;
  7771. Vue.prototype.$watch = function (
  7772. expOrFn,
  7773. cb,
  7774. options
  7775. ) {
  7776. var vm = this;
  7777. if (isPlainObject(cb)) {
  7778. return createWatcher(vm, expOrFn, cb, options)
  7779. }
  7780. options = options || {};
  7781. options.user = true;
  7782. var watcher = new Watcher(vm, expOrFn, cb, options);
  7783. if (options.immediate) {
  7784. try {
  7785. cb.call(vm, watcher.value);
  7786. } catch (error) {
  7787. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7788. }
  7789. }
  7790. return function unwatchFn () {
  7791. watcher.teardown();
  7792. }
  7793. };
  7794. }
  7795. /* */
  7796. var uid$3 = 0;
  7797. function initMixin (Vue) {
  7798. Vue.prototype._init = function (options) {
  7799. var vm = this;
  7800. // a uid
  7801. vm._uid = uid$3++;
  7802. var startTag, endTag;
  7803. /* istanbul ignore if */
  7804. if ( true && config.performance && mark) {
  7805. startTag = "vue-perf-start:" + (vm._uid);
  7806. endTag = "vue-perf-end:" + (vm._uid);
  7807. mark(startTag);
  7808. }
  7809. // a flag to avoid this being observed
  7810. vm._isVue = true;
  7811. // merge options
  7812. if (options && options._isComponent) {
  7813. // optimize internal component instantiation
  7814. // since dynamic options merging is pretty slow, and none of the
  7815. // internal component options needs special treatment.
  7816. initInternalComponent(vm, options);
  7817. } else {
  7818. vm.$options = mergeOptions(
  7819. resolveConstructorOptions(vm.constructor),
  7820. options || {},
  7821. vm
  7822. );
  7823. }
  7824. /* istanbul ignore else */
  7825. if (true) {
  7826. initProxy(vm);
  7827. } else {}
  7828. // expose real self
  7829. vm._self = vm;
  7830. initLifecycle(vm);
  7831. initEvents(vm);
  7832. initRender(vm);
  7833. callHook(vm, 'beforeCreate');
  7834. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7835. initState(vm);
  7836. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7837. !vm._$fallback && callHook(vm, 'created');
  7838. /* istanbul ignore if */
  7839. if ( true && config.performance && mark) {
  7840. vm._name = formatComponentName(vm, false);
  7841. mark(endTag);
  7842. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7843. }
  7844. if (vm.$options.el) {
  7845. vm.$mount(vm.$options.el);
  7846. }
  7847. };
  7848. }
  7849. function initInternalComponent (vm, options) {
  7850. var opts = vm.$options = Object.create(vm.constructor.options);
  7851. // doing this because it's faster than dynamic enumeration.
  7852. var parentVnode = options._parentVnode;
  7853. opts.parent = options.parent;
  7854. opts._parentVnode = parentVnode;
  7855. var vnodeComponentOptions = parentVnode.componentOptions;
  7856. opts.propsData = vnodeComponentOptions.propsData;
  7857. opts._parentListeners = vnodeComponentOptions.listeners;
  7858. opts._renderChildren = vnodeComponentOptions.children;
  7859. opts._componentTag = vnodeComponentOptions.tag;
  7860. if (options.render) {
  7861. opts.render = options.render;
  7862. opts.staticRenderFns = options.staticRenderFns;
  7863. }
  7864. }
  7865. function resolveConstructorOptions (Ctor) {
  7866. var options = Ctor.options;
  7867. if (Ctor.super) {
  7868. var superOptions = resolveConstructorOptions(Ctor.super);
  7869. var cachedSuperOptions = Ctor.superOptions;
  7870. if (superOptions !== cachedSuperOptions) {
  7871. // super option changed,
  7872. // need to resolve new options.
  7873. Ctor.superOptions = superOptions;
  7874. // check if there are any late-modified/attached options (#4976)
  7875. var modifiedOptions = resolveModifiedOptions(Ctor);
  7876. // update base extend options
  7877. if (modifiedOptions) {
  7878. extend(Ctor.extendOptions, modifiedOptions);
  7879. }
  7880. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7881. if (options.name) {
  7882. options.components[options.name] = Ctor;
  7883. }
  7884. }
  7885. }
  7886. return options
  7887. }
  7888. function resolveModifiedOptions (Ctor) {
  7889. var modified;
  7890. var latest = Ctor.options;
  7891. var sealed = Ctor.sealedOptions;
  7892. for (var key in latest) {
  7893. if (latest[key] !== sealed[key]) {
  7894. if (!modified) { modified = {}; }
  7895. modified[key] = latest[key];
  7896. }
  7897. }
  7898. return modified
  7899. }
  7900. function Vue (options) {
  7901. if ( true &&
  7902. !(this instanceof Vue)
  7903. ) {
  7904. warn('Vue is a constructor and should be called with the `new` keyword');
  7905. }
  7906. this._init(options);
  7907. }
  7908. initMixin(Vue);
  7909. stateMixin(Vue);
  7910. eventsMixin(Vue);
  7911. lifecycleMixin(Vue);
  7912. renderMixin(Vue);
  7913. /* */
  7914. function initUse (Vue) {
  7915. Vue.use = function (plugin) {
  7916. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7917. if (installedPlugins.indexOf(plugin) > -1) {
  7918. return this
  7919. }
  7920. // additional parameters
  7921. var args = toArray(arguments, 1);
  7922. args.unshift(this);
  7923. if (typeof plugin.install === 'function') {
  7924. plugin.install.apply(plugin, args);
  7925. } else if (typeof plugin === 'function') {
  7926. plugin.apply(null, args);
  7927. }
  7928. installedPlugins.push(plugin);
  7929. return this
  7930. };
  7931. }
  7932. /* */
  7933. function initMixin$1 (Vue) {
  7934. Vue.mixin = function (mixin) {
  7935. this.options = mergeOptions(this.options, mixin);
  7936. return this
  7937. };
  7938. }
  7939. /* */
  7940. function initExtend (Vue) {
  7941. /**
  7942. * Each instance constructor, including Vue, has a unique
  7943. * cid. This enables us to create wrapped "child
  7944. * constructors" for prototypal inheritance and cache them.
  7945. */
  7946. Vue.cid = 0;
  7947. var cid = 1;
  7948. /**
  7949. * Class inheritance
  7950. */
  7951. Vue.extend = function (extendOptions) {
  7952. extendOptions = extendOptions || {};
  7953. var Super = this;
  7954. var SuperId = Super.cid;
  7955. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7956. if (cachedCtors[SuperId]) {
  7957. return cachedCtors[SuperId]
  7958. }
  7959. var name = extendOptions.name || Super.options.name;
  7960. if ( true && name) {
  7961. validateComponentName(name);
  7962. }
  7963. var Sub = function VueComponent (options) {
  7964. this._init(options);
  7965. };
  7966. Sub.prototype = Object.create(Super.prototype);
  7967. Sub.prototype.constructor = Sub;
  7968. Sub.cid = cid++;
  7969. Sub.options = mergeOptions(
  7970. Super.options,
  7971. extendOptions
  7972. );
  7973. Sub['super'] = Super;
  7974. // For props and computed properties, we define the proxy getters on
  7975. // the Vue instances at extension time, on the extended prototype. This
  7976. // avoids Object.defineProperty calls for each instance created.
  7977. if (Sub.options.props) {
  7978. initProps$1(Sub);
  7979. }
  7980. if (Sub.options.computed) {
  7981. initComputed$1(Sub);
  7982. }
  7983. // allow further extension/mixin/plugin usage
  7984. Sub.extend = Super.extend;
  7985. Sub.mixin = Super.mixin;
  7986. Sub.use = Super.use;
  7987. // create asset registers, so extended classes
  7988. // can have their private assets too.
  7989. ASSET_TYPES.forEach(function (type) {
  7990. Sub[type] = Super[type];
  7991. });
  7992. // enable recursive self-lookup
  7993. if (name) {
  7994. Sub.options.components[name] = Sub;
  7995. }
  7996. // keep a reference to the super options at extension time.
  7997. // later at instantiation we can check if Super's options have
  7998. // been updated.
  7999. Sub.superOptions = Super.options;
  8000. Sub.extendOptions = extendOptions;
  8001. Sub.sealedOptions = extend({}, Sub.options);
  8002. // cache constructor
  8003. cachedCtors[SuperId] = Sub;
  8004. return Sub
  8005. };
  8006. }
  8007. function initProps$1 (Comp) {
  8008. var props = Comp.options.props;
  8009. for (var key in props) {
  8010. proxy(Comp.prototype, "_props", key);
  8011. }
  8012. }
  8013. function initComputed$1 (Comp) {
  8014. var computed = Comp.options.computed;
  8015. for (var key in computed) {
  8016. defineComputed(Comp.prototype, key, computed[key]);
  8017. }
  8018. }
  8019. /* */
  8020. function initAssetRegisters (Vue) {
  8021. /**
  8022. * Create asset registration methods.
  8023. */
  8024. ASSET_TYPES.forEach(function (type) {
  8025. Vue[type] = function (
  8026. id,
  8027. definition
  8028. ) {
  8029. if (!definition) {
  8030. return this.options[type + 's'][id]
  8031. } else {
  8032. /* istanbul ignore if */
  8033. if ( true && type === 'component') {
  8034. validateComponentName(id);
  8035. }
  8036. if (type === 'component' && isPlainObject(definition)) {
  8037. definition.name = definition.name || id;
  8038. definition = this.options._base.extend(definition);
  8039. }
  8040. if (type === 'directive' && typeof definition === 'function') {
  8041. definition = { bind: definition, update: definition };
  8042. }
  8043. this.options[type + 's'][id] = definition;
  8044. return definition
  8045. }
  8046. };
  8047. });
  8048. }
  8049. /* */
  8050. function getComponentName (opts) {
  8051. return opts && (opts.Ctor.options.name || opts.tag)
  8052. }
  8053. function matches (pattern, name) {
  8054. if (Array.isArray(pattern)) {
  8055. return pattern.indexOf(name) > -1
  8056. } else if (typeof pattern === 'string') {
  8057. return pattern.split(',').indexOf(name) > -1
  8058. } else if (isRegExp(pattern)) {
  8059. return pattern.test(name)
  8060. }
  8061. /* istanbul ignore next */
  8062. return false
  8063. }
  8064. function pruneCache (keepAliveInstance, filter) {
  8065. var cache = keepAliveInstance.cache;
  8066. var keys = keepAliveInstance.keys;
  8067. var _vnode = keepAliveInstance._vnode;
  8068. for (var key in cache) {
  8069. var cachedNode = cache[key];
  8070. if (cachedNode) {
  8071. var name = getComponentName(cachedNode.componentOptions);
  8072. if (name && !filter(name)) {
  8073. pruneCacheEntry(cache, key, keys, _vnode);
  8074. }
  8075. }
  8076. }
  8077. }
  8078. function pruneCacheEntry (
  8079. cache,
  8080. key,
  8081. keys,
  8082. current
  8083. ) {
  8084. var cached$$1 = cache[key];
  8085. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8086. cached$$1.componentInstance.$destroy();
  8087. }
  8088. cache[key] = null;
  8089. remove(keys, key);
  8090. }
  8091. var patternTypes = [String, RegExp, Array];
  8092. var KeepAlive = {
  8093. name: 'keep-alive',
  8094. abstract: true,
  8095. props: {
  8096. include: patternTypes,
  8097. exclude: patternTypes,
  8098. max: [String, Number]
  8099. },
  8100. created: function created () {
  8101. this.cache = Object.create(null);
  8102. this.keys = [];
  8103. },
  8104. destroyed: function destroyed () {
  8105. for (var key in this.cache) {
  8106. pruneCacheEntry(this.cache, key, this.keys);
  8107. }
  8108. },
  8109. mounted: function mounted () {
  8110. var this$1 = this;
  8111. this.$watch('include', function (val) {
  8112. pruneCache(this$1, function (name) { return matches(val, name); });
  8113. });
  8114. this.$watch('exclude', function (val) {
  8115. pruneCache(this$1, function (name) { return !matches(val, name); });
  8116. });
  8117. },
  8118. render: function render () {
  8119. var slot = this.$slots.default;
  8120. var vnode = getFirstComponentChild(slot);
  8121. var componentOptions = vnode && vnode.componentOptions;
  8122. if (componentOptions) {
  8123. // check pattern
  8124. var name = getComponentName(componentOptions);
  8125. var ref = this;
  8126. var include = ref.include;
  8127. var exclude = ref.exclude;
  8128. if (
  8129. // not included
  8130. (include && (!name || !matches(include, name))) ||
  8131. // excluded
  8132. (exclude && name && matches(exclude, name))
  8133. ) {
  8134. return vnode
  8135. }
  8136. var ref$1 = this;
  8137. var cache = ref$1.cache;
  8138. var keys = ref$1.keys;
  8139. var key = vnode.key == null
  8140. // same constructor may get registered as different local components
  8141. // so cid alone is not enough (#3269)
  8142. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8143. : vnode.key;
  8144. if (cache[key]) {
  8145. vnode.componentInstance = cache[key].componentInstance;
  8146. // make current key freshest
  8147. remove(keys, key);
  8148. keys.push(key);
  8149. } else {
  8150. cache[key] = vnode;
  8151. keys.push(key);
  8152. // prune oldest entry
  8153. if (this.max && keys.length > parseInt(this.max)) {
  8154. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8155. }
  8156. }
  8157. vnode.data.keepAlive = true;
  8158. }
  8159. return vnode || (slot && slot[0])
  8160. }
  8161. };
  8162. var builtInComponents = {
  8163. KeepAlive: KeepAlive
  8164. };
  8165. /* */
  8166. function initGlobalAPI (Vue) {
  8167. // config
  8168. var configDef = {};
  8169. configDef.get = function () { return config; };
  8170. if (true) {
  8171. configDef.set = function () {
  8172. warn(
  8173. 'Do not replace the Vue.config object, set individual fields instead.'
  8174. );
  8175. };
  8176. }
  8177. Object.defineProperty(Vue, 'config', configDef);
  8178. // exposed util methods.
  8179. // NOTE: these are not considered part of the public API - avoid relying on
  8180. // them unless you are aware of the risk.
  8181. Vue.util = {
  8182. warn: warn,
  8183. extend: extend,
  8184. mergeOptions: mergeOptions,
  8185. defineReactive: defineReactive$$1
  8186. };
  8187. Vue.set = set;
  8188. Vue.delete = del;
  8189. Vue.nextTick = nextTick;
  8190. // 2.6 explicit observable API
  8191. Vue.observable = function (obj) {
  8192. observe(obj);
  8193. return obj
  8194. };
  8195. Vue.options = Object.create(null);
  8196. ASSET_TYPES.forEach(function (type) {
  8197. Vue.options[type + 's'] = Object.create(null);
  8198. });
  8199. // this is used to identify the "base" constructor to extend all plain-object
  8200. // components with in Weex's multi-instance scenarios.
  8201. Vue.options._base = Vue;
  8202. extend(Vue.options.components, builtInComponents);
  8203. initUse(Vue);
  8204. initMixin$1(Vue);
  8205. initExtend(Vue);
  8206. initAssetRegisters(Vue);
  8207. }
  8208. initGlobalAPI(Vue);
  8209. Object.defineProperty(Vue.prototype, '$isServer', {
  8210. get: isServerRendering
  8211. });
  8212. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8213. get: function get () {
  8214. /* istanbul ignore next */
  8215. return this.$vnode && this.$vnode.ssrContext
  8216. }
  8217. });
  8218. // expose FunctionalRenderContext for ssr runtime helper installation
  8219. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8220. value: FunctionalRenderContext
  8221. });
  8222. Vue.version = '2.6.11';
  8223. /**
  8224. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8225. */
  8226. var ARRAYTYPE = '[object Array]';
  8227. var OBJECTTYPE = '[object Object]';
  8228. var NULLTYPE = '[object Null]';
  8229. var UNDEFINEDTYPE = '[object Undefined]';
  8230. // const FUNCTIONTYPE = '[object Function]'
  8231. function diff(current, pre) {
  8232. var result = {};
  8233. syncKeys(current, pre);
  8234. _diff(current, pre, '', result);
  8235. return result
  8236. }
  8237. function syncKeys(current, pre) {
  8238. if (current === pre) { return }
  8239. var rootCurrentType = type(current);
  8240. var rootPreType = type(pre);
  8241. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8242. if(Object.keys(current).length >= Object.keys(pre).length){
  8243. for (var key in pre) {
  8244. var currentValue = current[key];
  8245. if (currentValue === undefined) {
  8246. current[key] = null;
  8247. } else {
  8248. syncKeys(currentValue, pre[key]);
  8249. }
  8250. }
  8251. }
  8252. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8253. if (current.length >= pre.length) {
  8254. pre.forEach(function (item, index) {
  8255. syncKeys(current[index], item);
  8256. });
  8257. }
  8258. }
  8259. }
  8260. function nullOrUndefined(currentType, preType) {
  8261. if(
  8262. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8263. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8264. ) {
  8265. return false
  8266. }
  8267. return true
  8268. }
  8269. function _diff(current, pre, path, result) {
  8270. if (current === pre) { return }
  8271. var rootCurrentType = type(current);
  8272. var rootPreType = type(pre);
  8273. if (rootCurrentType == OBJECTTYPE) {
  8274. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8275. setResult(result, path, current);
  8276. } else {
  8277. var loop = function ( key ) {
  8278. var currentValue = current[key];
  8279. var preValue = pre[key];
  8280. var currentType = type(currentValue);
  8281. var preType = type(preValue);
  8282. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8283. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8284. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8285. }
  8286. } else if (currentType == ARRAYTYPE) {
  8287. if (preType != ARRAYTYPE) {
  8288. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8289. } else {
  8290. if (currentValue.length < preValue.length) {
  8291. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8292. } else {
  8293. currentValue.forEach(function (item, index) {
  8294. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8295. });
  8296. }
  8297. }
  8298. } else if (currentType == OBJECTTYPE) {
  8299. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8300. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8301. } else {
  8302. for (var subKey in currentValue) {
  8303. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8304. }
  8305. }
  8306. }
  8307. };
  8308. for (var key in current) loop( key );
  8309. }
  8310. } else if (rootCurrentType == ARRAYTYPE) {
  8311. if (rootPreType != ARRAYTYPE) {
  8312. setResult(result, path, current);
  8313. } else {
  8314. if (current.length < pre.length) {
  8315. setResult(result, path, current);
  8316. } else {
  8317. current.forEach(function (item, index) {
  8318. _diff(item, pre[index], path + '[' + index + ']', result);
  8319. });
  8320. }
  8321. }
  8322. } else {
  8323. setResult(result, path, current);
  8324. }
  8325. }
  8326. function setResult(result, k, v) {
  8327. // if (type(v) != FUNCTIONTYPE) {
  8328. result[k] = v;
  8329. // }
  8330. }
  8331. function type(obj) {
  8332. return Object.prototype.toString.call(obj)
  8333. }
  8334. /* */
  8335. function flushCallbacks$1(vm) {
  8336. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8337. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uni_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8338. var mpInstance = vm.$scope;
  8339. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8340. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8341. }
  8342. var copies = vm.__next_tick_callbacks.slice(0);
  8343. vm.__next_tick_callbacks.length = 0;
  8344. for (var i = 0; i < copies.length; i++) {
  8345. copies[i]();
  8346. }
  8347. }
  8348. }
  8349. function hasRenderWatcher(vm) {
  8350. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8351. }
  8352. function nextTick$1(vm, cb) {
  8353. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8354. //2.nextTick 之前存在 render watcher
  8355. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8356. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uni_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8357. var mpInstance = vm.$scope;
  8358. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8359. ']:nextVueTick');
  8360. }
  8361. return nextTick(cb, vm)
  8362. }else{
  8363. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uni_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8364. var mpInstance$1 = vm.$scope;
  8365. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8366. ']:nextMPTick');
  8367. }
  8368. }
  8369. var _resolve;
  8370. if (!vm.__next_tick_callbacks) {
  8371. vm.__next_tick_callbacks = [];
  8372. }
  8373. vm.__next_tick_callbacks.push(function () {
  8374. if (cb) {
  8375. try {
  8376. cb.call(vm);
  8377. } catch (e) {
  8378. handleError(e, vm, 'nextTick');
  8379. }
  8380. } else if (_resolve) {
  8381. _resolve(vm);
  8382. }
  8383. });
  8384. // $flow-disable-line
  8385. if (!cb && typeof Promise !== 'undefined') {
  8386. return new Promise(function (resolve) {
  8387. _resolve = resolve;
  8388. })
  8389. }
  8390. }
  8391. /* */
  8392. function clearInstance(key, value) {
  8393. // 简易去除 Vue 和小程序组件实例
  8394. if (value) {
  8395. if (value._isVue || value.__v_isMPComponent) {
  8396. return {}
  8397. }
  8398. }
  8399. return value
  8400. }
  8401. function cloneWithData(vm) {
  8402. // 确保当前 vm 所有数据被同步
  8403. var ret = Object.create(null);
  8404. var dataKeys = [].concat(
  8405. Object.keys(vm._data || {}),
  8406. Object.keys(vm._computedWatchers || {}));
  8407. dataKeys.reduce(function(ret, key) {
  8408. ret[key] = vm[key];
  8409. return ret
  8410. }, ret);
  8411. // vue-composition-api
  8412. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8413. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8414. if (rawBindings) {
  8415. Object.keys(rawBindings).forEach(function (key) {
  8416. ret[key] = vm[key];
  8417. });
  8418. }
  8419. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8420. Object.assign(ret, vm.$mp.data || {});
  8421. if (
  8422. Array.isArray(vm.$options.behaviors) &&
  8423. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8424. ) { //form-field
  8425. ret['name'] = vm.name;
  8426. ret['value'] = vm.value;
  8427. }
  8428. return JSON.parse(JSON.stringify(ret, clearInstance))
  8429. }
  8430. var patch = function(oldVnode, vnode) {
  8431. var this$1 = this;
  8432. if (vnode === null) { //destroy
  8433. return
  8434. }
  8435. if (this.mpType === 'page' || this.mpType === 'component') {
  8436. var mpInstance = this.$scope;
  8437. var data = Object.create(null);
  8438. try {
  8439. data = cloneWithData(this);
  8440. } catch (err) {
  8441. console.error(err);
  8442. }
  8443. data.__webviewId__ = mpInstance.data.__webviewId__;
  8444. var mpData = Object.create(null);
  8445. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8446. mpData[key] = mpInstance.data[key];
  8447. });
  8448. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8449. if (Object.keys(diffData).length) {
  8450. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uni_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8451. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8452. ']差量更新',
  8453. JSON.stringify(diffData));
  8454. }
  8455. this.__next_tick_pending = true;
  8456. mpInstance.setData(diffData, function () {
  8457. this$1.__next_tick_pending = false;
  8458. flushCallbacks$1(this$1);
  8459. });
  8460. } else {
  8461. flushCallbacks$1(this);
  8462. }
  8463. }
  8464. };
  8465. /* */
  8466. function createEmptyRender() {
  8467. }
  8468. function mountComponent$1(
  8469. vm,
  8470. el,
  8471. hydrating
  8472. ) {
  8473. if (!vm.mpType) {//main.js 中的 new Vue
  8474. return vm
  8475. }
  8476. if (vm.mpType === 'app') {
  8477. vm.$options.render = createEmptyRender;
  8478. }
  8479. if (!vm.$options.render) {
  8480. vm.$options.render = createEmptyRender;
  8481. if (true) {
  8482. /* istanbul ignore if */
  8483. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8484. vm.$options.el || el) {
  8485. warn(
  8486. 'You are using the runtime-only build of Vue where the template ' +
  8487. 'compiler is not available. Either pre-compile the templates into ' +
  8488. 'render functions, or use the compiler-included build.',
  8489. vm
  8490. );
  8491. } else {
  8492. warn(
  8493. 'Failed to mount component: template or render function not defined.',
  8494. vm
  8495. );
  8496. }
  8497. }
  8498. }
  8499. !vm._$fallback && callHook(vm, 'beforeMount');
  8500. var updateComponent = function () {
  8501. vm._update(vm._render(), hydrating);
  8502. };
  8503. // we set this to vm._watcher inside the watcher's constructor
  8504. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8505. // component's mounted hook), which relies on vm._watcher being already defined
  8506. new Watcher(vm, updateComponent, noop, {
  8507. before: function before() {
  8508. if (vm._isMounted && !vm._isDestroyed) {
  8509. callHook(vm, 'beforeUpdate');
  8510. }
  8511. }
  8512. }, true /* isRenderWatcher */);
  8513. hydrating = false;
  8514. return vm
  8515. }
  8516. /* */
  8517. function renderClass (
  8518. staticClass,
  8519. dynamicClass
  8520. ) {
  8521. if (isDef(staticClass) || isDef(dynamicClass)) {
  8522. return concat(staticClass, stringifyClass(dynamicClass))
  8523. }
  8524. /* istanbul ignore next */
  8525. return ''
  8526. }
  8527. function concat (a, b) {
  8528. return a ? b ? (a + ' ' + b) : a : (b || '')
  8529. }
  8530. function stringifyClass (value) {
  8531. if (Array.isArray(value)) {
  8532. return stringifyArray(value)
  8533. }
  8534. if (isObject(value)) {
  8535. return stringifyObject(value)
  8536. }
  8537. if (typeof value === 'string') {
  8538. return value
  8539. }
  8540. /* istanbul ignore next */
  8541. return ''
  8542. }
  8543. function stringifyArray (value) {
  8544. var res = '';
  8545. var stringified;
  8546. for (var i = 0, l = value.length; i < l; i++) {
  8547. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8548. if (res) { res += ' '; }
  8549. res += stringified;
  8550. }
  8551. }
  8552. return res
  8553. }
  8554. function stringifyObject (value) {
  8555. var res = '';
  8556. for (var key in value) {
  8557. if (value[key]) {
  8558. if (res) { res += ' '; }
  8559. res += key;
  8560. }
  8561. }
  8562. return res
  8563. }
  8564. /* */
  8565. var parseStyleText = cached(function (cssText) {
  8566. var res = {};
  8567. var listDelimiter = /;(?![^(]*\))/g;
  8568. var propertyDelimiter = /:(.+)/;
  8569. cssText.split(listDelimiter).forEach(function (item) {
  8570. if (item) {
  8571. var tmp = item.split(propertyDelimiter);
  8572. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8573. }
  8574. });
  8575. return res
  8576. });
  8577. // normalize possible array / string values into Object
  8578. function normalizeStyleBinding (bindingStyle) {
  8579. if (Array.isArray(bindingStyle)) {
  8580. return toObject(bindingStyle)
  8581. }
  8582. if (typeof bindingStyle === 'string') {
  8583. return parseStyleText(bindingStyle)
  8584. }
  8585. return bindingStyle
  8586. }
  8587. /* */
  8588. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8589. function getTarget(obj, path) {
  8590. var parts = path.split('.');
  8591. var key = parts[0];
  8592. if (key.indexOf('__$n') === 0) { //number index
  8593. key = parseInt(key.replace('__$n', ''));
  8594. }
  8595. if (parts.length === 1) {
  8596. return obj[key]
  8597. }
  8598. return getTarget(obj[key], parts.slice(1).join('.'))
  8599. }
  8600. function internalMixin(Vue) {
  8601. Vue.config.errorHandler = function(err, vm, info) {
  8602. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8603. console.error(err);
  8604. /* eslint-disable no-undef */
  8605. var app = typeof getApp === 'function' && getApp();
  8606. if (app && app.onError) {
  8607. app.onError(err);
  8608. }
  8609. };
  8610. var oldEmit = Vue.prototype.$emit;
  8611. Vue.prototype.$emit = function(event) {
  8612. if (this.$scope && event) {
  8613. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8614. if (triggerEvent) {
  8615. try {
  8616. triggerEvent.call(this.$scope, event, {
  8617. __args__: toArray(arguments, 1)
  8618. });
  8619. } catch (error) {
  8620. }
  8621. }
  8622. }
  8623. return oldEmit.apply(this, arguments)
  8624. };
  8625. Vue.prototype.$nextTick = function(fn) {
  8626. return nextTick$1(this, fn)
  8627. };
  8628. MP_METHODS.forEach(function (method) {
  8629. Vue.prototype[method] = function(args) {
  8630. if (this.$scope && this.$scope[method]) {
  8631. return this.$scope[method](args)
  8632. }
  8633. // mp-alipay
  8634. if (typeof my === 'undefined') {
  8635. return
  8636. }
  8637. if (method === 'createSelectorQuery') {
  8638. /* eslint-disable no-undef */
  8639. return my.createSelectorQuery(args)
  8640. } else if (method === 'createIntersectionObserver') {
  8641. /* eslint-disable no-undef */
  8642. return my.createIntersectionObserver(args)
  8643. }
  8644. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8645. };
  8646. });
  8647. Vue.prototype.__init_provide = initProvide;
  8648. Vue.prototype.__init_injections = initInjections;
  8649. Vue.prototype.__call_hook = function(hook, args) {
  8650. var vm = this;
  8651. // #7573 disable dep collection when invoking lifecycle hooks
  8652. pushTarget();
  8653. var handlers = vm.$options[hook];
  8654. var info = hook + " hook";
  8655. var ret;
  8656. if (handlers) {
  8657. for (var i = 0, j = handlers.length; i < j; i++) {
  8658. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8659. }
  8660. }
  8661. if (vm._hasHookEvent) {
  8662. vm.$emit('hook:' + hook, args);
  8663. }
  8664. popTarget();
  8665. return ret
  8666. };
  8667. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8668. if (Array.isArray(modifiers)) {
  8669. if (modifiers.indexOf('trim') !== -1) {
  8670. value = value.trim();
  8671. }
  8672. if (modifiers.indexOf('number') !== -1) {
  8673. value = this._n(value);
  8674. }
  8675. }
  8676. if (!target) {
  8677. target = this;
  8678. }
  8679. // 解决动态属性添加
  8680. Vue.set(target, key, value);
  8681. };
  8682. Vue.prototype.__set_sync = function(target, key, value) {
  8683. if (!target) {
  8684. target = this;
  8685. }
  8686. // 解决动态属性添加
  8687. Vue.set(target, key, value);
  8688. };
  8689. Vue.prototype.__get_orig = function(item) {
  8690. if (isPlainObject(item)) {
  8691. return item['$orig'] || item
  8692. }
  8693. return item
  8694. };
  8695. Vue.prototype.__get_value = function(dataPath, target) {
  8696. return getTarget(target || this, dataPath)
  8697. };
  8698. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8699. return renderClass(staticClass, dynamicClass)
  8700. };
  8701. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8702. if (!dynamicStyle && !staticStyle) {
  8703. return ''
  8704. }
  8705. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8706. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8707. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8708. };
  8709. Vue.prototype.__map = function(val, iteratee) {
  8710. //TODO 暂不考虑 string
  8711. var ret, i, l, keys, key;
  8712. if (Array.isArray(val)) {
  8713. ret = new Array(val.length);
  8714. for (i = 0, l = val.length; i < l; i++) {
  8715. ret[i] = iteratee(val[i], i);
  8716. }
  8717. return ret
  8718. } else if (isObject(val)) {
  8719. keys = Object.keys(val);
  8720. ret = Object.create(null);
  8721. for (i = 0, l = keys.length; i < l; i++) {
  8722. key = keys[i];
  8723. ret[key] = iteratee(val[key], key, i);
  8724. }
  8725. return ret
  8726. } else if (typeof val === 'number') {
  8727. ret = new Array(val);
  8728. for (i = 0, l = val; i < l; i++) {
  8729. // 第一个参数暂时仍和小程序一致
  8730. ret[i] = iteratee(i, i);
  8731. }
  8732. return ret
  8733. }
  8734. return []
  8735. };
  8736. }
  8737. /* */
  8738. var LIFECYCLE_HOOKS$1 = [
  8739. //App
  8740. 'onLaunch',
  8741. 'onShow',
  8742. 'onHide',
  8743. 'onUniNViewMessage',
  8744. 'onPageNotFound',
  8745. 'onThemeChange',
  8746. 'onError',
  8747. 'onUnhandledRejection',
  8748. //Page
  8749. 'onInit',
  8750. 'onLoad',
  8751. // 'onShow',
  8752. 'onReady',
  8753. // 'onHide',
  8754. 'onUnload',
  8755. 'onPullDownRefresh',
  8756. 'onReachBottom',
  8757. 'onTabItemTap',
  8758. 'onAddToFavorites',
  8759. 'onShareTimeline',
  8760. 'onShareAppMessage',
  8761. 'onResize',
  8762. 'onPageScroll',
  8763. 'onNavigationBarButtonTap',
  8764. 'onBackPress',
  8765. 'onNavigationBarSearchInputChanged',
  8766. 'onNavigationBarSearchInputConfirmed',
  8767. 'onNavigationBarSearchInputClicked',
  8768. 'onUploadDouyinVideo',
  8769. 'onNFCReadMessage',
  8770. //Component
  8771. // 'onReady', // 兼容旧版本,应该移除该事件
  8772. 'onPageShow',
  8773. 'onPageHide',
  8774. 'onPageResize'
  8775. ];
  8776. function lifecycleMixin$1(Vue) {
  8777. //fixed vue-class-component
  8778. var oldExtend = Vue.extend;
  8779. Vue.extend = function(extendOptions) {
  8780. extendOptions = extendOptions || {};
  8781. var methods = extendOptions.methods;
  8782. if (methods) {
  8783. Object.keys(methods).forEach(function (methodName) {
  8784. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8785. extendOptions[methodName] = methods[methodName];
  8786. delete methods[methodName];
  8787. }
  8788. });
  8789. }
  8790. return oldExtend.call(this, extendOptions)
  8791. };
  8792. var strategies = Vue.config.optionMergeStrategies;
  8793. var mergeHook = strategies.created;
  8794. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8795. strategies[hook] = mergeHook;
  8796. });
  8797. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8798. }
  8799. /* */
  8800. // install platform patch function
  8801. Vue.prototype.__patch__ = patch;
  8802. // public mount method
  8803. Vue.prototype.$mount = function(
  8804. el ,
  8805. hydrating
  8806. ) {
  8807. return mountComponent$1(this, el, hydrating)
  8808. };
  8809. lifecycleMixin$1(Vue);
  8810. internalMixin(Vue);
  8811. /* */
  8812. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8813. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8814. /***/ }),
  8815. /* 26 */
  8816. /*!*********************************************!*\
  8817. !*** D:/demo/tourism/uni_applet/pages.json ***!
  8818. \*********************************************/
  8819. /*! no static exports found */
  8820. /***/ (function(module, exports) {
  8821. /***/ }),
  8822. /* 27 */,
  8823. /* 28 */,
  8824. /* 29 */,
  8825. /* 30 */,
  8826. /* 31 */,
  8827. /* 32 */
  8828. /*!**********************************************************************************************************!*\
  8829. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8830. \**********************************************************************************************************/
  8831. /*! exports provided: default */
  8832. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8833. "use strict";
  8834. __webpack_require__.r(__webpack_exports__);
  8835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8836. /* globals __VUE_SSR_CONTEXT__ */
  8837. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8838. // This module is a runtime utility for cleaner component module output and will
  8839. // be included in the final webpack user bundle.
  8840. function normalizeComponent (
  8841. scriptExports,
  8842. render,
  8843. staticRenderFns,
  8844. functionalTemplate,
  8845. injectStyles,
  8846. scopeId,
  8847. moduleIdentifier, /* server only */
  8848. shadowMode, /* vue-cli only */
  8849. components, // fixed by xxxxxx auto components
  8850. renderjs // fixed by xxxxxx renderjs
  8851. ) {
  8852. // Vue.extend constructor export interop
  8853. var options = typeof scriptExports === 'function'
  8854. ? scriptExports.options
  8855. : scriptExports
  8856. // fixed by xxxxxx auto components
  8857. if (components) {
  8858. if (!options.components) {
  8859. options.components = {}
  8860. }
  8861. var hasOwn = Object.prototype.hasOwnProperty
  8862. for (var name in components) {
  8863. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8864. options.components[name] = components[name]
  8865. }
  8866. }
  8867. }
  8868. // fixed by xxxxxx renderjs
  8869. if (renderjs) {
  8870. if(typeof renderjs.beforeCreate === 'function'){
  8871. renderjs.beforeCreate = [renderjs.beforeCreate]
  8872. }
  8873. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8874. this[renderjs.__module] = this
  8875. });
  8876. (options.mixins || (options.mixins = [])).push(renderjs)
  8877. }
  8878. // render functions
  8879. if (render) {
  8880. options.render = render
  8881. options.staticRenderFns = staticRenderFns
  8882. options._compiled = true
  8883. }
  8884. // functional template
  8885. if (functionalTemplate) {
  8886. options.functional = true
  8887. }
  8888. // scopedId
  8889. if (scopeId) {
  8890. options._scopeId = 'data-v-' + scopeId
  8891. }
  8892. var hook
  8893. if (moduleIdentifier) { // server build
  8894. hook = function (context) {
  8895. // 2.3 injection
  8896. context =
  8897. context || // cached call
  8898. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8899. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8900. // 2.2 with runInNewContext: true
  8901. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8902. context = __VUE_SSR_CONTEXT__
  8903. }
  8904. // inject component styles
  8905. if (injectStyles) {
  8906. injectStyles.call(this, context)
  8907. }
  8908. // register component module identifier for async chunk inferrence
  8909. if (context && context._registeredComponents) {
  8910. context._registeredComponents.add(moduleIdentifier)
  8911. }
  8912. }
  8913. // used by ssr in case component is cached and beforeCreate
  8914. // never gets called
  8915. options._ssrRegister = hook
  8916. } else if (injectStyles) {
  8917. hook = shadowMode
  8918. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8919. : injectStyles
  8920. }
  8921. if (hook) {
  8922. if (options.functional) {
  8923. // for template-only hot-reload because in that case the render fn doesn't
  8924. // go through the normalizer
  8925. options._injectStyles = hook
  8926. // register for functioal component in vue file
  8927. var originalRender = options.render
  8928. options.render = function renderWithStyleInjection (h, context) {
  8929. hook.call(context)
  8930. return originalRender(h, context)
  8931. }
  8932. } else {
  8933. // inject component registration as beforeCreate hook
  8934. var existing = options.beforeCreate
  8935. options.beforeCreate = existing
  8936. ? [].concat(existing, hook)
  8937. : [hook]
  8938. }
  8939. }
  8940. return {
  8941. exports: scriptExports,
  8942. options: options
  8943. }
  8944. }
  8945. /***/ }),
  8946. /* 33 */
  8947. /*!**************************************************!*\
  8948. !*** D:/demo/tourism/uni_applet/util/request.js ***!
  8949. \**************************************************/
  8950. /*! no static exports found */
  8951. /***/ (function(module, exports, __webpack_require__) {
  8952. "use strict";
  8953. /* WEBPACK VAR INJECTION */(function(uni) {
  8954. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8955. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  8956. Object.defineProperty(exports, "__esModule", {
  8957. value: true
  8958. });
  8959. exports.default = void 0;
  8960. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  8961. var config = _interopRequireWildcard(__webpack_require__(/*! @/config */ 34));
  8962. var _WXBizDataCrypt = _interopRequireDefault(__webpack_require__(/*! ./WXBizDataCrypt.js */ 35));
  8963. 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); }
  8964. 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; }
  8965. 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; }
  8966. 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; }
  8967. var baseUrl = config.def().baseUrlNew;
  8968. // 定义基础请求路径(后端服务器地址)
  8969. var baseRequest = function baseRequest(_gp, _mt) {
  8970. var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  8971. var failCallback = arguments.length > 3 ? arguments[3] : undefined;
  8972. //异步请求数据
  8973. return new Promise(function (resolve) {
  8974. var baseUrl = config.def().baseUrlNew;
  8975. uni.request({
  8976. url: baseUrl + '/m.api',
  8977. data: _objectSpread(_objectSpread({}, data), {}, {
  8978. _gp: _gp,
  8979. _mt: _mt
  8980. }),
  8981. method: 'POST',
  8982. header: {
  8983. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
  8984. // 'ACCESSTOKEN': accessToken
  8985. },
  8986. success: function success(res) {
  8987. if (res.statusCode === 200) {
  8988. if (res.data.errno === 200) {
  8989. resolve(res.data);
  8990. } else {
  8991. if (failCallback) {
  8992. failCallback(res.data);
  8993. } else {
  8994. uni.showToast({
  8995. title: res.data.errmsg,
  8996. icon: 'none'
  8997. });
  8998. }
  8999. }
  9000. }
  9001. }
  9002. });
  9003. });
  9004. };
  9005. //带Token请求
  9006. var TokenRequest = function TokenRequest(method, url, data, header) {
  9007. var contentheader = 'application/json';
  9008. if (header) {
  9009. contentheader = header;
  9010. }
  9011. var ac_token = "";
  9012. uni.getStorage({
  9013. key: 'userInfo',
  9014. success: function success(res) {
  9015. ac_token = res.data.accessToken;
  9016. }
  9017. });
  9018. //此token是登录成功后后台返回保存在storage中的
  9019. var DefaultOpts = {
  9020. url: baseUrl + url,
  9021. data: data,
  9022. method: method,
  9023. header: {
  9024. 'content-type': contentheader,
  9025. 'Token': ac_token
  9026. }
  9027. };
  9028. var promise = new Promise(function (resolve, reject) {
  9029. uni.request(DefaultOpts).then(function (res) {
  9030. console.log(JSON.stringify(res[1].data));
  9031. if (res[1].data.code == '200' || res[1].data.code == 200) {
  9032. // 后端返回的状态码100为成功状态,成功则返回请求结果,在app调试时可以通过console.log(JSON.stringify(res[1].data))来查看返回值(以项目实际情况为准)
  9033. resolve(res[1].data);
  9034. }
  9035. if (res[1].data.code == '105' || res[1].data.code == 105) {
  9036. // 后端返回状态码为105则为未登录状态(以项目实际情况为准)
  9037. uni.showToast({
  9038. icon: 'none',
  9039. title: '尚未登录',
  9040. duration: 2000
  9041. });
  9042. // 尚未登录的逻辑处理
  9043. return false;
  9044. }
  9045. }).catch(function (response) {
  9046. reject(response);
  9047. });
  9048. });
  9049. return promise;
  9050. };
  9051. //微信登录
  9052. var wxlogin = function wxlogin() {
  9053. var promise = new Promise(function (resolve, reject) {
  9054. uni.login({
  9055. "provider": "weixin",
  9056. success: function success(wxres) {
  9057. console.log("wxlogin", wxres);
  9058. baseRequest('commonUserApp', 'commonUserLogin', {
  9059. loginType: 1,
  9060. raw: JSON.stringify(wxres)
  9061. }, function (failres) {
  9062. uni.showToast({
  9063. icon: "none",
  9064. title: failres.errmsg,
  9065. duration: 3000
  9066. });
  9067. uni.hideLoading();
  9068. }).then(function (res) {
  9069. console.log(res.data);
  9070. resolve(res.data);
  9071. });
  9072. },
  9073. fail: function fail(err) {
  9074. reject(err.code);
  9075. }
  9076. });
  9077. });
  9078. return promise;
  9079. };
  9080. //获取手机号
  9081. var getPhone = function getPhone(e, userInfo) {
  9082. var promise = new Promise(function (resolve, reject) {
  9083. if (e.mp.detail.errMsg === "getPhoneNumber:ok") {
  9084. var appId = 'wx5d8906c2208c899f';
  9085. var sessionKey = userInfo.sessionKey;
  9086. var encryptedData = e.mp.detail.encryptedData;
  9087. var iv = e.mp.detail.iv;
  9088. var data = '';
  9089. try {
  9090. console.log('解密前 encryptedData: ', encryptedData);
  9091. console.log('解密前 iv: ', iv);
  9092. console.log('解密前 appId: ', appId);
  9093. console.log('解密前 sessionKey: ', sessionKey);
  9094. data = _WXBizDataCrypt.default.prototype.decryptData(encryptedData, iv, appId, sessionKey);
  9095. console.log('解密后 data: ', data);
  9096. resolve(data.phoneNumber);
  9097. } catch (e) {
  9098. uni.showToast({
  9099. icon: "none",
  9100. title: e,
  9101. duration: 3000
  9102. });
  9103. }
  9104. }
  9105. });
  9106. return promise;
  9107. };
  9108. //同步信息
  9109. var syncInfo = function syncInfo(userInfo) {
  9110. var promise = new Promise(function (resolve, reject) {
  9111. if (!userInfo.head) userInfo.head = 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/card_head.png';
  9112. if (!userInfo.nickname) {
  9113. var code = "";
  9114. for (var i = 0; i < 6; i++) {
  9115. code += parseInt(Math.random() * 10);
  9116. }
  9117. userInfo.nickname = 'user' + code;
  9118. }
  9119. baseRequest('commonUserApp', 'edit', {
  9120. commonUserInfo: JSON.stringify(userInfo)
  9121. }, function (failres) {
  9122. uni.showToast({
  9123. icon: "none",
  9124. title: failres.errmsg,
  9125. duration: 3000
  9126. });
  9127. reject(err.code);
  9128. }).then(function (res) {
  9129. resolve(res.data);
  9130. });
  9131. });
  9132. return promise;
  9133. };
  9134. var _default = {
  9135. baseUrl: baseUrl,
  9136. baseRequest: baseRequest,
  9137. TokenRequest: TokenRequest,
  9138. wxlogin: wxlogin,
  9139. getPhone: getPhone,
  9140. syncInfo: syncInfo
  9141. };
  9142. exports.default = _default;
  9143. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9144. /***/ }),
  9145. /* 34 */
  9146. /*!**************************************************!*\
  9147. !*** D:/demo/tourism/uni_applet/config/index.js ***!
  9148. \**************************************************/
  9149. /*! no static exports found */
  9150. /***/ (function(module, exports, __webpack_require__) {
  9151. "use strict";
  9152. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9153. Object.defineProperty(exports, "__esModule", {
  9154. value: true
  9155. });
  9156. exports.def = def;
  9157. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9158. var _dev;
  9159. var dev = (_dev = {
  9160. // baseUrlNew: 'http://192.168.110.72:8182',
  9161. baseUrlNew: 'http://192.168.110.138:8182'
  9162. }, (0, _defineProperty2.default)(_dev, "baseUrlNew", 'http://192.168.110.138:8183'), (0, _defineProperty2.default)(_dev, "h5Appid", 'wxb66b599f7f61b46f'), (0, _defineProperty2.default)(_dev, "debug", false), _dev);
  9163. function def() {
  9164. return dev;
  9165. }
  9166. /***/ }),
  9167. /* 35 */
  9168. /*!*********************************************************!*\
  9169. !*** D:/demo/tourism/uni_applet/util/WXBizDataCrypt.js ***!
  9170. \*********************************************************/
  9171. /*! no static exports found */
  9172. /***/ (function(module, exports, __webpack_require__) {
  9173. /**
  9174. * Created by rd on 2017/5/4.
  9175. */
  9176. // 引入CryptoJS 路径依个人导入情况变动
  9177. var Crypto = __webpack_require__(/*! ./cryptojs-master/cryptojs.js */ 36).Crypto;
  9178. var app = getApp();
  9179. function RdWXBizDataCrypt(appId, sessionKey) {
  9180. this.appId = appId;
  9181. this.sessionKey = sessionKey;
  9182. }
  9183. RdWXBizDataCrypt.prototype.decryptData = function (encryptedData, iv, appId, sessionKey) {
  9184. // base64 decode :使用 CryptoJS 中 Crypto.util.base64ToBytes()进行 base64解码
  9185. var encryptedData = Crypto.util.base64ToBytes(encryptedData);
  9186. var key = Crypto.util.base64ToBytes(sessionKey);
  9187. var iv = Crypto.util.base64ToBytes(iv);
  9188. // 对称解密使用的算法为 AES-128-CBC,数据采用PKCS#7填充
  9189. var mode = new Crypto.mode.CBC(Crypto.pad.pkcs7);
  9190. try {
  9191. // 解密
  9192. var bytes = Crypto.AES.decrypt(encryptedData, key, {
  9193. asBpytes: true,
  9194. iv: iv,
  9195. mode: mode
  9196. });
  9197. var decryptResult = JSON.parse(bytes);
  9198. } catch (err) {
  9199. console.log(err);
  9200. }
  9201. return decryptResult;
  9202. };
  9203. module.exports = RdWXBizDataCrypt;
  9204. /***/ }),
  9205. /* 36 */
  9206. /*!*******************************************************************!*\
  9207. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/cryptojs.js ***!
  9208. \*******************************************************************/
  9209. /*! no static exports found */
  9210. /***/ (function(module, exports, __webpack_require__) {
  9211. var Crypto = exports.Crypto = __webpack_require__(/*! ./lib/Crypto */ 37).Crypto;
  9212. ['CryptoMath', 'BlockModes', 'DES', 'AES', 'HMAC', 'MARC4', 'MD5', 'PBKDF2', 'PBKDF2Async', 'Rabbit', 'SHA1', 'SHA256'].forEach(function (path) {
  9213. __webpack_require__(38)("./" + path);
  9214. });
  9215. /***/ }),
  9216. /* 37 */
  9217. /*!*********************************************************************!*\
  9218. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/Crypto.js ***!
  9219. \*********************************************************************/
  9220. /*! no static exports found */
  9221. /***/ (function(module, exports) {
  9222. if (typeof Crypto == "undefined" || !Crypto.util) {
  9223. (function () {
  9224. var base64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  9225. // Global Crypto object
  9226. // with browser window or with node module
  9227. var Crypto = typeof window === 'undefined' ? exports.Crypto = {} : window.Crypto = {};
  9228. // Crypto utilities
  9229. var util = Crypto.util = {
  9230. // Bit-wise rotate left
  9231. rotl: function rotl(n, b) {
  9232. return n << b | n >>> 32 - b;
  9233. },
  9234. // Bit-wise rotate right
  9235. rotr: function rotr(n, b) {
  9236. return n << 32 - b | n >>> b;
  9237. },
  9238. // Swap big-endian to little-endian and vice versa
  9239. endian: function endian(n) {
  9240. // If number given, swap endian
  9241. if (n.constructor == Number) {
  9242. return util.rotl(n, 8) & 0x00FF00FF | util.rotl(n, 24) & 0xFF00FF00;
  9243. }
  9244. // Else, assume array and swap all items
  9245. for (var i = 0; i < n.length; i++) {
  9246. n[i] = util.endian(n[i]);
  9247. }
  9248. return n;
  9249. },
  9250. // Generate an array of any length of random bytes
  9251. randomBytes: function randomBytes(n) {
  9252. for (var bytes = []; n > 0; n--) {
  9253. bytes.push(Math.floor(Math.random() * 256));
  9254. }
  9255. return bytes;
  9256. },
  9257. // Convert a byte array to big-endian 32-bit words
  9258. bytesToWords: function bytesToWords(bytes) {
  9259. for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8) {
  9260. words[b >>> 5] |= (bytes[i] & 0xFF) << 24 - b % 32;
  9261. }
  9262. return words;
  9263. },
  9264. // Convert big-endian 32-bit words to a byte array
  9265. wordsToBytes: function wordsToBytes(words) {
  9266. for (var bytes = [], b = 0; b < words.length * 32; b += 8) {
  9267. bytes.push(words[b >>> 5] >>> 24 - b % 32 & 0xFF);
  9268. }
  9269. return bytes;
  9270. },
  9271. // Convert a byte array to a hex string
  9272. bytesToHex: function bytesToHex(bytes) {
  9273. for (var hex = [], i = 0; i < bytes.length; i++) {
  9274. hex.push((bytes[i] >>> 4).toString(16));
  9275. hex.push((bytes[i] & 0xF).toString(16));
  9276. }
  9277. return hex.join("");
  9278. },
  9279. // Convert a hex string to a byte array
  9280. hexToBytes: function hexToBytes(hex) {
  9281. for (var bytes = [], c = 0; c < hex.length; c += 2) {
  9282. bytes.push(parseInt(hex.substr(c, 2), 16));
  9283. }
  9284. return bytes;
  9285. },
  9286. // Convert a byte array to a base-64 string
  9287. bytesToBase64: function bytesToBase64(bytes) {
  9288. // Use browser-native function if it exists
  9289. if (typeof btoa == "function") return btoa(Binary.bytesToString(bytes));
  9290. for (var base64 = [], i = 0; i < bytes.length; i += 3) {
  9291. var triplet = bytes[i] << 16 | bytes[i + 1] << 8 | bytes[i + 2];
  9292. for (var j = 0; j < 4; j++) {
  9293. if (i * 8 + j * 6 <= bytes.length * 8) base64.push(base64map.charAt(triplet >>> 6 * (3 - j) & 0x3F));else base64.push("=");
  9294. }
  9295. }
  9296. return base64.join("");
  9297. },
  9298. // Convert a base-64 string to a byte array
  9299. base64ToBytes: function base64ToBytes(base64) {
  9300. // Use browser-native function if it exists
  9301. if (typeof atob == "function") return Binary.stringToBytes(atob(base64));
  9302. // Remove non-base-64 characters
  9303. base64 = base64.replace(/[^A-Z0-9+\/]/ig, "");
  9304. for (var bytes = [], i = 0, imod4 = 0; i < base64.length; imod4 = ++i % 4) {
  9305. if (imod4 == 0) continue;
  9306. bytes.push((base64map.indexOf(base64.charAt(i - 1)) & Math.pow(2, -2 * imod4 + 8) - 1) << imod4 * 2 | base64map.indexOf(base64.charAt(i)) >>> 6 - imod4 * 2);
  9307. }
  9308. return bytes;
  9309. }
  9310. };
  9311. // Crypto character encodings
  9312. var charenc = Crypto.charenc = {};
  9313. // UTF-8 encoding
  9314. var UTF8 = charenc.UTF8 = {
  9315. // Convert a string to a byte array
  9316. stringToBytes: function stringToBytes(str) {
  9317. return Binary.stringToBytes(unescape(encodeURIComponent(str)));
  9318. },
  9319. // Convert a byte array to a string
  9320. bytesToString: function bytesToString(bytes) {
  9321. return decodeURIComponent(escape(Binary.bytesToString(bytes)));
  9322. }
  9323. };
  9324. // Binary encoding
  9325. var Binary = charenc.Binary = {
  9326. // Convert a string to a byte array
  9327. stringToBytes: function stringToBytes(str) {
  9328. for (var bytes = [], i = 0; i < str.length; i++) {
  9329. bytes.push(str.charCodeAt(i) & 0xFF);
  9330. }
  9331. return bytes;
  9332. },
  9333. // Convert a byte array to a string
  9334. bytesToString: function bytesToString(bytes) {
  9335. for (var str = [], i = 0; i < bytes.length; i++) {
  9336. str.push(String.fromCharCode(bytes[i]));
  9337. }
  9338. return str.join("");
  9339. }
  9340. };
  9341. })();
  9342. }
  9343. /***/ }),
  9344. /* 38 */
  9345. /*!*************************************************************************!*\
  9346. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib sync ^\.\/.*$ ***!
  9347. \*************************************************************************/
  9348. /*! no static exports found */
  9349. /***/ (function(module, exports, __webpack_require__) {
  9350. var map = {
  9351. "./AES": 39,
  9352. "./AES.js": 39,
  9353. "./BlockModes": 40,
  9354. "./BlockModes.js": 40,
  9355. "./Crypto": 37,
  9356. "./Crypto.js": 37,
  9357. "./CryptoMath": 41,
  9358. "./CryptoMath.js": 41,
  9359. "./DES": 42,
  9360. "./DES.js": 42,
  9361. "./HMAC": 43,
  9362. "./HMAC.js": 43,
  9363. "./MARC4": 44,
  9364. "./MARC4.js": 44,
  9365. "./MD5": 45,
  9366. "./MD5.js": 45,
  9367. "./PBKDF2": 46,
  9368. "./PBKDF2.js": 46,
  9369. "./PBKDF2Async": 47,
  9370. "./PBKDF2Async.js": 47,
  9371. "./Rabbit": 50,
  9372. "./Rabbit.js": 50,
  9373. "./SHA1": 51,
  9374. "./SHA1.js": 51,
  9375. "./SHA256": 52,
  9376. "./SHA256.js": 52
  9377. };
  9378. function webpackContext(req) {
  9379. var id = webpackContextResolve(req);
  9380. return __webpack_require__(id);
  9381. }
  9382. function webpackContextResolve(req) {
  9383. if(!__webpack_require__.o(map, req)) {
  9384. var e = new Error("Cannot find module '" + req + "'");
  9385. e.code = 'MODULE_NOT_FOUND';
  9386. throw e;
  9387. }
  9388. return map[req];
  9389. }
  9390. webpackContext.keys = function webpackContextKeys() {
  9391. return Object.keys(map);
  9392. };
  9393. webpackContext.resolve = webpackContextResolve;
  9394. module.exports = webpackContext;
  9395. webpackContext.id = 38;
  9396. /***/ }),
  9397. /* 39 */
  9398. /*!******************************************************************!*\
  9399. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/AES.js ***!
  9400. \******************************************************************/
  9401. /*! no static exports found */
  9402. /***/ (function(module, exports, __webpack_require__) {
  9403. (function () {
  9404. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  9405. // Shortcuts
  9406. var util = C.util,
  9407. charenc = C.charenc,
  9408. UTF8 = charenc.UTF8;
  9409. // Precomputed SBOX
  9410. var SBOX = [0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16];
  9411. // Compute inverse SBOX lookup table
  9412. for (var INVSBOX = [], i = 0; i < 256; i++) {
  9413. INVSBOX[SBOX[i]] = i;
  9414. }
  9415. // Compute mulitplication in GF(2^8) lookup tables
  9416. var MULT2 = [],
  9417. MULT3 = [],
  9418. MULT9 = [],
  9419. MULTB = [],
  9420. MULTD = [],
  9421. MULTE = [];
  9422. function xtime(a, b) {
  9423. for (var result = 0, i = 0; i < 8; i++) {
  9424. if (b & 1) result ^= a;
  9425. var hiBitSet = a & 0x80;
  9426. a = a << 1 & 0xFF;
  9427. if (hiBitSet) a ^= 0x1b;
  9428. b >>>= 1;
  9429. }
  9430. return result;
  9431. }
  9432. for (var i = 0; i < 256; i++) {
  9433. MULT2[i] = xtime(i, 2);
  9434. MULT3[i] = xtime(i, 3);
  9435. MULT9[i] = xtime(i, 9);
  9436. MULTB[i] = xtime(i, 0xB);
  9437. MULTD[i] = xtime(i, 0xD);
  9438. MULTE[i] = xtime(i, 0xE);
  9439. }
  9440. // Precomputed RCon lookup
  9441. var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
  9442. // Inner state
  9443. var state = [[], [], [], []],
  9444. keylength,
  9445. nrounds,
  9446. keyschedule;
  9447. var AES = C.AES = {
  9448. /**
  9449. * Public API
  9450. */
  9451. encrypt: function encrypt(message, password, options) {
  9452. options = options || {};
  9453. // Determine mode
  9454. var mode = options.mode || new C.mode.OFB();
  9455. // Allow mode to override options
  9456. if (mode.fixOptions) mode.fixOptions(options);
  9457. var
  9458. // Convert to bytes if message is a string
  9459. m = message.constructor == String ? UTF8.stringToBytes(message) : message,
  9460. // Generate random IV
  9461. iv = options.iv || util.randomBytes(AES._blocksize * 4),
  9462. // Generate key
  9463. k = password.constructor == String ?
  9464. // Derive key from passphrase
  9465. C.PBKDF2(password, iv, 32, {
  9466. asBytes: true
  9467. }) :
  9468. // else, assume byte array representing cryptographic key
  9469. password;
  9470. // Encrypt
  9471. AES._init(k);
  9472. mode.encrypt(AES, m, iv);
  9473. // Return ciphertext
  9474. m = options.iv ? m : iv.concat(m);
  9475. return options && options.asBytes ? m : util.bytesToBase64(m);
  9476. },
  9477. decrypt: function decrypt(ciphertext, password, options) {
  9478. options = options || {};
  9479. // Determine mode
  9480. var mode = options.mode || new C.mode.OFB();
  9481. // Allow mode to override options
  9482. if (mode.fixOptions) mode.fixOptions(options);
  9483. var
  9484. // Convert to bytes if ciphertext is a string
  9485. c = ciphertext.constructor == String ? util.base64ToBytes(ciphertext) : ciphertext,
  9486. // Separate IV and message
  9487. iv = options.iv || c.splice(0, AES._blocksize * 4),
  9488. // Generate key
  9489. k = password.constructor == String ?
  9490. // Derive key from passphrase
  9491. C.PBKDF2(password, iv, 32, {
  9492. asBytes: true
  9493. }) :
  9494. // else, assume byte array representing cryptographic key
  9495. password;
  9496. // Decrypt
  9497. AES._init(k);
  9498. mode.decrypt(AES, c, iv);
  9499. // Return plaintext
  9500. return options && options.asBytes ? c : UTF8.bytesToString(c);
  9501. },
  9502. /**
  9503. * Package private methods and properties
  9504. */
  9505. _blocksize: 4,
  9506. _encryptblock: function _encryptblock(m, offset) {
  9507. // Set input
  9508. for (var row = 0; row < AES._blocksize; row++) {
  9509. for (var col = 0; col < 4; col++) {
  9510. state[row][col] = m[offset + col * 4 + row];
  9511. }
  9512. }
  9513. // Add round key
  9514. for (var row = 0; row < 4; row++) {
  9515. for (var col = 0; col < 4; col++) {
  9516. state[row][col] ^= keyschedule[col][row];
  9517. }
  9518. }
  9519. for (var round = 1; round < nrounds; round++) {
  9520. // Sub bytes
  9521. for (var row = 0; row < 4; row++) {
  9522. for (var col = 0; col < 4; col++) {
  9523. state[row][col] = SBOX[state[row][col]];
  9524. }
  9525. }
  9526. // Shift rows
  9527. state[1].push(state[1].shift());
  9528. state[2].push(state[2].shift());
  9529. state[2].push(state[2].shift());
  9530. state[3].unshift(state[3].pop());
  9531. // Mix columns
  9532. for (var col = 0; col < 4; col++) {
  9533. var s0 = state[0][col],
  9534. s1 = state[1][col],
  9535. s2 = state[2][col],
  9536. s3 = state[3][col];
  9537. state[0][col] = MULT2[s0] ^ MULT3[s1] ^ s2 ^ s3;
  9538. state[1][col] = s0 ^ MULT2[s1] ^ MULT3[s2] ^ s3;
  9539. state[2][col] = s0 ^ s1 ^ MULT2[s2] ^ MULT3[s3];
  9540. state[3][col] = MULT3[s0] ^ s1 ^ s2 ^ MULT2[s3];
  9541. }
  9542. // Add round key
  9543. for (var row = 0; row < 4; row++) {
  9544. for (var col = 0; col < 4; col++) {
  9545. state[row][col] ^= keyschedule[round * 4 + col][row];
  9546. }
  9547. }
  9548. }
  9549. // Sub bytes
  9550. for (var row = 0; row < 4; row++) {
  9551. for (var col = 0; col < 4; col++) {
  9552. state[row][col] = SBOX[state[row][col]];
  9553. }
  9554. }
  9555. // Shift rows
  9556. state[1].push(state[1].shift());
  9557. state[2].push(state[2].shift());
  9558. state[2].push(state[2].shift());
  9559. state[3].unshift(state[3].pop());
  9560. // Add round key
  9561. for (var row = 0; row < 4; row++) {
  9562. for (var col = 0; col < 4; col++) {
  9563. state[row][col] ^= keyschedule[nrounds * 4 + col][row];
  9564. }
  9565. }
  9566. // Set output
  9567. for (var row = 0; row < AES._blocksize; row++) {
  9568. for (var col = 0; col < 4; col++) {
  9569. m[offset + col * 4 + row] = state[row][col];
  9570. }
  9571. }
  9572. },
  9573. _decryptblock: function _decryptblock(c, offset) {
  9574. // Set input
  9575. for (var row = 0; row < AES._blocksize; row++) {
  9576. for (var col = 0; col < 4; col++) {
  9577. state[row][col] = c[offset + col * 4 + row];
  9578. }
  9579. }
  9580. // Add round key
  9581. for (var row = 0; row < 4; row++) {
  9582. for (var col = 0; col < 4; col++) {
  9583. state[row][col] ^= keyschedule[nrounds * 4 + col][row];
  9584. }
  9585. }
  9586. for (var round = 1; round < nrounds; round++) {
  9587. // Inv shift rows
  9588. state[1].unshift(state[1].pop());
  9589. state[2].push(state[2].shift());
  9590. state[2].push(state[2].shift());
  9591. state[3].push(state[3].shift());
  9592. // Inv sub bytes
  9593. for (var row = 0; row < 4; row++) {
  9594. for (var col = 0; col < 4; col++) {
  9595. state[row][col] = INVSBOX[state[row][col]];
  9596. }
  9597. }
  9598. // Add round key
  9599. for (var row = 0; row < 4; row++) {
  9600. for (var col = 0; col < 4; col++) {
  9601. state[row][col] ^= keyschedule[(nrounds - round) * 4 + col][row];
  9602. }
  9603. }
  9604. // Inv mix columns
  9605. for (var col = 0; col < 4; col++) {
  9606. var s0 = state[0][col],
  9607. s1 = state[1][col],
  9608. s2 = state[2][col],
  9609. s3 = state[3][col];
  9610. state[0][col] = MULTE[s0] ^ MULTB[s1] ^ MULTD[s2] ^ MULT9[s3];
  9611. state[1][col] = MULT9[s0] ^ MULTE[s1] ^ MULTB[s2] ^ MULTD[s3];
  9612. state[2][col] = MULTD[s0] ^ MULT9[s1] ^ MULTE[s2] ^ MULTB[s3];
  9613. state[3][col] = MULTB[s0] ^ MULTD[s1] ^ MULT9[s2] ^ MULTE[s3];
  9614. }
  9615. }
  9616. // Inv shift rows
  9617. state[1].unshift(state[1].pop());
  9618. state[2].push(state[2].shift());
  9619. state[2].push(state[2].shift());
  9620. state[3].push(state[3].shift());
  9621. // Inv sub bytes
  9622. for (var row = 0; row < 4; row++) {
  9623. for (var col = 0; col < 4; col++) {
  9624. state[row][col] = INVSBOX[state[row][col]];
  9625. }
  9626. }
  9627. // Add round key
  9628. for (var row = 0; row < 4; row++) {
  9629. for (var col = 0; col < 4; col++) {
  9630. state[row][col] ^= keyschedule[col][row];
  9631. }
  9632. }
  9633. // Set output
  9634. for (var row = 0; row < AES._blocksize; row++) {
  9635. for (var col = 0; col < 4; col++) {
  9636. c[offset + col * 4 + row] = state[row][col];
  9637. }
  9638. }
  9639. },
  9640. /**
  9641. * Private methods
  9642. */
  9643. _init: function _init(k) {
  9644. keylength = k.length / 4;
  9645. nrounds = keylength + 6;
  9646. AES._keyexpansion(k);
  9647. },
  9648. // Generate a key schedule
  9649. _keyexpansion: function _keyexpansion(k) {
  9650. keyschedule = [];
  9651. for (var row = 0; row < keylength; row++) {
  9652. keyschedule[row] = [k[row * 4], k[row * 4 + 1], k[row * 4 + 2], k[row * 4 + 3]];
  9653. }
  9654. for (var row = keylength; row < AES._blocksize * (nrounds + 1); row++) {
  9655. var temp = [keyschedule[row - 1][0], keyschedule[row - 1][1], keyschedule[row - 1][2], keyschedule[row - 1][3]];
  9656. if (row % keylength == 0) {
  9657. // Rot word
  9658. temp.push(temp.shift());
  9659. // Sub word
  9660. temp[0] = SBOX[temp[0]];
  9661. temp[1] = SBOX[temp[1]];
  9662. temp[2] = SBOX[temp[2]];
  9663. temp[3] = SBOX[temp[3]];
  9664. temp[0] ^= RCON[row / keylength];
  9665. } else if (keylength > 6 && row % keylength == 4) {
  9666. // Sub word
  9667. temp[0] = SBOX[temp[0]];
  9668. temp[1] = SBOX[temp[1]];
  9669. temp[2] = SBOX[temp[2]];
  9670. temp[3] = SBOX[temp[3]];
  9671. }
  9672. keyschedule[row] = [keyschedule[row - keylength][0] ^ temp[0], keyschedule[row - keylength][1] ^ temp[1], keyschedule[row - keylength][2] ^ temp[2], keyschedule[row - keylength][3] ^ temp[3]];
  9673. }
  9674. }
  9675. };
  9676. })();
  9677. /***/ }),
  9678. /* 40 */
  9679. /*!*************************************************************************!*\
  9680. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/BlockModes.js ***!
  9681. \*************************************************************************/
  9682. /*! no static exports found */
  9683. /***/ (function(module, exports, __webpack_require__) {
  9684. /*!
  9685. * Crypto-JS contribution from Simon Greatrix
  9686. */
  9687. (function () {
  9688. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  9689. // Create pad namespace
  9690. var C_pad = C.pad = {};
  9691. // Calculate the number of padding bytes required.
  9692. function _requiredPadding(cipher, message) {
  9693. var blockSizeInBytes = cipher._blocksize * 4;
  9694. var reqd = blockSizeInBytes - message.length % blockSizeInBytes;
  9695. return reqd;
  9696. }
  9697. ;
  9698. // Remove padding when the final byte gives the number of padding bytes.
  9699. var _unpadLength = function _unpadLength(message) {
  9700. var pad = message.pop();
  9701. for (var i = 1; i < pad; i++) {
  9702. message.pop();
  9703. }
  9704. };
  9705. // No-operation padding, used for stream ciphers
  9706. C_pad.NoPadding = {
  9707. pad: function pad(cipher, message) {},
  9708. unpad: function unpad(message) {}
  9709. };
  9710. // Zero Padding.
  9711. //
  9712. // If the message is not an exact number of blocks, the final block is
  9713. // completed with 0x00 bytes. There is no unpadding.
  9714. C_pad.ZeroPadding = {
  9715. pad: function pad(cipher, message) {
  9716. var blockSizeInBytes = cipher._blocksize * 4;
  9717. var reqd = message.length % blockSizeInBytes;
  9718. if (reqd != 0) {
  9719. for (reqd = blockSizeInBytes - reqd; reqd > 0; reqd--) {
  9720. message.push(0x00);
  9721. }
  9722. }
  9723. },
  9724. unpad: function unpad(message) {}
  9725. };
  9726. // ISO/IEC 7816-4 padding.
  9727. //
  9728. // Pads the plain text with an 0x80 byte followed by as many 0x00
  9729. // bytes are required to complete the block.
  9730. C_pad.iso7816 = {
  9731. pad: function pad(cipher, message) {
  9732. var reqd = _requiredPadding(cipher, message);
  9733. message.push(0x80);
  9734. for (; reqd > 1; reqd--) {
  9735. message.push(0x00);
  9736. }
  9737. },
  9738. unpad: function unpad(message) {
  9739. while (message.pop() != 0x80) {}
  9740. }
  9741. };
  9742. // ANSI X.923 padding
  9743. //
  9744. // The final block is padded with zeros except for the last byte of the
  9745. // last block which contains the number of padding bytes.
  9746. C_pad.ansix923 = {
  9747. pad: function pad(cipher, message) {
  9748. var reqd = _requiredPadding(cipher, message);
  9749. for (var i = 1; i < reqd; i++) {
  9750. message.push(0x00);
  9751. }
  9752. message.push(reqd);
  9753. },
  9754. unpad: _unpadLength
  9755. };
  9756. // ISO 10126
  9757. //
  9758. // The final block is padded with random bytes except for the last
  9759. // byte of the last block which contains the number of padding bytes.
  9760. C_pad.iso10126 = {
  9761. pad: function pad(cipher, message) {
  9762. var reqd = _requiredPadding(cipher, message);
  9763. for (var i = 1; i < reqd; i++) {
  9764. message.push(Math.floor(Math.random() * 256));
  9765. }
  9766. message.push(reqd);
  9767. },
  9768. unpad: _unpadLength
  9769. };
  9770. // PKCS7 padding
  9771. //
  9772. // PKCS7 is described in RFC 5652. Padding is in whole bytes. The
  9773. // value of each added byte is the number of bytes that are added,
  9774. // i.e. N bytes, each of value N are added.
  9775. C_pad.pkcs7 = {
  9776. pad: function pad(cipher, message) {
  9777. var reqd = _requiredPadding(cipher, message);
  9778. for (var i = 0; i < reqd; i++) {
  9779. message.push(reqd);
  9780. }
  9781. },
  9782. unpad: _unpadLength
  9783. };
  9784. // Create mode namespace
  9785. var C_mode = C.mode = {};
  9786. /**
  9787. * Mode base "class".
  9788. */
  9789. var Mode = C_mode.Mode = function (padding) {
  9790. if (padding) {
  9791. this._padding = padding;
  9792. }
  9793. };
  9794. Mode.prototype = {
  9795. encrypt: function encrypt(cipher, m, iv) {
  9796. this._padding.pad(cipher, m);
  9797. this._doEncrypt(cipher, m, iv);
  9798. },
  9799. decrypt: function decrypt(cipher, m, iv) {
  9800. this._doDecrypt(cipher, m, iv);
  9801. this._padding.unpad(m);
  9802. },
  9803. // Default padding
  9804. _padding: C_pad.iso7816
  9805. };
  9806. /**
  9807. * Electronic Code Book mode.
  9808. *
  9809. * ECB applies the cipher directly against each block of the input.
  9810. *
  9811. * ECB does not require an initialization vector.
  9812. */
  9813. var ECB = C_mode.ECB = function () {
  9814. // Call parent constructor
  9815. Mode.apply(this, arguments);
  9816. };
  9817. // Inherit from Mode
  9818. var ECB_prototype = ECB.prototype = new Mode();
  9819. // Concrete steps for Mode template
  9820. ECB_prototype._doEncrypt = function (cipher, m, iv) {
  9821. var blockSizeInBytes = cipher._blocksize * 4;
  9822. // Encrypt each block
  9823. for (var offset = 0; offset < m.length; offset += blockSizeInBytes) {
  9824. cipher._encryptblock(m, offset);
  9825. }
  9826. };
  9827. ECB_prototype._doDecrypt = function (cipher, c, iv) {
  9828. var blockSizeInBytes = cipher._blocksize * 4;
  9829. // Decrypt each block
  9830. for (var offset = 0; offset < c.length; offset += blockSizeInBytes) {
  9831. cipher._decryptblock(c, offset);
  9832. }
  9833. };
  9834. // ECB never uses an IV
  9835. ECB_prototype.fixOptions = function (options) {
  9836. options.iv = [];
  9837. };
  9838. /**
  9839. * Cipher block chaining
  9840. *
  9841. * The first block is XORed with the IV. Subsequent blocks are XOR with the
  9842. * previous cipher output.
  9843. */
  9844. var CBC = C_mode.CBC = function () {
  9845. // Call parent constructor
  9846. Mode.apply(this, arguments);
  9847. };
  9848. // Inherit from Mode
  9849. var CBC_prototype = CBC.prototype = new Mode();
  9850. // Concrete steps for Mode template
  9851. CBC_prototype._doEncrypt = function (cipher, m, iv) {
  9852. var blockSizeInBytes = cipher._blocksize * 4;
  9853. // Encrypt each block
  9854. for (var offset = 0; offset < m.length; offset += blockSizeInBytes) {
  9855. if (offset == 0) {
  9856. // XOR first block using IV
  9857. for (var i = 0; i < blockSizeInBytes; i++) {
  9858. m[i] ^= iv[i];
  9859. }
  9860. } else {
  9861. // XOR this block using previous crypted block
  9862. for (var i = 0; i < blockSizeInBytes; i++) {
  9863. m[offset + i] ^= m[offset + i - blockSizeInBytes];
  9864. }
  9865. }
  9866. // Encrypt block
  9867. cipher._encryptblock(m, offset);
  9868. }
  9869. };
  9870. CBC_prototype._doDecrypt = function (cipher, c, iv) {
  9871. var blockSizeInBytes = cipher._blocksize * 4;
  9872. // At the start, the previously crypted block is the IV
  9873. var prevCryptedBlock = iv;
  9874. // Decrypt each block
  9875. for (var offset = 0; offset < c.length; offset += blockSizeInBytes) {
  9876. // Save this crypted block
  9877. var thisCryptedBlock = c.slice(offset, offset + blockSizeInBytes);
  9878. // Decrypt block
  9879. cipher._decryptblock(c, offset);
  9880. // XOR decrypted block using previous crypted block
  9881. for (var i = 0; i < blockSizeInBytes; i++) {
  9882. c[offset + i] ^= prevCryptedBlock[i];
  9883. }
  9884. prevCryptedBlock = thisCryptedBlock;
  9885. }
  9886. };
  9887. /**
  9888. * Cipher feed back
  9889. *
  9890. * The cipher output is XORed with the plain text to produce the cipher output,
  9891. * which is then fed back into the cipher to produce a bit pattern to XOR the
  9892. * next block with.
  9893. *
  9894. * This is a stream cipher mode and does not require padding.
  9895. */
  9896. var CFB = C_mode.CFB = function () {
  9897. // Call parent constructor
  9898. Mode.apply(this, arguments);
  9899. };
  9900. // Inherit from Mode
  9901. var CFB_prototype = CFB.prototype = new Mode();
  9902. // Override padding
  9903. CFB_prototype._padding = C_pad.NoPadding;
  9904. // Concrete steps for Mode template
  9905. CFB_prototype._doEncrypt = function (cipher, m, iv) {
  9906. var blockSizeInBytes = cipher._blocksize * 4,
  9907. keystream = iv.slice(0);
  9908. // Encrypt each byte
  9909. for (var i = 0; i < m.length; i++) {
  9910. var j = i % blockSizeInBytes;
  9911. if (j == 0) cipher._encryptblock(keystream, 0);
  9912. m[i] ^= keystream[j];
  9913. keystream[j] = m[i];
  9914. }
  9915. };
  9916. CFB_prototype._doDecrypt = function (cipher, c, iv) {
  9917. var blockSizeInBytes = cipher._blocksize * 4,
  9918. keystream = iv.slice(0);
  9919. // Encrypt each byte
  9920. for (var i = 0; i < c.length; i++) {
  9921. var j = i % blockSizeInBytes;
  9922. if (j == 0) cipher._encryptblock(keystream, 0);
  9923. var b = c[i];
  9924. c[i] ^= keystream[j];
  9925. keystream[j] = b;
  9926. }
  9927. };
  9928. /**
  9929. * Output feed back
  9930. *
  9931. * The cipher repeatedly encrypts its own output. The output is XORed with the
  9932. * plain text to produce the cipher text.
  9933. *
  9934. * This is a stream cipher mode and does not require padding.
  9935. */
  9936. var OFB = C_mode.OFB = function () {
  9937. // Call parent constructor
  9938. Mode.apply(this, arguments);
  9939. };
  9940. // Inherit from Mode
  9941. var OFB_prototype = OFB.prototype = new Mode();
  9942. // Override padding
  9943. OFB_prototype._padding = C_pad.NoPadding;
  9944. // Concrete steps for Mode template
  9945. OFB_prototype._doEncrypt = function (cipher, m, iv) {
  9946. var blockSizeInBytes = cipher._blocksize * 4,
  9947. keystream = iv.slice(0);
  9948. // Encrypt each byte
  9949. for (var i = 0; i < m.length; i++) {
  9950. // Generate keystream
  9951. if (i % blockSizeInBytes == 0) cipher._encryptblock(keystream, 0);
  9952. // Encrypt byte
  9953. m[i] ^= keystream[i % blockSizeInBytes];
  9954. }
  9955. };
  9956. OFB_prototype._doDecrypt = OFB_prototype._doEncrypt;
  9957. /**
  9958. * Counter
  9959. * @author Gergely Risko
  9960. *
  9961. * After every block the last 4 bytes of the IV is increased by one
  9962. * with carry and that IV is used for the next block.
  9963. *
  9964. * This is a stream cipher mode and does not require padding.
  9965. */
  9966. var CTR = C_mode.CTR = function () {
  9967. // Call parent constructor
  9968. Mode.apply(this, arguments);
  9969. };
  9970. // Inherit from Mode
  9971. var CTR_prototype = CTR.prototype = new Mode();
  9972. // Override padding
  9973. CTR_prototype._padding = C_pad.NoPadding;
  9974. CTR_prototype._doEncrypt = function (cipher, m, iv) {
  9975. var blockSizeInBytes = cipher._blocksize * 4;
  9976. var counter = iv.slice(0);
  9977. for (var i = 0; i < m.length;) {
  9978. // do not lose iv
  9979. var keystream = counter.slice(0);
  9980. // Generate keystream for next block
  9981. cipher._encryptblock(keystream, 0);
  9982. // XOR keystream with block
  9983. for (var j = 0; i < m.length && j < blockSizeInBytes; j++, i++) {
  9984. m[i] ^= keystream[j];
  9985. }
  9986. // Increase counter
  9987. if (++counter[blockSizeInBytes - 1] == 256) {
  9988. counter[blockSizeInBytes - 1] = 0;
  9989. if (++counter[blockSizeInBytes - 2] == 256) {
  9990. counter[blockSizeInBytes - 2] = 0;
  9991. if (++counter[blockSizeInBytes - 3] == 256) {
  9992. counter[blockSizeInBytes - 3] = 0;
  9993. ++counter[blockSizeInBytes - 4];
  9994. }
  9995. }
  9996. }
  9997. }
  9998. };
  9999. CTR_prototype._doDecrypt = CTR_prototype._doEncrypt;
  10000. })();
  10001. /***/ }),
  10002. /* 41 */
  10003. /*!*************************************************************************!*\
  10004. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/CryptoMath.js ***!
  10005. \*************************************************************************/
  10006. /*! no static exports found */
  10007. /***/ (function(module, exports, __webpack_require__) {
  10008. (function () {
  10009. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  10010. // Shortcut
  10011. var util = C.util;
  10012. // Convert n to unsigned 32-bit integer
  10013. util.u32 = function (n) {
  10014. return n >>> 0;
  10015. };
  10016. // Unsigned 32-bit addition
  10017. util.add = function () {
  10018. var result = this.u32(arguments[0]);
  10019. for (var i = 1; i < arguments.length; i++) {
  10020. result = this.u32(result + this.u32(arguments[i]));
  10021. }
  10022. return result;
  10023. };
  10024. // Unsigned 32-bit multiplication
  10025. util.mult = function (m, n) {
  10026. return this.add((n & 0xFFFF0000) * m, (n & 0x0000FFFF) * m);
  10027. };
  10028. // Unsigned 32-bit greater than (>) comparison
  10029. util.gt = function (m, n) {
  10030. return this.u32(m) > this.u32(n);
  10031. };
  10032. // Unsigned 32-bit less than (<) comparison
  10033. util.lt = function (m, n) {
  10034. return this.u32(m) < this.u32(n);
  10035. };
  10036. })();
  10037. /***/ }),
  10038. /* 42 */
  10039. /*!******************************************************************!*\
  10040. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/DES.js ***!
  10041. \******************************************************************/
  10042. /*! no static exports found */
  10043. /***/ (function(module, exports, __webpack_require__) {
  10044. /**
  10045. * Definition of Data Encryption Standard (DES) taken from:
  10046. * http://www.itl.nist.gov/fipspubs/fip46-2.htm
  10047. */
  10048. (function () {
  10049. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  10050. // Shortcuts
  10051. var util = C.util,
  10052. charenc = C.charenc,
  10053. UTF8 = charenc.UTF8;
  10054. /***************************************************************************
  10055. *
  10056. * DES Key Schedule.
  10057. *
  10058. * The Key consists of 16 sub-keys of 48 bits each. As each sub-key is
  10059. * applied to an expanded 32-bit value where each 4 bits of input is
  10060. * expanded into 6 bits of output the sub-key can be broken down into 8
  10061. * 32-bit values which allows the key to be used without expansion.
  10062. *
  10063. * To create the 16 sub-keys, 56 bits are selected from the input 64 bit key
  10064. * according to <i>PC1</i>. Each sub-key is generated by left rotating the
  10065. * bits a different amount and then selecting 48 bits according to <i>PC2</i>.
  10066. *
  10067. **************************************************************************/
  10068. var KeySchedule;
  10069. /**
  10070. * Representation of a DES key schedule.
  10071. *
  10072. * @param {Array
  10073. * of 8 bytes} key The cipher key
  10074. *
  10075. * @constructor
  10076. */
  10077. KeySchedule = function KeySchedule(key) {
  10078. /**
  10079. * The schedule of 16 keys
  10080. */
  10081. this.keys = new Array(16);
  10082. this._initialiseKeys(key);
  10083. };
  10084. /**
  10085. * Permuted Choice 1 (PC1) byte offsets into the key. Each of the 56 entries
  10086. * selects one bit of DES's 56 bit key.
  10087. * <p>
  10088. *
  10089. * <pre>
  10090. * The PC1 is defined as:
  10091. *
  10092. * 57, 49, 41, 33, 25, 17, 9,
  10093. * 1, 58, 50, 42, 34, 26, 18,
  10094. * 10, 2, 59, 51, 43, 35, 27,
  10095. * 19, 11, 3, 60, 52, 44, 36,
  10096. * 63, 55, 47, 39, 31, 23, 15,
  10097. * 7, 62, 54, 46, 38, 30, 22,
  10098. * 14, 6, 61, 53, 45, 37, 29,
  10099. * 21, 13, 5, 28, 20, 12, 4
  10100. * </pre>
  10101. *
  10102. * We represent this as an offset into an 8-byte array and a bit mask upon
  10103. * that byte. For example 57=(7*8)+1 so is the first (MSB) of the 7th byte.
  10104. *
  10105. * @constant
  10106. */
  10107. KeySchedule.PC1_offsets = [7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0];
  10108. /**
  10109. * Permuted Choice 1 (PC1) bit masks. Each of the 56 entries selects one bit
  10110. * of DES's 56 bit key.
  10111. *
  10112. * @constant
  10113. */
  10114. KeySchedule.PC1_masks = [128, 128, 128, 128, 128, 128, 128, 128, 64, 64, 64, 64, 64, 64, 64, 64, 32, 32, 32, 32, 32, 32, 32, 32, 16, 16, 16, 16, 2, 2, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 8, 8, 8, 8, 16, 16, 16, 16];
  10115. /**
  10116. * Permuted Choice 2 (PC2) selects the active 48 bits from the 56 bits of
  10117. * the key.
  10118. * <p>
  10119. *
  10120. * <pre>
  10121. * The PC2 is defined as:
  10122. *
  10123. * 14, 17, 11, 24, 1, 5,
  10124. * 3, 28, 15, 6, 21, 10,
  10125. * 23, 19, 12, 4, 26, 8,
  10126. * 16, 7, 27, 20, 13, 2,
  10127. * 41, 52, 31, 37, 47, 55,
  10128. * 30, 40, 51, 45, 33, 48,
  10129. * 44, 49, 39, 56, 34, 53,
  10130. * 46, 42, 50, 36, 29, 32
  10131. * </pre>
  10132. *
  10133. * We invert the choice to specify what each bit adds to each 6-bit value of
  10134. * the key. For example, bit 1 is the 5th bit selected so this add 2 to the
  10135. * first 6-bit value.
  10136. *
  10137. * @constant
  10138. */
  10139. KeySchedule.PC2_offsets1 = [0, 3, 1, 2, 0, 1, 3, 2, 0, 1, 0, 2, 3, 0, 1, 3, 0, 0, 2, 3, 1, 0, 2, 0, 0, 2, 3, 1];
  10140. /**
  10141. * PC2 offsets for 2nd block.
  10142. *
  10143. * @constant
  10144. */
  10145. KeySchedule.PC2_offsets2 = [7, 5, 4, 7, 5, 6, 0, 7, 4, 0, 6, 5, 4, 7, 0, 6, 5, 7, 4, 5, 6, 7, 5, 4, 6, 0, 4, 6];
  10146. /**
  10147. * Permuted Choice 2 (PC2) masks for 1st block.
  10148. *
  10149. * @constant
  10150. */
  10151. KeySchedule.PC2_masks1 = [2, 1, 32, 4, 1, 4, 16, 1, 0, 1, 8, 8, 2, 32, 8, 32, 16, 0, 16, 4, 2, 0, 32, 4, 0, 2, 8, 16];
  10152. /**
  10153. * PC2 masks for 2nd block.
  10154. *
  10155. * @constant
  10156. */
  10157. KeySchedule.PC2_masks2 = [2, 32, 8, 1, 2, 2, 0, 4, 4, 0, 8, 16, 32, 16, 0, 32, 4, 32, 2, 1, 16, 8, 8, 16, 1, 0, 1, 4];
  10158. /**
  10159. * Cumulative key shifts.
  10160. *
  10161. * @constant
  10162. */
  10163. KeySchedule.keyShifts = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
  10164. KeySchedule.prototype._initialiseKeys = function (key) {
  10165. var i;
  10166. // extract 56 key bits in order determined by PC1
  10167. var bits = new Array(56);
  10168. for (i = 0; i < 56; i++) {
  10169. bits[i] = (key[KeySchedule.PC1_offsets[i]] & KeySchedule.PC1_masks[i]) != 0;
  10170. }
  10171. // split 56 bits into two 28-bit chunks
  10172. var bits1 = bits.slice(0, 28);
  10173. var bits2 = bits.slice(28, 56);
  10174. // duplicate each half to allow for easy bit shifts
  10175. bits1 = bits1.concat(bits1);
  10176. bits2 = bits2.concat(bits2);
  10177. // assemble the 16 keys
  10178. for (i = 0; i < 16; i++) {
  10179. var k = [0, 0, 0, 0, 0, 0, 0, 0];
  10180. // select the bits of the key according to PC2
  10181. var s = KeySchedule.keyShifts[i];
  10182. for (var j = 0; j < 28; j++) {
  10183. if (bits1[j + s]) {
  10184. k[KeySchedule.PC2_offsets1[j]] += KeySchedule.PC2_masks1[j];
  10185. }
  10186. if (bits2[j + s]) {
  10187. k[KeySchedule.PC2_offsets2[j]] += KeySchedule.PC2_masks2[j];
  10188. }
  10189. }
  10190. // Scale each of the 8 blocks to a 32-bit mask.
  10191. k[0] = ((k[0] & 0x1f) << 27) + ((k[0] & 0x20) >> 5);
  10192. for (var j = 1; j <= 6; j++) {
  10193. k[j] = k[j] << 27 - 4 * j;
  10194. }
  10195. k[7] = ((k[7] & 0x3e) >> 1) + ((k[7] & 0x1) << 31);
  10196. this.keys[i] = k;
  10197. }
  10198. };
  10199. /**
  10200. * Retrieve the key for a specified round
  10201. *
  10202. * @param i
  10203. * the round
  10204. * @returns the key
  10205. */
  10206. KeySchedule.prototype.getKey = function (i) {
  10207. return this.keys[i];
  10208. };
  10209. /***************************************************************************
  10210. *
  10211. * DES Engine State
  10212. *
  10213. **************************************************************************/
  10214. var State;
  10215. /**
  10216. * The algorithm's state. DES operates on two sets of 32-bits, with each
  10217. * block of 32-bits treated as a single number.
  10218. *
  10219. * @class
  10220. */
  10221. State = function State() {
  10222. /** The LHS of the Feistel scheme */
  10223. this.lhs = 0;
  10224. /** The RHS of the Feistel scheme */
  10225. this.rhs = 0;
  10226. };
  10227. /**
  10228. * The masks that select the SBOX input. Each SBOX accepts 6 bits from the
  10229. * input.
  10230. *
  10231. * @constant
  10232. */
  10233. State.SBOX_MASK = [0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000, 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f];
  10234. /**
  10235. * The SBOXes. The 8 SBOXes each map 6 bit masked bit of the input to 4 bits
  10236. * of output. These SBOXes include the post SBOX permutation and benefit
  10237. * from JavaScript's sparse arrays to make specifying the input match
  10238. * simple.
  10239. *
  10240. * @constant
  10241. */
  10242. State.SBOX = new Array(8);
  10243. var SBOX = State.SBOX;
  10244. SBOX[0] = new Array();
  10245. SBOX[0][0] = 0x808200; // 0 (0, 0) = 14
  10246. SBOX[0][268435456] = 0x8000; // 10000000 (0, 1) = 4
  10247. SBOX[0][536870912] = 0x808002; // 20000000 (0, 2) = 13
  10248. SBOX[0][805306368] = 0x2; // 30000000 (0, 3) = 1
  10249. SBOX[0][1073741824] = 0x200; // 40000000 (0, 4) = 2
  10250. SBOX[0][1342177280] = 0x808202; // 50000000 (0, 5) = 15
  10251. SBOX[0][1610612736] = 0x800202; // 60000000 (0, 6) = 11
  10252. SBOX[0][1879048192] = 0x800000; // 70000000 (0, 7) = 8
  10253. SBOX[0][-2147483648] = 0x202; // 80000000 (0, 8) = 3
  10254. SBOX[0][-1879048192] = 0x800200; // 90000000 (0, 9) = 10
  10255. SBOX[0][-1610612736] = 0x8200; // a0000000 (0, 10) = 6
  10256. SBOX[0][-1342177280] = 0x808000; // b0000000 (0, 11) = 12
  10257. SBOX[0][-1073741824] = 0x8002; // c0000000 (0, 12) = 5
  10258. SBOX[0][-805306368] = 0x800002; // d0000000 (0, 13) = 9
  10259. SBOX[0][-536870912] = 0x0; // e0000000 (0, 14) = 0
  10260. SBOX[0][-268435456] = 0x8202; // f0000000 (0, 15) = 7
  10261. SBOX[0][134217728] = 0x0; // 8000000 (1, 0) = 0
  10262. SBOX[0][402653184] = 0x808202; // 18000000 (1, 1) = 15
  10263. SBOX[0][671088640] = 0x8202; // 28000000 (1, 2) = 7
  10264. SBOX[0][939524096] = 0x8000; // 38000000 (1, 3) = 4
  10265. SBOX[0][1207959552] = 0x808200; // 48000000 (1, 4) = 14
  10266. SBOX[0][1476395008] = 0x200; // 58000000 (1, 5) = 2
  10267. SBOX[0][1744830464] = 0x808002; // 68000000 (1, 6) = 13
  10268. SBOX[0][2013265920] = 0x2; // 78000000 (1, 7) = 1
  10269. SBOX[0][-2013265920] = 0x800200; // 88000000 (1, 8) = 10
  10270. SBOX[0][-1744830464] = 0x8200; // 98000000 (1, 9) = 6
  10271. SBOX[0][-1476395008] = 0x808000; // a8000000 (1, 10) = 12
  10272. SBOX[0][-1207959552] = 0x800202; // b8000000 (1, 11) = 11
  10273. SBOX[0][-939524096] = 0x800002; // c8000000 (1, 12) = 9
  10274. SBOX[0][-671088640] = 0x8002; // d8000000 (1, 13) = 5
  10275. SBOX[0][-402653184] = 0x202; // e8000000 (1, 14) = 3
  10276. SBOX[0][-134217728] = 0x800000; // f8000000 (1, 15) = 8
  10277. SBOX[0][1] = 0x8000; // 1 (2, 0) = 4
  10278. SBOX[0][268435457] = 0x2; // 10000001 (2, 1) = 1
  10279. SBOX[0][536870913] = 0x808200; // 20000001 (2, 2) = 14
  10280. SBOX[0][805306369] = 0x800000; // 30000001 (2, 3) = 8
  10281. SBOX[0][1073741825] = 0x808002; // 40000001 (2, 4) = 13
  10282. SBOX[0][1342177281] = 0x8200; // 50000001 (2, 5) = 6
  10283. SBOX[0][1610612737] = 0x200; // 60000001 (2, 6) = 2
  10284. SBOX[0][1879048193] = 0x800202; // 70000001 (2, 7) = 11
  10285. SBOX[0][-2147483647] = 0x808202; // 80000001 (2, 8) = 15
  10286. SBOX[0][-1879048191] = 0x808000; // 90000001 (2, 9) = 12
  10287. SBOX[0][-1610612735] = 0x800002; // a0000001 (2, 10) = 9
  10288. SBOX[0][-1342177279] = 0x8202; // b0000001 (2, 11) = 7
  10289. SBOX[0][-1073741823] = 0x202; // c0000001 (2, 12) = 3
  10290. SBOX[0][-805306367] = 0x800200; // d0000001 (2, 13) = 10
  10291. SBOX[0][-536870911] = 0x8002; // e0000001 (2, 14) = 5
  10292. SBOX[0][-268435455] = 0x0; // f0000001 (2, 15) = 0
  10293. SBOX[0][134217729] = 0x808202; // 8000001 (3, 0) = 15
  10294. SBOX[0][402653185] = 0x808000; // 18000001 (3, 1) = 12
  10295. SBOX[0][671088641] = 0x800000; // 28000001 (3, 2) = 8
  10296. SBOX[0][939524097] = 0x200; // 38000001 (3, 3) = 2
  10297. SBOX[0][1207959553] = 0x8000; // 48000001 (3, 4) = 4
  10298. SBOX[0][1476395009] = 0x800002; // 58000001 (3, 5) = 9
  10299. SBOX[0][1744830465] = 0x2; // 68000001 (3, 6) = 1
  10300. SBOX[0][2013265921] = 0x8202; // 78000001 (3, 7) = 7
  10301. SBOX[0][-2013265919] = 0x8002; // 88000001 (3, 8) = 5
  10302. SBOX[0][-1744830463] = 0x800202; // 98000001 (3, 9) = 11
  10303. SBOX[0][-1476395007] = 0x202; // a8000001 (3, 10) = 3
  10304. SBOX[0][-1207959551] = 0x808200; // b8000001 (3, 11) = 14
  10305. SBOX[0][-939524095] = 0x800200; // c8000001 (3, 12) = 10
  10306. SBOX[0][-671088639] = 0x0; // d8000001 (3, 13) = 0
  10307. SBOX[0][-402653183] = 0x8200; // e8000001 (3, 14) = 6
  10308. SBOX[0][-134217727] = 0x808002; // f8000001 (3, 15) = 13
  10309. SBOX[1] = new Array();
  10310. SBOX[1][0] = 0x40084010; // 0 (0, 0) = 15
  10311. SBOX[1][16777216] = 0x4000; // 1000000 (0, 1) = 1
  10312. SBOX[1][33554432] = 0x80000; // 2000000 (0, 2) = 8
  10313. SBOX[1][50331648] = 0x40080010; // 3000000 (0, 3) = 14
  10314. SBOX[1][67108864] = 0x40000010; // 4000000 (0, 4) = 6
  10315. SBOX[1][83886080] = 0x40084000; // 5000000 (0, 5) = 11
  10316. SBOX[1][100663296] = 0x40004000; // 6000000 (0, 6) = 3
  10317. SBOX[1][117440512] = 0x10; // 7000000 (0, 7) = 4
  10318. SBOX[1][134217728] = 0x84000; // 8000000 (0, 8) = 9
  10319. SBOX[1][150994944] = 0x40004010; // 9000000 (0, 9) = 7
  10320. SBOX[1][167772160] = 0x40000000; // a000000 (0, 10) = 2
  10321. SBOX[1][184549376] = 0x84010; // b000000 (0, 11) = 13
  10322. SBOX[1][201326592] = 0x80010; // c000000 (0, 12) = 12
  10323. SBOX[1][218103808] = 0x0; // d000000 (0, 13) = 0
  10324. SBOX[1][234881024] = 0x4010; // e000000 (0, 14) = 5
  10325. SBOX[1][251658240] = 0x40080000; // f000000 (0, 15) = 10
  10326. SBOX[1][8388608] = 0x40004000; // 800000 (1, 0) = 3
  10327. SBOX[1][25165824] = 0x84010; // 1800000 (1, 1) = 13
  10328. SBOX[1][41943040] = 0x10; // 2800000 (1, 2) = 4
  10329. SBOX[1][58720256] = 0x40004010; // 3800000 (1, 3) = 7
  10330. SBOX[1][75497472] = 0x40084010; // 4800000 (1, 4) = 15
  10331. SBOX[1][92274688] = 0x40000000; // 5800000 (1, 5) = 2
  10332. SBOX[1][109051904] = 0x80000; // 6800000 (1, 6) = 8
  10333. SBOX[1][125829120] = 0x40080010; // 7800000 (1, 7) = 14
  10334. SBOX[1][142606336] = 0x80010; // 8800000 (1, 8) = 12
  10335. SBOX[1][159383552] = 0x0; // 9800000 (1, 9) = 0
  10336. SBOX[1][176160768] = 0x4000; // a800000 (1, 10) = 1
  10337. SBOX[1][192937984] = 0x40080000; // b800000 (1, 11) = 10
  10338. SBOX[1][209715200] = 0x40000010; // c800000 (1, 12) = 6
  10339. SBOX[1][226492416] = 0x84000; // d800000 (1, 13) = 9
  10340. SBOX[1][243269632] = 0x40084000; // e800000 (1, 14) = 11
  10341. SBOX[1][260046848] = 0x4010; // f800000 (1, 15) = 5
  10342. SBOX[1][268435456] = 0x0; // 10000000 (2, 0) = 0
  10343. SBOX[1][285212672] = 0x40080010; // 11000000 (2, 1) = 14
  10344. SBOX[1][301989888] = 0x40004010; // 12000000 (2, 2) = 7
  10345. SBOX[1][318767104] = 0x40084000; // 13000000 (2, 3) = 11
  10346. SBOX[1][335544320] = 0x40080000; // 14000000 (2, 4) = 10
  10347. SBOX[1][352321536] = 0x10; // 15000000 (2, 5) = 4
  10348. SBOX[1][369098752] = 0x84010; // 16000000 (2, 6) = 13
  10349. SBOX[1][385875968] = 0x4000; // 17000000 (2, 7) = 1
  10350. SBOX[1][402653184] = 0x4010; // 18000000 (2, 8) = 5
  10351. SBOX[1][419430400] = 0x80000; // 19000000 (2, 9) = 8
  10352. SBOX[1][436207616] = 0x80010; // 1a000000 (2, 10) = 12
  10353. SBOX[1][452984832] = 0x40000010; // 1b000000 (2, 11) = 6
  10354. SBOX[1][469762048] = 0x84000; // 1c000000 (2, 12) = 9
  10355. SBOX[1][486539264] = 0x40004000; // 1d000000 (2, 13) = 3
  10356. SBOX[1][503316480] = 0x40000000; // 1e000000 (2, 14) = 2
  10357. SBOX[1][520093696] = 0x40084010; // 1f000000 (2, 15) = 15
  10358. SBOX[1][276824064] = 0x84010; // 10800000 (3, 0) = 13
  10359. SBOX[1][293601280] = 0x80000; // 11800000 (3, 1) = 8
  10360. SBOX[1][310378496] = 0x40080000; // 12800000 (3, 2) = 10
  10361. SBOX[1][327155712] = 0x4000; // 13800000 (3, 3) = 1
  10362. SBOX[1][343932928] = 0x40004000; // 14800000 (3, 4) = 3
  10363. SBOX[1][360710144] = 0x40084010; // 15800000 (3, 5) = 15
  10364. SBOX[1][377487360] = 0x10; // 16800000 (3, 6) = 4
  10365. SBOX[1][394264576] = 0x40000000; // 17800000 (3, 7) = 2
  10366. SBOX[1][411041792] = 0x40084000; // 18800000 (3, 8) = 11
  10367. SBOX[1][427819008] = 0x40000010; // 19800000 (3, 9) = 6
  10368. SBOX[1][444596224] = 0x40004010; // 1a800000 (3, 10) = 7
  10369. SBOX[1][461373440] = 0x80010; // 1b800000 (3, 11) = 12
  10370. SBOX[1][478150656] = 0x0; // 1c800000 (3, 12) = 0
  10371. SBOX[1][494927872] = 0x4010; // 1d800000 (3, 13) = 5
  10372. SBOX[1][511705088] = 0x40080010; // 1e800000 (3, 14) = 14
  10373. SBOX[1][528482304] = 0x84000; // 1f800000 (3, 15) = 9
  10374. SBOX[2] = new Array();
  10375. SBOX[2][0] = 0x104; // 0 (0, 0) = 10
  10376. SBOX[2][1048576] = 0x0; // 100000 (0, 1) = 0
  10377. SBOX[2][2097152] = 0x4000100; // 200000 (0, 2) = 9
  10378. SBOX[2][3145728] = 0x10104; // 300000 (0, 3) = 14
  10379. SBOX[2][4194304] = 0x10004; // 400000 (0, 4) = 6
  10380. SBOX[2][5242880] = 0x4000004; // 500000 (0, 5) = 3
  10381. SBOX[2][6291456] = 0x4010104; // 600000 (0, 6) = 15
  10382. SBOX[2][7340032] = 0x4010000; // 700000 (0, 7) = 5
  10383. SBOX[2][8388608] = 0x4000000; // 800000 (0, 8) = 1
  10384. SBOX[2][9437184] = 0x4010100; // 900000 (0, 9) = 13
  10385. SBOX[2][10485760] = 0x10100; // a00000 (0, 10) = 12
  10386. SBOX[2][11534336] = 0x4010004; // b00000 (0, 11) = 7
  10387. SBOX[2][12582912] = 0x4000104; // c00000 (0, 12) = 11
  10388. SBOX[2][13631488] = 0x10000; // d00000 (0, 13) = 4
  10389. SBOX[2][14680064] = 0x4; // e00000 (0, 14) = 2
  10390. SBOX[2][15728640] = 0x100; // f00000 (0, 15) = 8
  10391. SBOX[2][524288] = 0x4010100; // 80000 (1, 0) = 13
  10392. SBOX[2][1572864] = 0x4010004; // 180000 (1, 1) = 7
  10393. SBOX[2][2621440] = 0x0; // 280000 (1, 2) = 0
  10394. SBOX[2][3670016] = 0x4000100; // 380000 (1, 3) = 9
  10395. SBOX[2][4718592] = 0x4000004; // 480000 (1, 4) = 3
  10396. SBOX[2][5767168] = 0x10000; // 580000 (1, 5) = 4
  10397. SBOX[2][6815744] = 0x10004; // 680000 (1, 6) = 6
  10398. SBOX[2][7864320] = 0x104; // 780000 (1, 7) = 10
  10399. SBOX[2][8912896] = 0x4; // 880000 (1, 8) = 2
  10400. SBOX[2][9961472] = 0x100; // 980000 (1, 9) = 8
  10401. SBOX[2][11010048] = 0x4010000; // a80000 (1, 10) = 5
  10402. SBOX[2][12058624] = 0x10104; // b80000 (1, 11) = 14
  10403. SBOX[2][13107200] = 0x10100; // c80000 (1, 12) = 12
  10404. SBOX[2][14155776] = 0x4000104; // d80000 (1, 13) = 11
  10405. SBOX[2][15204352] = 0x4010104; // e80000 (1, 14) = 15
  10406. SBOX[2][16252928] = 0x4000000; // f80000 (1, 15) = 1
  10407. SBOX[2][16777216] = 0x4010100; // 1000000 (2, 0) = 13
  10408. SBOX[2][17825792] = 0x10004; // 1100000 (2, 1) = 6
  10409. SBOX[2][18874368] = 0x10000; // 1200000 (2, 2) = 4
  10410. SBOX[2][19922944] = 0x4000100; // 1300000 (2, 3) = 9
  10411. SBOX[2][20971520] = 0x100; // 1400000 (2, 4) = 8
  10412. SBOX[2][22020096] = 0x4010104; // 1500000 (2, 5) = 15
  10413. SBOX[2][23068672] = 0x4000004; // 1600000 (2, 6) = 3
  10414. SBOX[2][24117248] = 0x0; // 1700000 (2, 7) = 0
  10415. SBOX[2][25165824] = 0x4000104; // 1800000 (2, 8) = 11
  10416. SBOX[2][26214400] = 0x4000000; // 1900000 (2, 9) = 1
  10417. SBOX[2][27262976] = 0x4; // 1a00000 (2, 10) = 2
  10418. SBOX[2][28311552] = 0x10100; // 1b00000 (2, 11) = 12
  10419. SBOX[2][29360128] = 0x4010000; // 1c00000 (2, 12) = 5
  10420. SBOX[2][30408704] = 0x104; // 1d00000 (2, 13) = 10
  10421. SBOX[2][31457280] = 0x10104; // 1e00000 (2, 14) = 14
  10422. SBOX[2][32505856] = 0x4010004; // 1f00000 (2, 15) = 7
  10423. SBOX[2][17301504] = 0x4000000; // 1080000 (3, 0) = 1
  10424. SBOX[2][18350080] = 0x104; // 1180000 (3, 1) = 10
  10425. SBOX[2][19398656] = 0x4010100; // 1280000 (3, 2) = 13
  10426. SBOX[2][20447232] = 0x0; // 1380000 (3, 3) = 0
  10427. SBOX[2][21495808] = 0x10004; // 1480000 (3, 4) = 6
  10428. SBOX[2][22544384] = 0x4000100; // 1580000 (3, 5) = 9
  10429. SBOX[2][23592960] = 0x100; // 1680000 (3, 6) = 8
  10430. SBOX[2][24641536] = 0x4010004; // 1780000 (3, 7) = 7
  10431. SBOX[2][25690112] = 0x10000; // 1880000 (3, 8) = 4
  10432. SBOX[2][26738688] = 0x4010104; // 1980000 (3, 9) = 15
  10433. SBOX[2][27787264] = 0x10104; // 1a80000 (3, 10) = 14
  10434. SBOX[2][28835840] = 0x4000004; // 1b80000 (3, 11) = 3
  10435. SBOX[2][29884416] = 0x4000104; // 1c80000 (3, 12) = 11
  10436. SBOX[2][30932992] = 0x4010000; // 1d80000 (3, 13) = 5
  10437. SBOX[2][31981568] = 0x4; // 1e80000 (3, 14) = 2
  10438. SBOX[2][33030144] = 0x10100; // 1f80000 (3, 15) = 12
  10439. SBOX[3] = new Array();
  10440. SBOX[3][0] = 0x80401000; // 0 (0, 0) = 7
  10441. SBOX[3][65536] = 0x80001040; // 10000 (0, 1) = 13
  10442. SBOX[3][131072] = 0x401040; // 20000 (0, 2) = 14
  10443. SBOX[3][196608] = 0x80400000; // 30000 (0, 3) = 3
  10444. SBOX[3][262144] = 0x0; // 40000 (0, 4) = 0
  10445. SBOX[3][327680] = 0x401000; // 50000 (0, 5) = 6
  10446. SBOX[3][393216] = 0x80000040; // 60000 (0, 6) = 9
  10447. SBOX[3][458752] = 0x400040; // 70000 (0, 7) = 10
  10448. SBOX[3][524288] = 0x80000000; // 80000 (0, 8) = 1
  10449. SBOX[3][589824] = 0x400000; // 90000 (0, 9) = 2
  10450. SBOX[3][655360] = 0x40; // a0000 (0, 10) = 8
  10451. SBOX[3][720896] = 0x80001000; // b0000 (0, 11) = 5
  10452. SBOX[3][786432] = 0x80400040; // c0000 (0, 12) = 11
  10453. SBOX[3][851968] = 0x1040; // d0000 (0, 13) = 12
  10454. SBOX[3][917504] = 0x1000; // e0000 (0, 14) = 4
  10455. SBOX[3][983040] = 0x80401040; // f0000 (0, 15) = 15
  10456. SBOX[3][32768] = 0x80001040; // 8000 (1, 0) = 13
  10457. SBOX[3][98304] = 0x40; // 18000 (1, 1) = 8
  10458. SBOX[3][163840] = 0x80400040; // 28000 (1, 2) = 11
  10459. SBOX[3][229376] = 0x80001000; // 38000 (1, 3) = 5
  10460. SBOX[3][294912] = 0x401000; // 48000 (1, 4) = 6
  10461. SBOX[3][360448] = 0x80401040; // 58000 (1, 5) = 15
  10462. SBOX[3][425984] = 0x0; // 68000 (1, 6) = 0
  10463. SBOX[3][491520] = 0x80400000; // 78000 (1, 7) = 3
  10464. SBOX[3][557056] = 0x1000; // 88000 (1, 8) = 4
  10465. SBOX[3][622592] = 0x80401000; // 98000 (1, 9) = 7
  10466. SBOX[3][688128] = 0x400000; // a8000 (1, 10) = 2
  10467. SBOX[3][753664] = 0x1040; // b8000 (1, 11) = 12
  10468. SBOX[3][819200] = 0x80000000; // c8000 (1, 12) = 1
  10469. SBOX[3][884736] = 0x400040; // d8000 (1, 13) = 10
  10470. SBOX[3][950272] = 0x401040; // e8000 (1, 14) = 14
  10471. SBOX[3][1015808] = 0x80000040; // f8000 (1, 15) = 9
  10472. SBOX[3][1048576] = 0x400040; // 100000 (2, 0) = 10
  10473. SBOX[3][1114112] = 0x401000; // 110000 (2, 1) = 6
  10474. SBOX[3][1179648] = 0x80000040; // 120000 (2, 2) = 9
  10475. SBOX[3][1245184] = 0x0; // 130000 (2, 3) = 0
  10476. SBOX[3][1310720] = 0x1040; // 140000 (2, 4) = 12
  10477. SBOX[3][1376256] = 0x80400040; // 150000 (2, 5) = 11
  10478. SBOX[3][1441792] = 0x80401000; // 160000 (2, 6) = 7
  10479. SBOX[3][1507328] = 0x80001040; // 170000 (2, 7) = 13
  10480. SBOX[3][1572864] = 0x80401040; // 180000 (2, 8) = 15
  10481. SBOX[3][1638400] = 0x80000000; // 190000 (2, 9) = 1
  10482. SBOX[3][1703936] = 0x80400000; // 1a0000 (2, 10) = 3
  10483. SBOX[3][1769472] = 0x401040; // 1b0000 (2, 11) = 14
  10484. SBOX[3][1835008] = 0x80001000; // 1c0000 (2, 12) = 5
  10485. SBOX[3][1900544] = 0x400000; // 1d0000 (2, 13) = 2
  10486. SBOX[3][1966080] = 0x40; // 1e0000 (2, 14) = 8
  10487. SBOX[3][2031616] = 0x1000; // 1f0000 (2, 15) = 4
  10488. SBOX[3][1081344] = 0x80400000; // 108000 (3, 0) = 3
  10489. SBOX[3][1146880] = 0x80401040; // 118000 (3, 1) = 15
  10490. SBOX[3][1212416] = 0x0; // 128000 (3, 2) = 0
  10491. SBOX[3][1277952] = 0x401000; // 138000 (3, 3) = 6
  10492. SBOX[3][1343488] = 0x400040; // 148000 (3, 4) = 10
  10493. SBOX[3][1409024] = 0x80000000; // 158000 (3, 5) = 1
  10494. SBOX[3][1474560] = 0x80001040; // 168000 (3, 6) = 13
  10495. SBOX[3][1540096] = 0x40; // 178000 (3, 7) = 8
  10496. SBOX[3][1605632] = 0x80000040; // 188000 (3, 8) = 9
  10497. SBOX[3][1671168] = 0x1000; // 198000 (3, 9) = 4
  10498. SBOX[3][1736704] = 0x80001000; // 1a8000 (3, 10) = 5
  10499. SBOX[3][1802240] = 0x80400040; // 1b8000 (3, 11) = 11
  10500. SBOX[3][1867776] = 0x1040; // 1c8000 (3, 12) = 12
  10501. SBOX[3][1933312] = 0x80401000; // 1d8000 (3, 13) = 7
  10502. SBOX[3][1998848] = 0x400000; // 1e8000 (3, 14) = 2
  10503. SBOX[3][2064384] = 0x401040; // 1f8000 (3, 15) = 14
  10504. SBOX[4] = new Array();
  10505. SBOX[4][0] = 0x80; // 0 (0, 0) = 2
  10506. SBOX[4][4096] = 0x1040000; // 1000 (0, 1) = 12
  10507. SBOX[4][8192] = 0x40000; // 2000 (0, 2) = 4
  10508. SBOX[4][12288] = 0x20000000; // 3000 (0, 3) = 1
  10509. SBOX[4][16384] = 0x20040080; // 4000 (0, 4) = 7
  10510. SBOX[4][20480] = 0x1000080; // 5000 (0, 5) = 10
  10511. SBOX[4][24576] = 0x21000080; // 6000 (0, 6) = 11
  10512. SBOX[4][28672] = 0x40080; // 7000 (0, 7) = 6
  10513. SBOX[4][32768] = 0x1000000; // 8000 (0, 8) = 8
  10514. SBOX[4][36864] = 0x20040000; // 9000 (0, 9) = 5
  10515. SBOX[4][40960] = 0x20000080; // a000 (0, 10) = 3
  10516. SBOX[4][45056] = 0x21040080; // b000 (0, 11) = 15
  10517. SBOX[4][49152] = 0x21040000; // c000 (0, 12) = 13
  10518. SBOX[4][53248] = 0x0; // d000 (0, 13) = 0
  10519. SBOX[4][57344] = 0x1040080; // e000 (0, 14) = 14
  10520. SBOX[4][61440] = 0x21000000; // f000 (0, 15) = 9
  10521. SBOX[4][2048] = 0x1040080; // 800 (1, 0) = 14
  10522. SBOX[4][6144] = 0x21000080; // 1800 (1, 1) = 11
  10523. SBOX[4][10240] = 0x80; // 2800 (1, 2) = 2
  10524. SBOX[4][14336] = 0x1040000; // 3800 (1, 3) = 12
  10525. SBOX[4][18432] = 0x40000; // 4800 (1, 4) = 4
  10526. SBOX[4][22528] = 0x20040080; // 5800 (1, 5) = 7
  10527. SBOX[4][26624] = 0x21040000; // 6800 (1, 6) = 13
  10528. SBOX[4][30720] = 0x20000000; // 7800 (1, 7) = 1
  10529. SBOX[4][34816] = 0x20040000; // 8800 (1, 8) = 5
  10530. SBOX[4][38912] = 0x0; // 9800 (1, 9) = 0
  10531. SBOX[4][43008] = 0x21040080; // a800 (1, 10) = 15
  10532. SBOX[4][47104] = 0x1000080; // b800 (1, 11) = 10
  10533. SBOX[4][51200] = 0x20000080; // c800 (1, 12) = 3
  10534. SBOX[4][55296] = 0x21000000; // d800 (1, 13) = 9
  10535. SBOX[4][59392] = 0x1000000; // e800 (1, 14) = 8
  10536. SBOX[4][63488] = 0x40080; // f800 (1, 15) = 6
  10537. SBOX[4][65536] = 0x40000; // 10000 (2, 0) = 4
  10538. SBOX[4][69632] = 0x80; // 11000 (2, 1) = 2
  10539. SBOX[4][73728] = 0x20000000; // 12000 (2, 2) = 1
  10540. SBOX[4][77824] = 0x21000080; // 13000 (2, 3) = 11
  10541. SBOX[4][81920] = 0x1000080; // 14000 (2, 4) = 10
  10542. SBOX[4][86016] = 0x21040000; // 15000 (2, 5) = 13
  10543. SBOX[4][90112] = 0x20040080; // 16000 (2, 6) = 7
  10544. SBOX[4][94208] = 0x1000000; // 17000 (2, 7) = 8
  10545. SBOX[4][98304] = 0x21040080; // 18000 (2, 8) = 15
  10546. SBOX[4][102400] = 0x21000000; // 19000 (2, 9) = 9
  10547. SBOX[4][106496] = 0x1040000; // 1a000 (2, 10) = 12
  10548. SBOX[4][110592] = 0x20040000; // 1b000 (2, 11) = 5
  10549. SBOX[4][114688] = 0x40080; // 1c000 (2, 12) = 6
  10550. SBOX[4][118784] = 0x20000080; // 1d000 (2, 13) = 3
  10551. SBOX[4][122880] = 0x0; // 1e000 (2, 14) = 0
  10552. SBOX[4][126976] = 0x1040080; // 1f000 (2, 15) = 14
  10553. SBOX[4][67584] = 0x21000080; // 10800 (3, 0) = 11
  10554. SBOX[4][71680] = 0x1000000; // 11800 (3, 1) = 8
  10555. SBOX[4][75776] = 0x1040000; // 12800 (3, 2) = 12
  10556. SBOX[4][79872] = 0x20040080; // 13800 (3, 3) = 7
  10557. SBOX[4][83968] = 0x20000000; // 14800 (3, 4) = 1
  10558. SBOX[4][88064] = 0x1040080; // 15800 (3, 5) = 14
  10559. SBOX[4][92160] = 0x80; // 16800 (3, 6) = 2
  10560. SBOX[4][96256] = 0x21040000; // 17800 (3, 7) = 13
  10561. SBOX[4][100352] = 0x40080; // 18800 (3, 8) = 6
  10562. SBOX[4][104448] = 0x21040080; // 19800 (3, 9) = 15
  10563. SBOX[4][108544] = 0x0; // 1a800 (3, 10) = 0
  10564. SBOX[4][112640] = 0x21000000; // 1b800 (3, 11) = 9
  10565. SBOX[4][116736] = 0x1000080; // 1c800 (3, 12) = 10
  10566. SBOX[4][120832] = 0x40000; // 1d800 (3, 13) = 4
  10567. SBOX[4][124928] = 0x20040000; // 1e800 (3, 14) = 5
  10568. SBOX[4][129024] = 0x20000080; // 1f800 (3, 15) = 3
  10569. SBOX[5] = new Array();
  10570. SBOX[5][0] = 0x10000008; // 0 (0, 0) = 12
  10571. SBOX[5][256] = 0x2000; // 100 (0, 1) = 1
  10572. SBOX[5][512] = 0x10200000; // 200 (0, 2) = 10
  10573. SBOX[5][768] = 0x10202008; // 300 (0, 3) = 15
  10574. SBOX[5][1024] = 0x10002000; // 400 (0, 4) = 9
  10575. SBOX[5][1280] = 0x200000; // 500 (0, 5) = 2
  10576. SBOX[5][1536] = 0x200008; // 600 (0, 6) = 6
  10577. SBOX[5][1792] = 0x10000000; // 700 (0, 7) = 8
  10578. SBOX[5][2048] = 0x0; // 800 (0, 8) = 0
  10579. SBOX[5][2304] = 0x10002008; // 900 (0, 9) = 13
  10580. SBOX[5][2560] = 0x202000; // a00 (0, 10) = 3
  10581. SBOX[5][2816] = 0x8; // b00 (0, 11) = 4
  10582. SBOX[5][3072] = 0x10200008; // c00 (0, 12) = 14
  10583. SBOX[5][3328] = 0x202008; // d00 (0, 13) = 7
  10584. SBOX[5][3584] = 0x2008; // e00 (0, 14) = 5
  10585. SBOX[5][3840] = 0x10202000; // f00 (0, 15) = 11
  10586. SBOX[5][128] = 0x10200000; // 80 (1, 0) = 10
  10587. SBOX[5][384] = 0x10202008; // 180 (1, 1) = 15
  10588. SBOX[5][640] = 0x8; // 280 (1, 2) = 4
  10589. SBOX[5][896] = 0x200000; // 380 (1, 3) = 2
  10590. SBOX[5][1152] = 0x202008; // 480 (1, 4) = 7
  10591. SBOX[5][1408] = 0x10000008; // 580 (1, 5) = 12
  10592. SBOX[5][1664] = 0x10002000; // 680 (1, 6) = 9
  10593. SBOX[5][1920] = 0x2008; // 780 (1, 7) = 5
  10594. SBOX[5][2176] = 0x200008; // 880 (1, 8) = 6
  10595. SBOX[5][2432] = 0x2000; // 980 (1, 9) = 1
  10596. SBOX[5][2688] = 0x10002008; // a80 (1, 10) = 13
  10597. SBOX[5][2944] = 0x10200008; // b80 (1, 11) = 14
  10598. SBOX[5][3200] = 0x0; // c80 (1, 12) = 0
  10599. SBOX[5][3456] = 0x10202000; // d80 (1, 13) = 11
  10600. SBOX[5][3712] = 0x202000; // e80 (1, 14) = 3
  10601. SBOX[5][3968] = 0x10000000; // f80 (1, 15) = 8
  10602. SBOX[5][4096] = 0x10002000; // 1000 (2, 0) = 9
  10603. SBOX[5][4352] = 0x10200008; // 1100 (2, 1) = 14
  10604. SBOX[5][4608] = 0x10202008; // 1200 (2, 2) = 15
  10605. SBOX[5][4864] = 0x2008; // 1300 (2, 3) = 5
  10606. SBOX[5][5120] = 0x200000; // 1400 (2, 4) = 2
  10607. SBOX[5][5376] = 0x10000000; // 1500 (2, 5) = 8
  10608. SBOX[5][5632] = 0x10000008; // 1600 (2, 6) = 12
  10609. SBOX[5][5888] = 0x202000; // 1700 (2, 7) = 3
  10610. SBOX[5][6144] = 0x202008; // 1800 (2, 8) = 7
  10611. SBOX[5][6400] = 0x0; // 1900 (2, 9) = 0
  10612. SBOX[5][6656] = 0x8; // 1a00 (2, 10) = 4
  10613. SBOX[5][6912] = 0x10200000; // 1b00 (2, 11) = 10
  10614. SBOX[5][7168] = 0x2000; // 1c00 (2, 12) = 1
  10615. SBOX[5][7424] = 0x10002008; // 1d00 (2, 13) = 13
  10616. SBOX[5][7680] = 0x10202000; // 1e00 (2, 14) = 11
  10617. SBOX[5][7936] = 0x200008; // 1f00 (2, 15) = 6
  10618. SBOX[5][4224] = 0x8; // 1080 (3, 0) = 4
  10619. SBOX[5][4480] = 0x202000; // 1180 (3, 1) = 3
  10620. SBOX[5][4736] = 0x200000; // 1280 (3, 2) = 2
  10621. SBOX[5][4992] = 0x10000008; // 1380 (3, 3) = 12
  10622. SBOX[5][5248] = 0x10002000; // 1480 (3, 4) = 9
  10623. SBOX[5][5504] = 0x2008; // 1580 (3, 5) = 5
  10624. SBOX[5][5760] = 0x10202008; // 1680 (3, 6) = 15
  10625. SBOX[5][6016] = 0x10200000; // 1780 (3, 7) = 10
  10626. SBOX[5][6272] = 0x10202000; // 1880 (3, 8) = 11
  10627. SBOX[5][6528] = 0x10200008; // 1980 (3, 9) = 14
  10628. SBOX[5][6784] = 0x2000; // 1a80 (3, 10) = 1
  10629. SBOX[5][7040] = 0x202008; // 1b80 (3, 11) = 7
  10630. SBOX[5][7296] = 0x200008; // 1c80 (3, 12) = 6
  10631. SBOX[5][7552] = 0x0; // 1d80 (3, 13) = 0
  10632. SBOX[5][7808] = 0x10000000; // 1e80 (3, 14) = 8
  10633. SBOX[5][8064] = 0x10002008; // 1f80 (3, 15) = 13
  10634. SBOX[6] = new Array();
  10635. SBOX[6][0] = 0x100000; // 0 (0, 0) = 4
  10636. SBOX[6][16] = 0x2000401; // 10 (0, 1) = 11
  10637. SBOX[6][32] = 0x400; // 20 (0, 2) = 2
  10638. SBOX[6][48] = 0x100401; // 30 (0, 3) = 14
  10639. SBOX[6][64] = 0x2100401; // 40 (0, 4) = 15
  10640. SBOX[6][80] = 0x0; // 50 (0, 5) = 0
  10641. SBOX[6][96] = 0x1; // 60 (0, 6) = 8
  10642. SBOX[6][112] = 0x2100001; // 70 (0, 7) = 13
  10643. SBOX[6][128] = 0x2000400; // 80 (0, 8) = 3
  10644. SBOX[6][144] = 0x100001; // 90 (0, 9) = 12
  10645. SBOX[6][160] = 0x2000001; // a0 (0, 10) = 9
  10646. SBOX[6][176] = 0x2100400; // b0 (0, 11) = 7
  10647. SBOX[6][192] = 0x2100000; // c0 (0, 12) = 5
  10648. SBOX[6][208] = 0x401; // d0 (0, 13) = 10
  10649. SBOX[6][224] = 0x100400; // e0 (0, 14) = 6
  10650. SBOX[6][240] = 0x2000000; // f0 (0, 15) = 1
  10651. SBOX[6][8] = 0x2100001; // 8 (1, 0) = 13
  10652. SBOX[6][24] = 0x0; // 18 (1, 1) = 0
  10653. SBOX[6][40] = 0x2000401; // 28 (1, 2) = 11
  10654. SBOX[6][56] = 0x2100400; // 38 (1, 3) = 7
  10655. SBOX[6][72] = 0x100000; // 48 (1, 4) = 4
  10656. SBOX[6][88] = 0x2000001; // 58 (1, 5) = 9
  10657. SBOX[6][104] = 0x2000000; // 68 (1, 6) = 1
  10658. SBOX[6][120] = 0x401; // 78 (1, 7) = 10
  10659. SBOX[6][136] = 0x100401; // 88 (1, 8) = 14
  10660. SBOX[6][152] = 0x2000400; // 98 (1, 9) = 3
  10661. SBOX[6][168] = 0x2100000; // a8 (1, 10) = 5
  10662. SBOX[6][184] = 0x100001; // b8 (1, 11) = 12
  10663. SBOX[6][200] = 0x400; // c8 (1, 12) = 2
  10664. SBOX[6][216] = 0x2100401; // d8 (1, 13) = 15
  10665. SBOX[6][232] = 0x1; // e8 (1, 14) = 8
  10666. SBOX[6][248] = 0x100400; // f8 (1, 15) = 6
  10667. SBOX[6][256] = 0x2000000; // 100 (2, 0) = 1
  10668. SBOX[6][272] = 0x100000; // 110 (2, 1) = 4
  10669. SBOX[6][288] = 0x2000401; // 120 (2, 2) = 11
  10670. SBOX[6][304] = 0x2100001; // 130 (2, 3) = 13
  10671. SBOX[6][320] = 0x100001; // 140 (2, 4) = 12
  10672. SBOX[6][336] = 0x2000400; // 150 (2, 5) = 3
  10673. SBOX[6][352] = 0x2100400; // 160 (2, 6) = 7
  10674. SBOX[6][368] = 0x100401; // 170 (2, 7) = 14
  10675. SBOX[6][384] = 0x401; // 180 (2, 8) = 10
  10676. SBOX[6][400] = 0x2100401; // 190 (2, 9) = 15
  10677. SBOX[6][416] = 0x100400; // 1a0 (2, 10) = 6
  10678. SBOX[6][432] = 0x1; // 1b0 (2, 11) = 8
  10679. SBOX[6][448] = 0x0; // 1c0 (2, 12) = 0
  10680. SBOX[6][464] = 0x2100000; // 1d0 (2, 13) = 5
  10681. SBOX[6][480] = 0x2000001; // 1e0 (2, 14) = 9
  10682. SBOX[6][496] = 0x400; // 1f0 (2, 15) = 2
  10683. SBOX[6][264] = 0x100400; // 108 (3, 0) = 6
  10684. SBOX[6][280] = 0x2000401; // 118 (3, 1) = 11
  10685. SBOX[6][296] = 0x2100001; // 128 (3, 2) = 13
  10686. SBOX[6][312] = 0x1; // 138 (3, 3) = 8
  10687. SBOX[6][328] = 0x2000000; // 148 (3, 4) = 1
  10688. SBOX[6][344] = 0x100000; // 158 (3, 5) = 4
  10689. SBOX[6][360] = 0x401; // 168 (3, 6) = 10
  10690. SBOX[6][376] = 0x2100400; // 178 (3, 7) = 7
  10691. SBOX[6][392] = 0x2000001; // 188 (3, 8) = 9
  10692. SBOX[6][408] = 0x2100000; // 198 (3, 9) = 5
  10693. SBOX[6][424] = 0x0; // 1a8 (3, 10) = 0
  10694. SBOX[6][440] = 0x2100401; // 1b8 (3, 11) = 15
  10695. SBOX[6][456] = 0x100401; // 1c8 (3, 12) = 14
  10696. SBOX[6][472] = 0x400; // 1d8 (3, 13) = 2
  10697. SBOX[6][488] = 0x2000400; // 1e8 (3, 14) = 3
  10698. SBOX[6][504] = 0x100001; // 1f8 (3, 15) = 12
  10699. SBOX[7] = new Array();
  10700. SBOX[7][0] = 0x8000820; // 0 (0, 0) = 13
  10701. SBOX[7][1] = 0x20000; // 1 (0, 1) = 2
  10702. SBOX[7][2] = 0x8000000; // 2 (0, 2) = 8
  10703. SBOX[7][3] = 0x20; // 3 (0, 3) = 4
  10704. SBOX[7][4] = 0x20020; // 4 (0, 4) = 6
  10705. SBOX[7][5] = 0x8020820; // 5 (0, 5) = 15
  10706. SBOX[7][6] = 0x8020800; // 6 (0, 6) = 11
  10707. SBOX[7][7] = 0x800; // 7 (0, 7) = 1
  10708. SBOX[7][8] = 0x8020000; // 8 (0, 8) = 10
  10709. SBOX[7][9] = 0x8000800; // 9 (0, 9) = 9
  10710. SBOX[7][10] = 0x20800; // a (0, 10) = 3
  10711. SBOX[7][11] = 0x8020020; // b (0, 11) = 14
  10712. SBOX[7][12] = 0x820; // c (0, 12) = 5
  10713. SBOX[7][13] = 0x0; // d (0, 13) = 0
  10714. SBOX[7][14] = 0x8000020; // e (0, 14) = 12
  10715. SBOX[7][15] = 0x20820; // f (0, 15) = 7
  10716. SBOX[7][-2147483648] = 0x800; // 80000000 (1, 0) = 1
  10717. SBOX[7][-2147483647] = 0x8020820; // 80000001 (1, 1) = 15
  10718. SBOX[7][-2147483646] = 0x8000820; // 80000002 (1, 2) = 13
  10719. SBOX[7][-2147483645] = 0x8000000; // 80000003 (1, 3) = 8
  10720. SBOX[7][-2147483644] = 0x8020000; // 80000004 (1, 4) = 10
  10721. SBOX[7][-2147483643] = 0x20800; // 80000005 (1, 5) = 3
  10722. SBOX[7][-2147483642] = 0x20820; // 80000006 (1, 6) = 7
  10723. SBOX[7][-2147483641] = 0x20; // 80000007 (1, 7) = 4
  10724. SBOX[7][-2147483640] = 0x8000020; // 80000008 (1, 8) = 12
  10725. SBOX[7][-2147483639] = 0x820; // 80000009 (1, 9) = 5
  10726. SBOX[7][-2147483638] = 0x20020; // 8000000a (1, 10) = 6
  10727. SBOX[7][-2147483637] = 0x8020800; // 8000000b (1, 11) = 11
  10728. SBOX[7][-2147483636] = 0x0; // 8000000c (1, 12) = 0
  10729. SBOX[7][-2147483635] = 0x8020020; // 8000000d (1, 13) = 14
  10730. SBOX[7][-2147483634] = 0x8000800; // 8000000e (1, 14) = 9
  10731. SBOX[7][-2147483633] = 0x20000; // 8000000f (1, 15) = 2
  10732. SBOX[7][16] = 0x20820; // 10 (2, 0) = 7
  10733. SBOX[7][17] = 0x8020800; // 11 (2, 1) = 11
  10734. SBOX[7][18] = 0x20; // 12 (2, 2) = 4
  10735. SBOX[7][19] = 0x800; // 13 (2, 3) = 1
  10736. SBOX[7][20] = 0x8000800; // 14 (2, 4) = 9
  10737. SBOX[7][21] = 0x8000020; // 15 (2, 5) = 12
  10738. SBOX[7][22] = 0x8020020; // 16 (2, 6) = 14
  10739. SBOX[7][23] = 0x20000; // 17 (2, 7) = 2
  10740. SBOX[7][24] = 0x0; // 18 (2, 8) = 0
  10741. SBOX[7][25] = 0x20020; // 19 (2, 9) = 6
  10742. SBOX[7][26] = 0x8020000; // 1a (2, 10) = 10
  10743. SBOX[7][27] = 0x8000820; // 1b (2, 11) = 13
  10744. SBOX[7][28] = 0x8020820; // 1c (2, 12) = 15
  10745. SBOX[7][29] = 0x20800; // 1d (2, 13) = 3
  10746. SBOX[7][30] = 0x820; // 1e (2, 14) = 5
  10747. SBOX[7][31] = 0x8000000; // 1f (2, 15) = 8
  10748. SBOX[7][-2147483632] = 0x20000; // 80000010 (3, 0) = 2
  10749. SBOX[7][-2147483631] = 0x800; // 80000011 (3, 1) = 1
  10750. SBOX[7][-2147483630] = 0x8020020; // 80000012 (3, 2) = 14
  10751. SBOX[7][-2147483629] = 0x20820; // 80000013 (3, 3) = 7
  10752. SBOX[7][-2147483628] = 0x20; // 80000014 (3, 4) = 4
  10753. SBOX[7][-2147483627] = 0x8020000; // 80000015 (3, 5) = 10
  10754. SBOX[7][-2147483626] = 0x8000000; // 80000016 (3, 6) = 8
  10755. SBOX[7][-2147483625] = 0x8000820; // 80000017 (3, 7) = 13
  10756. SBOX[7][-2147483624] = 0x8020820; // 80000018 (3, 8) = 15
  10757. SBOX[7][-2147483623] = 0x8000020; // 80000019 (3, 9) = 12
  10758. SBOX[7][-2147483622] = 0x8000800; // 8000001a (3, 10) = 9
  10759. SBOX[7][-2147483621] = 0x0; // 8000001b (3, 11) = 0
  10760. SBOX[7][-2147483620] = 0x20800; // 8000001c (3, 12) = 3
  10761. SBOX[7][-2147483619] = 0x820; // 8000001d (3, 13) = 5
  10762. SBOX[7][-2147483618] = 0x20020; // 8000001e (3, 14) = 6
  10763. SBOX[7][-2147483617] = 0x8020800; // 8000001f (3, 15) = 11
  10764. State.prototype._exchangeLR = function (v, m) {
  10765. var t = (this.lhs >> v ^ this.rhs) & m;
  10766. this.rhs ^= t;
  10767. this.lhs ^= t << v;
  10768. };
  10769. State.prototype._exchangeRL = function (v, m) {
  10770. var t = (this.rhs >> v ^ this.lhs) & m;
  10771. this.lhs ^= t;
  10772. this.rhs ^= t << v;
  10773. };
  10774. /**
  10775. * Perform the initial permutation of the input to create the starting state
  10776. * of the algorithm. The initial permutation maps each consecutive bit of
  10777. * the input into a different byte of the state.
  10778. *
  10779. * <pre>
  10780. * The initial permutation is defined to be:
  10781. *
  10782. * 58 50 42 34 26 18 10 2
  10783. * 60 52 44 36 28 20 12 4
  10784. * 62 54 46 38 30 22 14 6
  10785. * 64 56 48 40 32 24 16 8
  10786. * 57 49 41 33 25 17 9 1
  10787. * 59 51 43 35 27 19 11 3
  10788. * 61 53 45 37 29 21 13 5
  10789. * 63 55 47 39 31 23 15 7
  10790. * </pre>
  10791. *
  10792. *
  10793. * @param message
  10794. * The message as an array of unsigned bytes.
  10795. * @param offset
  10796. * The offset into the message that the current 64-bit block
  10797. * begins.
  10798. * @returns the initial engine state
  10799. */
  10800. State.prototype.initialPerm = function (message, offset) {
  10801. var input = message.slice(offset, offset + 8);
  10802. this.lhs = (input[0] << 24) + (input[1] << 16) + (input[2] << 8) + input[3];
  10803. this.rhs = (input[4] << 24) + (input[5] << 16) + (input[6] << 8) + input[7];
  10804. this._exchangeLR(4, 0x0f0f0f0f);
  10805. this._exchangeLR(16, 0x0000ffff);
  10806. this._exchangeRL(2, 0x33333333);
  10807. this._exchangeRL(8, 0x00ff00ff);
  10808. this._exchangeLR(1, 0x55555555);
  10809. };
  10810. /**
  10811. * Perform one round of the DES algorithm using the given key. A round is
  10812. * defined as:
  10813. *
  10814. * <pre>
  10815. * L&amp;rsquo = R
  10816. * R&amp;rsquo = L &circ; f(R, k)
  10817. * </pre>
  10818. *
  10819. * where f consists of expanding, XORing with the key and contracting back
  10820. * with the SBOXes.
  10821. *
  10822. * Note that the final round is defined slightly differently as:
  10823. *
  10824. * <pre>
  10825. * L&amp;rsquo = L &circ; f(R, k)
  10826. * R&amp;rsquo = R
  10827. * </pre>
  10828. *
  10829. * Therefore in the final round this function produces LHS and RHS the wrong
  10830. * way around.
  10831. *
  10832. * @param k
  10833. * the key
  10834. */
  10835. State.prototype.round = function (k) {
  10836. var r = this.rhs,
  10837. l = this.lhs;
  10838. var f = 0;
  10839. for (var i = 0; i < 8; i++) {
  10840. var v = (r ^ k[i]) & State.SBOX_MASK[i];
  10841. f += State.SBOX[i][v];
  10842. }
  10843. this.lhs = r;
  10844. this.rhs = l ^ f;
  10845. };
  10846. /**
  10847. * Apply the inverse of the initial permutation.
  10848. *
  10849. * <pre>
  10850. * The inverse is defined to be:
  10851. *
  10852. * 40 8 48 16 56 24 64 32
  10853. * 39 7 47 15 55 23 63 31
  10854. * 38 6 46 14 54 22 62 30
  10855. * 37 5 45 13 53 21 61 29
  10856. * 36 4 44 12 52 20 60 28
  10857. * 35 3 43 11 51 19 59 27
  10858. * 34 2 42 10 50 18 58 26
  10859. * 33 1 41 9 49 17 57 25
  10860. * </pre>
  10861. *
  10862. * @param cipherText
  10863. * @param offset
  10864. */
  10865. State.prototype.finalPerm = function (cipherText, offset) {
  10866. var t = this.lhs;
  10867. this.lhs = this.rhs;
  10868. this.rhs = t;
  10869. this._exchangeLR(1, 0x55555555);
  10870. this._exchangeRL(8, 0x00ff00ff);
  10871. this._exchangeRL(2, 0x33333333);
  10872. this._exchangeLR(16, 0x0000ffff);
  10873. this._exchangeLR(4, 0x0f0f0f0f);
  10874. cipherText[offset] = this.lhs >> 24 & 0xff;
  10875. cipherText[offset + 1] = this.lhs >> 16 & 0xff;
  10876. cipherText[offset + 2] = this.lhs >> 8 & 0xff;
  10877. cipherText[offset + 3] = this.lhs & 0xff;
  10878. cipherText[offset + 4] = this.rhs >> 24 & 0xff;
  10879. cipherText[offset + 5] = this.rhs >> 16 & 0xff;
  10880. cipherText[offset + 6] = this.rhs >> 8 & 0xff;
  10881. cipherText[offset + 7] = this.rhs & 0xff;
  10882. };
  10883. /**
  10884. * DES cipher
  10885. */
  10886. var DES = C.DES = {
  10887. _blocksize: 2,
  10888. _keyschedule: null,
  10889. _state: new State(),
  10890. _init: function _init(k) {
  10891. this._keyschedule = new KeySchedule(k);
  10892. },
  10893. encrypt: function encrypt(message, password, options) {
  10894. options = options || {};
  10895. // Determine mode
  10896. var mode = options.mode || new C.mode.OFB();
  10897. // Allow mode to override options
  10898. if (mode.fixOptions) mode.fixOptions(options);
  10899. var
  10900. // Convert to bytes if message is a string
  10901. m = message.constructor == String ? UTF8.stringToBytes(message) : message,
  10902. // Generate random IV
  10903. iv = options.iv || util.randomBytes(8),
  10904. // Generate key
  10905. k = password.constructor == String ?
  10906. // Derive key from passphrase
  10907. C.PBKDF2(password, iv, 8, {
  10908. asBytes: true
  10909. }) :
  10910. // else, assume byte array representing cryptographic key
  10911. password;
  10912. // Create key schedule
  10913. this._keyschedule = new KeySchedule(k);
  10914. // Encrypt
  10915. mode.encrypt(DES, m, iv);
  10916. // Return ciphertext
  10917. m = options.iv ? m : iv.concat(m);
  10918. return options && options.asBytes ? m : util.bytesToBase64(m);
  10919. },
  10920. _encryptblock: function _encryptblock(message, offset) {
  10921. this._state.initialPerm(message, offset);
  10922. for (var i = 0; i <= 15; i++) {
  10923. this._state.round(this._keyschedule.getKey(i));
  10924. }
  10925. this._state.finalPerm(message, offset);
  10926. },
  10927. decrypt: function decrypt(ciphertext, password, options) {
  10928. options = options || {};
  10929. // Determine mode
  10930. var mode = options.mode || new C.mode.OFB();
  10931. // Allow mode to override options
  10932. if (mode.fixOptions) mode.fixOptions(options);
  10933. var
  10934. // Convert to bytes if ciphertext is a string
  10935. c = ciphertext.constructor == String ? util.base64ToBytes(ciphertext) : ciphertext,
  10936. // Separate IV and message
  10937. iv = options.iv || c.splice(0, 8),
  10938. // Generate key
  10939. k = password.constructor == String ?
  10940. // Derive key from passphrase
  10941. C.PBKDF2(password, iv, 32, {
  10942. asBytes: true
  10943. }) :
  10944. // else, assume byte array representing cryptographic key
  10945. password;
  10946. // Create key schedule
  10947. this._keyschedule = new KeySchedule(k);
  10948. mode.decrypt(DES, c, iv);
  10949. // Return plaintext
  10950. return options && options.asBytes ? c : UTF8.bytesToString(c);
  10951. },
  10952. _decryptblock: function _decryptblock(message, offset) {
  10953. this._state.initialPerm(message, offset);
  10954. for (var i = 15; i >= 0; i--) {
  10955. this._state.round(this._keyschedule.getKey(i));
  10956. }
  10957. this._state.finalPerm(message, offset);
  10958. }
  10959. };
  10960. })();
  10961. /***/ }),
  10962. /* 43 */
  10963. /*!*******************************************************************!*\
  10964. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/HMAC.js ***!
  10965. \*******************************************************************/
  10966. /*! no static exports found */
  10967. /***/ (function(module, exports, __webpack_require__) {
  10968. (function () {
  10969. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  10970. // Shortcuts
  10971. var util = C.util,
  10972. charenc = C.charenc,
  10973. UTF8 = charenc.UTF8,
  10974. Binary = charenc.Binary;
  10975. C.HMAC = function (hasher, message, key, options) {
  10976. // Convert to byte arrays
  10977. if (message.constructor == String) message = UTF8.stringToBytes(message);
  10978. if (key.constructor == String) key = UTF8.stringToBytes(key);
  10979. /* else, assume byte arrays already */
  10980. // Allow arbitrary length keys
  10981. if (key.length > hasher._blocksize * 4) key = hasher(key, {
  10982. asBytes: true
  10983. });
  10984. // XOR keys with pad constants
  10985. var okey = key.slice(0),
  10986. ikey = key.slice(0);
  10987. for (var i = 0; i < hasher._blocksize * 4; i++) {
  10988. okey[i] ^= 0x5C;
  10989. ikey[i] ^= 0x36;
  10990. }
  10991. var hmacbytes = hasher(okey.concat(hasher(ikey.concat(message), {
  10992. asBytes: true
  10993. })), {
  10994. asBytes: true
  10995. });
  10996. return options && options.asBytes ? hmacbytes : options && options.asString ? Binary.bytesToString(hmacbytes) : util.bytesToHex(hmacbytes);
  10997. };
  10998. })();
  10999. /***/ }),
  11000. /* 44 */
  11001. /*!********************************************************************!*\
  11002. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/MARC4.js ***!
  11003. \********************************************************************/
  11004. /*! no static exports found */
  11005. /***/ (function(module, exports, __webpack_require__) {
  11006. (function () {
  11007. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11008. // Shortcuts
  11009. var util = C.util,
  11010. charenc = C.charenc,
  11011. UTF8 = charenc.UTF8,
  11012. Binary = charenc.Binary;
  11013. var MARC4 = C.MARC4 = {
  11014. /**
  11015. * Public API
  11016. */
  11017. encrypt: function encrypt(message, password) {
  11018. var
  11019. // Convert to bytes
  11020. m = UTF8.stringToBytes(message),
  11021. // Generate random IV
  11022. iv = util.randomBytes(16),
  11023. // Generate key
  11024. k = password.constructor == String ?
  11025. // Derive key from passphrase
  11026. C.PBKDF2(password, iv, 32, {
  11027. asBytes: true
  11028. }) :
  11029. // else, assume byte array representing cryptographic key
  11030. password;
  11031. // Encrypt
  11032. MARC4._marc4(m, k, 1536);
  11033. // Return ciphertext
  11034. return util.bytesToBase64(iv.concat(m));
  11035. },
  11036. decrypt: function decrypt(ciphertext, password) {
  11037. var
  11038. // Convert to bytes
  11039. c = util.base64ToBytes(ciphertext),
  11040. // Separate IV and message
  11041. iv = c.splice(0, 16),
  11042. // Generate key
  11043. k = password.constructor == String ?
  11044. // Derive key from passphrase
  11045. C.PBKDF2(password, iv, 32, {
  11046. asBytes: true
  11047. }) :
  11048. // else, assume byte array representing cryptographic key
  11049. password;
  11050. // Decrypt
  11051. MARC4._marc4(c, k, 1536);
  11052. // Return plaintext
  11053. return UTF8.bytesToString(c);
  11054. },
  11055. /**
  11056. * Internal methods
  11057. */
  11058. // The core
  11059. _marc4: function _marc4(m, k, drop) {
  11060. // State variables
  11061. var i, j, s, temp;
  11062. // Key setup
  11063. for (i = 0, s = []; i < 256; i++) {
  11064. s[i] = i;
  11065. }
  11066. for (i = 0, j = 0; i < 256; i++) {
  11067. j = (j + s[i] + k[i % k.length]) % 256;
  11068. // Swap
  11069. temp = s[i];
  11070. s[i] = s[j];
  11071. s[j] = temp;
  11072. }
  11073. // Clear counters
  11074. i = j = 0;
  11075. // Encryption
  11076. for (var k = -drop; k < m.length; k++) {
  11077. i = (i + 1) % 256;
  11078. j = (j + s[i]) % 256;
  11079. // Swap
  11080. temp = s[i];
  11081. s[i] = s[j];
  11082. s[j] = temp;
  11083. // Stop here if we're still dropping keystream
  11084. if (k < 0) continue;
  11085. // Encrypt
  11086. m[k] ^= s[(s[i] + s[j]) % 256];
  11087. }
  11088. }
  11089. };
  11090. })();
  11091. /***/ }),
  11092. /* 45 */
  11093. /*!******************************************************************!*\
  11094. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/MD5.js ***!
  11095. \******************************************************************/
  11096. /*! no static exports found */
  11097. /***/ (function(module, exports, __webpack_require__) {
  11098. (function () {
  11099. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11100. // Shortcuts
  11101. var util = C.util,
  11102. charenc = C.charenc,
  11103. UTF8 = charenc.UTF8,
  11104. Binary = charenc.Binary;
  11105. // Public API
  11106. var MD5 = C.MD5 = function (message, options) {
  11107. var digestbytes = util.wordsToBytes(MD5._md5(message));
  11108. return options && options.asBytes ? digestbytes : options && options.asString ? Binary.bytesToString(digestbytes) : util.bytesToHex(digestbytes);
  11109. };
  11110. // The core
  11111. MD5._md5 = function (message) {
  11112. // Convert to byte array
  11113. if (message.constructor == String) message = UTF8.stringToBytes(message);
  11114. /* else, assume byte array already */
  11115. var m = util.bytesToWords(message),
  11116. l = message.length * 8,
  11117. a = 1732584193,
  11118. b = -271733879,
  11119. c = -1732584194,
  11120. d = 271733878;
  11121. // Swap endian
  11122. for (var i = 0; i < m.length; i++) {
  11123. m[i] = (m[i] << 8 | m[i] >>> 24) & 0x00FF00FF | (m[i] << 24 | m[i] >>> 8) & 0xFF00FF00;
  11124. }
  11125. // Padding
  11126. m[l >>> 5] |= 0x80 << l % 32;
  11127. m[(l + 64 >>> 9 << 4) + 14] = l;
  11128. // Method shortcuts
  11129. var FF = MD5._ff,
  11130. GG = MD5._gg,
  11131. HH = MD5._hh,
  11132. II = MD5._ii;
  11133. for (var i = 0; i < m.length; i += 16) {
  11134. var aa = a,
  11135. bb = b,
  11136. cc = c,
  11137. dd = d;
  11138. a = FF(a, b, c, d, m[i + 0], 7, -680876936);
  11139. d = FF(d, a, b, c, m[i + 1], 12, -389564586);
  11140. c = FF(c, d, a, b, m[i + 2], 17, 606105819);
  11141. b = FF(b, c, d, a, m[i + 3], 22, -1044525330);
  11142. a = FF(a, b, c, d, m[i + 4], 7, -176418897);
  11143. d = FF(d, a, b, c, m[i + 5], 12, 1200080426);
  11144. c = FF(c, d, a, b, m[i + 6], 17, -1473231341);
  11145. b = FF(b, c, d, a, m[i + 7], 22, -45705983);
  11146. a = FF(a, b, c, d, m[i + 8], 7, 1770035416);
  11147. d = FF(d, a, b, c, m[i + 9], 12, -1958414417);
  11148. c = FF(c, d, a, b, m[i + 10], 17, -42063);
  11149. b = FF(b, c, d, a, m[i + 11], 22, -1990404162);
  11150. a = FF(a, b, c, d, m[i + 12], 7, 1804603682);
  11151. d = FF(d, a, b, c, m[i + 13], 12, -40341101);
  11152. c = FF(c, d, a, b, m[i + 14], 17, -1502002290);
  11153. b = FF(b, c, d, a, m[i + 15], 22, 1236535329);
  11154. a = GG(a, b, c, d, m[i + 1], 5, -165796510);
  11155. d = GG(d, a, b, c, m[i + 6], 9, -1069501632);
  11156. c = GG(c, d, a, b, m[i + 11], 14, 643717713);
  11157. b = GG(b, c, d, a, m[i + 0], 20, -373897302);
  11158. a = GG(a, b, c, d, m[i + 5], 5, -701558691);
  11159. d = GG(d, a, b, c, m[i + 10], 9, 38016083);
  11160. c = GG(c, d, a, b, m[i + 15], 14, -660478335);
  11161. b = GG(b, c, d, a, m[i + 4], 20, -405537848);
  11162. a = GG(a, b, c, d, m[i + 9], 5, 568446438);
  11163. d = GG(d, a, b, c, m[i + 14], 9, -1019803690);
  11164. c = GG(c, d, a, b, m[i + 3], 14, -187363961);
  11165. b = GG(b, c, d, a, m[i + 8], 20, 1163531501);
  11166. a = GG(a, b, c, d, m[i + 13], 5, -1444681467);
  11167. d = GG(d, a, b, c, m[i + 2], 9, -51403784);
  11168. c = GG(c, d, a, b, m[i + 7], 14, 1735328473);
  11169. b = GG(b, c, d, a, m[i + 12], 20, -1926607734);
  11170. a = HH(a, b, c, d, m[i + 5], 4, -378558);
  11171. d = HH(d, a, b, c, m[i + 8], 11, -2022574463);
  11172. c = HH(c, d, a, b, m[i + 11], 16, 1839030562);
  11173. b = HH(b, c, d, a, m[i + 14], 23, -35309556);
  11174. a = HH(a, b, c, d, m[i + 1], 4, -1530992060);
  11175. d = HH(d, a, b, c, m[i + 4], 11, 1272893353);
  11176. c = HH(c, d, a, b, m[i + 7], 16, -155497632);
  11177. b = HH(b, c, d, a, m[i + 10], 23, -1094730640);
  11178. a = HH(a, b, c, d, m[i + 13], 4, 681279174);
  11179. d = HH(d, a, b, c, m[i + 0], 11, -358537222);
  11180. c = HH(c, d, a, b, m[i + 3], 16, -722521979);
  11181. b = HH(b, c, d, a, m[i + 6], 23, 76029189);
  11182. a = HH(a, b, c, d, m[i + 9], 4, -640364487);
  11183. d = HH(d, a, b, c, m[i + 12], 11, -421815835);
  11184. c = HH(c, d, a, b, m[i + 15], 16, 530742520);
  11185. b = HH(b, c, d, a, m[i + 2], 23, -995338651);
  11186. a = II(a, b, c, d, m[i + 0], 6, -198630844);
  11187. d = II(d, a, b, c, m[i + 7], 10, 1126891415);
  11188. c = II(c, d, a, b, m[i + 14], 15, -1416354905);
  11189. b = II(b, c, d, a, m[i + 5], 21, -57434055);
  11190. a = II(a, b, c, d, m[i + 12], 6, 1700485571);
  11191. d = II(d, a, b, c, m[i + 3], 10, -1894986606);
  11192. c = II(c, d, a, b, m[i + 10], 15, -1051523);
  11193. b = II(b, c, d, a, m[i + 1], 21, -2054922799);
  11194. a = II(a, b, c, d, m[i + 8], 6, 1873313359);
  11195. d = II(d, a, b, c, m[i + 15], 10, -30611744);
  11196. c = II(c, d, a, b, m[i + 6], 15, -1560198380);
  11197. b = II(b, c, d, a, m[i + 13], 21, 1309151649);
  11198. a = II(a, b, c, d, m[i + 4], 6, -145523070);
  11199. d = II(d, a, b, c, m[i + 11], 10, -1120210379);
  11200. c = II(c, d, a, b, m[i + 2], 15, 718787259);
  11201. b = II(b, c, d, a, m[i + 9], 21, -343485551);
  11202. a = a + aa >>> 0;
  11203. b = b + bb >>> 0;
  11204. c = c + cc >>> 0;
  11205. d = d + dd >>> 0;
  11206. }
  11207. return util.endian([a, b, c, d]);
  11208. };
  11209. // Auxiliary functions
  11210. MD5._ff = function (a, b, c, d, x, s, t) {
  11211. var n = a + (b & c | ~b & d) + (x >>> 0) + t;
  11212. return (n << s | n >>> 32 - s) + b;
  11213. };
  11214. MD5._gg = function (a, b, c, d, x, s, t) {
  11215. var n = a + (b & d | c & ~d) + (x >>> 0) + t;
  11216. return (n << s | n >>> 32 - s) + b;
  11217. };
  11218. MD5._hh = function (a, b, c, d, x, s, t) {
  11219. var n = a + (b ^ c ^ d) + (x >>> 0) + t;
  11220. return (n << s | n >>> 32 - s) + b;
  11221. };
  11222. MD5._ii = function (a, b, c, d, x, s, t) {
  11223. var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
  11224. return (n << s | n >>> 32 - s) + b;
  11225. };
  11226. // Package private blocksize
  11227. MD5._blocksize = 16;
  11228. MD5._digestsize = 16;
  11229. })();
  11230. /***/ }),
  11231. /* 46 */
  11232. /*!*********************************************************************!*\
  11233. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/PBKDF2.js ***!
  11234. \*********************************************************************/
  11235. /*! no static exports found */
  11236. /***/ (function(module, exports, __webpack_require__) {
  11237. (function () {
  11238. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11239. // Shortcuts
  11240. var util = C.util,
  11241. charenc = C.charenc,
  11242. UTF8 = charenc.UTF8,
  11243. Binary = charenc.Binary;
  11244. C.PBKDF2 = function (password, salt, keylen, options) {
  11245. // Convert to byte arrays
  11246. if (password.constructor == String) password = UTF8.stringToBytes(password);
  11247. if (salt.constructor == String) salt = UTF8.stringToBytes(salt);
  11248. /* else, assume byte arrays already */
  11249. // Defaults
  11250. var hasher = options && options.hasher || C.SHA1,
  11251. iterations = options && options.iterations || 1;
  11252. // Pseudo-random function
  11253. function PRF(password, salt) {
  11254. return C.HMAC(hasher, salt, password, {
  11255. asBytes: true
  11256. });
  11257. }
  11258. // Generate key
  11259. var derivedKeyBytes = [],
  11260. blockindex = 1;
  11261. while (derivedKeyBytes.length < keylen) {
  11262. var block = PRF(password, salt.concat(util.wordsToBytes([blockindex])));
  11263. for (var u = block, i = 1; i < iterations; i++) {
  11264. u = PRF(password, u);
  11265. for (var j = 0; j < block.length; j++) {
  11266. block[j] ^= u[j];
  11267. }
  11268. }
  11269. derivedKeyBytes = derivedKeyBytes.concat(block);
  11270. blockindex++;
  11271. }
  11272. // Truncate excess bytes
  11273. derivedKeyBytes.length = keylen;
  11274. return options && options.asBytes ? derivedKeyBytes : options && options.asString ? Binary.bytesToString(derivedKeyBytes) : util.bytesToHex(derivedKeyBytes);
  11275. };
  11276. })();
  11277. /***/ }),
  11278. /* 47 */
  11279. /*!**************************************************************************!*\
  11280. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/PBKDF2Async.js ***!
  11281. \**************************************************************************/
  11282. /*! no static exports found */
  11283. /***/ (function(module, exports, __webpack_require__) {
  11284. /* WEBPACK VAR INJECTION */(function(process) {(function () {
  11285. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11286. // Shortcuts
  11287. var util = C.util,
  11288. charenc = C.charenc,
  11289. UTF8 = charenc.UTF8,
  11290. Binary = charenc.Binary;
  11291. if (!C.nextTick) {
  11292. // node.js has setTime out but prefer process.nextTick
  11293. if (typeof process != 'undefined' && typeof process.nextTick !== 'undefined') {
  11294. C.nextTick = process.nextTick;
  11295. } else if (typeof setTimeout !== 'undefined') {
  11296. C.nextTick = function (callback) {
  11297. setTimeout(callback, 0);
  11298. };
  11299. }
  11300. }
  11301. C.PBKDF2Async = function (password, salt, keylen, callback, options) {
  11302. // Convert to byte arrays
  11303. if (password.constructor == String) password = UTF8.stringToBytes(password);
  11304. if (salt.constructor == String) salt = UTF8.stringToBytes(salt);
  11305. /* else, assume byte arrays already */
  11306. // Defaults
  11307. var hasher = options && options.hasher || C.SHA1,
  11308. iterations = options && options.iterations || 1;
  11309. // Progress callback option
  11310. var progressChangeHandler = options && options.onProgressChange;
  11311. var totalIterations = Math.ceil(keylen / hasher._digestsize) * iterations;
  11312. function fireProgressChange(currentIteration) {
  11313. if (progressChangeHandler) {
  11314. var iterationsSoFar = derivedKeyBytes.length / hasher._digestsize * iterations + currentIteration;
  11315. setTimeout(function () {
  11316. progressChangeHandler(Math.round(iterationsSoFar / totalIterations * 100));
  11317. }, 0);
  11318. }
  11319. }
  11320. // Pseudo-random function
  11321. function PRF(password, salt) {
  11322. return C.HMAC(hasher, salt, password, {
  11323. asBytes: true
  11324. });
  11325. }
  11326. var nextTick = C.nextTick;
  11327. // Generate key
  11328. var derivedKeyBytes = [],
  11329. blockindex = 1;
  11330. var _outer, _inner;
  11331. nextTick(_outer = function outer() {
  11332. if (derivedKeyBytes.length < keylen) {
  11333. var block = PRF(password, salt.concat(util.wordsToBytes([blockindex])));
  11334. fireProgressChange(1);
  11335. var u = block,
  11336. i = 1;
  11337. nextTick(_inner = function inner() {
  11338. if (i < iterations) {
  11339. u = PRF(password, u);
  11340. for (var j = 0; j < block.length; j++) {
  11341. block[j] ^= u[j];
  11342. }
  11343. i++;
  11344. fireProgressChange(i);
  11345. nextTick(_inner);
  11346. } else {
  11347. derivedKeyBytes = derivedKeyBytes.concat(block);
  11348. blockindex++;
  11349. nextTick(_outer);
  11350. }
  11351. });
  11352. } else {
  11353. // Truncate excess bytes
  11354. derivedKeyBytes.length = keylen;
  11355. callback(options && options.asBytes ? derivedKeyBytes : options && options.asString ? Binary.bytesToString(derivedKeyBytes) : util.bytesToHex(derivedKeyBytes));
  11356. }
  11357. });
  11358. };
  11359. })();
  11360. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../HBuilderX.3.4.18.20220630/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 48)))
  11361. /***/ }),
  11362. /* 48 */
  11363. /*!********************************************************!*\
  11364. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  11365. \********************************************************/
  11366. /*! no static exports found */
  11367. /***/ (function(module, exports, __webpack_require__) {
  11368. exports.nextTick = function nextTick(fn) {
  11369. var args = Array.prototype.slice.call(arguments);
  11370. args.shift();
  11371. setTimeout(function () {
  11372. fn.apply(null, args);
  11373. }, 0);
  11374. };
  11375. exports.platform = exports.arch =
  11376. exports.execPath = exports.title = 'browser';
  11377. exports.pid = 1;
  11378. exports.browser = true;
  11379. exports.env = {};
  11380. exports.argv = [];
  11381. exports.binding = function (name) {
  11382. throw new Error('No such module. (Possibly not yet loaded)')
  11383. };
  11384. (function () {
  11385. var cwd = '/';
  11386. var path;
  11387. exports.cwd = function () { return cwd };
  11388. exports.chdir = function (dir) {
  11389. if (!path) path = __webpack_require__(/*! path */ 49);
  11390. cwd = path.resolve(dir, cwd);
  11391. };
  11392. })();
  11393. exports.exit = exports.kill =
  11394. exports.umask = exports.dlopen =
  11395. exports.uptime = exports.memoryUsage =
  11396. exports.uvCounters = function() {};
  11397. exports.features = {};
  11398. /***/ }),
  11399. /* 49 */
  11400. /*!***********************************************!*\
  11401. !*** ./node_modules/path-browserify/index.js ***!
  11402. \***********************************************/
  11403. /*! no static exports found */
  11404. /***/ (function(module, exports, __webpack_require__) {
  11405. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  11406. // backported and transplited with Babel, with backwards-compat fixes
  11407. // Copyright Joyent, Inc. and other Node contributors.
  11408. //
  11409. // Permission is hereby granted, free of charge, to any person obtaining a
  11410. // copy of this software and associated documentation files (the
  11411. // "Software"), to deal in the Software without restriction, including
  11412. // without limitation the rights to use, copy, modify, merge, publish,
  11413. // distribute, sublicense, and/or sell copies of the Software, and to permit
  11414. // persons to whom the Software is furnished to do so, subject to the
  11415. // following conditions:
  11416. //
  11417. // The above copyright notice and this permission notice shall be included
  11418. // in all copies or substantial portions of the Software.
  11419. //
  11420. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  11421. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  11422. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  11423. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  11424. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  11425. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  11426. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  11427. // resolves . and .. elements in a path array with directory names there
  11428. // must be no slashes, empty elements, or device names (c:\) in the array
  11429. // (so also no leading and trailing slashes - it does not distinguish
  11430. // relative and absolute paths)
  11431. function normalizeArray(parts, allowAboveRoot) {
  11432. // if the path tries to go above the root, `up` ends up > 0
  11433. var up = 0;
  11434. for (var i = parts.length - 1; i >= 0; i--) {
  11435. var last = parts[i];
  11436. if (last === '.') {
  11437. parts.splice(i, 1);
  11438. } else if (last === '..') {
  11439. parts.splice(i, 1);
  11440. up++;
  11441. } else if (up) {
  11442. parts.splice(i, 1);
  11443. up--;
  11444. }
  11445. }
  11446. // if the path is allowed to go above the root, restore leading ..s
  11447. if (allowAboveRoot) {
  11448. for (; up--; up) {
  11449. parts.unshift('..');
  11450. }
  11451. }
  11452. return parts;
  11453. }
  11454. // path.resolve([from ...], to)
  11455. // posix version
  11456. exports.resolve = function() {
  11457. var resolvedPath = '',
  11458. resolvedAbsolute = false;
  11459. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  11460. var path = (i >= 0) ? arguments[i] : process.cwd();
  11461. // Skip empty and invalid entries
  11462. if (typeof path !== 'string') {
  11463. throw new TypeError('Arguments to path.resolve must be strings');
  11464. } else if (!path) {
  11465. continue;
  11466. }
  11467. resolvedPath = path + '/' + resolvedPath;
  11468. resolvedAbsolute = path.charAt(0) === '/';
  11469. }
  11470. // At this point the path should be resolved to a full absolute path, but
  11471. // handle relative paths to be safe (might happen when process.cwd() fails)
  11472. // Normalize the path
  11473. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  11474. return !!p;
  11475. }), !resolvedAbsolute).join('/');
  11476. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  11477. };
  11478. // path.normalize(path)
  11479. // posix version
  11480. exports.normalize = function(path) {
  11481. var isAbsolute = exports.isAbsolute(path),
  11482. trailingSlash = substr(path, -1) === '/';
  11483. // Normalize the path
  11484. path = normalizeArray(filter(path.split('/'), function(p) {
  11485. return !!p;
  11486. }), !isAbsolute).join('/');
  11487. if (!path && !isAbsolute) {
  11488. path = '.';
  11489. }
  11490. if (path && trailingSlash) {
  11491. path += '/';
  11492. }
  11493. return (isAbsolute ? '/' : '') + path;
  11494. };
  11495. // posix version
  11496. exports.isAbsolute = function(path) {
  11497. return path.charAt(0) === '/';
  11498. };
  11499. // posix version
  11500. exports.join = function() {
  11501. var paths = Array.prototype.slice.call(arguments, 0);
  11502. return exports.normalize(filter(paths, function(p, index) {
  11503. if (typeof p !== 'string') {
  11504. throw new TypeError('Arguments to path.join must be strings');
  11505. }
  11506. return p;
  11507. }).join('/'));
  11508. };
  11509. // path.relative(from, to)
  11510. // posix version
  11511. exports.relative = function(from, to) {
  11512. from = exports.resolve(from).substr(1);
  11513. to = exports.resolve(to).substr(1);
  11514. function trim(arr) {
  11515. var start = 0;
  11516. for (; start < arr.length; start++) {
  11517. if (arr[start] !== '') break;
  11518. }
  11519. var end = arr.length - 1;
  11520. for (; end >= 0; end--) {
  11521. if (arr[end] !== '') break;
  11522. }
  11523. if (start > end) return [];
  11524. return arr.slice(start, end - start + 1);
  11525. }
  11526. var fromParts = trim(from.split('/'));
  11527. var toParts = trim(to.split('/'));
  11528. var length = Math.min(fromParts.length, toParts.length);
  11529. var samePartsLength = length;
  11530. for (var i = 0; i < length; i++) {
  11531. if (fromParts[i] !== toParts[i]) {
  11532. samePartsLength = i;
  11533. break;
  11534. }
  11535. }
  11536. var outputParts = [];
  11537. for (var i = samePartsLength; i < fromParts.length; i++) {
  11538. outputParts.push('..');
  11539. }
  11540. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  11541. return outputParts.join('/');
  11542. };
  11543. exports.sep = '/';
  11544. exports.delimiter = ':';
  11545. exports.dirname = function (path) {
  11546. if (typeof path !== 'string') path = path + '';
  11547. if (path.length === 0) return '.';
  11548. var code = path.charCodeAt(0);
  11549. var hasRoot = code === 47 /*/*/;
  11550. var end = -1;
  11551. var matchedSlash = true;
  11552. for (var i = path.length - 1; i >= 1; --i) {
  11553. code = path.charCodeAt(i);
  11554. if (code === 47 /*/*/) {
  11555. if (!matchedSlash) {
  11556. end = i;
  11557. break;
  11558. }
  11559. } else {
  11560. // We saw the first non-path separator
  11561. matchedSlash = false;
  11562. }
  11563. }
  11564. if (end === -1) return hasRoot ? '/' : '.';
  11565. if (hasRoot && end === 1) {
  11566. // return '//';
  11567. // Backwards-compat fix:
  11568. return '/';
  11569. }
  11570. return path.slice(0, end);
  11571. };
  11572. function basename(path) {
  11573. if (typeof path !== 'string') path = path + '';
  11574. var start = 0;
  11575. var end = -1;
  11576. var matchedSlash = true;
  11577. var i;
  11578. for (i = path.length - 1; i >= 0; --i) {
  11579. if (path.charCodeAt(i) === 47 /*/*/) {
  11580. // If we reached a path separator that was not part of a set of path
  11581. // separators at the end of the string, stop now
  11582. if (!matchedSlash) {
  11583. start = i + 1;
  11584. break;
  11585. }
  11586. } else if (end === -1) {
  11587. // We saw the first non-path separator, mark this as the end of our
  11588. // path component
  11589. matchedSlash = false;
  11590. end = i + 1;
  11591. }
  11592. }
  11593. if (end === -1) return '';
  11594. return path.slice(start, end);
  11595. }
  11596. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  11597. // in new Node.js versions, so only basename() above is backported here
  11598. exports.basename = function (path, ext) {
  11599. var f = basename(path);
  11600. if (ext && f.substr(-1 * ext.length) === ext) {
  11601. f = f.substr(0, f.length - ext.length);
  11602. }
  11603. return f;
  11604. };
  11605. exports.extname = function (path) {
  11606. if (typeof path !== 'string') path = path + '';
  11607. var startDot = -1;
  11608. var startPart = 0;
  11609. var end = -1;
  11610. var matchedSlash = true;
  11611. // Track the state of characters (if any) we see before our first dot and
  11612. // after any path separator we find
  11613. var preDotState = 0;
  11614. for (var i = path.length - 1; i >= 0; --i) {
  11615. var code = path.charCodeAt(i);
  11616. if (code === 47 /*/*/) {
  11617. // If we reached a path separator that was not part of a set of path
  11618. // separators at the end of the string, stop now
  11619. if (!matchedSlash) {
  11620. startPart = i + 1;
  11621. break;
  11622. }
  11623. continue;
  11624. }
  11625. if (end === -1) {
  11626. // We saw the first non-path separator, mark this as the end of our
  11627. // extension
  11628. matchedSlash = false;
  11629. end = i + 1;
  11630. }
  11631. if (code === 46 /*.*/) {
  11632. // If this is our first dot, mark it as the start of our extension
  11633. if (startDot === -1)
  11634. startDot = i;
  11635. else if (preDotState !== 1)
  11636. preDotState = 1;
  11637. } else if (startDot !== -1) {
  11638. // We saw a non-dot and non-path separator before our dot, so we should
  11639. // have a good chance at having a non-empty extension
  11640. preDotState = -1;
  11641. }
  11642. }
  11643. if (startDot === -1 || end === -1 ||
  11644. // We saw a non-dot character immediately before the dot
  11645. preDotState === 0 ||
  11646. // The (right-most) trimmed path component is exactly '..'
  11647. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  11648. return '';
  11649. }
  11650. return path.slice(startDot, end);
  11651. };
  11652. function filter (xs, f) {
  11653. if (xs.filter) return xs.filter(f);
  11654. var res = [];
  11655. for (var i = 0; i < xs.length; i++) {
  11656. if (f(xs[i], i, xs)) res.push(xs[i]);
  11657. }
  11658. return res;
  11659. }
  11660. // String.prototype.substr - negative index don't work in IE8
  11661. var substr = 'ab'.substr(-1) === 'b'
  11662. ? function (str, start, len) { return str.substr(start, len) }
  11663. : function (str, start, len) {
  11664. if (start < 0) start = str.length + start;
  11665. return str.substr(start, len);
  11666. }
  11667. ;
  11668. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 48)))
  11669. /***/ }),
  11670. /* 50 */
  11671. /*!*********************************************************************!*\
  11672. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/Rabbit.js ***!
  11673. \*********************************************************************/
  11674. /*! no static exports found */
  11675. /***/ (function(module, exports, __webpack_require__) {
  11676. (function () {
  11677. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11678. // Shortcuts
  11679. var util = C.util,
  11680. charenc = C.charenc,
  11681. UTF8 = charenc.UTF8,
  11682. Binary = charenc.Binary;
  11683. // Inner state
  11684. var x = [],
  11685. c = [],
  11686. b;
  11687. var Rabbit = C.Rabbit = {
  11688. /**
  11689. * Public API
  11690. */
  11691. encrypt: function encrypt(message, password) {
  11692. var
  11693. // Convert to bytes
  11694. m = UTF8.stringToBytes(message),
  11695. // Generate random IV
  11696. iv = util.randomBytes(8),
  11697. // Generate key
  11698. k = password.constructor == String ?
  11699. // Derive key from passphrase
  11700. C.PBKDF2(password, iv, 32, {
  11701. asBytes: true
  11702. }) :
  11703. // else, assume byte array representing cryptographic key
  11704. password;
  11705. // Encrypt
  11706. Rabbit._rabbit(m, k, util.bytesToWords(iv));
  11707. // Return ciphertext
  11708. return util.bytesToBase64(iv.concat(m));
  11709. },
  11710. decrypt: function decrypt(ciphertext, password) {
  11711. var
  11712. // Convert to bytes
  11713. c = util.base64ToBytes(ciphertext),
  11714. // Separate IV and message
  11715. iv = c.splice(0, 8),
  11716. // Generate key
  11717. k = password.constructor == String ?
  11718. // Derive key from passphrase
  11719. C.PBKDF2(password, iv, 32, {
  11720. asBytes: true
  11721. }) :
  11722. // else, assume byte array representing cryptographic key
  11723. password;
  11724. // Decrypt
  11725. Rabbit._rabbit(c, k, util.bytesToWords(iv));
  11726. // Return plaintext
  11727. return UTF8.bytesToString(c);
  11728. },
  11729. /**
  11730. * Internal methods
  11731. */
  11732. // Encryption/decryption scheme
  11733. _rabbit: function _rabbit(m, k, iv) {
  11734. Rabbit._keysetup(k);
  11735. if (iv) Rabbit._ivsetup(iv);
  11736. for (var s = [], i = 0; i < m.length; i++) {
  11737. if (i % 16 == 0) {
  11738. // Iterate the system
  11739. Rabbit._nextstate();
  11740. // Generate 16 bytes of pseudo-random data
  11741. s[0] = x[0] ^ x[5] >>> 16 ^ x[3] << 16;
  11742. s[1] = x[2] ^ x[7] >>> 16 ^ x[5] << 16;
  11743. s[2] = x[4] ^ x[1] >>> 16 ^ x[7] << 16;
  11744. s[3] = x[6] ^ x[3] >>> 16 ^ x[1] << 16;
  11745. // Swap endian
  11746. for (var j = 0; j < 4; j++) {
  11747. s[j] = (s[j] << 8 | s[j] >>> 24) & 0x00FF00FF | (s[j] << 24 | s[j] >>> 8) & 0xFF00FF00;
  11748. }
  11749. // Convert words to bytes
  11750. for (var b = 120; b >= 0; b -= 8) {
  11751. s[b / 8] = s[b >>> 5] >>> 24 - b % 32 & 0xFF;
  11752. }
  11753. }
  11754. m[i] ^= s[i % 16];
  11755. }
  11756. },
  11757. // Key setup scheme
  11758. _keysetup: function _keysetup(k) {
  11759. // Generate initial state values
  11760. x[0] = k[0];
  11761. x[2] = k[1];
  11762. x[4] = k[2];
  11763. x[6] = k[3];
  11764. x[1] = k[3] << 16 | k[2] >>> 16;
  11765. x[3] = k[0] << 16 | k[3] >>> 16;
  11766. x[5] = k[1] << 16 | k[0] >>> 16;
  11767. x[7] = k[2] << 16 | k[1] >>> 16;
  11768. // Generate initial counter values
  11769. c[0] = util.rotl(k[2], 16);
  11770. c[2] = util.rotl(k[3], 16);
  11771. c[4] = util.rotl(k[0], 16);
  11772. c[6] = util.rotl(k[1], 16);
  11773. c[1] = k[0] & 0xFFFF0000 | k[1] & 0xFFFF;
  11774. c[3] = k[1] & 0xFFFF0000 | k[2] & 0xFFFF;
  11775. c[5] = k[2] & 0xFFFF0000 | k[3] & 0xFFFF;
  11776. c[7] = k[3] & 0xFFFF0000 | k[0] & 0xFFFF;
  11777. // Clear carry bit
  11778. b = 0;
  11779. // Iterate the system four times
  11780. for (var i = 0; i < 4; i++) {
  11781. Rabbit._nextstate();
  11782. }
  11783. // Modify the counters
  11784. for (var i = 0; i < 8; i++) {
  11785. c[i] ^= x[i + 4 & 7];
  11786. }
  11787. },
  11788. // IV setup scheme
  11789. _ivsetup: function _ivsetup(iv) {
  11790. // Generate four subvectors
  11791. var i0 = util.endian(iv[0]),
  11792. i2 = util.endian(iv[1]),
  11793. i1 = i0 >>> 16 | i2 & 0xFFFF0000,
  11794. i3 = i2 << 16 | i0 & 0x0000FFFF;
  11795. // Modify counter values
  11796. c[0] ^= i0;
  11797. c[1] ^= i1;
  11798. c[2] ^= i2;
  11799. c[3] ^= i3;
  11800. c[4] ^= i0;
  11801. c[5] ^= i1;
  11802. c[6] ^= i2;
  11803. c[7] ^= i3;
  11804. // Iterate the system four times
  11805. for (var i = 0; i < 4; i++) {
  11806. Rabbit._nextstate();
  11807. }
  11808. },
  11809. // Next-state function
  11810. _nextstate: function _nextstate() {
  11811. // Save old counter values
  11812. for (var c_old = [], i = 0; i < 8; i++) {
  11813. c_old[i] = c[i];
  11814. }
  11815. // Calculate new counter values
  11816. c[0] = c[0] + 0x4D34D34D + b >>> 0;
  11817. c[1] = c[1] + 0xD34D34D3 + (c[0] >>> 0 < c_old[0] >>> 0 ? 1 : 0) >>> 0;
  11818. c[2] = c[2] + 0x34D34D34 + (c[1] >>> 0 < c_old[1] >>> 0 ? 1 : 0) >>> 0;
  11819. c[3] = c[3] + 0x4D34D34D + (c[2] >>> 0 < c_old[2] >>> 0 ? 1 : 0) >>> 0;
  11820. c[4] = c[4] + 0xD34D34D3 + (c[3] >>> 0 < c_old[3] >>> 0 ? 1 : 0) >>> 0;
  11821. c[5] = c[5] + 0x34D34D34 + (c[4] >>> 0 < c_old[4] >>> 0 ? 1 : 0) >>> 0;
  11822. c[6] = c[6] + 0x4D34D34D + (c[5] >>> 0 < c_old[5] >>> 0 ? 1 : 0) >>> 0;
  11823. c[7] = c[7] + 0xD34D34D3 + (c[6] >>> 0 < c_old[6] >>> 0 ? 1 : 0) >>> 0;
  11824. b = c[7] >>> 0 < c_old[7] >>> 0 ? 1 : 0;
  11825. // Calculate the g-values
  11826. for (var g = [], i = 0; i < 8; i++) {
  11827. var gx = x[i] + c[i] >>> 0;
  11828. // Construct high and low argument for squaring
  11829. var ga = gx & 0xFFFF,
  11830. gb = gx >>> 16;
  11831. // Calculate high and low result of squaring
  11832. var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb,
  11833. gl = ((gx & 0xFFFF0000) * gx >>> 0) + ((gx & 0x0000FFFF) * gx >>> 0) >>> 0;
  11834. // High XOR low
  11835. g[i] = gh ^ gl;
  11836. }
  11837. // Calculate new state values
  11838. x[0] = g[0] + (g[7] << 16 | g[7] >>> 16) + (g[6] << 16 | g[6] >>> 16);
  11839. x[1] = g[1] + (g[0] << 8 | g[0] >>> 24) + g[7];
  11840. x[2] = g[2] + (g[1] << 16 | g[1] >>> 16) + (g[0] << 16 | g[0] >>> 16);
  11841. x[3] = g[3] + (g[2] << 8 | g[2] >>> 24) + g[1];
  11842. x[4] = g[4] + (g[3] << 16 | g[3] >>> 16) + (g[2] << 16 | g[2] >>> 16);
  11843. x[5] = g[5] + (g[4] << 8 | g[4] >>> 24) + g[3];
  11844. x[6] = g[6] + (g[5] << 16 | g[5] >>> 16) + (g[4] << 16 | g[4] >>> 16);
  11845. x[7] = g[7] + (g[6] << 8 | g[6] >>> 24) + g[5];
  11846. }
  11847. };
  11848. })();
  11849. /***/ }),
  11850. /* 51 */
  11851. /*!*******************************************************************!*\
  11852. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/SHA1.js ***!
  11853. \*******************************************************************/
  11854. /*! no static exports found */
  11855. /***/ (function(module, exports, __webpack_require__) {
  11856. (function () {
  11857. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11858. // Shortcuts
  11859. var util = C.util,
  11860. charenc = C.charenc,
  11861. UTF8 = charenc.UTF8,
  11862. Binary = charenc.Binary;
  11863. // Public API
  11864. var SHA1 = C.SHA1 = function (message, options) {
  11865. var digestbytes = util.wordsToBytes(SHA1._sha1(message));
  11866. return options && options.asBytes ? digestbytes : options && options.asString ? Binary.bytesToString(digestbytes) : util.bytesToHex(digestbytes);
  11867. };
  11868. // The core
  11869. SHA1._sha1 = function (message) {
  11870. // Convert to byte array
  11871. if (message.constructor == String) message = UTF8.stringToBytes(message);
  11872. /* else, assume byte array already */
  11873. var m = util.bytesToWords(message),
  11874. l = message.length * 8,
  11875. w = [],
  11876. H0 = 1732584193,
  11877. H1 = -271733879,
  11878. H2 = -1732584194,
  11879. H3 = 271733878,
  11880. H4 = -1009589776;
  11881. // Padding
  11882. m[l >> 5] |= 0x80 << 24 - l % 32;
  11883. m[(l + 64 >>> 9 << 4) + 15] = l;
  11884. for (var i = 0; i < m.length; i += 16) {
  11885. var a = H0,
  11886. b = H1,
  11887. c = H2,
  11888. d = H3,
  11889. e = H4;
  11890. for (var j = 0; j < 80; j++) {
  11891. if (j < 16) w[j] = m[i + j];else {
  11892. var n = w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16];
  11893. w[j] = n << 1 | n >>> 31;
  11894. }
  11895. var t = (H0 << 5 | H0 >>> 27) + H4 + (w[j] >>> 0) + (j < 20 ? (H1 & H2 | ~H1 & H3) + 1518500249 : j < 40 ? (H1 ^ H2 ^ H3) + 1859775393 : j < 60 ? (H1 & H2 | H1 & H3 | H2 & H3) - 1894007588 : (H1 ^ H2 ^ H3) - 899497514);
  11896. H4 = H3;
  11897. H3 = H2;
  11898. H2 = H1 << 30 | H1 >>> 2;
  11899. H1 = H0;
  11900. H0 = t;
  11901. }
  11902. H0 += a;
  11903. H1 += b;
  11904. H2 += c;
  11905. H3 += d;
  11906. H4 += e;
  11907. }
  11908. return [H0, H1, H2, H3, H4];
  11909. };
  11910. // Package private blocksize
  11911. SHA1._blocksize = 16;
  11912. SHA1._digestsize = 20;
  11913. })();
  11914. /***/ }),
  11915. /* 52 */
  11916. /*!*********************************************************************!*\
  11917. !*** D:/demo/tourism/uni_applet/util/cryptojs-master/lib/SHA256.js ***!
  11918. \*********************************************************************/
  11919. /*! no static exports found */
  11920. /***/ (function(module, exports, __webpack_require__) {
  11921. (function () {
  11922. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11923. // Shortcuts
  11924. var util = C.util,
  11925. charenc = C.charenc,
  11926. UTF8 = charenc.UTF8,
  11927. Binary = charenc.Binary;
  11928. // Constants
  11929. var K = [0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5, 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3, 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174, 0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC, 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA, 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7, 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967, 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13, 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85, 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3, 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070, 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5, 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3, 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208, 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2];
  11930. // Public API
  11931. var SHA256 = C.SHA256 = function (message, options) {
  11932. var digestbytes = util.wordsToBytes(SHA256._sha256(message));
  11933. return options && options.asBytes ? digestbytes : options && options.asString ? Binary.bytesToString(digestbytes) : util.bytesToHex(digestbytes);
  11934. };
  11935. // The core
  11936. SHA256._sha256 = function (message) {
  11937. // Convert to byte array
  11938. if (message.constructor == String) message = UTF8.stringToBytes(message);
  11939. /* else, assume byte array already */
  11940. var m = util.bytesToWords(message),
  11941. l = message.length * 8,
  11942. H = [0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19],
  11943. w = [],
  11944. a,
  11945. b,
  11946. c,
  11947. d,
  11948. e,
  11949. f,
  11950. g,
  11951. h,
  11952. i,
  11953. j,
  11954. t1,
  11955. t2;
  11956. // Padding
  11957. m[l >> 5] |= 0x80 << 24 - l % 32;
  11958. m[(l + 64 >> 9 << 4) + 15] = l;
  11959. for (var i = 0; i < m.length; i += 16) {
  11960. a = H[0];
  11961. b = H[1];
  11962. c = H[2];
  11963. d = H[3];
  11964. e = H[4];
  11965. f = H[5];
  11966. g = H[6];
  11967. h = H[7];
  11968. for (var j = 0; j < 64; j++) {
  11969. if (j < 16) w[j] = m[j + i];else {
  11970. var gamma0x = w[j - 15],
  11971. gamma1x = w[j - 2],
  11972. gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (gamma0x << 14 | gamma0x >>> 18) ^ gamma0x >>> 3,
  11973. gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (gamma1x << 13 | gamma1x >>> 19) ^ gamma1x >>> 10;
  11974. w[j] = gamma0 + (w[j - 7] >>> 0) + gamma1 + (w[j - 16] >>> 0);
  11975. }
  11976. var ch = e & f ^ ~e & g,
  11977. maj = a & b ^ a & c ^ b & c,
  11978. sigma0 = (a << 30 | a >>> 2) ^ (a << 19 | a >>> 13) ^ (a << 10 | a >>> 22),
  11979. sigma1 = (e << 26 | e >>> 6) ^ (e << 21 | e >>> 11) ^ (e << 7 | e >>> 25);
  11980. t1 = (h >>> 0) + sigma1 + ch + K[j] + (w[j] >>> 0);
  11981. t2 = sigma0 + maj;
  11982. h = g;
  11983. g = f;
  11984. f = e;
  11985. e = d + t1 >>> 0;
  11986. d = c;
  11987. c = b;
  11988. b = a;
  11989. a = t1 + t2 >>> 0;
  11990. }
  11991. H[0] += a;
  11992. H[1] += b;
  11993. H[2] += c;
  11994. H[3] += d;
  11995. H[4] += e;
  11996. H[5] += f;
  11997. H[6] += g;
  11998. H[7] += h;
  11999. }
  12000. return H;
  12001. };
  12002. // Package private blocksize
  12003. SHA256._blocksize = 16;
  12004. SHA256._digestsize = 32;
  12005. })();
  12006. /***/ }),
  12007. /* 53 */
  12008. /*!***************************************************!*\
  12009. !*** D:/demo/tourism/uni_applet/common/helper.js ***!
  12010. \***************************************************/
  12011. /*! no static exports found */
  12012. /***/ (function(module, exports, __webpack_require__) {
  12013. "use strict";
  12014. /* WEBPACK VAR INJECTION */(function(uni) {
  12015. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  12016. Object.defineProperty(exports, "__esModule", {
  12017. value: true
  12018. });
  12019. exports.default = void 0;
  12020. var config = _interopRequireWildcard(__webpack_require__(/*! ../config */ 34));
  12021. 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); }
  12022. 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; }
  12023. var ossUploadUrl = 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/';
  12024. var contactCustomerService = function contactCustomerService(item) {
  12025. console.log(item);
  12026. if (!item) {
  12027. item = '110';
  12028. }
  12029. console.log("联系客服");
  12030. uni.makePhoneCall({
  12031. phoneNumber: item,
  12032. success: function success(res) {
  12033. console.log('调用成功!');
  12034. },
  12035. // 失败回调
  12036. fail: function fail(res) {
  12037. console.log('调用失败!');
  12038. contactCustomerService(item);
  12039. }
  12040. });
  12041. };
  12042. var logout = function logout() {
  12043. uni.removeStorage({
  12044. key: 'userInfo'
  12045. });
  12046. };
  12047. var formatLocation = function formatLocation(str) {
  12048. var area = {};
  12049. var index11 = 0;
  12050. var index1 = str.indexOf("省");
  12051. if (index1 == -1) {
  12052. index11 = str.indexOf("自治区");
  12053. if (index11 != -1) {
  12054. area.Province = str.substring(0, index11 + 3);
  12055. } else {
  12056. area.Province = str.substring(0, 0);
  12057. }
  12058. } else {
  12059. area.Province = str.substring(0, index1 + 1);
  12060. }
  12061. var index2 = str.indexOf("市");
  12062. if (index11 == -1) {
  12063. area.City = str.substring(index11 + 1, index2 + 1);
  12064. } else {
  12065. if (index11 == 0) {
  12066. area.City = str.substring(index1 + 1, index2 + 1);
  12067. } else {
  12068. area.City = str.substring(index11 + 3, index2 + 1);
  12069. }
  12070. }
  12071. var index3 = str.indexOf("区");
  12072. if (index3 == -1) {
  12073. index3 = str.indexOf("县");
  12074. if (index3 == -1) {
  12075. index3 = str.lastIndexOf("市");
  12076. if (index3 == -1) {
  12077. index3 = str.indexOf("镇");
  12078. if (index3 == -1) {} else {
  12079. area.Country = str.substring(index2 + 1, index3 + 1);
  12080. }
  12081. } else {
  12082. area.Country = str.substring(index2 + 1, index3 + 1);
  12083. }
  12084. } else {
  12085. area.Country = str.substring(index2 + 1, index3 + 1);
  12086. }
  12087. } else {
  12088. area.Country = str.substring(index2 + 1, index3 + 1);
  12089. }
  12090. area.Village = str.substring(index3 + 1, str.length);
  12091. return area;
  12092. };
  12093. var _default = {
  12094. logout: logout,
  12095. contactCustomerService: contactCustomerService,
  12096. formatLocation: formatLocation
  12097. };
  12098. exports.default = _default;
  12099. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12100. /***/ }),
  12101. /* 54 */
  12102. /*!****************************************************************!*\
  12103. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/index.js ***!
  12104. \****************************************************************/
  12105. /*! no static exports found */
  12106. /***/ (function(module, exports, __webpack_require__) {
  12107. "use strict";
  12108. /* WEBPACK VAR INJECTION */(function(uni) {
  12109. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12110. Object.defineProperty(exports, "__esModule", {
  12111. value: true
  12112. });
  12113. exports.default = void 0;
  12114. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  12115. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 55));
  12116. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 56));
  12117. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 57));
  12118. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 75));
  12119. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 79));
  12120. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 80));
  12121. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 81));
  12122. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 82));
  12123. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 83));
  12124. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 86));
  12125. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 87));
  12126. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 177));
  12127. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 135));
  12128. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 178));
  12129. 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; }
  12130. 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; }
  12131. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  12132. var pleaseSetTranspileDependencies = {},
  12133. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  12134. // 引入全局mixin
  12135. var $u = _objectSpread(_objectSpread({
  12136. route: _route.default,
  12137. date: _index.default.timeFormat,
  12138. // 另名date
  12139. colorGradient: _colorGradient.default.colorGradient,
  12140. hexToRgb: _colorGradient.default.hexToRgb,
  12141. rgbToHex: _colorGradient.default.rgbToHex,
  12142. colorToRgba: _colorGradient.default.colorToRgba,
  12143. test: _test.default,
  12144. type: ['primary', 'success', 'error', 'warning', 'info'],
  12145. http: new _luchRequest.default(),
  12146. config: _config.default,
  12147. // uView配置信息相关,比如版本号
  12148. zIndex: _zIndex.default,
  12149. debounce: _debounce.default,
  12150. throttle: _throttle.default,
  12151. mixin: _mixin.default,
  12152. mpMixin: _mpMixin.default,
  12153. props: _props.default
  12154. }, _index.default), {}, {
  12155. color: _color.default,
  12156. platform: _platform.default
  12157. });
  12158. // $u挂载到uni对象上
  12159. uni.$u = $u;
  12160. var install = function install(Vue) {
  12161. // 时间格式化,同时两个名称,date和timeFormat
  12162. Vue.filter('timeFormat', function (timestamp, format) {
  12163. return uni.$u.timeFormat(timestamp, format);
  12164. });
  12165. Vue.filter('date', function (timestamp, format) {
  12166. return uni.$u.timeFormat(timestamp, format);
  12167. });
  12168. // 将多久以前的方法,注入到全局过滤器
  12169. Vue.filter('timeFrom', function (timestamp, format) {
  12170. return uni.$u.timeFrom(timestamp, format);
  12171. });
  12172. // 同时挂载到uni和Vue.prototype中
  12173. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  12174. Vue.prototype.$u = $u;
  12175. Vue.mixin(_mixin.default);
  12176. };
  12177. var _default = {
  12178. install: install
  12179. };
  12180. exports.default = _default;
  12181. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12182. /***/ }),
  12183. /* 55 */
  12184. /*!***************************************************************************!*\
  12185. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  12186. \***************************************************************************/
  12187. /*! no static exports found */
  12188. /***/ (function(module, exports, __webpack_require__) {
  12189. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  12190. // 定义每个组件都可能需要用到的外部样式以及类名
  12191. props: {
  12192. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  12193. customStyle: {
  12194. type: [Object, String],
  12195. default: function _default() {
  12196. return {};
  12197. }
  12198. },
  12199. customClass: {
  12200. type: String,
  12201. default: ''
  12202. },
  12203. // 跳转的页面路径
  12204. url: {
  12205. type: String,
  12206. default: ''
  12207. },
  12208. // 页面跳转的类型
  12209. linkType: {
  12210. type: String,
  12211. default: 'navigateTo'
  12212. }
  12213. },
  12214. data: function data() {
  12215. return {};
  12216. },
  12217. onLoad: function onLoad() {
  12218. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  12219. this.$u.getRect = this.$uGetRect;
  12220. },
  12221. created: function created() {
  12222. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  12223. this.$u.getRect = this.$uGetRect;
  12224. },
  12225. computed: {
  12226. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  12227. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  12228. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  12229. $u: function $u() {
  12230. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  12231. return uni.$u.deepMerge(uni.$u, {
  12232. props: undefined,
  12233. http: undefined,
  12234. mixin: undefined
  12235. });
  12236. },
  12237. /**
  12238. * 生成bem规则类名
  12239. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  12240. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  12241. * @param {String} name 组件名称
  12242. * @param {Array} fixed 一直会存在的类名
  12243. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  12244. * @returns {Array|string}
  12245. */
  12246. bem: function bem() {
  12247. return function (name, fixed, change) {
  12248. var _this = this;
  12249. // 类名前缀
  12250. var prefix = "u-".concat(name, "--");
  12251. var classes = {};
  12252. if (fixed) {
  12253. fixed.map(function (item) {
  12254. // 这里的类名,会一直存在
  12255. classes[prefix + _this[item]] = true;
  12256. });
  12257. }
  12258. if (change) {
  12259. change.map(function (item) {
  12260. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  12261. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  12262. });
  12263. }
  12264. return Object.keys(classes);
  12265. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  12266. };
  12267. }
  12268. },
  12269. methods: {
  12270. // 跳转某一个页面
  12271. openPage: function openPage() {
  12272. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  12273. var url = this[urlKey];
  12274. if (url) {
  12275. // 执行类似uni.navigateTo的方法
  12276. uni[this.linkType]({
  12277. url: url
  12278. });
  12279. }
  12280. },
  12281. // 查询节点信息
  12282. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  12283. // 解决办法为在组件根部再套一个没有任何作用的view元素
  12284. $uGetRect: function $uGetRect(selector, all) {
  12285. var _this2 = this;
  12286. return new Promise(function (resolve) {
  12287. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  12288. if (all && Array.isArray(rect) && rect.length) {
  12289. resolve(rect);
  12290. }
  12291. if (!all && rect) {
  12292. resolve(rect);
  12293. }
  12294. }).exec();
  12295. });
  12296. },
  12297. getParentData: function getParentData() {
  12298. var _this3 = this;
  12299. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  12300. // 避免在created中去定义parent变量
  12301. if (!this.parent) this.parent = {};
  12302. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  12303. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  12304. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  12305. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  12306. this.parent = uni.$u.$parent.call(this, parentName);
  12307. if (this.parent.children) {
  12308. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  12309. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  12310. }
  12311. if (this.parent && this.parentData) {
  12312. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  12313. Object.keys(this.parentData).map(function (key) {
  12314. _this3.parentData[key] = _this3.parent[key];
  12315. });
  12316. }
  12317. },
  12318. // 阻止事件冒泡
  12319. preventEvent: function preventEvent(e) {
  12320. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  12321. },
  12322. // 空操作
  12323. noop: function noop(e) {
  12324. this.preventEvent(e);
  12325. }
  12326. },
  12327. onReachBottom: function onReachBottom() {
  12328. uni.$emit('uOnReachBottom');
  12329. },
  12330. beforeDestroy: function beforeDestroy() {
  12331. var _this4 = this;
  12332. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  12333. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  12334. if (this.parent && uni.$u.test.array(this.parent.children)) {
  12335. // 组件销毁时,移除父组件中的children数组中对应的实例
  12336. var childrenList = this.parent.children;
  12337. childrenList.map(function (child, index) {
  12338. // 如果相等,则移除
  12339. if (child === _this4) {
  12340. childrenList.splice(index, 1);
  12341. }
  12342. });
  12343. }
  12344. }
  12345. };
  12346. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12347. /***/ }),
  12348. /* 56 */
  12349. /*!*****************************************************************************!*\
  12350. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  12351. \*****************************************************************************/
  12352. /*! no static exports found */
  12353. /***/ (function(module, exports, __webpack_require__) {
  12354. "use strict";
  12355. Object.defineProperty(exports, "__esModule", {
  12356. value: true
  12357. });
  12358. exports.default = void 0;
  12359. var _default = {
  12360. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  12361. options: {
  12362. virtualHost: true
  12363. }
  12364. };
  12365. exports.default = _default;
  12366. /***/ }),
  12367. /* 57 */
  12368. /*!**********************************************************************************!*\
  12369. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/index.js ***!
  12370. \**********************************************************************************/
  12371. /*! no static exports found */
  12372. /***/ (function(module, exports, __webpack_require__) {
  12373. "use strict";
  12374. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12375. Object.defineProperty(exports, "__esModule", {
  12376. value: true
  12377. });
  12378. exports.default = void 0;
  12379. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 58));
  12380. var _default = _Request.default;
  12381. exports.default = _default;
  12382. /***/ }),
  12383. /* 58 */
  12384. /*!*****************************************************************************************!*\
  12385. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  12386. \*****************************************************************************************/
  12387. /*! no static exports found */
  12388. /***/ (function(module, exports, __webpack_require__) {
  12389. "use strict";
  12390. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12391. Object.defineProperty(exports, "__esModule", {
  12392. value: true
  12393. });
  12394. exports.default = void 0;
  12395. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  12396. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12397. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12398. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 59));
  12399. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 67));
  12400. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 68));
  12401. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 69));
  12402. var _utils = __webpack_require__(/*! ../utils */ 62);
  12403. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 70));
  12404. 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; }
  12405. 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; }
  12406. var Request = /*#__PURE__*/function () {
  12407. /**
  12408. * @param {Object} arg - 全局配置
  12409. * @param {String} arg.baseURL - 全局根路径
  12410. * @param {Object} arg.header - 全局header
  12411. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  12412. * @param {String} arg.dataType = [json] - 全局默认的dataType
  12413. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  12414. * @param {Object} arg.custom - 全局默认的自定义参数
  12415. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  12416. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  12417. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  12418. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  12419. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  12420. */
  12421. function Request() {
  12422. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  12423. (0, _classCallCheck2.default)(this, Request);
  12424. if (!(0, _utils.isPlainObject)(arg)) {
  12425. arg = {};
  12426. console.warn('设置全局参数必须接收一个Object');
  12427. }
  12428. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  12429. this.interceptors = {
  12430. request: new _InterceptorManager.default(),
  12431. response: new _InterceptorManager.default()
  12432. };
  12433. }
  12434. /**
  12435. * @Function
  12436. * @param {Request~setConfigCallback} f - 设置全局默认配置
  12437. */
  12438. (0, _createClass2.default)(Request, [{
  12439. key: "setConfig",
  12440. value: function setConfig(f) {
  12441. this.config = f(this.config);
  12442. }
  12443. }, {
  12444. key: "middleware",
  12445. value: function middleware(config) {
  12446. config = (0, _mergeConfig.default)(this.config, config);
  12447. var chain = [_dispatchRequest.default, undefined];
  12448. var promise = Promise.resolve(config);
  12449. this.interceptors.request.forEach(function (interceptor) {
  12450. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  12451. });
  12452. this.interceptors.response.forEach(function (interceptor) {
  12453. chain.push(interceptor.fulfilled, interceptor.rejected);
  12454. });
  12455. while (chain.length) {
  12456. promise = promise.then(chain.shift(), chain.shift());
  12457. }
  12458. return promise;
  12459. }
  12460. /**
  12461. * @Function
  12462. * @param {Object} config - 请求配置项
  12463. * @prop {String} options.url - 请求路径
  12464. * @prop {Object} options.data - 请求参数
  12465. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  12466. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  12467. * @prop {Object} [options.header = config.header] - 请求header
  12468. * @prop {Object} [options.method = config.method] - 请求方法
  12469. * @returns {Promise<unknown>}
  12470. */
  12471. }, {
  12472. key: "request",
  12473. value: function request() {
  12474. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  12475. return this.middleware(config);
  12476. }
  12477. }, {
  12478. key: "get",
  12479. value: function get(url) {
  12480. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12481. return this.middleware(_objectSpread({
  12482. url: url,
  12483. method: 'GET'
  12484. }, options));
  12485. }
  12486. }, {
  12487. key: "post",
  12488. value: function post(url, data) {
  12489. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12490. return this.middleware(_objectSpread({
  12491. url: url,
  12492. data: data,
  12493. method: 'POST'
  12494. }, options));
  12495. }
  12496. }, {
  12497. key: "put",
  12498. value: function put(url, data) {
  12499. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12500. return this.middleware(_objectSpread({
  12501. url: url,
  12502. data: data,
  12503. method: 'PUT'
  12504. }, options));
  12505. }
  12506. }, {
  12507. key: "delete",
  12508. value: function _delete(url, data) {
  12509. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12510. return this.middleware(_objectSpread({
  12511. url: url,
  12512. data: data,
  12513. method: 'DELETE'
  12514. }, options));
  12515. }
  12516. }, {
  12517. key: "connect",
  12518. value: function connect(url, data) {
  12519. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12520. return this.middleware(_objectSpread({
  12521. url: url,
  12522. data: data,
  12523. method: 'CONNECT'
  12524. }, options));
  12525. }
  12526. }, {
  12527. key: "head",
  12528. value: function head(url, data) {
  12529. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12530. return this.middleware(_objectSpread({
  12531. url: url,
  12532. data: data,
  12533. method: 'HEAD'
  12534. }, options));
  12535. }
  12536. }, {
  12537. key: "options",
  12538. value: function options(url, data) {
  12539. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12540. return this.middleware(_objectSpread({
  12541. url: url,
  12542. data: data,
  12543. method: 'OPTIONS'
  12544. }, _options));
  12545. }
  12546. }, {
  12547. key: "trace",
  12548. value: function trace(url, data) {
  12549. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12550. return this.middleware(_objectSpread({
  12551. url: url,
  12552. data: data,
  12553. method: 'TRACE'
  12554. }, options));
  12555. }
  12556. }, {
  12557. key: "upload",
  12558. value: function upload(url) {
  12559. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12560. config.url = url;
  12561. config.method = 'UPLOAD';
  12562. return this.middleware(config);
  12563. }
  12564. }, {
  12565. key: "download",
  12566. value: function download(url) {
  12567. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12568. config.url = url;
  12569. config.method = 'DOWNLOAD';
  12570. return this.middleware(config);
  12571. }
  12572. }]);
  12573. return Request;
  12574. }();
  12575. /**
  12576. * setConfig回调
  12577. * @return {Object} - 返回操作后的config
  12578. * @callback Request~setConfigCallback
  12579. * @param {Object} config - 全局默认config
  12580. */
  12581. exports.default = Request;
  12582. /***/ }),
  12583. /* 59 */
  12584. /*!*************************************************************************************************!*\
  12585. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  12586. \*************************************************************************************************/
  12587. /*! no static exports found */
  12588. /***/ (function(module, exports, __webpack_require__) {
  12589. "use strict";
  12590. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12591. Object.defineProperty(exports, "__esModule", {
  12592. value: true
  12593. });
  12594. exports.default = void 0;
  12595. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 60));
  12596. var _default = function _default(config) {
  12597. return (0, _index.default)(config);
  12598. };
  12599. exports.default = _default;
  12600. /***/ }),
  12601. /* 60 */
  12602. /*!*******************************************************************************************!*\
  12603. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  12604. \*******************************************************************************************/
  12605. /*! no static exports found */
  12606. /***/ (function(module, exports, __webpack_require__) {
  12607. "use strict";
  12608. /* WEBPACK VAR INJECTION */(function(uni) {
  12609. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12610. Object.defineProperty(exports, "__esModule", {
  12611. value: true
  12612. });
  12613. exports.default = void 0;
  12614. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  12615. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 61));
  12616. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 63));
  12617. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 66));
  12618. var _utils = __webpack_require__(/*! ../utils */ 62);
  12619. 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; }
  12620. 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; }
  12621. /**
  12622. * 返回可选值存在的配置
  12623. * @param {Array} keys - 可选值数组
  12624. * @param {Object} config2 - 配置
  12625. * @return {{}} - 存在的配置项
  12626. */
  12627. var mergeKeys = function mergeKeys(keys, config2) {
  12628. var config = {};
  12629. keys.forEach(function (prop) {
  12630. if (!(0, _utils.isUndefined)(config2[prop])) {
  12631. config[prop] = config2[prop];
  12632. }
  12633. });
  12634. return config;
  12635. };
  12636. var _default = function _default(config) {
  12637. return new Promise(function (resolve, reject) {
  12638. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  12639. var _config = {
  12640. url: fullPath,
  12641. header: config.header,
  12642. complete: function complete(response) {
  12643. config.fullPath = fullPath;
  12644. response.config = config;
  12645. try {
  12646. // 对可能字符串不是json 的情况容错
  12647. if (typeof response.data === 'string') {
  12648. response.data = JSON.parse(response.data);
  12649. }
  12650. // eslint-disable-next-line no-empty
  12651. } catch (e) {}
  12652. (0, _settle.default)(resolve, reject, response);
  12653. }
  12654. };
  12655. var requestTask;
  12656. if (config.method === 'UPLOAD') {
  12657. delete _config.header['content-type'];
  12658. delete _config.header['Content-Type'];
  12659. var otherConfig = {
  12660. filePath: config.filePath,
  12661. name: config.name
  12662. };
  12663. var optionalKeys = ['formData'];
  12664. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  12665. } else if (config.method === 'DOWNLOAD') {
  12666. requestTask = uni.downloadFile(_config);
  12667. } else {
  12668. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  12669. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  12670. }
  12671. if (config.getTask) {
  12672. config.getTask(requestTask, config);
  12673. }
  12674. });
  12675. };
  12676. exports.default = _default;
  12677. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12678. /***/ }),
  12679. /* 61 */
  12680. /*!*********************************************************************************************!*\
  12681. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  12682. \*********************************************************************************************/
  12683. /*! no static exports found */
  12684. /***/ (function(module, exports, __webpack_require__) {
  12685. "use strict";
  12686. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  12687. Object.defineProperty(exports, "__esModule", {
  12688. value: true
  12689. });
  12690. exports.default = buildURL;
  12691. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 62));
  12692. 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); }
  12693. 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; }
  12694. function encode(val) {
  12695. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  12696. }
  12697. /**
  12698. * Build a URL by appending params to the end
  12699. *
  12700. * @param {string} url The base of the url (e.g., http://www.google.com)
  12701. * @param {object} [params] The params to be appended
  12702. * @returns {string} The formatted url
  12703. */
  12704. function buildURL(url, params) {
  12705. /* eslint no-param-reassign:0 */
  12706. if (!params) {
  12707. return url;
  12708. }
  12709. var serializedParams;
  12710. if (utils.isURLSearchParams(params)) {
  12711. serializedParams = params.toString();
  12712. } else {
  12713. var parts = [];
  12714. utils.forEach(params, function (val, key) {
  12715. if (val === null || typeof val === 'undefined') {
  12716. return;
  12717. }
  12718. if (utils.isArray(val)) {
  12719. key = "".concat(key, "[]");
  12720. } else {
  12721. val = [val];
  12722. }
  12723. utils.forEach(val, function (v) {
  12724. if (utils.isDate(v)) {
  12725. v = v.toISOString();
  12726. } else if (utils.isObject(v)) {
  12727. v = JSON.stringify(v);
  12728. }
  12729. parts.push("".concat(encode(key), "=").concat(encode(v)));
  12730. });
  12731. });
  12732. serializedParams = parts.join('&');
  12733. }
  12734. if (serializedParams) {
  12735. var hashmarkIndex = url.indexOf('#');
  12736. if (hashmarkIndex !== -1) {
  12737. url = url.slice(0, hashmarkIndex);
  12738. }
  12739. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  12740. }
  12741. return url;
  12742. }
  12743. /***/ }),
  12744. /* 62 */
  12745. /*!**********************************************************************************!*\
  12746. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  12747. \**********************************************************************************/
  12748. /*! no static exports found */
  12749. /***/ (function(module, exports, __webpack_require__) {
  12750. "use strict";
  12751. // utils is a library of generic helper functions non-specific to axios
  12752. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12753. Object.defineProperty(exports, "__esModule", {
  12754. value: true
  12755. });
  12756. exports.deepMerge = deepMerge;
  12757. exports.forEach = forEach;
  12758. exports.isArray = isArray;
  12759. exports.isBoolean = isBoolean;
  12760. exports.isDate = isDate;
  12761. exports.isObject = isObject;
  12762. exports.isPlainObject = isPlainObject;
  12763. exports.isURLSearchParams = isURLSearchParams;
  12764. exports.isUndefined = isUndefined;
  12765. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12766. var toString = Object.prototype.toString;
  12767. /**
  12768. * Determine if a value is an Array
  12769. *
  12770. * @param {Object} val The value to test
  12771. * @returns {boolean} True if value is an Array, otherwise false
  12772. */
  12773. function isArray(val) {
  12774. return toString.call(val) === '[object Array]';
  12775. }
  12776. /**
  12777. * Determine if a value is an Object
  12778. *
  12779. * @param {Object} val The value to test
  12780. * @returns {boolean} True if value is an Object, otherwise false
  12781. */
  12782. function isObject(val) {
  12783. return val !== null && (0, _typeof2.default)(val) === 'object';
  12784. }
  12785. /**
  12786. * Determine if a value is a Date
  12787. *
  12788. * @param {Object} val The value to test
  12789. * @returns {boolean} True if value is a Date, otherwise false
  12790. */
  12791. function isDate(val) {
  12792. return toString.call(val) === '[object Date]';
  12793. }
  12794. /**
  12795. * Determine if a value is a URLSearchParams object
  12796. *
  12797. * @param {Object} val The value to test
  12798. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  12799. */
  12800. function isURLSearchParams(val) {
  12801. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  12802. }
  12803. /**
  12804. * Iterate over an Array or an Object invoking a function for each item.
  12805. *
  12806. * If `obj` is an Array callback will be called passing
  12807. * the value, index, and complete array for each item.
  12808. *
  12809. * If 'obj' is an Object callback will be called passing
  12810. * the value, key, and complete object for each property.
  12811. *
  12812. * @param {Object|Array} obj The object to iterate
  12813. * @param {Function} fn The callback to invoke for each item
  12814. */
  12815. function forEach(obj, fn) {
  12816. // Don't bother if no value provided
  12817. if (obj === null || typeof obj === 'undefined') {
  12818. return;
  12819. }
  12820. // Force an array if not already something iterable
  12821. if ((0, _typeof2.default)(obj) !== 'object') {
  12822. /* eslint no-param-reassign:0 */
  12823. obj = [obj];
  12824. }
  12825. if (isArray(obj)) {
  12826. // Iterate over array values
  12827. for (var i = 0, l = obj.length; i < l; i++) {
  12828. fn.call(null, obj[i], i, obj);
  12829. }
  12830. } else {
  12831. // Iterate over object keys
  12832. for (var key in obj) {
  12833. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  12834. fn.call(null, obj[key], key, obj);
  12835. }
  12836. }
  12837. }
  12838. }
  12839. /**
  12840. * 是否为boolean 值
  12841. * @param val
  12842. * @returns {boolean}
  12843. */
  12844. function isBoolean(val) {
  12845. return typeof val === 'boolean';
  12846. }
  12847. /**
  12848. * 是否为真正的对象{} new Object
  12849. * @param {any} obj - 检测的对象
  12850. * @returns {boolean}
  12851. */
  12852. function isPlainObject(obj) {
  12853. return Object.prototype.toString.call(obj) === '[object Object]';
  12854. }
  12855. /**
  12856. * Function equal to merge with the difference being that no reference
  12857. * to original objects is kept.
  12858. *
  12859. * @see merge
  12860. * @param {Object} obj1 Object to merge
  12861. * @returns {Object} Result of all merge properties
  12862. */
  12863. function deepMerge( /* obj1, obj2, obj3, ... */
  12864. ) {
  12865. var result = {};
  12866. function assignValue(val, key) {
  12867. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  12868. result[key] = deepMerge(result[key], val);
  12869. } else if ((0, _typeof2.default)(val) === 'object') {
  12870. result[key] = deepMerge({}, val);
  12871. } else {
  12872. result[key] = val;
  12873. }
  12874. }
  12875. for (var i = 0, l = arguments.length; i < l; i++) {
  12876. forEach(arguments[i], assignValue);
  12877. }
  12878. return result;
  12879. }
  12880. function isUndefined(val) {
  12881. return typeof val === 'undefined';
  12882. }
  12883. /***/ }),
  12884. /* 63 */
  12885. /*!***********************************************************************************************!*\
  12886. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  12887. \***********************************************************************************************/
  12888. /*! no static exports found */
  12889. /***/ (function(module, exports, __webpack_require__) {
  12890. "use strict";
  12891. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12892. Object.defineProperty(exports, "__esModule", {
  12893. value: true
  12894. });
  12895. exports.default = buildFullPath;
  12896. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 64));
  12897. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 65));
  12898. /**
  12899. * Creates a new URL by combining the baseURL with the requestedURL,
  12900. * only when the requestedURL is not already an absolute URL.
  12901. * If the requestURL is absolute, this function returns the requestedURL untouched.
  12902. *
  12903. * @param {string} baseURL The base URL
  12904. * @param {string} requestedURL Absolute or relative URL to combine
  12905. * @returns {string} The combined full path
  12906. */
  12907. function buildFullPath(baseURL, requestedURL) {
  12908. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  12909. return (0, _combineURLs.default)(baseURL, requestedURL);
  12910. }
  12911. return requestedURL;
  12912. }
  12913. /***/ }),
  12914. /* 64 */
  12915. /*!**************************************************************************************************!*\
  12916. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  12917. \**************************************************************************************************/
  12918. /*! no static exports found */
  12919. /***/ (function(module, exports, __webpack_require__) {
  12920. "use strict";
  12921. /**
  12922. * Determines whether the specified URL is absolute
  12923. *
  12924. * @param {string} url The URL to test
  12925. * @returns {boolean} True if the specified URL is absolute, otherwise false
  12926. */
  12927. Object.defineProperty(exports, "__esModule", {
  12928. value: true
  12929. });
  12930. exports.default = isAbsoluteURL;
  12931. function isAbsoluteURL(url) {
  12932. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  12933. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  12934. // by any combination of letters, digits, plus, period, or hyphen.
  12935. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  12936. }
  12937. /***/ }),
  12938. /* 65 */
  12939. /*!************************************************************************************************!*\
  12940. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  12941. \************************************************************************************************/
  12942. /*! no static exports found */
  12943. /***/ (function(module, exports, __webpack_require__) {
  12944. "use strict";
  12945. /**
  12946. * Creates a new URL by combining the specified URLs
  12947. *
  12948. * @param {string} baseURL The base URL
  12949. * @param {string} relativeURL The relative URL
  12950. * @returns {string} The combined URL
  12951. */
  12952. Object.defineProperty(exports, "__esModule", {
  12953. value: true
  12954. });
  12955. exports.default = combineURLs;
  12956. function combineURLs(baseURL, relativeURL) {
  12957. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  12958. }
  12959. /***/ }),
  12960. /* 66 */
  12961. /*!****************************************************************************************!*\
  12962. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  12963. \****************************************************************************************/
  12964. /*! no static exports found */
  12965. /***/ (function(module, exports, __webpack_require__) {
  12966. "use strict";
  12967. Object.defineProperty(exports, "__esModule", {
  12968. value: true
  12969. });
  12970. exports.default = settle;
  12971. /**
  12972. * Resolve or reject a Promise based on response status.
  12973. *
  12974. * @param {Function} resolve A function that resolves the promise.
  12975. * @param {Function} reject A function that rejects the promise.
  12976. * @param {object} response The response.
  12977. */
  12978. function settle(resolve, reject, response) {
  12979. var validateStatus = response.config.validateStatus;
  12980. var status = response.statusCode;
  12981. if (status && (!validateStatus || validateStatus(status))) {
  12982. resolve(response);
  12983. } else {
  12984. reject(response);
  12985. }
  12986. }
  12987. /***/ }),
  12988. /* 67 */
  12989. /*!****************************************************************************************************!*\
  12990. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  12991. \****************************************************************************************************/
  12992. /*! no static exports found */
  12993. /***/ (function(module, exports, __webpack_require__) {
  12994. "use strict";
  12995. Object.defineProperty(exports, "__esModule", {
  12996. value: true
  12997. });
  12998. exports.default = void 0;
  12999. function InterceptorManager() {
  13000. this.handlers = [];
  13001. }
  13002. /**
  13003. * Add a new interceptor to the stack
  13004. *
  13005. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  13006. * @param {Function} rejected The function to handle `reject` for a `Promise`
  13007. *
  13008. * @return {Number} An ID used to remove interceptor later
  13009. */
  13010. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  13011. this.handlers.push({
  13012. fulfilled: fulfilled,
  13013. rejected: rejected
  13014. });
  13015. return this.handlers.length - 1;
  13016. };
  13017. /**
  13018. * Remove an interceptor from the stack
  13019. *
  13020. * @param {Number} id The ID that was returned by `use`
  13021. */
  13022. InterceptorManager.prototype.eject = function eject(id) {
  13023. if (this.handlers[id]) {
  13024. this.handlers[id] = null;
  13025. }
  13026. };
  13027. /**
  13028. * Iterate over all the registered interceptors
  13029. *
  13030. * This method is particularly useful for skipping over any
  13031. * interceptors that may have become `null` calling `eject`.
  13032. *
  13033. * @param {Function} fn The function to call for each interceptor
  13034. */
  13035. InterceptorManager.prototype.forEach = function forEach(fn) {
  13036. this.handlers.forEach(function (h) {
  13037. if (h !== null) {
  13038. fn(h);
  13039. }
  13040. });
  13041. };
  13042. var _default = InterceptorManager;
  13043. exports.default = _default;
  13044. /***/ }),
  13045. /* 68 */
  13046. /*!*********************************************************************************************!*\
  13047. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  13048. \*********************************************************************************************/
  13049. /*! no static exports found */
  13050. /***/ (function(module, exports, __webpack_require__) {
  13051. "use strict";
  13052. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13053. Object.defineProperty(exports, "__esModule", {
  13054. value: true
  13055. });
  13056. exports.default = void 0;
  13057. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  13058. var _utils = __webpack_require__(/*! ../utils */ 62);
  13059. 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; }
  13060. 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; }
  13061. /**
  13062. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  13063. * @param {Array} keys - 配置项
  13064. * @param {Object} globalsConfig - 当前的全局配置
  13065. * @param {Object} config2 - 局部配置
  13066. * @return {{}}
  13067. */
  13068. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  13069. var config = {};
  13070. keys.forEach(function (prop) {
  13071. if (!(0, _utils.isUndefined)(config2[prop])) {
  13072. config[prop] = config2[prop];
  13073. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  13074. config[prop] = globalsConfig[prop];
  13075. }
  13076. });
  13077. return config;
  13078. };
  13079. /**
  13080. *
  13081. * @param globalsConfig - 当前实例的全局配置
  13082. * @param config2 - 当前的局部配置
  13083. * @return - 合并后的配置
  13084. */
  13085. var _default = function _default(globalsConfig) {
  13086. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13087. var method = config2.method || globalsConfig.method || 'GET';
  13088. var config = {
  13089. baseURL: globalsConfig.baseURL || '',
  13090. method: method,
  13091. url: config2.url || '',
  13092. params: config2.params || {},
  13093. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  13094. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  13095. };
  13096. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  13097. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  13098. // eslint-disable-next-line no-empty
  13099. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  13100. delete config.header['content-type'];
  13101. delete config.header['Content-Type'];
  13102. var uploadKeys = ['filePath', 'name', 'formData'];
  13103. uploadKeys.forEach(function (prop) {
  13104. if (!(0, _utils.isUndefined)(config2[prop])) {
  13105. config[prop] = config2[prop];
  13106. }
  13107. });
  13108. } else {
  13109. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  13110. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  13111. }
  13112. return config;
  13113. };
  13114. exports.default = _default;
  13115. /***/ }),
  13116. /* 69 */
  13117. /*!******************************************************************************************!*\
  13118. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  13119. \******************************************************************************************/
  13120. /*! no static exports found */
  13121. /***/ (function(module, exports, __webpack_require__) {
  13122. "use strict";
  13123. Object.defineProperty(exports, "__esModule", {
  13124. value: true
  13125. });
  13126. exports.default = void 0;
  13127. /**
  13128. * 默认的全局配置
  13129. */
  13130. var _default = {
  13131. baseURL: '',
  13132. header: {},
  13133. method: 'GET',
  13134. dataType: 'json',
  13135. responseType: 'text',
  13136. custom: {},
  13137. timeout: 60000,
  13138. validateStatus: function validateStatus(status) {
  13139. return status >= 200 && status < 300;
  13140. }
  13141. };
  13142. exports.default = _default;
  13143. /***/ }),
  13144. /* 70 */
  13145. /*!****************************************************************************************!*\
  13146. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  13147. \****************************************************************************************/
  13148. /*! no static exports found */
  13149. /***/ (function(module, exports, __webpack_require__) {
  13150. "use strict";
  13151. /* WEBPACK VAR INJECTION */(function(Buffer) {
  13152. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13153. Object.defineProperty(exports, "__esModule", {
  13154. value: true
  13155. });
  13156. exports.default = void 0;
  13157. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13158. /* eslint-disable */
  13159. var clone = function () {
  13160. 'use strict';
  13161. function _instanceof(obj, type) {
  13162. return type != null && obj instanceof type;
  13163. }
  13164. var nativeMap;
  13165. try {
  13166. nativeMap = Map;
  13167. } catch (_) {
  13168. // maybe a reference error because no `Map`. Give it a dummy value that no
  13169. // value will ever be an instanceof.
  13170. nativeMap = function nativeMap() {};
  13171. }
  13172. var nativeSet;
  13173. try {
  13174. nativeSet = Set;
  13175. } catch (_) {
  13176. nativeSet = function nativeSet() {};
  13177. }
  13178. var nativePromise;
  13179. try {
  13180. nativePromise = Promise;
  13181. } catch (_) {
  13182. nativePromise = function nativePromise() {};
  13183. }
  13184. /**
  13185. * Clones (copies) an Object using deep copying.
  13186. *
  13187. * This function supports circular references by default, but if you are certain
  13188. * there are no circular references in your object, you can save some CPU time
  13189. * by calling clone(obj, false).
  13190. *
  13191. * Caution: if `circular` is false and `parent` contains circular references,
  13192. * your program may enter an infinite loop and crash.
  13193. *
  13194. * @param `parent` - the object to be cloned
  13195. * @param `circular` - set to true if the object to be cloned may contain
  13196. * circular references. (optional - true by default)
  13197. * @param `depth` - set to a number if the object is only to be cloned to
  13198. * a particular depth. (optional - defaults to Infinity)
  13199. * @param `prototype` - sets the prototype to be used when cloning an object.
  13200. * (optional - defaults to parent prototype).
  13201. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  13202. * should be cloned as well. Non-enumerable properties on the prototype
  13203. * chain will be ignored. (optional - false by default)
  13204. */
  13205. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  13206. if ((0, _typeof2.default)(circular) === 'object') {
  13207. depth = circular.depth;
  13208. prototype = circular.prototype;
  13209. includeNonEnumerable = circular.includeNonEnumerable;
  13210. circular = circular.circular;
  13211. }
  13212. // maintain two arrays for circular references, where corresponding parents
  13213. // and children have the same index
  13214. var allParents = [];
  13215. var allChildren = [];
  13216. var useBuffer = typeof Buffer != 'undefined';
  13217. if (typeof circular == 'undefined') circular = true;
  13218. if (typeof depth == 'undefined') depth = Infinity;
  13219. // recurse this function so we don't reset allParents and allChildren
  13220. function _clone(parent, depth) {
  13221. // cloning null always returns null
  13222. if (parent === null) return null;
  13223. if (depth === 0) return parent;
  13224. var child;
  13225. var proto;
  13226. if ((0, _typeof2.default)(parent) != 'object') {
  13227. return parent;
  13228. }
  13229. if (_instanceof(parent, nativeMap)) {
  13230. child = new nativeMap();
  13231. } else if (_instanceof(parent, nativeSet)) {
  13232. child = new nativeSet();
  13233. } else if (_instanceof(parent, nativePromise)) {
  13234. child = new nativePromise(function (resolve, reject) {
  13235. parent.then(function (value) {
  13236. resolve(_clone(value, depth - 1));
  13237. }, function (err) {
  13238. reject(_clone(err, depth - 1));
  13239. });
  13240. });
  13241. } else if (clone.__isArray(parent)) {
  13242. child = [];
  13243. } else if (clone.__isRegExp(parent)) {
  13244. child = new RegExp(parent.source, __getRegExpFlags(parent));
  13245. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  13246. } else if (clone.__isDate(parent)) {
  13247. child = new Date(parent.getTime());
  13248. } else if (useBuffer && Buffer.isBuffer(parent)) {
  13249. if (Buffer.from) {
  13250. // Node.js >= 5.10.0
  13251. child = Buffer.from(parent);
  13252. } else {
  13253. // Older Node.js versions
  13254. child = new Buffer(parent.length);
  13255. parent.copy(child);
  13256. }
  13257. return child;
  13258. } else if (_instanceof(parent, Error)) {
  13259. child = Object.create(parent);
  13260. } else {
  13261. if (typeof prototype == 'undefined') {
  13262. proto = Object.getPrototypeOf(parent);
  13263. child = Object.create(proto);
  13264. } else {
  13265. child = Object.create(prototype);
  13266. proto = prototype;
  13267. }
  13268. }
  13269. if (circular) {
  13270. var index = allParents.indexOf(parent);
  13271. if (index != -1) {
  13272. return allChildren[index];
  13273. }
  13274. allParents.push(parent);
  13275. allChildren.push(child);
  13276. }
  13277. if (_instanceof(parent, nativeMap)) {
  13278. parent.forEach(function (value, key) {
  13279. var keyChild = _clone(key, depth - 1);
  13280. var valueChild = _clone(value, depth - 1);
  13281. child.set(keyChild, valueChild);
  13282. });
  13283. }
  13284. if (_instanceof(parent, nativeSet)) {
  13285. parent.forEach(function (value) {
  13286. var entryChild = _clone(value, depth - 1);
  13287. child.add(entryChild);
  13288. });
  13289. }
  13290. for (var i in parent) {
  13291. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  13292. if (attrs) {
  13293. child[i] = _clone(parent[i], depth - 1);
  13294. }
  13295. try {
  13296. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  13297. if (objProperty.set === 'undefined') {
  13298. // no setter defined. Skip cloning this property
  13299. continue;
  13300. }
  13301. child[i] = _clone(parent[i], depth - 1);
  13302. } catch (e) {
  13303. if (e instanceof TypeError) {
  13304. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  13305. // we can't do anything about this, other than inform the user that this property cannot be set.
  13306. continue;
  13307. } else if (e instanceof ReferenceError) {
  13308. //this may happen in non strict mode
  13309. continue;
  13310. }
  13311. }
  13312. }
  13313. if (Object.getOwnPropertySymbols) {
  13314. var symbols = Object.getOwnPropertySymbols(parent);
  13315. for (var i = 0; i < symbols.length; i++) {
  13316. // Don't need to worry about cloning a symbol because it is a primitive,
  13317. // like a number or string.
  13318. var symbol = symbols[i];
  13319. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  13320. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  13321. continue;
  13322. }
  13323. child[symbol] = _clone(parent[symbol], depth - 1);
  13324. Object.defineProperty(child, symbol, descriptor);
  13325. }
  13326. }
  13327. if (includeNonEnumerable) {
  13328. var allPropertyNames = Object.getOwnPropertyNames(parent);
  13329. for (var i = 0; i < allPropertyNames.length; i++) {
  13330. var propertyName = allPropertyNames[i];
  13331. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  13332. if (descriptor && descriptor.enumerable) {
  13333. continue;
  13334. }
  13335. child[propertyName] = _clone(parent[propertyName], depth - 1);
  13336. Object.defineProperty(child, propertyName, descriptor);
  13337. }
  13338. }
  13339. return child;
  13340. }
  13341. return _clone(parent, depth);
  13342. }
  13343. /**
  13344. * Simple flat clone using prototype, accepts only objects, usefull for property
  13345. * override on FLAT configuration object (no nested props).
  13346. *
  13347. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  13348. * works.
  13349. */
  13350. clone.clonePrototype = function clonePrototype(parent) {
  13351. if (parent === null) return null;
  13352. var c = function c() {};
  13353. c.prototype = parent;
  13354. return new c();
  13355. };
  13356. // private utility functions
  13357. function __objToStr(o) {
  13358. return Object.prototype.toString.call(o);
  13359. }
  13360. clone.__objToStr = __objToStr;
  13361. function __isDate(o) {
  13362. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  13363. }
  13364. clone.__isDate = __isDate;
  13365. function __isArray(o) {
  13366. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  13367. }
  13368. clone.__isArray = __isArray;
  13369. function __isRegExp(o) {
  13370. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  13371. }
  13372. clone.__isRegExp = __isRegExp;
  13373. function __getRegExpFlags(re) {
  13374. var flags = '';
  13375. if (re.global) flags += 'g';
  13376. if (re.ignoreCase) flags += 'i';
  13377. if (re.multiline) flags += 'm';
  13378. return flags;
  13379. }
  13380. clone.__getRegExpFlags = __getRegExpFlags;
  13381. return clone;
  13382. }();
  13383. var _default = clone;
  13384. exports.default = _default;
  13385. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../HBuilderX.3.4.18.20220630/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 71).Buffer))
  13386. /***/ }),
  13387. /* 71 */
  13388. /*!**************************************!*\
  13389. !*** ./node_modules/buffer/index.js ***!
  13390. \**************************************/
  13391. /*! no static exports found */
  13392. /***/ (function(module, exports, __webpack_require__) {
  13393. "use strict";
  13394. /* WEBPACK VAR INJECTION */(function(global) {/*!
  13395. * The buffer module from node.js, for the browser.
  13396. *
  13397. * @author Feross Aboukhadijeh <http://feross.org>
  13398. * @license MIT
  13399. */
  13400. /* eslint-disable no-proto */
  13401. var base64 = __webpack_require__(/*! base64-js */ 72)
  13402. var ieee754 = __webpack_require__(/*! ieee754 */ 73)
  13403. var isArray = __webpack_require__(/*! isarray */ 74)
  13404. exports.Buffer = Buffer
  13405. exports.SlowBuffer = SlowBuffer
  13406. exports.INSPECT_MAX_BYTES = 50
  13407. /**
  13408. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  13409. * === true Use Uint8Array implementation (fastest)
  13410. * === false Use Object implementation (most compatible, even IE6)
  13411. *
  13412. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  13413. * Opera 11.6+, iOS 4.2+.
  13414. *
  13415. * Due to various browser bugs, sometimes the Object implementation will be used even
  13416. * when the browser supports typed arrays.
  13417. *
  13418. * Note:
  13419. *
  13420. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  13421. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  13422. *
  13423. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  13424. *
  13425. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  13426. * incorrect length in some situations.
  13427. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  13428. * get the Object implementation, which is slower but behaves correctly.
  13429. */
  13430. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  13431. ? global.TYPED_ARRAY_SUPPORT
  13432. : typedArraySupport()
  13433. /*
  13434. * Export kMaxLength after typed array support is determined.
  13435. */
  13436. exports.kMaxLength = kMaxLength()
  13437. function typedArraySupport () {
  13438. try {
  13439. var arr = new Uint8Array(1)
  13440. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  13441. return arr.foo() === 42 && // typed array instances can be augmented
  13442. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  13443. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  13444. } catch (e) {
  13445. return false
  13446. }
  13447. }
  13448. function kMaxLength () {
  13449. return Buffer.TYPED_ARRAY_SUPPORT
  13450. ? 0x7fffffff
  13451. : 0x3fffffff
  13452. }
  13453. function createBuffer (that, length) {
  13454. if (kMaxLength() < length) {
  13455. throw new RangeError('Invalid typed array length')
  13456. }
  13457. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13458. // Return an augmented `Uint8Array` instance, for best performance
  13459. that = new Uint8Array(length)
  13460. that.__proto__ = Buffer.prototype
  13461. } else {
  13462. // Fallback: Return an object instance of the Buffer class
  13463. if (that === null) {
  13464. that = new Buffer(length)
  13465. }
  13466. that.length = length
  13467. }
  13468. return that
  13469. }
  13470. /**
  13471. * The Buffer constructor returns instances of `Uint8Array` that have their
  13472. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  13473. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  13474. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  13475. * returns a single octet.
  13476. *
  13477. * The `Uint8Array` prototype remains unmodified.
  13478. */
  13479. function Buffer (arg, encodingOrOffset, length) {
  13480. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  13481. return new Buffer(arg, encodingOrOffset, length)
  13482. }
  13483. // Common case.
  13484. if (typeof arg === 'number') {
  13485. if (typeof encodingOrOffset === 'string') {
  13486. throw new Error(
  13487. 'If encoding is specified then the first argument must be a string'
  13488. )
  13489. }
  13490. return allocUnsafe(this, arg)
  13491. }
  13492. return from(this, arg, encodingOrOffset, length)
  13493. }
  13494. Buffer.poolSize = 8192 // not used by this implementation
  13495. // TODO: Legacy, not needed anymore. Remove in next major version.
  13496. Buffer._augment = function (arr) {
  13497. arr.__proto__ = Buffer.prototype
  13498. return arr
  13499. }
  13500. function from (that, value, encodingOrOffset, length) {
  13501. if (typeof value === 'number') {
  13502. throw new TypeError('"value" argument must not be a number')
  13503. }
  13504. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  13505. return fromArrayBuffer(that, value, encodingOrOffset, length)
  13506. }
  13507. if (typeof value === 'string') {
  13508. return fromString(that, value, encodingOrOffset)
  13509. }
  13510. return fromObject(that, value)
  13511. }
  13512. /**
  13513. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  13514. * if value is a number.
  13515. * Buffer.from(str[, encoding])
  13516. * Buffer.from(array)
  13517. * Buffer.from(buffer)
  13518. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  13519. **/
  13520. Buffer.from = function (value, encodingOrOffset, length) {
  13521. return from(null, value, encodingOrOffset, length)
  13522. }
  13523. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13524. Buffer.prototype.__proto__ = Uint8Array.prototype
  13525. Buffer.__proto__ = Uint8Array
  13526. if (typeof Symbol !== 'undefined' && Symbol.species &&
  13527. Buffer[Symbol.species] === Buffer) {
  13528. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  13529. Object.defineProperty(Buffer, Symbol.species, {
  13530. value: null,
  13531. configurable: true
  13532. })
  13533. }
  13534. }
  13535. function assertSize (size) {
  13536. if (typeof size !== 'number') {
  13537. throw new TypeError('"size" argument must be a number')
  13538. } else if (size < 0) {
  13539. throw new RangeError('"size" argument must not be negative')
  13540. }
  13541. }
  13542. function alloc (that, size, fill, encoding) {
  13543. assertSize(size)
  13544. if (size <= 0) {
  13545. return createBuffer(that, size)
  13546. }
  13547. if (fill !== undefined) {
  13548. // Only pay attention to encoding if it's a string. This
  13549. // prevents accidentally sending in a number that would
  13550. // be interpretted as a start offset.
  13551. return typeof encoding === 'string'
  13552. ? createBuffer(that, size).fill(fill, encoding)
  13553. : createBuffer(that, size).fill(fill)
  13554. }
  13555. return createBuffer(that, size)
  13556. }
  13557. /**
  13558. * Creates a new filled Buffer instance.
  13559. * alloc(size[, fill[, encoding]])
  13560. **/
  13561. Buffer.alloc = function (size, fill, encoding) {
  13562. return alloc(null, size, fill, encoding)
  13563. }
  13564. function allocUnsafe (that, size) {
  13565. assertSize(size)
  13566. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  13567. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  13568. for (var i = 0; i < size; ++i) {
  13569. that[i] = 0
  13570. }
  13571. }
  13572. return that
  13573. }
  13574. /**
  13575. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  13576. * */
  13577. Buffer.allocUnsafe = function (size) {
  13578. return allocUnsafe(null, size)
  13579. }
  13580. /**
  13581. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  13582. */
  13583. Buffer.allocUnsafeSlow = function (size) {
  13584. return allocUnsafe(null, size)
  13585. }
  13586. function fromString (that, string, encoding) {
  13587. if (typeof encoding !== 'string' || encoding === '') {
  13588. encoding = 'utf8'
  13589. }
  13590. if (!Buffer.isEncoding(encoding)) {
  13591. throw new TypeError('"encoding" must be a valid string encoding')
  13592. }
  13593. var length = byteLength(string, encoding) | 0
  13594. that = createBuffer(that, length)
  13595. var actual = that.write(string, encoding)
  13596. if (actual !== length) {
  13597. // Writing a hex string, for example, that contains invalid characters will
  13598. // cause everything after the first invalid character to be ignored. (e.g.
  13599. // 'abxxcd' will be treated as 'ab')
  13600. that = that.slice(0, actual)
  13601. }
  13602. return that
  13603. }
  13604. function fromArrayLike (that, array) {
  13605. var length = array.length < 0 ? 0 : checked(array.length) | 0
  13606. that = createBuffer(that, length)
  13607. for (var i = 0; i < length; i += 1) {
  13608. that[i] = array[i] & 255
  13609. }
  13610. return that
  13611. }
  13612. function fromArrayBuffer (that, array, byteOffset, length) {
  13613. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  13614. if (byteOffset < 0 || array.byteLength < byteOffset) {
  13615. throw new RangeError('\'offset\' is out of bounds')
  13616. }
  13617. if (array.byteLength < byteOffset + (length || 0)) {
  13618. throw new RangeError('\'length\' is out of bounds')
  13619. }
  13620. if (byteOffset === undefined && length === undefined) {
  13621. array = new Uint8Array(array)
  13622. } else if (length === undefined) {
  13623. array = new Uint8Array(array, byteOffset)
  13624. } else {
  13625. array = new Uint8Array(array, byteOffset, length)
  13626. }
  13627. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13628. // Return an augmented `Uint8Array` instance, for best performance
  13629. that = array
  13630. that.__proto__ = Buffer.prototype
  13631. } else {
  13632. // Fallback: Return an object instance of the Buffer class
  13633. that = fromArrayLike(that, array)
  13634. }
  13635. return that
  13636. }
  13637. function fromObject (that, obj) {
  13638. if (Buffer.isBuffer(obj)) {
  13639. var len = checked(obj.length) | 0
  13640. that = createBuffer(that, len)
  13641. if (that.length === 0) {
  13642. return that
  13643. }
  13644. obj.copy(that, 0, 0, len)
  13645. return that
  13646. }
  13647. if (obj) {
  13648. if ((typeof ArrayBuffer !== 'undefined' &&
  13649. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  13650. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  13651. return createBuffer(that, 0)
  13652. }
  13653. return fromArrayLike(that, obj)
  13654. }
  13655. if (obj.type === 'Buffer' && isArray(obj.data)) {
  13656. return fromArrayLike(that, obj.data)
  13657. }
  13658. }
  13659. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  13660. }
  13661. function checked (length) {
  13662. // Note: cannot use `length < kMaxLength()` here because that fails when
  13663. // length is NaN (which is otherwise coerced to zero.)
  13664. if (length >= kMaxLength()) {
  13665. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  13666. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  13667. }
  13668. return length | 0
  13669. }
  13670. function SlowBuffer (length) {
  13671. if (+length != length) { // eslint-disable-line eqeqeq
  13672. length = 0
  13673. }
  13674. return Buffer.alloc(+length)
  13675. }
  13676. Buffer.isBuffer = function isBuffer (b) {
  13677. return !!(b != null && b._isBuffer)
  13678. }
  13679. Buffer.compare = function compare (a, b) {
  13680. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  13681. throw new TypeError('Arguments must be Buffers')
  13682. }
  13683. if (a === b) return 0
  13684. var x = a.length
  13685. var y = b.length
  13686. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  13687. if (a[i] !== b[i]) {
  13688. x = a[i]
  13689. y = b[i]
  13690. break
  13691. }
  13692. }
  13693. if (x < y) return -1
  13694. if (y < x) return 1
  13695. return 0
  13696. }
  13697. Buffer.isEncoding = function isEncoding (encoding) {
  13698. switch (String(encoding).toLowerCase()) {
  13699. case 'hex':
  13700. case 'utf8':
  13701. case 'utf-8':
  13702. case 'ascii':
  13703. case 'latin1':
  13704. case 'binary':
  13705. case 'base64':
  13706. case 'ucs2':
  13707. case 'ucs-2':
  13708. case 'utf16le':
  13709. case 'utf-16le':
  13710. return true
  13711. default:
  13712. return false
  13713. }
  13714. }
  13715. Buffer.concat = function concat (list, length) {
  13716. if (!isArray(list)) {
  13717. throw new TypeError('"list" argument must be an Array of Buffers')
  13718. }
  13719. if (list.length === 0) {
  13720. return Buffer.alloc(0)
  13721. }
  13722. var i
  13723. if (length === undefined) {
  13724. length = 0
  13725. for (i = 0; i < list.length; ++i) {
  13726. length += list[i].length
  13727. }
  13728. }
  13729. var buffer = Buffer.allocUnsafe(length)
  13730. var pos = 0
  13731. for (i = 0; i < list.length; ++i) {
  13732. var buf = list[i]
  13733. if (!Buffer.isBuffer(buf)) {
  13734. throw new TypeError('"list" argument must be an Array of Buffers')
  13735. }
  13736. buf.copy(buffer, pos)
  13737. pos += buf.length
  13738. }
  13739. return buffer
  13740. }
  13741. function byteLength (string, encoding) {
  13742. if (Buffer.isBuffer(string)) {
  13743. return string.length
  13744. }
  13745. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  13746. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  13747. return string.byteLength
  13748. }
  13749. if (typeof string !== 'string') {
  13750. string = '' + string
  13751. }
  13752. var len = string.length
  13753. if (len === 0) return 0
  13754. // Use a for loop to avoid recursion
  13755. var loweredCase = false
  13756. for (;;) {
  13757. switch (encoding) {
  13758. case 'ascii':
  13759. case 'latin1':
  13760. case 'binary':
  13761. return len
  13762. case 'utf8':
  13763. case 'utf-8':
  13764. case undefined:
  13765. return utf8ToBytes(string).length
  13766. case 'ucs2':
  13767. case 'ucs-2':
  13768. case 'utf16le':
  13769. case 'utf-16le':
  13770. return len * 2
  13771. case 'hex':
  13772. return len >>> 1
  13773. case 'base64':
  13774. return base64ToBytes(string).length
  13775. default:
  13776. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  13777. encoding = ('' + encoding).toLowerCase()
  13778. loweredCase = true
  13779. }
  13780. }
  13781. }
  13782. Buffer.byteLength = byteLength
  13783. function slowToString (encoding, start, end) {
  13784. var loweredCase = false
  13785. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  13786. // property of a typed array.
  13787. // This behaves neither like String nor Uint8Array in that we set start/end
  13788. // to their upper/lower bounds if the value passed is out of range.
  13789. // undefined is handled specially as per ECMA-262 6th Edition,
  13790. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  13791. if (start === undefined || start < 0) {
  13792. start = 0
  13793. }
  13794. // Return early if start > this.length. Done here to prevent potential uint32
  13795. // coercion fail below.
  13796. if (start > this.length) {
  13797. return ''
  13798. }
  13799. if (end === undefined || end > this.length) {
  13800. end = this.length
  13801. }
  13802. if (end <= 0) {
  13803. return ''
  13804. }
  13805. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  13806. end >>>= 0
  13807. start >>>= 0
  13808. if (end <= start) {
  13809. return ''
  13810. }
  13811. if (!encoding) encoding = 'utf8'
  13812. while (true) {
  13813. switch (encoding) {
  13814. case 'hex':
  13815. return hexSlice(this, start, end)
  13816. case 'utf8':
  13817. case 'utf-8':
  13818. return utf8Slice(this, start, end)
  13819. case 'ascii':
  13820. return asciiSlice(this, start, end)
  13821. case 'latin1':
  13822. case 'binary':
  13823. return latin1Slice(this, start, end)
  13824. case 'base64':
  13825. return base64Slice(this, start, end)
  13826. case 'ucs2':
  13827. case 'ucs-2':
  13828. case 'utf16le':
  13829. case 'utf-16le':
  13830. return utf16leSlice(this, start, end)
  13831. default:
  13832. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  13833. encoding = (encoding + '').toLowerCase()
  13834. loweredCase = true
  13835. }
  13836. }
  13837. }
  13838. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  13839. // Buffer instances.
  13840. Buffer.prototype._isBuffer = true
  13841. function swap (b, n, m) {
  13842. var i = b[n]
  13843. b[n] = b[m]
  13844. b[m] = i
  13845. }
  13846. Buffer.prototype.swap16 = function swap16 () {
  13847. var len = this.length
  13848. if (len % 2 !== 0) {
  13849. throw new RangeError('Buffer size must be a multiple of 16-bits')
  13850. }
  13851. for (var i = 0; i < len; i += 2) {
  13852. swap(this, i, i + 1)
  13853. }
  13854. return this
  13855. }
  13856. Buffer.prototype.swap32 = function swap32 () {
  13857. var len = this.length
  13858. if (len % 4 !== 0) {
  13859. throw new RangeError('Buffer size must be a multiple of 32-bits')
  13860. }
  13861. for (var i = 0; i < len; i += 4) {
  13862. swap(this, i, i + 3)
  13863. swap(this, i + 1, i + 2)
  13864. }
  13865. return this
  13866. }
  13867. Buffer.prototype.swap64 = function swap64 () {
  13868. var len = this.length
  13869. if (len % 8 !== 0) {
  13870. throw new RangeError('Buffer size must be a multiple of 64-bits')
  13871. }
  13872. for (var i = 0; i < len; i += 8) {
  13873. swap(this, i, i + 7)
  13874. swap(this, i + 1, i + 6)
  13875. swap(this, i + 2, i + 5)
  13876. swap(this, i + 3, i + 4)
  13877. }
  13878. return this
  13879. }
  13880. Buffer.prototype.toString = function toString () {
  13881. var length = this.length | 0
  13882. if (length === 0) return ''
  13883. if (arguments.length === 0) return utf8Slice(this, 0, length)
  13884. return slowToString.apply(this, arguments)
  13885. }
  13886. Buffer.prototype.equals = function equals (b) {
  13887. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  13888. if (this === b) return true
  13889. return Buffer.compare(this, b) === 0
  13890. }
  13891. Buffer.prototype.inspect = function inspect () {
  13892. var str = ''
  13893. var max = exports.INSPECT_MAX_BYTES
  13894. if (this.length > 0) {
  13895. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  13896. if (this.length > max) str += ' ... '
  13897. }
  13898. return '<Buffer ' + str + '>'
  13899. }
  13900. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  13901. if (!Buffer.isBuffer(target)) {
  13902. throw new TypeError('Argument must be a Buffer')
  13903. }
  13904. if (start === undefined) {
  13905. start = 0
  13906. }
  13907. if (end === undefined) {
  13908. end = target ? target.length : 0
  13909. }
  13910. if (thisStart === undefined) {
  13911. thisStart = 0
  13912. }
  13913. if (thisEnd === undefined) {
  13914. thisEnd = this.length
  13915. }
  13916. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  13917. throw new RangeError('out of range index')
  13918. }
  13919. if (thisStart >= thisEnd && start >= end) {
  13920. return 0
  13921. }
  13922. if (thisStart >= thisEnd) {
  13923. return -1
  13924. }
  13925. if (start >= end) {
  13926. return 1
  13927. }
  13928. start >>>= 0
  13929. end >>>= 0
  13930. thisStart >>>= 0
  13931. thisEnd >>>= 0
  13932. if (this === target) return 0
  13933. var x = thisEnd - thisStart
  13934. var y = end - start
  13935. var len = Math.min(x, y)
  13936. var thisCopy = this.slice(thisStart, thisEnd)
  13937. var targetCopy = target.slice(start, end)
  13938. for (var i = 0; i < len; ++i) {
  13939. if (thisCopy[i] !== targetCopy[i]) {
  13940. x = thisCopy[i]
  13941. y = targetCopy[i]
  13942. break
  13943. }
  13944. }
  13945. if (x < y) return -1
  13946. if (y < x) return 1
  13947. return 0
  13948. }
  13949. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  13950. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  13951. //
  13952. // Arguments:
  13953. // - buffer - a Buffer to search
  13954. // - val - a string, Buffer, or number
  13955. // - byteOffset - an index into `buffer`; will be clamped to an int32
  13956. // - encoding - an optional encoding, relevant is val is a string
  13957. // - dir - true for indexOf, false for lastIndexOf
  13958. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  13959. // Empty buffer means no match
  13960. if (buffer.length === 0) return -1
  13961. // Normalize byteOffset
  13962. if (typeof byteOffset === 'string') {
  13963. encoding = byteOffset
  13964. byteOffset = 0
  13965. } else if (byteOffset > 0x7fffffff) {
  13966. byteOffset = 0x7fffffff
  13967. } else if (byteOffset < -0x80000000) {
  13968. byteOffset = -0x80000000
  13969. }
  13970. byteOffset = +byteOffset // Coerce to Number.
  13971. if (isNaN(byteOffset)) {
  13972. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  13973. byteOffset = dir ? 0 : (buffer.length - 1)
  13974. }
  13975. // Normalize byteOffset: negative offsets start from the end of the buffer
  13976. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  13977. if (byteOffset >= buffer.length) {
  13978. if (dir) return -1
  13979. else byteOffset = buffer.length - 1
  13980. } else if (byteOffset < 0) {
  13981. if (dir) byteOffset = 0
  13982. else return -1
  13983. }
  13984. // Normalize val
  13985. if (typeof val === 'string') {
  13986. val = Buffer.from(val, encoding)
  13987. }
  13988. // Finally, search either indexOf (if dir is true) or lastIndexOf
  13989. if (Buffer.isBuffer(val)) {
  13990. // Special case: looking for empty string/buffer always fails
  13991. if (val.length === 0) {
  13992. return -1
  13993. }
  13994. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  13995. } else if (typeof val === 'number') {
  13996. val = val & 0xFF // Search for a byte value [0-255]
  13997. if (Buffer.TYPED_ARRAY_SUPPORT &&
  13998. typeof Uint8Array.prototype.indexOf === 'function') {
  13999. if (dir) {
  14000. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  14001. } else {
  14002. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  14003. }
  14004. }
  14005. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  14006. }
  14007. throw new TypeError('val must be string, number or Buffer')
  14008. }
  14009. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  14010. var indexSize = 1
  14011. var arrLength = arr.length
  14012. var valLength = val.length
  14013. if (encoding !== undefined) {
  14014. encoding = String(encoding).toLowerCase()
  14015. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  14016. encoding === 'utf16le' || encoding === 'utf-16le') {
  14017. if (arr.length < 2 || val.length < 2) {
  14018. return -1
  14019. }
  14020. indexSize = 2
  14021. arrLength /= 2
  14022. valLength /= 2
  14023. byteOffset /= 2
  14024. }
  14025. }
  14026. function read (buf, i) {
  14027. if (indexSize === 1) {
  14028. return buf[i]
  14029. } else {
  14030. return buf.readUInt16BE(i * indexSize)
  14031. }
  14032. }
  14033. var i
  14034. if (dir) {
  14035. var foundIndex = -1
  14036. for (i = byteOffset; i < arrLength; i++) {
  14037. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  14038. if (foundIndex === -1) foundIndex = i
  14039. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  14040. } else {
  14041. if (foundIndex !== -1) i -= i - foundIndex
  14042. foundIndex = -1
  14043. }
  14044. }
  14045. } else {
  14046. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  14047. for (i = byteOffset; i >= 0; i--) {
  14048. var found = true
  14049. for (var j = 0; j < valLength; j++) {
  14050. if (read(arr, i + j) !== read(val, j)) {
  14051. found = false
  14052. break
  14053. }
  14054. }
  14055. if (found) return i
  14056. }
  14057. }
  14058. return -1
  14059. }
  14060. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  14061. return this.indexOf(val, byteOffset, encoding) !== -1
  14062. }
  14063. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  14064. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  14065. }
  14066. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  14067. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  14068. }
  14069. function hexWrite (buf, string, offset, length) {
  14070. offset = Number(offset) || 0
  14071. var remaining = buf.length - offset
  14072. if (!length) {
  14073. length = remaining
  14074. } else {
  14075. length = Number(length)
  14076. if (length > remaining) {
  14077. length = remaining
  14078. }
  14079. }
  14080. // must be an even number of digits
  14081. var strLen = string.length
  14082. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  14083. if (length > strLen / 2) {
  14084. length = strLen / 2
  14085. }
  14086. for (var i = 0; i < length; ++i) {
  14087. var parsed = parseInt(string.substr(i * 2, 2), 16)
  14088. if (isNaN(parsed)) return i
  14089. buf[offset + i] = parsed
  14090. }
  14091. return i
  14092. }
  14093. function utf8Write (buf, string, offset, length) {
  14094. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  14095. }
  14096. function asciiWrite (buf, string, offset, length) {
  14097. return blitBuffer(asciiToBytes(string), buf, offset, length)
  14098. }
  14099. function latin1Write (buf, string, offset, length) {
  14100. return asciiWrite(buf, string, offset, length)
  14101. }
  14102. function base64Write (buf, string, offset, length) {
  14103. return blitBuffer(base64ToBytes(string), buf, offset, length)
  14104. }
  14105. function ucs2Write (buf, string, offset, length) {
  14106. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  14107. }
  14108. Buffer.prototype.write = function write (string, offset, length, encoding) {
  14109. // Buffer#write(string)
  14110. if (offset === undefined) {
  14111. encoding = 'utf8'
  14112. length = this.length
  14113. offset = 0
  14114. // Buffer#write(string, encoding)
  14115. } else if (length === undefined && typeof offset === 'string') {
  14116. encoding = offset
  14117. length = this.length
  14118. offset = 0
  14119. // Buffer#write(string, offset[, length][, encoding])
  14120. } else if (isFinite(offset)) {
  14121. offset = offset | 0
  14122. if (isFinite(length)) {
  14123. length = length | 0
  14124. if (encoding === undefined) encoding = 'utf8'
  14125. } else {
  14126. encoding = length
  14127. length = undefined
  14128. }
  14129. // legacy write(string, encoding, offset, length) - remove in v0.13
  14130. } else {
  14131. throw new Error(
  14132. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  14133. )
  14134. }
  14135. var remaining = this.length - offset
  14136. if (length === undefined || length > remaining) length = remaining
  14137. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  14138. throw new RangeError('Attempt to write outside buffer bounds')
  14139. }
  14140. if (!encoding) encoding = 'utf8'
  14141. var loweredCase = false
  14142. for (;;) {
  14143. switch (encoding) {
  14144. case 'hex':
  14145. return hexWrite(this, string, offset, length)
  14146. case 'utf8':
  14147. case 'utf-8':
  14148. return utf8Write(this, string, offset, length)
  14149. case 'ascii':
  14150. return asciiWrite(this, string, offset, length)
  14151. case 'latin1':
  14152. case 'binary':
  14153. return latin1Write(this, string, offset, length)
  14154. case 'base64':
  14155. // Warning: maxLength not taken into account in base64Write
  14156. return base64Write(this, string, offset, length)
  14157. case 'ucs2':
  14158. case 'ucs-2':
  14159. case 'utf16le':
  14160. case 'utf-16le':
  14161. return ucs2Write(this, string, offset, length)
  14162. default:
  14163. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  14164. encoding = ('' + encoding).toLowerCase()
  14165. loweredCase = true
  14166. }
  14167. }
  14168. }
  14169. Buffer.prototype.toJSON = function toJSON () {
  14170. return {
  14171. type: 'Buffer',
  14172. data: Array.prototype.slice.call(this._arr || this, 0)
  14173. }
  14174. }
  14175. function base64Slice (buf, start, end) {
  14176. if (start === 0 && end === buf.length) {
  14177. return base64.fromByteArray(buf)
  14178. } else {
  14179. return base64.fromByteArray(buf.slice(start, end))
  14180. }
  14181. }
  14182. function utf8Slice (buf, start, end) {
  14183. end = Math.min(buf.length, end)
  14184. var res = []
  14185. var i = start
  14186. while (i < end) {
  14187. var firstByte = buf[i]
  14188. var codePoint = null
  14189. var bytesPerSequence = (firstByte > 0xEF) ? 4
  14190. : (firstByte > 0xDF) ? 3
  14191. : (firstByte > 0xBF) ? 2
  14192. : 1
  14193. if (i + bytesPerSequence <= end) {
  14194. var secondByte, thirdByte, fourthByte, tempCodePoint
  14195. switch (bytesPerSequence) {
  14196. case 1:
  14197. if (firstByte < 0x80) {
  14198. codePoint = firstByte
  14199. }
  14200. break
  14201. case 2:
  14202. secondByte = buf[i + 1]
  14203. if ((secondByte & 0xC0) === 0x80) {
  14204. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  14205. if (tempCodePoint > 0x7F) {
  14206. codePoint = tempCodePoint
  14207. }
  14208. }
  14209. break
  14210. case 3:
  14211. secondByte = buf[i + 1]
  14212. thirdByte = buf[i + 2]
  14213. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  14214. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  14215. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  14216. codePoint = tempCodePoint
  14217. }
  14218. }
  14219. break
  14220. case 4:
  14221. secondByte = buf[i + 1]
  14222. thirdByte = buf[i + 2]
  14223. fourthByte = buf[i + 3]
  14224. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  14225. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  14226. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  14227. codePoint = tempCodePoint
  14228. }
  14229. }
  14230. }
  14231. }
  14232. if (codePoint === null) {
  14233. // we did not generate a valid codePoint so insert a
  14234. // replacement char (U+FFFD) and advance only 1 byte
  14235. codePoint = 0xFFFD
  14236. bytesPerSequence = 1
  14237. } else if (codePoint > 0xFFFF) {
  14238. // encode to utf16 (surrogate pair dance)
  14239. codePoint -= 0x10000
  14240. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  14241. codePoint = 0xDC00 | codePoint & 0x3FF
  14242. }
  14243. res.push(codePoint)
  14244. i += bytesPerSequence
  14245. }
  14246. return decodeCodePointsArray(res)
  14247. }
  14248. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  14249. // the lowest limit is Chrome, with 0x10000 args.
  14250. // We go 1 magnitude less, for safety
  14251. var MAX_ARGUMENTS_LENGTH = 0x1000
  14252. function decodeCodePointsArray (codePoints) {
  14253. var len = codePoints.length
  14254. if (len <= MAX_ARGUMENTS_LENGTH) {
  14255. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  14256. }
  14257. // Decode in chunks to avoid "call stack size exceeded".
  14258. var res = ''
  14259. var i = 0
  14260. while (i < len) {
  14261. res += String.fromCharCode.apply(
  14262. String,
  14263. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  14264. )
  14265. }
  14266. return res
  14267. }
  14268. function asciiSlice (buf, start, end) {
  14269. var ret = ''
  14270. end = Math.min(buf.length, end)
  14271. for (var i = start; i < end; ++i) {
  14272. ret += String.fromCharCode(buf[i] & 0x7F)
  14273. }
  14274. return ret
  14275. }
  14276. function latin1Slice (buf, start, end) {
  14277. var ret = ''
  14278. end = Math.min(buf.length, end)
  14279. for (var i = start; i < end; ++i) {
  14280. ret += String.fromCharCode(buf[i])
  14281. }
  14282. return ret
  14283. }
  14284. function hexSlice (buf, start, end) {
  14285. var len = buf.length
  14286. if (!start || start < 0) start = 0
  14287. if (!end || end < 0 || end > len) end = len
  14288. var out = ''
  14289. for (var i = start; i < end; ++i) {
  14290. out += toHex(buf[i])
  14291. }
  14292. return out
  14293. }
  14294. function utf16leSlice (buf, start, end) {
  14295. var bytes = buf.slice(start, end)
  14296. var res = ''
  14297. for (var i = 0; i < bytes.length; i += 2) {
  14298. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  14299. }
  14300. return res
  14301. }
  14302. Buffer.prototype.slice = function slice (start, end) {
  14303. var len = this.length
  14304. start = ~~start
  14305. end = end === undefined ? len : ~~end
  14306. if (start < 0) {
  14307. start += len
  14308. if (start < 0) start = 0
  14309. } else if (start > len) {
  14310. start = len
  14311. }
  14312. if (end < 0) {
  14313. end += len
  14314. if (end < 0) end = 0
  14315. } else if (end > len) {
  14316. end = len
  14317. }
  14318. if (end < start) end = start
  14319. var newBuf
  14320. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14321. newBuf = this.subarray(start, end)
  14322. newBuf.__proto__ = Buffer.prototype
  14323. } else {
  14324. var sliceLen = end - start
  14325. newBuf = new Buffer(sliceLen, undefined)
  14326. for (var i = 0; i < sliceLen; ++i) {
  14327. newBuf[i] = this[i + start]
  14328. }
  14329. }
  14330. return newBuf
  14331. }
  14332. /*
  14333. * Need to make sure that buffer isn't trying to write out of bounds.
  14334. */
  14335. function checkOffset (offset, ext, length) {
  14336. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  14337. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  14338. }
  14339. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  14340. offset = offset | 0
  14341. byteLength = byteLength | 0
  14342. if (!noAssert) checkOffset(offset, byteLength, this.length)
  14343. var val = this[offset]
  14344. var mul = 1
  14345. var i = 0
  14346. while (++i < byteLength && (mul *= 0x100)) {
  14347. val += this[offset + i] * mul
  14348. }
  14349. return val
  14350. }
  14351. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  14352. offset = offset | 0
  14353. byteLength = byteLength | 0
  14354. if (!noAssert) {
  14355. checkOffset(offset, byteLength, this.length)
  14356. }
  14357. var val = this[offset + --byteLength]
  14358. var mul = 1
  14359. while (byteLength > 0 && (mul *= 0x100)) {
  14360. val += this[offset + --byteLength] * mul
  14361. }
  14362. return val
  14363. }
  14364. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  14365. if (!noAssert) checkOffset(offset, 1, this.length)
  14366. return this[offset]
  14367. }
  14368. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  14369. if (!noAssert) checkOffset(offset, 2, this.length)
  14370. return this[offset] | (this[offset + 1] << 8)
  14371. }
  14372. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  14373. if (!noAssert) checkOffset(offset, 2, this.length)
  14374. return (this[offset] << 8) | this[offset + 1]
  14375. }
  14376. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  14377. if (!noAssert) checkOffset(offset, 4, this.length)
  14378. return ((this[offset]) |
  14379. (this[offset + 1] << 8) |
  14380. (this[offset + 2] << 16)) +
  14381. (this[offset + 3] * 0x1000000)
  14382. }
  14383. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  14384. if (!noAssert) checkOffset(offset, 4, this.length)
  14385. return (this[offset] * 0x1000000) +
  14386. ((this[offset + 1] << 16) |
  14387. (this[offset + 2] << 8) |
  14388. this[offset + 3])
  14389. }
  14390. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  14391. offset = offset | 0
  14392. byteLength = byteLength | 0
  14393. if (!noAssert) checkOffset(offset, byteLength, this.length)
  14394. var val = this[offset]
  14395. var mul = 1
  14396. var i = 0
  14397. while (++i < byteLength && (mul *= 0x100)) {
  14398. val += this[offset + i] * mul
  14399. }
  14400. mul *= 0x80
  14401. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  14402. return val
  14403. }
  14404. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  14405. offset = offset | 0
  14406. byteLength = byteLength | 0
  14407. if (!noAssert) checkOffset(offset, byteLength, this.length)
  14408. var i = byteLength
  14409. var mul = 1
  14410. var val = this[offset + --i]
  14411. while (i > 0 && (mul *= 0x100)) {
  14412. val += this[offset + --i] * mul
  14413. }
  14414. mul *= 0x80
  14415. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  14416. return val
  14417. }
  14418. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  14419. if (!noAssert) checkOffset(offset, 1, this.length)
  14420. if (!(this[offset] & 0x80)) return (this[offset])
  14421. return ((0xff - this[offset] + 1) * -1)
  14422. }
  14423. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  14424. if (!noAssert) checkOffset(offset, 2, this.length)
  14425. var val = this[offset] | (this[offset + 1] << 8)
  14426. return (val & 0x8000) ? val | 0xFFFF0000 : val
  14427. }
  14428. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  14429. if (!noAssert) checkOffset(offset, 2, this.length)
  14430. var val = this[offset + 1] | (this[offset] << 8)
  14431. return (val & 0x8000) ? val | 0xFFFF0000 : val
  14432. }
  14433. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  14434. if (!noAssert) checkOffset(offset, 4, this.length)
  14435. return (this[offset]) |
  14436. (this[offset + 1] << 8) |
  14437. (this[offset + 2] << 16) |
  14438. (this[offset + 3] << 24)
  14439. }
  14440. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  14441. if (!noAssert) checkOffset(offset, 4, this.length)
  14442. return (this[offset] << 24) |
  14443. (this[offset + 1] << 16) |
  14444. (this[offset + 2] << 8) |
  14445. (this[offset + 3])
  14446. }
  14447. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  14448. if (!noAssert) checkOffset(offset, 4, this.length)
  14449. return ieee754.read(this, offset, true, 23, 4)
  14450. }
  14451. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  14452. if (!noAssert) checkOffset(offset, 4, this.length)
  14453. return ieee754.read(this, offset, false, 23, 4)
  14454. }
  14455. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  14456. if (!noAssert) checkOffset(offset, 8, this.length)
  14457. return ieee754.read(this, offset, true, 52, 8)
  14458. }
  14459. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  14460. if (!noAssert) checkOffset(offset, 8, this.length)
  14461. return ieee754.read(this, offset, false, 52, 8)
  14462. }
  14463. function checkInt (buf, value, offset, ext, max, min) {
  14464. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  14465. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  14466. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  14467. }
  14468. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  14469. value = +value
  14470. offset = offset | 0
  14471. byteLength = byteLength | 0
  14472. if (!noAssert) {
  14473. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  14474. checkInt(this, value, offset, byteLength, maxBytes, 0)
  14475. }
  14476. var mul = 1
  14477. var i = 0
  14478. this[offset] = value & 0xFF
  14479. while (++i < byteLength && (mul *= 0x100)) {
  14480. this[offset + i] = (value / mul) & 0xFF
  14481. }
  14482. return offset + byteLength
  14483. }
  14484. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  14485. value = +value
  14486. offset = offset | 0
  14487. byteLength = byteLength | 0
  14488. if (!noAssert) {
  14489. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  14490. checkInt(this, value, offset, byteLength, maxBytes, 0)
  14491. }
  14492. var i = byteLength - 1
  14493. var mul = 1
  14494. this[offset + i] = value & 0xFF
  14495. while (--i >= 0 && (mul *= 0x100)) {
  14496. this[offset + i] = (value / mul) & 0xFF
  14497. }
  14498. return offset + byteLength
  14499. }
  14500. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  14501. value = +value
  14502. offset = offset | 0
  14503. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  14504. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  14505. this[offset] = (value & 0xff)
  14506. return offset + 1
  14507. }
  14508. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  14509. if (value < 0) value = 0xffff + value + 1
  14510. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  14511. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  14512. (littleEndian ? i : 1 - i) * 8
  14513. }
  14514. }
  14515. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  14516. value = +value
  14517. offset = offset | 0
  14518. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  14519. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14520. this[offset] = (value & 0xff)
  14521. this[offset + 1] = (value >>> 8)
  14522. } else {
  14523. objectWriteUInt16(this, value, offset, true)
  14524. }
  14525. return offset + 2
  14526. }
  14527. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  14528. value = +value
  14529. offset = offset | 0
  14530. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  14531. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14532. this[offset] = (value >>> 8)
  14533. this[offset + 1] = (value & 0xff)
  14534. } else {
  14535. objectWriteUInt16(this, value, offset, false)
  14536. }
  14537. return offset + 2
  14538. }
  14539. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  14540. if (value < 0) value = 0xffffffff + value + 1
  14541. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  14542. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  14543. }
  14544. }
  14545. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  14546. value = +value
  14547. offset = offset | 0
  14548. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  14549. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14550. this[offset + 3] = (value >>> 24)
  14551. this[offset + 2] = (value >>> 16)
  14552. this[offset + 1] = (value >>> 8)
  14553. this[offset] = (value & 0xff)
  14554. } else {
  14555. objectWriteUInt32(this, value, offset, true)
  14556. }
  14557. return offset + 4
  14558. }
  14559. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  14560. value = +value
  14561. offset = offset | 0
  14562. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  14563. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14564. this[offset] = (value >>> 24)
  14565. this[offset + 1] = (value >>> 16)
  14566. this[offset + 2] = (value >>> 8)
  14567. this[offset + 3] = (value & 0xff)
  14568. } else {
  14569. objectWriteUInt32(this, value, offset, false)
  14570. }
  14571. return offset + 4
  14572. }
  14573. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  14574. value = +value
  14575. offset = offset | 0
  14576. if (!noAssert) {
  14577. var limit = Math.pow(2, 8 * byteLength - 1)
  14578. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  14579. }
  14580. var i = 0
  14581. var mul = 1
  14582. var sub = 0
  14583. this[offset] = value & 0xFF
  14584. while (++i < byteLength && (mul *= 0x100)) {
  14585. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  14586. sub = 1
  14587. }
  14588. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  14589. }
  14590. return offset + byteLength
  14591. }
  14592. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  14593. value = +value
  14594. offset = offset | 0
  14595. if (!noAssert) {
  14596. var limit = Math.pow(2, 8 * byteLength - 1)
  14597. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  14598. }
  14599. var i = byteLength - 1
  14600. var mul = 1
  14601. var sub = 0
  14602. this[offset + i] = value & 0xFF
  14603. while (--i >= 0 && (mul *= 0x100)) {
  14604. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  14605. sub = 1
  14606. }
  14607. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  14608. }
  14609. return offset + byteLength
  14610. }
  14611. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  14612. value = +value
  14613. offset = offset | 0
  14614. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  14615. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  14616. if (value < 0) value = 0xff + value + 1
  14617. this[offset] = (value & 0xff)
  14618. return offset + 1
  14619. }
  14620. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  14621. value = +value
  14622. offset = offset | 0
  14623. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  14624. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14625. this[offset] = (value & 0xff)
  14626. this[offset + 1] = (value >>> 8)
  14627. } else {
  14628. objectWriteUInt16(this, value, offset, true)
  14629. }
  14630. return offset + 2
  14631. }
  14632. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  14633. value = +value
  14634. offset = offset | 0
  14635. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  14636. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14637. this[offset] = (value >>> 8)
  14638. this[offset + 1] = (value & 0xff)
  14639. } else {
  14640. objectWriteUInt16(this, value, offset, false)
  14641. }
  14642. return offset + 2
  14643. }
  14644. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  14645. value = +value
  14646. offset = offset | 0
  14647. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  14648. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14649. this[offset] = (value & 0xff)
  14650. this[offset + 1] = (value >>> 8)
  14651. this[offset + 2] = (value >>> 16)
  14652. this[offset + 3] = (value >>> 24)
  14653. } else {
  14654. objectWriteUInt32(this, value, offset, true)
  14655. }
  14656. return offset + 4
  14657. }
  14658. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  14659. value = +value
  14660. offset = offset | 0
  14661. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  14662. if (value < 0) value = 0xffffffff + value + 1
  14663. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14664. this[offset] = (value >>> 24)
  14665. this[offset + 1] = (value >>> 16)
  14666. this[offset + 2] = (value >>> 8)
  14667. this[offset + 3] = (value & 0xff)
  14668. } else {
  14669. objectWriteUInt32(this, value, offset, false)
  14670. }
  14671. return offset + 4
  14672. }
  14673. function checkIEEE754 (buf, value, offset, ext, max, min) {
  14674. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  14675. if (offset < 0) throw new RangeError('Index out of range')
  14676. }
  14677. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  14678. if (!noAssert) {
  14679. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  14680. }
  14681. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  14682. return offset + 4
  14683. }
  14684. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  14685. return writeFloat(this, value, offset, true, noAssert)
  14686. }
  14687. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  14688. return writeFloat(this, value, offset, false, noAssert)
  14689. }
  14690. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  14691. if (!noAssert) {
  14692. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  14693. }
  14694. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  14695. return offset + 8
  14696. }
  14697. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  14698. return writeDouble(this, value, offset, true, noAssert)
  14699. }
  14700. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  14701. return writeDouble(this, value, offset, false, noAssert)
  14702. }
  14703. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  14704. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  14705. if (!start) start = 0
  14706. if (!end && end !== 0) end = this.length
  14707. if (targetStart >= target.length) targetStart = target.length
  14708. if (!targetStart) targetStart = 0
  14709. if (end > 0 && end < start) end = start
  14710. // Copy 0 bytes; we're done
  14711. if (end === start) return 0
  14712. if (target.length === 0 || this.length === 0) return 0
  14713. // Fatal error conditions
  14714. if (targetStart < 0) {
  14715. throw new RangeError('targetStart out of bounds')
  14716. }
  14717. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  14718. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  14719. // Are we oob?
  14720. if (end > this.length) end = this.length
  14721. if (target.length - targetStart < end - start) {
  14722. end = target.length - targetStart + start
  14723. }
  14724. var len = end - start
  14725. var i
  14726. if (this === target && start < targetStart && targetStart < end) {
  14727. // descending copy from end
  14728. for (i = len - 1; i >= 0; --i) {
  14729. target[i + targetStart] = this[i + start]
  14730. }
  14731. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  14732. // ascending copy from start
  14733. for (i = 0; i < len; ++i) {
  14734. target[i + targetStart] = this[i + start]
  14735. }
  14736. } else {
  14737. Uint8Array.prototype.set.call(
  14738. target,
  14739. this.subarray(start, start + len),
  14740. targetStart
  14741. )
  14742. }
  14743. return len
  14744. }
  14745. // Usage:
  14746. // buffer.fill(number[, offset[, end]])
  14747. // buffer.fill(buffer[, offset[, end]])
  14748. // buffer.fill(string[, offset[, end]][, encoding])
  14749. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  14750. // Handle string cases:
  14751. if (typeof val === 'string') {
  14752. if (typeof start === 'string') {
  14753. encoding = start
  14754. start = 0
  14755. end = this.length
  14756. } else if (typeof end === 'string') {
  14757. encoding = end
  14758. end = this.length
  14759. }
  14760. if (val.length === 1) {
  14761. var code = val.charCodeAt(0)
  14762. if (code < 256) {
  14763. val = code
  14764. }
  14765. }
  14766. if (encoding !== undefined && typeof encoding !== 'string') {
  14767. throw new TypeError('encoding must be a string')
  14768. }
  14769. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  14770. throw new TypeError('Unknown encoding: ' + encoding)
  14771. }
  14772. } else if (typeof val === 'number') {
  14773. val = val & 255
  14774. }
  14775. // Invalid ranges are not set to a default, so can range check early.
  14776. if (start < 0 || this.length < start || this.length < end) {
  14777. throw new RangeError('Out of range index')
  14778. }
  14779. if (end <= start) {
  14780. return this
  14781. }
  14782. start = start >>> 0
  14783. end = end === undefined ? this.length : end >>> 0
  14784. if (!val) val = 0
  14785. var i
  14786. if (typeof val === 'number') {
  14787. for (i = start; i < end; ++i) {
  14788. this[i] = val
  14789. }
  14790. } else {
  14791. var bytes = Buffer.isBuffer(val)
  14792. ? val
  14793. : utf8ToBytes(new Buffer(val, encoding).toString())
  14794. var len = bytes.length
  14795. for (i = 0; i < end - start; ++i) {
  14796. this[i + start] = bytes[i % len]
  14797. }
  14798. }
  14799. return this
  14800. }
  14801. // HELPER FUNCTIONS
  14802. // ================
  14803. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  14804. function base64clean (str) {
  14805. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  14806. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  14807. // Node converts strings with length < 2 to ''
  14808. if (str.length < 2) return ''
  14809. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  14810. while (str.length % 4 !== 0) {
  14811. str = str + '='
  14812. }
  14813. return str
  14814. }
  14815. function stringtrim (str) {
  14816. if (str.trim) return str.trim()
  14817. return str.replace(/^\s+|\s+$/g, '')
  14818. }
  14819. function toHex (n) {
  14820. if (n < 16) return '0' + n.toString(16)
  14821. return n.toString(16)
  14822. }
  14823. function utf8ToBytes (string, units) {
  14824. units = units || Infinity
  14825. var codePoint
  14826. var length = string.length
  14827. var leadSurrogate = null
  14828. var bytes = []
  14829. for (var i = 0; i < length; ++i) {
  14830. codePoint = string.charCodeAt(i)
  14831. // is surrogate component
  14832. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  14833. // last char was a lead
  14834. if (!leadSurrogate) {
  14835. // no lead yet
  14836. if (codePoint > 0xDBFF) {
  14837. // unexpected trail
  14838. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  14839. continue
  14840. } else if (i + 1 === length) {
  14841. // unpaired lead
  14842. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  14843. continue
  14844. }
  14845. // valid lead
  14846. leadSurrogate = codePoint
  14847. continue
  14848. }
  14849. // 2 leads in a row
  14850. if (codePoint < 0xDC00) {
  14851. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  14852. leadSurrogate = codePoint
  14853. continue
  14854. }
  14855. // valid surrogate pair
  14856. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  14857. } else if (leadSurrogate) {
  14858. // valid bmp char, but last char was a lead
  14859. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  14860. }
  14861. leadSurrogate = null
  14862. // encode utf8
  14863. if (codePoint < 0x80) {
  14864. if ((units -= 1) < 0) break
  14865. bytes.push(codePoint)
  14866. } else if (codePoint < 0x800) {
  14867. if ((units -= 2) < 0) break
  14868. bytes.push(
  14869. codePoint >> 0x6 | 0xC0,
  14870. codePoint & 0x3F | 0x80
  14871. )
  14872. } else if (codePoint < 0x10000) {
  14873. if ((units -= 3) < 0) break
  14874. bytes.push(
  14875. codePoint >> 0xC | 0xE0,
  14876. codePoint >> 0x6 & 0x3F | 0x80,
  14877. codePoint & 0x3F | 0x80
  14878. )
  14879. } else if (codePoint < 0x110000) {
  14880. if ((units -= 4) < 0) break
  14881. bytes.push(
  14882. codePoint >> 0x12 | 0xF0,
  14883. codePoint >> 0xC & 0x3F | 0x80,
  14884. codePoint >> 0x6 & 0x3F | 0x80,
  14885. codePoint & 0x3F | 0x80
  14886. )
  14887. } else {
  14888. throw new Error('Invalid code point')
  14889. }
  14890. }
  14891. return bytes
  14892. }
  14893. function asciiToBytes (str) {
  14894. var byteArray = []
  14895. for (var i = 0; i < str.length; ++i) {
  14896. // Node's code seems to be doing this and not & 0x7F..
  14897. byteArray.push(str.charCodeAt(i) & 0xFF)
  14898. }
  14899. return byteArray
  14900. }
  14901. function utf16leToBytes (str, units) {
  14902. var c, hi, lo
  14903. var byteArray = []
  14904. for (var i = 0; i < str.length; ++i) {
  14905. if ((units -= 2) < 0) break
  14906. c = str.charCodeAt(i)
  14907. hi = c >> 8
  14908. lo = c % 256
  14909. byteArray.push(lo)
  14910. byteArray.push(hi)
  14911. }
  14912. return byteArray
  14913. }
  14914. function base64ToBytes (str) {
  14915. return base64.toByteArray(base64clean(str))
  14916. }
  14917. function blitBuffer (src, dst, offset, length) {
  14918. for (var i = 0; i < length; ++i) {
  14919. if ((i + offset >= dst.length) || (i >= src.length)) break
  14920. dst[i + offset] = src[i]
  14921. }
  14922. return i
  14923. }
  14924. function isnan (val) {
  14925. return val !== val // eslint-disable-line no-self-compare
  14926. }
  14927. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  14928. /***/ }),
  14929. /* 72 */
  14930. /*!*****************************************!*\
  14931. !*** ./node_modules/base64-js/index.js ***!
  14932. \*****************************************/
  14933. /*! no static exports found */
  14934. /***/ (function(module, exports, __webpack_require__) {
  14935. "use strict";
  14936. exports.byteLength = byteLength
  14937. exports.toByteArray = toByteArray
  14938. exports.fromByteArray = fromByteArray
  14939. var lookup = []
  14940. var revLookup = []
  14941. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  14942. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  14943. for (var i = 0, len = code.length; i < len; ++i) {
  14944. lookup[i] = code[i]
  14945. revLookup[code.charCodeAt(i)] = i
  14946. }
  14947. // Support decoding URL-safe base64 strings, as Node.js does.
  14948. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  14949. revLookup['-'.charCodeAt(0)] = 62
  14950. revLookup['_'.charCodeAt(0)] = 63
  14951. function getLens (b64) {
  14952. var len = b64.length
  14953. if (len % 4 > 0) {
  14954. throw new Error('Invalid string. Length must be a multiple of 4')
  14955. }
  14956. // Trim off extra bytes after placeholder bytes are found
  14957. // See: https://github.com/beatgammit/base64-js/issues/42
  14958. var validLen = b64.indexOf('=')
  14959. if (validLen === -1) validLen = len
  14960. var placeHoldersLen = validLen === len
  14961. ? 0
  14962. : 4 - (validLen % 4)
  14963. return [validLen, placeHoldersLen]
  14964. }
  14965. // base64 is 4/3 + up to two characters of the original data
  14966. function byteLength (b64) {
  14967. var lens = getLens(b64)
  14968. var validLen = lens[0]
  14969. var placeHoldersLen = lens[1]
  14970. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  14971. }
  14972. function _byteLength (b64, validLen, placeHoldersLen) {
  14973. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  14974. }
  14975. function toByteArray (b64) {
  14976. var tmp
  14977. var lens = getLens(b64)
  14978. var validLen = lens[0]
  14979. var placeHoldersLen = lens[1]
  14980. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  14981. var curByte = 0
  14982. // if there are placeholders, only get up to the last complete 4 chars
  14983. var len = placeHoldersLen > 0
  14984. ? validLen - 4
  14985. : validLen
  14986. var i
  14987. for (i = 0; i < len; i += 4) {
  14988. tmp =
  14989. (revLookup[b64.charCodeAt(i)] << 18) |
  14990. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  14991. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  14992. revLookup[b64.charCodeAt(i + 3)]
  14993. arr[curByte++] = (tmp >> 16) & 0xFF
  14994. arr[curByte++] = (tmp >> 8) & 0xFF
  14995. arr[curByte++] = tmp & 0xFF
  14996. }
  14997. if (placeHoldersLen === 2) {
  14998. tmp =
  14999. (revLookup[b64.charCodeAt(i)] << 2) |
  15000. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  15001. arr[curByte++] = tmp & 0xFF
  15002. }
  15003. if (placeHoldersLen === 1) {
  15004. tmp =
  15005. (revLookup[b64.charCodeAt(i)] << 10) |
  15006. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  15007. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  15008. arr[curByte++] = (tmp >> 8) & 0xFF
  15009. arr[curByte++] = tmp & 0xFF
  15010. }
  15011. return arr
  15012. }
  15013. function tripletToBase64 (num) {
  15014. return lookup[num >> 18 & 0x3F] +
  15015. lookup[num >> 12 & 0x3F] +
  15016. lookup[num >> 6 & 0x3F] +
  15017. lookup[num & 0x3F]
  15018. }
  15019. function encodeChunk (uint8, start, end) {
  15020. var tmp
  15021. var output = []
  15022. for (var i = start; i < end; i += 3) {
  15023. tmp =
  15024. ((uint8[i] << 16) & 0xFF0000) +
  15025. ((uint8[i + 1] << 8) & 0xFF00) +
  15026. (uint8[i + 2] & 0xFF)
  15027. output.push(tripletToBase64(tmp))
  15028. }
  15029. return output.join('')
  15030. }
  15031. function fromByteArray (uint8) {
  15032. var tmp
  15033. var len = uint8.length
  15034. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  15035. var parts = []
  15036. var maxChunkLength = 16383 // must be multiple of 3
  15037. // go through the array every three bytes, we'll deal with trailing stuff later
  15038. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  15039. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  15040. }
  15041. // pad the end with zeros, but make sure to not forget the extra bytes
  15042. if (extraBytes === 1) {
  15043. tmp = uint8[len - 1]
  15044. parts.push(
  15045. lookup[tmp >> 2] +
  15046. lookup[(tmp << 4) & 0x3F] +
  15047. '=='
  15048. )
  15049. } else if (extraBytes === 2) {
  15050. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  15051. parts.push(
  15052. lookup[tmp >> 10] +
  15053. lookup[(tmp >> 4) & 0x3F] +
  15054. lookup[(tmp << 2) & 0x3F] +
  15055. '='
  15056. )
  15057. }
  15058. return parts.join('')
  15059. }
  15060. /***/ }),
  15061. /* 73 */
  15062. /*!***************************************!*\
  15063. !*** ./node_modules/ieee754/index.js ***!
  15064. \***************************************/
  15065. /*! no static exports found */
  15066. /***/ (function(module, exports) {
  15067. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  15068. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  15069. var e, m
  15070. var eLen = (nBytes * 8) - mLen - 1
  15071. var eMax = (1 << eLen) - 1
  15072. var eBias = eMax >> 1
  15073. var nBits = -7
  15074. var i = isLE ? (nBytes - 1) : 0
  15075. var d = isLE ? -1 : 1
  15076. var s = buffer[offset + i]
  15077. i += d
  15078. e = s & ((1 << (-nBits)) - 1)
  15079. s >>= (-nBits)
  15080. nBits += eLen
  15081. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  15082. m = e & ((1 << (-nBits)) - 1)
  15083. e >>= (-nBits)
  15084. nBits += mLen
  15085. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  15086. if (e === 0) {
  15087. e = 1 - eBias
  15088. } else if (e === eMax) {
  15089. return m ? NaN : ((s ? -1 : 1) * Infinity)
  15090. } else {
  15091. m = m + Math.pow(2, mLen)
  15092. e = e - eBias
  15093. }
  15094. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  15095. }
  15096. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  15097. var e, m, c
  15098. var eLen = (nBytes * 8) - mLen - 1
  15099. var eMax = (1 << eLen) - 1
  15100. var eBias = eMax >> 1
  15101. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  15102. var i = isLE ? 0 : (nBytes - 1)
  15103. var d = isLE ? 1 : -1
  15104. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  15105. value = Math.abs(value)
  15106. if (isNaN(value) || value === Infinity) {
  15107. m = isNaN(value) ? 1 : 0
  15108. e = eMax
  15109. } else {
  15110. e = Math.floor(Math.log(value) / Math.LN2)
  15111. if (value * (c = Math.pow(2, -e)) < 1) {
  15112. e--
  15113. c *= 2
  15114. }
  15115. if (e + eBias >= 1) {
  15116. value += rt / c
  15117. } else {
  15118. value += rt * Math.pow(2, 1 - eBias)
  15119. }
  15120. if (value * c >= 2) {
  15121. e++
  15122. c /= 2
  15123. }
  15124. if (e + eBias >= eMax) {
  15125. m = 0
  15126. e = eMax
  15127. } else if (e + eBias >= 1) {
  15128. m = ((value * c) - 1) * Math.pow(2, mLen)
  15129. e = e + eBias
  15130. } else {
  15131. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  15132. e = 0
  15133. }
  15134. }
  15135. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  15136. e = (e << mLen) | m
  15137. eLen += mLen
  15138. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  15139. buffer[offset + i - d] |= s * 128
  15140. }
  15141. /***/ }),
  15142. /* 74 */
  15143. /*!***************************************!*\
  15144. !*** ./node_modules/isarray/index.js ***!
  15145. \***************************************/
  15146. /*! no static exports found */
  15147. /***/ (function(module, exports) {
  15148. var toString = {}.toString;
  15149. module.exports = Array.isArray || function (arr) {
  15150. return toString.call(arr) == '[object Array]';
  15151. };
  15152. /***/ }),
  15153. /* 75 */
  15154. /*!**************************************************************************!*\
  15155. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/util/route.js ***!
  15156. \**************************************************************************/
  15157. /*! no static exports found */
  15158. /***/ (function(module, exports, __webpack_require__) {
  15159. "use strict";
  15160. /* WEBPACK VAR INJECTION */(function(uni) {
  15161. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15162. Object.defineProperty(exports, "__esModule", {
  15163. value: true
  15164. });
  15165. exports.default = void 0;
  15166. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 76));
  15167. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 78));
  15168. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  15169. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  15170. /**
  15171. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  15172. * 并且带有路由拦截功能
  15173. */
  15174. var Router = /*#__PURE__*/function () {
  15175. function Router() {
  15176. (0, _classCallCheck2.default)(this, Router);
  15177. // 原始属性定义
  15178. this.config = {
  15179. type: 'navigateTo',
  15180. url: '',
  15181. delta: 1,
  15182. // navigateBack页面后退时,回退的层数
  15183. params: {},
  15184. // 传递的参数
  15185. animationType: 'pop-in',
  15186. // 窗口动画,只在APP有效
  15187. animationDuration: 300,
  15188. // 窗口动画持续时间,单位毫秒,只在APP有效
  15189. intercept: false // 是否需要拦截
  15190. };
  15191. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  15192. // 这里在构造函数中进行this绑定
  15193. this.route = this.route.bind(this);
  15194. }
  15195. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  15196. (0, _createClass2.default)(Router, [{
  15197. key: "addRootPath",
  15198. value: function addRootPath(url) {
  15199. return url[0] === '/' ? url : "/".concat(url);
  15200. }
  15201. // 整合路由参数
  15202. }, {
  15203. key: "mixinParam",
  15204. value: function mixinParam(url, params) {
  15205. url = url && this.addRootPath(url);
  15206. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  15207. // 如果有url中有get参数,转换后无需带上"?"
  15208. var query = '';
  15209. if (/.*\/.*\?.*=.*/.test(url)) {
  15210. // object对象转为get类型的参数
  15211. query = uni.$u.queryParams(params, false);
  15212. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  15213. return url += "&".concat(query);
  15214. }
  15215. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  15216. query = uni.$u.queryParams(params);
  15217. return url += query;
  15218. }
  15219. // 对外的方法名称
  15220. }, {
  15221. key: "route",
  15222. value: function () {
  15223. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  15224. var options,
  15225. params,
  15226. mergeConfig,
  15227. isNext,
  15228. _args = arguments;
  15229. return _regenerator.default.wrap(function _callee$(_context) {
  15230. while (1) {
  15231. switch (_context.prev = _context.next) {
  15232. case 0:
  15233. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  15234. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  15235. // 合并用户的配置和内部的默认配置
  15236. mergeConfig = {};
  15237. if (typeof options === 'string') {
  15238. // 如果options为字符串,则为route(url, params)的形式
  15239. mergeConfig.url = this.mixinParam(options, params);
  15240. mergeConfig.type = 'navigateTo';
  15241. } else {
  15242. mergeConfig = uni.$u.deepMerge(this.config, options);
  15243. // 否则正常使用mergeConfig中的url和params进行拼接
  15244. mergeConfig.url = this.mixinParam(options.url, options.params);
  15245. }
  15246. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  15247. if (!(mergeConfig.url === uni.$u.page())) {
  15248. _context.next = 6;
  15249. break;
  15250. }
  15251. return _context.abrupt("return");
  15252. case 6:
  15253. if (params.intercept) {
  15254. this.config.intercept = params.intercept;
  15255. }
  15256. // params参数也带给拦截器
  15257. mergeConfig.params = params;
  15258. // 合并内外部参数
  15259. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  15260. // 判断用户是否定义了拦截器
  15261. if (!(typeof uni.$u.routeIntercept === 'function')) {
  15262. _context.next = 16;
  15263. break;
  15264. }
  15265. _context.next = 12;
  15266. return new Promise(function (resolve, reject) {
  15267. uni.$u.routeIntercept(mergeConfig, resolve);
  15268. });
  15269. case 12:
  15270. isNext = _context.sent;
  15271. // 如果isNext为true,则执行路由跳转
  15272. isNext && this.openPage(mergeConfig);
  15273. _context.next = 17;
  15274. break;
  15275. case 16:
  15276. this.openPage(mergeConfig);
  15277. case 17:
  15278. case "end":
  15279. return _context.stop();
  15280. }
  15281. }
  15282. }, _callee, this);
  15283. }));
  15284. function route() {
  15285. return _route.apply(this, arguments);
  15286. }
  15287. return route;
  15288. }() // 执行路由跳转
  15289. }, {
  15290. key: "openPage",
  15291. value: function openPage(config) {
  15292. // 解构参数
  15293. var url = config.url,
  15294. type = config.type,
  15295. delta = config.delta,
  15296. animationType = config.animationType,
  15297. animationDuration = config.animationDuration;
  15298. if (config.type == 'navigateTo' || config.type == 'to') {
  15299. uni.navigateTo({
  15300. url: url,
  15301. animationType: animationType,
  15302. animationDuration: animationDuration
  15303. });
  15304. }
  15305. if (config.type == 'redirectTo' || config.type == 'redirect') {
  15306. uni.redirectTo({
  15307. url: url
  15308. });
  15309. }
  15310. if (config.type == 'switchTab' || config.type == 'tab') {
  15311. uni.switchTab({
  15312. url: url
  15313. });
  15314. }
  15315. if (config.type == 'reLaunch' || config.type == 'launch') {
  15316. uni.reLaunch({
  15317. url: url
  15318. });
  15319. }
  15320. if (config.type == 'navigateBack' || config.type == 'back') {
  15321. uni.navigateBack({
  15322. delta: delta
  15323. });
  15324. }
  15325. }
  15326. }]);
  15327. return Router;
  15328. }();
  15329. var _default = new Router().route;
  15330. exports.default = _default;
  15331. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  15332. /***/ }),
  15333. /* 76 */
  15334. /*!************************************************************************************************!*\
  15335. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  15336. \************************************************************************************************/
  15337. /*! no static exports found */
  15338. /***/ (function(module, exports, __webpack_require__) {
  15339. // TODO(Babel 8): Remove this file.
  15340. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 77)();
  15341. module.exports = runtime;
  15342. /***/ }),
  15343. /* 77 */
  15344. /*!*******************************************************************!*\
  15345. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  15346. \*******************************************************************/
  15347. /*! no static exports found */
  15348. /***/ (function(module, exports, __webpack_require__) {
  15349. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  15350. function _regeneratorRuntime() {
  15351. "use strict";
  15352. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  15353. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  15354. return exports;
  15355. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15356. var exports = {},
  15357. Op = Object.prototype,
  15358. hasOwn = Op.hasOwnProperty,
  15359. defineProperty = Object.defineProperty || function (obj, key, desc) {
  15360. obj[key] = desc.value;
  15361. },
  15362. $Symbol = "function" == typeof Symbol ? Symbol : {},
  15363. iteratorSymbol = $Symbol.iterator || "@@iterator",
  15364. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  15365. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  15366. function define(obj, key, value) {
  15367. return Object.defineProperty(obj, key, {
  15368. value: value,
  15369. enumerable: !0,
  15370. configurable: !0,
  15371. writable: !0
  15372. }), obj[key];
  15373. }
  15374. try {
  15375. define({}, "");
  15376. } catch (err) {
  15377. define = function define(obj, key, value) {
  15378. return obj[key] = value;
  15379. };
  15380. }
  15381. function wrap(innerFn, outerFn, self, tryLocsList) {
  15382. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  15383. generator = Object.create(protoGenerator.prototype),
  15384. context = new Context(tryLocsList || []);
  15385. return defineProperty(generator, "_invoke", {
  15386. value: makeInvokeMethod(innerFn, self, context)
  15387. }), generator;
  15388. }
  15389. function tryCatch(fn, obj, arg) {
  15390. try {
  15391. return {
  15392. type: "normal",
  15393. arg: fn.call(obj, arg)
  15394. };
  15395. } catch (err) {
  15396. return {
  15397. type: "throw",
  15398. arg: err
  15399. };
  15400. }
  15401. }
  15402. exports.wrap = wrap;
  15403. var ContinueSentinel = {};
  15404. function Generator() {}
  15405. function GeneratorFunction() {}
  15406. function GeneratorFunctionPrototype() {}
  15407. var IteratorPrototype = {};
  15408. define(IteratorPrototype, iteratorSymbol, function () {
  15409. return this;
  15410. });
  15411. var getProto = Object.getPrototypeOf,
  15412. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  15413. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  15414. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  15415. function defineIteratorMethods(prototype) {
  15416. ["next", "throw", "return"].forEach(function (method) {
  15417. define(prototype, method, function (arg) {
  15418. return this._invoke(method, arg);
  15419. });
  15420. });
  15421. }
  15422. function AsyncIterator(generator, PromiseImpl) {
  15423. function invoke(method, arg, resolve, reject) {
  15424. var record = tryCatch(generator[method], generator, arg);
  15425. if ("throw" !== record.type) {
  15426. var result = record.arg,
  15427. value = result.value;
  15428. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  15429. invoke("next", value, resolve, reject);
  15430. }, function (err) {
  15431. invoke("throw", err, resolve, reject);
  15432. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  15433. result.value = unwrapped, resolve(result);
  15434. }, function (error) {
  15435. return invoke("throw", error, resolve, reject);
  15436. });
  15437. }
  15438. reject(record.arg);
  15439. }
  15440. var previousPromise;
  15441. defineProperty(this, "_invoke", {
  15442. value: function value(method, arg) {
  15443. function callInvokeWithMethodAndArg() {
  15444. return new PromiseImpl(function (resolve, reject) {
  15445. invoke(method, arg, resolve, reject);
  15446. });
  15447. }
  15448. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  15449. }
  15450. });
  15451. }
  15452. function makeInvokeMethod(innerFn, self, context) {
  15453. var state = "suspendedStart";
  15454. return function (method, arg) {
  15455. if ("executing" === state) throw new Error("Generator is already running");
  15456. if ("completed" === state) {
  15457. if ("throw" === method) throw arg;
  15458. return doneResult();
  15459. }
  15460. for (context.method = method, context.arg = arg;;) {
  15461. var delegate = context.delegate;
  15462. if (delegate) {
  15463. var delegateResult = maybeInvokeDelegate(delegate, context);
  15464. if (delegateResult) {
  15465. if (delegateResult === ContinueSentinel) continue;
  15466. return delegateResult;
  15467. }
  15468. }
  15469. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  15470. if ("suspendedStart" === state) throw state = "completed", context.arg;
  15471. context.dispatchException(context.arg);
  15472. } else "return" === context.method && context.abrupt("return", context.arg);
  15473. state = "executing";
  15474. var record = tryCatch(innerFn, self, context);
  15475. if ("normal" === record.type) {
  15476. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  15477. return {
  15478. value: record.arg,
  15479. done: context.done
  15480. };
  15481. }
  15482. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  15483. }
  15484. };
  15485. }
  15486. function maybeInvokeDelegate(delegate, context) {
  15487. var methodName = context.method,
  15488. method = delegate.iterator[methodName];
  15489. 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;
  15490. var record = tryCatch(method, delegate.iterator, context.arg);
  15491. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  15492. var info = record.arg;
  15493. 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);
  15494. }
  15495. function pushTryEntry(locs) {
  15496. var entry = {
  15497. tryLoc: locs[0]
  15498. };
  15499. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  15500. }
  15501. function resetTryEntry(entry) {
  15502. var record = entry.completion || {};
  15503. record.type = "normal", delete record.arg, entry.completion = record;
  15504. }
  15505. function Context(tryLocsList) {
  15506. this.tryEntries = [{
  15507. tryLoc: "root"
  15508. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  15509. }
  15510. function values(iterable) {
  15511. if (iterable) {
  15512. var iteratorMethod = iterable[iteratorSymbol];
  15513. if (iteratorMethod) return iteratorMethod.call(iterable);
  15514. if ("function" == typeof iterable.next) return iterable;
  15515. if (!isNaN(iterable.length)) {
  15516. var i = -1,
  15517. next = function next() {
  15518. for (; ++i < iterable.length;) {
  15519. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  15520. }
  15521. return next.value = undefined, next.done = !0, next;
  15522. };
  15523. return next.next = next;
  15524. }
  15525. }
  15526. return {
  15527. next: doneResult
  15528. };
  15529. }
  15530. function doneResult() {
  15531. return {
  15532. value: undefined,
  15533. done: !0
  15534. };
  15535. }
  15536. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  15537. value: GeneratorFunctionPrototype,
  15538. configurable: !0
  15539. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  15540. value: GeneratorFunction,
  15541. configurable: !0
  15542. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  15543. var ctor = "function" == typeof genFun && genFun.constructor;
  15544. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  15545. }, exports.mark = function (genFun) {
  15546. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  15547. }, exports.awrap = function (arg) {
  15548. return {
  15549. __await: arg
  15550. };
  15551. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  15552. return this;
  15553. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  15554. void 0 === PromiseImpl && (PromiseImpl = Promise);
  15555. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  15556. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  15557. return result.done ? result.value : iter.next();
  15558. });
  15559. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  15560. return this;
  15561. }), define(Gp, "toString", function () {
  15562. return "[object Generator]";
  15563. }), exports.keys = function (val) {
  15564. var object = Object(val),
  15565. keys = [];
  15566. for (var key in object) {
  15567. keys.push(key);
  15568. }
  15569. return keys.reverse(), function next() {
  15570. for (; keys.length;) {
  15571. var key = keys.pop();
  15572. if (key in object) return next.value = key, next.done = !1, next;
  15573. }
  15574. return next.done = !0, next;
  15575. };
  15576. }, exports.values = values, Context.prototype = {
  15577. constructor: Context,
  15578. reset: function reset(skipTempReset) {
  15579. 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) {
  15580. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  15581. }
  15582. },
  15583. stop: function stop() {
  15584. this.done = !0;
  15585. var rootRecord = this.tryEntries[0].completion;
  15586. if ("throw" === rootRecord.type) throw rootRecord.arg;
  15587. return this.rval;
  15588. },
  15589. dispatchException: function dispatchException(exception) {
  15590. if (this.done) throw exception;
  15591. var context = this;
  15592. function handle(loc, caught) {
  15593. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  15594. }
  15595. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  15596. var entry = this.tryEntries[i],
  15597. record = entry.completion;
  15598. if ("root" === entry.tryLoc) return handle("end");
  15599. if (entry.tryLoc <= this.prev) {
  15600. var hasCatch = hasOwn.call(entry, "catchLoc"),
  15601. hasFinally = hasOwn.call(entry, "finallyLoc");
  15602. if (hasCatch && hasFinally) {
  15603. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  15604. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  15605. } else if (hasCatch) {
  15606. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  15607. } else {
  15608. if (!hasFinally) throw new Error("try statement without catch or finally");
  15609. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  15610. }
  15611. }
  15612. }
  15613. },
  15614. abrupt: function abrupt(type, arg) {
  15615. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  15616. var entry = this.tryEntries[i];
  15617. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  15618. var finallyEntry = entry;
  15619. break;
  15620. }
  15621. }
  15622. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  15623. var record = finallyEntry ? finallyEntry.completion : {};
  15624. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  15625. },
  15626. complete: function complete(record, afterLoc) {
  15627. if ("throw" === record.type) throw record.arg;
  15628. 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;
  15629. },
  15630. finish: function finish(finallyLoc) {
  15631. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  15632. var entry = this.tryEntries[i];
  15633. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  15634. }
  15635. },
  15636. "catch": function _catch(tryLoc) {
  15637. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  15638. var entry = this.tryEntries[i];
  15639. if (entry.tryLoc === tryLoc) {
  15640. var record = entry.completion;
  15641. if ("throw" === record.type) {
  15642. var thrown = record.arg;
  15643. resetTryEntry(entry);
  15644. }
  15645. return thrown;
  15646. }
  15647. }
  15648. throw new Error("illegal catch attempt");
  15649. },
  15650. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  15651. return this.delegate = {
  15652. iterator: values(iterable),
  15653. resultName: resultName,
  15654. nextLoc: nextLoc
  15655. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  15656. }
  15657. }, exports;
  15658. }
  15659. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15660. /***/ }),
  15661. /* 78 */
  15662. /*!*****************************************************************!*\
  15663. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  15664. \*****************************************************************/
  15665. /*! no static exports found */
  15666. /***/ (function(module, exports) {
  15667. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  15668. try {
  15669. var info = gen[key](arg);
  15670. var value = info.value;
  15671. } catch (error) {
  15672. reject(error);
  15673. return;
  15674. }
  15675. if (info.done) {
  15676. resolve(value);
  15677. } else {
  15678. Promise.resolve(value).then(_next, _throw);
  15679. }
  15680. }
  15681. function _asyncToGenerator(fn) {
  15682. return function () {
  15683. var self = this,
  15684. args = arguments;
  15685. return new Promise(function (resolve, reject) {
  15686. var gen = fn.apply(self, args);
  15687. function _next(value) {
  15688. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  15689. }
  15690. function _throw(err) {
  15691. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  15692. }
  15693. _next(undefined);
  15694. });
  15695. };
  15696. }
  15697. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15698. /***/ }),
  15699. /* 79 */
  15700. /*!**************************************************************************************!*\
  15701. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  15702. \**************************************************************************************/
  15703. /*! no static exports found */
  15704. /***/ (function(module, exports, __webpack_require__) {
  15705. "use strict";
  15706. Object.defineProperty(exports, "__esModule", {
  15707. value: true
  15708. });
  15709. exports.default = void 0;
  15710. /**
  15711. * 求两个颜色之间的渐变值
  15712. * @param {string} startColor 开始的颜色
  15713. * @param {string} endColor 结束的颜色
  15714. * @param {number} step 颜色等分的份额
  15715. * */
  15716. function colorGradient() {
  15717. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  15718. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  15719. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  15720. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  15721. var startR = startRGB[0];
  15722. var startG = startRGB[1];
  15723. var startB = startRGB[2];
  15724. var endRGB = hexToRgb(endColor, false);
  15725. var endR = endRGB[0];
  15726. var endG = endRGB[1];
  15727. var endB = endRGB[2];
  15728. var sR = (endR - startR) / step; // 总差值
  15729. var sG = (endG - startG) / step;
  15730. var sB = (endB - startB) / step;
  15731. var colorArr = [];
  15732. for (var i = 0; i < step; i++) {
  15733. // 计算每一步的hex值
  15734. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  15735. // 确保第一个颜色值为startColor的值
  15736. if (i === 0) hex = rgbToHex(startColor);
  15737. // 确保最后一个颜色值为endColor的值
  15738. if (i === step - 1) hex = rgbToHex(endColor);
  15739. colorArr.push(hex);
  15740. }
  15741. return colorArr;
  15742. }
  15743. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  15744. function hexToRgb(sColor) {
  15745. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  15746. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  15747. sColor = String(sColor).toLowerCase();
  15748. if (sColor && reg.test(sColor)) {
  15749. if (sColor.length === 4) {
  15750. var sColorNew = '#';
  15751. for (var i = 1; i < 4; i += 1) {
  15752. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  15753. }
  15754. sColor = sColorNew;
  15755. }
  15756. // 处理六位的颜色值
  15757. var sColorChange = [];
  15758. for (var _i = 1; _i < 7; _i += 2) {
  15759. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  15760. }
  15761. if (!str) {
  15762. return sColorChange;
  15763. }
  15764. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  15765. }
  15766. if (/^(rgb|RGB)/.test(sColor)) {
  15767. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  15768. return arr.map(function (val) {
  15769. return Number(val);
  15770. });
  15771. }
  15772. return sColor;
  15773. }
  15774. // 将rgb表示方式转换为hex表示方式
  15775. function rgbToHex(rgb) {
  15776. var _this = rgb;
  15777. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  15778. if (/^(rgb|RGB)/.test(_this)) {
  15779. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  15780. var strHex = '#';
  15781. for (var i = 0; i < aColor.length; i++) {
  15782. var hex = Number(aColor[i]).toString(16);
  15783. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  15784. if (hex === '0') {
  15785. hex += hex;
  15786. }
  15787. strHex += hex;
  15788. }
  15789. if (strHex.length !== 7) {
  15790. strHex = _this;
  15791. }
  15792. return strHex;
  15793. }
  15794. if (reg.test(_this)) {
  15795. var aNum = _this.replace(/#/, '').split('');
  15796. if (aNum.length === 6) {
  15797. return _this;
  15798. }
  15799. if (aNum.length === 3) {
  15800. var numHex = '#';
  15801. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  15802. numHex += aNum[_i2] + aNum[_i2];
  15803. }
  15804. return numHex;
  15805. }
  15806. } else {
  15807. return _this;
  15808. }
  15809. }
  15810. /**
  15811. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  15812. * sHex为传入的十六进制的色值
  15813. * alpha为rgba的透明度
  15814. */
  15815. function colorToRgba(color, alpha) {
  15816. color = rgbToHex(color);
  15817. // 十六进制颜色值的正则表达式
  15818. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  15819. /* 16进制颜色转为RGB格式 */
  15820. var sColor = String(color).toLowerCase();
  15821. if (sColor && reg.test(sColor)) {
  15822. if (sColor.length === 4) {
  15823. var sColorNew = '#';
  15824. for (var i = 1; i < 4; i += 1) {
  15825. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  15826. }
  15827. sColor = sColorNew;
  15828. }
  15829. // 处理六位的颜色值
  15830. var sColorChange = [];
  15831. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  15832. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  15833. }
  15834. // return sColorChange.join(',')
  15835. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  15836. }
  15837. return sColor;
  15838. }
  15839. var _default = {
  15840. colorGradient: colorGradient,
  15841. hexToRgb: hexToRgb,
  15842. rgbToHex: rgbToHex,
  15843. colorToRgba: colorToRgba
  15844. };
  15845. exports.default = _default;
  15846. /***/ }),
  15847. /* 80 */
  15848. /*!*****************************************************************************!*\
  15849. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/function/test.js ***!
  15850. \*****************************************************************************/
  15851. /*! no static exports found */
  15852. /***/ (function(module, exports, __webpack_require__) {
  15853. "use strict";
  15854. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15855. Object.defineProperty(exports, "__esModule", {
  15856. value: true
  15857. });
  15858. exports.default = void 0;
  15859. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  15860. /**
  15861. * 验证电子邮箱格式
  15862. */
  15863. function email(value) {
  15864. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  15865. }
  15866. /**
  15867. * 验证手机格式
  15868. */
  15869. function mobile(value) {
  15870. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  15871. }
  15872. /**
  15873. * 验证URL格式
  15874. */
  15875. function url(value) {
  15876. 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);
  15877. }
  15878. /**
  15879. * 验证日期格式
  15880. */
  15881. function date(value) {
  15882. if (!value) return false;
  15883. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  15884. if (number(value)) value = +value;
  15885. return !/Invalid|NaN/.test(new Date(value).toString());
  15886. }
  15887. /**
  15888. * 验证ISO类型的日期格式
  15889. */
  15890. function dateISO(value) {
  15891. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  15892. }
  15893. /**
  15894. * 验证十进制数字
  15895. */
  15896. function number(value) {
  15897. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  15898. }
  15899. /**
  15900. * 验证字符串
  15901. */
  15902. function string(value) {
  15903. return typeof value === 'string';
  15904. }
  15905. /**
  15906. * 验证整数
  15907. */
  15908. function digits(value) {
  15909. return /^\d+$/.test(value);
  15910. }
  15911. /**
  15912. * 验证身份证号码
  15913. */
  15914. function idCard(value) {
  15915. 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);
  15916. }
  15917. /**
  15918. * 是否车牌号
  15919. */
  15920. function carNo(value) {
  15921. // 新能源车牌
  15922. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  15923. // 旧车牌
  15924. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  15925. if (value.length === 7) {
  15926. return creg.test(value);
  15927. }
  15928. if (value.length === 8) {
  15929. return xreg.test(value);
  15930. }
  15931. return false;
  15932. }
  15933. /**
  15934. * 金额,只允许2位小数
  15935. */
  15936. function amount(value) {
  15937. // 金额,只允许保留两位小数
  15938. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  15939. }
  15940. /**
  15941. * 中文
  15942. */
  15943. function chinese(value) {
  15944. var reg = /^[\u4e00-\u9fa5]+$/gi;
  15945. return reg.test(value);
  15946. }
  15947. /**
  15948. * 只能输入字母
  15949. */
  15950. function letter(value) {
  15951. return /^[a-zA-Z]*$/.test(value);
  15952. }
  15953. /**
  15954. * 只能是字母或者数字
  15955. */
  15956. function enOrNum(value) {
  15957. // 英文或者数字
  15958. var reg = /^[0-9a-zA-Z]*$/g;
  15959. return reg.test(value);
  15960. }
  15961. /**
  15962. * 验证是否包含某个值
  15963. */
  15964. function contains(value, param) {
  15965. return value.indexOf(param) >= 0;
  15966. }
  15967. /**
  15968. * 验证一个值范围[min, max]
  15969. */
  15970. function range(value, param) {
  15971. return value >= param[0] && value <= param[1];
  15972. }
  15973. /**
  15974. * 验证一个长度范围[min, max]
  15975. */
  15976. function rangeLength(value, param) {
  15977. return value.length >= param[0] && value.length <= param[1];
  15978. }
  15979. /**
  15980. * 是否固定电话
  15981. */
  15982. function landline(value) {
  15983. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  15984. return reg.test(value);
  15985. }
  15986. /**
  15987. * 判断是否为空
  15988. */
  15989. function empty(value) {
  15990. switch ((0, _typeof2.default)(value)) {
  15991. case 'undefined':
  15992. return true;
  15993. case 'string':
  15994. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  15995. break;
  15996. case 'boolean':
  15997. if (!value) return true;
  15998. break;
  15999. case 'number':
  16000. if (value === 0 || isNaN(value)) return true;
  16001. break;
  16002. case 'object':
  16003. if (value === null || value.length === 0) return true;
  16004. for (var i in value) {
  16005. return false;
  16006. }
  16007. return true;
  16008. }
  16009. return false;
  16010. }
  16011. /**
  16012. * 是否json字符串
  16013. */
  16014. function jsonString(value) {
  16015. if (typeof value === 'string') {
  16016. try {
  16017. var obj = JSON.parse(value);
  16018. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  16019. return true;
  16020. }
  16021. return false;
  16022. } catch (e) {
  16023. return false;
  16024. }
  16025. }
  16026. return false;
  16027. }
  16028. /**
  16029. * 是否数组
  16030. */
  16031. function array(value) {
  16032. if (typeof Array.isArray === 'function') {
  16033. return Array.isArray(value);
  16034. }
  16035. return Object.prototype.toString.call(value) === '[object Array]';
  16036. }
  16037. /**
  16038. * 是否对象
  16039. */
  16040. function object(value) {
  16041. return Object.prototype.toString.call(value) === '[object Object]';
  16042. }
  16043. /**
  16044. * 是否短信验证码
  16045. */
  16046. function code(value) {
  16047. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  16048. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  16049. }
  16050. /**
  16051. * 是否函数方法
  16052. * @param {Object} value
  16053. */
  16054. function func(value) {
  16055. return typeof value === 'function';
  16056. }
  16057. /**
  16058. * 是否promise对象
  16059. * @param {Object} value
  16060. */
  16061. function promise(value) {
  16062. return object(value) && func(value.then) && func(value.catch);
  16063. }
  16064. /** 是否图片格式
  16065. * @param {Object} value
  16066. */
  16067. function image(value) {
  16068. var newValue = value.split('?')[0];
  16069. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  16070. return IMAGE_REGEXP.test(newValue);
  16071. }
  16072. /**
  16073. * 是否视频格式
  16074. * @param {Object} value
  16075. */
  16076. function video(value) {
  16077. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  16078. return VIDEO_REGEXP.test(value);
  16079. }
  16080. /**
  16081. * 是否为正则对象
  16082. * @param {Object}
  16083. * @return {Boolean}
  16084. */
  16085. function regExp(o) {
  16086. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  16087. }
  16088. var _default = {
  16089. email: email,
  16090. mobile: mobile,
  16091. url: url,
  16092. date: date,
  16093. dateISO: dateISO,
  16094. number: number,
  16095. digits: digits,
  16096. idCard: idCard,
  16097. carNo: carNo,
  16098. amount: amount,
  16099. chinese: chinese,
  16100. letter: letter,
  16101. enOrNum: enOrNum,
  16102. contains: contains,
  16103. range: range,
  16104. rangeLength: rangeLength,
  16105. empty: empty,
  16106. isEmpty: empty,
  16107. jsonString: jsonString,
  16108. landline: landline,
  16109. object: object,
  16110. array: array,
  16111. code: code,
  16112. func: func,
  16113. promise: promise,
  16114. video: video,
  16115. image: image,
  16116. regExp: regExp,
  16117. string: string
  16118. };
  16119. exports.default = _default;
  16120. /***/ }),
  16121. /* 81 */
  16122. /*!*********************************************************************************!*\
  16123. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/function/debounce.js ***!
  16124. \*********************************************************************************/
  16125. /*! no static exports found */
  16126. /***/ (function(module, exports, __webpack_require__) {
  16127. "use strict";
  16128. Object.defineProperty(exports, "__esModule", {
  16129. value: true
  16130. });
  16131. exports.default = void 0;
  16132. var timeout = null;
  16133. /**
  16134. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  16135. *
  16136. * @param {Function} func 要执行的回调函数
  16137. * @param {Number} wait 延时的时间
  16138. * @param {Boolean} immediate 是否立即执行
  16139. * @return null
  16140. */
  16141. function debounce(func) {
  16142. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  16143. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  16144. // 清除定时器
  16145. if (timeout !== null) clearTimeout(timeout);
  16146. // 立即执行,此类情况一般用不到
  16147. if (immediate) {
  16148. var callNow = !timeout;
  16149. timeout = setTimeout(function () {
  16150. timeout = null;
  16151. }, wait);
  16152. if (callNow) typeof func === 'function' && func();
  16153. } else {
  16154. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  16155. timeout = setTimeout(function () {
  16156. typeof func === 'function' && func();
  16157. }, wait);
  16158. }
  16159. }
  16160. var _default = debounce;
  16161. exports.default = _default;
  16162. /***/ }),
  16163. /* 82 */
  16164. /*!*********************************************************************************!*\
  16165. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/function/throttle.js ***!
  16166. \*********************************************************************************/
  16167. /*! no static exports found */
  16168. /***/ (function(module, exports, __webpack_require__) {
  16169. "use strict";
  16170. Object.defineProperty(exports, "__esModule", {
  16171. value: true
  16172. });
  16173. exports.default = void 0;
  16174. var timer;
  16175. var flag;
  16176. /**
  16177. * 节流原理:在一定时间内,只能触发一次
  16178. *
  16179. * @param {Function} func 要执行的回调函数
  16180. * @param {Number} wait 延时的时间
  16181. * @param {Boolean} immediate 是否立即执行
  16182. * @return null
  16183. */
  16184. function throttle(func) {
  16185. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  16186. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  16187. if (immediate) {
  16188. if (!flag) {
  16189. flag = true;
  16190. // 如果是立即执行,则在wait毫秒内开始时执行
  16191. typeof func === 'function' && func();
  16192. timer = setTimeout(function () {
  16193. flag = false;
  16194. }, wait);
  16195. }
  16196. } else if (!flag) {
  16197. flag = true;
  16198. // 如果是非立即执行,则在wait毫秒内的结束处执行
  16199. timer = setTimeout(function () {
  16200. flag = false;
  16201. typeof func === 'function' && func();
  16202. }, wait);
  16203. }
  16204. }
  16205. var _default = throttle;
  16206. exports.default = _default;
  16207. /***/ }),
  16208. /* 83 */
  16209. /*!******************************************************************************!*\
  16210. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/function/index.js ***!
  16211. \******************************************************************************/
  16212. /*! no static exports found */
  16213. /***/ (function(module, exports, __webpack_require__) {
  16214. "use strict";
  16215. /* WEBPACK VAR INJECTION */(function(uni) {
  16216. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16217. Object.defineProperty(exports, "__esModule", {
  16218. value: true
  16219. });
  16220. exports.default = void 0;
  16221. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  16222. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  16223. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 80));
  16224. var _digit = __webpack_require__(/*! ./digit.js */ 84);
  16225. /**
  16226. * @description 如果value小于min,取min;如果value大于max,取max
  16227. * @param {number} min
  16228. * @param {number} max
  16229. * @param {number} value
  16230. */
  16231. function range() {
  16232. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  16233. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  16234. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  16235. return Math.max(min, Math.min(max, Number(value)));
  16236. }
  16237. /**
  16238. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  16239. * @param {number|string} value 用户传递值的px值
  16240. * @param {boolean} unit
  16241. * @returns {number|string}
  16242. */
  16243. function getPx(value) {
  16244. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  16245. if (_test.default.number(value)) {
  16246. return unit ? "".concat(value, "px") : Number(value);
  16247. }
  16248. // 如果带有rpx,先取出其数值部分,再转为px值
  16249. if (/(rpx|upx)$/.test(value)) {
  16250. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  16251. }
  16252. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  16253. }
  16254. /**
  16255. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  16256. * @param {number} value 堵塞时间 单位ms 毫秒
  16257. * @returns {Promise} 返回promise
  16258. */
  16259. function sleep() {
  16260. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  16261. return new Promise(function (resolve) {
  16262. setTimeout(function () {
  16263. resolve();
  16264. }, value);
  16265. });
  16266. }
  16267. /**
  16268. * @description 运行期判断平台
  16269. * @returns {string} 返回所在平台(小写)
  16270. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  16271. */
  16272. function os() {
  16273. return uni.getSystemInfoSync().platform.toLowerCase();
  16274. }
  16275. /**
  16276. * @description 获取系统信息同步接口
  16277. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  16278. */
  16279. function sys() {
  16280. return uni.getSystemInfoSync();
  16281. }
  16282. /**
  16283. * @description 取一个区间数
  16284. * @param {Number} min 最小值
  16285. * @param {Number} max 最大值
  16286. */
  16287. function random(min, max) {
  16288. if (min >= 0 && max > 0 && max >= min) {
  16289. var gab = max - min + 1;
  16290. return Math.floor(Math.random() * gab + min);
  16291. }
  16292. return 0;
  16293. }
  16294. /**
  16295. * @param {Number} len uuid的长度
  16296. * @param {Boolean} firstU 将返回的首字母置为"u"
  16297. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  16298. */
  16299. function guid() {
  16300. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  16301. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  16302. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  16303. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  16304. var uuid = [];
  16305. radix = radix || chars.length;
  16306. if (len) {
  16307. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  16308. for (var i = 0; i < len; i++) {
  16309. uuid[i] = chars[0 | Math.random() * radix];
  16310. }
  16311. } else {
  16312. var r;
  16313. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  16314. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  16315. uuid[14] = '4';
  16316. for (var _i = 0; _i < 36; _i++) {
  16317. if (!uuid[_i]) {
  16318. r = 0 | Math.random() * 16;
  16319. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  16320. }
  16321. }
  16322. }
  16323. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  16324. if (firstU) {
  16325. uuid.shift();
  16326. return "u".concat(uuid.join(''));
  16327. }
  16328. return uuid.join('');
  16329. }
  16330. /**
  16331. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  16332. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  16333. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  16334. 值(默认为undefined),就是查找最顶层的$parent
  16335. * @param {string|undefined} name 父组件的参数名
  16336. */
  16337. function $parent() {
  16338. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  16339. var parent = this.$parent;
  16340. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  16341. while (parent) {
  16342. // 父组件
  16343. if (parent.$options && parent.$options.name !== name) {
  16344. // 如果组件的name不相等,继续上一级寻找
  16345. parent = parent.$parent;
  16346. } else {
  16347. return parent;
  16348. }
  16349. }
  16350. return false;
  16351. }
  16352. /**
  16353. * @description 样式转换
  16354. * 对象转字符串,或者字符串转对象
  16355. * @param {object | string} customStyle 需要转换的目标
  16356. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  16357. * @returns {object|string}
  16358. */
  16359. function addStyle(customStyle) {
  16360. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  16361. // 字符串转字符串,对象转对象情形,直接返回
  16362. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  16363. return customStyle;
  16364. }
  16365. // 字符串转对象
  16366. if (target === 'object') {
  16367. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  16368. customStyle = trim(customStyle);
  16369. // 根据";"将字符串转为数组形式
  16370. var styleArray = customStyle.split(';');
  16371. var style = {};
  16372. // 历遍数组,拼接成对象
  16373. for (var i = 0; i < styleArray.length; i++) {
  16374. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  16375. if (styleArray[i]) {
  16376. var item = styleArray[i].split(':');
  16377. style[trim(item[0])] = trim(item[1]);
  16378. }
  16379. }
  16380. return style;
  16381. }
  16382. // 这里为对象转字符串形式
  16383. var string = '';
  16384. for (var _i2 in customStyle) {
  16385. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  16386. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  16387. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  16388. }
  16389. // 去除两端空格
  16390. return trim(string);
  16391. }
  16392. /**
  16393. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  16394. * @param {string|number} value 需要添加单位的值
  16395. * @param {string} unit 添加的单位名 比如px
  16396. */
  16397. function addUnit() {
  16398. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  16399. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  16400. 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';
  16401. value = String(value);
  16402. // 用uView内置验证规则中的number判断是否为数值
  16403. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  16404. }
  16405. /**
  16406. * @description 深度克隆
  16407. * @param {object} obj 需要深度克隆的对象
  16408. * @param cache 缓存
  16409. * @returns {*} 克隆后的对象或者原值(不是对象)
  16410. */
  16411. function deepClone(obj) {
  16412. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  16413. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  16414. if (cache.has(obj)) return cache.get(obj);
  16415. var clone;
  16416. if (obj instanceof Date) {
  16417. clone = new Date(obj.getTime());
  16418. } else if (obj instanceof RegExp) {
  16419. clone = new RegExp(obj);
  16420. } else if (obj instanceof Map) {
  16421. clone = new Map(Array.from(obj, function (_ref) {
  16422. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  16423. key = _ref2[0],
  16424. value = _ref2[1];
  16425. return [key, deepClone(value, cache)];
  16426. }));
  16427. } else if (obj instanceof Set) {
  16428. clone = new Set(Array.from(obj, function (value) {
  16429. return deepClone(value, cache);
  16430. }));
  16431. } else if (Array.isArray(obj)) {
  16432. clone = obj.map(function (value) {
  16433. return deepClone(value, cache);
  16434. });
  16435. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  16436. clone = Object.create(Object.getPrototypeOf(obj));
  16437. cache.set(obj, clone);
  16438. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  16439. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  16440. key = _Object$entries$_i[0],
  16441. value = _Object$entries$_i[1];
  16442. clone[key] = deepClone(value, cache);
  16443. }
  16444. } else {
  16445. clone = Object.assign({}, obj);
  16446. }
  16447. cache.set(obj, clone);
  16448. return clone;
  16449. }
  16450. /**
  16451. * @description JS对象深度合并
  16452. * @param {object} target 需要拷贝的对象
  16453. * @param {object} source 拷贝的来源对象
  16454. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  16455. */
  16456. function deepMerge() {
  16457. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16458. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16459. target = deepClone(target);
  16460. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  16461. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  16462. for (var prop in source) {
  16463. if (!source.hasOwnProperty(prop)) continue;
  16464. var sourceValue = source[prop];
  16465. var targetValue = merged[prop];
  16466. if (sourceValue instanceof Date) {
  16467. merged[prop] = new Date(sourceValue);
  16468. } else if (sourceValue instanceof RegExp) {
  16469. merged[prop] = new RegExp(sourceValue);
  16470. } else if (sourceValue instanceof Map) {
  16471. merged[prop] = new Map(sourceValue);
  16472. } else if (sourceValue instanceof Set) {
  16473. merged[prop] = new Set(sourceValue);
  16474. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  16475. merged[prop] = deepMerge(targetValue, sourceValue);
  16476. } else {
  16477. merged[prop] = sourceValue;
  16478. }
  16479. }
  16480. return merged;
  16481. }
  16482. /**
  16483. * @description error提示
  16484. * @param {*} err 错误内容
  16485. */
  16486. function error(err) {
  16487. // 开发环境才提示,生产环境不会提示
  16488. if (true) {
  16489. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  16490. }
  16491. }
  16492. /**
  16493. * @description 打乱数组
  16494. * @param {array} array 需要打乱的数组
  16495. * @returns {array} 打乱后的数组
  16496. */
  16497. function randomArray() {
  16498. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16499. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  16500. return array.sort(function () {
  16501. return Math.random() - 0.5;
  16502. });
  16503. }
  16504. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  16505. // 所以这里做一个兼容polyfill的兼容处理
  16506. if (!String.prototype.padStart) {
  16507. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  16508. String.prototype.padStart = function (maxLength) {
  16509. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  16510. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  16511. throw new TypeError('fillString must be String');
  16512. }
  16513. var str = this;
  16514. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  16515. if (str.length >= maxLength) return String(str);
  16516. var fillLength = maxLength - str.length;
  16517. var times = Math.ceil(fillLength / fillString.length);
  16518. while (times >>= 1) {
  16519. fillString += fillString;
  16520. if (times === 1) {
  16521. fillString += fillString;
  16522. }
  16523. }
  16524. return fillString.slice(0, fillLength) + str;
  16525. };
  16526. }
  16527. /**
  16528. * @description 格式化时间
  16529. * @param {String|Number} dateTime 需要格式化的时间戳
  16530. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  16531. * @returns {string} 返回格式化后的字符串
  16532. */
  16533. function timeFormat() {
  16534. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  16535. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  16536. var date;
  16537. // 若传入时间为假值,则取当前时间
  16538. if (!dateTime) {
  16539. date = new Date();
  16540. }
  16541. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  16542. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  16543. date = new Date(dateTime * 1000);
  16544. }
  16545. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  16546. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  16547. date = new Date(Number(dateTime));
  16548. }
  16549. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  16550. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  16551. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  16552. date = new Date(dateTime.replace(/-/g, '/'));
  16553. }
  16554. // 其他都认为符合 RFC 2822 规范
  16555. else {
  16556. date = new Date(dateTime);
  16557. }
  16558. var timeSource = {
  16559. 'y': date.getFullYear().toString(),
  16560. // 年
  16561. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  16562. // 月
  16563. 'd': date.getDate().toString().padStart(2, '0'),
  16564. // 日
  16565. 'h': date.getHours().toString().padStart(2, '0'),
  16566. // 时
  16567. 'M': date.getMinutes().toString().padStart(2, '0'),
  16568. // 分
  16569. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  16570. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  16571. };
  16572. for (var key in timeSource) {
  16573. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  16574. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  16575. ret = _ref4[0];
  16576. if (ret) {
  16577. // 年可能只需展示两位
  16578. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  16579. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  16580. }
  16581. }
  16582. return formatStr;
  16583. }
  16584. /**
  16585. * @description 时间戳转为多久之前
  16586. * @param {String|Number} timestamp 时间戳
  16587. * @param {String|Boolean} format
  16588. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  16589. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  16590. * @returns {string} 转化后的内容
  16591. */
  16592. function timeFrom() {
  16593. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  16594. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  16595. if (timestamp == null) timestamp = Number(new Date());
  16596. timestamp = parseInt(timestamp);
  16597. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  16598. if (timestamp.toString().length == 10) timestamp *= 1000;
  16599. var timer = new Date().getTime() - timestamp;
  16600. timer = parseInt(timer / 1000);
  16601. // 如果小于5分钟,则返回"刚刚",其他以此类推
  16602. var tips = '';
  16603. switch (true) {
  16604. case timer < 300:
  16605. tips = '刚刚';
  16606. break;
  16607. case timer >= 300 && timer < 3600:
  16608. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  16609. break;
  16610. case timer >= 3600 && timer < 86400:
  16611. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  16612. break;
  16613. case timer >= 86400 && timer < 2592000:
  16614. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  16615. break;
  16616. default:
  16617. // 如果format为false,则无论什么时间戳,都显示xx之前
  16618. if (format === false) {
  16619. if (timer >= 2592000 && timer < 365 * 86400) {
  16620. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  16621. } else {
  16622. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  16623. }
  16624. } else {
  16625. tips = timeFormat(timestamp, format);
  16626. }
  16627. }
  16628. return tips;
  16629. }
  16630. /**
  16631. * @description 去除空格
  16632. * @param String str 需要去除空格的字符串
  16633. * @param String pos both(左右)|left|right|all 默认both
  16634. */
  16635. function trim(str) {
  16636. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  16637. str = String(str);
  16638. if (pos == 'both') {
  16639. return str.replace(/^\s+|\s+$/g, '');
  16640. }
  16641. if (pos == 'left') {
  16642. return str.replace(/^\s*/, '');
  16643. }
  16644. if (pos == 'right') {
  16645. return str.replace(/(\s*$)/g, '');
  16646. }
  16647. if (pos == 'all') {
  16648. return str.replace(/\s+/g, '');
  16649. }
  16650. return str;
  16651. }
  16652. /**
  16653. * @description 对象转url参数
  16654. * @param {object} data,对象
  16655. * @param {Boolean} isPrefix,是否自动加上"?"
  16656. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  16657. */
  16658. function queryParams() {
  16659. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16660. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  16661. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  16662. var prefix = isPrefix ? '?' : '';
  16663. var _result = [];
  16664. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  16665. var _loop = function _loop(key) {
  16666. var value = data[key];
  16667. // 去掉为空的参数
  16668. if (['', undefined, null].indexOf(value) >= 0) {
  16669. return "continue";
  16670. }
  16671. // 如果值为数组,另行处理
  16672. if (value.constructor === Array) {
  16673. // e.g. {ids: [1, 2, 3]}
  16674. switch (arrayFormat) {
  16675. case 'indices':
  16676. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  16677. for (var i = 0; i < value.length; i++) {
  16678. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  16679. }
  16680. break;
  16681. case 'brackets':
  16682. // 结果: ids[]=1&ids[]=2&ids[]=3
  16683. value.forEach(function (_value) {
  16684. _result.push("".concat(key, "[]=").concat(_value));
  16685. });
  16686. break;
  16687. case 'repeat':
  16688. // 结果: ids=1&ids=2&ids=3
  16689. value.forEach(function (_value) {
  16690. _result.push("".concat(key, "=").concat(_value));
  16691. });
  16692. break;
  16693. case 'comma':
  16694. // 结果: ids=1,2,3
  16695. var commaStr = '';
  16696. value.forEach(function (_value) {
  16697. commaStr += (commaStr ? ',' : '') + _value;
  16698. });
  16699. _result.push("".concat(key, "=").concat(commaStr));
  16700. break;
  16701. default:
  16702. value.forEach(function (_value) {
  16703. _result.push("".concat(key, "[]=").concat(_value));
  16704. });
  16705. }
  16706. } else {
  16707. _result.push("".concat(key, "=").concat(value));
  16708. }
  16709. };
  16710. for (var key in data) {
  16711. var _ret = _loop(key);
  16712. if (_ret === "continue") continue;
  16713. }
  16714. return _result.length ? prefix + _result.join('&') : '';
  16715. }
  16716. /**
  16717. * 显示消息提示框
  16718. * @param {String} title 提示的内容,长度与 icon 取值有关。
  16719. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  16720. */
  16721. function toast(title) {
  16722. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  16723. uni.showToast({
  16724. title: String(title),
  16725. icon: 'none',
  16726. duration: duration
  16727. });
  16728. }
  16729. /**
  16730. * @description 根据主题type值,获取对应的图标
  16731. * @param {String} type 主题名称,primary|info|error|warning|success
  16732. * @param {boolean} fill 是否使用fill填充实体的图标
  16733. */
  16734. function type2icon() {
  16735. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  16736. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  16737. // 如果非预置值,默认为success
  16738. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  16739. var iconName = '';
  16740. // 目前(2019-12-12),info和primary使用同一个图标
  16741. switch (type) {
  16742. case 'primary':
  16743. iconName = 'info-circle';
  16744. break;
  16745. case 'info':
  16746. iconName = 'info-circle';
  16747. break;
  16748. case 'error':
  16749. iconName = 'close-circle';
  16750. break;
  16751. case 'warning':
  16752. iconName = 'error-circle';
  16753. break;
  16754. case 'success':
  16755. iconName = 'checkmark-circle';
  16756. break;
  16757. default:
  16758. iconName = 'checkmark-circle';
  16759. }
  16760. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  16761. if (fill) iconName += '-fill';
  16762. return iconName;
  16763. }
  16764. /**
  16765. * @description 数字格式化
  16766. * @param {number|string} number 要格式化的数字
  16767. * @param {number} decimals 保留几位小数
  16768. * @param {string} decimalPoint 小数点符号
  16769. * @param {string} thousandsSeparator 千分位符号
  16770. * @returns {string} 格式化后的数字
  16771. */
  16772. function priceFormat(number) {
  16773. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  16774. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  16775. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  16776. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  16777. var n = !isFinite(+number) ? 0 : +number;
  16778. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  16779. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  16780. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  16781. var s = '';
  16782. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  16783. var re = /(-?\d+)(\d{3})/;
  16784. while (re.test(s[0])) {
  16785. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  16786. }
  16787. if ((s[1] || '').length < prec) {
  16788. s[1] = s[1] || '';
  16789. s[1] += new Array(prec - s[1].length + 1).join('0');
  16790. }
  16791. return s.join(dec);
  16792. }
  16793. /**
  16794. * @description 获取duration值
  16795. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  16796. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  16797. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  16798. * @param {boolean} unit 提示: 如果是false 默认返回number
  16799. * @return {string|number}
  16800. */
  16801. function getDuration(value) {
  16802. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  16803. var valueNum = parseInt(value);
  16804. if (unit) {
  16805. if (/s$/.test(value)) return value;
  16806. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  16807. }
  16808. if (/ms$/.test(value)) return valueNum;
  16809. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  16810. return valueNum;
  16811. }
  16812. /**
  16813. * @description 日期的月或日补零操作
  16814. * @param {String} value 需要补零的值
  16815. */
  16816. function padZero(value) {
  16817. return "00".concat(value).slice(-2);
  16818. }
  16819. /**
  16820. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  16821. * @param {*} instance
  16822. * @param {*} event
  16823. */
  16824. function formValidate(instance, event) {
  16825. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  16826. var form = uni.$u.$parent.call(instance, 'u-form');
  16827. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  16828. // 同时将form-item的pros传递给form,让其进行精确对象验证
  16829. if (formItem && form) {
  16830. form.validateField(formItem.prop, function () {}, event);
  16831. }
  16832. }
  16833. /**
  16834. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  16835. * @param {object} obj 对象
  16836. * @param {string} key 需要获取的属性字段
  16837. * @returns {*}
  16838. */
  16839. function getProperty(obj, key) {
  16840. if (!obj) {
  16841. return;
  16842. }
  16843. if (typeof key !== 'string' || key === '') {
  16844. return '';
  16845. }
  16846. if (key.indexOf('.') !== -1) {
  16847. var keys = key.split('.');
  16848. var firstObj = obj[keys[0]] || {};
  16849. for (var i = 1; i < keys.length; i++) {
  16850. if (firstObj) {
  16851. firstObj = firstObj[keys[i]];
  16852. }
  16853. }
  16854. return firstObj;
  16855. }
  16856. return obj[key];
  16857. }
  16858. /**
  16859. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  16860. * @param {object} obj 对象
  16861. * @param {string} key 需要设置的属性
  16862. * @param {string} value 设置的值
  16863. */
  16864. function setProperty(obj, key, value) {
  16865. if (!obj) {
  16866. return;
  16867. }
  16868. // 递归赋值
  16869. var inFn = function inFn(_obj, keys, v) {
  16870. // 最后一个属性key
  16871. if (keys.length === 1) {
  16872. _obj[keys[0]] = v;
  16873. return;
  16874. }
  16875. // 0~length-1个key
  16876. while (keys.length > 1) {
  16877. var k = keys[0];
  16878. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  16879. _obj[k] = {};
  16880. }
  16881. var _key = keys.shift();
  16882. // 自调用判断是否存在属性,不存在则自动创建对象
  16883. inFn(_obj[k], keys, v);
  16884. }
  16885. };
  16886. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  16887. // 支持多层级赋值操作
  16888. var keys = key.split('.');
  16889. inFn(obj, keys, value);
  16890. } else {
  16891. obj[key] = value;
  16892. }
  16893. }
  16894. /**
  16895. * @description 获取当前页面路径
  16896. */
  16897. function page() {
  16898. var _pages$route, _pages;
  16899. var pages = getCurrentPages();
  16900. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  16901. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  16902. }
  16903. /**
  16904. * @description 获取当前路由栈实例数组
  16905. */
  16906. function pages() {
  16907. var pages = getCurrentPages();
  16908. return pages;
  16909. }
  16910. /**
  16911. * 获取页面历史栈指定层实例
  16912. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  16913. */
  16914. function getHistoryPage() {
  16915. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  16916. var pages = getCurrentPages();
  16917. var len = pages.length;
  16918. return pages[len - 1 + back];
  16919. }
  16920. /**
  16921. * @description 修改uView内置属性值
  16922. * @param {object} props 修改内置props属性
  16923. * @param {object} config 修改内置config属性
  16924. * @param {object} color 修改内置color属性
  16925. * @param {object} zIndex 修改内置zIndex属性
  16926. */
  16927. function setConfig(_ref5) {
  16928. var _ref5$props = _ref5.props,
  16929. props = _ref5$props === void 0 ? {} : _ref5$props,
  16930. _ref5$config = _ref5.config,
  16931. config = _ref5$config === void 0 ? {} : _ref5$config,
  16932. _ref5$color = _ref5.color,
  16933. color = _ref5$color === void 0 ? {} : _ref5$color,
  16934. _ref5$zIndex = _ref5.zIndex,
  16935. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  16936. var deepMerge = uni.$u.deepMerge;
  16937. uni.$u.config = deepMerge(uni.$u.config, config);
  16938. uni.$u.props = deepMerge(uni.$u.props, props);
  16939. uni.$u.color = deepMerge(uni.$u.color, color);
  16940. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  16941. }
  16942. var _default = {
  16943. range: range,
  16944. getPx: getPx,
  16945. sleep: sleep,
  16946. os: os,
  16947. sys: sys,
  16948. random: random,
  16949. guid: guid,
  16950. $parent: $parent,
  16951. addStyle: addStyle,
  16952. addUnit: addUnit,
  16953. deepClone: deepClone,
  16954. deepMerge: deepMerge,
  16955. error: error,
  16956. randomArray: randomArray,
  16957. timeFormat: timeFormat,
  16958. timeFrom: timeFrom,
  16959. trim: trim,
  16960. queryParams: queryParams,
  16961. toast: toast,
  16962. type2icon: type2icon,
  16963. priceFormat: priceFormat,
  16964. getDuration: getDuration,
  16965. padZero: padZero,
  16966. formValidate: formValidate,
  16967. getProperty: getProperty,
  16968. setProperty: setProperty,
  16969. page: page,
  16970. pages: pages,
  16971. getHistoryPage: getHistoryPage,
  16972. setConfig: setConfig
  16973. };
  16974. exports.default = _default;
  16975. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  16976. /***/ }),
  16977. /* 84 */
  16978. /*!******************************************************************************!*\
  16979. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/function/digit.js ***!
  16980. \******************************************************************************/
  16981. /*! no static exports found */
  16982. /***/ (function(module, exports, __webpack_require__) {
  16983. "use strict";
  16984. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16985. Object.defineProperty(exports, "__esModule", {
  16986. value: true
  16987. });
  16988. exports.default = void 0;
  16989. exports.divide = divide;
  16990. exports.enableBoundaryChecking = enableBoundaryChecking;
  16991. exports.minus = minus;
  16992. exports.plus = plus;
  16993. exports.round = round;
  16994. exports.times = times;
  16995. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 85));
  16996. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  16997. /**
  16998. * 把错误的数据转正
  16999. * @private
  17000. * @example strip(0.09999999999999998)=0.1
  17001. */
  17002. function strip(num) {
  17003. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  17004. return +parseFloat(Number(num).toPrecision(precision));
  17005. }
  17006. /**
  17007. * Return digits length of a number
  17008. * @private
  17009. * @param {*number} num Input number
  17010. */
  17011. function digitLength(num) {
  17012. // Get digit length of e
  17013. var eSplit = num.toString().split(/[eE]/);
  17014. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  17015. return len > 0 ? len : 0;
  17016. }
  17017. /**
  17018. * 把小数转成整数,如果是小数则放大成整数
  17019. * @private
  17020. * @param {*number} num 输入数
  17021. */
  17022. function float2Fixed(num) {
  17023. if (num.toString().indexOf('e') === -1) {
  17024. return Number(num.toString().replace('.', ''));
  17025. }
  17026. var dLen = digitLength(num);
  17027. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  17028. }
  17029. /**
  17030. * 检测数字是否越界,如果越界给出提示
  17031. * @private
  17032. * @param {*number} num 输入数
  17033. */
  17034. function checkBoundary(num) {
  17035. if (_boundaryCheckingState) {
  17036. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  17037. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  17038. }
  17039. }
  17040. }
  17041. /**
  17042. * 把递归操作扁平迭代化
  17043. * @param {number[]} arr 要操作的数字数组
  17044. * @param {function} operation 迭代操作
  17045. * @private
  17046. */
  17047. function iteratorOperation(arr, operation) {
  17048. var _arr = (0, _toArray2.default)(arr),
  17049. num1 = _arr[0],
  17050. num2 = _arr[1],
  17051. others = _arr.slice(2);
  17052. var res = operation(num1, num2);
  17053. others.forEach(function (num) {
  17054. res = operation(res, num);
  17055. });
  17056. return res;
  17057. }
  17058. /**
  17059. * 高精度乘法
  17060. * @export
  17061. */
  17062. function times() {
  17063. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  17064. nums[_key] = arguments[_key];
  17065. }
  17066. if (nums.length > 2) {
  17067. return iteratorOperation(nums, times);
  17068. }
  17069. var num1 = nums[0],
  17070. num2 = nums[1];
  17071. var num1Changed = float2Fixed(num1);
  17072. var num2Changed = float2Fixed(num2);
  17073. var baseNum = digitLength(num1) + digitLength(num2);
  17074. var leftValue = num1Changed * num2Changed;
  17075. checkBoundary(leftValue);
  17076. return leftValue / Math.pow(10, baseNum);
  17077. }
  17078. /**
  17079. * 高精度加法
  17080. * @export
  17081. */
  17082. function plus() {
  17083. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  17084. nums[_key2] = arguments[_key2];
  17085. }
  17086. if (nums.length > 2) {
  17087. return iteratorOperation(nums, plus);
  17088. }
  17089. var num1 = nums[0],
  17090. num2 = nums[1];
  17091. // 取最大的小数位
  17092. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  17093. // 把小数都转为整数然后再计算
  17094. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  17095. }
  17096. /**
  17097. * 高精度减法
  17098. * @export
  17099. */
  17100. function minus() {
  17101. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  17102. nums[_key3] = arguments[_key3];
  17103. }
  17104. if (nums.length > 2) {
  17105. return iteratorOperation(nums, minus);
  17106. }
  17107. var num1 = nums[0],
  17108. num2 = nums[1];
  17109. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  17110. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  17111. }
  17112. /**
  17113. * 高精度除法
  17114. * @export
  17115. */
  17116. function divide() {
  17117. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  17118. nums[_key4] = arguments[_key4];
  17119. }
  17120. if (nums.length > 2) {
  17121. return iteratorOperation(nums, divide);
  17122. }
  17123. var num1 = nums[0],
  17124. num2 = nums[1];
  17125. var num1Changed = float2Fixed(num1);
  17126. var num2Changed = float2Fixed(num2);
  17127. checkBoundary(num1Changed);
  17128. checkBoundary(num2Changed);
  17129. // 重要,这里必须用strip进行修正
  17130. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  17131. }
  17132. /**
  17133. * 四舍五入
  17134. * @export
  17135. */
  17136. function round(num, ratio) {
  17137. var base = Math.pow(10, ratio);
  17138. var result = divide(Math.round(Math.abs(times(num, base))), base);
  17139. if (num < 0 && result !== 0) {
  17140. result = times(result, -1);
  17141. }
  17142. // 位数不足则补0
  17143. return result;
  17144. }
  17145. /**
  17146. * 是否进行边界检查,默认开启
  17147. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  17148. * @export
  17149. */
  17150. function enableBoundaryChecking() {
  17151. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  17152. _boundaryCheckingState = flag;
  17153. }
  17154. var _default = {
  17155. times: times,
  17156. plus: plus,
  17157. minus: minus,
  17158. divide: divide,
  17159. round: round,
  17160. enableBoundaryChecking: enableBoundaryChecking
  17161. };
  17162. exports.default = _default;
  17163. /***/ }),
  17164. /* 85 */
  17165. /*!********************************************************!*\
  17166. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  17167. \********************************************************/
  17168. /*! no static exports found */
  17169. /***/ (function(module, exports, __webpack_require__) {
  17170. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  17171. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  17172. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  17173. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  17174. function _toArray(arr) {
  17175. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  17176. }
  17177. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  17178. /***/ }),
  17179. /* 86 */
  17180. /*!*****************************************************************************!*\
  17181. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/config.js ***!
  17182. \*****************************************************************************/
  17183. /*! no static exports found */
  17184. /***/ (function(module, exports, __webpack_require__) {
  17185. "use strict";
  17186. Object.defineProperty(exports, "__esModule", {
  17187. value: true
  17188. });
  17189. exports.default = void 0;
  17190. // 此版本发布于2023-03-27
  17191. var version = '2.0.36';
  17192. // 开发环境才提示,生产环境不会提示
  17193. if (true) {
  17194. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  17195. }
  17196. var _default = {
  17197. v: version,
  17198. version: version,
  17199. // 主题名称
  17200. type: ['primary', 'success', 'info', 'error', 'warning'],
  17201. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  17202. color: {
  17203. 'u-primary': '#2979ff',
  17204. 'u-warning': '#ff9900',
  17205. 'u-success': '#19be6b',
  17206. 'u-error': '#fa3534',
  17207. 'u-info': '#909399',
  17208. 'u-main-color': '#303133',
  17209. 'u-content-color': '#606266',
  17210. 'u-tips-color': '#909399',
  17211. 'u-light-color': '#c0c4cc'
  17212. },
  17213. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  17214. unit: 'px'
  17215. };
  17216. exports.default = _default;
  17217. /***/ }),
  17218. /* 87 */
  17219. /*!****************************************************************************!*\
  17220. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props.js ***!
  17221. \****************************************************************************/
  17222. /*! no static exports found */
  17223. /***/ (function(module, exports, __webpack_require__) {
  17224. "use strict";
  17225. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17226. Object.defineProperty(exports, "__esModule", {
  17227. value: true
  17228. });
  17229. exports.default = void 0;
  17230. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  17231. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 86));
  17232. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 88));
  17233. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 89));
  17234. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 90));
  17235. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 91));
  17236. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 92));
  17237. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 93));
  17238. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 94));
  17239. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 95));
  17240. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 96));
  17241. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 97));
  17242. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 98));
  17243. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 99));
  17244. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 100));
  17245. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 101));
  17246. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 102));
  17247. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 103));
  17248. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 104));
  17249. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 105));
  17250. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 106));
  17251. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 107));
  17252. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 108));
  17253. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 109));
  17254. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 110));
  17255. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 111));
  17256. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 112));
  17257. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 113));
  17258. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 114));
  17259. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 115));
  17260. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 116));
  17261. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 117));
  17262. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 118));
  17263. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 119));
  17264. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 120));
  17265. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 121));
  17266. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 122));
  17267. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 123));
  17268. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 124));
  17269. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 125));
  17270. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 126));
  17271. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 127));
  17272. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 128));
  17273. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 129));
  17274. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 130));
  17275. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 131));
  17276. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 132));
  17277. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 133));
  17278. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 134));
  17279. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 136));
  17280. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 137));
  17281. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 138));
  17282. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 139));
  17283. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 140));
  17284. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 141));
  17285. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 142));
  17286. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 143));
  17287. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 144));
  17288. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 145));
  17289. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 146));
  17290. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 147));
  17291. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 148));
  17292. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 149));
  17293. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 150));
  17294. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 151));
  17295. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 152));
  17296. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 153));
  17297. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 154));
  17298. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 155));
  17299. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 156));
  17300. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 157));
  17301. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 158));
  17302. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 159));
  17303. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 160));
  17304. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 161));
  17305. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 162));
  17306. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 163));
  17307. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 164));
  17308. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 165));
  17309. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 166));
  17310. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 167));
  17311. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 168));
  17312. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 169));
  17313. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 170));
  17314. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 171));
  17315. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 172));
  17316. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 173));
  17317. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 174));
  17318. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 175));
  17319. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 176));
  17320. 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; }
  17321. 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; }
  17322. var color = _config.default.color;
  17323. 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);
  17324. exports.default = _default;
  17325. /***/ }),
  17326. /* 88 */
  17327. /*!****************************************************************************************!*\
  17328. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  17329. \****************************************************************************************/
  17330. /*! no static exports found */
  17331. /***/ (function(module, exports, __webpack_require__) {
  17332. "use strict";
  17333. Object.defineProperty(exports, "__esModule", {
  17334. value: true
  17335. });
  17336. exports.default = void 0;
  17337. /*
  17338. * @Author : LQ
  17339. * @Description :
  17340. * @version : 1.0
  17341. * @Date : 2021-08-20 16:44:21
  17342. * @LastAuthor : LQ
  17343. * @lastTime : 2021-08-20 16:44:35
  17344. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  17345. */
  17346. var _default = {
  17347. // action-sheet组件
  17348. actionSheet: {
  17349. show: false,
  17350. title: '',
  17351. description: '',
  17352. actions: function actions() {
  17353. return [];
  17354. },
  17355. index: '',
  17356. cancelText: '',
  17357. closeOnClickAction: true,
  17358. safeAreaInsetBottom: true,
  17359. openType: '',
  17360. closeOnClickOverlay: true,
  17361. round: 0
  17362. }
  17363. };
  17364. exports.default = _default;
  17365. /***/ }),
  17366. /* 89 */
  17367. /*!**********************************************************************************!*\
  17368. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/album.js ***!
  17369. \**********************************************************************************/
  17370. /*! no static exports found */
  17371. /***/ (function(module, exports, __webpack_require__) {
  17372. "use strict";
  17373. Object.defineProperty(exports, "__esModule", {
  17374. value: true
  17375. });
  17376. exports.default = void 0;
  17377. /*
  17378. * @Author : LQ
  17379. * @Description :
  17380. * @version : 1.0
  17381. * @Date : 2021-08-20 16:44:21
  17382. * @LastAuthor : LQ
  17383. * @lastTime : 2021-08-20 16:47:24
  17384. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  17385. */
  17386. var _default = {
  17387. // album 组件
  17388. album: {
  17389. urls: function urls() {
  17390. return [];
  17391. },
  17392. keyName: '',
  17393. singleSize: 180,
  17394. multipleSize: 70,
  17395. space: 6,
  17396. singleMode: 'scaleToFill',
  17397. multipleMode: 'aspectFill',
  17398. maxCount: 9,
  17399. previewFullImage: true,
  17400. rowCount: 3,
  17401. showMore: true
  17402. }
  17403. };
  17404. exports.default = _default;
  17405. /***/ }),
  17406. /* 90 */
  17407. /*!**********************************************************************************!*\
  17408. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/alert.js ***!
  17409. \**********************************************************************************/
  17410. /*! no static exports found */
  17411. /***/ (function(module, exports, __webpack_require__) {
  17412. "use strict";
  17413. Object.defineProperty(exports, "__esModule", {
  17414. value: true
  17415. });
  17416. exports.default = void 0;
  17417. /*
  17418. * @Author : LQ
  17419. * @Description :
  17420. * @version : 1.0
  17421. * @Date : 2021-08-20 16:44:21
  17422. * @LastAuthor : LQ
  17423. * @lastTime : 2021-08-20 16:48:53
  17424. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  17425. */
  17426. var _default = {
  17427. // alert警告组件
  17428. alert: {
  17429. title: '',
  17430. type: 'warning',
  17431. description: '',
  17432. closable: false,
  17433. showIcon: false,
  17434. effect: 'light',
  17435. center: false,
  17436. fontSize: 14
  17437. }
  17438. };
  17439. exports.default = _default;
  17440. /***/ }),
  17441. /* 91 */
  17442. /*!***********************************************************************************!*\
  17443. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  17444. \***********************************************************************************/
  17445. /*! no static exports found */
  17446. /***/ (function(module, exports, __webpack_require__) {
  17447. "use strict";
  17448. Object.defineProperty(exports, "__esModule", {
  17449. value: true
  17450. });
  17451. exports.default = void 0;
  17452. /*
  17453. * @Author : LQ
  17454. * @Description :
  17455. * @version : 1.0
  17456. * @Date : 2021-08-20 16:44:21
  17457. * @LastAuthor : LQ
  17458. * @lastTime : 2021-08-20 16:49:22
  17459. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  17460. */
  17461. var _default = {
  17462. // avatar 组件
  17463. avatar: {
  17464. src: '',
  17465. shape: 'circle',
  17466. size: 40,
  17467. mode: 'scaleToFill',
  17468. text: '',
  17469. bgColor: '#c0c4cc',
  17470. color: '#ffffff',
  17471. fontSize: 18,
  17472. icon: '',
  17473. mpAvatar: false,
  17474. randomBgColor: false,
  17475. defaultUrl: '',
  17476. colorIndex: '',
  17477. name: ''
  17478. }
  17479. };
  17480. exports.default = _default;
  17481. /***/ }),
  17482. /* 92 */
  17483. /*!****************************************************************************************!*\
  17484. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  17485. \****************************************************************************************/
  17486. /*! no static exports found */
  17487. /***/ (function(module, exports, __webpack_require__) {
  17488. "use strict";
  17489. Object.defineProperty(exports, "__esModule", {
  17490. value: true
  17491. });
  17492. exports.default = void 0;
  17493. /*
  17494. * @Author : LQ
  17495. * @Description :
  17496. * @version : 1.0
  17497. * @Date : 2021-08-20 16:44:21
  17498. * @LastAuthor : LQ
  17499. * @lastTime : 2021-08-20 16:49:55
  17500. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  17501. */
  17502. var _default = {
  17503. // avatarGroup 组件
  17504. avatarGroup: {
  17505. urls: function urls() {
  17506. return [];
  17507. },
  17508. maxCount: 5,
  17509. shape: 'circle',
  17510. mode: 'scaleToFill',
  17511. showMore: true,
  17512. size: 40,
  17513. keyName: '',
  17514. gap: 0.5,
  17515. extraValue: 0
  17516. }
  17517. };
  17518. exports.default = _default;
  17519. /***/ }),
  17520. /* 93 */
  17521. /*!************************************************************************************!*\
  17522. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  17523. \************************************************************************************/
  17524. /*! no static exports found */
  17525. /***/ (function(module, exports, __webpack_require__) {
  17526. "use strict";
  17527. Object.defineProperty(exports, "__esModule", {
  17528. value: true
  17529. });
  17530. exports.default = void 0;
  17531. /*
  17532. * @Author : LQ
  17533. * @Description :
  17534. * @version : 1.0
  17535. * @Date : 2021-08-20 16:44:21
  17536. * @LastAuthor : LQ
  17537. * @lastTime : 2021-08-20 16:50:18
  17538. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  17539. */
  17540. var _default = {
  17541. // backtop组件
  17542. backtop: {
  17543. mode: 'circle',
  17544. icon: 'arrow-upward',
  17545. text: '',
  17546. duration: 100,
  17547. scrollTop: 0,
  17548. top: 400,
  17549. bottom: 100,
  17550. right: 20,
  17551. zIndex: 9,
  17552. iconStyle: function iconStyle() {
  17553. return {
  17554. color: '#909399',
  17555. fontSize: '19px'
  17556. };
  17557. }
  17558. }
  17559. };
  17560. exports.default = _default;
  17561. /***/ }),
  17562. /* 94 */
  17563. /*!**********************************************************************************!*\
  17564. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/badge.js ***!
  17565. \**********************************************************************************/
  17566. /*! no static exports found */
  17567. /***/ (function(module, exports, __webpack_require__) {
  17568. "use strict";
  17569. Object.defineProperty(exports, "__esModule", {
  17570. value: true
  17571. });
  17572. exports.default = void 0;
  17573. /*
  17574. * @Author : LQ
  17575. * @Description :
  17576. * @version : 1.0
  17577. * @Date : 2021-08-20 16:44:21
  17578. * @LastAuthor : LQ
  17579. * @lastTime : 2021-08-23 19:51:50
  17580. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  17581. */
  17582. var _default = {
  17583. // 徽标数组件
  17584. badge: {
  17585. isDot: false,
  17586. value: '',
  17587. show: true,
  17588. max: 999,
  17589. type: 'error',
  17590. showZero: false,
  17591. bgColor: null,
  17592. color: null,
  17593. shape: 'circle',
  17594. numberType: 'overflow',
  17595. offset: function offset() {
  17596. return [];
  17597. },
  17598. inverted: false,
  17599. absolute: false
  17600. }
  17601. };
  17602. exports.default = _default;
  17603. /***/ }),
  17604. /* 95 */
  17605. /*!***********************************************************************************!*\
  17606. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/button.js ***!
  17607. \***********************************************************************************/
  17608. /*! no static exports found */
  17609. /***/ (function(module, exports, __webpack_require__) {
  17610. "use strict";
  17611. Object.defineProperty(exports, "__esModule", {
  17612. value: true
  17613. });
  17614. exports.default = void 0;
  17615. /*
  17616. * @Author : LQ
  17617. * @Description :
  17618. * @version : 1.0
  17619. * @Date : 2021-08-20 16:44:21
  17620. * @LastAuthor : LQ
  17621. * @lastTime : 2021-08-20 16:51:27
  17622. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  17623. */
  17624. var _default = {
  17625. // button组件
  17626. button: {
  17627. hairline: false,
  17628. type: 'info',
  17629. size: 'normal',
  17630. shape: 'square',
  17631. plain: false,
  17632. disabled: false,
  17633. loading: false,
  17634. loadingText: '',
  17635. loadingMode: 'spinner',
  17636. loadingSize: 15,
  17637. openType: '',
  17638. formType: '',
  17639. appParameter: '',
  17640. hoverStopPropagation: true,
  17641. lang: 'en',
  17642. sessionFrom: '',
  17643. sendMessageTitle: '',
  17644. sendMessagePath: '',
  17645. sendMessageImg: '',
  17646. showMessageCard: false,
  17647. dataName: '',
  17648. throttleTime: 0,
  17649. hoverStartTime: 0,
  17650. hoverStayTime: 200,
  17651. text: '',
  17652. icon: '',
  17653. iconColor: '',
  17654. color: ''
  17655. }
  17656. };
  17657. exports.default = _default;
  17658. /***/ }),
  17659. /* 96 */
  17660. /*!*************************************************************************************!*\
  17661. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  17662. \*************************************************************************************/
  17663. /*! no static exports found */
  17664. /***/ (function(module, exports, __webpack_require__) {
  17665. "use strict";
  17666. Object.defineProperty(exports, "__esModule", {
  17667. value: true
  17668. });
  17669. exports.default = void 0;
  17670. /*
  17671. * @Author : LQ
  17672. * @Description :
  17673. * @version : 1.0
  17674. * @Date : 2021-08-20 16:44:21
  17675. * @LastAuthor : LQ
  17676. * @lastTime : 2021-08-20 16:52:43
  17677. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  17678. */
  17679. var _default = {
  17680. // calendar 组件
  17681. calendar: {
  17682. title: '日期选择',
  17683. showTitle: true,
  17684. showSubtitle: true,
  17685. mode: 'single',
  17686. startText: '开始',
  17687. endText: '结束',
  17688. customList: function customList() {
  17689. return [];
  17690. },
  17691. color: '#3c9cff',
  17692. minDate: 0,
  17693. maxDate: 0,
  17694. defaultDate: null,
  17695. maxCount: Number.MAX_SAFE_INTEGER,
  17696. // Infinity
  17697. rowHeight: 56,
  17698. formatter: null,
  17699. showLunar: false,
  17700. showMark: true,
  17701. confirmText: '确定',
  17702. confirmDisabledText: '确定',
  17703. show: false,
  17704. closeOnClickOverlay: false,
  17705. readonly: false,
  17706. showConfirm: true,
  17707. maxRange: Number.MAX_SAFE_INTEGER,
  17708. // Infinity
  17709. rangePrompt: '',
  17710. showRangePrompt: true,
  17711. allowSameDay: false,
  17712. round: 0,
  17713. monthNum: 3
  17714. }
  17715. };
  17716. exports.default = _default;
  17717. /***/ }),
  17718. /* 97 */
  17719. /*!****************************************************************************************!*\
  17720. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  17721. \****************************************************************************************/
  17722. /*! no static exports found */
  17723. /***/ (function(module, exports, __webpack_require__) {
  17724. "use strict";
  17725. Object.defineProperty(exports, "__esModule", {
  17726. value: true
  17727. });
  17728. exports.default = void 0;
  17729. /*
  17730. * @Author : LQ
  17731. * @Description :
  17732. * @version : 1.0
  17733. * @Date : 2021-08-20 16:44:21
  17734. * @LastAuthor : LQ
  17735. * @lastTime : 2021-08-20 16:53:20
  17736. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  17737. */
  17738. var _default = {
  17739. // 车牌号键盘
  17740. carKeyboard: {
  17741. random: false
  17742. }
  17743. };
  17744. exports.default = _default;
  17745. /***/ }),
  17746. /* 98 */
  17747. /*!*********************************************************************************!*\
  17748. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/cell.js ***!
  17749. \*********************************************************************************/
  17750. /*! no static exports found */
  17751. /***/ (function(module, exports, __webpack_require__) {
  17752. "use strict";
  17753. Object.defineProperty(exports, "__esModule", {
  17754. value: true
  17755. });
  17756. exports.default = void 0;
  17757. /*
  17758. * @Author : LQ
  17759. * @Description :
  17760. * @version : 1.0
  17761. * @Date : 2021-08-20 16:44:21
  17762. * @LastAuthor : LQ
  17763. * @lastTime : 2021-08-23 20:53:09
  17764. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  17765. */
  17766. var _default = {
  17767. // cell组件的props
  17768. cell: {
  17769. customClass: '',
  17770. title: '',
  17771. label: '',
  17772. value: '',
  17773. icon: '',
  17774. disabled: false,
  17775. border: true,
  17776. center: false,
  17777. url: '',
  17778. linkType: 'navigateTo',
  17779. clickable: false,
  17780. isLink: false,
  17781. required: false,
  17782. arrowDirection: '',
  17783. iconStyle: {},
  17784. rightIconStyle: {},
  17785. rightIcon: 'arrow-right',
  17786. titleStyle: {},
  17787. size: '',
  17788. stop: true,
  17789. name: ''
  17790. }
  17791. };
  17792. exports.default = _default;
  17793. /***/ }),
  17794. /* 99 */
  17795. /*!**************************************************************************************!*\
  17796. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  17797. \**************************************************************************************/
  17798. /*! no static exports found */
  17799. /***/ (function(module, exports, __webpack_require__) {
  17800. "use strict";
  17801. Object.defineProperty(exports, "__esModule", {
  17802. value: true
  17803. });
  17804. exports.default = void 0;
  17805. /*
  17806. * @Author : LQ
  17807. * @Description :
  17808. * @version : 1.0
  17809. * @Date : 2021-08-20 16:44:21
  17810. * @LastAuthor : LQ
  17811. * @lastTime : 2021-08-20 16:54:16
  17812. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  17813. */
  17814. var _default = {
  17815. // cell-group组件的props
  17816. cellGroup: {
  17817. title: '',
  17818. border: true,
  17819. customStyle: {}
  17820. }
  17821. };
  17822. exports.default = _default;
  17823. /***/ }),
  17824. /* 100 */
  17825. /*!*************************************************************************************!*\
  17826. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  17827. \*************************************************************************************/
  17828. /*! no static exports found */
  17829. /***/ (function(module, exports, __webpack_require__) {
  17830. "use strict";
  17831. Object.defineProperty(exports, "__esModule", {
  17832. value: true
  17833. });
  17834. exports.default = void 0;
  17835. /*
  17836. * @Author : LQ
  17837. * @Description :
  17838. * @version : 1.0
  17839. * @Date : 2021-08-20 16:44:21
  17840. * @LastAuthor : LQ
  17841. * @lastTime : 2021-08-23 21:06:59
  17842. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  17843. */
  17844. var _default = {
  17845. // checkbox组件
  17846. checkbox: {
  17847. name: '',
  17848. shape: '',
  17849. size: '',
  17850. checkbox: false,
  17851. disabled: '',
  17852. activeColor: '',
  17853. inactiveColor: '',
  17854. iconSize: '',
  17855. iconColor: '',
  17856. label: '',
  17857. labelSize: '',
  17858. labelColor: '',
  17859. labelDisabled: ''
  17860. }
  17861. };
  17862. exports.default = _default;
  17863. /***/ }),
  17864. /* 101 */
  17865. /*!******************************************************************************************!*\
  17866. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  17867. \******************************************************************************************/
  17868. /*! no static exports found */
  17869. /***/ (function(module, exports, __webpack_require__) {
  17870. "use strict";
  17871. Object.defineProperty(exports, "__esModule", {
  17872. value: true
  17873. });
  17874. exports.default = void 0;
  17875. /*
  17876. * @Author : LQ
  17877. * @Description :
  17878. * @version : 1.0
  17879. * @Date : 2021-08-20 16:44:21
  17880. * @LastAuthor : LQ
  17881. * @lastTime : 2021-08-20 16:54:47
  17882. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  17883. */
  17884. var _default = {
  17885. // checkbox-group组件
  17886. checkboxGroup: {
  17887. name: '',
  17888. value: function value() {
  17889. return [];
  17890. },
  17891. shape: 'square',
  17892. disabled: false,
  17893. activeColor: '#2979ff',
  17894. inactiveColor: '#c8c9cc',
  17895. size: 18,
  17896. placement: 'row',
  17897. labelSize: 14,
  17898. labelColor: '#303133',
  17899. labelDisabled: false,
  17900. iconColor: '#ffffff',
  17901. iconSize: 12,
  17902. iconPlacement: 'left',
  17903. borderBottom: false
  17904. }
  17905. };
  17906. exports.default = _default;
  17907. /***/ }),
  17908. /* 102 */
  17909. /*!*******************************************************************************************!*\
  17910. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  17911. \*******************************************************************************************/
  17912. /*! no static exports found */
  17913. /***/ (function(module, exports, __webpack_require__) {
  17914. "use strict";
  17915. Object.defineProperty(exports, "__esModule", {
  17916. value: true
  17917. });
  17918. exports.default = void 0;
  17919. /*
  17920. * @Author : LQ
  17921. * @Description :
  17922. * @version : 1.0
  17923. * @Date : 2021-08-20 16:44:21
  17924. * @LastAuthor : LQ
  17925. * @lastTime : 2021-08-20 16:55:02
  17926. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  17927. */
  17928. var _default = {
  17929. // circleProgress 组件
  17930. circleProgress: {
  17931. percentage: 30
  17932. }
  17933. };
  17934. exports.default = _default;
  17935. /***/ }),
  17936. /* 103 */
  17937. /*!*********************************************************************************!*\
  17938. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/code.js ***!
  17939. \*********************************************************************************/
  17940. /*! no static exports found */
  17941. /***/ (function(module, exports, __webpack_require__) {
  17942. "use strict";
  17943. Object.defineProperty(exports, "__esModule", {
  17944. value: true
  17945. });
  17946. exports.default = void 0;
  17947. /*
  17948. * @Author : LQ
  17949. * @Description :
  17950. * @version : 1.0
  17951. * @Date : 2021-08-20 16:44:21
  17952. * @LastAuthor : LQ
  17953. * @lastTime : 2021-08-20 16:55:27
  17954. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  17955. */
  17956. var _default = {
  17957. // code 组件
  17958. code: {
  17959. seconds: 60,
  17960. startText: '获取验证码',
  17961. changeText: 'X秒重新获取',
  17962. endText: '重新获取',
  17963. keepRunning: false,
  17964. uniqueKey: ''
  17965. }
  17966. };
  17967. exports.default = _default;
  17968. /***/ }),
  17969. /* 104 */
  17970. /*!**************************************************************************************!*\
  17971. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  17972. \**************************************************************************************/
  17973. /*! no static exports found */
  17974. /***/ (function(module, exports, __webpack_require__) {
  17975. "use strict";
  17976. Object.defineProperty(exports, "__esModule", {
  17977. value: true
  17978. });
  17979. exports.default = void 0;
  17980. /*
  17981. * @Author : LQ
  17982. * @Description :
  17983. * @version : 1.0
  17984. * @Date : 2021-08-20 16:44:21
  17985. * @LastAuthor : LQ
  17986. * @lastTime : 2021-08-20 16:55:58
  17987. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  17988. */
  17989. var _default = {
  17990. // codeInput 组件
  17991. codeInput: {
  17992. adjustPosition: true,
  17993. maxlength: 6,
  17994. dot: false,
  17995. mode: 'box',
  17996. hairline: false,
  17997. space: 10,
  17998. value: '',
  17999. focus: false,
  18000. bold: false,
  18001. color: '#606266',
  18002. fontSize: 18,
  18003. size: 35,
  18004. disabledKeyboard: false,
  18005. borderColor: '#c9cacc',
  18006. disabledDot: true
  18007. }
  18008. };
  18009. exports.default = _default;
  18010. /***/ }),
  18011. /* 105 */
  18012. /*!********************************************************************************!*\
  18013. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/col.js ***!
  18014. \********************************************************************************/
  18015. /*! no static exports found */
  18016. /***/ (function(module, exports, __webpack_require__) {
  18017. "use strict";
  18018. Object.defineProperty(exports, "__esModule", {
  18019. value: true
  18020. });
  18021. exports.default = void 0;
  18022. /*
  18023. * @Author : LQ
  18024. * @Description :
  18025. * @version : 1.0
  18026. * @Date : 2021-08-20 16:44:21
  18027. * @LastAuthor : LQ
  18028. * @lastTime : 2021-08-20 16:56:12
  18029. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  18030. */
  18031. var _default = {
  18032. // col 组件
  18033. col: {
  18034. span: 12,
  18035. offset: 0,
  18036. justify: 'start',
  18037. align: 'stretch',
  18038. textAlign: 'left'
  18039. }
  18040. };
  18041. exports.default = _default;
  18042. /***/ }),
  18043. /* 106 */
  18044. /*!*************************************************************************************!*\
  18045. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  18046. \*************************************************************************************/
  18047. /*! no static exports found */
  18048. /***/ (function(module, exports, __webpack_require__) {
  18049. "use strict";
  18050. Object.defineProperty(exports, "__esModule", {
  18051. value: true
  18052. });
  18053. exports.default = void 0;
  18054. /*
  18055. * @Author : LQ
  18056. * @Description :
  18057. * @version : 1.0
  18058. * @Date : 2021-08-20 16:44:21
  18059. * @LastAuthor : LQ
  18060. * @lastTime : 2021-08-20 16:56:30
  18061. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  18062. */
  18063. var _default = {
  18064. // collapse 组件
  18065. collapse: {
  18066. value: null,
  18067. accordion: false,
  18068. border: true
  18069. }
  18070. };
  18071. exports.default = _default;
  18072. /***/ }),
  18073. /* 107 */
  18074. /*!*****************************************************************************************!*\
  18075. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  18076. \*****************************************************************************************/
  18077. /*! no static exports found */
  18078. /***/ (function(module, exports, __webpack_require__) {
  18079. "use strict";
  18080. Object.defineProperty(exports, "__esModule", {
  18081. value: true
  18082. });
  18083. exports.default = void 0;
  18084. /*
  18085. * @Author : LQ
  18086. * @Description :
  18087. * @version : 1.0
  18088. * @Date : 2021-08-20 16:44:21
  18089. * @LastAuthor : LQ
  18090. * @lastTime : 2021-08-20 16:56:42
  18091. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  18092. */
  18093. var _default = {
  18094. // collapseItem 组件
  18095. collapseItem: {
  18096. title: '',
  18097. value: '',
  18098. label: '',
  18099. disabled: false,
  18100. isLink: true,
  18101. clickable: true,
  18102. border: true,
  18103. align: 'left',
  18104. name: '',
  18105. icon: '',
  18106. duration: 300
  18107. }
  18108. };
  18109. exports.default = _default;
  18110. /***/ }),
  18111. /* 108 */
  18112. /*!*****************************************************************************************!*\
  18113. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  18114. \*****************************************************************************************/
  18115. /*! no static exports found */
  18116. /***/ (function(module, exports, __webpack_require__) {
  18117. "use strict";
  18118. Object.defineProperty(exports, "__esModule", {
  18119. value: true
  18120. });
  18121. exports.default = void 0;
  18122. /*
  18123. * @Author : LQ
  18124. * @Description :
  18125. * @version : 1.0
  18126. * @Date : 2021-08-20 16:44:21
  18127. * @LastAuthor : LQ
  18128. * @lastTime : 2021-08-20 16:57:16
  18129. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  18130. */
  18131. var _default = {
  18132. // columnNotice 组件
  18133. columnNotice: {
  18134. text: '',
  18135. icon: 'volume',
  18136. mode: '',
  18137. color: '#f9ae3d',
  18138. bgColor: '#fdf6ec',
  18139. fontSize: 14,
  18140. speed: 80,
  18141. step: false,
  18142. duration: 1500,
  18143. disableTouch: true
  18144. }
  18145. };
  18146. exports.default = _default;
  18147. /***/ }),
  18148. /* 109 */
  18149. /*!**************************************************************************************!*\
  18150. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  18151. \**************************************************************************************/
  18152. /*! no static exports found */
  18153. /***/ (function(module, exports, __webpack_require__) {
  18154. "use strict";
  18155. Object.defineProperty(exports, "__esModule", {
  18156. value: true
  18157. });
  18158. exports.default = void 0;
  18159. /*
  18160. * @Author : LQ
  18161. * @Description :
  18162. * @version : 1.0
  18163. * @Date : 2021-08-20 16:44:21
  18164. * @LastAuthor : LQ
  18165. * @lastTime : 2021-08-20 17:11:29
  18166. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  18167. */
  18168. var _default = {
  18169. // u-count-down 计时器组件
  18170. countDown: {
  18171. time: 0,
  18172. format: 'HH:mm:ss',
  18173. autoStart: true,
  18174. millisecond: false
  18175. }
  18176. };
  18177. exports.default = _default;
  18178. /***/ }),
  18179. /* 110 */
  18180. /*!************************************************************************************!*\
  18181. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  18182. \************************************************************************************/
  18183. /*! no static exports found */
  18184. /***/ (function(module, exports, __webpack_require__) {
  18185. "use strict";
  18186. Object.defineProperty(exports, "__esModule", {
  18187. value: true
  18188. });
  18189. exports.default = void 0;
  18190. /*
  18191. * @Author : LQ
  18192. * @Description :
  18193. * @version : 1.0
  18194. * @Date : 2021-08-20 16:44:21
  18195. * @LastAuthor : LQ
  18196. * @lastTime : 2021-08-20 16:57:32
  18197. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  18198. */
  18199. var _default = {
  18200. // countTo 组件
  18201. countTo: {
  18202. startVal: 0,
  18203. endVal: 0,
  18204. duration: 2000,
  18205. autoplay: true,
  18206. decimals: 0,
  18207. useEasing: true,
  18208. decimal: '.',
  18209. color: '#606266',
  18210. fontSize: 22,
  18211. bold: false,
  18212. separator: ''
  18213. }
  18214. };
  18215. exports.default = _default;
  18216. /***/ }),
  18217. /* 111 */
  18218. /*!*******************************************************************************************!*\
  18219. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  18220. \*******************************************************************************************/
  18221. /*! no static exports found */
  18222. /***/ (function(module, exports, __webpack_require__) {
  18223. "use strict";
  18224. Object.defineProperty(exports, "__esModule", {
  18225. value: true
  18226. });
  18227. exports.default = void 0;
  18228. /*
  18229. * @Author : LQ
  18230. * @Description :
  18231. * @version : 1.0
  18232. * @Date : 2021-08-20 16:44:21
  18233. * @LastAuthor : LQ
  18234. * @lastTime : 2021-08-20 16:57:48
  18235. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  18236. */
  18237. var _default = {
  18238. // datetimePicker 组件
  18239. datetimePicker: {
  18240. show: false,
  18241. showToolbar: true,
  18242. value: '',
  18243. title: '',
  18244. mode: 'datetime',
  18245. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  18246. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  18247. minHour: 0,
  18248. maxHour: 23,
  18249. minMinute: 0,
  18250. maxMinute: 59,
  18251. filter: null,
  18252. formatter: null,
  18253. loading: false,
  18254. itemHeight: 44,
  18255. cancelText: '取消',
  18256. confirmText: '确认',
  18257. cancelColor: '#909193',
  18258. confirmColor: '#3c9cff',
  18259. visibleItemCount: 5,
  18260. closeOnClickOverlay: false,
  18261. defaultIndex: function defaultIndex() {
  18262. return [];
  18263. }
  18264. }
  18265. };
  18266. exports.default = _default;
  18267. /***/ }),
  18268. /* 112 */
  18269. /*!************************************************************************************!*\
  18270. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/divider.js ***!
  18271. \************************************************************************************/
  18272. /*! no static exports found */
  18273. /***/ (function(module, exports, __webpack_require__) {
  18274. "use strict";
  18275. Object.defineProperty(exports, "__esModule", {
  18276. value: true
  18277. });
  18278. exports.default = void 0;
  18279. /*
  18280. * @Author : LQ
  18281. * @Description :
  18282. * @version : 1.0
  18283. * @Date : 2021-08-20 16:44:21
  18284. * @LastAuthor : LQ
  18285. * @lastTime : 2021-08-20 16:58:03
  18286. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  18287. */
  18288. var _default = {
  18289. // divider组件
  18290. divider: {
  18291. dashed: false,
  18292. hairline: true,
  18293. dot: false,
  18294. textPosition: 'center',
  18295. text: '',
  18296. textSize: 14,
  18297. textColor: '#909399',
  18298. lineColor: '#dcdfe6'
  18299. }
  18300. };
  18301. exports.default = _default;
  18302. /***/ }),
  18303. /* 113 */
  18304. /*!**********************************************************************************!*\
  18305. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/empty.js ***!
  18306. \**********************************************************************************/
  18307. /*! no static exports found */
  18308. /***/ (function(module, exports, __webpack_require__) {
  18309. "use strict";
  18310. Object.defineProperty(exports, "__esModule", {
  18311. value: true
  18312. });
  18313. exports.default = void 0;
  18314. /*
  18315. * @Author : LQ
  18316. * @Description :
  18317. * @version : 1.0
  18318. * @Date : 2021-08-20 16:44:21
  18319. * @LastAuthor : LQ
  18320. * @lastTime : 2021-08-20 17:03:27
  18321. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  18322. */
  18323. var _default = {
  18324. // empty组件
  18325. empty: {
  18326. icon: '',
  18327. text: '',
  18328. textColor: '#c0c4cc',
  18329. textSize: 14,
  18330. iconColor: '#c0c4cc',
  18331. iconSize: 90,
  18332. mode: 'data',
  18333. width: 160,
  18334. height: 160,
  18335. show: true,
  18336. marginTop: 0
  18337. }
  18338. };
  18339. exports.default = _default;
  18340. /***/ }),
  18341. /* 114 */
  18342. /*!*********************************************************************************!*\
  18343. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/form.js ***!
  18344. \*********************************************************************************/
  18345. /*! no static exports found */
  18346. /***/ (function(module, exports, __webpack_require__) {
  18347. "use strict";
  18348. Object.defineProperty(exports, "__esModule", {
  18349. value: true
  18350. });
  18351. exports.default = void 0;
  18352. /*
  18353. * @Author : LQ
  18354. * @Description :
  18355. * @version : 1.0
  18356. * @Date : 2021-08-20 16:44:21
  18357. * @LastAuthor : LQ
  18358. * @lastTime : 2021-08-20 17:03:49
  18359. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  18360. */
  18361. var _default = {
  18362. // form 组件
  18363. form: {
  18364. model: function model() {
  18365. return {};
  18366. },
  18367. rules: function rules() {
  18368. return {};
  18369. },
  18370. errorType: 'message',
  18371. borderBottom: true,
  18372. labelPosition: 'left',
  18373. labelWidth: 45,
  18374. labelAlign: 'left',
  18375. labelStyle: function labelStyle() {
  18376. return {};
  18377. }
  18378. }
  18379. };
  18380. exports.default = _default;
  18381. /***/ }),
  18382. /* 115 */
  18383. /*!*************************************************************************************!*\
  18384. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  18385. \*************************************************************************************/
  18386. /*! no static exports found */
  18387. /***/ (function(module, exports, __webpack_require__) {
  18388. "use strict";
  18389. Object.defineProperty(exports, "__esModule", {
  18390. value: true
  18391. });
  18392. exports.default = void 0;
  18393. /*
  18394. * @Author : LQ
  18395. * @Description :
  18396. * @version : 1.0
  18397. * @Date : 2021-08-20 16:44:21
  18398. * @LastAuthor : LQ
  18399. * @lastTime : 2021-08-20 17:04:32
  18400. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  18401. */
  18402. var _default = {
  18403. // formItem 组件
  18404. formItem: {
  18405. label: '',
  18406. prop: '',
  18407. borderBottom: '',
  18408. labelPosition: '',
  18409. labelWidth: '',
  18410. rightIcon: '',
  18411. leftIcon: '',
  18412. required: false,
  18413. leftIconStyle: ''
  18414. }
  18415. };
  18416. exports.default = _default;
  18417. /***/ }),
  18418. /* 116 */
  18419. /*!********************************************************************************!*\
  18420. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/gap.js ***!
  18421. \********************************************************************************/
  18422. /*! no static exports found */
  18423. /***/ (function(module, exports, __webpack_require__) {
  18424. "use strict";
  18425. Object.defineProperty(exports, "__esModule", {
  18426. value: true
  18427. });
  18428. exports.default = void 0;
  18429. /*
  18430. * @Author : LQ
  18431. * @Description :
  18432. * @version : 1.0
  18433. * @Date : 2021-08-20 16:44:21
  18434. * @LastAuthor : LQ
  18435. * @lastTime : 2021-08-20 17:05:25
  18436. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  18437. */
  18438. var _default = {
  18439. // gap组件
  18440. gap: {
  18441. bgColor: 'transparent',
  18442. height: 20,
  18443. marginTop: 0,
  18444. marginBottom: 0,
  18445. customStyle: {}
  18446. }
  18447. };
  18448. exports.default = _default;
  18449. /***/ }),
  18450. /* 117 */
  18451. /*!*********************************************************************************!*\
  18452. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/grid.js ***!
  18453. \*********************************************************************************/
  18454. /*! no static exports found */
  18455. /***/ (function(module, exports, __webpack_require__) {
  18456. "use strict";
  18457. Object.defineProperty(exports, "__esModule", {
  18458. value: true
  18459. });
  18460. exports.default = void 0;
  18461. /*
  18462. * @Author : LQ
  18463. * @Description :
  18464. * @version : 1.0
  18465. * @Date : 2021-08-20 16:44:21
  18466. * @LastAuthor : LQ
  18467. * @lastTime : 2021-08-20 17:05:57
  18468. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  18469. */
  18470. var _default = {
  18471. // grid组件
  18472. grid: {
  18473. col: 3,
  18474. border: false,
  18475. align: 'left'
  18476. }
  18477. };
  18478. exports.default = _default;
  18479. /***/ }),
  18480. /* 118 */
  18481. /*!*************************************************************************************!*\
  18482. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  18483. \*************************************************************************************/
  18484. /*! no static exports found */
  18485. /***/ (function(module, exports, __webpack_require__) {
  18486. "use strict";
  18487. Object.defineProperty(exports, "__esModule", {
  18488. value: true
  18489. });
  18490. exports.default = void 0;
  18491. /*
  18492. * @Author : LQ
  18493. * @Description :
  18494. * @version : 1.0
  18495. * @Date : 2021-08-20 16:44:21
  18496. * @LastAuthor : LQ
  18497. * @lastTime : 2021-08-20 17:06:13
  18498. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  18499. */
  18500. var _default = {
  18501. // grid-item组件
  18502. gridItem: {
  18503. name: null,
  18504. bgColor: 'transparent'
  18505. }
  18506. };
  18507. exports.default = _default;
  18508. /***/ }),
  18509. /* 119 */
  18510. /*!*********************************************************************************!*\
  18511. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/icon.js ***!
  18512. \*********************************************************************************/
  18513. /*! no static exports found */
  18514. /***/ (function(module, exports, __webpack_require__) {
  18515. "use strict";
  18516. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18517. Object.defineProperty(exports, "__esModule", {
  18518. value: true
  18519. });
  18520. exports.default = void 0;
  18521. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 86));
  18522. /*
  18523. * @Author : LQ
  18524. * @Description :
  18525. * @version : 1.0
  18526. * @Date : 2021-08-20 16:44:21
  18527. * @LastAuthor : LQ
  18528. * @lastTime : 2021-08-20 18:00:14
  18529. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  18530. */
  18531. var color = _config.default.color;
  18532. var _default = {
  18533. // icon组件
  18534. icon: {
  18535. name: '',
  18536. color: color['u-content-color'],
  18537. size: '16px',
  18538. bold: false,
  18539. index: '',
  18540. hoverClass: '',
  18541. customPrefix: 'uicon',
  18542. label: '',
  18543. labelPos: 'right',
  18544. labelSize: '15px',
  18545. labelColor: color['u-content-color'],
  18546. space: '3px',
  18547. imgMode: '',
  18548. width: '',
  18549. height: '',
  18550. top: 0,
  18551. stop: false
  18552. }
  18553. };
  18554. exports.default = _default;
  18555. /***/ }),
  18556. /* 120 */
  18557. /*!**********************************************************************************!*\
  18558. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/image.js ***!
  18559. \**********************************************************************************/
  18560. /*! no static exports found */
  18561. /***/ (function(module, exports, __webpack_require__) {
  18562. "use strict";
  18563. Object.defineProperty(exports, "__esModule", {
  18564. value: true
  18565. });
  18566. exports.default = void 0;
  18567. /*
  18568. * @Author : LQ
  18569. * @Description :
  18570. * @version : 1.0
  18571. * @Date : 2021-08-20 16:44:21
  18572. * @LastAuthor : LQ
  18573. * @lastTime : 2021-08-20 17:01:51
  18574. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  18575. */
  18576. var _default = {
  18577. // image组件
  18578. image: {
  18579. src: '',
  18580. mode: 'aspectFill',
  18581. width: '300',
  18582. height: '225',
  18583. shape: 'square',
  18584. radius: 0,
  18585. lazyLoad: true,
  18586. showMenuByLongpress: true,
  18587. loadingIcon: 'photo',
  18588. errorIcon: 'error-circle',
  18589. showLoading: true,
  18590. showError: true,
  18591. fade: true,
  18592. webp: false,
  18593. duration: 500,
  18594. bgColor: '#f3f4f6'
  18595. }
  18596. };
  18597. exports.default = _default;
  18598. /***/ }),
  18599. /* 121 */
  18600. /*!****************************************************************************************!*\
  18601. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  18602. \****************************************************************************************/
  18603. /*! no static exports found */
  18604. /***/ (function(module, exports, __webpack_require__) {
  18605. "use strict";
  18606. Object.defineProperty(exports, "__esModule", {
  18607. value: true
  18608. });
  18609. exports.default = void 0;
  18610. /*
  18611. * @Author : LQ
  18612. * @Description :
  18613. * @version : 1.0
  18614. * @Date : 2021-08-20 16:44:21
  18615. * @LastAuthor : LQ
  18616. * @lastTime : 2021-08-20 17:13:15
  18617. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  18618. */
  18619. var _default = {
  18620. // indexAnchor 组件
  18621. indexAnchor: {
  18622. text: '',
  18623. color: '#606266',
  18624. size: 14,
  18625. bgColor: '#dedede',
  18626. height: 32
  18627. }
  18628. };
  18629. exports.default = _default;
  18630. /***/ }),
  18631. /* 122 */
  18632. /*!**************************************************************************************!*\
  18633. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  18634. \**************************************************************************************/
  18635. /*! no static exports found */
  18636. /***/ (function(module, exports, __webpack_require__) {
  18637. "use strict";
  18638. Object.defineProperty(exports, "__esModule", {
  18639. value: true
  18640. });
  18641. exports.default = void 0;
  18642. /*
  18643. * @Author : LQ
  18644. * @Description :
  18645. * @version : 1.0
  18646. * @Date : 2021-08-20 16:44:21
  18647. * @LastAuthor : LQ
  18648. * @lastTime : 2021-08-20 17:13:35
  18649. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  18650. */
  18651. var _default = {
  18652. // indexList 组件
  18653. indexList: {
  18654. inactiveColor: '#606266',
  18655. activeColor: '#5677fc',
  18656. indexList: function indexList() {
  18657. return [];
  18658. },
  18659. sticky: true,
  18660. customNavHeight: 0
  18661. }
  18662. };
  18663. exports.default = _default;
  18664. /***/ }),
  18665. /* 123 */
  18666. /*!**********************************************************************************!*\
  18667. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/input.js ***!
  18668. \**********************************************************************************/
  18669. /*! no static exports found */
  18670. /***/ (function(module, exports, __webpack_require__) {
  18671. "use strict";
  18672. Object.defineProperty(exports, "__esModule", {
  18673. value: true
  18674. });
  18675. exports.default = void 0;
  18676. /*
  18677. * @Author : LQ
  18678. * @Description :
  18679. * @version : 1.0
  18680. * @Date : 2021-08-20 16:44:21
  18681. * @LastAuthor : LQ
  18682. * @lastTime : 2021-08-20 17:13:55
  18683. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  18684. */
  18685. var _default = {
  18686. // index 组件
  18687. input: {
  18688. value: '',
  18689. type: 'text',
  18690. fixed: false,
  18691. disabled: false,
  18692. disabledColor: '#f5f7fa',
  18693. clearable: false,
  18694. password: false,
  18695. maxlength: -1,
  18696. placeholder: null,
  18697. placeholderClass: 'input-placeholder',
  18698. placeholderStyle: 'color: #c0c4cc',
  18699. showWordLimit: false,
  18700. confirmType: 'done',
  18701. confirmHold: false,
  18702. holdKeyboard: false,
  18703. focus: false,
  18704. autoBlur: false,
  18705. disableDefaultPadding: false,
  18706. cursor: -1,
  18707. cursorSpacing: 30,
  18708. selectionStart: -1,
  18709. selectionEnd: -1,
  18710. adjustPosition: true,
  18711. inputAlign: 'left',
  18712. fontSize: '15px',
  18713. color: '#303133',
  18714. prefixIcon: '',
  18715. prefixIconStyle: '',
  18716. suffixIcon: '',
  18717. suffixIconStyle: '',
  18718. border: 'surround',
  18719. readonly: false,
  18720. shape: 'square',
  18721. formatter: null
  18722. }
  18723. };
  18724. exports.default = _default;
  18725. /***/ }),
  18726. /* 124 */
  18727. /*!*************************************************************************************!*\
  18728. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/keyboard.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:07:49
  18744. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  18745. */
  18746. var _default = {
  18747. // 键盘组件
  18748. keyboard: {
  18749. mode: 'number',
  18750. dotDisabled: false,
  18751. tooltip: true,
  18752. showTips: true,
  18753. tips: '',
  18754. showCancel: true,
  18755. showConfirm: true,
  18756. random: false,
  18757. safeAreaInsetBottom: true,
  18758. closeOnClickOverlay: true,
  18759. show: false,
  18760. overlay: true,
  18761. zIndex: 10075,
  18762. cancelText: '取消',
  18763. confirmText: '确定',
  18764. autoChange: false
  18765. }
  18766. };
  18767. exports.default = _default;
  18768. /***/ }),
  18769. /* 125 */
  18770. /*!*********************************************************************************!*\
  18771. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/line.js ***!
  18772. \*********************************************************************************/
  18773. /*! no static exports found */
  18774. /***/ (function(module, exports, __webpack_require__) {
  18775. "use strict";
  18776. Object.defineProperty(exports, "__esModule", {
  18777. value: true
  18778. });
  18779. exports.default = void 0;
  18780. /*
  18781. * @Author : LQ
  18782. * @Description :
  18783. * @version : 1.0
  18784. * @Date : 2021-08-20 16:44:21
  18785. * @LastAuthor : LQ
  18786. * @lastTime : 2021-08-20 17:04:49
  18787. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  18788. */
  18789. var _default = {
  18790. // line组件
  18791. line: {
  18792. color: '#d6d7d9',
  18793. length: '100%',
  18794. direction: 'row',
  18795. hairline: true,
  18796. margin: 0,
  18797. dashed: false
  18798. }
  18799. };
  18800. exports.default = _default;
  18801. /***/ }),
  18802. /* 126 */
  18803. /*!*****************************************************************************************!*\
  18804. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  18805. \*****************************************************************************************/
  18806. /*! no static exports found */
  18807. /***/ (function(module, exports, __webpack_require__) {
  18808. "use strict";
  18809. Object.defineProperty(exports, "__esModule", {
  18810. value: true
  18811. });
  18812. exports.default = void 0;
  18813. /*
  18814. * @Author : LQ
  18815. * @Description :
  18816. * @version : 1.0
  18817. * @Date : 2021-08-20 16:44:21
  18818. * @LastAuthor : LQ
  18819. * @lastTime : 2021-08-20 17:14:11
  18820. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  18821. */
  18822. var _default = {
  18823. // lineProgress 组件
  18824. lineProgress: {
  18825. activeColor: '#19be6b',
  18826. inactiveColor: '#ececec',
  18827. percentage: 0,
  18828. showText: true,
  18829. height: 12
  18830. }
  18831. };
  18832. exports.default = _default;
  18833. /***/ }),
  18834. /* 127 */
  18835. /*!*********************************************************************************!*\
  18836. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/link.js ***!
  18837. \*********************************************************************************/
  18838. /*! no static exports found */
  18839. /***/ (function(module, exports, __webpack_require__) {
  18840. "use strict";
  18841. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18842. Object.defineProperty(exports, "__esModule", {
  18843. value: true
  18844. });
  18845. exports.default = void 0;
  18846. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 86));
  18847. /*
  18848. * @Author : LQ
  18849. * @Description :
  18850. * @version : 1.0
  18851. * @Date : 2021-08-20 16:44:21
  18852. * @LastAuthor : LQ
  18853. * @lastTime : 2021-08-20 17:45:36
  18854. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  18855. */
  18856. var color = _config.default.color;
  18857. var _default = {
  18858. // link超链接组件props参数
  18859. link: {
  18860. color: color['u-primary'],
  18861. fontSize: 15,
  18862. underLine: false,
  18863. href: '',
  18864. mpTips: '链接已复制,请在浏览器打开',
  18865. lineColor: '',
  18866. text: ''
  18867. }
  18868. };
  18869. exports.default = _default;
  18870. /***/ }),
  18871. /* 128 */
  18872. /*!*********************************************************************************!*\
  18873. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/list.js ***!
  18874. \*********************************************************************************/
  18875. /*! no static exports found */
  18876. /***/ (function(module, exports, __webpack_require__) {
  18877. "use strict";
  18878. Object.defineProperty(exports, "__esModule", {
  18879. value: true
  18880. });
  18881. exports.default = void 0;
  18882. /*
  18883. * @Author : LQ
  18884. * @Description :
  18885. * @version : 1.0
  18886. * @Date : 2021-08-20 16:44:21
  18887. * @LastAuthor : LQ
  18888. * @lastTime : 2021-08-20 17:14:53
  18889. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  18890. */
  18891. var _default = {
  18892. // list 组件
  18893. list: {
  18894. showScrollbar: false,
  18895. lowerThreshold: 50,
  18896. upperThreshold: 0,
  18897. scrollTop: 0,
  18898. offsetAccuracy: 10,
  18899. enableFlex: false,
  18900. pagingEnabled: false,
  18901. scrollable: true,
  18902. scrollIntoView: '',
  18903. scrollWithAnimation: false,
  18904. enableBackToTop: false,
  18905. height: 0,
  18906. width: 0,
  18907. preLoadScreen: 1
  18908. }
  18909. };
  18910. exports.default = _default;
  18911. /***/ }),
  18912. /* 129 */
  18913. /*!*************************************************************************************!*\
  18914. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  18915. \*************************************************************************************/
  18916. /*! no static exports found */
  18917. /***/ (function(module, exports, __webpack_require__) {
  18918. "use strict";
  18919. Object.defineProperty(exports, "__esModule", {
  18920. value: true
  18921. });
  18922. exports.default = void 0;
  18923. /*
  18924. * @Author : LQ
  18925. * @Description :
  18926. * @version : 1.0
  18927. * @Date : 2021-08-20 16:44:21
  18928. * @LastAuthor : LQ
  18929. * @lastTime : 2021-08-20 17:15:40
  18930. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  18931. */
  18932. var _default = {
  18933. // listItem 组件
  18934. listItem: {
  18935. anchor: ''
  18936. }
  18937. };
  18938. exports.default = _default;
  18939. /***/ }),
  18940. /* 130 */
  18941. /*!****************************************************************************************!*\
  18942. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  18943. \****************************************************************************************/
  18944. /*! no static exports found */
  18945. /***/ (function(module, exports, __webpack_require__) {
  18946. "use strict";
  18947. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18948. Object.defineProperty(exports, "__esModule", {
  18949. value: true
  18950. });
  18951. exports.default = void 0;
  18952. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 86));
  18953. /*
  18954. * @Author : LQ
  18955. * @Description :
  18956. * @version : 1.0
  18957. * @Date : 2021-08-20 16:44:21
  18958. * @LastAuthor : LQ
  18959. * @lastTime : 2021-08-20 17:45:47
  18960. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  18961. */
  18962. var color = _config.default.color;
  18963. var _default = {
  18964. // loading-icon加载中图标组件
  18965. loadingIcon: {
  18966. show: true,
  18967. color: color['u-tips-color'],
  18968. textColor: color['u-tips-color'],
  18969. vertical: false,
  18970. mode: 'spinner',
  18971. size: 24,
  18972. textSize: 15,
  18973. text: '',
  18974. timingFunction: 'ease-in-out',
  18975. duration: 1200,
  18976. inactiveColor: ''
  18977. }
  18978. };
  18979. exports.default = _default;
  18980. /***/ }),
  18981. /* 131 */
  18982. /*!****************************************************************************************!*\
  18983. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  18984. \****************************************************************************************/
  18985. /*! no static exports found */
  18986. /***/ (function(module, exports, __webpack_require__) {
  18987. "use strict";
  18988. Object.defineProperty(exports, "__esModule", {
  18989. value: true
  18990. });
  18991. exports.default = void 0;
  18992. /*
  18993. * @Author : LQ
  18994. * @Description :
  18995. * @version : 1.0
  18996. * @Date : 2021-08-20 16:44:21
  18997. * @LastAuthor : LQ
  18998. * @lastTime : 2021-08-20 17:00:23
  18999. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  19000. */
  19001. var _default = {
  19002. // loading-page组件
  19003. loadingPage: {
  19004. loadingText: '正在加载',
  19005. image: '',
  19006. loadingMode: 'circle',
  19007. loading: false,
  19008. bgColor: '#ffffff',
  19009. color: '#C8C8C8',
  19010. fontSize: 19,
  19011. iconSize: 28,
  19012. loadingColor: '#C8C8C8'
  19013. }
  19014. };
  19015. exports.default = _default;
  19016. /***/ }),
  19017. /* 132 */
  19018. /*!*************************************************************************************!*\
  19019. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  19020. \*************************************************************************************/
  19021. /*! no static exports found */
  19022. /***/ (function(module, exports, __webpack_require__) {
  19023. "use strict";
  19024. Object.defineProperty(exports, "__esModule", {
  19025. value: true
  19026. });
  19027. exports.default = void 0;
  19028. /*
  19029. * @Author : LQ
  19030. * @Description :
  19031. * @version : 1.0
  19032. * @Date : 2021-08-20 16:44:21
  19033. * @LastAuthor : LQ
  19034. * @lastTime : 2021-08-20 17:15:26
  19035. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  19036. */
  19037. var _default = {
  19038. // loadmore 组件
  19039. loadmore: {
  19040. status: 'loadmore',
  19041. bgColor: 'transparent',
  19042. icon: true,
  19043. fontSize: 14,
  19044. iconSize: 17,
  19045. color: '#606266',
  19046. loadingIcon: 'spinner',
  19047. loadmoreText: '加载更多',
  19048. loadingText: '正在加载...',
  19049. nomoreText: '没有更多了',
  19050. isDot: false,
  19051. iconColor: '#b7b7b7',
  19052. marginTop: 10,
  19053. marginBottom: 10,
  19054. height: 'auto',
  19055. line: false,
  19056. lineColor: '#E6E8EB',
  19057. dashed: false
  19058. }
  19059. };
  19060. exports.default = _default;
  19061. /***/ }),
  19062. /* 133 */
  19063. /*!**********************************************************************************!*\
  19064. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/modal.js ***!
  19065. \**********************************************************************************/
  19066. /*! no static exports found */
  19067. /***/ (function(module, exports, __webpack_require__) {
  19068. "use strict";
  19069. Object.defineProperty(exports, "__esModule", {
  19070. value: true
  19071. });
  19072. exports.default = void 0;
  19073. /*
  19074. * @Author : LQ
  19075. * @Description :
  19076. * @version : 1.0
  19077. * @Date : 2021-08-20 16:44:21
  19078. * @LastAuthor : LQ
  19079. * @lastTime : 2021-08-20 17:15:59
  19080. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  19081. */
  19082. var _default = {
  19083. // modal 组件
  19084. modal: {
  19085. show: false,
  19086. title: '',
  19087. content: '',
  19088. confirmText: '确认',
  19089. cancelText: '取消',
  19090. showConfirmButton: true,
  19091. showCancelButton: false,
  19092. confirmColor: '#2979ff',
  19093. cancelColor: '#606266',
  19094. buttonReverse: false,
  19095. zoom: true,
  19096. asyncClose: false,
  19097. closeOnClickOverlay: false,
  19098. negativeTop: 0,
  19099. width: '650rpx',
  19100. confirmButtonShape: ''
  19101. }
  19102. };
  19103. exports.default = _default;
  19104. /***/ }),
  19105. /* 134 */
  19106. /*!***********************************************************************************!*\
  19107. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  19108. \***********************************************************************************/
  19109. /*! no static exports found */
  19110. /***/ (function(module, exports, __webpack_require__) {
  19111. "use strict";
  19112. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19113. Object.defineProperty(exports, "__esModule", {
  19114. value: true
  19115. });
  19116. exports.default = void 0;
  19117. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 135));
  19118. /*
  19119. * @Author : LQ
  19120. * @Description :
  19121. * @version : 1.0
  19122. * @Date : 2021-08-20 16:44:21
  19123. * @LastAuthor : LQ
  19124. * @lastTime : 2021-08-20 17:16:18
  19125. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  19126. */
  19127. var _default = {
  19128. // navbar 组件
  19129. navbar: {
  19130. safeAreaInsetTop: true,
  19131. placeholder: false,
  19132. fixed: true,
  19133. border: false,
  19134. leftIcon: 'arrow-left',
  19135. leftText: '',
  19136. rightText: '',
  19137. rightIcon: '',
  19138. title: '',
  19139. bgColor: '#ffffff',
  19140. titleWidth: '400rpx',
  19141. height: '44px',
  19142. leftIconSize: 20,
  19143. leftIconColor: _color.default.mainColor,
  19144. autoBack: false,
  19145. titleStyle: ''
  19146. }
  19147. };
  19148. exports.default = _default;
  19149. /***/ }),
  19150. /* 135 */
  19151. /*!****************************************************************************!*\
  19152. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/color.js ***!
  19153. \****************************************************************************/
  19154. /*! no static exports found */
  19155. /***/ (function(module, exports, __webpack_require__) {
  19156. "use strict";
  19157. Object.defineProperty(exports, "__esModule", {
  19158. value: true
  19159. });
  19160. exports.default = void 0;
  19161. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  19162. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  19163. var color = {
  19164. primary: '#3c9cff',
  19165. info: '#909399',
  19166. default: '#909399',
  19167. warning: '#f9ae3d',
  19168. error: '#f56c6c',
  19169. success: '#5ac725',
  19170. mainColor: '#303133',
  19171. contentColor: '#606266',
  19172. tipsColor: '#909399',
  19173. lightColor: '#c0c4cc',
  19174. borderColor: '#e4e7ed'
  19175. };
  19176. var _default = color;
  19177. exports.default = _default;
  19178. /***/ }),
  19179. /* 136 */
  19180. /*!**************************************************************************************!*\
  19181. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  19182. \**************************************************************************************/
  19183. /*! no static exports found */
  19184. /***/ (function(module, exports, __webpack_require__) {
  19185. "use strict";
  19186. Object.defineProperty(exports, "__esModule", {
  19187. value: true
  19188. });
  19189. exports.default = void 0;
  19190. /*
  19191. * @Author : LQ
  19192. * @Description :
  19193. * @version : 1.0
  19194. * @Date : 2021-08-20 16:44:21
  19195. * @LastAuthor : LQ
  19196. * @lastTime : 2021-08-20 17:16:39
  19197. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  19198. */
  19199. var _default = {
  19200. // noNetwork
  19201. noNetwork: {
  19202. tips: '哎呀,网络信号丢失',
  19203. zIndex: '',
  19204. 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'
  19205. }
  19206. };
  19207. exports.default = _default;
  19208. /***/ }),
  19209. /* 137 */
  19210. /*!**************************************************************************************!*\
  19211. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  19212. \**************************************************************************************/
  19213. /*! no static exports found */
  19214. /***/ (function(module, exports, __webpack_require__) {
  19215. "use strict";
  19216. Object.defineProperty(exports, "__esModule", {
  19217. value: true
  19218. });
  19219. exports.default = void 0;
  19220. /*
  19221. * @Author : LQ
  19222. * @Description :
  19223. * @version : 1.0
  19224. * @Date : 2021-08-20 16:44:21
  19225. * @LastAuthor : LQ
  19226. * @lastTime : 2021-08-20 17:17:13
  19227. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  19228. */
  19229. var _default = {
  19230. // noticeBar
  19231. noticeBar: {
  19232. text: function text() {
  19233. return [];
  19234. },
  19235. direction: 'row',
  19236. step: false,
  19237. icon: 'volume',
  19238. mode: '',
  19239. color: '#f9ae3d',
  19240. bgColor: '#fdf6ec',
  19241. speed: 80,
  19242. fontSize: 14,
  19243. duration: 2000,
  19244. disableTouch: true,
  19245. url: '',
  19246. linkType: 'navigateTo'
  19247. }
  19248. };
  19249. exports.default = _default;
  19250. /***/ }),
  19251. /* 138 */
  19252. /*!***********************************************************************************!*\
  19253. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/notify.js ***!
  19254. \***********************************************************************************/
  19255. /*! no static exports found */
  19256. /***/ (function(module, exports, __webpack_require__) {
  19257. "use strict";
  19258. Object.defineProperty(exports, "__esModule", {
  19259. value: true
  19260. });
  19261. exports.default = void 0;
  19262. /*
  19263. * @Author : LQ
  19264. * @Description :
  19265. * @version : 1.0
  19266. * @Date : 2021-08-20 16:44:21
  19267. * @LastAuthor : LQ
  19268. * @lastTime : 2021-08-20 17:10:21
  19269. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  19270. */
  19271. var _default = {
  19272. // notify组件
  19273. notify: {
  19274. top: 0,
  19275. type: 'primary',
  19276. color: '#ffffff',
  19277. bgColor: '',
  19278. message: '',
  19279. duration: 3000,
  19280. fontSize: 15,
  19281. safeAreaInsetTop: false
  19282. }
  19283. };
  19284. exports.default = _default;
  19285. /***/ }),
  19286. /* 139 */
  19287. /*!**************************************************************************************!*\
  19288. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  19289. \**************************************************************************************/
  19290. /*! no static exports found */
  19291. /***/ (function(module, exports, __webpack_require__) {
  19292. "use strict";
  19293. Object.defineProperty(exports, "__esModule", {
  19294. value: true
  19295. });
  19296. exports.default = void 0;
  19297. /*
  19298. * @Author : LQ
  19299. * @Description :
  19300. * @version : 1.0
  19301. * @Date : 2021-08-20 16:44:21
  19302. * @LastAuthor : LQ
  19303. * @lastTime : 2021-08-20 17:11:46
  19304. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  19305. */
  19306. var _default = {
  19307. // 步进器组件
  19308. numberBox: {
  19309. name: '',
  19310. value: 0,
  19311. min: 1,
  19312. max: Number.MAX_SAFE_INTEGER,
  19313. step: 1,
  19314. integer: false,
  19315. disabled: false,
  19316. disabledInput: false,
  19317. asyncChange: false,
  19318. inputWidth: 35,
  19319. showMinus: true,
  19320. showPlus: true,
  19321. decimalLength: null,
  19322. longPress: true,
  19323. color: '#323233',
  19324. buttonSize: 30,
  19325. bgColor: '#EBECEE',
  19326. cursorSpacing: 100,
  19327. disableMinus: false,
  19328. disablePlus: false,
  19329. iconStyle: ''
  19330. }
  19331. };
  19332. exports.default = _default;
  19333. /***/ }),
  19334. /* 140 */
  19335. /*!*******************************************************************************************!*\
  19336. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  19337. \*******************************************************************************************/
  19338. /*! no static exports found */
  19339. /***/ (function(module, exports, __webpack_require__) {
  19340. "use strict";
  19341. Object.defineProperty(exports, "__esModule", {
  19342. value: true
  19343. });
  19344. exports.default = void 0;
  19345. /*
  19346. * @Author : LQ
  19347. * @Description :
  19348. * @version : 1.0
  19349. * @Date : 2021-08-20 16:44:21
  19350. * @LastAuthor : LQ
  19351. * @lastTime : 2021-08-20 17:08:05
  19352. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  19353. */
  19354. var _default = {
  19355. // 数字键盘
  19356. numberKeyboard: {
  19357. mode: 'number',
  19358. dotDisabled: false,
  19359. random: false
  19360. }
  19361. };
  19362. exports.default = _default;
  19363. /***/ }),
  19364. /* 141 */
  19365. /*!************************************************************************************!*\
  19366. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  19367. \************************************************************************************/
  19368. /*! no static exports found */
  19369. /***/ (function(module, exports, __webpack_require__) {
  19370. "use strict";
  19371. Object.defineProperty(exports, "__esModule", {
  19372. value: true
  19373. });
  19374. exports.default = void 0;
  19375. /*
  19376. * @Author : LQ
  19377. * @Description :
  19378. * @version : 1.0
  19379. * @Date : 2021-08-20 16:44:21
  19380. * @LastAuthor : LQ
  19381. * @lastTime : 2021-08-20 17:06:50
  19382. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  19383. */
  19384. var _default = {
  19385. // overlay组件
  19386. overlay: {
  19387. show: false,
  19388. zIndex: 10070,
  19389. duration: 300,
  19390. opacity: 0.5
  19391. }
  19392. };
  19393. exports.default = _default;
  19394. /***/ }),
  19395. /* 142 */
  19396. /*!**********************************************************************************!*\
  19397. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/parse.js ***!
  19398. \**********************************************************************************/
  19399. /*! no static exports found */
  19400. /***/ (function(module, exports, __webpack_require__) {
  19401. "use strict";
  19402. Object.defineProperty(exports, "__esModule", {
  19403. value: true
  19404. });
  19405. exports.default = void 0;
  19406. /*
  19407. * @Author : LQ
  19408. * @Description :
  19409. * @version : 1.0
  19410. * @Date : 2021-08-20 16:44:21
  19411. * @LastAuthor : LQ
  19412. * @lastTime : 2021-08-20 17:17:33
  19413. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  19414. */
  19415. var _default = {
  19416. // parse
  19417. parse: {
  19418. copyLink: true,
  19419. errorImg: '',
  19420. lazyLoad: false,
  19421. loadingImg: '',
  19422. pauseVideo: true,
  19423. previewImg: true,
  19424. setTitle: true,
  19425. showImgMenu: true
  19426. }
  19427. };
  19428. exports.default = _default;
  19429. /***/ }),
  19430. /* 143 */
  19431. /*!***********************************************************************************!*\
  19432. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/picker.js ***!
  19433. \***********************************************************************************/
  19434. /*! no static exports found */
  19435. /***/ (function(module, exports, __webpack_require__) {
  19436. "use strict";
  19437. Object.defineProperty(exports, "__esModule", {
  19438. value: true
  19439. });
  19440. exports.default = void 0;
  19441. /*
  19442. * @Author : LQ
  19443. * @Description :
  19444. * @version : 1.0
  19445. * @Date : 2021-08-20 16:44:21
  19446. * @LastAuthor : LQ
  19447. * @lastTime : 2021-08-20 17:18:20
  19448. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  19449. */
  19450. var _default = {
  19451. // picker
  19452. picker: {
  19453. show: false,
  19454. showToolbar: true,
  19455. title: '',
  19456. columns: function columns() {
  19457. return [];
  19458. },
  19459. loading: false,
  19460. itemHeight: 44,
  19461. cancelText: '取消',
  19462. confirmText: '确定',
  19463. cancelColor: '#909193',
  19464. confirmColor: '#3c9cff',
  19465. visibleItemCount: 5,
  19466. keyName: 'text',
  19467. closeOnClickOverlay: false,
  19468. defaultIndex: function defaultIndex() {
  19469. return [];
  19470. },
  19471. immediateChange: false
  19472. }
  19473. };
  19474. exports.default = _default;
  19475. /***/ }),
  19476. /* 144 */
  19477. /*!**********************************************************************************!*\
  19478. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/popup.js ***!
  19479. \**********************************************************************************/
  19480. /*! no static exports found */
  19481. /***/ (function(module, exports, __webpack_require__) {
  19482. "use strict";
  19483. Object.defineProperty(exports, "__esModule", {
  19484. value: true
  19485. });
  19486. exports.default = void 0;
  19487. /*
  19488. * @Author : LQ
  19489. * @Description :
  19490. * @version : 1.0
  19491. * @Date : 2021-08-20 16:44:21
  19492. * @LastAuthor : LQ
  19493. * @lastTime : 2021-08-20 17:06:33
  19494. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  19495. */
  19496. var _default = {
  19497. // popup组件
  19498. popup: {
  19499. show: false,
  19500. overlay: true,
  19501. mode: 'bottom',
  19502. duration: 300,
  19503. closeable: false,
  19504. overlayStyle: function overlayStyle() {},
  19505. closeOnClickOverlay: true,
  19506. zIndex: 10075,
  19507. safeAreaInsetBottom: true,
  19508. safeAreaInsetTop: false,
  19509. closeIconPos: 'top-right',
  19510. round: 0,
  19511. zoom: true,
  19512. bgColor: '',
  19513. overlayOpacity: 0.5
  19514. }
  19515. };
  19516. exports.default = _default;
  19517. /***/ }),
  19518. /* 145 */
  19519. /*!**********************************************************************************!*\
  19520. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/radio.js ***!
  19521. \**********************************************************************************/
  19522. /*! no static exports found */
  19523. /***/ (function(module, exports, __webpack_require__) {
  19524. "use strict";
  19525. Object.defineProperty(exports, "__esModule", {
  19526. value: true
  19527. });
  19528. exports.default = void 0;
  19529. /*
  19530. * @Author : LQ
  19531. * @Description :
  19532. * @version : 1.0
  19533. * @Date : 2021-08-20 16:44:21
  19534. * @LastAuthor : LQ
  19535. * @lastTime : 2021-08-20 17:02:34
  19536. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  19537. */
  19538. var _default = {
  19539. // radio组件
  19540. radio: {
  19541. name: '',
  19542. shape: '',
  19543. disabled: '',
  19544. labelDisabled: '',
  19545. activeColor: '',
  19546. inactiveColor: '',
  19547. iconSize: '',
  19548. labelSize: '',
  19549. label: '',
  19550. labelColor: '',
  19551. size: '',
  19552. iconColor: '',
  19553. placement: ''
  19554. }
  19555. };
  19556. exports.default = _default;
  19557. /***/ }),
  19558. /* 146 */
  19559. /*!***************************************************************************************!*\
  19560. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  19561. \***************************************************************************************/
  19562. /*! no static exports found */
  19563. /***/ (function(module, exports, __webpack_require__) {
  19564. "use strict";
  19565. Object.defineProperty(exports, "__esModule", {
  19566. value: true
  19567. });
  19568. exports.default = void 0;
  19569. /*
  19570. * @Author : LQ
  19571. * @Description :
  19572. * @version : 1.0
  19573. * @Date : 2021-08-20 16:44:21
  19574. * @LastAuthor : LQ
  19575. * @lastTime : 2021-08-20 17:03:12
  19576. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  19577. */
  19578. var _default = {
  19579. // radio-group组件
  19580. radioGroup: {
  19581. value: '',
  19582. disabled: false,
  19583. shape: 'circle',
  19584. activeColor: '#2979ff',
  19585. inactiveColor: '#c8c9cc',
  19586. name: '',
  19587. size: 18,
  19588. placement: 'row',
  19589. label: '',
  19590. labelColor: '#303133',
  19591. labelSize: 14,
  19592. labelDisabled: false,
  19593. iconColor: '#ffffff',
  19594. iconSize: 12,
  19595. borderBottom: false,
  19596. iconPlacement: 'left'
  19597. }
  19598. };
  19599. exports.default = _default;
  19600. /***/ }),
  19601. /* 147 */
  19602. /*!*********************************************************************************!*\
  19603. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/rate.js ***!
  19604. \*********************************************************************************/
  19605. /*! no static exports found */
  19606. /***/ (function(module, exports, __webpack_require__) {
  19607. "use strict";
  19608. Object.defineProperty(exports, "__esModule", {
  19609. value: true
  19610. });
  19611. exports.default = void 0;
  19612. /*
  19613. * @Author : LQ
  19614. * @Description :
  19615. * @version : 1.0
  19616. * @Date : 2021-08-20 16:44:21
  19617. * @LastAuthor : LQ
  19618. * @lastTime : 2021-08-20 17:05:09
  19619. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  19620. */
  19621. var _default = {
  19622. // rate组件
  19623. rate: {
  19624. value: 1,
  19625. count: 5,
  19626. disabled: false,
  19627. size: 18,
  19628. inactiveColor: '#b2b2b2',
  19629. activeColor: '#FA3534',
  19630. gutter: 4,
  19631. minCount: 1,
  19632. allowHalf: false,
  19633. activeIcon: 'star-fill',
  19634. inactiveIcon: 'star',
  19635. touchable: true
  19636. }
  19637. };
  19638. exports.default = _default;
  19639. /***/ }),
  19640. /* 148 */
  19641. /*!*************************************************************************************!*\
  19642. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  19643. \*************************************************************************************/
  19644. /*! no static exports found */
  19645. /***/ (function(module, exports, __webpack_require__) {
  19646. "use strict";
  19647. Object.defineProperty(exports, "__esModule", {
  19648. value: true
  19649. });
  19650. exports.default = void 0;
  19651. /*
  19652. * @Author : LQ
  19653. * @Description :
  19654. * @version : 1.0
  19655. * @Date : 2021-08-20 16:44:21
  19656. * @LastAuthor : LQ
  19657. * @lastTime : 2021-08-20 17:18:41
  19658. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  19659. */
  19660. var _default = {
  19661. // readMore
  19662. readMore: {
  19663. showHeight: 400,
  19664. toggle: false,
  19665. closeText: '展开阅读全文',
  19666. openText: '收起',
  19667. color: '#2979ff',
  19668. fontSize: 14,
  19669. textIndent: '2em',
  19670. name: ''
  19671. }
  19672. };
  19673. exports.default = _default;
  19674. /***/ }),
  19675. /* 149 */
  19676. /*!********************************************************************************!*\
  19677. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/row.js ***!
  19678. \********************************************************************************/
  19679. /*! no static exports found */
  19680. /***/ (function(module, exports, __webpack_require__) {
  19681. "use strict";
  19682. Object.defineProperty(exports, "__esModule", {
  19683. value: true
  19684. });
  19685. exports.default = void 0;
  19686. /*
  19687. * @Author : LQ
  19688. * @Description :
  19689. * @version : 1.0
  19690. * @Date : 2021-08-20 16:44:21
  19691. * @LastAuthor : LQ
  19692. * @lastTime : 2021-08-20 17:18:58
  19693. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  19694. */
  19695. var _default = {
  19696. // row
  19697. row: {
  19698. gutter: 0,
  19699. justify: 'start',
  19700. align: 'center'
  19701. }
  19702. };
  19703. exports.default = _default;
  19704. /***/ }),
  19705. /* 150 */
  19706. /*!**************************************************************************************!*\
  19707. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  19708. \**************************************************************************************/
  19709. /*! no static exports found */
  19710. /***/ (function(module, exports, __webpack_require__) {
  19711. "use strict";
  19712. Object.defineProperty(exports, "__esModule", {
  19713. value: true
  19714. });
  19715. exports.default = void 0;
  19716. /*
  19717. * @Author : LQ
  19718. * @Description :
  19719. * @version : 1.0
  19720. * @Date : 2021-08-20 16:44:21
  19721. * @LastAuthor : LQ
  19722. * @lastTime : 2021-08-20 17:19:13
  19723. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  19724. */
  19725. var _default = {
  19726. // rowNotice
  19727. rowNotice: {
  19728. text: '',
  19729. icon: 'volume',
  19730. mode: '',
  19731. color: '#f9ae3d',
  19732. bgColor: '#fdf6ec',
  19733. fontSize: 14,
  19734. speed: 80
  19735. }
  19736. };
  19737. exports.default = _default;
  19738. /***/ }),
  19739. /* 151 */
  19740. /*!***************************************************************************************!*\
  19741. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  19742. \***************************************************************************************/
  19743. /*! no static exports found */
  19744. /***/ (function(module, exports, __webpack_require__) {
  19745. "use strict";
  19746. Object.defineProperty(exports, "__esModule", {
  19747. value: true
  19748. });
  19749. exports.default = void 0;
  19750. /*
  19751. * @Author : LQ
  19752. * @Description :
  19753. * @version : 1.0
  19754. * @Date : 2021-08-20 16:44:21
  19755. * @LastAuthor : LQ
  19756. * @lastTime : 2021-08-20 17:19:28
  19757. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  19758. */
  19759. var _default = {
  19760. // scrollList
  19761. scrollList: {
  19762. indicatorWidth: 50,
  19763. indicatorBarWidth: 20,
  19764. indicator: true,
  19765. indicatorColor: '#f2f2f2',
  19766. indicatorActiveColor: '#3c9cff',
  19767. indicatorStyle: ''
  19768. }
  19769. };
  19770. exports.default = _default;
  19771. /***/ }),
  19772. /* 152 */
  19773. /*!***********************************************************************************!*\
  19774. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/search.js ***!
  19775. \***********************************************************************************/
  19776. /*! no static exports found */
  19777. /***/ (function(module, exports, __webpack_require__) {
  19778. "use strict";
  19779. Object.defineProperty(exports, "__esModule", {
  19780. value: true
  19781. });
  19782. exports.default = void 0;
  19783. /*
  19784. * @Author : LQ
  19785. * @Description :
  19786. * @version : 1.0
  19787. * @Date : 2021-08-20 16:44:21
  19788. * @LastAuthor : LQ
  19789. * @lastTime : 2021-08-20 17:19:45
  19790. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  19791. */
  19792. var _default = {
  19793. // search
  19794. search: {
  19795. shape: 'round',
  19796. bgColor: '#f2f2f2',
  19797. placeholder: '请输入关键字',
  19798. clearabled: true,
  19799. focus: false,
  19800. showAction: true,
  19801. actionStyle: function actionStyle() {
  19802. return {};
  19803. },
  19804. actionText: '搜索',
  19805. inputAlign: 'left',
  19806. inputStyle: function inputStyle() {
  19807. return {};
  19808. },
  19809. disabled: false,
  19810. borderColor: 'transparent',
  19811. searchIconColor: '#909399',
  19812. searchIconSize: 22,
  19813. color: '#606266',
  19814. placeholderColor: '#909399',
  19815. searchIcon: 'search',
  19816. margin: '0',
  19817. animation: false,
  19818. value: '',
  19819. maxlength: '-1',
  19820. height: 32,
  19821. label: null
  19822. }
  19823. };
  19824. exports.default = _default;
  19825. /***/ }),
  19826. /* 153 */
  19827. /*!************************************************************************************!*\
  19828. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/section.js ***!
  19829. \************************************************************************************/
  19830. /*! no static exports found */
  19831. /***/ (function(module, exports, __webpack_require__) {
  19832. "use strict";
  19833. Object.defineProperty(exports, "__esModule", {
  19834. value: true
  19835. });
  19836. exports.default = void 0;
  19837. /*
  19838. * @Author : LQ
  19839. * @Description :
  19840. * @version : 1.0
  19841. * @Date : 2021-08-20 16:44:21
  19842. * @LastAuthor : LQ
  19843. * @lastTime : 2021-08-20 17:07:33
  19844. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  19845. */
  19846. var _default = {
  19847. // u-section组件
  19848. section: {
  19849. title: '',
  19850. subTitle: '更多',
  19851. right: true,
  19852. fontSize: 15,
  19853. bold: true,
  19854. color: '#303133',
  19855. subColor: '#909399',
  19856. showLine: true,
  19857. lineColor: '',
  19858. arrow: true
  19859. }
  19860. };
  19861. exports.default = _default;
  19862. /***/ }),
  19863. /* 154 */
  19864. /*!*************************************************************************************!*\
  19865. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  19866. \*************************************************************************************/
  19867. /*! no static exports found */
  19868. /***/ (function(module, exports, __webpack_require__) {
  19869. "use strict";
  19870. Object.defineProperty(exports, "__esModule", {
  19871. value: true
  19872. });
  19873. exports.default = void 0;
  19874. /*
  19875. * @Author : LQ
  19876. * @Description :
  19877. * @version : 1.0
  19878. * @Date : 2021-08-20 16:44:21
  19879. * @LastAuthor : LQ
  19880. * @lastTime : 2021-08-20 17:20:14
  19881. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  19882. */
  19883. var _default = {
  19884. // skeleton
  19885. skeleton: {
  19886. loading: true,
  19887. animate: true,
  19888. rows: 0,
  19889. rowsWidth: '100%',
  19890. rowsHeight: 18,
  19891. title: true,
  19892. titleWidth: '50%',
  19893. titleHeight: 18,
  19894. avatar: false,
  19895. avatarSize: 32,
  19896. avatarShape: 'circle'
  19897. }
  19898. };
  19899. exports.default = _default;
  19900. /***/ }),
  19901. /* 155 */
  19902. /*!***********************************************************************************!*\
  19903. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/slider.js ***!
  19904. \***********************************************************************************/
  19905. /*! no static exports found */
  19906. /***/ (function(module, exports, __webpack_require__) {
  19907. "use strict";
  19908. Object.defineProperty(exports, "__esModule", {
  19909. value: true
  19910. });
  19911. exports.default = void 0;
  19912. /*
  19913. * @Author : LQ
  19914. * @Description :
  19915. * @version : 1.0
  19916. * @Date : 2021-08-20 16:44:21
  19917. * @LastAuthor : LQ
  19918. * @lastTime : 2021-08-20 17:08:25
  19919. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  19920. */
  19921. var _default = {
  19922. // slider组件
  19923. slider: {
  19924. value: 0,
  19925. blockSize: 18,
  19926. min: 0,
  19927. max: 100,
  19928. step: 1,
  19929. activeColor: '#2979ff',
  19930. inactiveColor: '#c0c4cc',
  19931. blockColor: '#ffffff',
  19932. showValue: false,
  19933. disabled: false,
  19934. blockStyle: function blockStyle() {}
  19935. }
  19936. };
  19937. exports.default = _default;
  19938. /***/ }),
  19939. /* 156 */
  19940. /*!**************************************************************************************!*\
  19941. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  19942. \**************************************************************************************/
  19943. /*! no static exports found */
  19944. /***/ (function(module, exports, __webpack_require__) {
  19945. "use strict";
  19946. Object.defineProperty(exports, "__esModule", {
  19947. value: true
  19948. });
  19949. exports.default = void 0;
  19950. /*
  19951. * @Author : LQ
  19952. * @Description :
  19953. * @version : 1.0
  19954. * @Date : 2021-08-20 16:44:21
  19955. * @LastAuthor : LQ
  19956. * @lastTime : 2021-08-20 17:20:39
  19957. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  19958. */
  19959. var _default = {
  19960. // statusBar
  19961. statusBar: {
  19962. bgColor: 'transparent'
  19963. }
  19964. };
  19965. exports.default = _default;
  19966. /***/ }),
  19967. /* 157 */
  19968. /*!**********************************************************************************!*\
  19969. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/steps.js ***!
  19970. \**********************************************************************************/
  19971. /*! no static exports found */
  19972. /***/ (function(module, exports, __webpack_require__) {
  19973. "use strict";
  19974. Object.defineProperty(exports, "__esModule", {
  19975. value: true
  19976. });
  19977. exports.default = void 0;
  19978. /*
  19979. * @Author : LQ
  19980. * @Description :
  19981. * @version : 1.0
  19982. * @Date : 2021-08-20 16:44:21
  19983. * @LastAuthor : LQ
  19984. * @lastTime : 2021-08-20 17:12:37
  19985. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  19986. */
  19987. var _default = {
  19988. // steps组件
  19989. steps: {
  19990. direction: 'row',
  19991. current: 0,
  19992. activeColor: '#3c9cff',
  19993. inactiveColor: '#969799',
  19994. activeIcon: '',
  19995. inactiveIcon: '',
  19996. dot: false
  19997. }
  19998. };
  19999. exports.default = _default;
  20000. /***/ }),
  20001. /* 158 */
  20002. /*!**************************************************************************************!*\
  20003. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  20004. \**************************************************************************************/
  20005. /*! no static exports found */
  20006. /***/ (function(module, exports, __webpack_require__) {
  20007. "use strict";
  20008. Object.defineProperty(exports, "__esModule", {
  20009. value: true
  20010. });
  20011. exports.default = void 0;
  20012. /*
  20013. * @Author : LQ
  20014. * @Description :
  20015. * @version : 1.0
  20016. * @Date : 2021-08-20 16:44:21
  20017. * @LastAuthor : LQ
  20018. * @lastTime : 2021-08-20 17:12:55
  20019. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  20020. */
  20021. var _default = {
  20022. // steps-item组件
  20023. stepsItem: {
  20024. title: '',
  20025. desc: '',
  20026. iconSize: 17,
  20027. error: false
  20028. }
  20029. };
  20030. exports.default = _default;
  20031. /***/ }),
  20032. /* 159 */
  20033. /*!***********************************************************************************!*\
  20034. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  20035. \***********************************************************************************/
  20036. /*! no static exports found */
  20037. /***/ (function(module, exports, __webpack_require__) {
  20038. "use strict";
  20039. Object.defineProperty(exports, "__esModule", {
  20040. value: true
  20041. });
  20042. exports.default = void 0;
  20043. /*
  20044. * @Author : LQ
  20045. * @Description :
  20046. * @version : 1.0
  20047. * @Date : 2021-08-20 16:44:21
  20048. * @LastAuthor : LQ
  20049. * @lastTime : 2021-08-20 17:01:30
  20050. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  20051. */
  20052. var _default = {
  20053. // sticky组件
  20054. sticky: {
  20055. offsetTop: 0,
  20056. customNavHeight: 0,
  20057. disabled: false,
  20058. bgColor: 'transparent',
  20059. zIndex: '',
  20060. index: ''
  20061. }
  20062. };
  20063. exports.default = _default;
  20064. /***/ }),
  20065. /* 160 */
  20066. /*!***************************************************************************************!*\
  20067. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  20068. \***************************************************************************************/
  20069. /*! no static exports found */
  20070. /***/ (function(module, exports, __webpack_require__) {
  20071. "use strict";
  20072. Object.defineProperty(exports, "__esModule", {
  20073. value: true
  20074. });
  20075. exports.default = void 0;
  20076. /*
  20077. * @Author : LQ
  20078. * @Description :
  20079. * @version : 1.0
  20080. * @Date : 2021-08-20 16:44:21
  20081. * @LastAuthor : LQ
  20082. * @lastTime : 2021-08-20 17:12:20
  20083. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  20084. */
  20085. var _default = {
  20086. // subsection组件
  20087. subsection: {
  20088. list: [],
  20089. current: 0,
  20090. activeColor: '#3c9cff',
  20091. inactiveColor: '#303133',
  20092. mode: 'button',
  20093. fontSize: 12,
  20094. bold: true,
  20095. bgColor: '#eeeeef',
  20096. keyName: 'name'
  20097. }
  20098. };
  20099. exports.default = _default;
  20100. /***/ }),
  20101. /* 161 */
  20102. /*!****************************************************************************************!*\
  20103. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  20104. \****************************************************************************************/
  20105. /*! no static exports found */
  20106. /***/ (function(module, exports, __webpack_require__) {
  20107. "use strict";
  20108. Object.defineProperty(exports, "__esModule", {
  20109. value: true
  20110. });
  20111. exports.default = void 0;
  20112. /*
  20113. * @Author : LQ
  20114. * @Description :
  20115. * @version : 1.0
  20116. * @Date : 2021-08-20 16:44:21
  20117. * @LastAuthor : LQ
  20118. * @lastTime : 2021-08-20 17:00:42
  20119. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  20120. */
  20121. var _default = {
  20122. // swipe-action组件
  20123. swipeAction: {
  20124. autoClose: true
  20125. }
  20126. };
  20127. exports.default = _default;
  20128. /***/ }),
  20129. /* 162 */
  20130. /*!********************************************************************************************!*\
  20131. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  20132. \********************************************************************************************/
  20133. /*! no static exports found */
  20134. /***/ (function(module, exports, __webpack_require__) {
  20135. "use strict";
  20136. Object.defineProperty(exports, "__esModule", {
  20137. value: true
  20138. });
  20139. exports.default = void 0;
  20140. /*
  20141. * @Author : LQ
  20142. * @Description :
  20143. * @version : 1.0
  20144. * @Date : 2021-08-20 16:44:21
  20145. * @LastAuthor : LQ
  20146. * @lastTime : 2021-08-20 17:01:13
  20147. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  20148. */
  20149. var _default = {
  20150. // swipeActionItem 组件
  20151. swipeActionItem: {
  20152. show: false,
  20153. name: '',
  20154. disabled: false,
  20155. threshold: 20,
  20156. autoClose: true,
  20157. options: [],
  20158. duration: 300
  20159. }
  20160. };
  20161. exports.default = _default;
  20162. /***/ }),
  20163. /* 163 */
  20164. /*!***********************************************************************************!*\
  20165. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  20166. \***********************************************************************************/
  20167. /*! no static exports found */
  20168. /***/ (function(module, exports, __webpack_require__) {
  20169. "use strict";
  20170. Object.defineProperty(exports, "__esModule", {
  20171. value: true
  20172. });
  20173. exports.default = void 0;
  20174. /*
  20175. * @Author : LQ
  20176. * @Description :
  20177. * @version : 1.0
  20178. * @Date : 2021-08-20 16:44:21
  20179. * @LastAuthor : LQ
  20180. * @lastTime : 2021-08-20 17:21:38
  20181. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  20182. */
  20183. var _default = {
  20184. // swiper 组件
  20185. swiper: {
  20186. list: function list() {
  20187. return [];
  20188. },
  20189. indicator: false,
  20190. indicatorActiveColor: '#FFFFFF',
  20191. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  20192. indicatorStyle: '',
  20193. indicatorMode: 'line',
  20194. autoplay: true,
  20195. current: 0,
  20196. currentItemId: '',
  20197. interval: 3000,
  20198. duration: 300,
  20199. circular: false,
  20200. previousMargin: 0,
  20201. nextMargin: 0,
  20202. acceleration: false,
  20203. displayMultipleItems: 1,
  20204. easingFunction: 'default',
  20205. keyName: 'url',
  20206. imgMode: 'aspectFill',
  20207. height: 130,
  20208. bgColor: '#f3f4f6',
  20209. radius: 4,
  20210. loading: false,
  20211. showTitle: false
  20212. }
  20213. };
  20214. exports.default = _default;
  20215. /***/ }),
  20216. /* 164 */
  20217. /*!*********************************************************************************************!*\
  20218. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  20219. \*********************************************************************************************/
  20220. /*! no static exports found */
  20221. /***/ (function(module, exports, __webpack_require__) {
  20222. "use strict";
  20223. Object.defineProperty(exports, "__esModule", {
  20224. value: true
  20225. });
  20226. exports.default = void 0;
  20227. /*
  20228. * @Author : LQ
  20229. * @Description :
  20230. * @version : 1.0
  20231. * @Date : 2021-08-20 16:44:21
  20232. * @LastAuthor : LQ
  20233. * @lastTime : 2021-08-20 17:22:07
  20234. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  20235. */
  20236. var _default = {
  20237. // swiperIndicator 组件
  20238. swiperIndicator: {
  20239. length: 0,
  20240. current: 0,
  20241. indicatorActiveColor: '',
  20242. indicatorInactiveColor: '',
  20243. indicatorMode: 'line'
  20244. }
  20245. };
  20246. exports.default = _default;
  20247. /***/ }),
  20248. /* 165 */
  20249. /*!***********************************************************************************!*\
  20250. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/switch.js ***!
  20251. \***********************************************************************************/
  20252. /*! no static exports found */
  20253. /***/ (function(module, exports, __webpack_require__) {
  20254. "use strict";
  20255. Object.defineProperty(exports, "__esModule", {
  20256. value: true
  20257. });
  20258. exports.default = void 0;
  20259. /*
  20260. * @Author : LQ
  20261. * @Description :
  20262. * @version : 1.0
  20263. * @Date : 2021-08-20 16:44:21
  20264. * @LastAuthor : LQ
  20265. * @lastTime : 2021-08-20 17:22:24
  20266. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  20267. */
  20268. var _default = {
  20269. // switch
  20270. switch: {
  20271. loading: false,
  20272. disabled: false,
  20273. size: 25,
  20274. activeColor: '#2979ff',
  20275. inactiveColor: '#ffffff',
  20276. value: false,
  20277. activeValue: true,
  20278. inactiveValue: false,
  20279. asyncChange: false,
  20280. space: 0
  20281. }
  20282. };
  20283. exports.default = _default;
  20284. /***/ }),
  20285. /* 166 */
  20286. /*!***********************************************************************************!*\
  20287. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  20288. \***********************************************************************************/
  20289. /*! no static exports found */
  20290. /***/ (function(module, exports, __webpack_require__) {
  20291. "use strict";
  20292. Object.defineProperty(exports, "__esModule", {
  20293. value: true
  20294. });
  20295. exports.default = void 0;
  20296. /*
  20297. * @Author : LQ
  20298. * @Description :
  20299. * @version : 1.0
  20300. * @Date : 2021-08-20 16:44:21
  20301. * @LastAuthor : LQ
  20302. * @lastTime : 2021-08-20 17:22:40
  20303. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  20304. */
  20305. var _default = {
  20306. // tabbar
  20307. tabbar: {
  20308. value: null,
  20309. safeAreaInsetBottom: true,
  20310. border: true,
  20311. zIndex: 1,
  20312. activeColor: '#1989fa',
  20313. inactiveColor: '#7d7e80',
  20314. fixed: true,
  20315. placeholder: true
  20316. }
  20317. };
  20318. exports.default = _default;
  20319. /***/ }),
  20320. /* 167 */
  20321. /*!***************************************************************************************!*\
  20322. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  20323. \***************************************************************************************/
  20324. /*! no static exports found */
  20325. /***/ (function(module, exports, __webpack_require__) {
  20326. "use strict";
  20327. Object.defineProperty(exports, "__esModule", {
  20328. value: true
  20329. });
  20330. exports.default = void 0;
  20331. /*
  20332. * @Author : LQ
  20333. * @Description :
  20334. * @version : 1.0
  20335. * @Date : 2021-08-20 16:44:21
  20336. * @LastAuthor : LQ
  20337. * @lastTime : 2021-08-20 17:22:55
  20338. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  20339. */
  20340. var _default = {
  20341. //
  20342. tabbarItem: {
  20343. name: null,
  20344. icon: '',
  20345. badge: null,
  20346. dot: false,
  20347. text: '',
  20348. badgeStyle: 'top: 6px;right:2px;'
  20349. }
  20350. };
  20351. exports.default = _default;
  20352. /***/ }),
  20353. /* 168 */
  20354. /*!*********************************************************************************!*\
  20355. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  20356. \*********************************************************************************/
  20357. /*! no static exports found */
  20358. /***/ (function(module, exports, __webpack_require__) {
  20359. "use strict";
  20360. Object.defineProperty(exports, "__esModule", {
  20361. value: true
  20362. });
  20363. exports.default = void 0;
  20364. /*
  20365. * @Author : LQ
  20366. * @Description :
  20367. * @version : 1.0
  20368. * @Date : 2021-08-20 16:44:21
  20369. * @LastAuthor : LQ
  20370. * @lastTime : 2021-08-20 17:23:14
  20371. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  20372. */
  20373. var _default = {
  20374. //
  20375. tabs: {
  20376. duration: 300,
  20377. list: function list() {
  20378. return [];
  20379. },
  20380. lineColor: '#3c9cff',
  20381. activeStyle: function activeStyle() {
  20382. return {
  20383. color: '#303133'
  20384. };
  20385. },
  20386. inactiveStyle: function inactiveStyle() {
  20387. return {
  20388. color: '#606266'
  20389. };
  20390. },
  20391. lineWidth: 20,
  20392. lineHeight: 3,
  20393. lineBgSize: 'cover',
  20394. itemStyle: function itemStyle() {
  20395. return {
  20396. height: '44px'
  20397. };
  20398. },
  20399. scrollable: true,
  20400. current: 0,
  20401. keyName: 'name'
  20402. }
  20403. };
  20404. exports.default = _default;
  20405. /***/ }),
  20406. /* 169 */
  20407. /*!********************************************************************************!*\
  20408. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tag.js ***!
  20409. \********************************************************************************/
  20410. /*! no static exports found */
  20411. /***/ (function(module, exports, __webpack_require__) {
  20412. "use strict";
  20413. Object.defineProperty(exports, "__esModule", {
  20414. value: true
  20415. });
  20416. exports.default = void 0;
  20417. /*
  20418. * @Author : LQ
  20419. * @Description :
  20420. * @version : 1.0
  20421. * @Date : 2021-08-20 16:44:21
  20422. * @LastAuthor : LQ
  20423. * @lastTime : 2021-08-20 17:23:37
  20424. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  20425. */
  20426. var _default = {
  20427. // tag 组件
  20428. tag: {
  20429. type: 'primary',
  20430. disabled: false,
  20431. size: 'medium',
  20432. shape: 'square',
  20433. text: '',
  20434. bgColor: '',
  20435. color: '',
  20436. borderColor: '',
  20437. closeColor: '#C6C7CB',
  20438. name: '',
  20439. plainFill: false,
  20440. plain: false,
  20441. closable: false,
  20442. show: true,
  20443. icon: ''
  20444. }
  20445. };
  20446. exports.default = _default;
  20447. /***/ }),
  20448. /* 170 */
  20449. /*!*********************************************************************************!*\
  20450. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/text.js ***!
  20451. \*********************************************************************************/
  20452. /*! no static exports found */
  20453. /***/ (function(module, exports, __webpack_require__) {
  20454. "use strict";
  20455. Object.defineProperty(exports, "__esModule", {
  20456. value: true
  20457. });
  20458. exports.default = void 0;
  20459. /*
  20460. * @Author : LQ
  20461. * @Description :
  20462. * @version : 1.0
  20463. * @Date : 2021-08-20 16:44:21
  20464. * @LastAuthor : LQ
  20465. * @lastTime : 2021-08-20 17:23:58
  20466. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  20467. */
  20468. var _default = {
  20469. // text 组件
  20470. text: {
  20471. type: '',
  20472. show: true,
  20473. text: '',
  20474. prefixIcon: '',
  20475. suffixIcon: '',
  20476. mode: '',
  20477. href: '',
  20478. format: '',
  20479. call: false,
  20480. openType: '',
  20481. bold: false,
  20482. block: false,
  20483. lines: '',
  20484. color: '#303133',
  20485. size: 15,
  20486. iconStyle: function iconStyle() {
  20487. return {
  20488. fontSize: '15px'
  20489. };
  20490. },
  20491. decoration: 'none',
  20492. margin: 0,
  20493. lineHeight: '',
  20494. align: 'left',
  20495. wordWrap: 'normal'
  20496. }
  20497. };
  20498. exports.default = _default;
  20499. /***/ }),
  20500. /* 171 */
  20501. /*!*************************************************************************************!*\
  20502. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  20503. \*************************************************************************************/
  20504. /*! no static exports found */
  20505. /***/ (function(module, exports, __webpack_require__) {
  20506. "use strict";
  20507. Object.defineProperty(exports, "__esModule", {
  20508. value: true
  20509. });
  20510. exports.default = void 0;
  20511. /*
  20512. * @Author : LQ
  20513. * @Description :
  20514. * @version : 1.0
  20515. * @Date : 2021-08-20 16:44:21
  20516. * @LastAuthor : LQ
  20517. * @lastTime : 2021-08-20 17:24:32
  20518. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  20519. */
  20520. var _default = {
  20521. // textarea 组件
  20522. textarea: {
  20523. value: '',
  20524. placeholder: '',
  20525. placeholderClass: 'textarea-placeholder',
  20526. placeholderStyle: 'color: #c0c4cc',
  20527. height: 70,
  20528. confirmType: 'done',
  20529. disabled: false,
  20530. count: false,
  20531. focus: false,
  20532. autoHeight: false,
  20533. fixed: false,
  20534. cursorSpacing: 0,
  20535. cursor: '',
  20536. showConfirmBar: true,
  20537. selectionStart: -1,
  20538. selectionEnd: -1,
  20539. adjustPosition: true,
  20540. disableDefaultPadding: false,
  20541. holdKeyboard: false,
  20542. maxlength: 140,
  20543. border: 'surround',
  20544. formatter: null
  20545. }
  20546. };
  20547. exports.default = _default;
  20548. /***/ }),
  20549. /* 172 */
  20550. /*!**********************************************************************************!*\
  20551. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/toast.js ***!
  20552. \**********************************************************************************/
  20553. /*! no static exports found */
  20554. /***/ (function(module, exports, __webpack_require__) {
  20555. "use strict";
  20556. Object.defineProperty(exports, "__esModule", {
  20557. value: true
  20558. });
  20559. exports.default = void 0;
  20560. /*
  20561. * @Author : LQ
  20562. * @Description :
  20563. * @version : 1.0
  20564. * @Date : 2021-08-20 16:44:21
  20565. * @LastAuthor : LQ
  20566. * @lastTime : 2021-08-20 17:07:07
  20567. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  20568. */
  20569. var _default = {
  20570. // toast组件
  20571. toast: {
  20572. zIndex: 10090,
  20573. loading: false,
  20574. text: '',
  20575. icon: '',
  20576. type: '',
  20577. loadingMode: '',
  20578. show: '',
  20579. overlay: false,
  20580. position: 'center',
  20581. params: function params() {},
  20582. duration: 2000,
  20583. isTab: false,
  20584. url: '',
  20585. callback: null,
  20586. back: false
  20587. }
  20588. };
  20589. exports.default = _default;
  20590. /***/ }),
  20591. /* 173 */
  20592. /*!************************************************************************************!*\
  20593. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  20594. \************************************************************************************/
  20595. /*! no static exports found */
  20596. /***/ (function(module, exports, __webpack_require__) {
  20597. "use strict";
  20598. Object.defineProperty(exports, "__esModule", {
  20599. value: true
  20600. });
  20601. exports.default = void 0;
  20602. /*
  20603. * @Author : LQ
  20604. * @Description :
  20605. * @version : 1.0
  20606. * @Date : 2021-08-20 16:44:21
  20607. * @LastAuthor : LQ
  20608. * @lastTime : 2021-08-20 17:24:55
  20609. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  20610. */
  20611. var _default = {
  20612. // toolbar 组件
  20613. toolbar: {
  20614. show: true,
  20615. cancelText: '取消',
  20616. confirmText: '确认',
  20617. cancelColor: '#909193',
  20618. confirmColor: '#3c9cff',
  20619. title: ''
  20620. }
  20621. };
  20622. exports.default = _default;
  20623. /***/ }),
  20624. /* 174 */
  20625. /*!************************************************************************************!*\
  20626. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  20627. \************************************************************************************/
  20628. /*! no static exports found */
  20629. /***/ (function(module, exports, __webpack_require__) {
  20630. "use strict";
  20631. Object.defineProperty(exports, "__esModule", {
  20632. value: true
  20633. });
  20634. exports.default = void 0;
  20635. /*
  20636. * @Author : LQ
  20637. * @Description :
  20638. * @version : 1.0
  20639. * @Date : 2021-08-20 16:44:21
  20640. * @LastAuthor : LQ
  20641. * @lastTime : 2021-08-20 17:25:14
  20642. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  20643. */
  20644. var _default = {
  20645. // tooltip 组件
  20646. tooltip: {
  20647. text: '',
  20648. copyText: '',
  20649. size: 14,
  20650. color: '#606266',
  20651. bgColor: 'transparent',
  20652. direction: 'top',
  20653. zIndex: 10071,
  20654. showCopy: true,
  20655. buttons: function buttons() {
  20656. return [];
  20657. },
  20658. overlay: true,
  20659. showToast: true
  20660. }
  20661. };
  20662. exports.default = _default;
  20663. /***/ }),
  20664. /* 175 */
  20665. /*!***************************************************************************************!*\
  20666. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/transition.js ***!
  20667. \***************************************************************************************/
  20668. /*! no static exports found */
  20669. /***/ (function(module, exports, __webpack_require__) {
  20670. "use strict";
  20671. Object.defineProperty(exports, "__esModule", {
  20672. value: true
  20673. });
  20674. exports.default = void 0;
  20675. /*
  20676. * @Author : LQ
  20677. * @Description :
  20678. * @version : 1.0
  20679. * @Date : 2021-08-20 16:44:21
  20680. * @LastAuthor : LQ
  20681. * @lastTime : 2021-08-20 16:59:00
  20682. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  20683. */
  20684. var _default = {
  20685. // transition动画组件的props
  20686. transition: {
  20687. show: false,
  20688. mode: 'fade',
  20689. duration: '300',
  20690. timingFunction: 'ease-out'
  20691. }
  20692. };
  20693. exports.default = _default;
  20694. /***/ }),
  20695. /* 176 */
  20696. /*!***********************************************************************************!*\
  20697. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/upload.js ***!
  20698. \***********************************************************************************/
  20699. /*! no static exports found */
  20700. /***/ (function(module, exports, __webpack_require__) {
  20701. "use strict";
  20702. Object.defineProperty(exports, "__esModule", {
  20703. value: true
  20704. });
  20705. exports.default = void 0;
  20706. /*
  20707. * @Author : LQ
  20708. * @Description :
  20709. * @version : 1.0
  20710. * @Date : 2021-08-20 16:44:21
  20711. * @LastAuthor : LQ
  20712. * @lastTime : 2021-08-20 17:09:50
  20713. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  20714. */
  20715. var _default = {
  20716. // upload组件
  20717. upload: {
  20718. accept: 'image',
  20719. capture: function capture() {
  20720. return ['album', 'camera'];
  20721. },
  20722. compressed: true,
  20723. camera: 'back',
  20724. maxDuration: 60,
  20725. uploadIcon: 'camera-fill',
  20726. uploadIconColor: '#D3D4D6',
  20727. useBeforeRead: false,
  20728. previewFullImage: true,
  20729. maxCount: 52,
  20730. disabled: false,
  20731. imageMode: 'aspectFill',
  20732. name: '',
  20733. sizeType: function sizeType() {
  20734. return ['original', 'compressed'];
  20735. },
  20736. multiple: false,
  20737. deletable: true,
  20738. maxSize: Number.MAX_VALUE,
  20739. fileList: function fileList() {
  20740. return [];
  20741. },
  20742. uploadText: '',
  20743. width: 80,
  20744. height: 80,
  20745. previewImage: true
  20746. }
  20747. };
  20748. exports.default = _default;
  20749. /***/ }),
  20750. /* 177 */
  20751. /*!*****************************************************************************!*\
  20752. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/config/zIndex.js ***!
  20753. \*****************************************************************************/
  20754. /*! no static exports found */
  20755. /***/ (function(module, exports, __webpack_require__) {
  20756. "use strict";
  20757. Object.defineProperty(exports, "__esModule", {
  20758. value: true
  20759. });
  20760. exports.default = void 0;
  20761. // uniapp在H5中各API的z-index值如下:
  20762. /**
  20763. * actionsheet: 999
  20764. * modal: 999
  20765. * navigate: 998
  20766. * tabbar: 998
  20767. * toast: 999
  20768. */
  20769. var _default = {
  20770. toast: 10090,
  20771. noNetwork: 10080,
  20772. // popup包含popup,actionsheet,keyboard,picker的值
  20773. popup: 10075,
  20774. mask: 10070,
  20775. navbar: 980,
  20776. topTips: 975,
  20777. sticky: 970,
  20778. indexListSticky: 965
  20779. };
  20780. exports.default = _default;
  20781. /***/ }),
  20782. /* 178 */
  20783. /*!*********************************************************************************!*\
  20784. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/function/platform.js ***!
  20785. \*********************************************************************************/
  20786. /*! no static exports found */
  20787. /***/ (function(module, exports, __webpack_require__) {
  20788. "use strict";
  20789. Object.defineProperty(exports, "__esModule", {
  20790. value: true
  20791. });
  20792. exports.default = void 0;
  20793. /**
  20794. * 注意:
  20795. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  20796. * module.exports = {
  20797. * transpileDependencies: ['uview-v2']
  20798. * }
  20799. */
  20800. var platform = 'none';
  20801. platform = 'vue2';
  20802. platform = 'weixin';
  20803. platform = 'mp';
  20804. var _default = platform;
  20805. exports.default = _default;
  20806. /***/ }),
  20807. /* 179 */
  20808. /*!*************************************************!*\
  20809. !*** D:/demo/tourism/uni_applet/store/index.js ***!
  20810. \*************************************************/
  20811. /*! no static exports found */
  20812. /***/ (function(module, exports, __webpack_require__) {
  20813. "use strict";
  20814. /* WEBPACK VAR INJECTION */(function(uni) {
  20815. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20816. Object.defineProperty(exports, "__esModule", {
  20817. value: true
  20818. });
  20819. exports.default = void 0;
  20820. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  20821. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 180));
  20822. _vue.default.use(_vuex.default);
  20823. var lifeData = {};
  20824. try {
  20825. // 尝试获取本地是否存在lifeData变量,第一次启动APP时是不存在的
  20826. lifeData = uni.getStorageSync('lifeData');
  20827. } catch (e) {}
  20828. // 需要永久存储,且下次APP启动需要取出的,在state中的变量名
  20829. var saveStateKeys = ['userInfo', 'goods', 'isHaveService'];
  20830. // 保存变量到本地存储中
  20831. var saveLifeData = function saveLifeData(key, value) {
  20832. // 判断变量名是否在需要存储的数组中
  20833. if (saveStateKeys.indexOf(key) != -1) {
  20834. // 获取本地存储的lifeData对象,将变量添加到对象中
  20835. var tmp = uni.getStorageSync('lifeData');
  20836. // 第一次打开APP,不存在lifeData变量,故放一个{}空对象
  20837. tmp = tmp ? tmp : {};
  20838. // if(key == 'contractTip' && tmp[key] < value){
  20839. // uni.vibrateLong({
  20840. // success: function () {
  20841. // console.log('震动成功');
  20842. // }
  20843. // });
  20844. // }
  20845. // if(key == 'taskTip' && tmp[key] < value){
  20846. // uni.vibrateLong({
  20847. // success: function () {
  20848. // console.log('震动成功');
  20849. // }
  20850. // });
  20851. // }
  20852. tmp[key] = value;
  20853. // 执行这一步后,所有需要存储的变量,都挂载在本地的lifeData对象中
  20854. uni.setStorageSync('lifeData', tmp);
  20855. }
  20856. };
  20857. var store = new _vuex.default.Store({
  20858. modules: {},
  20859. state: {
  20860. sysinfo: uni.getSystemInfoSync(),
  20861. //系统信息
  20862. hasLogin: false,
  20863. isHaveService: false,
  20864. goods: []
  20865. },
  20866. mutations: {
  20867. $uStore: function $uStore(state, payload) {
  20868. // 判断是否多层级调用,state中为对象存在的情况,诸如user.info.score = 1
  20869. var nameArr = payload.name.split('.');
  20870. var saveKey = '';
  20871. var len = nameArr.length;
  20872. if (nameArr.length >= 2) {
  20873. var obj = state[nameArr[0]];
  20874. for (var i = 1; i < len - 1; i++) {
  20875. obj = obj[nameArr[i]];
  20876. }
  20877. obj[nameArr[len - 1]] = payload.value;
  20878. saveKey = nameArr[0];
  20879. } else {
  20880. // 单层级变量,在state就是一个普通变量的情况
  20881. state[payload.name] = payload.value;
  20882. saveKey = payload.name;
  20883. }
  20884. // 保存变量到本地,见顶部函数定义
  20885. saveLifeData(saveKey, state[saveKey]);
  20886. },
  20887. login: function login(state, provider) {
  20888. state.hasLogin = true;
  20889. state.userInfo = provider;
  20890. uni.setStorageSync('userInfo', provider);
  20891. },
  20892. logout: function logout(state) {
  20893. state.hasLogin = false;
  20894. state.userInfo = {};
  20895. uni.removeStorageSync('userInfo');
  20896. },
  20897. goodCar: function goodCar(state, provider) {
  20898. state.goods = provider;
  20899. uni.setStorageSync('goods', provider);
  20900. },
  20901. goodService: function goodService(state, provider) {
  20902. state.isHaveService = provider;
  20903. uni.setStorageSync('isHaveService', provider);
  20904. }
  20905. },
  20906. actions: {},
  20907. getters: {
  20908. getUserInfo: function getUserInfo(state) {
  20909. return state.userInfo;
  20910. }
  20911. }
  20912. });
  20913. var _default = store;
  20914. exports.default = _default;
  20915. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20916. /***/ }),
  20917. /* 180 */
  20918. /*!**************************************************************************************!*\
  20919. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  20920. \**************************************************************************************/
  20921. /*! no static exports found */
  20922. /***/ (function(module, exports, __webpack_require__) {
  20923. "use strict";
  20924. /* WEBPACK VAR INJECTION */(function(global) {/*!
  20925. * vuex v3.6.2
  20926. * (c) 2021 Evan You
  20927. * @license MIT
  20928. */
  20929. function applyMixin (Vue) {
  20930. var version = Number(Vue.version.split('.')[0]);
  20931. if (version >= 2) {
  20932. Vue.mixin({ beforeCreate: vuexInit });
  20933. } else {
  20934. // override init and inject vuex init procedure
  20935. // for 1.x backwards compatibility.
  20936. var _init = Vue.prototype._init;
  20937. Vue.prototype._init = function (options) {
  20938. if ( options === void 0 ) options = {};
  20939. options.init = options.init
  20940. ? [vuexInit].concat(options.init)
  20941. : vuexInit;
  20942. _init.call(this, options);
  20943. };
  20944. }
  20945. /**
  20946. * Vuex init hook, injected into each instances init hooks list.
  20947. */
  20948. function vuexInit () {
  20949. var options = this.$options;
  20950. // store injection
  20951. if (options.store) {
  20952. this.$store = typeof options.store === 'function'
  20953. ? options.store()
  20954. : options.store;
  20955. } else if (options.parent && options.parent.$store) {
  20956. this.$store = options.parent.$store;
  20957. }
  20958. }
  20959. }
  20960. var target = typeof window !== 'undefined'
  20961. ? window
  20962. : typeof global !== 'undefined'
  20963. ? global
  20964. : {};
  20965. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  20966. function devtoolPlugin (store) {
  20967. if (!devtoolHook) { return }
  20968. store._devtoolHook = devtoolHook;
  20969. devtoolHook.emit('vuex:init', store);
  20970. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  20971. store.replaceState(targetState);
  20972. });
  20973. store.subscribe(function (mutation, state) {
  20974. devtoolHook.emit('vuex:mutation', mutation, state);
  20975. }, { prepend: true });
  20976. store.subscribeAction(function (action, state) {
  20977. devtoolHook.emit('vuex:action', action, state);
  20978. }, { prepend: true });
  20979. }
  20980. /**
  20981. * Get the first item that pass the test
  20982. * by second argument function
  20983. *
  20984. * @param {Array} list
  20985. * @param {Function} f
  20986. * @return {*}
  20987. */
  20988. function find (list, f) {
  20989. return list.filter(f)[0]
  20990. }
  20991. /**
  20992. * Deep copy the given object considering circular structure.
  20993. * This function caches all nested objects and its copies.
  20994. * If it detects circular structure, use cached copy to avoid infinite loop.
  20995. *
  20996. * @param {*} obj
  20997. * @param {Array<Object>} cache
  20998. * @return {*}
  20999. */
  21000. function deepCopy (obj, cache) {
  21001. if ( cache === void 0 ) cache = [];
  21002. // just return if obj is immutable value
  21003. if (obj === null || typeof obj !== 'object') {
  21004. return obj
  21005. }
  21006. // if obj is hit, it is in circular structure
  21007. var hit = find(cache, function (c) { return c.original === obj; });
  21008. if (hit) {
  21009. return hit.copy
  21010. }
  21011. var copy = Array.isArray(obj) ? [] : {};
  21012. // put the copy into cache at first
  21013. // because we want to refer it in recursive deepCopy
  21014. cache.push({
  21015. original: obj,
  21016. copy: copy
  21017. });
  21018. Object.keys(obj).forEach(function (key) {
  21019. copy[key] = deepCopy(obj[key], cache);
  21020. });
  21021. return copy
  21022. }
  21023. /**
  21024. * forEach for object
  21025. */
  21026. function forEachValue (obj, fn) {
  21027. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  21028. }
  21029. function isObject (obj) {
  21030. return obj !== null && typeof obj === 'object'
  21031. }
  21032. function isPromise (val) {
  21033. return val && typeof val.then === 'function'
  21034. }
  21035. function assert (condition, msg) {
  21036. if (!condition) { throw new Error(("[vuex] " + msg)) }
  21037. }
  21038. function partial (fn, arg) {
  21039. return function () {
  21040. return fn(arg)
  21041. }
  21042. }
  21043. // Base data struct for store's module, package with some attribute and method
  21044. var Module = function Module (rawModule, runtime) {
  21045. this.runtime = runtime;
  21046. // Store some children item
  21047. this._children = Object.create(null);
  21048. // Store the origin module object which passed by programmer
  21049. this._rawModule = rawModule;
  21050. var rawState = rawModule.state;
  21051. // Store the origin module's state
  21052. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  21053. };
  21054. var prototypeAccessors = { namespaced: { configurable: true } };
  21055. prototypeAccessors.namespaced.get = function () {
  21056. return !!this._rawModule.namespaced
  21057. };
  21058. Module.prototype.addChild = function addChild (key, module) {
  21059. this._children[key] = module;
  21060. };
  21061. Module.prototype.removeChild = function removeChild (key) {
  21062. delete this._children[key];
  21063. };
  21064. Module.prototype.getChild = function getChild (key) {
  21065. return this._children[key]
  21066. };
  21067. Module.prototype.hasChild = function hasChild (key) {
  21068. return key in this._children
  21069. };
  21070. Module.prototype.update = function update (rawModule) {
  21071. this._rawModule.namespaced = rawModule.namespaced;
  21072. if (rawModule.actions) {
  21073. this._rawModule.actions = rawModule.actions;
  21074. }
  21075. if (rawModule.mutations) {
  21076. this._rawModule.mutations = rawModule.mutations;
  21077. }
  21078. if (rawModule.getters) {
  21079. this._rawModule.getters = rawModule.getters;
  21080. }
  21081. };
  21082. Module.prototype.forEachChild = function forEachChild (fn) {
  21083. forEachValue(this._children, fn);
  21084. };
  21085. Module.prototype.forEachGetter = function forEachGetter (fn) {
  21086. if (this._rawModule.getters) {
  21087. forEachValue(this._rawModule.getters, fn);
  21088. }
  21089. };
  21090. Module.prototype.forEachAction = function forEachAction (fn) {
  21091. if (this._rawModule.actions) {
  21092. forEachValue(this._rawModule.actions, fn);
  21093. }
  21094. };
  21095. Module.prototype.forEachMutation = function forEachMutation (fn) {
  21096. if (this._rawModule.mutations) {
  21097. forEachValue(this._rawModule.mutations, fn);
  21098. }
  21099. };
  21100. Object.defineProperties( Module.prototype, prototypeAccessors );
  21101. var ModuleCollection = function ModuleCollection (rawRootModule) {
  21102. // register root module (Vuex.Store options)
  21103. this.register([], rawRootModule, false);
  21104. };
  21105. ModuleCollection.prototype.get = function get (path) {
  21106. return path.reduce(function (module, key) {
  21107. return module.getChild(key)
  21108. }, this.root)
  21109. };
  21110. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  21111. var module = this.root;
  21112. return path.reduce(function (namespace, key) {
  21113. module = module.getChild(key);
  21114. return namespace + (module.namespaced ? key + '/' : '')
  21115. }, '')
  21116. };
  21117. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  21118. update([], this.root, rawRootModule);
  21119. };
  21120. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  21121. var this$1 = this;
  21122. if ( runtime === void 0 ) runtime = true;
  21123. if ((true)) {
  21124. assertRawModule(path, rawModule);
  21125. }
  21126. var newModule = new Module(rawModule, runtime);
  21127. if (path.length === 0) {
  21128. this.root = newModule;
  21129. } else {
  21130. var parent = this.get(path.slice(0, -1));
  21131. parent.addChild(path[path.length - 1], newModule);
  21132. }
  21133. // register nested modules
  21134. if (rawModule.modules) {
  21135. forEachValue(rawModule.modules, function (rawChildModule, key) {
  21136. this$1.register(path.concat(key), rawChildModule, runtime);
  21137. });
  21138. }
  21139. };
  21140. ModuleCollection.prototype.unregister = function unregister (path) {
  21141. var parent = this.get(path.slice(0, -1));
  21142. var key = path[path.length - 1];
  21143. var child = parent.getChild(key);
  21144. if (!child) {
  21145. if ((true)) {
  21146. console.warn(
  21147. "[vuex] trying to unregister module '" + key + "', which is " +
  21148. "not registered"
  21149. );
  21150. }
  21151. return
  21152. }
  21153. if (!child.runtime) {
  21154. return
  21155. }
  21156. parent.removeChild(key);
  21157. };
  21158. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  21159. var parent = this.get(path.slice(0, -1));
  21160. var key = path[path.length - 1];
  21161. if (parent) {
  21162. return parent.hasChild(key)
  21163. }
  21164. return false
  21165. };
  21166. function update (path, targetModule, newModule) {
  21167. if ((true)) {
  21168. assertRawModule(path, newModule);
  21169. }
  21170. // update target module
  21171. targetModule.update(newModule);
  21172. // update nested modules
  21173. if (newModule.modules) {
  21174. for (var key in newModule.modules) {
  21175. if (!targetModule.getChild(key)) {
  21176. if ((true)) {
  21177. console.warn(
  21178. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  21179. 'manual reload is needed'
  21180. );
  21181. }
  21182. return
  21183. }
  21184. update(
  21185. path.concat(key),
  21186. targetModule.getChild(key),
  21187. newModule.modules[key]
  21188. );
  21189. }
  21190. }
  21191. }
  21192. var functionAssert = {
  21193. assert: function (value) { return typeof value === 'function'; },
  21194. expected: 'function'
  21195. };
  21196. var objectAssert = {
  21197. assert: function (value) { return typeof value === 'function' ||
  21198. (typeof value === 'object' && typeof value.handler === 'function'); },
  21199. expected: 'function or object with "handler" function'
  21200. };
  21201. var assertTypes = {
  21202. getters: functionAssert,
  21203. mutations: functionAssert,
  21204. actions: objectAssert
  21205. };
  21206. function assertRawModule (path, rawModule) {
  21207. Object.keys(assertTypes).forEach(function (key) {
  21208. if (!rawModule[key]) { return }
  21209. var assertOptions = assertTypes[key];
  21210. forEachValue(rawModule[key], function (value, type) {
  21211. assert(
  21212. assertOptions.assert(value),
  21213. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  21214. );
  21215. });
  21216. });
  21217. }
  21218. function makeAssertionMessage (path, key, type, value, expected) {
  21219. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  21220. if (path.length > 0) {
  21221. buf += " in module \"" + (path.join('.')) + "\"";
  21222. }
  21223. buf += " is " + (JSON.stringify(value)) + ".";
  21224. return buf
  21225. }
  21226. var Vue; // bind on install
  21227. var Store = function Store (options) {
  21228. var this$1 = this;
  21229. if ( options === void 0 ) options = {};
  21230. // Auto install if it is not done yet and `window` has `Vue`.
  21231. // To allow users to avoid auto-installation in some cases,
  21232. // this code should be placed here. See #731
  21233. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  21234. install(window.Vue);
  21235. }
  21236. if ((true)) {
  21237. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  21238. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  21239. assert(this instanceof Store, "store must be called with the new operator.");
  21240. }
  21241. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  21242. var strict = options.strict; if ( strict === void 0 ) strict = false;
  21243. // store internal state
  21244. this._committing = false;
  21245. this._actions = Object.create(null);
  21246. this._actionSubscribers = [];
  21247. this._mutations = Object.create(null);
  21248. this._wrappedGetters = Object.create(null);
  21249. this._modules = new ModuleCollection(options);
  21250. this._modulesNamespaceMap = Object.create(null);
  21251. this._subscribers = [];
  21252. this._watcherVM = new Vue();
  21253. this._makeLocalGettersCache = Object.create(null);
  21254. // bind commit and dispatch to self
  21255. var store = this;
  21256. var ref = this;
  21257. var dispatch = ref.dispatch;
  21258. var commit = ref.commit;
  21259. this.dispatch = function boundDispatch (type, payload) {
  21260. return dispatch.call(store, type, payload)
  21261. };
  21262. this.commit = function boundCommit (type, payload, options) {
  21263. return commit.call(store, type, payload, options)
  21264. };
  21265. // strict mode
  21266. this.strict = strict;
  21267. var state = this._modules.root.state;
  21268. // init root module.
  21269. // this also recursively registers all sub-modules
  21270. // and collects all module getters inside this._wrappedGetters
  21271. installModule(this, state, [], this._modules.root);
  21272. // initialize the store vm, which is responsible for the reactivity
  21273. // (also registers _wrappedGetters as computed properties)
  21274. resetStoreVM(this, state);
  21275. // apply plugins
  21276. plugins.forEach(function (plugin) { return plugin(this$1); });
  21277. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  21278. if (useDevtools) {
  21279. devtoolPlugin(this);
  21280. }
  21281. };
  21282. var prototypeAccessors$1 = { state: { configurable: true } };
  21283. prototypeAccessors$1.state.get = function () {
  21284. return this._vm._data.$$state
  21285. };
  21286. prototypeAccessors$1.state.set = function (v) {
  21287. if ((true)) {
  21288. assert(false, "use store.replaceState() to explicit replace store state.");
  21289. }
  21290. };
  21291. Store.prototype.commit = function commit (_type, _payload, _options) {
  21292. var this$1 = this;
  21293. // check object-style commit
  21294. var ref = unifyObjectStyle(_type, _payload, _options);
  21295. var type = ref.type;
  21296. var payload = ref.payload;
  21297. var options = ref.options;
  21298. var mutation = { type: type, payload: payload };
  21299. var entry = this._mutations[type];
  21300. if (!entry) {
  21301. if ((true)) {
  21302. console.error(("[vuex] unknown mutation type: " + type));
  21303. }
  21304. return
  21305. }
  21306. this._withCommit(function () {
  21307. entry.forEach(function commitIterator (handler) {
  21308. handler(payload);
  21309. });
  21310. });
  21311. this._subscribers
  21312. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  21313. .forEach(function (sub) { return sub(mutation, this$1.state); });
  21314. if (
  21315. ( true) &&
  21316. options && options.silent
  21317. ) {
  21318. console.warn(
  21319. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  21320. 'Use the filter functionality in the vue-devtools'
  21321. );
  21322. }
  21323. };
  21324. Store.prototype.dispatch = function dispatch (_type, _payload) {
  21325. var this$1 = this;
  21326. // check object-style dispatch
  21327. var ref = unifyObjectStyle(_type, _payload);
  21328. var type = ref.type;
  21329. var payload = ref.payload;
  21330. var action = { type: type, payload: payload };
  21331. var entry = this._actions[type];
  21332. if (!entry) {
  21333. if ((true)) {
  21334. console.error(("[vuex] unknown action type: " + type));
  21335. }
  21336. return
  21337. }
  21338. try {
  21339. this._actionSubscribers
  21340. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  21341. .filter(function (sub) { return sub.before; })
  21342. .forEach(function (sub) { return sub.before(action, this$1.state); });
  21343. } catch (e) {
  21344. if ((true)) {
  21345. console.warn("[vuex] error in before action subscribers: ");
  21346. console.error(e);
  21347. }
  21348. }
  21349. var result = entry.length > 1
  21350. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  21351. : entry[0](payload);
  21352. return new Promise(function (resolve, reject) {
  21353. result.then(function (res) {
  21354. try {
  21355. this$1._actionSubscribers
  21356. .filter(function (sub) { return sub.after; })
  21357. .forEach(function (sub) { return sub.after(action, this$1.state); });
  21358. } catch (e) {
  21359. if ((true)) {
  21360. console.warn("[vuex] error in after action subscribers: ");
  21361. console.error(e);
  21362. }
  21363. }
  21364. resolve(res);
  21365. }, function (error) {
  21366. try {
  21367. this$1._actionSubscribers
  21368. .filter(function (sub) { return sub.error; })
  21369. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  21370. } catch (e) {
  21371. if ((true)) {
  21372. console.warn("[vuex] error in error action subscribers: ");
  21373. console.error(e);
  21374. }
  21375. }
  21376. reject(error);
  21377. });
  21378. })
  21379. };
  21380. Store.prototype.subscribe = function subscribe (fn, options) {
  21381. return genericSubscribe(fn, this._subscribers, options)
  21382. };
  21383. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  21384. var subs = typeof fn === 'function' ? { before: fn } : fn;
  21385. return genericSubscribe(subs, this._actionSubscribers, options)
  21386. };
  21387. Store.prototype.watch = function watch (getter, cb, options) {
  21388. var this$1 = this;
  21389. if ((true)) {
  21390. assert(typeof getter === 'function', "store.watch only accepts a function.");
  21391. }
  21392. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  21393. };
  21394. Store.prototype.replaceState = function replaceState (state) {
  21395. var this$1 = this;
  21396. this._withCommit(function () {
  21397. this$1._vm._data.$$state = state;
  21398. });
  21399. };
  21400. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  21401. if ( options === void 0 ) options = {};
  21402. if (typeof path === 'string') { path = [path]; }
  21403. if ((true)) {
  21404. assert(Array.isArray(path), "module path must be a string or an Array.");
  21405. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  21406. }
  21407. this._modules.register(path, rawModule);
  21408. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  21409. // reset store to update getters...
  21410. resetStoreVM(this, this.state);
  21411. };
  21412. Store.prototype.unregisterModule = function unregisterModule (path) {
  21413. var this$1 = this;
  21414. if (typeof path === 'string') { path = [path]; }
  21415. if ((true)) {
  21416. assert(Array.isArray(path), "module path must be a string or an Array.");
  21417. }
  21418. this._modules.unregister(path);
  21419. this._withCommit(function () {
  21420. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  21421. Vue.delete(parentState, path[path.length - 1]);
  21422. });
  21423. resetStore(this);
  21424. };
  21425. Store.prototype.hasModule = function hasModule (path) {
  21426. if (typeof path === 'string') { path = [path]; }
  21427. if ((true)) {
  21428. assert(Array.isArray(path), "module path must be a string or an Array.");
  21429. }
  21430. return this._modules.isRegistered(path)
  21431. };
  21432. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  21433. this._modules.update(newOptions);
  21434. resetStore(this, true);
  21435. };
  21436. Store.prototype._withCommit = function _withCommit (fn) {
  21437. var committing = this._committing;
  21438. this._committing = true;
  21439. fn();
  21440. this._committing = committing;
  21441. };
  21442. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  21443. function genericSubscribe (fn, subs, options) {
  21444. if (subs.indexOf(fn) < 0) {
  21445. options && options.prepend
  21446. ? subs.unshift(fn)
  21447. : subs.push(fn);
  21448. }
  21449. return function () {
  21450. var i = subs.indexOf(fn);
  21451. if (i > -1) {
  21452. subs.splice(i, 1);
  21453. }
  21454. }
  21455. }
  21456. function resetStore (store, hot) {
  21457. store._actions = Object.create(null);
  21458. store._mutations = Object.create(null);
  21459. store._wrappedGetters = Object.create(null);
  21460. store._modulesNamespaceMap = Object.create(null);
  21461. var state = store.state;
  21462. // init all modules
  21463. installModule(store, state, [], store._modules.root, true);
  21464. // reset vm
  21465. resetStoreVM(store, state, hot);
  21466. }
  21467. function resetStoreVM (store, state, hot) {
  21468. var oldVm = store._vm;
  21469. // bind store public getters
  21470. store.getters = {};
  21471. // reset local getters cache
  21472. store._makeLocalGettersCache = Object.create(null);
  21473. var wrappedGetters = store._wrappedGetters;
  21474. var computed = {};
  21475. forEachValue(wrappedGetters, function (fn, key) {
  21476. // use computed to leverage its lazy-caching mechanism
  21477. // direct inline function use will lead to closure preserving oldVm.
  21478. // using partial to return function with only arguments preserved in closure environment.
  21479. computed[key] = partial(fn, store);
  21480. Object.defineProperty(store.getters, key, {
  21481. get: function () { return store._vm[key]; },
  21482. enumerable: true // for local getters
  21483. });
  21484. });
  21485. // use a Vue instance to store the state tree
  21486. // suppress warnings just in case the user has added
  21487. // some funky global mixins
  21488. var silent = Vue.config.silent;
  21489. Vue.config.silent = true;
  21490. store._vm = new Vue({
  21491. data: {
  21492. $$state: state
  21493. },
  21494. computed: computed
  21495. });
  21496. Vue.config.silent = silent;
  21497. // enable strict mode for new vm
  21498. if (store.strict) {
  21499. enableStrictMode(store);
  21500. }
  21501. if (oldVm) {
  21502. if (hot) {
  21503. // dispatch changes in all subscribed watchers
  21504. // to force getter re-evaluation for hot reloading.
  21505. store._withCommit(function () {
  21506. oldVm._data.$$state = null;
  21507. });
  21508. }
  21509. Vue.nextTick(function () { return oldVm.$destroy(); });
  21510. }
  21511. }
  21512. function installModule (store, rootState, path, module, hot) {
  21513. var isRoot = !path.length;
  21514. var namespace = store._modules.getNamespace(path);
  21515. // register in namespace map
  21516. if (module.namespaced) {
  21517. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  21518. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  21519. }
  21520. store._modulesNamespaceMap[namespace] = module;
  21521. }
  21522. // set state
  21523. if (!isRoot && !hot) {
  21524. var parentState = getNestedState(rootState, path.slice(0, -1));
  21525. var moduleName = path[path.length - 1];
  21526. store._withCommit(function () {
  21527. if ((true)) {
  21528. if (moduleName in parentState) {
  21529. console.warn(
  21530. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  21531. );
  21532. }
  21533. }
  21534. Vue.set(parentState, moduleName, module.state);
  21535. });
  21536. }
  21537. var local = module.context = makeLocalContext(store, namespace, path);
  21538. module.forEachMutation(function (mutation, key) {
  21539. var namespacedType = namespace + key;
  21540. registerMutation(store, namespacedType, mutation, local);
  21541. });
  21542. module.forEachAction(function (action, key) {
  21543. var type = action.root ? key : namespace + key;
  21544. var handler = action.handler || action;
  21545. registerAction(store, type, handler, local);
  21546. });
  21547. module.forEachGetter(function (getter, key) {
  21548. var namespacedType = namespace + key;
  21549. registerGetter(store, namespacedType, getter, local);
  21550. });
  21551. module.forEachChild(function (child, key) {
  21552. installModule(store, rootState, path.concat(key), child, hot);
  21553. });
  21554. }
  21555. /**
  21556. * make localized dispatch, commit, getters and state
  21557. * if there is no namespace, just use root ones
  21558. */
  21559. function makeLocalContext (store, namespace, path) {
  21560. var noNamespace = namespace === '';
  21561. var local = {
  21562. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  21563. var args = unifyObjectStyle(_type, _payload, _options);
  21564. var payload = args.payload;
  21565. var options = args.options;
  21566. var type = args.type;
  21567. if (!options || !options.root) {
  21568. type = namespace + type;
  21569. if (( true) && !store._actions[type]) {
  21570. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  21571. return
  21572. }
  21573. }
  21574. return store.dispatch(type, payload)
  21575. },
  21576. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  21577. var args = unifyObjectStyle(_type, _payload, _options);
  21578. var payload = args.payload;
  21579. var options = args.options;
  21580. var type = args.type;
  21581. if (!options || !options.root) {
  21582. type = namespace + type;
  21583. if (( true) && !store._mutations[type]) {
  21584. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  21585. return
  21586. }
  21587. }
  21588. store.commit(type, payload, options);
  21589. }
  21590. };
  21591. // getters and state object must be gotten lazily
  21592. // because they will be changed by vm update
  21593. Object.defineProperties(local, {
  21594. getters: {
  21595. get: noNamespace
  21596. ? function () { return store.getters; }
  21597. : function () { return makeLocalGetters(store, namespace); }
  21598. },
  21599. state: {
  21600. get: function () { return getNestedState(store.state, path); }
  21601. }
  21602. });
  21603. return local
  21604. }
  21605. function makeLocalGetters (store, namespace) {
  21606. if (!store._makeLocalGettersCache[namespace]) {
  21607. var gettersProxy = {};
  21608. var splitPos = namespace.length;
  21609. Object.keys(store.getters).forEach(function (type) {
  21610. // skip if the target getter is not match this namespace
  21611. if (type.slice(0, splitPos) !== namespace) { return }
  21612. // extract local getter type
  21613. var localType = type.slice(splitPos);
  21614. // Add a port to the getters proxy.
  21615. // Define as getter property because
  21616. // we do not want to evaluate the getters in this time.
  21617. Object.defineProperty(gettersProxy, localType, {
  21618. get: function () { return store.getters[type]; },
  21619. enumerable: true
  21620. });
  21621. });
  21622. store._makeLocalGettersCache[namespace] = gettersProxy;
  21623. }
  21624. return store._makeLocalGettersCache[namespace]
  21625. }
  21626. function registerMutation (store, type, handler, local) {
  21627. var entry = store._mutations[type] || (store._mutations[type] = []);
  21628. entry.push(function wrappedMutationHandler (payload) {
  21629. handler.call(store, local.state, payload);
  21630. });
  21631. }
  21632. function registerAction (store, type, handler, local) {
  21633. var entry = store._actions[type] || (store._actions[type] = []);
  21634. entry.push(function wrappedActionHandler (payload) {
  21635. var res = handler.call(store, {
  21636. dispatch: local.dispatch,
  21637. commit: local.commit,
  21638. getters: local.getters,
  21639. state: local.state,
  21640. rootGetters: store.getters,
  21641. rootState: store.state
  21642. }, payload);
  21643. if (!isPromise(res)) {
  21644. res = Promise.resolve(res);
  21645. }
  21646. if (store._devtoolHook) {
  21647. return res.catch(function (err) {
  21648. store._devtoolHook.emit('vuex:error', err);
  21649. throw err
  21650. })
  21651. } else {
  21652. return res
  21653. }
  21654. });
  21655. }
  21656. function registerGetter (store, type, rawGetter, local) {
  21657. if (store._wrappedGetters[type]) {
  21658. if ((true)) {
  21659. console.error(("[vuex] duplicate getter key: " + type));
  21660. }
  21661. return
  21662. }
  21663. store._wrappedGetters[type] = function wrappedGetter (store) {
  21664. return rawGetter(
  21665. local.state, // local state
  21666. local.getters, // local getters
  21667. store.state, // root state
  21668. store.getters // root getters
  21669. )
  21670. };
  21671. }
  21672. function enableStrictMode (store) {
  21673. store._vm.$watch(function () { return this._data.$$state }, function () {
  21674. if ((true)) {
  21675. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  21676. }
  21677. }, { deep: true, sync: true });
  21678. }
  21679. function getNestedState (state, path) {
  21680. return path.reduce(function (state, key) { return state[key]; }, state)
  21681. }
  21682. function unifyObjectStyle (type, payload, options) {
  21683. if (isObject(type) && type.type) {
  21684. options = payload;
  21685. payload = type;
  21686. type = type.type;
  21687. }
  21688. if ((true)) {
  21689. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  21690. }
  21691. return { type: type, payload: payload, options: options }
  21692. }
  21693. function install (_Vue) {
  21694. if (Vue && _Vue === Vue) {
  21695. if ((true)) {
  21696. console.error(
  21697. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  21698. );
  21699. }
  21700. return
  21701. }
  21702. Vue = _Vue;
  21703. applyMixin(Vue);
  21704. }
  21705. /**
  21706. * Reduce the code which written in Vue.js for getting the state.
  21707. * @param {String} [namespace] - Module's namespace
  21708. * @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.
  21709. * @param {Object}
  21710. */
  21711. var mapState = normalizeNamespace(function (namespace, states) {
  21712. var res = {};
  21713. if (( true) && !isValidMap(states)) {
  21714. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  21715. }
  21716. normalizeMap(states).forEach(function (ref) {
  21717. var key = ref.key;
  21718. var val = ref.val;
  21719. res[key] = function mappedState () {
  21720. var state = this.$store.state;
  21721. var getters = this.$store.getters;
  21722. if (namespace) {
  21723. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  21724. if (!module) {
  21725. return
  21726. }
  21727. state = module.context.state;
  21728. getters = module.context.getters;
  21729. }
  21730. return typeof val === 'function'
  21731. ? val.call(this, state, getters)
  21732. : state[val]
  21733. };
  21734. // mark vuex getter for devtools
  21735. res[key].vuex = true;
  21736. });
  21737. return res
  21738. });
  21739. /**
  21740. * Reduce the code which written in Vue.js for committing the mutation
  21741. * @param {String} [namespace] - Module's namespace
  21742. * @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.
  21743. * @return {Object}
  21744. */
  21745. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  21746. var res = {};
  21747. if (( true) && !isValidMap(mutations)) {
  21748. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  21749. }
  21750. normalizeMap(mutations).forEach(function (ref) {
  21751. var key = ref.key;
  21752. var val = ref.val;
  21753. res[key] = function mappedMutation () {
  21754. var args = [], len = arguments.length;
  21755. while ( len-- ) args[ len ] = arguments[ len ];
  21756. // Get the commit method from store
  21757. var commit = this.$store.commit;
  21758. if (namespace) {
  21759. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  21760. if (!module) {
  21761. return
  21762. }
  21763. commit = module.context.commit;
  21764. }
  21765. return typeof val === 'function'
  21766. ? val.apply(this, [commit].concat(args))
  21767. : commit.apply(this.$store, [val].concat(args))
  21768. };
  21769. });
  21770. return res
  21771. });
  21772. /**
  21773. * Reduce the code which written in Vue.js for getting the getters
  21774. * @param {String} [namespace] - Module's namespace
  21775. * @param {Object|Array} getters
  21776. * @return {Object}
  21777. */
  21778. var mapGetters = normalizeNamespace(function (namespace, getters) {
  21779. var res = {};
  21780. if (( true) && !isValidMap(getters)) {
  21781. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  21782. }
  21783. normalizeMap(getters).forEach(function (ref) {
  21784. var key = ref.key;
  21785. var val = ref.val;
  21786. // The namespace has been mutated by normalizeNamespace
  21787. val = namespace + val;
  21788. res[key] = function mappedGetter () {
  21789. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  21790. return
  21791. }
  21792. if (( true) && !(val in this.$store.getters)) {
  21793. console.error(("[vuex] unknown getter: " + val));
  21794. return
  21795. }
  21796. return this.$store.getters[val]
  21797. };
  21798. // mark vuex getter for devtools
  21799. res[key].vuex = true;
  21800. });
  21801. return res
  21802. });
  21803. /**
  21804. * Reduce the code which written in Vue.js for dispatch the action
  21805. * @param {String} [namespace] - Module's namespace
  21806. * @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.
  21807. * @return {Object}
  21808. */
  21809. var mapActions = normalizeNamespace(function (namespace, actions) {
  21810. var res = {};
  21811. if (( true) && !isValidMap(actions)) {
  21812. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  21813. }
  21814. normalizeMap(actions).forEach(function (ref) {
  21815. var key = ref.key;
  21816. var val = ref.val;
  21817. res[key] = function mappedAction () {
  21818. var args = [], len = arguments.length;
  21819. while ( len-- ) args[ len ] = arguments[ len ];
  21820. // get dispatch function from store
  21821. var dispatch = this.$store.dispatch;
  21822. if (namespace) {
  21823. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  21824. if (!module) {
  21825. return
  21826. }
  21827. dispatch = module.context.dispatch;
  21828. }
  21829. return typeof val === 'function'
  21830. ? val.apply(this, [dispatch].concat(args))
  21831. : dispatch.apply(this.$store, [val].concat(args))
  21832. };
  21833. });
  21834. return res
  21835. });
  21836. /**
  21837. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  21838. * @param {String} namespace
  21839. * @return {Object}
  21840. */
  21841. var createNamespacedHelpers = function (namespace) { return ({
  21842. mapState: mapState.bind(null, namespace),
  21843. mapGetters: mapGetters.bind(null, namespace),
  21844. mapMutations: mapMutations.bind(null, namespace),
  21845. mapActions: mapActions.bind(null, namespace)
  21846. }); };
  21847. /**
  21848. * Normalize the map
  21849. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  21850. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  21851. * @param {Array|Object} map
  21852. * @return {Object}
  21853. */
  21854. function normalizeMap (map) {
  21855. if (!isValidMap(map)) {
  21856. return []
  21857. }
  21858. return Array.isArray(map)
  21859. ? map.map(function (key) { return ({ key: key, val: key }); })
  21860. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  21861. }
  21862. /**
  21863. * Validate whether given map is valid or not
  21864. * @param {*} map
  21865. * @return {Boolean}
  21866. */
  21867. function isValidMap (map) {
  21868. return Array.isArray(map) || isObject(map)
  21869. }
  21870. /**
  21871. * 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.
  21872. * @param {Function} fn
  21873. * @return {Function}
  21874. */
  21875. function normalizeNamespace (fn) {
  21876. return function (namespace, map) {
  21877. if (typeof namespace !== 'string') {
  21878. map = namespace;
  21879. namespace = '';
  21880. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  21881. namespace += '/';
  21882. }
  21883. return fn(namespace, map)
  21884. }
  21885. }
  21886. /**
  21887. * Search a special module from store by namespace. if module not exist, print error message.
  21888. * @param {Object} store
  21889. * @param {String} helper
  21890. * @param {String} namespace
  21891. * @return {Object}
  21892. */
  21893. function getModuleByNamespace (store, helper, namespace) {
  21894. var module = store._modulesNamespaceMap[namespace];
  21895. if (( true) && !module) {
  21896. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  21897. }
  21898. return module
  21899. }
  21900. // Credits: borrowed code from fcomb/redux-logger
  21901. function createLogger (ref) {
  21902. if ( ref === void 0 ) ref = {};
  21903. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  21904. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  21905. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  21906. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  21907. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  21908. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  21909. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  21910. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  21911. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  21912. return function (store) {
  21913. var prevState = deepCopy(store.state);
  21914. if (typeof logger === 'undefined') {
  21915. return
  21916. }
  21917. if (logMutations) {
  21918. store.subscribe(function (mutation, state) {
  21919. var nextState = deepCopy(state);
  21920. if (filter(mutation, prevState, nextState)) {
  21921. var formattedTime = getFormattedTime();
  21922. var formattedMutation = mutationTransformer(mutation);
  21923. var message = "mutation " + (mutation.type) + formattedTime;
  21924. startMessage(logger, message, collapsed);
  21925. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  21926. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  21927. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  21928. endMessage(logger);
  21929. }
  21930. prevState = nextState;
  21931. });
  21932. }
  21933. if (logActions) {
  21934. store.subscribeAction(function (action, state) {
  21935. if (actionFilter(action, state)) {
  21936. var formattedTime = getFormattedTime();
  21937. var formattedAction = actionTransformer(action);
  21938. var message = "action " + (action.type) + formattedTime;
  21939. startMessage(logger, message, collapsed);
  21940. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  21941. endMessage(logger);
  21942. }
  21943. });
  21944. }
  21945. }
  21946. }
  21947. function startMessage (logger, message, collapsed) {
  21948. var startMessage = collapsed
  21949. ? logger.groupCollapsed
  21950. : logger.group;
  21951. // render
  21952. try {
  21953. startMessage.call(logger, message);
  21954. } catch (e) {
  21955. logger.log(message);
  21956. }
  21957. }
  21958. function endMessage (logger) {
  21959. try {
  21960. logger.groupEnd();
  21961. } catch (e) {
  21962. logger.log('—— log end ——');
  21963. }
  21964. }
  21965. function getFormattedTime () {
  21966. var time = new Date();
  21967. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  21968. }
  21969. function repeat (str, times) {
  21970. return (new Array(times + 1)).join(str)
  21971. }
  21972. function pad (num, maxLength) {
  21973. return repeat('0', maxLength - num.toString().length) + num
  21974. }
  21975. var index_cjs = {
  21976. Store: Store,
  21977. install: install,
  21978. version: '3.6.2',
  21979. mapState: mapState,
  21980. mapMutations: mapMutations,
  21981. mapGetters: mapGetters,
  21982. mapActions: mapActions,
  21983. createNamespacedHelpers: createNamespacedHelpers,
  21984. createLogger: createLogger
  21985. };
  21986. module.exports = index_cjs;
  21987. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  21988. /***/ }),
  21989. /* 181 */
  21990. /*!**************************************************!*\
  21991. !*** D:/demo/tourism/uni_applet/js_sdk/share.js ***!
  21992. \**************************************************/
  21993. /*! no static exports found */
  21994. /***/ (function(module, exports, __webpack_require__) {
  21995. "use strict";
  21996. /* WEBPACK VAR INJECTION */(function(wx) {
  21997. Object.defineProperty(exports, "__esModule", {
  21998. value: true
  21999. });
  22000. exports.default = void 0;
  22001. var _default = {
  22002. data: function data() {
  22003. return {};
  22004. },
  22005. onLoad: function onLoad() {
  22006. wx.showShareMenu({
  22007. withShareTicket: true,
  22008. menus: ["shareAppMessage", "shareTimeline"]
  22009. });
  22010. },
  22011. onShareAppMessage: function onShareAppMessage(res) {
  22012. console.log(1111);
  22013. var that = this;
  22014. // let imageUrl = that.shareUrl || '';
  22015. var imageUrl = 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/min1.png';
  22016. if (res.from === 'button') {
  22017. console.log(2222);
  22018. //这块需要传参,不然链接地址进去获取不到数据
  22019. // let path = `/` + that.$scope.route + `?item=` + that.$scope.options.item;
  22020. var path = "/pages/cardHolder/scanCodeAddCard";
  22021. return {
  22022. title: '商品分享~',
  22023. path: path,
  22024. imageUrl: imageUrl,
  22025. content: '这里是分享内容啊!',
  22026. desc: "这里是自定义描述啊!"
  22027. };
  22028. }
  22029. if (res.from === 'menu') {
  22030. return {
  22031. title: '商通线上商城',
  22032. path: '/pages/tabBarPro/index/index',
  22033. imageUrl: imageUrl
  22034. };
  22035. }
  22036. },
  22037. // 分享到朋友圈
  22038. onShareTimeline: function onShareTimeline() {
  22039. return {
  22040. title: '名片box',
  22041. path: '/pages/cardHolder/cardHolder',
  22042. imageUrl: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/%E5%90%8D%E7%89%87box.png'
  22043. };
  22044. },
  22045. methods: {}
  22046. };
  22047. exports.default = _default;
  22048. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  22049. /***/ }),
  22050. /* 182 */
  22051. /*!***********************************************!*\
  22052. !*** D:/demo/tourism/uni_applet/util/util.js ***!
  22053. \***********************************************/
  22054. /*! no static exports found */
  22055. /***/ (function(module, exports, __webpack_require__) {
  22056. "use strict";
  22057. /* WEBPACK VAR INJECTION */(function(uni) {
  22058. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22059. Object.defineProperty(exports, "__esModule", {
  22060. value: true
  22061. });
  22062. exports.parseTime = parseTime;
  22063. exports.throttle = throttle;
  22064. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  22065. // 日期格式化1
  22066. function parseTime(time, pattern) {
  22067. if (arguments.length === 0) {
  22068. return null;
  22069. }
  22070. var format = pattern || '{y}-{m}-{d} {h}:{i}:{s}';
  22071. var date;
  22072. if ((0, _typeof2.default)(time) === 'object') {
  22073. date = time;
  22074. } else {
  22075. if (typeof time === 'string' && /^[0-9]+$/.test(time)) {
  22076. time = parseInt(time);
  22077. }
  22078. if (typeof time === 'number' && time.toString().length === 10) {
  22079. time = time * 1000;
  22080. }
  22081. date = new Date(time);
  22082. }
  22083. var formatObj = {
  22084. y: date.getFullYear(),
  22085. m: date.getMonth() + 1,
  22086. d: date.getDate(),
  22087. h: date.getHours(),
  22088. i: date.getMinutes(),
  22089. s: date.getSeconds(),
  22090. a: date.getDay()
  22091. };
  22092. var time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, function (result, key) {
  22093. var value = formatObj[key];
  22094. // Note: getDay() returns 0 on Sunday
  22095. if (key === 'a') {
  22096. return ['日', '一', '二', '三', '四', '五', '六'][value];
  22097. }
  22098. if (result.length > 0 && value < 10) {
  22099. value = '0' + value;
  22100. }
  22101. return value || 0;
  22102. });
  22103. return time_str;
  22104. }
  22105. /**
  22106. * 防止小程序多次点击跳转
  22107. * @param {*} obj
  22108. * @returns
  22109. */
  22110. function throttle(fn, gapTime) {
  22111. if (gapTime == null || gapTime == undefined) {
  22112. gapTime = 1500;
  22113. }
  22114. var _lastTime = null;
  22115. uni.scanCode({
  22116. success: function success(res) {
  22117. console.log('条码类型:' + res.scanType);
  22118. console.log('条码内容:' + res.result);
  22119. }
  22120. });
  22121. // 返回新的函数
  22122. return function () {
  22123. var _nowTime = +new Date();
  22124. if (_nowTime - _lastTime > gapTime || !_lastTime) {
  22125. fn.apply(this, arguments); //将this和参数传给原函数
  22126. _lastTime = _nowTime;
  22127. }
  22128. };
  22129. }
  22130. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22131. /***/ }),
  22132. /* 183 */,
  22133. /* 184 */,
  22134. /* 185 */,
  22135. /* 186 */,
  22136. /* 187 */,
  22137. /* 188 */,
  22138. /* 189 */,
  22139. /* 190 */,
  22140. /* 191 */,
  22141. /* 192 */,
  22142. /* 193 */,
  22143. /* 194 */,
  22144. /* 195 */,
  22145. /* 196 */,
  22146. /* 197 */,
  22147. /* 198 */,
  22148. /* 199 */,
  22149. /* 200 */,
  22150. /* 201 */,
  22151. /* 202 */,
  22152. /* 203 */,
  22153. /* 204 */,
  22154. /* 205 */,
  22155. /* 206 */,
  22156. /* 207 */,
  22157. /* 208 */,
  22158. /* 209 */,
  22159. /* 210 */,
  22160. /* 211 */,
  22161. /* 212 */,
  22162. /* 213 */,
  22163. /* 214 */,
  22164. /* 215 */,
  22165. /* 216 */,
  22166. /* 217 */,
  22167. /* 218 */,
  22168. /* 219 */,
  22169. /* 220 */,
  22170. /* 221 */,
  22171. /* 222 */,
  22172. /* 223 */
  22173. /*!*******************************************************************!*\
  22174. !*** D:/demo/tourism/uni_applet/components/ossutil/uploadFile.js ***!
  22175. \*******************************************************************/
  22176. /*! no static exports found */
  22177. /***/ (function(module, exports, __webpack_require__) {
  22178. /* WEBPACK VAR INJECTION */(function(uni) {var env = __webpack_require__(/*! ./config.js */ 224); //配置文件,在这文件里配置你的OSS keyId和KeySecret,timeout:87600;
  22179. var base64 = __webpack_require__(/*! ./base64.js */ 225); //Base64,hmac,sha1,crypto相关算法
  22180. __webpack_require__(/*! ./hmac.js */ 226);
  22181. __webpack_require__(/*! ./sha1.js */ 228);
  22182. var Crypto = __webpack_require__(/*! ./crypto.js */ 227);
  22183. /*
  22184. *上传文件到阿里云oss
  22185. *@param - filePath :图片的本地资源路径
  22186. *@param - dir:表示要传到哪个目录下
  22187. *@param - successc:成功回调
  22188. *@param - failc:失败回调
  22189. */
  22190. var uploadFile = function uploadFile(filePath, dir, successc, failc) {
  22191. if (!filePath || filePath.length < 9) {
  22192. uni.showModal({
  22193. title: '图片错误',
  22194. content: '请重试',
  22195. showCancel: false
  22196. });
  22197. return;
  22198. }
  22199. //图片名字 可以自行定义, 这里是采用当前的时间戳 + 150内的随机数来给图片命名的
  22200. var aliyunFileKey = dir + new Date().getTime() + Math.floor(Math.random() * 150) + '.png';
  22201. var aliyunServerURL = env.uploadImageUrl; //OSS地址,需要https
  22202. var accessid = env.OSSAccessKeyId;
  22203. var policyBase64 = getPolicyBase64();
  22204. var signature = getSignature(policyBase64); //获取签名
  22205. uni.uploadFile({
  22206. url: aliyunServerURL,
  22207. //开发者服务器 url
  22208. filePath: filePath,
  22209. //要上传文件资源的路径
  22210. name: 'file',
  22211. //必须填file
  22212. formData: {
  22213. 'key': aliyunFileKey,
  22214. 'policy': policyBase64,
  22215. 'OSSAccessKeyId': accessid,
  22216. 'signature': signature,
  22217. 'success_action_status': '200'
  22218. },
  22219. success: function success(res) {
  22220. console.log(res);
  22221. if (res.statusCode != 200) {
  22222. failc(new Error('上传错误:' + JSON.stringify(res)));
  22223. return;
  22224. }
  22225. successc(aliyunServerURL + "/" + aliyunFileKey);
  22226. },
  22227. fail: function fail(err) {
  22228. err.wxaddinfo = aliyunServerURL;
  22229. failc(err);
  22230. }
  22231. });
  22232. };
  22233. var getPolicyBase64 = function getPolicyBase64() {
  22234. var date = new Date();
  22235. date.setHours(date.getHours() + env.timeout);
  22236. var srcT = date.toISOString();
  22237. var policyText = {
  22238. "expiration": srcT,
  22239. //设置该Policy的失效时间,超过这个失效时间之后,就没有办法通过这个policy上传文件了
  22240. "conditions": [["content-length-range", 0, 5 * 1024 * 1024] // 设置上传文件的大小限制,5mb
  22241. ]
  22242. };
  22243. var policyBase64 = base64.encode(JSON.stringify(policyText));
  22244. console.log(policyBase64);
  22245. return policyBase64;
  22246. };
  22247. var getSignature = function getSignature(policyBase64) {
  22248. var accesskey = env.AccessKeySecret;
  22249. var bytes = Crypto.HMAC(Crypto.SHA1, policyBase64, accesskey, {
  22250. asBytes: true
  22251. });
  22252. var signature = Crypto.util.bytesToBase64(bytes);
  22253. console.log(signature);
  22254. return signature;
  22255. };
  22256. module.exports = uploadFile;
  22257. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22258. /***/ }),
  22259. /* 224 */
  22260. /*!***************************************************************!*\
  22261. !*** D:/demo/tourism/uni_applet/components/ossutil/config.js ***!
  22262. \***************************************************************/
  22263. /*! no static exports found */
  22264. /***/ (function(module, exports) {
  22265. var fileHost = 'https://taohaoliang.oss-cn-beijing.aliyuncs.com'; //你的阿里云地址最后面跟上一个/ 在你当前小程序的后台的uploadFile 合法域名也要配上这个域名
  22266. var config = {
  22267. //aliyun OSS config
  22268. uploadImageUrl: "".concat(fileHost),
  22269. // 默认存在根目录,可根据需求改
  22270. AccessKeySecret: 'FpClTp4OVrRRtHEfi3lBOWUoLxKieW',
  22271. // AccessKeySecret 去你的阿里云上控制台上找
  22272. OSSAccessKeyId: 'LTAI4G9c14PgKvM23WZ9zrpc',
  22273. // AccessKeyId 去你的阿里云上控制台上找
  22274. timeout: 87600 //这个是上传文件时Policy的失效时间
  22275. };
  22276. module.exports = config;
  22277. /***/ }),
  22278. /* 225 */
  22279. /*!***************************************************************!*\
  22280. !*** D:/demo/tourism/uni_applet/components/ossutil/base64.js ***!
  22281. \***************************************************************/
  22282. /*! no static exports found */
  22283. /***/ (function(module, exports) {
  22284. var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  22285. var base64DecodeChars = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);
  22286. function encode(str) {
  22287. var out, i, len;
  22288. var c1, c2, c3;
  22289. len = str.length;
  22290. i = 0;
  22291. out = "";
  22292. while (i < len) {
  22293. c1 = str.charCodeAt(i++) & 0xff;
  22294. if (i == len) {
  22295. out += base64EncodeChars.charAt(c1 >> 2);
  22296. out += base64EncodeChars.charAt((c1 & 0x3) << 4);
  22297. out += "==";
  22298. break;
  22299. }
  22300. c2 = str.charCodeAt(i++);
  22301. if (i == len) {
  22302. out += base64EncodeChars.charAt(c1 >> 2);
  22303. out += base64EncodeChars.charAt((c1 & 0x3) << 4 | (c2 & 0xF0) >> 4);
  22304. out += base64EncodeChars.charAt((c2 & 0xF) << 2);
  22305. out += "=";
  22306. break;
  22307. }
  22308. c3 = str.charCodeAt(i++);
  22309. out += base64EncodeChars.charAt(c1 >> 2);
  22310. out += base64EncodeChars.charAt((c1 & 0x3) << 4 | (c2 & 0xF0) >> 4);
  22311. out += base64EncodeChars.charAt((c2 & 0xF) << 2 | (c3 & 0xC0) >> 6);
  22312. out += base64EncodeChars.charAt(c3 & 0x3F);
  22313. }
  22314. return out;
  22315. }
  22316. function decode(str) {
  22317. var c1, c2, c3, c4;
  22318. var i, len, out;
  22319. len = str.length;
  22320. i = 0;
  22321. out = "";
  22322. while (i < len) {
  22323. /* c1 */
  22324. do {
  22325. c1 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
  22326. } while (i < len && c1 == -1);
  22327. if (c1 == -1) break;
  22328. /* c2 */
  22329. do {
  22330. c2 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
  22331. } while (i < len && c2 == -1);
  22332. if (c2 == -1) break;
  22333. out += String.fromCharCode(c1 << 2 | (c2 & 0x30) >> 4);
  22334. /* c3 */
  22335. do {
  22336. c3 = str.charCodeAt(i++) & 0xff;
  22337. if (c3 == 61) return out;
  22338. c3 = base64DecodeChars[c3];
  22339. } while (i < len && c3 == -1);
  22340. if (c3 == -1) break;
  22341. out += String.fromCharCode((c2 & 0XF) << 4 | (c3 & 0x3C) >> 2);
  22342. /* c4 */
  22343. do {
  22344. c4 = str.charCodeAt(i++) & 0xff;
  22345. if (c4 == 61) return out;
  22346. c4 = base64DecodeChars[c4];
  22347. } while (i < len && c4 == -1);
  22348. if (c4 == -1) break;
  22349. out += String.fromCharCode((c3 & 0x03) << 6 | c4);
  22350. }
  22351. return out;
  22352. }
  22353. function utf16to8(str) {
  22354. var out, i, len, c;
  22355. out = "";
  22356. len = str.length;
  22357. for (i = 0; i < len; i++) {
  22358. c = str.charCodeAt(i);
  22359. if (c >= 0x0001 && c <= 0x007F) {
  22360. out += str.charAt(i);
  22361. } else if (c > 0x07FF) {
  22362. out += String.fromCharCode(0xE0 | c >> 12 & 0x0F);
  22363. out += String.fromCharCode(0x80 | c >> 6 & 0x3F);
  22364. out += String.fromCharCode(0x80 | c >> 0 & 0x3F);
  22365. } else {
  22366. out += String.fromCharCode(0xC0 | c >> 6 & 0x1F);
  22367. out += String.fromCharCode(0x80 | c >> 0 & 0x3F);
  22368. }
  22369. }
  22370. return out;
  22371. }
  22372. function utf8to16(str) {
  22373. var out, i, len, c;
  22374. var char2, char3;
  22375. out = "";
  22376. len = str.length;
  22377. i = 0;
  22378. while (i < len) {
  22379. c = str.charCodeAt(i++);
  22380. switch (c >> 4) {
  22381. case 0:
  22382. case 1:
  22383. case 2:
  22384. case 3:
  22385. case 4:
  22386. case 5:
  22387. case 6:
  22388. case 7:
  22389. // 0xxxxxxx
  22390. out += str.charAt(i - 1);
  22391. break;
  22392. case 12:
  22393. case 13:
  22394. // 110x xxxx 10xx xxxx
  22395. char2 = str.charCodeAt(i++);
  22396. out += String.fromCharCode((c & 0x1F) << 6 | char2 & 0x3F);
  22397. break;
  22398. case 14:
  22399. // 1110 xxxx 10xx xxxx 10xx xxxx
  22400. char2 = str.charCodeAt(i++);
  22401. char3 = str.charCodeAt(i++);
  22402. out += String.fromCharCode((c & 0x0F) << 12 | (char2 & 0x3F) << 6 | (char3 & 0x3F) << 0);
  22403. break;
  22404. }
  22405. }
  22406. return out;
  22407. }
  22408. module.exports = {
  22409. encode: encode,
  22410. decode: decode,
  22411. utf16to8: utf16to8,
  22412. utf8to16: utf8to16
  22413. };
  22414. /***/ }),
  22415. /* 226 */
  22416. /*!*************************************************************!*\
  22417. !*** D:/demo/tourism/uni_applet/components/ossutil/hmac.js ***!
  22418. \*************************************************************/
  22419. /*! no static exports found */
  22420. /***/ (function(module, exports, __webpack_require__) {
  22421. var Crypto = __webpack_require__(/*! ./crypto.js */ 227);
  22422. (function () {
  22423. // Shortcut
  22424. var util = Crypto.util;
  22425. Crypto.HMAC = function (hasher, message, key, options) {
  22426. // Allow arbitrary length keys
  22427. key = key.length > hasher._blocksize * 4 ? hasher(key, {
  22428. asBytes: true
  22429. }) : util.stringToBytes(key);
  22430. // XOR keys with pad constants
  22431. var okey = key,
  22432. ikey = key.slice(0);
  22433. for (var i = 0; i < hasher._blocksize * 4; i++) {
  22434. okey[i] ^= 0x5C;
  22435. ikey[i] ^= 0x36;
  22436. }
  22437. var hmacbytes = hasher(util.bytesToString(okey) + hasher(util.bytesToString(ikey) + message, {
  22438. asString: true
  22439. }), {
  22440. asBytes: true
  22441. });
  22442. return options && options.asBytes ? hmacbytes : options && options.asString ? util.bytesToString(hmacbytes) : util.bytesToHex(hmacbytes);
  22443. };
  22444. })();
  22445. module.exports = Crypto;
  22446. /***/ }),
  22447. /* 227 */
  22448. /*!***************************************************************!*\
  22449. !*** D:/demo/tourism/uni_applet/components/ossutil/crypto.js ***!
  22450. \***************************************************************/
  22451. /*! no static exports found */
  22452. /***/ (function(module, exports) {
  22453. var Crypto = {};
  22454. (function () {
  22455. var base64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  22456. // Crypto utilities
  22457. var util = Crypto.util = {
  22458. // Bit-wise rotate left
  22459. rotl: function rotl(n, b) {
  22460. return n << b | n >>> 32 - b;
  22461. },
  22462. // Bit-wise rotate right
  22463. rotr: function rotr(n, b) {
  22464. return n << 32 - b | n >>> b;
  22465. },
  22466. // Swap big-endian to little-endian and vice versa
  22467. endian: function endian(n) {
  22468. // If number given, swap endian
  22469. if (n.constructor == Number) {
  22470. return util.rotl(n, 8) & 0x00FF00FF | util.rotl(n, 24) & 0xFF00FF00;
  22471. }
  22472. // Else, assume array and swap all items
  22473. for (var i = 0; i < n.length; i++) {
  22474. n[i] = util.endian(n[i]);
  22475. }
  22476. return n;
  22477. },
  22478. // Generate an array of any length of random bytes
  22479. randomBytes: function randomBytes(n) {
  22480. for (var bytes = []; n > 0; n--) {
  22481. bytes.push(Math.floor(Math.random() * 256));
  22482. }
  22483. return bytes;
  22484. },
  22485. // Convert a string to a byte array
  22486. stringToBytes: function stringToBytes(str) {
  22487. var bytes = [];
  22488. for (var i = 0; i < str.length; i++) {
  22489. bytes.push(str.charCodeAt(i));
  22490. }
  22491. return bytes;
  22492. },
  22493. // Convert a byte array to a string
  22494. bytesToString: function bytesToString(bytes) {
  22495. var str = [];
  22496. for (var i = 0; i < bytes.length; i++) {
  22497. str.push(String.fromCharCode(bytes[i]));
  22498. }
  22499. return str.join("");
  22500. },
  22501. // Convert a string to big-endian 32-bit words
  22502. stringToWords: function stringToWords(str) {
  22503. var words = [];
  22504. for (var c = 0, b = 0; c < str.length; c++, b += 8) {
  22505. words[b >>> 5] |= str.charCodeAt(c) << 24 - b % 32;
  22506. }
  22507. return words;
  22508. },
  22509. // Convert a byte array to big-endian 32-bits words
  22510. bytesToWords: function bytesToWords(bytes) {
  22511. var words = [];
  22512. for (var i = 0, b = 0; i < bytes.length; i++, b += 8) {
  22513. words[b >>> 5] |= bytes[i] << 24 - b % 32;
  22514. }
  22515. return words;
  22516. },
  22517. // Convert big-endian 32-bit words to a byte array
  22518. wordsToBytes: function wordsToBytes(words) {
  22519. var bytes = [];
  22520. for (var b = 0; b < words.length * 32; b += 8) {
  22521. bytes.push(words[b >>> 5] >>> 24 - b % 32 & 0xFF);
  22522. }
  22523. return bytes;
  22524. },
  22525. // Convert a byte array to a hex string
  22526. bytesToHex: function bytesToHex(bytes) {
  22527. var hex = [];
  22528. for (var i = 0; i < bytes.length; i++) {
  22529. hex.push((bytes[i] >>> 4).toString(16));
  22530. hex.push((bytes[i] & 0xF).toString(16));
  22531. }
  22532. return hex.join("");
  22533. },
  22534. // Convert a hex string to a byte array
  22535. hexToBytes: function hexToBytes(hex) {
  22536. var bytes = [];
  22537. for (var c = 0; c < hex.length; c += 2) {
  22538. bytes.push(parseInt(hex.substr(c, 2), 16));
  22539. }
  22540. return bytes;
  22541. },
  22542. // Convert a byte array to a base-64 string
  22543. bytesToBase64: function bytesToBase64(bytes) {
  22544. // Use browser-native function if it exists
  22545. // if (typeof btoa == "function") return btoa(util.bytesToString(bytes));
  22546. var base64 = [],
  22547. overflow;
  22548. for (var i = 0; i < bytes.length; i++) {
  22549. switch (i % 3) {
  22550. case 0:
  22551. base64.push(base64map.charAt(bytes[i] >>> 2));
  22552. overflow = (bytes[i] & 0x3) << 4;
  22553. break;
  22554. case 1:
  22555. base64.push(base64map.charAt(overflow | bytes[i] >>> 4));
  22556. overflow = (bytes[i] & 0xF) << 2;
  22557. break;
  22558. case 2:
  22559. base64.push(base64map.charAt(overflow | bytes[i] >>> 6));
  22560. base64.push(base64map.charAt(bytes[i] & 0x3F));
  22561. overflow = -1;
  22562. }
  22563. }
  22564. // Encode overflow bits, if there are any
  22565. if (overflow != undefined && overflow != -1) base64.push(base64map.charAt(overflow));
  22566. // Add padding
  22567. while (base64.length % 4 != 0) {
  22568. base64.push("=");
  22569. }
  22570. return base64.join("");
  22571. },
  22572. // Convert a base-64 string to a byte array
  22573. base64ToBytes: function base64ToBytes(base64) {
  22574. // Use browser-native function if it exists
  22575. if (typeof atob == "function") return util.stringToBytes(atob(base64));
  22576. // Remove non-base-64 characters
  22577. base64 = base64.replace(/[^A-Z0-9+\/]/ig, "");
  22578. var bytes = [];
  22579. for (var i = 0; i < base64.length; i++) {
  22580. switch (i % 4) {
  22581. case 1:
  22582. bytes.push(base64map.indexOf(base64.charAt(i - 1)) << 2 | base64map.indexOf(base64.charAt(i)) >>> 4);
  22583. break;
  22584. case 2:
  22585. bytes.push((base64map.indexOf(base64.charAt(i - 1)) & 0xF) << 4 | base64map.indexOf(base64.charAt(i)) >>> 2);
  22586. break;
  22587. case 3:
  22588. bytes.push((base64map.indexOf(base64.charAt(i - 1)) & 0x3) << 6 | base64map.indexOf(base64.charAt(i)));
  22589. break;
  22590. }
  22591. }
  22592. return bytes;
  22593. }
  22594. };
  22595. // Crypto mode namespace
  22596. Crypto.mode = {};
  22597. })();
  22598. module.exports = Crypto;
  22599. /***/ }),
  22600. /* 228 */
  22601. /*!*************************************************************!*\
  22602. !*** D:/demo/tourism/uni_applet/components/ossutil/sha1.js ***!
  22603. \*************************************************************/
  22604. /*! no static exports found */
  22605. /***/ (function(module, exports, __webpack_require__) {
  22606. var Crypto = __webpack_require__(/*! ./crypto.js */ 227);
  22607. (function () {
  22608. // Shortcut
  22609. var util = Crypto.util;
  22610. // Public API
  22611. var SHA1 = Crypto.SHA1 = function (message, options) {
  22612. var digestbytes = util.wordsToBytes(SHA1._sha1(message));
  22613. return options && options.asBytes ? digestbytes : options && options.asString ? util.bytesToString(digestbytes) : util.bytesToHex(digestbytes);
  22614. };
  22615. // The core
  22616. SHA1._sha1 = function (message) {
  22617. var m = util.stringToWords(message),
  22618. l = message.length * 8,
  22619. w = [],
  22620. H0 = 1732584193,
  22621. H1 = -271733879,
  22622. H2 = -1732584194,
  22623. H3 = 271733878,
  22624. H4 = -1009589776;
  22625. // Padding
  22626. m[l >> 5] |= 0x80 << 24 - l % 32;
  22627. m[(l + 64 >>> 9 << 4) + 15] = l;
  22628. for (var i = 0; i < m.length; i += 16) {
  22629. var a = H0,
  22630. b = H1,
  22631. c = H2,
  22632. d = H3,
  22633. e = H4;
  22634. for (var j = 0; j < 80; j++) {
  22635. if (j < 16) w[j] = m[i + j];else {
  22636. var n = w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16];
  22637. w[j] = n << 1 | n >>> 31;
  22638. }
  22639. var t = (H0 << 5 | H0 >>> 27) + H4 + (w[j] >>> 0) + (j < 20 ? (H1 & H2 | ~H1 & H3) + 1518500249 : j < 40 ? (H1 ^ H2 ^ H3) + 1859775393 : j < 60 ? (H1 & H2 | H1 & H3 | H2 & H3) - 1894007588 : (H1 ^ H2 ^ H3) - 899497514);
  22640. H4 = H3;
  22641. H3 = H2;
  22642. H2 = H1 << 30 | H1 >>> 2;
  22643. H1 = H0;
  22644. H0 = t;
  22645. }
  22646. H0 += a;
  22647. H1 += b;
  22648. H2 += c;
  22649. H3 += d;
  22650. H4 += e;
  22651. }
  22652. return [H0, H1, H2, H3, H4];
  22653. };
  22654. // Package private blocksize
  22655. SHA1._blocksize = 16;
  22656. })();
  22657. module.exports = Crypto;
  22658. /***/ }),
  22659. /* 229 */,
  22660. /* 230 */,
  22661. /* 231 */,
  22662. /* 232 */,
  22663. /* 233 */,
  22664. /* 234 */,
  22665. /* 235 */,
  22666. /* 236 */,
  22667. /* 237 */,
  22668. /* 238 */,
  22669. /* 239 */,
  22670. /* 240 */,
  22671. /* 241 */,
  22672. /* 242 */,
  22673. /* 243 */,
  22674. /* 244 */
  22675. /*!**************************************************************************************!*\
  22676. !*** D:/demo/tourism/uni_applet/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  22677. \**************************************************************************************/
  22678. /*! no static exports found */
  22679. /***/ (function(module, exports, __webpack_require__) {
  22680. "use strict";
  22681. Object.defineProperty(exports, "__esModule", {
  22682. value: true
  22683. });
  22684. exports.default = void 0;
  22685. var _default = {
  22686. "id": "2852637",
  22687. "name": "uniui图标库",
  22688. "font_family": "uniicons",
  22689. "css_prefix_text": "uniui-",
  22690. "description": "",
  22691. "glyphs": [{
  22692. "icon_id": "25027049",
  22693. "name": "yanse",
  22694. "font_class": "color",
  22695. "unicode": "e6cf",
  22696. "unicode_decimal": 59087
  22697. }, {
  22698. "icon_id": "25027048",
  22699. "name": "wallet",
  22700. "font_class": "wallet",
  22701. "unicode": "e6b1",
  22702. "unicode_decimal": 59057
  22703. }, {
  22704. "icon_id": "25015720",
  22705. "name": "settings-filled",
  22706. "font_class": "settings-filled",
  22707. "unicode": "e6ce",
  22708. "unicode_decimal": 59086
  22709. }, {
  22710. "icon_id": "25015434",
  22711. "name": "shimingrenzheng-filled",
  22712. "font_class": "auth-filled",
  22713. "unicode": "e6cc",
  22714. "unicode_decimal": 59084
  22715. }, {
  22716. "icon_id": "24934246",
  22717. "name": "shop-filled",
  22718. "font_class": "shop-filled",
  22719. "unicode": "e6cd",
  22720. "unicode_decimal": 59085
  22721. }, {
  22722. "icon_id": "24934159",
  22723. "name": "staff-filled-01",
  22724. "font_class": "staff-filled",
  22725. "unicode": "e6cb",
  22726. "unicode_decimal": 59083
  22727. }, {
  22728. "icon_id": "24932461",
  22729. "name": "VIP-filled",
  22730. "font_class": "vip-filled",
  22731. "unicode": "e6c6",
  22732. "unicode_decimal": 59078
  22733. }, {
  22734. "icon_id": "24932462",
  22735. "name": "plus_circle_fill",
  22736. "font_class": "plus-filled",
  22737. "unicode": "e6c7",
  22738. "unicode_decimal": 59079
  22739. }, {
  22740. "icon_id": "24932463",
  22741. "name": "folder_add-filled",
  22742. "font_class": "folder-add-filled",
  22743. "unicode": "e6c8",
  22744. "unicode_decimal": 59080
  22745. }, {
  22746. "icon_id": "24932464",
  22747. "name": "yanse-filled",
  22748. "font_class": "color-filled",
  22749. "unicode": "e6c9",
  22750. "unicode_decimal": 59081
  22751. }, {
  22752. "icon_id": "24932465",
  22753. "name": "tune-filled",
  22754. "font_class": "tune-filled",
  22755. "unicode": "e6ca",
  22756. "unicode_decimal": 59082
  22757. }, {
  22758. "icon_id": "24932455",
  22759. "name": "a-rilidaka-filled",
  22760. "font_class": "calendar-filled",
  22761. "unicode": "e6c0",
  22762. "unicode_decimal": 59072
  22763. }, {
  22764. "icon_id": "24932456",
  22765. "name": "notification-filled",
  22766. "font_class": "notification-filled",
  22767. "unicode": "e6c1",
  22768. "unicode_decimal": 59073
  22769. }, {
  22770. "icon_id": "24932457",
  22771. "name": "wallet-filled",
  22772. "font_class": "wallet-filled",
  22773. "unicode": "e6c2",
  22774. "unicode_decimal": 59074
  22775. }, {
  22776. "icon_id": "24932458",
  22777. "name": "paihangbang-filled",
  22778. "font_class": "medal-filled",
  22779. "unicode": "e6c3",
  22780. "unicode_decimal": 59075
  22781. }, {
  22782. "icon_id": "24932459",
  22783. "name": "gift-filled",
  22784. "font_class": "gift-filled",
  22785. "unicode": "e6c4",
  22786. "unicode_decimal": 59076
  22787. }, {
  22788. "icon_id": "24932460",
  22789. "name": "fire-filled",
  22790. "font_class": "fire-filled",
  22791. "unicode": "e6c5",
  22792. "unicode_decimal": 59077
  22793. }, {
  22794. "icon_id": "24928001",
  22795. "name": "refreshempty",
  22796. "font_class": "refreshempty",
  22797. "unicode": "e6bf",
  22798. "unicode_decimal": 59071
  22799. }, {
  22800. "icon_id": "24926853",
  22801. "name": "location-ellipse",
  22802. "font_class": "location-filled",
  22803. "unicode": "e6af",
  22804. "unicode_decimal": 59055
  22805. }, {
  22806. "icon_id": "24926735",
  22807. "name": "person-filled",
  22808. "font_class": "person-filled",
  22809. "unicode": "e69d",
  22810. "unicode_decimal": 59037
  22811. }, {
  22812. "icon_id": "24926703",
  22813. "name": "personadd-filled",
  22814. "font_class": "personadd-filled",
  22815. "unicode": "e698",
  22816. "unicode_decimal": 59032
  22817. }, {
  22818. "icon_id": "24923351",
  22819. "name": "back",
  22820. "font_class": "back",
  22821. "unicode": "e6b9",
  22822. "unicode_decimal": 59065
  22823. }, {
  22824. "icon_id": "24923352",
  22825. "name": "forward",
  22826. "font_class": "forward",
  22827. "unicode": "e6ba",
  22828. "unicode_decimal": 59066
  22829. }, {
  22830. "icon_id": "24923353",
  22831. "name": "arrowthinright",
  22832. "font_class": "arrow-right",
  22833. "unicode": "e6bb",
  22834. "unicode_decimal": 59067
  22835. }, {
  22836. "icon_id": "24923353",
  22837. "name": "arrowthinright",
  22838. "font_class": "arrowthinright",
  22839. "unicode": "e6bb",
  22840. "unicode_decimal": 59067
  22841. }, {
  22842. "icon_id": "24923354",
  22843. "name": "arrowthinleft",
  22844. "font_class": "arrow-left",
  22845. "unicode": "e6bc",
  22846. "unicode_decimal": 59068
  22847. }, {
  22848. "icon_id": "24923354",
  22849. "name": "arrowthinleft",
  22850. "font_class": "arrowthinleft",
  22851. "unicode": "e6bc",
  22852. "unicode_decimal": 59068
  22853. }, {
  22854. "icon_id": "24923355",
  22855. "name": "arrowthinup",
  22856. "font_class": "arrow-up",
  22857. "unicode": "e6bd",
  22858. "unicode_decimal": 59069
  22859. }, {
  22860. "icon_id": "24923355",
  22861. "name": "arrowthinup",
  22862. "font_class": "arrowthinup",
  22863. "unicode": "e6bd",
  22864. "unicode_decimal": 59069
  22865. }, {
  22866. "icon_id": "24923356",
  22867. "name": "arrowthindown",
  22868. "font_class": "arrow-down",
  22869. "unicode": "e6be",
  22870. "unicode_decimal": 59070
  22871. }, {
  22872. "icon_id": "24923356",
  22873. "name": "arrowthindown",
  22874. "font_class": "arrowthindown",
  22875. "unicode": "e6be",
  22876. "unicode_decimal": 59070
  22877. }, {
  22878. "icon_id": "24923349",
  22879. "name": "arrowdown",
  22880. "font_class": "bottom",
  22881. "unicode": "e6b8",
  22882. "unicode_decimal": 59064
  22883. }, {
  22884. "icon_id": "24923349",
  22885. "name": "arrowdown",
  22886. "font_class": "arrowdown",
  22887. "unicode": "e6b8",
  22888. "unicode_decimal": 59064
  22889. }, {
  22890. "icon_id": "24923346",
  22891. "name": "arrowright",
  22892. "font_class": "right",
  22893. "unicode": "e6b5",
  22894. "unicode_decimal": 59061
  22895. }, {
  22896. "icon_id": "24923346",
  22897. "name": "arrowright",
  22898. "font_class": "arrowright",
  22899. "unicode": "e6b5",
  22900. "unicode_decimal": 59061
  22901. }, {
  22902. "icon_id": "24923347",
  22903. "name": "arrowup",
  22904. "font_class": "top",
  22905. "unicode": "e6b6",
  22906. "unicode_decimal": 59062
  22907. }, {
  22908. "icon_id": "24923347",
  22909. "name": "arrowup",
  22910. "font_class": "arrowup",
  22911. "unicode": "e6b6",
  22912. "unicode_decimal": 59062
  22913. }, {
  22914. "icon_id": "24923348",
  22915. "name": "arrowleft",
  22916. "font_class": "left",
  22917. "unicode": "e6b7",
  22918. "unicode_decimal": 59063
  22919. }, {
  22920. "icon_id": "24923348",
  22921. "name": "arrowleft",
  22922. "font_class": "arrowleft",
  22923. "unicode": "e6b7",
  22924. "unicode_decimal": 59063
  22925. }, {
  22926. "icon_id": "24923334",
  22927. "name": "eye",
  22928. "font_class": "eye",
  22929. "unicode": "e651",
  22930. "unicode_decimal": 58961
  22931. }, {
  22932. "icon_id": "24923335",
  22933. "name": "eye-filled",
  22934. "font_class": "eye-filled",
  22935. "unicode": "e66a",
  22936. "unicode_decimal": 58986
  22937. }, {
  22938. "icon_id": "24923336",
  22939. "name": "eye-slash",
  22940. "font_class": "eye-slash",
  22941. "unicode": "e6b3",
  22942. "unicode_decimal": 59059
  22943. }, {
  22944. "icon_id": "24923337",
  22945. "name": "eye-slash-filled",
  22946. "font_class": "eye-slash-filled",
  22947. "unicode": "e6b4",
  22948. "unicode_decimal": 59060
  22949. }, {
  22950. "icon_id": "24923305",
  22951. "name": "info-filled",
  22952. "font_class": "info-filled",
  22953. "unicode": "e649",
  22954. "unicode_decimal": 58953
  22955. }, {
  22956. "icon_id": "24923299",
  22957. "name": "reload-01",
  22958. "font_class": "reload",
  22959. "unicode": "e6b2",
  22960. "unicode_decimal": 59058
  22961. }, {
  22962. "icon_id": "24923195",
  22963. "name": "mic_slash_fill",
  22964. "font_class": "micoff-filled",
  22965. "unicode": "e6b0",
  22966. "unicode_decimal": 59056
  22967. }, {
  22968. "icon_id": "24923165",
  22969. "name": "map-pin-ellipse",
  22970. "font_class": "map-pin-ellipse",
  22971. "unicode": "e6ac",
  22972. "unicode_decimal": 59052
  22973. }, {
  22974. "icon_id": "24923166",
  22975. "name": "map-pin",
  22976. "font_class": "map-pin",
  22977. "unicode": "e6ad",
  22978. "unicode_decimal": 59053
  22979. }, {
  22980. "icon_id": "24923167",
  22981. "name": "location",
  22982. "font_class": "location",
  22983. "unicode": "e6ae",
  22984. "unicode_decimal": 59054
  22985. }, {
  22986. "icon_id": "24923064",
  22987. "name": "starhalf",
  22988. "font_class": "starhalf",
  22989. "unicode": "e683",
  22990. "unicode_decimal": 59011
  22991. }, {
  22992. "icon_id": "24923065",
  22993. "name": "star",
  22994. "font_class": "star",
  22995. "unicode": "e688",
  22996. "unicode_decimal": 59016
  22997. }, {
  22998. "icon_id": "24923066",
  22999. "name": "star-filled",
  23000. "font_class": "star-filled",
  23001. "unicode": "e68f",
  23002. "unicode_decimal": 59023
  23003. }, {
  23004. "icon_id": "24899646",
  23005. "name": "a-rilidaka",
  23006. "font_class": "calendar",
  23007. "unicode": "e6a0",
  23008. "unicode_decimal": 59040
  23009. }, {
  23010. "icon_id": "24899647",
  23011. "name": "fire",
  23012. "font_class": "fire",
  23013. "unicode": "e6a1",
  23014. "unicode_decimal": 59041
  23015. }, {
  23016. "icon_id": "24899648",
  23017. "name": "paihangbang",
  23018. "font_class": "medal",
  23019. "unicode": "e6a2",
  23020. "unicode_decimal": 59042
  23021. }, {
  23022. "icon_id": "24899649",
  23023. "name": "font",
  23024. "font_class": "font",
  23025. "unicode": "e6a3",
  23026. "unicode_decimal": 59043
  23027. }, {
  23028. "icon_id": "24899650",
  23029. "name": "gift",
  23030. "font_class": "gift",
  23031. "unicode": "e6a4",
  23032. "unicode_decimal": 59044
  23033. }, {
  23034. "icon_id": "24899651",
  23035. "name": "link",
  23036. "font_class": "link",
  23037. "unicode": "e6a5",
  23038. "unicode_decimal": 59045
  23039. }, {
  23040. "icon_id": "24899652",
  23041. "name": "notification",
  23042. "font_class": "notification",
  23043. "unicode": "e6a6",
  23044. "unicode_decimal": 59046
  23045. }, {
  23046. "icon_id": "24899653",
  23047. "name": "staff",
  23048. "font_class": "staff",
  23049. "unicode": "e6a7",
  23050. "unicode_decimal": 59047
  23051. }, {
  23052. "icon_id": "24899654",
  23053. "name": "VIP",
  23054. "font_class": "vip",
  23055. "unicode": "e6a8",
  23056. "unicode_decimal": 59048
  23057. }, {
  23058. "icon_id": "24899655",
  23059. "name": "folder_add",
  23060. "font_class": "folder-add",
  23061. "unicode": "e6a9",
  23062. "unicode_decimal": 59049
  23063. }, {
  23064. "icon_id": "24899656",
  23065. "name": "tune",
  23066. "font_class": "tune",
  23067. "unicode": "e6aa",
  23068. "unicode_decimal": 59050
  23069. }, {
  23070. "icon_id": "24899657",
  23071. "name": "shimingrenzheng",
  23072. "font_class": "auth",
  23073. "unicode": "e6ab",
  23074. "unicode_decimal": 59051
  23075. }, {
  23076. "icon_id": "24899565",
  23077. "name": "person",
  23078. "font_class": "person",
  23079. "unicode": "e699",
  23080. "unicode_decimal": 59033
  23081. }, {
  23082. "icon_id": "24899566",
  23083. "name": "email-filled",
  23084. "font_class": "email-filled",
  23085. "unicode": "e69a",
  23086. "unicode_decimal": 59034
  23087. }, {
  23088. "icon_id": "24899567",
  23089. "name": "phone-filled",
  23090. "font_class": "phone-filled",
  23091. "unicode": "e69b",
  23092. "unicode_decimal": 59035
  23093. }, {
  23094. "icon_id": "24899568",
  23095. "name": "phone",
  23096. "font_class": "phone",
  23097. "unicode": "e69c",
  23098. "unicode_decimal": 59036
  23099. }, {
  23100. "icon_id": "24899570",
  23101. "name": "email",
  23102. "font_class": "email",
  23103. "unicode": "e69e",
  23104. "unicode_decimal": 59038
  23105. }, {
  23106. "icon_id": "24899571",
  23107. "name": "personadd",
  23108. "font_class": "personadd",
  23109. "unicode": "e69f",
  23110. "unicode_decimal": 59039
  23111. }, {
  23112. "icon_id": "24899558",
  23113. "name": "chatboxes-filled",
  23114. "font_class": "chatboxes-filled",
  23115. "unicode": "e692",
  23116. "unicode_decimal": 59026
  23117. }, {
  23118. "icon_id": "24899559",
  23119. "name": "contact",
  23120. "font_class": "contact",
  23121. "unicode": "e693",
  23122. "unicode_decimal": 59027
  23123. }, {
  23124. "icon_id": "24899560",
  23125. "name": "chatbubble-filled",
  23126. "font_class": "chatbubble-filled",
  23127. "unicode": "e694",
  23128. "unicode_decimal": 59028
  23129. }, {
  23130. "icon_id": "24899561",
  23131. "name": "contact-filled",
  23132. "font_class": "contact-filled",
  23133. "unicode": "e695",
  23134. "unicode_decimal": 59029
  23135. }, {
  23136. "icon_id": "24899562",
  23137. "name": "chatboxes",
  23138. "font_class": "chatboxes",
  23139. "unicode": "e696",
  23140. "unicode_decimal": 59030
  23141. }, {
  23142. "icon_id": "24899563",
  23143. "name": "chatbubble",
  23144. "font_class": "chatbubble",
  23145. "unicode": "e697",
  23146. "unicode_decimal": 59031
  23147. }, {
  23148. "icon_id": "24881290",
  23149. "name": "upload-filled",
  23150. "font_class": "upload-filled",
  23151. "unicode": "e68e",
  23152. "unicode_decimal": 59022
  23153. }, {
  23154. "icon_id": "24881292",
  23155. "name": "upload",
  23156. "font_class": "upload",
  23157. "unicode": "e690",
  23158. "unicode_decimal": 59024
  23159. }, {
  23160. "icon_id": "24881293",
  23161. "name": "weixin",
  23162. "font_class": "weixin",
  23163. "unicode": "e691",
  23164. "unicode_decimal": 59025
  23165. }, {
  23166. "icon_id": "24881274",
  23167. "name": "compose",
  23168. "font_class": "compose",
  23169. "unicode": "e67f",
  23170. "unicode_decimal": 59007
  23171. }, {
  23172. "icon_id": "24881275",
  23173. "name": "qq",
  23174. "font_class": "qq",
  23175. "unicode": "e680",
  23176. "unicode_decimal": 59008
  23177. }, {
  23178. "icon_id": "24881276",
  23179. "name": "download-filled",
  23180. "font_class": "download-filled",
  23181. "unicode": "e681",
  23182. "unicode_decimal": 59009
  23183. }, {
  23184. "icon_id": "24881277",
  23185. "name": "pengyouquan",
  23186. "font_class": "pyq",
  23187. "unicode": "e682",
  23188. "unicode_decimal": 59010
  23189. }, {
  23190. "icon_id": "24881279",
  23191. "name": "sound",
  23192. "font_class": "sound",
  23193. "unicode": "e684",
  23194. "unicode_decimal": 59012
  23195. }, {
  23196. "icon_id": "24881280",
  23197. "name": "trash-filled",
  23198. "font_class": "trash-filled",
  23199. "unicode": "e685",
  23200. "unicode_decimal": 59013
  23201. }, {
  23202. "icon_id": "24881281",
  23203. "name": "sound-filled",
  23204. "font_class": "sound-filled",
  23205. "unicode": "e686",
  23206. "unicode_decimal": 59014
  23207. }, {
  23208. "icon_id": "24881282",
  23209. "name": "trash",
  23210. "font_class": "trash",
  23211. "unicode": "e687",
  23212. "unicode_decimal": 59015
  23213. }, {
  23214. "icon_id": "24881284",
  23215. "name": "videocam-filled",
  23216. "font_class": "videocam-filled",
  23217. "unicode": "e689",
  23218. "unicode_decimal": 59017
  23219. }, {
  23220. "icon_id": "24881285",
  23221. "name": "spinner-cycle",
  23222. "font_class": "spinner-cycle",
  23223. "unicode": "e68a",
  23224. "unicode_decimal": 59018
  23225. }, {
  23226. "icon_id": "24881286",
  23227. "name": "weibo",
  23228. "font_class": "weibo",
  23229. "unicode": "e68b",
  23230. "unicode_decimal": 59019
  23231. }, {
  23232. "icon_id": "24881288",
  23233. "name": "videocam",
  23234. "font_class": "videocam",
  23235. "unicode": "e68c",
  23236. "unicode_decimal": 59020
  23237. }, {
  23238. "icon_id": "24881289",
  23239. "name": "download",
  23240. "font_class": "download",
  23241. "unicode": "e68d",
  23242. "unicode_decimal": 59021
  23243. }, {
  23244. "icon_id": "24879601",
  23245. "name": "help",
  23246. "font_class": "help",
  23247. "unicode": "e679",
  23248. "unicode_decimal": 59001
  23249. }, {
  23250. "icon_id": "24879602",
  23251. "name": "navigate-filled",
  23252. "font_class": "navigate-filled",
  23253. "unicode": "e67a",
  23254. "unicode_decimal": 59002
  23255. }, {
  23256. "icon_id": "24879603",
  23257. "name": "plusempty",
  23258. "font_class": "plusempty",
  23259. "unicode": "e67b",
  23260. "unicode_decimal": 59003
  23261. }, {
  23262. "icon_id": "24879604",
  23263. "name": "smallcircle",
  23264. "font_class": "smallcircle",
  23265. "unicode": "e67c",
  23266. "unicode_decimal": 59004
  23267. }, {
  23268. "icon_id": "24879605",
  23269. "name": "minus-filled",
  23270. "font_class": "minus-filled",
  23271. "unicode": "e67d",
  23272. "unicode_decimal": 59005
  23273. }, {
  23274. "icon_id": "24879606",
  23275. "name": "micoff",
  23276. "font_class": "micoff",
  23277. "unicode": "e67e",
  23278. "unicode_decimal": 59006
  23279. }, {
  23280. "icon_id": "24879588",
  23281. "name": "closeempty",
  23282. "font_class": "closeempty",
  23283. "unicode": "e66c",
  23284. "unicode_decimal": 58988
  23285. }, {
  23286. "icon_id": "24879589",
  23287. "name": "clear",
  23288. "font_class": "clear",
  23289. "unicode": "e66d",
  23290. "unicode_decimal": 58989
  23291. }, {
  23292. "icon_id": "24879590",
  23293. "name": "navigate",
  23294. "font_class": "navigate",
  23295. "unicode": "e66e",
  23296. "unicode_decimal": 58990
  23297. }, {
  23298. "icon_id": "24879591",
  23299. "name": "minus",
  23300. "font_class": "minus",
  23301. "unicode": "e66f",
  23302. "unicode_decimal": 58991
  23303. }, {
  23304. "icon_id": "24879592",
  23305. "name": "image",
  23306. "font_class": "image",
  23307. "unicode": "e670",
  23308. "unicode_decimal": 58992
  23309. }, {
  23310. "icon_id": "24879593",
  23311. "name": "mic",
  23312. "font_class": "mic",
  23313. "unicode": "e671",
  23314. "unicode_decimal": 58993
  23315. }, {
  23316. "icon_id": "24879594",
  23317. "name": "paperplane",
  23318. "font_class": "paperplane",
  23319. "unicode": "e672",
  23320. "unicode_decimal": 58994
  23321. }, {
  23322. "icon_id": "24879595",
  23323. "name": "close",
  23324. "font_class": "close",
  23325. "unicode": "e673",
  23326. "unicode_decimal": 58995
  23327. }, {
  23328. "icon_id": "24879596",
  23329. "name": "help-filled",
  23330. "font_class": "help-filled",
  23331. "unicode": "e674",
  23332. "unicode_decimal": 58996
  23333. }, {
  23334. "icon_id": "24879597",
  23335. "name": "plus-filled",
  23336. "font_class": "paperplane-filled",
  23337. "unicode": "e675",
  23338. "unicode_decimal": 58997
  23339. }, {
  23340. "icon_id": "24879598",
  23341. "name": "plus",
  23342. "font_class": "plus",
  23343. "unicode": "e676",
  23344. "unicode_decimal": 58998
  23345. }, {
  23346. "icon_id": "24879599",
  23347. "name": "mic-filled",
  23348. "font_class": "mic-filled",
  23349. "unicode": "e677",
  23350. "unicode_decimal": 58999
  23351. }, {
  23352. "icon_id": "24879600",
  23353. "name": "image-filled",
  23354. "font_class": "image-filled",
  23355. "unicode": "e678",
  23356. "unicode_decimal": 59000
  23357. }, {
  23358. "icon_id": "24855900",
  23359. "name": "locked-filled",
  23360. "font_class": "locked-filled",
  23361. "unicode": "e668",
  23362. "unicode_decimal": 58984
  23363. }, {
  23364. "icon_id": "24855901",
  23365. "name": "info",
  23366. "font_class": "info",
  23367. "unicode": "e669",
  23368. "unicode_decimal": 58985
  23369. }, {
  23370. "icon_id": "24855903",
  23371. "name": "locked",
  23372. "font_class": "locked",
  23373. "unicode": "e66b",
  23374. "unicode_decimal": 58987
  23375. }, {
  23376. "icon_id": "24855884",
  23377. "name": "camera-filled",
  23378. "font_class": "camera-filled",
  23379. "unicode": "e658",
  23380. "unicode_decimal": 58968
  23381. }, {
  23382. "icon_id": "24855885",
  23383. "name": "chat-filled",
  23384. "font_class": "chat-filled",
  23385. "unicode": "e659",
  23386. "unicode_decimal": 58969
  23387. }, {
  23388. "icon_id": "24855886",
  23389. "name": "camera",
  23390. "font_class": "camera",
  23391. "unicode": "e65a",
  23392. "unicode_decimal": 58970
  23393. }, {
  23394. "icon_id": "24855887",
  23395. "name": "circle",
  23396. "font_class": "circle",
  23397. "unicode": "e65b",
  23398. "unicode_decimal": 58971
  23399. }, {
  23400. "icon_id": "24855888",
  23401. "name": "checkmarkempty",
  23402. "font_class": "checkmarkempty",
  23403. "unicode": "e65c",
  23404. "unicode_decimal": 58972
  23405. }, {
  23406. "icon_id": "24855889",
  23407. "name": "chat",
  23408. "font_class": "chat",
  23409. "unicode": "e65d",
  23410. "unicode_decimal": 58973
  23411. }, {
  23412. "icon_id": "24855890",
  23413. "name": "circle-filled",
  23414. "font_class": "circle-filled",
  23415. "unicode": "e65e",
  23416. "unicode_decimal": 58974
  23417. }, {
  23418. "icon_id": "24855891",
  23419. "name": "flag",
  23420. "font_class": "flag",
  23421. "unicode": "e65f",
  23422. "unicode_decimal": 58975
  23423. }, {
  23424. "icon_id": "24855892",
  23425. "name": "flag-filled",
  23426. "font_class": "flag-filled",
  23427. "unicode": "e660",
  23428. "unicode_decimal": 58976
  23429. }, {
  23430. "icon_id": "24855893",
  23431. "name": "gear-filled",
  23432. "font_class": "gear-filled",
  23433. "unicode": "e661",
  23434. "unicode_decimal": 58977
  23435. }, {
  23436. "icon_id": "24855894",
  23437. "name": "home",
  23438. "font_class": "home",
  23439. "unicode": "e662",
  23440. "unicode_decimal": 58978
  23441. }, {
  23442. "icon_id": "24855895",
  23443. "name": "home-filled",
  23444. "font_class": "home-filled",
  23445. "unicode": "e663",
  23446. "unicode_decimal": 58979
  23447. }, {
  23448. "icon_id": "24855896",
  23449. "name": "gear",
  23450. "font_class": "gear",
  23451. "unicode": "e664",
  23452. "unicode_decimal": 58980
  23453. }, {
  23454. "icon_id": "24855897",
  23455. "name": "smallcircle-filled",
  23456. "font_class": "smallcircle-filled",
  23457. "unicode": "e665",
  23458. "unicode_decimal": 58981
  23459. }, {
  23460. "icon_id": "24855898",
  23461. "name": "map-filled",
  23462. "font_class": "map-filled",
  23463. "unicode": "e666",
  23464. "unicode_decimal": 58982
  23465. }, {
  23466. "icon_id": "24855899",
  23467. "name": "map",
  23468. "font_class": "map",
  23469. "unicode": "e667",
  23470. "unicode_decimal": 58983
  23471. }, {
  23472. "icon_id": "24855825",
  23473. "name": "refresh-filled",
  23474. "font_class": "refresh-filled",
  23475. "unicode": "e656",
  23476. "unicode_decimal": 58966
  23477. }, {
  23478. "icon_id": "24855826",
  23479. "name": "refresh",
  23480. "font_class": "refresh",
  23481. "unicode": "e657",
  23482. "unicode_decimal": 58967
  23483. }, {
  23484. "icon_id": "24855808",
  23485. "name": "cloud-upload",
  23486. "font_class": "cloud-upload",
  23487. "unicode": "e645",
  23488. "unicode_decimal": 58949
  23489. }, {
  23490. "icon_id": "24855809",
  23491. "name": "cloud-download-filled",
  23492. "font_class": "cloud-download-filled",
  23493. "unicode": "e646",
  23494. "unicode_decimal": 58950
  23495. }, {
  23496. "icon_id": "24855810",
  23497. "name": "cloud-download",
  23498. "font_class": "cloud-download",
  23499. "unicode": "e647",
  23500. "unicode_decimal": 58951
  23501. }, {
  23502. "icon_id": "24855811",
  23503. "name": "cloud-upload-filled",
  23504. "font_class": "cloud-upload-filled",
  23505. "unicode": "e648",
  23506. "unicode_decimal": 58952
  23507. }, {
  23508. "icon_id": "24855813",
  23509. "name": "redo",
  23510. "font_class": "redo",
  23511. "unicode": "e64a",
  23512. "unicode_decimal": 58954
  23513. }, {
  23514. "icon_id": "24855814",
  23515. "name": "images-filled",
  23516. "font_class": "images-filled",
  23517. "unicode": "e64b",
  23518. "unicode_decimal": 58955
  23519. }, {
  23520. "icon_id": "24855815",
  23521. "name": "undo-filled",
  23522. "font_class": "undo-filled",
  23523. "unicode": "e64c",
  23524. "unicode_decimal": 58956
  23525. }, {
  23526. "icon_id": "24855816",
  23527. "name": "more",
  23528. "font_class": "more",
  23529. "unicode": "e64d",
  23530. "unicode_decimal": 58957
  23531. }, {
  23532. "icon_id": "24855817",
  23533. "name": "more-filled",
  23534. "font_class": "more-filled",
  23535. "unicode": "e64e",
  23536. "unicode_decimal": 58958
  23537. }, {
  23538. "icon_id": "24855818",
  23539. "name": "undo",
  23540. "font_class": "undo",
  23541. "unicode": "e64f",
  23542. "unicode_decimal": 58959
  23543. }, {
  23544. "icon_id": "24855819",
  23545. "name": "images",
  23546. "font_class": "images",
  23547. "unicode": "e650",
  23548. "unicode_decimal": 58960
  23549. }, {
  23550. "icon_id": "24855821",
  23551. "name": "paperclip",
  23552. "font_class": "paperclip",
  23553. "unicode": "e652",
  23554. "unicode_decimal": 58962
  23555. }, {
  23556. "icon_id": "24855822",
  23557. "name": "settings",
  23558. "font_class": "settings",
  23559. "unicode": "e653",
  23560. "unicode_decimal": 58963
  23561. }, {
  23562. "icon_id": "24855823",
  23563. "name": "search",
  23564. "font_class": "search",
  23565. "unicode": "e654",
  23566. "unicode_decimal": 58964
  23567. }, {
  23568. "icon_id": "24855824",
  23569. "name": "redo-filled",
  23570. "font_class": "redo-filled",
  23571. "unicode": "e655",
  23572. "unicode_decimal": 58965
  23573. }, {
  23574. "icon_id": "24841702",
  23575. "name": "list",
  23576. "font_class": "list",
  23577. "unicode": "e644",
  23578. "unicode_decimal": 58948
  23579. }, {
  23580. "icon_id": "24841489",
  23581. "name": "mail-open-filled",
  23582. "font_class": "mail-open-filled",
  23583. "unicode": "e63a",
  23584. "unicode_decimal": 58938
  23585. }, {
  23586. "icon_id": "24841491",
  23587. "name": "hand-thumbsdown-filled",
  23588. "font_class": "hand-down-filled",
  23589. "unicode": "e63c",
  23590. "unicode_decimal": 58940
  23591. }, {
  23592. "icon_id": "24841492",
  23593. "name": "hand-thumbsdown",
  23594. "font_class": "hand-down",
  23595. "unicode": "e63d",
  23596. "unicode_decimal": 58941
  23597. }, {
  23598. "icon_id": "24841493",
  23599. "name": "hand-thumbsup-filled",
  23600. "font_class": "hand-up-filled",
  23601. "unicode": "e63e",
  23602. "unicode_decimal": 58942
  23603. }, {
  23604. "icon_id": "24841494",
  23605. "name": "hand-thumbsup",
  23606. "font_class": "hand-up",
  23607. "unicode": "e63f",
  23608. "unicode_decimal": 58943
  23609. }, {
  23610. "icon_id": "24841496",
  23611. "name": "heart-filled",
  23612. "font_class": "heart-filled",
  23613. "unicode": "e641",
  23614. "unicode_decimal": 58945
  23615. }, {
  23616. "icon_id": "24841498",
  23617. "name": "mail-open",
  23618. "font_class": "mail-open",
  23619. "unicode": "e643",
  23620. "unicode_decimal": 58947
  23621. }, {
  23622. "icon_id": "24841488",
  23623. "name": "heart",
  23624. "font_class": "heart",
  23625. "unicode": "e639",
  23626. "unicode_decimal": 58937
  23627. }, {
  23628. "icon_id": "24839963",
  23629. "name": "loop",
  23630. "font_class": "loop",
  23631. "unicode": "e633",
  23632. "unicode_decimal": 58931
  23633. }, {
  23634. "icon_id": "24839866",
  23635. "name": "pulldown",
  23636. "font_class": "pulldown",
  23637. "unicode": "e632",
  23638. "unicode_decimal": 58930
  23639. }, {
  23640. "icon_id": "24813798",
  23641. "name": "scan",
  23642. "font_class": "scan",
  23643. "unicode": "e62a",
  23644. "unicode_decimal": 58922
  23645. }, {
  23646. "icon_id": "24813786",
  23647. "name": "bars",
  23648. "font_class": "bars",
  23649. "unicode": "e627",
  23650. "unicode_decimal": 58919
  23651. }, {
  23652. "icon_id": "24813788",
  23653. "name": "cart-filled",
  23654. "font_class": "cart-filled",
  23655. "unicode": "e629",
  23656. "unicode_decimal": 58921
  23657. }, {
  23658. "icon_id": "24813790",
  23659. "name": "checkbox",
  23660. "font_class": "checkbox",
  23661. "unicode": "e62b",
  23662. "unicode_decimal": 58923
  23663. }, {
  23664. "icon_id": "24813791",
  23665. "name": "checkbox-filled",
  23666. "font_class": "checkbox-filled",
  23667. "unicode": "e62c",
  23668. "unicode_decimal": 58924
  23669. }, {
  23670. "icon_id": "24813794",
  23671. "name": "shop",
  23672. "font_class": "shop",
  23673. "unicode": "e62f",
  23674. "unicode_decimal": 58927
  23675. }, {
  23676. "icon_id": "24813795",
  23677. "name": "headphones",
  23678. "font_class": "headphones",
  23679. "unicode": "e630",
  23680. "unicode_decimal": 58928
  23681. }, {
  23682. "icon_id": "24813796",
  23683. "name": "cart",
  23684. "font_class": "cart",
  23685. "unicode": "e631",
  23686. "unicode_decimal": 58929
  23687. }]
  23688. };
  23689. exports.default = _default;
  23690. /***/ }),
  23691. /* 245 */,
  23692. /* 246 */,
  23693. /* 247 */,
  23694. /* 248 */,
  23695. /* 249 */,
  23696. /* 250 */,
  23697. /* 251 */,
  23698. /* 252 */
  23699. /*!************************************************************************************!*\
  23700. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-swiper/props.js ***!
  23701. \************************************************************************************/
  23702. /*! no static exports found */
  23703. /***/ (function(module, exports, __webpack_require__) {
  23704. "use strict";
  23705. /* WEBPACK VAR INJECTION */(function(uni) {
  23706. Object.defineProperty(exports, "__esModule", {
  23707. value: true
  23708. });
  23709. exports.default = void 0;
  23710. var _default = {
  23711. props: {
  23712. // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
  23713. list: {
  23714. type: Array,
  23715. default: uni.$u.props.swiper.list
  23716. },
  23717. // 是否显示面板指示器
  23718. indicator: {
  23719. type: Boolean,
  23720. default: uni.$u.props.swiper.indicator
  23721. },
  23722. // 指示器非激活颜色
  23723. indicatorActiveColor: {
  23724. type: String,
  23725. default: uni.$u.props.swiper.indicatorActiveColor
  23726. },
  23727. // 指示器的激活颜色
  23728. indicatorInactiveColor: {
  23729. type: String,
  23730. default: uni.$u.props.swiper.indicatorInactiveColor
  23731. },
  23732. // 指示器样式,可通过bottom,left,right进行定位
  23733. indicatorStyle: {
  23734. type: [String, Object],
  23735. default: uni.$u.props.swiper.indicatorStyle
  23736. },
  23737. // 指示器模式,line-线型,dot-点型
  23738. indicatorMode: {
  23739. type: String,
  23740. default: uni.$u.props.swiper.indicatorMode
  23741. },
  23742. // 是否自动切换
  23743. autoplay: {
  23744. type: Boolean,
  23745. default: uni.$u.props.swiper.autoplay
  23746. },
  23747. // 当前所在滑块的 index
  23748. current: {
  23749. type: [String, Number],
  23750. default: uni.$u.props.swiper.current
  23751. },
  23752. // 当前所在滑块的 item-id ,不能与 current 被同时指定
  23753. currentItemId: {
  23754. type: String,
  23755. default: uni.$u.props.swiper.currentItemId
  23756. },
  23757. // 滑块自动切换时间间隔
  23758. interval: {
  23759. type: [String, Number],
  23760. default: uni.$u.props.swiper.interval
  23761. },
  23762. // 滑块切换过程所需时间
  23763. duration: {
  23764. type: [String, Number],
  23765. default: uni.$u.props.swiper.duration
  23766. },
  23767. // 播放到末尾后是否重新回到开头
  23768. circular: {
  23769. type: Boolean,
  23770. default: uni.$u.props.swiper.circular
  23771. },
  23772. // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
  23773. previousMargin: {
  23774. type: [String, Number],
  23775. default: uni.$u.props.swiper.previousMargin
  23776. },
  23777. // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
  23778. nextMargin: {
  23779. type: [String, Number],
  23780. default: uni.$u.props.swiper.nextMargin
  23781. },
  23782. // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
  23783. acceleration: {
  23784. type: Boolean,
  23785. default: uni.$u.props.swiper.acceleration
  23786. },
  23787. // 同时显示的滑块数量,nvue、支付宝小程序不支持
  23788. displayMultipleItems: {
  23789. type: Number,
  23790. default: uni.$u.props.swiper.displayMultipleItems
  23791. },
  23792. // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
  23793. // 只对微信小程序有效
  23794. easingFunction: {
  23795. type: String,
  23796. default: uni.$u.props.swiper.easingFunction
  23797. },
  23798. // list数组中指定对象的目标属性名
  23799. keyName: {
  23800. type: String,
  23801. default: uni.$u.props.swiper.keyName
  23802. },
  23803. // 图片的裁剪模式
  23804. imgMode: {
  23805. type: String,
  23806. default: uni.$u.props.swiper.imgMode
  23807. },
  23808. // 组件高度
  23809. height: {
  23810. type: [String, Number],
  23811. default: uni.$u.props.swiper.height
  23812. },
  23813. // 背景颜色
  23814. bgColor: {
  23815. type: String,
  23816. default: uni.$u.props.swiper.bgColor
  23817. },
  23818. // 组件圆角,数值或带单位的字符串
  23819. radius: {
  23820. type: [String, Number],
  23821. default: uni.$u.props.swiper.radius
  23822. },
  23823. // 是否加载中
  23824. loading: {
  23825. type: Boolean,
  23826. default: uni.$u.props.swiper.loading
  23827. },
  23828. // 是否显示标题,要求数组对象中有title属性
  23829. showTitle: {
  23830. type: Boolean,
  23831. default: uni.$u.props.swiper.showTitle
  23832. }
  23833. }
  23834. };
  23835. exports.default = _default;
  23836. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23837. /***/ }),
  23838. /* 253 */,
  23839. /* 254 */,
  23840. /* 255 */,
  23841. /* 256 */,
  23842. /* 257 */,
  23843. /* 258 */,
  23844. /* 259 */,
  23845. /* 260 */
  23846. /*!***************************************************************************************************!*\
  23847. !*** D:/demo/tourism/uni_applet/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni.js ***!
  23848. \***************************************************************************************************/
  23849. /*! no static exports found */
  23850. /***/ (function(module, exports, __webpack_require__) {
  23851. "use strict";
  23852. /* WEBPACK VAR INJECTION */(function(uni) {
  23853. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  23854. Object.defineProperty(exports, "__esModule", {
  23855. value: true
  23856. });
  23857. exports.default = MeScroll;
  23858. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  23859. /* mescroll
  23860. * version 1.3.7
  23861. * 2021-04-12 wenju
  23862. * https://www.mescroll.com
  23863. */
  23864. function MeScroll(options, isScrollBody) {
  23865. var me = this;
  23866. me.version = '1.3.7'; // mescroll版本号
  23867. me.options = options || {}; // 配置
  23868. me.isScrollBody = isScrollBody || false; // 滚动区域是否为原生页面滚动; 默认为scroll-view
  23869. me.isDownScrolling = false; // 是否在执行下拉刷新的回调
  23870. me.isUpScrolling = false; // 是否在执行上拉加载的回调
  23871. var hasDownCallback = me.options.down && me.options.down.callback; // 是否配置了down的callback
  23872. // 初始化下拉刷新
  23873. me.initDownScroll();
  23874. // 初始化上拉加载,则初始化
  23875. me.initUpScroll();
  23876. // 自动加载
  23877. setTimeout(function () {
  23878. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  23879. // 自动触发下拉刷新 (只有配置了down的callback才自动触发下拉刷新)
  23880. if ((me.optDown.use || me.optDown.native) && me.optDown.auto && hasDownCallback) {
  23881. if (me.optDown.autoShowLoading) {
  23882. me.triggerDownScroll(); // 显示下拉进度,执行下拉回调
  23883. } else {
  23884. me.optDown.callback && me.optDown.callback(me); // 不显示下拉进度,直接执行下拉回调
  23885. }
  23886. }
  23887. // 自动触发上拉加载
  23888. if (!me.isUpAutoLoad) {
  23889. // 部分小程序(头条小程序)emit是异步, 会导致isUpAutoLoad判断有误, 先延时确保先执行down的callback,再执行up的callback
  23890. setTimeout(function () {
  23891. me.optUp.use && me.optUp.auto && !me.isUpAutoLoad && me.triggerUpScroll();
  23892. }, 100);
  23893. }
  23894. }, 30); // 需让me.optDown.inited和me.optUp.inited先执行
  23895. }
  23896. /* 配置参数:下拉刷新 */
  23897. MeScroll.prototype.extendDownScroll = function (optDown) {
  23898. // 下拉刷新的配置
  23899. MeScroll.extend(optDown, {
  23900. use: true,
  23901. // 是否启用下拉刷新; 默认true
  23902. auto: true,
  23903. // 是否在初始化完毕之后自动执行下拉刷新的回调; 默认true
  23904. native: false,
  23905. // 是否使用系统自带的下拉刷新; 默认false; 仅mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  23906. autoShowLoading: false,
  23907. // 如果设置auto=true(在初始化完毕之后自动执行下拉刷新的回调),那么是否显示下拉刷新的进度; 默认false
  23908. isLock: false,
  23909. // 是否锁定下拉刷新,默认false;
  23910. offset: 80,
  23911. // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
  23912. startTop: 100,
  23913. // scroll-view快速滚动到顶部时,此时的scroll-top可能大于0, 此值用于控制最大的误差
  23914. inOffsetRate: 1,
  23915. // 在列表顶部,下拉的距离小于offset时,改变下拉区域高度比例;值小于1且越接近0,高度变化越小,表现为越往下越难拉
  23916. outOffsetRate: 0.2,
  23917. // 在列表顶部,下拉的距离大于offset时,改变下拉区域高度比例;值小于1且越接近0,高度变化越小,表现为越往下越难拉
  23918. bottomOffset: 20,
  23919. // 当手指touchmove位置在距离body底部20px范围内的时候结束上拉刷新,避免Webview嵌套导致touchend事件不执行
  23920. minAngle: 45,
  23921. // 向下滑动最少偏移的角度,取值区间 [0,90];默认45度,即向下滑动的角度大于45度则触发下拉;而小于45度,将不触发下拉,避免与左右滑动的轮播等组件冲突;
  23922. textInOffset: '下拉刷新',
  23923. // 下拉的距离在offset范围内的提示文本
  23924. textOutOffset: '释放更新',
  23925. // 下拉的距离大于offset范围的提示文本
  23926. textLoading: '加载中 ...',
  23927. // 加载中的提示文本
  23928. textSuccess: '加载成功',
  23929. // 加载成功的文本
  23930. textErr: '加载失败',
  23931. // 加载失败的文本
  23932. beforeEndDelay: 0,
  23933. // 延时结束的时长 (显示加载成功/失败的时长, android小程序设置此项结束下拉会卡顿, 配置后请注意测试)
  23934. bgColor: "transparent",
  23935. // 背景颜色 (建议在pages.json中再设置一下backgroundColorTop)
  23936. textColor: "gray",
  23937. // 文本颜色 (当bgColor配置了颜色,而textColor未配置时,则textColor会默认为白色)
  23938. inited: null,
  23939. // 下拉刷新初始化完毕的回调
  23940. inOffset: null,
  23941. // 下拉的距离进入offset范围内那一刻的回调
  23942. outOffset: null,
  23943. // 下拉的距离大于offset那一刻的回调
  23944. onMoving: null,
  23945. // 下拉过程中的回调,滑动过程一直在执行; rate下拉区域当前高度与指定距离的比值(inOffset: rate<1; outOffset: rate>=1); downHight当前下拉区域的高度
  23946. beforeLoading: null,
  23947. // 准备触发下拉刷新的回调: 如果return true,将不触发showLoading和callback回调; 常用来完全自定义下拉刷新, 参考案例【淘宝 v6.8.0】
  23948. showLoading: null,
  23949. // 显示下拉刷新进度的回调
  23950. afterLoading: null,
  23951. // 显示下拉刷新进度的回调之后,马上要执行的代码 (如: 在wxs中使用)
  23952. beforeEndDownScroll: null,
  23953. // 准备结束下拉的回调. 返回结束下拉的延时执行时间,默认0ms; 常用于结束下拉之前再显示另外一小段动画,才去隐藏下拉刷新的场景, 参考案例【dotJump】
  23954. endDownScroll: null,
  23955. // 结束下拉刷新的回调
  23956. afterEndDownScroll: null,
  23957. // 结束下拉刷新的回调,马上要执行的代码 (如: 在wxs中使用)
  23958. callback: function callback(mescroll) {
  23959. // 下拉刷新的回调;默认重置上拉加载列表为第一页
  23960. mescroll.resetUpScroll();
  23961. }
  23962. });
  23963. };
  23964. /* 配置参数:上拉加载 */
  23965. MeScroll.prototype.extendUpScroll = function (optUp) {
  23966. // 上拉加载的配置
  23967. MeScroll.extend(optUp, {
  23968. use: true,
  23969. // 是否启用上拉加载; 默认true
  23970. auto: true,
  23971. // 是否在初始化完毕之后自动执行上拉加载的回调; 默认true
  23972. isLock: false,
  23973. // 是否锁定上拉加载,默认false;
  23974. isBoth: true,
  23975. // 上拉加载时,如果滑动到列表顶部是否可以同时触发下拉刷新;默认true,两者可同时触发;
  23976. callback: null,
  23977. // 上拉加载的回调;function(page,mescroll){ }
  23978. page: {
  23979. num: 0,
  23980. // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  23981. size: 10,
  23982. // 每页数据的数量
  23983. time: null // 加载第一页数据服务器返回的时间; 防止用户翻页时,后台新增了数据从而导致下一页数据重复;
  23984. },
  23985. noMoreSize: 5,
  23986. // 如果列表已无数据,可设置列表的总数量要大于等于5条才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
  23987. offset: 150,
  23988. // 距底部多远时,触发upCallback,仅mescroll-uni生效 ( mescroll-body配置的是pages.json的 onReachBottomDistance )
  23989. textLoading: '加载中 ...',
  23990. // 加载中的提示文本
  23991. textNoMore: '-- END --',
  23992. // 没有更多数据的提示文本
  23993. bgColor: "transparent",
  23994. // 背景颜色 (建议在pages.json中再设置一下backgroundColorBottom)
  23995. textColor: "gray",
  23996. // 文本颜色 (当bgColor配置了颜色,而textColor未配置时,则textColor会默认为白色)
  23997. inited: null,
  23998. // 初始化完毕的回调
  23999. showLoading: null,
  24000. // 显示加载中的回调
  24001. showNoMore: null,
  24002. // 显示无更多数据的回调
  24003. hideUpScroll: null,
  24004. // 隐藏上拉加载的回调
  24005. errDistance: 60,
  24006. // endErr的时候需往上滑动一段距离,使其往下滑动时再次触发onReachBottom,仅mescroll-body生效
  24007. toTop: {
  24008. // 回到顶部按钮,需配置src才显示
  24009. src: null,
  24010. // 图片路径,默认null (绝对路径或网络图)
  24011. offset: 1000,
  24012. // 列表滚动多少距离才显示回到顶部按钮,默认1000
  24013. duration: 300,
  24014. // 回到顶部的动画时长,默认300ms (当值为0或300则使用系统自带回到顶部,更流畅; 其他值则通过step模拟,部分机型可能不够流畅,所以非特殊情况不建议修改此项)
  24015. btnClick: null,
  24016. // 点击按钮的回调
  24017. onShow: null,
  24018. // 是否显示的回调
  24019. zIndex: 9990,
  24020. // fixed定位z-index值
  24021. left: null,
  24022. // 到左边的距离, 默认null. 此项有值时,right不生效. (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24023. right: 20,
  24024. // 到右边的距离, 默认20 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24025. bottom: 120,
  24026. // 到底部的距离, 默认120 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24027. safearea: false,
  24028. // bottom的偏移量是否加上底部安全区的距离, 默认false, 需要适配iPhoneX时使用 (具体的界面如果不配置此项,则取本vue的safearea值)
  24029. width: 72,
  24030. // 回到顶部图标的宽度, 默认72 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24031. radius: "50%" // 圆角, 默认"50%" (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24032. },
  24033. empty: {
  24034. use: true,
  24035. // 是否显示空布局
  24036. icon: null,
  24037. // 图标路径
  24038. tip: '~ 暂无相关数据 ~',
  24039. // 提示
  24040. btnText: '',
  24041. // 按钮
  24042. btnClick: null,
  24043. // 点击按钮的回调
  24044. onShow: null,
  24045. // 是否显示的回调
  24046. fixed: false,
  24047. // 是否使用fixed定位,默认false; 配置fixed为true,以下的top和zIndex才生效 (transform会使fixed失效,最终会降级为absolute)
  24048. top: "100rpx",
  24049. // fixed定位的top值 (完整的单位值,如 "10%"; "100rpx")
  24050. zIndex: 99 // fixed定位z-index值
  24051. },
  24052. onScroll: false // 是否监听滚动事件
  24053. });
  24054. };
  24055. /* 配置参数 */
  24056. MeScroll.extend = function (userOption, defaultOption) {
  24057. if (!userOption) return defaultOption;
  24058. for (var key in defaultOption) {
  24059. if (userOption[key] == null) {
  24060. var def = defaultOption[key];
  24061. if (def != null && (0, _typeof2.default)(def) === 'object') {
  24062. userOption[key] = MeScroll.extend({}, def); // 深度匹配
  24063. } else {
  24064. userOption[key] = def;
  24065. }
  24066. } else if ((0, _typeof2.default)(userOption[key]) === 'object') {
  24067. MeScroll.extend(userOption[key], defaultOption[key]); // 深度匹配
  24068. }
  24069. }
  24070. return userOption;
  24071. };
  24072. /* 简单判断是否配置了颜色 (非透明,非白色) */
  24073. MeScroll.prototype.hasColor = function (color) {
  24074. if (!color) return false;
  24075. var c = color.toLowerCase();
  24076. return c != "#fff" && c != "#ffffff" && c != "transparent" && c != "white";
  24077. };
  24078. /* -------初始化下拉刷新------- */
  24079. MeScroll.prototype.initDownScroll = function () {
  24080. var me = this;
  24081. // 配置参数
  24082. me.optDown = me.options.down || {};
  24083. if (!me.optDown.textColor && me.hasColor(me.optDown.bgColor)) me.optDown.textColor = "#fff"; // 当bgColor有值且textColor未设置,则textColor默认白色
  24084. me.extendDownScroll(me.optDown);
  24085. // 如果是mescroll-body且配置了native,则禁止自定义的下拉刷新
  24086. if (me.isScrollBody && me.optDown.native) {
  24087. me.optDown.use = false;
  24088. } else {
  24089. me.optDown.native = false; // 仅mescroll-body支持,mescroll-uni不支持
  24090. }
  24091. me.downHight = 0; // 下拉区域的高度
  24092. // 在页面中加入下拉布局
  24093. if (me.optDown.use && me.optDown.inited) {
  24094. // 初始化完毕的回调
  24095. setTimeout(function () {
  24096. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  24097. me.optDown.inited(me);
  24098. }, 0);
  24099. }
  24100. };
  24101. /* 列表touchstart事件 */
  24102. MeScroll.prototype.touchstartEvent = function (e) {
  24103. if (!this.optDown.use) return;
  24104. this.startPoint = this.getPoint(e); // 记录起点
  24105. this.startTop = this.getScrollTop(); // 记录此时的滚动条位置
  24106. this.startAngle = 0; // 初始角度
  24107. this.lastPoint = this.startPoint; // 重置上次move的点
  24108. this.maxTouchmoveY = this.getBodyHeight() - this.optDown.bottomOffset; // 手指触摸的最大范围(写在touchstart避免body获取高度为0的情况)
  24109. this.inTouchend = false; // 标记不是touchend
  24110. };
  24111. /* 列表touchmove事件 */
  24112. MeScroll.prototype.touchmoveEvent = function (e) {
  24113. if (!this.optDown.use) return;
  24114. var me = this;
  24115. var scrollTop = me.getScrollTop(); // 当前滚动条的距离
  24116. var curPoint = me.getPoint(e); // 当前点
  24117. var moveY = curPoint.y - me.startPoint.y; // 和起点比,移动的距离,大于0向下拉,小于0向上拉
  24118. // 向下拉 && 在顶部
  24119. // mescroll-body,直接判定在顶部即可
  24120. // scroll-view在滚动时不会触发touchmove,当触顶/底/左/右时,才会触发touchmove
  24121. // scroll-view滚动到顶部时,scrollTop不一定为0,也有可能大于0; 在iOS的APP中scrollTop可能为负数,不一定和startTop相等
  24122. if (moveY > 0 && (me.isScrollBody && scrollTop <= 0 || !me.isScrollBody && (scrollTop <= 0 || scrollTop <= me.optDown.startTop && scrollTop === me.startTop))) {
  24123. // 可下拉的条件
  24124. if (!me.inTouchend && !me.isDownScrolling && !me.optDown.isLock && (!me.isUpScrolling || me.isUpScrolling && me.optUp.isBoth)) {
  24125. // 下拉的初始角度是否在配置的范围内
  24126. if (!me.startAngle) me.startAngle = me.getAngle(me.lastPoint, curPoint); // 两点之间的角度,区间 [0,90]
  24127. if (me.startAngle < me.optDown.minAngle) return; // 如果小于配置的角度,则不往下执行下拉刷新
  24128. // 如果手指的位置超过配置的距离,则提前结束下拉,避免Webview嵌套导致touchend无法触发
  24129. if (me.maxTouchmoveY > 0 && curPoint.y >= me.maxTouchmoveY) {
  24130. me.inTouchend = true; // 标记执行touchend
  24131. me.touchendEvent(); // 提前触发touchend
  24132. return;
  24133. }
  24134. me.preventDefault(e); // 阻止默认事件
  24135. var diff = curPoint.y - me.lastPoint.y; // 和上次比,移动的距离 (大于0向下,小于0向上)
  24136. // 下拉距离 < 指定距离
  24137. if (me.downHight < me.optDown.offset) {
  24138. if (me.movetype !== 1) {
  24139. me.movetype = 1; // 加入标记,保证只执行一次
  24140. me.isDownEndSuccess = null; // 重置是否加载成功的状态 (wxs执行的是wxs.wxs)
  24141. me.optDown.inOffset && me.optDown.inOffset(me); // 进入指定距离范围内那一刻的回调,只执行一次
  24142. me.isMoveDown = true; // 标记下拉区域高度改变,在touchend重置回来
  24143. }
  24144. me.downHight += diff * me.optDown.inOffsetRate; // 越往下,高度变化越小
  24145. // 指定距离 <= 下拉距离
  24146. } else {
  24147. if (me.movetype !== 2) {
  24148. me.movetype = 2; // 加入标记,保证只执行一次
  24149. me.optDown.outOffset && me.optDown.outOffset(me); // 下拉超过指定距离那一刻的回调,只执行一次
  24150. me.isMoveDown = true; // 标记下拉区域高度改变,在touchend重置回来
  24151. }
  24152. if (diff > 0) {
  24153. // 向下拉
  24154. me.downHight += diff * me.optDown.outOffsetRate; // 越往下,高度变化越小
  24155. } else {
  24156. // 向上收
  24157. me.downHight += diff; // 向上收回高度,则向上滑多少收多少高度
  24158. }
  24159. }
  24160. me.downHight = Math.round(me.downHight); // 取整
  24161. var rate = me.downHight / me.optDown.offset; // 下拉区域当前高度与指定距离的比值
  24162. me.optDown.onMoving && me.optDown.onMoving(me, rate, me.downHight); // 下拉过程中的回调,一直在执行
  24163. }
  24164. }
  24165. me.lastPoint = curPoint; // 记录本次移动的点
  24166. };
  24167. /* 列表touchend事件 */
  24168. MeScroll.prototype.touchendEvent = function (e) {
  24169. if (!this.optDown.use) return;
  24170. // 如果下拉区域高度已改变,则需重置回来
  24171. if (this.isMoveDown) {
  24172. if (this.downHight >= this.optDown.offset) {
  24173. // 符合触发刷新的条件
  24174. this.triggerDownScroll();
  24175. } else {
  24176. // 不符合的话 则重置
  24177. this.downHight = 0;
  24178. this.endDownScrollCall(this);
  24179. }
  24180. this.movetype = 0;
  24181. this.isMoveDown = false;
  24182. } else if (!this.isScrollBody && this.getScrollTop() === this.startTop) {
  24183. // scroll-view到顶/左/右/底的滑动事件
  24184. var isScrollUp = this.getPoint(e).y - this.startPoint.y < 0; // 和起点比,移动的距离,大于0向下拉,小于0向上拉
  24185. // 上滑
  24186. if (isScrollUp) {
  24187. // 需检查滑动的角度
  24188. var angle = this.getAngle(this.getPoint(e), this.startPoint); // 两点之间的角度,区间 [0,90]
  24189. if (angle > 80) {
  24190. // 检查并触发上拉
  24191. this.triggerUpScroll(true);
  24192. }
  24193. }
  24194. }
  24195. };
  24196. /* 根据点击滑动事件获取第一个手指的坐标 */
  24197. MeScroll.prototype.getPoint = function (e) {
  24198. if (!e) {
  24199. return {
  24200. x: 0,
  24201. y: 0
  24202. };
  24203. }
  24204. if (e.touches && e.touches[0]) {
  24205. return {
  24206. x: e.touches[0].pageX,
  24207. y: e.touches[0].pageY
  24208. };
  24209. } else if (e.changedTouches && e.changedTouches[0]) {
  24210. return {
  24211. x: e.changedTouches[0].pageX,
  24212. y: e.changedTouches[0].pageY
  24213. };
  24214. } else {
  24215. return {
  24216. x: e.clientX,
  24217. y: e.clientY
  24218. };
  24219. }
  24220. };
  24221. /* 计算两点之间的角度: 区间 [0,90]*/
  24222. MeScroll.prototype.getAngle = function (p1, p2) {
  24223. var x = Math.abs(p1.x - p2.x);
  24224. var y = Math.abs(p1.y - p2.y);
  24225. var z = Math.sqrt(x * x + y * y);
  24226. var angle = 0;
  24227. if (z !== 0) {
  24228. angle = Math.asin(y / z) / Math.PI * 180;
  24229. }
  24230. return angle;
  24231. };
  24232. /* 触发下拉刷新 */
  24233. MeScroll.prototype.triggerDownScroll = function () {
  24234. if (this.optDown.beforeLoading && this.optDown.beforeLoading(this)) {
  24235. //return true则处于完全自定义状态
  24236. } else {
  24237. this.showDownScroll(); // 下拉刷新中...
  24238. !this.optDown.native && this.optDown.callback && this.optDown.callback(this); // 执行回调,联网加载数据
  24239. }
  24240. };
  24241. /* 显示下拉进度布局 */
  24242. MeScroll.prototype.showDownScroll = function () {
  24243. this.isDownScrolling = true; // 标记下拉中
  24244. if (this.optDown.native) {
  24245. uni.startPullDownRefresh(); // 系统自带的下拉刷新
  24246. this.showDownLoadingCall(0); // 仍触发showLoading,因为上拉加载用到
  24247. } else {
  24248. this.downHight = this.optDown.offset; // 更新下拉区域高度
  24249. this.showDownLoadingCall(this.downHight); // 下拉刷新中...
  24250. }
  24251. };
  24252. MeScroll.prototype.showDownLoadingCall = function (downHight) {
  24253. this.optDown.showLoading && this.optDown.showLoading(this, downHight); // 下拉刷新中...
  24254. this.optDown.afterLoading && this.optDown.afterLoading(this, downHight); // 下拉刷新中...触发之后马上要执行的代码
  24255. };
  24256. /* 显示系统自带的下拉刷新时需要处理的业务 */
  24257. MeScroll.prototype.onPullDownRefresh = function () {
  24258. this.isDownScrolling = true; // 标记下拉中
  24259. this.showDownLoadingCall(0); // 仍触发showLoading,因为上拉加载用到
  24260. this.optDown.callback && this.optDown.callback(this); // 执行回调,联网加载数据
  24261. };
  24262. /* 结束下拉刷新 */
  24263. MeScroll.prototype.endDownScroll = function () {
  24264. if (this.optDown.native) {
  24265. // 结束原生下拉刷新
  24266. this.isDownScrolling = false;
  24267. this.endDownScrollCall(this);
  24268. uni.stopPullDownRefresh();
  24269. return;
  24270. }
  24271. var me = this;
  24272. // 结束下拉刷新的方法
  24273. var endScroll = function endScroll() {
  24274. me.downHight = 0;
  24275. me.isDownScrolling = false;
  24276. me.endDownScrollCall(me);
  24277. if (!me.isScrollBody) {
  24278. me.setScrollHeight(0); // scroll-view重置滚动区域,使数据不满屏时仍可检查触发翻页
  24279. me.scrollTo(0, 0); // scroll-view需重置滚动条到顶部,避免startTop大于0时,对下拉刷新的影响
  24280. }
  24281. };
  24282. // 结束下拉刷新时的回调
  24283. var delay = 0;
  24284. if (me.optDown.beforeEndDownScroll) {
  24285. delay = me.optDown.beforeEndDownScroll(me); // 结束下拉刷新的延时,单位ms
  24286. if (me.isDownEndSuccess == null) delay = 0; // 没有执行加载中,则不延时
  24287. }
  24288. if (typeof delay === 'number' && delay > 0) {
  24289. setTimeout(endScroll, delay);
  24290. } else {
  24291. endScroll();
  24292. }
  24293. };
  24294. MeScroll.prototype.endDownScrollCall = function () {
  24295. this.optDown.endDownScroll && this.optDown.endDownScroll(this);
  24296. this.optDown.afterEndDownScroll && this.optDown.afterEndDownScroll(this);
  24297. };
  24298. /* 锁定下拉刷新:isLock=ture,null锁定;isLock=false解锁 */
  24299. MeScroll.prototype.lockDownScroll = function (isLock) {
  24300. if (isLock == null) isLock = true;
  24301. this.optDown.isLock = isLock;
  24302. };
  24303. /* 锁定上拉加载:isLock=ture,null锁定;isLock=false解锁 */
  24304. MeScroll.prototype.lockUpScroll = function (isLock) {
  24305. if (isLock == null) isLock = true;
  24306. this.optUp.isLock = isLock;
  24307. };
  24308. /* -------初始化上拉加载------- */
  24309. MeScroll.prototype.initUpScroll = function () {
  24310. var me = this;
  24311. // 配置参数
  24312. me.optUp = me.options.up || {
  24313. use: false
  24314. };
  24315. if (!me.optUp.textColor && me.hasColor(me.optUp.bgColor)) me.optUp.textColor = "#fff"; // 当bgColor有值且textColor未设置,则textColor默认白色
  24316. me.extendUpScroll(me.optUp);
  24317. if (me.optUp.use === false) return; // 配置不使用上拉加载时,则不初始化上拉布局
  24318. me.optUp.hasNext = true; // 如果使用上拉,则默认有下一页
  24319. me.startNum = me.optUp.page.num + 1; // 记录page开始的页码
  24320. // 初始化完毕的回调
  24321. if (me.optUp.inited) {
  24322. setTimeout(function () {
  24323. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  24324. me.optUp.inited(me);
  24325. }, 0);
  24326. }
  24327. };
  24328. /*滚动到底部的事件 (仅mescroll-body生效)*/
  24329. MeScroll.prototype.onReachBottom = function () {
  24330. if (this.isScrollBody && !this.isUpScrolling) {
  24331. // 只能支持下拉刷新的时候同时可以触发上拉加载,否则滚动到底部就需要上滑一点才能触发onReachBottom
  24332. if (!this.optUp.isLock && this.optUp.hasNext) {
  24333. this.triggerUpScroll();
  24334. }
  24335. }
  24336. };
  24337. /*列表滚动事件 (仅mescroll-body生效)*/
  24338. MeScroll.prototype.onPageScroll = function (e) {
  24339. if (!this.isScrollBody) return;
  24340. // 更新滚动条的位置 (主要用于判断下拉刷新时,滚动条是否在顶部)
  24341. this.setScrollTop(e.scrollTop);
  24342. // 顶部按钮的显示隐藏
  24343. if (e.scrollTop >= this.optUp.toTop.offset) {
  24344. this.showTopBtn();
  24345. } else {
  24346. this.hideTopBtn();
  24347. }
  24348. };
  24349. /*列表滚动事件*/
  24350. MeScroll.prototype.scroll = function (e, onScroll) {
  24351. // 更新滚动条的位置
  24352. this.setScrollTop(e.scrollTop);
  24353. // 更新滚动内容高度
  24354. this.setScrollHeight(e.scrollHeight);
  24355. // 向上滑还是向下滑动
  24356. if (this.preScrollY == null) this.preScrollY = 0;
  24357. this.isScrollUp = e.scrollTop - this.preScrollY > 0;
  24358. this.preScrollY = e.scrollTop;
  24359. // 上滑 && 检查并触发上拉
  24360. this.isScrollUp && this.triggerUpScroll(true);
  24361. // 顶部按钮的显示隐藏
  24362. if (e.scrollTop >= this.optUp.toTop.offset) {
  24363. this.showTopBtn();
  24364. } else {
  24365. this.hideTopBtn();
  24366. }
  24367. // 滑动监听
  24368. this.optUp.onScroll && onScroll && onScroll();
  24369. };
  24370. /* 触发上拉加载 */
  24371. MeScroll.prototype.triggerUpScroll = function (isCheck) {
  24372. if (!this.isUpScrolling && this.optUp.use && this.optUp.callback) {
  24373. // 是否校验在底部; 默认不校验
  24374. if (isCheck === true) {
  24375. var canUp = false;
  24376. // 还有下一页 && 没有锁定 && 不在下拉中
  24377. if (this.optUp.hasNext && !this.optUp.isLock && !this.isDownScrolling) {
  24378. if (this.getScrollBottom() <= this.optUp.offset) {
  24379. // 到底部
  24380. canUp = true; // 标记可上拉
  24381. }
  24382. }
  24383. if (canUp === false) return;
  24384. }
  24385. this.showUpScroll(); // 上拉加载中...
  24386. this.optUp.page.num++; // 预先加一页,如果失败则减回
  24387. this.isUpAutoLoad = true; // 标记上拉已经自动执行过,避免初始化时多次触发上拉回调
  24388. this.num = this.optUp.page.num; // 把最新的页数赋值在mescroll上,避免对page的影响
  24389. this.size = this.optUp.page.size; // 把最新的页码赋值在mescroll上,避免对page的影响
  24390. this.time = this.optUp.page.time; // 把最新的页码赋值在mescroll上,避免对page的影响
  24391. this.optUp.callback(this); // 执行回调,联网加载数据
  24392. }
  24393. };
  24394. /* 显示上拉加载中 */
  24395. MeScroll.prototype.showUpScroll = function () {
  24396. this.isUpScrolling = true; // 标记上拉加载中
  24397. this.optUp.showLoading && this.optUp.showLoading(this); // 回调
  24398. };
  24399. /* 显示上拉无更多数据 */
  24400. MeScroll.prototype.showNoMore = function () {
  24401. this.optUp.hasNext = false; // 标记无更多数据
  24402. this.optUp.showNoMore && this.optUp.showNoMore(this); // 回调
  24403. };
  24404. /* 隐藏上拉区域**/
  24405. MeScroll.prototype.hideUpScroll = function () {
  24406. this.optUp.hideUpScroll && this.optUp.hideUpScroll(this); // 回调
  24407. };
  24408. /* 结束上拉加载 */
  24409. MeScroll.prototype.endUpScroll = function (isShowNoMore) {
  24410. if (isShowNoMore != null) {
  24411. // isShowNoMore=null,不处理下拉状态,下拉刷新的时候调用
  24412. if (isShowNoMore) {
  24413. this.showNoMore(); // isShowNoMore=true,显示无更多数据
  24414. } else {
  24415. this.hideUpScroll(); // isShowNoMore=false,隐藏上拉加载
  24416. }
  24417. }
  24418. this.isUpScrolling = false; // 标记结束上拉加载
  24419. };
  24420. /* 重置上拉加载列表为第一页
  24421. *isShowLoading 是否显示进度布局;
  24422. * 1.默认null,不传参,则显示上拉加载的进度布局
  24423. * 2.传参true, 则显示下拉刷新的进度布局
  24424. * 3.传参false,则不显示上拉和下拉的进度 (常用于静默更新列表数据)
  24425. */
  24426. MeScroll.prototype.resetUpScroll = function (isShowLoading) {
  24427. if (this.optUp && this.optUp.use) {
  24428. var page = this.optUp.page;
  24429. this.prePageNum = page.num; // 缓存重置前的页码,加载失败可退回
  24430. this.prePageTime = page.time; // 缓存重置前的时间,加载失败可退回
  24431. page.num = this.startNum; // 重置为第一页
  24432. page.time = null; // 重置时间为空
  24433. if (!this.isDownScrolling && isShowLoading !== false) {
  24434. // 如果不是下拉刷新触发的resetUpScroll并且不配置列表静默更新,则显示进度;
  24435. if (isShowLoading == null) {
  24436. this.removeEmpty(); // 移除空布局
  24437. this.showUpScroll(); // 不传参,默认显示上拉加载的进度布局
  24438. } else {
  24439. this.showDownScroll(); // 传true,显示下拉刷新的进度布局,不清空列表
  24440. }
  24441. }
  24442. this.isUpAutoLoad = true; // 标记上拉已经自动执行过,避免初始化时多次触发上拉回调
  24443. this.num = page.num; // 把最新的页数赋值在mescroll上,避免对page的影响
  24444. this.size = page.size; // 把最新的页码赋值在mescroll上,避免对page的影响
  24445. this.time = page.time; // 把最新的页码赋值在mescroll上,避免对page的影响
  24446. this.optUp.callback && this.optUp.callback(this); // 执行上拉回调
  24447. }
  24448. };
  24449. /* 设置page.num的值 */
  24450. MeScroll.prototype.setPageNum = function (num) {
  24451. this.optUp.page.num = num - 1;
  24452. };
  24453. /* 设置page.size的值 */
  24454. MeScroll.prototype.setPageSize = function (size) {
  24455. this.optUp.page.size = size;
  24456. };
  24457. /* 联网回调成功,结束下拉刷新和上拉加载
  24458. * dataSize: 当前页的数据量(必传)
  24459. * totalPage: 总页数(必传)
  24460. * systime: 服务器时间 (可空)
  24461. */
  24462. MeScroll.prototype.endByPage = function (dataSize, totalPage, systime) {
  24463. var hasNext;
  24464. if (this.optUp.use && totalPage != null) hasNext = this.optUp.page.num < totalPage; // 是否还有下一页
  24465. this.endSuccess(dataSize, hasNext, systime);
  24466. };
  24467. /* 联网回调成功,结束下拉刷新和上拉加载
  24468. * dataSize: 当前页的数据量(必传)
  24469. * totalSize: 列表所有数据总数量(必传)
  24470. * systime: 服务器时间 (可空)
  24471. */
  24472. MeScroll.prototype.endBySize = function (dataSize, totalSize, systime) {
  24473. var hasNext;
  24474. if (this.optUp.use && totalSize != null) {
  24475. var loadSize = (this.optUp.page.num - 1) * this.optUp.page.size + dataSize; // 已加载的数据总数
  24476. hasNext = loadSize < totalSize; // 是否还有下一页
  24477. }
  24478. this.endSuccess(dataSize, hasNext, systime);
  24479. };
  24480. /* 联网回调成功,结束下拉刷新和上拉加载
  24481. * dataSize: 当前页的数据个数(不是所有页的数据总和),用于上拉加载判断是否还有下一页.如果不传,则会判断还有下一页
  24482. * hasNext: 是否还有下一页,布尔类型;用来解决这个小问题:比如列表共有20条数据,每页加载10条,共2页.如果只根据dataSize判断,则需翻到第三页才会知道无更多数据,如果传了hasNext,则翻到第二页即可显示无更多数据.
  24483. * systime: 服务器时间(可空);用来解决这个小问题:当准备翻下一页时,数据库新增了几条记录,此时翻下一页,前面的几条数据会和上一页的重复;这里传入了systime,那么upCallback的page.time就会有值,把page.time传给服务器,让后台过滤新加入的那几条记录
  24484. */
  24485. MeScroll.prototype.endSuccess = function (dataSize, hasNext, systime) {
  24486. var me = this;
  24487. // 结束下拉刷新
  24488. if (me.isDownScrolling) {
  24489. me.isDownEndSuccess = true;
  24490. me.endDownScroll();
  24491. }
  24492. // 结束上拉加载
  24493. if (me.optUp.use) {
  24494. var isShowNoMore; // 是否已无更多数据
  24495. if (dataSize != null) {
  24496. var pageNum = me.optUp.page.num; // 当前页码
  24497. var pageSize = me.optUp.page.size; // 每页长度
  24498. // 如果是第一页
  24499. if (pageNum === 1) {
  24500. if (systime) me.optUp.page.time = systime; // 设置加载列表数据第一页的时间
  24501. }
  24502. if (dataSize < pageSize || hasNext === false) {
  24503. // 返回的数据不满一页时,则说明已无更多数据
  24504. me.optUp.hasNext = false;
  24505. if (dataSize === 0 && pageNum === 1) {
  24506. // 如果第一页无任何数据且配置了空布局
  24507. isShowNoMore = false;
  24508. me.showEmpty();
  24509. } else {
  24510. // 总列表数少于配置的数量,则不显示无更多数据
  24511. var allDataSize = (pageNum - 1) * pageSize + dataSize;
  24512. if (allDataSize < me.optUp.noMoreSize) {
  24513. isShowNoMore = false;
  24514. } else {
  24515. isShowNoMore = true;
  24516. }
  24517. me.removeEmpty(); // 移除空布局
  24518. }
  24519. } else {
  24520. // 还有下一页
  24521. isShowNoMore = false;
  24522. me.optUp.hasNext = true;
  24523. me.removeEmpty(); // 移除空布局
  24524. }
  24525. }
  24526. // 隐藏上拉
  24527. me.endUpScroll(isShowNoMore);
  24528. }
  24529. };
  24530. /* 回调失败,结束下拉刷新和上拉加载 */
  24531. MeScroll.prototype.endErr = function (errDistance) {
  24532. // 结束下拉,回调失败重置回原来的页码和时间
  24533. if (this.isDownScrolling) {
  24534. this.isDownEndSuccess = false;
  24535. var page = this.optUp.page;
  24536. if (page && this.prePageNum) {
  24537. page.num = this.prePageNum;
  24538. page.time = this.prePageTime;
  24539. }
  24540. this.endDownScroll();
  24541. }
  24542. // 结束上拉,回调失败重置回原来的页码
  24543. if (this.isUpScrolling) {
  24544. this.optUp.page.num--;
  24545. this.endUpScroll(false);
  24546. // 如果是mescroll-body,则需往回滚一定距离
  24547. if (this.isScrollBody && errDistance !== 0) {
  24548. // 不处理0
  24549. if (!errDistance) errDistance = this.optUp.errDistance; // 不传,则取默认
  24550. this.scrollTo(this.getScrollTop() - errDistance, 0); // 往上回滚的距离
  24551. }
  24552. }
  24553. };
  24554. /* 显示空布局 */
  24555. MeScroll.prototype.showEmpty = function () {
  24556. this.optUp.empty.use && this.optUp.empty.onShow && this.optUp.empty.onShow(true);
  24557. };
  24558. /* 移除空布局 */
  24559. MeScroll.prototype.removeEmpty = function () {
  24560. this.optUp.empty.use && this.optUp.empty.onShow && this.optUp.empty.onShow(false);
  24561. };
  24562. /* 显示回到顶部的按钮 */
  24563. MeScroll.prototype.showTopBtn = function () {
  24564. if (!this.topBtnShow) {
  24565. this.topBtnShow = true;
  24566. this.optUp.toTop.onShow && this.optUp.toTop.onShow(true);
  24567. }
  24568. };
  24569. /* 隐藏回到顶部的按钮 */
  24570. MeScroll.prototype.hideTopBtn = function () {
  24571. if (this.topBtnShow) {
  24572. this.topBtnShow = false;
  24573. this.optUp.toTop.onShow && this.optUp.toTop.onShow(false);
  24574. }
  24575. };
  24576. /* 获取滚动条的位置 */
  24577. MeScroll.prototype.getScrollTop = function () {
  24578. return this.scrollTop || 0;
  24579. };
  24580. /* 记录滚动条的位置 */
  24581. MeScroll.prototype.setScrollTop = function (y) {
  24582. this.scrollTop = y;
  24583. };
  24584. /* 滚动到指定位置 */
  24585. MeScroll.prototype.scrollTo = function (y, t) {
  24586. this.myScrollTo && this.myScrollTo(y, t); // scrollview需自定义回到顶部方法
  24587. };
  24588. /* 自定义scrollTo */
  24589. MeScroll.prototype.resetScrollTo = function (myScrollTo) {
  24590. this.myScrollTo = myScrollTo;
  24591. };
  24592. /* 滚动条到底部的距离 */
  24593. MeScroll.prototype.getScrollBottom = function () {
  24594. return this.getScrollHeight() - this.getClientHeight() - this.getScrollTop();
  24595. };
  24596. /* 计步器
  24597. star: 开始值
  24598. end: 结束值
  24599. callback(step,timer): 回调step值,计步器timer,可自行通过window.clearInterval(timer)结束计步器;
  24600. t: 计步时长,传0则直接回调end值;不传则默认300ms
  24601. rate: 周期;不传则默认30ms计步一次
  24602. * */
  24603. MeScroll.prototype.getStep = function (star, end, callback, t, rate) {
  24604. var diff = end - star; // 差值
  24605. if (t === 0 || diff === 0) {
  24606. callback && callback(end);
  24607. return;
  24608. }
  24609. t = t || 300; // 时长 300ms
  24610. rate = rate || 30; // 周期 30ms
  24611. var count = t / rate; // 次数
  24612. var step = diff / count; // 步长
  24613. var i = 0; // 计数
  24614. var timer = setInterval(function () {
  24615. if (i < count - 1) {
  24616. star += step;
  24617. callback && callback(star, timer);
  24618. i++;
  24619. } else {
  24620. callback && callback(end, timer); // 最后一次直接设置end,避免计算误差
  24621. clearInterval(timer);
  24622. }
  24623. }, rate);
  24624. };
  24625. /* 滚动容器的高度 */
  24626. MeScroll.prototype.getClientHeight = function (isReal) {
  24627. var h = this.clientHeight || 0;
  24628. if (h === 0 && isReal !== true) {
  24629. // 未获取到容器的高度,可临时取body的高度 (可能会有误差)
  24630. h = this.getBodyHeight();
  24631. }
  24632. return h;
  24633. };
  24634. MeScroll.prototype.setClientHeight = function (h) {
  24635. this.clientHeight = h;
  24636. };
  24637. /* 滚动内容的高度 */
  24638. MeScroll.prototype.getScrollHeight = function () {
  24639. return this.scrollHeight || 0;
  24640. };
  24641. MeScroll.prototype.setScrollHeight = function (h) {
  24642. this.scrollHeight = h;
  24643. };
  24644. /* body的高度 */
  24645. MeScroll.prototype.getBodyHeight = function () {
  24646. return this.bodyHeight || 0;
  24647. };
  24648. MeScroll.prototype.setBodyHeight = function (h) {
  24649. this.bodyHeight = h;
  24650. };
  24651. /* 阻止浏览器默认滚动事件 */
  24652. MeScroll.prototype.preventDefault = function (e) {
  24653. // 小程序不支持e.preventDefault, 已在wxs中禁止
  24654. // app的bounce只能通过配置pages.json的style.app-plus.bounce为"none"来禁止, 或使用renderjs禁止
  24655. // cancelable:是否可以被禁用; defaultPrevented:是否已经被禁用
  24656. if (e && e.cancelable && !e.defaultPrevented) e.preventDefault();
  24657. };
  24658. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24659. /***/ }),
  24660. /* 261 */
  24661. /*!**********************************************************************************************************!*\
  24662. !*** D:/demo/tourism/uni_applet/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni-option.js ***!
  24663. \**********************************************************************************************************/
  24664. /*! no static exports found */
  24665. /***/ (function(module, exports, __webpack_require__) {
  24666. "use strict";
  24667. Object.defineProperty(exports, "__esModule", {
  24668. value: true
  24669. });
  24670. exports.default = void 0;
  24671. // 全局配置
  24672. // mescroll-body 和 mescroll-uni 通用
  24673. var GlobalOption = {
  24674. down: {
  24675. // 其他down的配置参数也可以写,这里只展示了常用的配置:
  24676. offset: 80,
  24677. // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
  24678. native: false // 是否使用系统自带的下拉刷新; 默认false; 仅在mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  24679. },
  24680. up: {
  24681. // 其他up的配置参数也可以写,这里只展示了常用的配置:
  24682. offset: 150,
  24683. // 距底部多远时,触发upCallback,仅mescroll-uni生效 ( mescroll-body配置的是pages.json的 onReachBottomDistance )
  24684. toTop: {
  24685. // 回到顶部按钮,需配置src才显示
  24686. src: "https://www.mescroll.com/img/mescroll-totop.png",
  24687. // 图片路径 (建议放入static目录, 如 /static/img/mescroll-totop.png )
  24688. offset: 1000,
  24689. // 列表滚动多少距离才显示回到顶部按钮,默认1000px
  24690. right: 20,
  24691. // 到右边的距离, 默认20 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  24692. bottom: 120,
  24693. // 到底部的距离, 默认120 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  24694. width: 72 // 回到顶部图标的宽度, 默认72 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  24695. },
  24696. empty: {
  24697. use: true,
  24698. // 是否显示空布局
  24699. icon: "https://www.mescroll.com/img/mescroll-empty.png" // 图标路径 (建议放入static目录, 如 /static/img/mescroll-empty.png )
  24700. }
  24701. },
  24702. // 国际化配置
  24703. i18n: {
  24704. // 中文
  24705. zh: {
  24706. down: {
  24707. textInOffset: '下拉刷新',
  24708. // 下拉的距离在offset范围内的提示文本
  24709. textOutOffset: '释放更新',
  24710. // 下拉的距离大于offset范围的提示文本
  24711. textLoading: '加载中 ...',
  24712. // 加载中的提示文本
  24713. textSuccess: '加载成功',
  24714. // 加载成功的文本
  24715. textErr: '加载失败' // 加载失败的文本
  24716. },
  24717. up: {
  24718. textLoading: '加载中 ...',
  24719. // 加载中的提示文本
  24720. textNoMore: '-- END --',
  24721. // 没有更多数据的提示文本
  24722. empty: {
  24723. tip: '~ 空空如也 ~' // 空提示
  24724. }
  24725. }
  24726. },
  24727. // 英文
  24728. en: {
  24729. down: {
  24730. textInOffset: 'drop down refresh',
  24731. textOutOffset: 'release updates',
  24732. textLoading: 'loading ...',
  24733. textSuccess: 'loaded successfully',
  24734. textErr: 'loading failed'
  24735. },
  24736. up: {
  24737. textLoading: 'loading ...',
  24738. textNoMore: '-- END --',
  24739. empty: {
  24740. tip: '~ absolutely empty ~'
  24741. }
  24742. }
  24743. }
  24744. }
  24745. };
  24746. var _default = GlobalOption;
  24747. exports.default = _default;
  24748. /***/ }),
  24749. /* 262 */
  24750. /*!****************************************************************************************************!*\
  24751. !*** D:/demo/tourism/uni_applet/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-i18n.js ***!
  24752. \****************************************************************************************************/
  24753. /*! no static exports found */
  24754. /***/ (function(module, exports, __webpack_require__) {
  24755. "use strict";
  24756. /* WEBPACK VAR INJECTION */(function(uni) {
  24757. Object.defineProperty(exports, "__esModule", {
  24758. value: true
  24759. });
  24760. exports.default = void 0;
  24761. // 国际化工具类
  24762. var mescrollI18n = {
  24763. // 默认语言
  24764. def: "zh",
  24765. // 获取当前语言类型
  24766. getType: function getType() {
  24767. return uni.getStorageSync("mescroll-i18n") || this.def;
  24768. },
  24769. // 设置当前语言类型
  24770. setType: function setType(type) {
  24771. uni.setStorageSync("mescroll-i18n", type);
  24772. }
  24773. };
  24774. var _default = mescrollI18n;
  24775. exports.default = _default;
  24776. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24777. /***/ }),
  24778. /* 263 */
  24779. /*!*************************************************************************************************!*\
  24780. !*** D:/demo/tourism/uni_applet/uni_modules/mescroll-uni/components/mescroll-uni/wxs/mixins.js ***!
  24781. \*************************************************************************************************/
  24782. /*! no static exports found */
  24783. /***/ (function(module, exports, __webpack_require__) {
  24784. "use strict";
  24785. Object.defineProperty(exports, "__esModule", {
  24786. value: true
  24787. });
  24788. exports.default = void 0;
  24789. // 定义在wxs (含renderjs) 逻辑层的数据和方法, 与视图层相互通信
  24790. var WxsMixin = {
  24791. data: function data() {
  24792. return {
  24793. // 传入wxs视图层的数据 (响应式)
  24794. wxsProp: {
  24795. optDown: {},
  24796. // 下拉刷新的配置
  24797. scrollTop: 0,
  24798. // 滚动条的距离
  24799. bodyHeight: 0,
  24800. // body的高度
  24801. isDownScrolling: false,
  24802. // 是否正在下拉刷新中
  24803. isUpScrolling: false,
  24804. // 是否正在上拉加载中
  24805. isScrollBody: true,
  24806. // 是否为mescroll-body滚动
  24807. isUpBoth: true,
  24808. // 上拉加载时,是否同时可以下拉刷新
  24809. t: 0 // 数据更新的标记 (只有数据更新了,才会触发wxs的Observer)
  24810. },
  24811. // 标记调用wxs视图层的方法
  24812. callProp: {
  24813. callType: '',
  24814. // 方法名
  24815. t: 0 // 数据更新的标记 (只有数据更新了,才会触发wxs的Observer)
  24816. },
  24817. // 不用wxs的平台使用此处的wxsBiz对象,抹平wxs的写法 (微信小程序和APP使用的wxsBiz对象是./wxs/wxs.wxs)
  24818. // 不用renderjs的平台使用此处的renderBiz对象,抹平renderjs的写法 (app 和 h5 使用的renderBiz对象是./wxs/renderjs.js)
  24819. renderBiz: {
  24820. propObserver: function propObserver() {} // 抹平renderjs的写法
  24821. }
  24822. };
  24823. },
  24824. methods: {
  24825. // wxs视图层调用逻辑层的回调
  24826. wxsCall: function wxsCall(msg) {
  24827. if (msg.type === 'setWxsProp') {
  24828. // 更新wxsProp数据 (值改变才触发更新)
  24829. this.wxsProp = {
  24830. optDown: this.mescroll.optDown,
  24831. scrollTop: this.mescroll.getScrollTop(),
  24832. bodyHeight: this.mescroll.getBodyHeight(),
  24833. isDownScrolling: this.mescroll.isDownScrolling,
  24834. isUpScrolling: this.mescroll.isUpScrolling,
  24835. isUpBoth: this.mescroll.optUp.isBoth,
  24836. isScrollBody: this.mescroll.isScrollBody,
  24837. t: Date.now()
  24838. };
  24839. } else if (msg.type === 'setLoadType') {
  24840. // 设置inOffset,outOffset的状态
  24841. this.downLoadType = msg.downLoadType;
  24842. // 状态挂载到mescroll对象, 以便在其他组件中使用, 比如<me-video>中
  24843. this.$set(this.mescroll, 'downLoadType', this.downLoadType);
  24844. // 重置是否加载成功的状态
  24845. this.$set(this.mescroll, 'isDownEndSuccess', null);
  24846. } else if (msg.type === 'triggerDownScroll') {
  24847. // 主动触发下拉刷新
  24848. this.mescroll.triggerDownScroll();
  24849. } else if (msg.type === 'endDownScroll') {
  24850. // 结束下拉刷新
  24851. this.mescroll.endDownScroll();
  24852. } else if (msg.type === 'triggerUpScroll') {
  24853. // 主动触发上拉加载
  24854. this.mescroll.triggerUpScroll(true);
  24855. }
  24856. }
  24857. },
  24858. mounted: function mounted() {
  24859. var _this = this;
  24860. // 配置主动触发wxs显示加载进度的回调
  24861. this.mescroll.optDown.afterLoading = function () {
  24862. _this.callProp = {
  24863. callType: "showLoading",
  24864. t: Date.now()
  24865. }; // 触发wxs的方法 (值改变才触发更新)
  24866. };
  24867. // 配置主动触发wxs隐藏加载进度的回调
  24868. this.mescroll.optDown.afterEndDownScroll = function () {
  24869. _this.callProp = {
  24870. callType: "endDownScroll",
  24871. t: Date.now()
  24872. }; // 触发wxs的方法 (值改变才触发更新)
  24873. var delay = 300 + (_this.mescroll.optDown.beforeEndDelay || 0);
  24874. setTimeout(function () {
  24875. if (_this.downLoadType === 4 || _this.downLoadType === 0) {
  24876. _this.callProp = {
  24877. callType: "clearTransform",
  24878. t: Date.now()
  24879. }; // 触发wxs的方法 (值改变才触发更新)
  24880. }
  24881. // 状态挂载到mescroll对象, 以便在其他组件中使用, 比如<me-video>中
  24882. _this.$set(_this.mescroll, 'downLoadType', _this.downLoadType);
  24883. }, delay);
  24884. };
  24885. // 初始化wxs的数据
  24886. this.wxsCall({
  24887. type: 'setWxsProp'
  24888. });
  24889. }
  24890. };
  24891. var _default = WxsMixin;
  24892. exports.default = _default;
  24893. /***/ }),
  24894. /* 264 */,
  24895. /* 265 */,
  24896. /* 266 */,
  24897. /* 267 */,
  24898. /* 268 */,
  24899. /* 269 */,
  24900. /* 270 */,
  24901. /* 271 */,
  24902. /* 272 */,
  24903. /* 273 */
  24904. /*!***********************************************************************************!*\
  24905. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-image/props.js ***!
  24906. \***********************************************************************************/
  24907. /*! no static exports found */
  24908. /***/ (function(module, exports, __webpack_require__) {
  24909. "use strict";
  24910. /* WEBPACK VAR INJECTION */(function(uni) {
  24911. Object.defineProperty(exports, "__esModule", {
  24912. value: true
  24913. });
  24914. exports.default = void 0;
  24915. var _default = {
  24916. props: {
  24917. // 图片地址
  24918. src: {
  24919. type: String,
  24920. default: uni.$u.props.image.src
  24921. },
  24922. // 裁剪模式
  24923. mode: {
  24924. type: String,
  24925. default: uni.$u.props.image.mode
  24926. },
  24927. // 宽度,单位任意
  24928. width: {
  24929. type: [String, Number],
  24930. default: uni.$u.props.image.width
  24931. },
  24932. // 高度,单位任意
  24933. height: {
  24934. type: [String, Number],
  24935. default: uni.$u.props.image.height
  24936. },
  24937. // 图片形状,circle-圆形,square-方形
  24938. shape: {
  24939. type: String,
  24940. default: uni.$u.props.image.shape
  24941. },
  24942. // 圆角,单位任意
  24943. radius: {
  24944. type: [String, Number],
  24945. default: uni.$u.props.image.radius
  24946. },
  24947. // 是否懒加载,微信小程序、App、百度小程序、字节跳动小程序
  24948. lazyLoad: {
  24949. type: Boolean,
  24950. default: uni.$u.props.image.lazyLoad
  24951. },
  24952. // 开启长按图片显示识别微信小程序码菜单
  24953. showMenuByLongpress: {
  24954. type: Boolean,
  24955. default: uni.$u.props.image.showMenuByLongpress
  24956. },
  24957. // 加载中的图标,或者小图片
  24958. loadingIcon: {
  24959. type: String,
  24960. default: uni.$u.props.image.loadingIcon
  24961. },
  24962. // 加载失败的图标,或者小图片
  24963. errorIcon: {
  24964. type: String,
  24965. default: uni.$u.props.image.errorIcon
  24966. },
  24967. // 是否显示加载中的图标或者自定义的slot
  24968. showLoading: {
  24969. type: Boolean,
  24970. default: uni.$u.props.image.showLoading
  24971. },
  24972. // 是否显示加载错误的图标或者自定义的slot
  24973. showError: {
  24974. type: Boolean,
  24975. default: uni.$u.props.image.showError
  24976. },
  24977. // 是否需要淡入效果
  24978. fade: {
  24979. type: Boolean,
  24980. default: uni.$u.props.image.fade
  24981. },
  24982. // 只支持网络资源,只对微信小程序有效
  24983. webp: {
  24984. type: Boolean,
  24985. default: uni.$u.props.image.webp
  24986. },
  24987. // 过渡时间,单位ms
  24988. duration: {
  24989. type: [String, Number],
  24990. default: uni.$u.props.image.duration
  24991. },
  24992. // 背景颜色,用于深色页面加载图片时,为了和背景色融合
  24993. bgColor: {
  24994. type: String,
  24995. default: uni.$u.props.image.bgColor
  24996. }
  24997. }
  24998. };
  24999. exports.default = _default;
  25000. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25001. /***/ }),
  25002. /* 274 */,
  25003. /* 275 */,
  25004. /* 276 */,
  25005. /* 277 */,
  25006. /* 278 */,
  25007. /* 279 */
  25008. /*!**********************************************************************************!*\
  25009. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-form/props.js ***!
  25010. \**********************************************************************************/
  25011. /*! no static exports found */
  25012. /***/ (function(module, exports, __webpack_require__) {
  25013. "use strict";
  25014. /* WEBPACK VAR INJECTION */(function(uni) {
  25015. Object.defineProperty(exports, "__esModule", {
  25016. value: true
  25017. });
  25018. exports.default = void 0;
  25019. var _default = {
  25020. props: {
  25021. // 当前form的需要验证字段的集合
  25022. model: {
  25023. type: Object,
  25024. default: uni.$u.props.form.model
  25025. },
  25026. // 验证规则
  25027. rules: {
  25028. type: [Object, Function, Array],
  25029. default: uni.$u.props.form.rules
  25030. },
  25031. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  25032. // border-bottom-下边框呈现红色,none-无提示
  25033. errorType: {
  25034. type: String,
  25035. default: uni.$u.props.form.errorType
  25036. },
  25037. // 是否显示表单域的下划线边框
  25038. borderBottom: {
  25039. type: Boolean,
  25040. default: uni.$u.props.form.borderBottom
  25041. },
  25042. // label的位置,left-左边,top-上边
  25043. labelPosition: {
  25044. type: String,
  25045. default: uni.$u.props.form.labelPosition
  25046. },
  25047. // label的宽度,单位px
  25048. labelWidth: {
  25049. type: [String, Number],
  25050. default: uni.$u.props.form.labelWidth
  25051. },
  25052. // lable字体的对齐方式
  25053. labelAlign: {
  25054. type: String,
  25055. default: uni.$u.props.form.labelAlign
  25056. },
  25057. // lable的样式,对象形式
  25058. labelStyle: {
  25059. type: Object,
  25060. default: uni.$u.props.form.labelStyle
  25061. }
  25062. }
  25063. };
  25064. exports.default = _default;
  25065. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25066. /***/ }),
  25067. /* 280 */,
  25068. /* 281 */,
  25069. /* 282 */,
  25070. /* 283 */,
  25071. /* 284 */,
  25072. /* 285 */
  25073. /*!***************************************************************************************!*\
  25074. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-form-item/props.js ***!
  25075. \***************************************************************************************/
  25076. /*! no static exports found */
  25077. /***/ (function(module, exports, __webpack_require__) {
  25078. "use strict";
  25079. /* WEBPACK VAR INJECTION */(function(uni) {
  25080. Object.defineProperty(exports, "__esModule", {
  25081. value: true
  25082. });
  25083. exports.default = void 0;
  25084. var _default = {
  25085. props: {
  25086. // input的label提示语
  25087. label: {
  25088. type: String,
  25089. default: uni.$u.props.formItem.label
  25090. },
  25091. // 绑定的值
  25092. prop: {
  25093. type: String,
  25094. default: uni.$u.props.formItem.prop
  25095. },
  25096. // 是否显示表单域的下划线边框
  25097. borderBottom: {
  25098. type: [String, Boolean],
  25099. default: uni.$u.props.formItem.borderBottom
  25100. },
  25101. // label的位置,left-左边,top-上边
  25102. labelPosition: {
  25103. type: String,
  25104. default: uni.$u.props.formItem.labelPosition
  25105. },
  25106. // label的宽度,单位px
  25107. labelWidth: {
  25108. type: [String, Number],
  25109. default: uni.$u.props.formItem.labelWidth
  25110. },
  25111. // 右侧图标
  25112. rightIcon: {
  25113. type: String,
  25114. default: uni.$u.props.formItem.rightIcon
  25115. },
  25116. // 左侧图标
  25117. leftIcon: {
  25118. type: String,
  25119. default: uni.$u.props.formItem.leftIcon
  25120. },
  25121. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  25122. required: {
  25123. type: Boolean,
  25124. default: uni.$u.props.formItem.required
  25125. },
  25126. leftIconStyle: {
  25127. type: [String, Object],
  25128. default: uni.$u.props.formItem.leftIconStyle
  25129. }
  25130. }
  25131. };
  25132. exports.default = _default;
  25133. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25134. /***/ }),
  25135. /* 286 */,
  25136. /* 287 */,
  25137. /* 288 */,
  25138. /* 289 */,
  25139. /* 290 */,
  25140. /* 291 */,
  25141. /* 292 */,
  25142. /* 293 */
  25143. /*!*****************************************************************************************!*\
  25144. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-radio-group/props.js ***!
  25145. \*****************************************************************************************/
  25146. /*! no static exports found */
  25147. /***/ (function(module, exports, __webpack_require__) {
  25148. "use strict";
  25149. /* WEBPACK VAR INJECTION */(function(uni) {
  25150. Object.defineProperty(exports, "__esModule", {
  25151. value: true
  25152. });
  25153. exports.default = void 0;
  25154. var _default = {
  25155. props: {
  25156. // 绑定的值
  25157. value: {
  25158. type: [String, Number, Boolean],
  25159. default: uni.$u.props.radioGroup.value
  25160. },
  25161. // 是否禁用全部radio
  25162. disabled: {
  25163. type: Boolean,
  25164. default: uni.$u.props.radioGroup.disabled
  25165. },
  25166. // 形状,circle-圆形,square-方形
  25167. shape: {
  25168. type: String,
  25169. default: uni.$u.props.radioGroup.shape
  25170. },
  25171. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  25172. activeColor: {
  25173. type: String,
  25174. default: uni.$u.props.radioGroup.activeColor
  25175. },
  25176. // 未选中的颜色
  25177. inactiveColor: {
  25178. type: String,
  25179. default: uni.$u.props.radioGroup.inactiveColor
  25180. },
  25181. // 标识符
  25182. name: {
  25183. type: String,
  25184. default: uni.$u.props.radioGroup.name
  25185. },
  25186. // 整个组件的尺寸,默认px
  25187. size: {
  25188. type: [String, Number],
  25189. default: uni.$u.props.radioGroup.size
  25190. },
  25191. // 布局方式,row-横向,column-纵向
  25192. placement: {
  25193. type: String,
  25194. default: uni.$u.props.radioGroup.placement
  25195. },
  25196. // label的文本
  25197. label: {
  25198. type: [String],
  25199. default: uni.$u.props.radioGroup.label
  25200. },
  25201. // label的颜色 (默认 '#303133' )
  25202. labelColor: {
  25203. type: [String],
  25204. default: uni.$u.props.radioGroup.labelColor
  25205. },
  25206. // label的字体大小,px单位
  25207. labelSize: {
  25208. type: [String, Number],
  25209. default: uni.$u.props.radioGroup.labelSize
  25210. },
  25211. // 是否禁止点击文本操作checkbox(默认 false )
  25212. labelDisabled: {
  25213. type: Boolean,
  25214. default: uni.$u.props.radioGroup.labelDisabled
  25215. },
  25216. // 图标颜色
  25217. iconColor: {
  25218. type: String,
  25219. default: uni.$u.props.radioGroup.iconColor
  25220. },
  25221. // 图标的大小,单位px
  25222. iconSize: {
  25223. type: [String, Number],
  25224. default: uni.$u.props.radioGroup.iconSize
  25225. },
  25226. // 竖向配列时,是否显示下划线
  25227. borderBottom: {
  25228. type: Boolean,
  25229. default: uni.$u.props.radioGroup.borderBottom
  25230. },
  25231. // 图标与文字的对齐方式
  25232. iconPlacement: {
  25233. type: String,
  25234. default: uni.$u.props.radio.iconPlacement
  25235. }
  25236. }
  25237. };
  25238. exports.default = _default;
  25239. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25240. /***/ }),
  25241. /* 294 */,
  25242. /* 295 */,
  25243. /* 296 */,
  25244. /* 297 */,
  25245. /* 298 */,
  25246. /* 299 */,
  25247. /* 300 */,
  25248. /* 301 */
  25249. /*!***********************************************************************************!*\
  25250. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-radio/props.js ***!
  25251. \***********************************************************************************/
  25252. /*! no static exports found */
  25253. /***/ (function(module, exports, __webpack_require__) {
  25254. "use strict";
  25255. /* WEBPACK VAR INJECTION */(function(uni) {
  25256. Object.defineProperty(exports, "__esModule", {
  25257. value: true
  25258. });
  25259. exports.default = void 0;
  25260. var _default = {
  25261. props: {
  25262. // radio的名称
  25263. name: {
  25264. type: [String, Number, Boolean],
  25265. default: uni.$u.props.radio.name
  25266. },
  25267. // 形状,square为方形,circle为圆型
  25268. shape: {
  25269. type: String,
  25270. default: uni.$u.props.radio.shape
  25271. },
  25272. // 是否禁用
  25273. disabled: {
  25274. type: [String, Boolean],
  25275. default: uni.$u.props.radio.disabled
  25276. },
  25277. // 是否禁止点击提示语选中单选框
  25278. labelDisabled: {
  25279. type: [String, Boolean],
  25280. default: uni.$u.props.radio.labelDisabled
  25281. },
  25282. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  25283. activeColor: {
  25284. type: String,
  25285. default: uni.$u.props.radio.activeColor
  25286. },
  25287. // 未选中的颜色
  25288. inactiveColor: {
  25289. type: String,
  25290. default: uni.$u.props.radio.inactiveColor
  25291. },
  25292. // 图标的大小,单位px
  25293. iconSize: {
  25294. type: [String, Number],
  25295. default: uni.$u.props.radio.iconSize
  25296. },
  25297. // label的字体大小,px单位
  25298. labelSize: {
  25299. type: [String, Number],
  25300. default: uni.$u.props.radio.labelSize
  25301. },
  25302. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  25303. label: {
  25304. type: [String, Number],
  25305. default: uni.$u.props.radio.label
  25306. },
  25307. // 整体的大小
  25308. size: {
  25309. type: [String, Number],
  25310. default: uni.$u.props.radio.size
  25311. },
  25312. // 图标颜色
  25313. color: {
  25314. type: String,
  25315. default: uni.$u.props.radio.color
  25316. },
  25317. // label的颜色
  25318. labelColor: {
  25319. type: String,
  25320. default: uni.$u.props.radio.labelColor
  25321. }
  25322. }
  25323. };
  25324. exports.default = _default;
  25325. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25326. /***/ }),
  25327. /* 302 */,
  25328. /* 303 */,
  25329. /* 304 */,
  25330. /* 305 */,
  25331. /* 306 */,
  25332. /* 307 */,
  25333. /* 308 */,
  25334. /* 309 */
  25335. /*!***********************************************************************************!*\
  25336. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-input/props.js ***!
  25337. \***********************************************************************************/
  25338. /*! no static exports found */
  25339. /***/ (function(module, exports, __webpack_require__) {
  25340. "use strict";
  25341. /* WEBPACK VAR INJECTION */(function(uni) {
  25342. Object.defineProperty(exports, "__esModule", {
  25343. value: true
  25344. });
  25345. exports.default = void 0;
  25346. var _default = {
  25347. props: {
  25348. // 输入的值
  25349. value: {
  25350. type: [String, Number],
  25351. default: uni.$u.props.input.value
  25352. },
  25353. // 输入框类型
  25354. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  25355. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  25356. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  25357. // text-文本输入键盘
  25358. type: {
  25359. type: String,
  25360. default: uni.$u.props.input.type
  25361. },
  25362. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  25363. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  25364. fixed: {
  25365. type: Boolean,
  25366. default: uni.$u.props.input.fixed
  25367. },
  25368. // 是否禁用输入框
  25369. disabled: {
  25370. type: Boolean,
  25371. default: uni.$u.props.input.disabled
  25372. },
  25373. // 禁用状态时的背景色
  25374. disabledColor: {
  25375. type: String,
  25376. default: uni.$u.props.input.disabledColor
  25377. },
  25378. // 是否显示清除控件
  25379. clearable: {
  25380. type: Boolean,
  25381. default: uni.$u.props.input.clearable
  25382. },
  25383. // 是否密码类型
  25384. password: {
  25385. type: Boolean,
  25386. default: uni.$u.props.input.password
  25387. },
  25388. // 最大输入长度,设置为 -1 的时候不限制最大长度
  25389. maxlength: {
  25390. type: [String, Number],
  25391. default: uni.$u.props.input.maxlength
  25392. },
  25393. // 输入框为空时的占位符
  25394. placeholder: {
  25395. type: String,
  25396. default: uni.$u.props.input.placeholder
  25397. },
  25398. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  25399. placeholderClass: {
  25400. type: String,
  25401. default: uni.$u.props.input.placeholderClass
  25402. },
  25403. // 指定placeholder的样式
  25404. placeholderStyle: {
  25405. type: [String, Object],
  25406. default: uni.$u.props.input.placeholderStyle
  25407. },
  25408. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  25409. showWordLimit: {
  25410. type: Boolean,
  25411. default: uni.$u.props.input.showWordLimit
  25412. },
  25413. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  25414. // https://uniapp.dcloud.io/component/input
  25415. // https://uniapp.dcloud.io/component/textarea
  25416. confirmType: {
  25417. type: String,
  25418. default: uni.$u.props.input.confirmType
  25419. },
  25420. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  25421. confirmHold: {
  25422. type: Boolean,
  25423. default: uni.$u.props.input.confirmHold
  25424. },
  25425. // focus时,点击页面的时候不收起键盘,微信小程序有效
  25426. holdKeyboard: {
  25427. type: Boolean,
  25428. default: uni.$u.props.input.holdKeyboard
  25429. },
  25430. // 自动获取焦点
  25431. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  25432. focus: {
  25433. type: Boolean,
  25434. default: uni.$u.props.input.focus
  25435. },
  25436. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  25437. autoBlur: {
  25438. type: Boolean,
  25439. default: uni.$u.props.input.autoBlur
  25440. },
  25441. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  25442. disableDefaultPadding: {
  25443. type: Boolean,
  25444. default: uni.$u.props.input.disableDefaultPadding
  25445. },
  25446. // 指定focus时光标的位置
  25447. cursor: {
  25448. type: [String, Number],
  25449. default: uni.$u.props.input.cursor
  25450. },
  25451. // 输入框聚焦时底部与键盘的距离
  25452. cursorSpacing: {
  25453. type: [String, Number],
  25454. default: uni.$u.props.input.cursorSpacing
  25455. },
  25456. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  25457. selectionStart: {
  25458. type: [String, Number],
  25459. default: uni.$u.props.input.selectionStart
  25460. },
  25461. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  25462. selectionEnd: {
  25463. type: [String, Number],
  25464. default: uni.$u.props.input.selectionEnd
  25465. },
  25466. // 键盘弹起时,是否自动上推页面
  25467. adjustPosition: {
  25468. type: Boolean,
  25469. default: uni.$u.props.input.adjustPosition
  25470. },
  25471. // 输入框内容对齐方式,可选值为:left|center|right
  25472. inputAlign: {
  25473. type: String,
  25474. default: uni.$u.props.input.inputAlign
  25475. },
  25476. // 输入框字体的大小
  25477. fontSize: {
  25478. type: [String, Number],
  25479. default: uni.$u.props.input.fontSize
  25480. },
  25481. // 输入框字体颜色
  25482. color: {
  25483. type: String,
  25484. default: uni.$u.props.input.color
  25485. },
  25486. // 输入框前置图标
  25487. prefixIcon: {
  25488. type: String,
  25489. default: uni.$u.props.input.prefixIcon
  25490. },
  25491. // 前置图标样式,对象或字符串
  25492. prefixIconStyle: {
  25493. type: [String, Object],
  25494. default: uni.$u.props.input.prefixIconStyle
  25495. },
  25496. // 输入框后置图标
  25497. suffixIcon: {
  25498. type: String,
  25499. default: uni.$u.props.input.suffixIcon
  25500. },
  25501. // 后置图标样式,对象或字符串
  25502. suffixIconStyle: {
  25503. type: [String, Object],
  25504. default: uni.$u.props.input.suffixIconStyle
  25505. },
  25506. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  25507. border: {
  25508. type: String,
  25509. default: uni.$u.props.input.border
  25510. },
  25511. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  25512. readonly: {
  25513. type: Boolean,
  25514. default: uni.$u.props.input.readonly
  25515. },
  25516. // 输入框形状,circle-圆形,square-方形
  25517. shape: {
  25518. type: String,
  25519. default: uni.$u.props.input.shape
  25520. },
  25521. // 用于处理或者过滤输入框内容的方法
  25522. formatter: {
  25523. type: [Function, null],
  25524. default: uni.$u.props.input.formatter
  25525. },
  25526. // 是否忽略组件内对文本合成系统事件的处理
  25527. ignoreCompositionEvent: {
  25528. type: Boolean,
  25529. default: true
  25530. }
  25531. }
  25532. };
  25533. exports.default = _default;
  25534. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25535. /***/ }),
  25536. /* 310 */,
  25537. /* 311 */,
  25538. /* 312 */,
  25539. /* 313 */,
  25540. /* 314 */,
  25541. /* 315 */,
  25542. /* 316 */,
  25543. /* 317 */
  25544. /*!************************************************************************************!*\
  25545. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-upload/utils.js ***!
  25546. \************************************************************************************/
  25547. /*! no static exports found */
  25548. /***/ (function(module, exports, __webpack_require__) {
  25549. "use strict";
  25550. /* WEBPACK VAR INJECTION */(function(uni, wx) {
  25551. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25552. Object.defineProperty(exports, "__esModule", {
  25553. value: true
  25554. });
  25555. exports.chooseFile = chooseFile;
  25556. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  25557. 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; }
  25558. 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; }
  25559. function pickExclude(obj, keys) {
  25560. // 某些情况下,type可能会为
  25561. if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
  25562. return {};
  25563. }
  25564. return Object.keys(obj).reduce(function (prev, key) {
  25565. if (!keys.includes(key)) {
  25566. prev[key] = obj[key];
  25567. }
  25568. return prev;
  25569. }, {});
  25570. }
  25571. function formatImage(res) {
  25572. return res.tempFiles.map(function (item) {
  25573. return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
  25574. type: 'image',
  25575. url: item.path,
  25576. thumb: item.path,
  25577. size: item.size
  25578. });
  25579. });
  25580. }
  25581. function formatVideo(res) {
  25582. return [_objectSpread(_objectSpread({}, pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
  25583. type: 'video',
  25584. url: res.tempFilePath,
  25585. thumb: res.thumbTempFilePath,
  25586. size: res.size
  25587. })];
  25588. }
  25589. function formatMedia(res) {
  25590. return res.tempFiles.map(function (item) {
  25591. return _objectSpread(_objectSpread({}, pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
  25592. type: res.type,
  25593. url: item.tempFilePath,
  25594. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
  25595. size: item.size
  25596. });
  25597. });
  25598. }
  25599. function formatFile(res) {
  25600. return res.tempFiles.map(function (item) {
  25601. return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
  25602. url: item.path,
  25603. size: item.size
  25604. });
  25605. });
  25606. }
  25607. function chooseFile(_ref) {
  25608. var accept = _ref.accept,
  25609. multiple = _ref.multiple,
  25610. capture = _ref.capture,
  25611. compressed = _ref.compressed,
  25612. maxDuration = _ref.maxDuration,
  25613. sizeType = _ref.sizeType,
  25614. camera = _ref.camera,
  25615. maxCount = _ref.maxCount;
  25616. return new Promise(function (resolve, reject) {
  25617. switch (accept) {
  25618. case 'image':
  25619. uni.chooseImage({
  25620. count: multiple ? Math.min(maxCount, 9) : 1,
  25621. sourceType: capture,
  25622. sizeType: sizeType,
  25623. success: function success(res) {
  25624. return resolve(formatImage(res));
  25625. },
  25626. fail: reject
  25627. });
  25628. break;
  25629. // 只有微信小程序才支持chooseMedia接口
  25630. case 'media':
  25631. wx.chooseMedia({
  25632. count: multiple ? Math.min(maxCount, 9) : 1,
  25633. sourceType: capture,
  25634. maxDuration: maxDuration,
  25635. sizeType: sizeType,
  25636. camera: camera,
  25637. success: function success(res) {
  25638. return resolve(formatMedia(res));
  25639. },
  25640. fail: reject
  25641. });
  25642. break;
  25643. case 'video':
  25644. uni.chooseVideo({
  25645. sourceType: capture,
  25646. compressed: compressed,
  25647. maxDuration: maxDuration,
  25648. camera: camera,
  25649. success: function success(res) {
  25650. return resolve(formatVideo(res));
  25651. },
  25652. fail: reject
  25653. });
  25654. break;
  25655. // 只有微信小程序才支持chooseMessageFile接口
  25656. case 'file':
  25657. wx.chooseMessageFile({
  25658. count: multiple ? maxCount : 1,
  25659. type: accept,
  25660. success: function success(res) {
  25661. return resolve(formatFile(res));
  25662. },
  25663. fail: reject
  25664. });
  25665. break;
  25666. default:
  25667. // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
  25668. wx.chooseMessageFile({
  25669. count: multiple ? maxCount : 1,
  25670. type: 'all',
  25671. success: function success(res) {
  25672. return resolve(formatFile(res));
  25673. },
  25674. fail: reject
  25675. });
  25676. }
  25677. });
  25678. }
  25679. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  25680. /***/ }),
  25681. /* 318 */
  25682. /*!************************************************************************************!*\
  25683. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-upload/mixin.js ***!
  25684. \************************************************************************************/
  25685. /*! no static exports found */
  25686. /***/ (function(module, exports, __webpack_require__) {
  25687. "use strict";
  25688. Object.defineProperty(exports, "__esModule", {
  25689. value: true
  25690. });
  25691. exports.default = void 0;
  25692. var _default = {
  25693. watch: {
  25694. // 监听accept的变化,判断是否符合个平台要求
  25695. // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
  25696. accept: {
  25697. immediate: true,
  25698. handler: function handler(val) {}
  25699. }
  25700. }
  25701. };
  25702. exports.default = _default;
  25703. /***/ }),
  25704. /* 319 */
  25705. /*!************************************************************************************!*\
  25706. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-upload/props.js ***!
  25707. \************************************************************************************/
  25708. /*! no static exports found */
  25709. /***/ (function(module, exports, __webpack_require__) {
  25710. "use strict";
  25711. /* WEBPACK VAR INJECTION */(function(uni) {
  25712. Object.defineProperty(exports, "__esModule", {
  25713. value: true
  25714. });
  25715. exports.default = void 0;
  25716. var _default = {
  25717. props: {
  25718. // 接受的文件类型, 可选值为all media image file video
  25719. accept: {
  25720. type: String,
  25721. default: uni.$u.props.upload.accept
  25722. },
  25723. // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
  25724. capture: {
  25725. type: [String, Array],
  25726. default: uni.$u.props.upload.capture
  25727. },
  25728. // 当accept为video时生效,是否压缩视频,默认为true
  25729. compressed: {
  25730. type: Boolean,
  25731. default: uni.$u.props.upload.compressed
  25732. },
  25733. // 当accept为video时生效,可选值为back或front
  25734. camera: {
  25735. type: String,
  25736. default: uni.$u.props.upload.camera
  25737. },
  25738. // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
  25739. maxDuration: {
  25740. type: Number,
  25741. default: uni.$u.props.upload.maxDuration
  25742. },
  25743. // 上传区域的图标,只能内置图标
  25744. uploadIcon: {
  25745. type: String,
  25746. default: uni.$u.props.upload.uploadIcon
  25747. },
  25748. // 上传区域的图标的颜色,默认
  25749. uploadIconColor: {
  25750. type: String,
  25751. default: uni.$u.props.upload.uploadIconColor
  25752. },
  25753. // 是否开启文件读取前事件
  25754. useBeforeRead: {
  25755. type: Boolean,
  25756. default: uni.$u.props.upload.useBeforeRead
  25757. },
  25758. // 读取后的处理函数
  25759. afterRead: {
  25760. type: Function,
  25761. default: null
  25762. },
  25763. // 读取前的处理函数
  25764. beforeRead: {
  25765. type: Function,
  25766. default: null
  25767. },
  25768. // 是否显示组件自带的图片预览功能
  25769. previewFullImage: {
  25770. type: Boolean,
  25771. default: uni.$u.props.upload.previewFullImage
  25772. },
  25773. // 最大上传数量
  25774. maxCount: {
  25775. type: [String, Number],
  25776. default: uni.$u.props.upload.maxCount
  25777. },
  25778. // 是否启用
  25779. disabled: {
  25780. type: Boolean,
  25781. default: uni.$u.props.upload.disabled
  25782. },
  25783. // 预览上传的图片时的裁剪模式,和image组件mode属性一致
  25784. imageMode: {
  25785. type: String,
  25786. default: uni.$u.props.upload.imageMode
  25787. },
  25788. // 标识符,可以在回调函数的第二项参数中获取
  25789. name: {
  25790. type: String,
  25791. default: uni.$u.props.upload.name
  25792. },
  25793. // 所选的图片的尺寸, 可选值为original compressed
  25794. sizeType: {
  25795. type: Array,
  25796. default: uni.$u.props.upload.sizeType
  25797. },
  25798. // 是否开启图片多选,部分安卓机型不支持
  25799. multiple: {
  25800. type: Boolean,
  25801. default: uni.$u.props.upload.multiple
  25802. },
  25803. // 是否展示删除按钮
  25804. deletable: {
  25805. type: Boolean,
  25806. default: uni.$u.props.upload.deletable
  25807. },
  25808. // 文件大小限制,单位为byte
  25809. maxSize: {
  25810. type: [String, Number],
  25811. default: uni.$u.props.upload.maxSize
  25812. },
  25813. // 显示已上传的文件列表
  25814. fileList: {
  25815. type: Array,
  25816. default: uni.$u.props.upload.fileList
  25817. },
  25818. // 上传区域的提示文字
  25819. uploadText: {
  25820. type: String,
  25821. default: uni.$u.props.upload.uploadText
  25822. },
  25823. // 内部预览图片区域和选择图片按钮的区域宽度
  25824. width: {
  25825. type: [String, Number],
  25826. default: uni.$u.props.upload.width
  25827. },
  25828. // 内部预览图片区域和选择图片按钮的区域高度
  25829. height: {
  25830. type: [String, Number],
  25831. default: uni.$u.props.upload.height
  25832. },
  25833. // 是否在上传完成后展示预览图
  25834. previewImage: {
  25835. type: Boolean,
  25836. default: uni.$u.props.upload.previewImage
  25837. }
  25838. }
  25839. };
  25840. exports.default = _default;
  25841. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25842. /***/ }),
  25843. /* 320 */,
  25844. /* 321 */,
  25845. /* 322 */,
  25846. /* 323 */,
  25847. /* 324 */,
  25848. /* 325 */,
  25849. /* 326 */,
  25850. /* 327 */
  25851. /*!**************************************************************************************!*\
  25852. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-textarea/props.js ***!
  25853. \**************************************************************************************/
  25854. /*! no static exports found */
  25855. /***/ (function(module, exports, __webpack_require__) {
  25856. "use strict";
  25857. /* WEBPACK VAR INJECTION */(function(uni) {
  25858. Object.defineProperty(exports, "__esModule", {
  25859. value: true
  25860. });
  25861. exports.default = void 0;
  25862. var _default = {
  25863. props: {
  25864. // 输入框的内容
  25865. value: {
  25866. type: [String, Number],
  25867. default: uni.$u.props.textarea.value
  25868. },
  25869. // 输入框为空时占位符
  25870. placeholder: {
  25871. type: [String, Number],
  25872. default: uni.$u.props.textarea.placeholder
  25873. },
  25874. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  25875. placeholderClass: {
  25876. type: String,
  25877. default: uni.$u.props.input.placeholderClass
  25878. },
  25879. // 指定placeholder的样式
  25880. placeholderStyle: {
  25881. type: [String, Object],
  25882. default: uni.$u.props.input.placeholderStyle
  25883. },
  25884. // 输入框高度
  25885. height: {
  25886. type: [String, Number],
  25887. default: uni.$u.props.textarea.height
  25888. },
  25889. // 设置键盘右下角按钮的文字,仅微信小程序,App-vue和H5有效
  25890. confirmType: {
  25891. type: String,
  25892. default: uni.$u.props.textarea.confirmType
  25893. },
  25894. // 是否禁用
  25895. disabled: {
  25896. type: Boolean,
  25897. default: uni.$u.props.textarea.disabled
  25898. },
  25899. // 是否显示统计字数
  25900. count: {
  25901. type: Boolean,
  25902. default: uni.$u.props.textarea.count
  25903. },
  25904. // 是否自动获取焦点,nvue不支持,H5取决于浏览器的实现
  25905. focus: {
  25906. type: Boolean,
  25907. default: uni.$u.props.textarea.focus
  25908. },
  25909. // 是否自动增加高度
  25910. autoHeight: {
  25911. type: Boolean,
  25912. default: uni.$u.props.textarea.autoHeight
  25913. },
  25914. // 如果textarea是在一个position:fixed的区域,需要显示指定属性fixed为true
  25915. fixed: {
  25916. type: Boolean,
  25917. default: uni.$u.props.textarea.fixed
  25918. },
  25919. // 指定光标与键盘的距离
  25920. cursorSpacing: {
  25921. type: Number,
  25922. default: uni.$u.props.textarea.cursorSpacing
  25923. },
  25924. // 指定focus时的光标位置
  25925. cursor: {
  25926. type: [String, Number],
  25927. default: uni.$u.props.textarea.cursor
  25928. },
  25929. // 是否显示键盘上方带有”完成“按钮那一栏,
  25930. showConfirmBar: {
  25931. type: Boolean,
  25932. default: uni.$u.props.textarea.showConfirmBar
  25933. },
  25934. // 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
  25935. selectionStart: {
  25936. type: Number,
  25937. default: uni.$u.props.textarea.selectionStart
  25938. },
  25939. // 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
  25940. selectionEnd: {
  25941. type: Number,
  25942. default: uni.$u.props.textarea.selectionEnd
  25943. },
  25944. // 键盘弹起时,是否自动上推页面
  25945. adjustPosition: {
  25946. type: Boolean,
  25947. default: uni.$u.props.textarea.adjustPosition
  25948. },
  25949. // 是否去掉 iOS 下的默认内边距,只微信小程序有效
  25950. disableDefaultPadding: {
  25951. type: Boolean,
  25952. default: uni.$u.props.textarea.disableDefaultPadding
  25953. },
  25954. // focus时,点击页面的时候不收起键盘,只微信小程序有效
  25955. holdKeyboard: {
  25956. type: Boolean,
  25957. default: uni.$u.props.textarea.holdKeyboard
  25958. },
  25959. // 最大输入长度,设置为 -1 的时候不限制最大长度
  25960. maxlength: {
  25961. type: [String, Number],
  25962. default: uni.$u.props.textarea.maxlength
  25963. },
  25964. // 边框类型,surround-四周边框,bottom-底部边框
  25965. border: {
  25966. type: String,
  25967. default: uni.$u.props.textarea.border
  25968. },
  25969. // 用于处理或者过滤输入框内容的方法
  25970. formatter: {
  25971. type: [Function, null],
  25972. default: uni.$u.props.textarea.formatter
  25973. },
  25974. // 是否忽略组件内对文本合成系统事件的处理
  25975. ignoreCompositionEvent: {
  25976. type: Boolean,
  25977. default: true
  25978. }
  25979. }
  25980. };
  25981. exports.default = _default;
  25982. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25983. /***/ }),
  25984. /* 328 */,
  25985. /* 329 */,
  25986. /* 330 */,
  25987. /* 331 */,
  25988. /* 332 */,
  25989. /* 333 */
  25990. /*!***********************************************************************************!*\
  25991. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-modal/props.js ***!
  25992. \***********************************************************************************/
  25993. /*! no static exports found */
  25994. /***/ (function(module, exports, __webpack_require__) {
  25995. "use strict";
  25996. /* WEBPACK VAR INJECTION */(function(uni) {
  25997. Object.defineProperty(exports, "__esModule", {
  25998. value: true
  25999. });
  26000. exports.default = void 0;
  26001. var _default = {
  26002. props: {
  26003. // 是否展示modal
  26004. show: {
  26005. type: Boolean,
  26006. default: uni.$u.props.modal.show
  26007. },
  26008. // 标题
  26009. title: {
  26010. type: [String],
  26011. default: uni.$u.props.modal.title
  26012. },
  26013. // 弹窗内容
  26014. content: {
  26015. type: String,
  26016. default: uni.$u.props.modal.content
  26017. },
  26018. // 确认文案
  26019. confirmText: {
  26020. type: String,
  26021. default: uni.$u.props.modal.confirmText
  26022. },
  26023. // 取消文案
  26024. cancelText: {
  26025. type: String,
  26026. default: uni.$u.props.modal.cancelText
  26027. },
  26028. // 是否显示确认按钮
  26029. showConfirmButton: {
  26030. type: Boolean,
  26031. default: uni.$u.props.modal.showConfirmButton
  26032. },
  26033. // 是否显示取消按钮
  26034. showCancelButton: {
  26035. type: Boolean,
  26036. default: uni.$u.props.modal.showCancelButton
  26037. },
  26038. // 确认按钮颜色
  26039. confirmColor: {
  26040. type: String,
  26041. default: uni.$u.props.modal.confirmColor
  26042. },
  26043. // 取消文字颜色
  26044. cancelColor: {
  26045. type: String,
  26046. default: uni.$u.props.modal.cancelColor
  26047. },
  26048. // 对调确认和取消的位置
  26049. buttonReverse: {
  26050. type: Boolean,
  26051. default: uni.$u.props.modal.buttonReverse
  26052. },
  26053. // 是否开启缩放效果
  26054. zoom: {
  26055. type: Boolean,
  26056. default: uni.$u.props.modal.zoom
  26057. },
  26058. // 是否异步关闭,只对确定按钮有效
  26059. asyncClose: {
  26060. type: Boolean,
  26061. default: uni.$u.props.modal.asyncClose
  26062. },
  26063. // 是否允许点击遮罩关闭modal
  26064. closeOnClickOverlay: {
  26065. type: Boolean,
  26066. default: uni.$u.props.modal.closeOnClickOverlay
  26067. },
  26068. // 给一个负的margin-top,往上偏移,避免和键盘重合的情况
  26069. negativeTop: {
  26070. type: [String, Number],
  26071. default: uni.$u.props.modal.negativeTop
  26072. },
  26073. // modal宽度,不支持百分比,可以数值,px,rpx单位
  26074. width: {
  26075. type: [String, Number],
  26076. default: uni.$u.props.modal.width
  26077. },
  26078. // 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
  26079. confirmButtonShape: {
  26080. type: String,
  26081. default: uni.$u.props.modal.confirmButtonShape
  26082. }
  26083. }
  26084. };
  26085. exports.default = _default;
  26086. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26087. /***/ }),
  26088. /* 334 */,
  26089. /* 335 */,
  26090. /* 336 */,
  26091. /* 337 */,
  26092. /* 338 */,
  26093. /* 339 */,
  26094. /* 340 */,
  26095. /* 341 */
  26096. /*!***********************************************************************************!*\
  26097. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-popup/props.js ***!
  26098. \***********************************************************************************/
  26099. /*! no static exports found */
  26100. /***/ (function(module, exports, __webpack_require__) {
  26101. "use strict";
  26102. /* WEBPACK VAR INJECTION */(function(uni) {
  26103. Object.defineProperty(exports, "__esModule", {
  26104. value: true
  26105. });
  26106. exports.default = void 0;
  26107. var _default = {
  26108. props: {
  26109. // 是否展示弹窗
  26110. show: {
  26111. type: Boolean,
  26112. default: uni.$u.props.popup.show
  26113. },
  26114. // 是否显示遮罩
  26115. overlay: {
  26116. type: Boolean,
  26117. default: uni.$u.props.popup.overlay
  26118. },
  26119. // 弹出的方向,可选值为 top bottom right left center
  26120. mode: {
  26121. type: String,
  26122. default: uni.$u.props.popup.mode
  26123. },
  26124. // 动画时长,单位ms
  26125. duration: {
  26126. type: [String, Number],
  26127. default: uni.$u.props.popup.duration
  26128. },
  26129. // 是否显示关闭图标
  26130. closeable: {
  26131. type: Boolean,
  26132. default: uni.$u.props.popup.closeable
  26133. },
  26134. // 自定义遮罩的样式
  26135. overlayStyle: {
  26136. type: [Object, String],
  26137. default: uni.$u.props.popup.overlayStyle
  26138. },
  26139. // 点击遮罩是否关闭弹窗
  26140. closeOnClickOverlay: {
  26141. type: Boolean,
  26142. default: uni.$u.props.popup.closeOnClickOverlay
  26143. },
  26144. // 层级
  26145. zIndex: {
  26146. type: [String, Number],
  26147. default: uni.$u.props.popup.zIndex
  26148. },
  26149. // 是否为iPhoneX留出底部安全距离
  26150. safeAreaInsetBottom: {
  26151. type: Boolean,
  26152. default: uni.$u.props.popup.safeAreaInsetBottom
  26153. },
  26154. // 是否留出顶部安全距离(状态栏高度)
  26155. safeAreaInsetTop: {
  26156. type: Boolean,
  26157. default: uni.$u.props.popup.safeAreaInsetTop
  26158. },
  26159. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  26160. closeIconPos: {
  26161. type: String,
  26162. default: uni.$u.props.popup.closeIconPos
  26163. },
  26164. // 是否显示圆角
  26165. round: {
  26166. type: [Boolean, String, Number],
  26167. default: uni.$u.props.popup.round
  26168. },
  26169. // mode=center,也即中部弹出时,是否使用缩放模式
  26170. zoom: {
  26171. type: Boolean,
  26172. default: uni.$u.props.popup.zoom
  26173. },
  26174. // 弹窗背景色,设置为transparent可去除白色背景
  26175. bgColor: {
  26176. type: String,
  26177. default: uni.$u.props.popup.bgColor
  26178. },
  26179. // 遮罩的透明度,0-1之间
  26180. overlayOpacity: {
  26181. type: [Number, String],
  26182. default: uni.$u.props.popup.overlayOpacity
  26183. }
  26184. }
  26185. };
  26186. exports.default = _default;
  26187. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26188. /***/ }),
  26189. /* 342 */,
  26190. /* 343 */,
  26191. /* 344 */,
  26192. /* 345 */,
  26193. /* 346 */,
  26194. /* 347 */,
  26195. /* 348 */,
  26196. /* 349 */,
  26197. /* 350 */,
  26198. /* 351 */,
  26199. /* 352 */,
  26200. /* 353 */,
  26201. /* 354 */,
  26202. /* 355 */,
  26203. /* 356 */,
  26204. /* 357 */,
  26205. /* 358 */,
  26206. /* 359 */,
  26207. /* 360 */,
  26208. /* 361 */,
  26209. /* 362 */,
  26210. /* 363 */
  26211. /*!******************************************************************************************!*\
  26212. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  26213. \******************************************************************************************/
  26214. /*! no static exports found */
  26215. /***/ (function(module, exports, __webpack_require__) {
  26216. "use strict";
  26217. /* WEBPACK VAR INJECTION */(function(uni) {
  26218. Object.defineProperty(exports, "__esModule", {
  26219. value: true
  26220. });
  26221. exports.default = void 0;
  26222. var _default = {
  26223. props: {
  26224. // 是否显示组件
  26225. show: {
  26226. type: Boolean,
  26227. default: uni.$u.props.loadingIcon.show
  26228. },
  26229. // 颜色
  26230. color: {
  26231. type: String,
  26232. default: uni.$u.props.loadingIcon.color
  26233. },
  26234. // 提示文字颜色
  26235. textColor: {
  26236. type: String,
  26237. default: uni.$u.props.loadingIcon.textColor
  26238. },
  26239. // 文字和图标是否垂直排列
  26240. vertical: {
  26241. type: Boolean,
  26242. default: uni.$u.props.loadingIcon.vertical
  26243. },
  26244. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  26245. mode: {
  26246. type: String,
  26247. default: uni.$u.props.loadingIcon.mode
  26248. },
  26249. // 图标大小,单位默认px
  26250. size: {
  26251. type: [String, Number],
  26252. default: uni.$u.props.loadingIcon.size
  26253. },
  26254. // 文字大小
  26255. textSize: {
  26256. type: [String, Number],
  26257. default: uni.$u.props.loadingIcon.textSize
  26258. },
  26259. // 文字内容
  26260. text: {
  26261. type: [String, Number],
  26262. default: uni.$u.props.loadingIcon.text
  26263. },
  26264. // 动画模式
  26265. timingFunction: {
  26266. type: String,
  26267. default: uni.$u.props.loadingIcon.timingFunction
  26268. },
  26269. // 动画执行周期时间
  26270. duration: {
  26271. type: [String, Number],
  26272. default: uni.$u.props.loadingIcon.duration
  26273. },
  26274. // mode=circle时的暗边颜色
  26275. inactiveColor: {
  26276. type: String,
  26277. default: uni.$u.props.loadingIcon.inactiveColor
  26278. }
  26279. }
  26280. };
  26281. exports.default = _default;
  26282. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26283. /***/ }),
  26284. /* 364 */,
  26285. /* 365 */,
  26286. /* 366 */,
  26287. /* 367 */,
  26288. /* 368 */,
  26289. /* 369 */,
  26290. /* 370 */,
  26291. /* 371 */
  26292. /*!**********************************************************************************************!*\
  26293. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-swiper-indicator/props.js ***!
  26294. \**********************************************************************************************/
  26295. /*! no static exports found */
  26296. /***/ (function(module, exports, __webpack_require__) {
  26297. "use strict";
  26298. /* WEBPACK VAR INJECTION */(function(uni) {
  26299. Object.defineProperty(exports, "__esModule", {
  26300. value: true
  26301. });
  26302. exports.default = void 0;
  26303. var _default = {
  26304. props: {
  26305. // 轮播的长度
  26306. length: {
  26307. type: [String, Number],
  26308. default: uni.$u.props.swiperIndicator.length
  26309. },
  26310. // 当前处于活动状态的轮播的索引
  26311. current: {
  26312. type: [String, Number],
  26313. default: uni.$u.props.swiperIndicator.current
  26314. },
  26315. // 指示器非激活颜色
  26316. indicatorActiveColor: {
  26317. type: String,
  26318. default: uni.$u.props.swiperIndicator.indicatorActiveColor
  26319. },
  26320. // 指示器的激活颜色
  26321. indicatorInactiveColor: {
  26322. type: String,
  26323. default: uni.$u.props.swiperIndicator.indicatorInactiveColor
  26324. },
  26325. // 指示器模式,line-线型,dot-点型
  26326. indicatorMode: {
  26327. type: String,
  26328. default: uni.$u.props.swiperIndicator.indicatorMode
  26329. }
  26330. }
  26331. };
  26332. exports.default = _default;
  26333. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26334. /***/ }),
  26335. /* 372 */,
  26336. /* 373 */,
  26337. /* 374 */,
  26338. /* 375 */,
  26339. /* 376 */,
  26340. /* 377 */,
  26341. /* 378 */,
  26342. /* 379 */,
  26343. /* 380 */,
  26344. /* 381 */,
  26345. /* 382 */,
  26346. /* 383 */,
  26347. /* 384 */,
  26348. /* 385 */,
  26349. /* 386 */,
  26350. /* 387 */,
  26351. /* 388 */,
  26352. /* 389 */,
  26353. /* 390 */,
  26354. /* 391 */,
  26355. /* 392 */,
  26356. /* 393 */,
  26357. /* 394 */,
  26358. /* 395 */,
  26359. /* 396 */,
  26360. /* 397 */,
  26361. /* 398 */,
  26362. /* 399 */,
  26363. /* 400 */
  26364. /*!************************************************************************************!*\
  26365. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/libs/util/async-validator.js ***!
  26366. \************************************************************************************/
  26367. /*! no static exports found */
  26368. /***/ (function(module, exports, __webpack_require__) {
  26369. "use strict";
  26370. /* WEBPACK VAR INJECTION */(function(process) {
  26371. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26372. Object.defineProperty(exports, "__esModule", {
  26373. value: true
  26374. });
  26375. exports.default = void 0;
  26376. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  26377. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  26378. 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; }
  26379. 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; }
  26380. function _extends() {
  26381. _extends = Object.assign || function (target) {
  26382. for (var i = 1; i < arguments.length; i++) {
  26383. var source = arguments[i];
  26384. for (var key in source) {
  26385. if (Object.prototype.hasOwnProperty.call(source, key)) {
  26386. target[key] = source[key];
  26387. }
  26388. }
  26389. }
  26390. return target;
  26391. };
  26392. return _extends.apply(this, arguments);
  26393. }
  26394. /* eslint no-console:0 */
  26395. var formatRegExp = /%[sdj%]/g;
  26396. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  26397. if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uni_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  26398. warning = function warning(type, errors) {
  26399. if (typeof console !== 'undefined' && console.warn) {
  26400. if (errors.every(function (e) {
  26401. return typeof e === 'string';
  26402. })) {
  26403. console.warn(type, errors);
  26404. }
  26405. }
  26406. };
  26407. }
  26408. function convertFieldsError(errors) {
  26409. if (!errors || !errors.length) return null;
  26410. var fields = {};
  26411. errors.forEach(function (error) {
  26412. var field = error.field;
  26413. fields[field] = fields[field] || [];
  26414. fields[field].push(error);
  26415. });
  26416. return fields;
  26417. }
  26418. function format() {
  26419. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  26420. args[_key] = arguments[_key];
  26421. }
  26422. var i = 1;
  26423. var f = args[0];
  26424. var len = args.length;
  26425. if (typeof f === 'function') {
  26426. return f.apply(null, args.slice(1));
  26427. }
  26428. if (typeof f === 'string') {
  26429. var str = String(f).replace(formatRegExp, function (x) {
  26430. if (x === '%%') {
  26431. return '%';
  26432. }
  26433. if (i >= len) {
  26434. return x;
  26435. }
  26436. switch (x) {
  26437. case '%s':
  26438. return String(args[i++]);
  26439. case '%d':
  26440. return Number(args[i++]);
  26441. case '%j':
  26442. try {
  26443. return JSON.stringify(args[i++]);
  26444. } catch (_) {
  26445. return '[Circular]';
  26446. }
  26447. break;
  26448. default:
  26449. return x;
  26450. }
  26451. });
  26452. for (var arg = args[i]; i < len; arg = args[++i]) {
  26453. str += " ".concat(arg);
  26454. }
  26455. return str;
  26456. }
  26457. return f;
  26458. }
  26459. function isNativeStringType(type) {
  26460. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  26461. }
  26462. function isEmptyValue(value, type) {
  26463. if (value === undefined || value === null) {
  26464. return true;
  26465. }
  26466. if (type === 'array' && Array.isArray(value) && !value.length) {
  26467. return true;
  26468. }
  26469. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  26470. return true;
  26471. }
  26472. return false;
  26473. }
  26474. function asyncParallelArray(arr, func, callback) {
  26475. var results = [];
  26476. var total = 0;
  26477. var arrLength = arr.length;
  26478. function count(errors) {
  26479. results.push.apply(results, errors);
  26480. total++;
  26481. if (total === arrLength) {
  26482. callback(results);
  26483. }
  26484. }
  26485. arr.forEach(function (a) {
  26486. func(a, count);
  26487. });
  26488. }
  26489. function asyncSerialArray(arr, func, callback) {
  26490. var index = 0;
  26491. var arrLength = arr.length;
  26492. function next(errors) {
  26493. if (errors && errors.length) {
  26494. callback(errors);
  26495. return;
  26496. }
  26497. var original = index;
  26498. index += 1;
  26499. if (original < arrLength) {
  26500. func(arr[original], next);
  26501. } else {
  26502. callback([]);
  26503. }
  26504. }
  26505. next([]);
  26506. }
  26507. function flattenObjArr(objArr) {
  26508. var ret = [];
  26509. Object.keys(objArr).forEach(function (k) {
  26510. ret.push.apply(ret, objArr[k]);
  26511. });
  26512. return ret;
  26513. }
  26514. function asyncMap(objArr, option, func, callback) {
  26515. if (option.first) {
  26516. var _pending = new Promise(function (resolve, reject) {
  26517. var next = function next(errors) {
  26518. callback(errors);
  26519. return errors.length ? reject({
  26520. errors: errors,
  26521. fields: convertFieldsError(errors)
  26522. }) : resolve();
  26523. };
  26524. var flattenArr = flattenObjArr(objArr);
  26525. asyncSerialArray(flattenArr, func, next);
  26526. });
  26527. _pending.catch(function (e) {
  26528. return e;
  26529. });
  26530. return _pending;
  26531. }
  26532. var firstFields = option.firstFields || [];
  26533. if (firstFields === true) {
  26534. firstFields = Object.keys(objArr);
  26535. }
  26536. var objArrKeys = Object.keys(objArr);
  26537. var objArrLength = objArrKeys.length;
  26538. var total = 0;
  26539. var results = [];
  26540. var pending = new Promise(function (resolve, reject) {
  26541. var next = function next(errors) {
  26542. results.push.apply(results, errors);
  26543. total++;
  26544. if (total === objArrLength) {
  26545. callback(results);
  26546. return results.length ? reject({
  26547. errors: results,
  26548. fields: convertFieldsError(results)
  26549. }) : resolve();
  26550. }
  26551. };
  26552. if (!objArrKeys.length) {
  26553. callback(results);
  26554. resolve();
  26555. }
  26556. objArrKeys.forEach(function (key) {
  26557. var arr = objArr[key];
  26558. if (firstFields.indexOf(key) !== -1) {
  26559. asyncSerialArray(arr, func, next);
  26560. } else {
  26561. asyncParallelArray(arr, func, next);
  26562. }
  26563. });
  26564. });
  26565. pending.catch(function (e) {
  26566. return e;
  26567. });
  26568. return pending;
  26569. }
  26570. function complementError(rule) {
  26571. return function (oe) {
  26572. if (oe && oe.message) {
  26573. oe.field = oe.field || rule.fullField;
  26574. return oe;
  26575. }
  26576. return {
  26577. message: typeof oe === 'function' ? oe() : oe,
  26578. field: oe.field || rule.fullField
  26579. };
  26580. };
  26581. }
  26582. function deepMerge(target, source) {
  26583. if (source) {
  26584. for (var s in source) {
  26585. if (source.hasOwnProperty(s)) {
  26586. var value = source[s];
  26587. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  26588. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  26589. } else {
  26590. target[s] = value;
  26591. }
  26592. }
  26593. }
  26594. }
  26595. return target;
  26596. }
  26597. /**
  26598. * Rule for validating required fields.
  26599. *
  26600. * @param rule The validation rule.
  26601. * @param value The value of the field on the source object.
  26602. * @param source The source object being validated.
  26603. * @param errors An array of errors that this rule may add
  26604. * validation errors to.
  26605. * @param options The validation options.
  26606. * @param options.messages The validation messages.
  26607. */
  26608. function required(rule, value, source, errors, options, type) {
  26609. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  26610. errors.push(format(options.messages.required, rule.fullField));
  26611. }
  26612. }
  26613. /**
  26614. * Rule for validating whitespace.
  26615. *
  26616. * @param rule The validation rule.
  26617. * @param value The value of the field on the source object.
  26618. * @param source The source object being validated.
  26619. * @param errors An array of errors that this rule may add
  26620. * validation errors to.
  26621. * @param options The validation options.
  26622. * @param options.messages The validation messages.
  26623. */
  26624. function whitespace(rule, value, source, errors, options) {
  26625. if (/^\s+$/.test(value) || value === '') {
  26626. errors.push(format(options.messages.whitespace, rule.fullField));
  26627. }
  26628. }
  26629. /* eslint max-len:0 */
  26630. var pattern = {
  26631. // http://emailregex.com/
  26632. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  26633. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
  26634. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  26635. };
  26636. var types = {
  26637. integer: function integer(value) {
  26638. return /^(-)?\d+$/.test(value);
  26639. },
  26640. float: function float(value) {
  26641. return /^(-)?\d+(\.\d+)?$/.test(value);
  26642. },
  26643. array: function array(value) {
  26644. return Array.isArray(value);
  26645. },
  26646. regexp: function regexp(value) {
  26647. if (value instanceof RegExp) {
  26648. return true;
  26649. }
  26650. try {
  26651. return !!new RegExp(value);
  26652. } catch (e) {
  26653. return false;
  26654. }
  26655. },
  26656. date: function date(value) {
  26657. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  26658. },
  26659. number: function number(value) {
  26660. if (isNaN(value)) {
  26661. return false;
  26662. }
  26663. // 修改源码,将字符串数值先转为数值
  26664. return typeof +value === 'number';
  26665. },
  26666. object: function object(value) {
  26667. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  26668. },
  26669. method: function method(value) {
  26670. return typeof value === 'function';
  26671. },
  26672. email: function email(value) {
  26673. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  26674. },
  26675. url: function url(value) {
  26676. return typeof value === 'string' && !!value.match(pattern.url);
  26677. },
  26678. hex: function hex(value) {
  26679. return typeof value === 'string' && !!value.match(pattern.hex);
  26680. }
  26681. };
  26682. /**
  26683. * Rule for validating the type of a value.
  26684. *
  26685. * @param rule The validation rule.
  26686. * @param value The value of the field on the source object.
  26687. * @param source The source object being validated.
  26688. * @param errors An array of errors that this rule may add
  26689. * validation errors to.
  26690. * @param options The validation options.
  26691. * @param options.messages The validation messages.
  26692. */
  26693. function type(rule, value, source, errors, options) {
  26694. if (rule.required && value === undefined) {
  26695. required(rule, value, source, errors, options);
  26696. return;
  26697. }
  26698. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  26699. var ruleType = rule.type;
  26700. if (custom.indexOf(ruleType) > -1) {
  26701. if (!types[ruleType](value)) {
  26702. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  26703. } // straight typeof check
  26704. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  26705. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  26706. }
  26707. }
  26708. /**
  26709. * Rule for validating minimum and maximum allowed values.
  26710. *
  26711. * @param rule The validation rule.
  26712. * @param value The value of the field on the source object.
  26713. * @param source The source object being validated.
  26714. * @param errors An array of errors that this rule may add
  26715. * validation errors to.
  26716. * @param options The validation options.
  26717. * @param options.messages The validation messages.
  26718. */
  26719. function range(rule, value, source, errors, options) {
  26720. var len = typeof rule.len === 'number';
  26721. var min = typeof rule.min === 'number';
  26722. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  26723. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  26724. var val = value;
  26725. var key = null;
  26726. var num = typeof value === 'number';
  26727. var str = typeof value === 'string';
  26728. var arr = Array.isArray(value);
  26729. if (num) {
  26730. key = 'number';
  26731. } else if (str) {
  26732. key = 'string';
  26733. } else if (arr) {
  26734. key = 'array';
  26735. } // if the value is not of a supported type for range validation
  26736. // the validation rule rule should use the
  26737. // type property to also test for a particular type
  26738. if (!key) {
  26739. return false;
  26740. }
  26741. if (arr) {
  26742. val = value.length;
  26743. }
  26744. if (str) {
  26745. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  26746. val = value.replace(spRegexp, '_').length;
  26747. }
  26748. if (len) {
  26749. if (val !== rule.len) {
  26750. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  26751. }
  26752. } else if (min && !max && val < rule.min) {
  26753. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  26754. } else if (max && !min && val > rule.max) {
  26755. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  26756. } else if (min && max && (val < rule.min || val > rule.max)) {
  26757. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  26758. }
  26759. }
  26760. var ENUM = 'enum';
  26761. /**
  26762. * Rule for validating a value exists in an enumerable list.
  26763. *
  26764. * @param rule The validation rule.
  26765. * @param value The value of the field on the source object.
  26766. * @param source The source object being validated.
  26767. * @param errors An array of errors that this rule may add
  26768. * validation errors to.
  26769. * @param options The validation options.
  26770. * @param options.messages The validation messages.
  26771. */
  26772. function enumerable(rule, value, source, errors, options) {
  26773. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  26774. if (rule[ENUM].indexOf(value) === -1) {
  26775. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  26776. }
  26777. }
  26778. /**
  26779. * Rule for validating a regular expression pattern.
  26780. *
  26781. * @param rule The validation rule.
  26782. * @param value The value of the field on the source object.
  26783. * @param source The source object being validated.
  26784. * @param errors An array of errors that this rule may add
  26785. * validation errors to.
  26786. * @param options The validation options.
  26787. * @param options.messages The validation messages.
  26788. */
  26789. function pattern$1(rule, value, source, errors, options) {
  26790. if (rule.pattern) {
  26791. if (rule.pattern instanceof RegExp) {
  26792. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  26793. // flag is accidentally set to `true`, which in a validation scenario
  26794. // is not necessary and the result might be misleading
  26795. rule.pattern.lastIndex = 0;
  26796. if (!rule.pattern.test(value)) {
  26797. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  26798. }
  26799. } else if (typeof rule.pattern === 'string') {
  26800. var _pattern = new RegExp(rule.pattern);
  26801. if (!_pattern.test(value)) {
  26802. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  26803. }
  26804. }
  26805. }
  26806. }
  26807. var rules = {
  26808. required: required,
  26809. whitespace: whitespace,
  26810. type: type,
  26811. range: range,
  26812. enum: enumerable,
  26813. pattern: pattern$1
  26814. };
  26815. /**
  26816. * Performs validation for string types.
  26817. *
  26818. * @param rule The validation rule.
  26819. * @param value The value of the field on the source object.
  26820. * @param callback The callback function.
  26821. * @param source The source object being validated.
  26822. * @param options The validation options.
  26823. * @param options.messages The validation messages.
  26824. */
  26825. function string(rule, value, callback, source, options) {
  26826. var errors = [];
  26827. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  26828. if (validate) {
  26829. if (isEmptyValue(value, 'string') && !rule.required) {
  26830. return callback();
  26831. }
  26832. rules.required(rule, value, source, errors, options, 'string');
  26833. if (!isEmptyValue(value, 'string')) {
  26834. rules.type(rule, value, source, errors, options);
  26835. rules.range(rule, value, source, errors, options);
  26836. rules.pattern(rule, value, source, errors, options);
  26837. if (rule.whitespace === true) {
  26838. rules.whitespace(rule, value, source, errors, options);
  26839. }
  26840. }
  26841. }
  26842. callback(errors);
  26843. }
  26844. /**
  26845. * Validates a function.
  26846. *
  26847. * @param rule The validation rule.
  26848. * @param value The value of the field on the source object.
  26849. * @param callback The callback function.
  26850. * @param source The source object being validated.
  26851. * @param options The validation options.
  26852. * @param options.messages The validation messages.
  26853. */
  26854. function method(rule, value, callback, source, options) {
  26855. var errors = [];
  26856. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  26857. if (validate) {
  26858. if (isEmptyValue(value) && !rule.required) {
  26859. return callback();
  26860. }
  26861. rules.required(rule, value, source, errors, options);
  26862. if (value !== undefined) {
  26863. rules.type(rule, value, source, errors, options);
  26864. }
  26865. }
  26866. callback(errors);
  26867. }
  26868. /**
  26869. * Validates a number.
  26870. *
  26871. * @param rule The validation rule.
  26872. * @param value The value of the field on the source object.
  26873. * @param callback The callback function.
  26874. * @param source The source object being validated.
  26875. * @param options The validation options.
  26876. * @param options.messages The validation messages.
  26877. */
  26878. function number(rule, value, callback, source, options) {
  26879. var errors = [];
  26880. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  26881. if (validate) {
  26882. if (value === '') {
  26883. value = undefined;
  26884. }
  26885. if (isEmptyValue(value) && !rule.required) {
  26886. return callback();
  26887. }
  26888. rules.required(rule, value, source, errors, options);
  26889. if (value !== undefined) {
  26890. rules.type(rule, value, source, errors, options);
  26891. rules.range(rule, value, source, errors, options);
  26892. }
  26893. }
  26894. callback(errors);
  26895. }
  26896. /**
  26897. * Validates a boolean.
  26898. *
  26899. * @param rule The validation rule.
  26900. * @param value The value of the field on the source object.
  26901. * @param callback The callback function.
  26902. * @param source The source object being validated.
  26903. * @param options The validation options.
  26904. * @param options.messages The validation messages.
  26905. */
  26906. function _boolean(rule, value, callback, source, options) {
  26907. var errors = [];
  26908. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  26909. if (validate) {
  26910. if (isEmptyValue(value) && !rule.required) {
  26911. return callback();
  26912. }
  26913. rules.required(rule, value, source, errors, options);
  26914. if (value !== undefined) {
  26915. rules.type(rule, value, source, errors, options);
  26916. }
  26917. }
  26918. callback(errors);
  26919. }
  26920. /**
  26921. * Validates the regular expression type.
  26922. *
  26923. * @param rule The validation rule.
  26924. * @param value The value of the field on the source object.
  26925. * @param callback The callback function.
  26926. * @param source The source object being validated.
  26927. * @param options The validation options.
  26928. * @param options.messages The validation messages.
  26929. */
  26930. function regexp(rule, value, callback, source, options) {
  26931. var errors = [];
  26932. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  26933. if (validate) {
  26934. if (isEmptyValue(value) && !rule.required) {
  26935. return callback();
  26936. }
  26937. rules.required(rule, value, source, errors, options);
  26938. if (!isEmptyValue(value)) {
  26939. rules.type(rule, value, source, errors, options);
  26940. }
  26941. }
  26942. callback(errors);
  26943. }
  26944. /**
  26945. * Validates a number is an integer.
  26946. *
  26947. * @param rule The validation rule.
  26948. * @param value The value of the field on the source object.
  26949. * @param callback The callback function.
  26950. * @param source The source object being validated.
  26951. * @param options The validation options.
  26952. * @param options.messages The validation messages.
  26953. */
  26954. function integer(rule, value, callback, source, options) {
  26955. var errors = [];
  26956. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  26957. if (validate) {
  26958. if (isEmptyValue(value) && !rule.required) {
  26959. return callback();
  26960. }
  26961. rules.required(rule, value, source, errors, options);
  26962. if (value !== undefined) {
  26963. rules.type(rule, value, source, errors, options);
  26964. rules.range(rule, value, source, errors, options);
  26965. }
  26966. }
  26967. callback(errors);
  26968. }
  26969. /**
  26970. * Validates a number is a floating point number.
  26971. *
  26972. * @param rule The validation rule.
  26973. * @param value The value of the field on the source object.
  26974. * @param callback The callback function.
  26975. * @param source The source object being validated.
  26976. * @param options The validation options.
  26977. * @param options.messages The validation messages.
  26978. */
  26979. function floatFn(rule, value, callback, source, options) {
  26980. var errors = [];
  26981. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  26982. if (validate) {
  26983. if (isEmptyValue(value) && !rule.required) {
  26984. return callback();
  26985. }
  26986. rules.required(rule, value, source, errors, options);
  26987. if (value !== undefined) {
  26988. rules.type(rule, value, source, errors, options);
  26989. rules.range(rule, value, source, errors, options);
  26990. }
  26991. }
  26992. callback(errors);
  26993. }
  26994. /**
  26995. * Validates an array.
  26996. *
  26997. * @param rule The validation rule.
  26998. * @param value The value of the field on the source object.
  26999. * @param callback The callback function.
  27000. * @param source The source object being validated.
  27001. * @param options The validation options.
  27002. * @param options.messages The validation messages.
  27003. */
  27004. function array(rule, value, callback, source, options) {
  27005. var errors = [];
  27006. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  27007. if (validate) {
  27008. if (isEmptyValue(value, 'array') && !rule.required) {
  27009. return callback();
  27010. }
  27011. rules.required(rule, value, source, errors, options, 'array');
  27012. if (!isEmptyValue(value, 'array')) {
  27013. rules.type(rule, value, source, errors, options);
  27014. rules.range(rule, value, source, errors, options);
  27015. }
  27016. }
  27017. callback(errors);
  27018. }
  27019. /**
  27020. * Validates an object.
  27021. *
  27022. * @param rule The validation rule.
  27023. * @param value The value of the field on the source object.
  27024. * @param callback The callback function.
  27025. * @param source The source object being validated.
  27026. * @param options The validation options.
  27027. * @param options.messages The validation messages.
  27028. */
  27029. function object(rule, value, callback, source, options) {
  27030. var errors = [];
  27031. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  27032. if (validate) {
  27033. if (isEmptyValue(value) && !rule.required) {
  27034. return callback();
  27035. }
  27036. rules.required(rule, value, source, errors, options);
  27037. if (value !== undefined) {
  27038. rules.type(rule, value, source, errors, options);
  27039. }
  27040. }
  27041. callback(errors);
  27042. }
  27043. var ENUM$1 = 'enum';
  27044. /**
  27045. * Validates an enumerable list.
  27046. *
  27047. * @param rule The validation rule.
  27048. * @param value The value of the field on the source object.
  27049. * @param callback The callback function.
  27050. * @param source The source object being validated.
  27051. * @param options The validation options.
  27052. * @param options.messages The validation messages.
  27053. */
  27054. function enumerable$1(rule, value, callback, source, options) {
  27055. var errors = [];
  27056. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  27057. if (validate) {
  27058. if (isEmptyValue(value) && !rule.required) {
  27059. return callback();
  27060. }
  27061. rules.required(rule, value, source, errors, options);
  27062. if (value !== undefined) {
  27063. rules[ENUM$1](rule, value, source, errors, options);
  27064. }
  27065. }
  27066. callback(errors);
  27067. }
  27068. /**
  27069. * Validates a regular expression pattern.
  27070. *
  27071. * Performs validation when a rule only contains
  27072. * a pattern property but is not declared as a string type.
  27073. *
  27074. * @param rule The validation rule.
  27075. * @param value The value of the field on the source object.
  27076. * @param callback The callback function.
  27077. * @param source The source object being validated.
  27078. * @param options The validation options.
  27079. * @param options.messages The validation messages.
  27080. */
  27081. function pattern$2(rule, value, callback, source, options) {
  27082. var errors = [];
  27083. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  27084. if (validate) {
  27085. if (isEmptyValue(value, 'string') && !rule.required) {
  27086. return callback();
  27087. }
  27088. rules.required(rule, value, source, errors, options);
  27089. if (!isEmptyValue(value, 'string')) {
  27090. rules.pattern(rule, value, source, errors, options);
  27091. }
  27092. }
  27093. callback(errors);
  27094. }
  27095. function date(rule, value, callback, source, options) {
  27096. var errors = [];
  27097. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  27098. if (validate) {
  27099. if (isEmptyValue(value) && !rule.required) {
  27100. return callback();
  27101. }
  27102. rules.required(rule, value, source, errors, options);
  27103. if (!isEmptyValue(value)) {
  27104. var dateObject;
  27105. if (typeof value === 'number') {
  27106. dateObject = new Date(value);
  27107. } else {
  27108. dateObject = value;
  27109. }
  27110. rules.type(rule, dateObject, source, errors, options);
  27111. if (dateObject) {
  27112. rules.range(rule, dateObject.getTime(), source, errors, options);
  27113. }
  27114. }
  27115. }
  27116. callback(errors);
  27117. }
  27118. function required$1(rule, value, callback, source, options) {
  27119. var errors = [];
  27120. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  27121. rules.required(rule, value, source, errors, options, type);
  27122. callback(errors);
  27123. }
  27124. function type$1(rule, value, callback, source, options) {
  27125. var ruleType = rule.type;
  27126. var errors = [];
  27127. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  27128. if (validate) {
  27129. if (isEmptyValue(value, ruleType) && !rule.required) {
  27130. return callback();
  27131. }
  27132. rules.required(rule, value, source, errors, options, ruleType);
  27133. if (!isEmptyValue(value, ruleType)) {
  27134. rules.type(rule, value, source, errors, options);
  27135. }
  27136. }
  27137. callback(errors);
  27138. }
  27139. /**
  27140. * Performs validation for any type.
  27141. *
  27142. * @param rule The validation rule.
  27143. * @param value The value of the field on the source object.
  27144. * @param callback The callback function.
  27145. * @param source The source object being validated.
  27146. * @param options The validation options.
  27147. * @param options.messages The validation messages.
  27148. */
  27149. function any(rule, value, callback, source, options) {
  27150. var errors = [];
  27151. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  27152. if (validate) {
  27153. if (isEmptyValue(value) && !rule.required) {
  27154. return callback();
  27155. }
  27156. rules.required(rule, value, source, errors, options);
  27157. }
  27158. callback(errors);
  27159. }
  27160. var validators = {
  27161. string: string,
  27162. method: method,
  27163. number: number,
  27164. boolean: _boolean,
  27165. regexp: regexp,
  27166. integer: integer,
  27167. float: floatFn,
  27168. array: array,
  27169. object: object,
  27170. enum: enumerable$1,
  27171. pattern: pattern$2,
  27172. date: date,
  27173. url: type$1,
  27174. hex: type$1,
  27175. email: type$1,
  27176. required: required$1,
  27177. any: any
  27178. };
  27179. function newMessages() {
  27180. return {
  27181. default: 'Validation error on field %s',
  27182. required: '%s is required',
  27183. enum: '%s must be one of %s',
  27184. whitespace: '%s cannot be empty',
  27185. date: {
  27186. format: '%s date %s is invalid for format %s',
  27187. parse: '%s date could not be parsed, %s is invalid ',
  27188. invalid: '%s date %s is invalid'
  27189. },
  27190. types: {
  27191. string: '%s is not a %s',
  27192. method: '%s is not a %s (function)',
  27193. array: '%s is not an %s',
  27194. object: '%s is not an %s',
  27195. number: '%s is not a %s',
  27196. date: '%s is not a %s',
  27197. boolean: '%s is not a %s',
  27198. integer: '%s is not an %s',
  27199. float: '%s is not a %s',
  27200. regexp: '%s is not a valid %s',
  27201. email: '%s is not a valid %s',
  27202. url: '%s is not a valid %s',
  27203. hex: '%s is not a valid %s'
  27204. },
  27205. string: {
  27206. len: '%s must be exactly %s characters',
  27207. min: '%s must be at least %s characters',
  27208. max: '%s cannot be longer than %s characters',
  27209. range: '%s must be between %s and %s characters'
  27210. },
  27211. number: {
  27212. len: '%s must equal %s',
  27213. min: '%s cannot be less than %s',
  27214. max: '%s cannot be greater than %s',
  27215. range: '%s must be between %s and %s'
  27216. },
  27217. array: {
  27218. len: '%s must be exactly %s in length',
  27219. min: '%s cannot be less than %s in length',
  27220. max: '%s cannot be greater than %s in length',
  27221. range: '%s must be between %s and %s in length'
  27222. },
  27223. pattern: {
  27224. mismatch: '%s value %s does not match pattern %s'
  27225. },
  27226. clone: function clone() {
  27227. var cloned = JSON.parse(JSON.stringify(this));
  27228. cloned.clone = this.clone;
  27229. return cloned;
  27230. }
  27231. };
  27232. }
  27233. var messages = newMessages();
  27234. /**
  27235. * Encapsulates a validation schema.
  27236. *
  27237. * @param descriptor An object declaring validation rules
  27238. * for this schema.
  27239. */
  27240. function Schema(descriptor) {
  27241. this.rules = null;
  27242. this._messages = messages;
  27243. this.define(descriptor);
  27244. }
  27245. Schema.prototype = {
  27246. messages: function messages(_messages) {
  27247. if (_messages) {
  27248. this._messages = deepMerge(newMessages(), _messages);
  27249. }
  27250. return this._messages;
  27251. },
  27252. define: function define(rules) {
  27253. if (!rules) {
  27254. throw new Error('Cannot configure a schema with no rules');
  27255. }
  27256. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  27257. throw new Error('Rules must be an object');
  27258. }
  27259. this.rules = {};
  27260. var z;
  27261. var item;
  27262. for (z in rules) {
  27263. if (rules.hasOwnProperty(z)) {
  27264. item = rules[z];
  27265. this.rules[z] = Array.isArray(item) ? item : [item];
  27266. }
  27267. }
  27268. },
  27269. validate: function validate(source_, o, oc) {
  27270. var _this = this;
  27271. if (o === void 0) {
  27272. o = {};
  27273. }
  27274. if (oc === void 0) {
  27275. oc = function oc() {};
  27276. }
  27277. var source = source_;
  27278. var options = o;
  27279. var callback = oc;
  27280. if (typeof options === 'function') {
  27281. callback = options;
  27282. options = {};
  27283. }
  27284. if (!this.rules || Object.keys(this.rules).length === 0) {
  27285. if (callback) {
  27286. callback();
  27287. }
  27288. return Promise.resolve();
  27289. }
  27290. function complete(results) {
  27291. var i;
  27292. var errors = [];
  27293. var fields = {};
  27294. function add(e) {
  27295. if (Array.isArray(e)) {
  27296. var _errors;
  27297. errors = (_errors = errors).concat.apply(_errors, e);
  27298. } else {
  27299. errors.push(e);
  27300. }
  27301. }
  27302. for (i = 0; i < results.length; i++) {
  27303. add(results[i]);
  27304. }
  27305. if (!errors.length) {
  27306. errors = null;
  27307. fields = null;
  27308. } else {
  27309. fields = convertFieldsError(errors);
  27310. }
  27311. callback(errors, fields);
  27312. }
  27313. if (options.messages) {
  27314. var messages$1 = this.messages();
  27315. if (messages$1 === messages) {
  27316. messages$1 = newMessages();
  27317. }
  27318. deepMerge(messages$1, options.messages);
  27319. options.messages = messages$1;
  27320. } else {
  27321. options.messages = this.messages();
  27322. }
  27323. var arr;
  27324. var value;
  27325. var series = {};
  27326. var keys = options.keys || Object.keys(this.rules);
  27327. keys.forEach(function (z) {
  27328. arr = _this.rules[z];
  27329. value = source[z];
  27330. arr.forEach(function (r) {
  27331. var rule = r;
  27332. if (typeof rule.transform === 'function') {
  27333. if (source === source_) {
  27334. source = _objectSpread({}, source);
  27335. }
  27336. value = source[z] = rule.transform(value);
  27337. }
  27338. if (typeof rule === 'function') {
  27339. rule = {
  27340. validator: rule
  27341. };
  27342. } else {
  27343. rule = _objectSpread({}, rule);
  27344. }
  27345. rule.validator = _this.getValidationMethod(rule);
  27346. rule.field = z;
  27347. rule.fullField = rule.fullField || z;
  27348. rule.type = _this.getType(rule);
  27349. if (!rule.validator) {
  27350. return;
  27351. }
  27352. series[z] = series[z] || [];
  27353. series[z].push({
  27354. rule: rule,
  27355. value: value,
  27356. source: source,
  27357. field: z
  27358. });
  27359. });
  27360. });
  27361. var errorFields = {};
  27362. return asyncMap(series, options, function (data, doIt) {
  27363. var rule = data.rule;
  27364. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  27365. deep = deep && (rule.required || !rule.required && data.value);
  27366. rule.field = data.field;
  27367. function addFullfield(key, schema) {
  27368. return _objectSpread(_objectSpread({}, schema), {}, {
  27369. fullField: "".concat(rule.fullField, ".").concat(key)
  27370. });
  27371. }
  27372. function cb(e) {
  27373. if (e === void 0) {
  27374. e = [];
  27375. }
  27376. var errors = e;
  27377. if (!Array.isArray(errors)) {
  27378. errors = [errors];
  27379. }
  27380. if (!options.suppressWarning && errors.length) {
  27381. Schema.warning('async-validator:', errors);
  27382. }
  27383. if (errors.length && rule.message) {
  27384. errors = [].concat(rule.message);
  27385. }
  27386. errors = errors.map(complementError(rule));
  27387. if (options.first && errors.length) {
  27388. errorFields[rule.field] = 1;
  27389. return doIt(errors);
  27390. }
  27391. if (!deep) {
  27392. doIt(errors);
  27393. } else {
  27394. // if rule is required but the target object
  27395. // does not exist fail at the rule level and don't
  27396. // go deeper
  27397. if (rule.required && !data.value) {
  27398. if (rule.message) {
  27399. errors = [].concat(rule.message).map(complementError(rule));
  27400. } else if (options.error) {
  27401. errors = [options.error(rule, format(options.messages.required, rule.field))];
  27402. } else {
  27403. errors = [];
  27404. }
  27405. return doIt(errors);
  27406. }
  27407. var fieldsSchema = {};
  27408. if (rule.defaultField) {
  27409. for (var k in data.value) {
  27410. if (data.value.hasOwnProperty(k)) {
  27411. fieldsSchema[k] = rule.defaultField;
  27412. }
  27413. }
  27414. }
  27415. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  27416. for (var f in fieldsSchema) {
  27417. if (fieldsSchema.hasOwnProperty(f)) {
  27418. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  27419. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  27420. }
  27421. }
  27422. var schema = new Schema(fieldsSchema);
  27423. schema.messages(options.messages);
  27424. if (data.rule.options) {
  27425. data.rule.options.messages = options.messages;
  27426. data.rule.options.error = options.error;
  27427. }
  27428. schema.validate(data.value, data.rule.options || options, function (errs) {
  27429. var finalErrors = [];
  27430. if (errors && errors.length) {
  27431. finalErrors.push.apply(finalErrors, errors);
  27432. }
  27433. if (errs && errs.length) {
  27434. finalErrors.push.apply(finalErrors, errs);
  27435. }
  27436. doIt(finalErrors.length ? finalErrors : null);
  27437. });
  27438. }
  27439. }
  27440. var res;
  27441. if (rule.asyncValidator) {
  27442. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  27443. } else if (rule.validator) {
  27444. res = rule.validator(rule, data.value, cb, data.source, options);
  27445. if (res === true) {
  27446. cb();
  27447. } else if (res === false) {
  27448. cb(rule.message || "".concat(rule.field, " fails"));
  27449. } else if (res instanceof Array) {
  27450. cb(res);
  27451. } else if (res instanceof Error) {
  27452. cb(res.message);
  27453. }
  27454. }
  27455. if (res && res.then) {
  27456. res.then(function () {
  27457. return cb();
  27458. }, function (e) {
  27459. return cb(e);
  27460. });
  27461. }
  27462. }, function (results) {
  27463. complete(results);
  27464. });
  27465. },
  27466. getType: function getType(rule) {
  27467. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  27468. rule.type = 'pattern';
  27469. }
  27470. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  27471. throw new Error(format('Unknown rule type %s', rule.type));
  27472. }
  27473. return rule.type || 'string';
  27474. },
  27475. getValidationMethod: function getValidationMethod(rule) {
  27476. if (typeof rule.validator === 'function') {
  27477. return rule.validator;
  27478. }
  27479. var keys = Object.keys(rule);
  27480. var messageIndex = keys.indexOf('message');
  27481. if (messageIndex !== -1) {
  27482. keys.splice(messageIndex, 1);
  27483. }
  27484. if (keys.length === 1 && keys[0] === 'required') {
  27485. return validators.required;
  27486. }
  27487. return validators[this.getType(rule)] || false;
  27488. }
  27489. };
  27490. Schema.register = function register(type, validator) {
  27491. if (typeof validator !== 'function') {
  27492. throw new Error('Cannot register a validator by type, validator is not a function');
  27493. }
  27494. validators[type] = validator;
  27495. };
  27496. Schema.warning = warning;
  27497. Schema.messages = messages;
  27498. var _default = Schema; // # sourceMappingURL=index.js.map
  27499. exports.default = _default;
  27500. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../HBuilderX.3.4.18.20220630/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 48)))
  27501. /***/ }),
  27502. /* 401 */,
  27503. /* 402 */,
  27504. /* 403 */,
  27505. /* 404 */,
  27506. /* 405 */,
  27507. /* 406 */
  27508. /*!**********************************************************************************!*\
  27509. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-icon/icons.js ***!
  27510. \**********************************************************************************/
  27511. /*! no static exports found */
  27512. /***/ (function(module, exports, __webpack_require__) {
  27513. "use strict";
  27514. Object.defineProperty(exports, "__esModule", {
  27515. value: true
  27516. });
  27517. exports.default = void 0;
  27518. var _default = {
  27519. 'uicon-level': "\uE693",
  27520. 'uicon-column-line': "\uE68E",
  27521. 'uicon-checkbox-mark': "\uE807",
  27522. 'uicon-folder': "\uE7F5",
  27523. 'uicon-movie': "\uE7F6",
  27524. 'uicon-star-fill': "\uE669",
  27525. 'uicon-star': "\uE65F",
  27526. 'uicon-phone-fill': "\uE64F",
  27527. 'uicon-phone': "\uE622",
  27528. 'uicon-apple-fill': "\uE881",
  27529. 'uicon-chrome-circle-fill': "\uE885",
  27530. 'uicon-backspace': "\uE67B",
  27531. 'uicon-attach': "\uE632",
  27532. 'uicon-cut': "\uE948",
  27533. 'uicon-empty-car': "\uE602",
  27534. 'uicon-empty-coupon': "\uE682",
  27535. 'uicon-empty-address': "\uE646",
  27536. 'uicon-empty-favor': "\uE67C",
  27537. 'uicon-empty-permission': "\uE686",
  27538. 'uicon-empty-news': "\uE687",
  27539. 'uicon-empty-search': "\uE664",
  27540. 'uicon-github-circle-fill': "\uE887",
  27541. 'uicon-rmb': "\uE608",
  27542. 'uicon-person-delete-fill': "\uE66A",
  27543. 'uicon-reload': "\uE788",
  27544. 'uicon-order': "\uE68F",
  27545. 'uicon-server-man': "\uE6BC",
  27546. 'uicon-search': "\uE62A",
  27547. 'uicon-fingerprint': "\uE955",
  27548. 'uicon-more-dot-fill': "\uE630",
  27549. 'uicon-scan': "\uE662",
  27550. 'uicon-share-square': "\uE60B",
  27551. 'uicon-map': "\uE61D",
  27552. 'uicon-map-fill': "\uE64E",
  27553. 'uicon-tags': "\uE629",
  27554. 'uicon-tags-fill': "\uE651",
  27555. 'uicon-bookmark-fill': "\uE63B",
  27556. 'uicon-bookmark': "\uE60A",
  27557. 'uicon-eye': "\uE613",
  27558. 'uicon-eye-fill': "\uE641",
  27559. 'uicon-mic': "\uE64A",
  27560. 'uicon-mic-off': "\uE649",
  27561. 'uicon-calendar': "\uE66E",
  27562. 'uicon-calendar-fill': "\uE634",
  27563. 'uicon-trash': "\uE623",
  27564. 'uicon-trash-fill': "\uE658",
  27565. 'uicon-play-left': "\uE66D",
  27566. 'uicon-play-right': "\uE610",
  27567. 'uicon-minus': "\uE618",
  27568. 'uicon-plus': "\uE62D",
  27569. 'uicon-info': "\uE653",
  27570. 'uicon-info-circle': "\uE7D2",
  27571. 'uicon-info-circle-fill': "\uE64B",
  27572. 'uicon-question': "\uE715",
  27573. 'uicon-error': "\uE6D3",
  27574. 'uicon-close': "\uE685",
  27575. 'uicon-checkmark': "\uE6A8",
  27576. 'uicon-android-circle-fill': "\uE67E",
  27577. 'uicon-android-fill': "\uE67D",
  27578. 'uicon-ie': "\uE87B",
  27579. 'uicon-IE-circle-fill': "\uE889",
  27580. 'uicon-google': "\uE87A",
  27581. 'uicon-google-circle-fill': "\uE88A",
  27582. 'uicon-setting-fill': "\uE872",
  27583. 'uicon-setting': "\uE61F",
  27584. 'uicon-minus-square-fill': "\uE855",
  27585. 'uicon-plus-square-fill': "\uE856",
  27586. 'uicon-heart': "\uE7DF",
  27587. 'uicon-heart-fill': "\uE851",
  27588. 'uicon-camera': "\uE7D7",
  27589. 'uicon-camera-fill': "\uE870",
  27590. 'uicon-more-circle': "\uE63E",
  27591. 'uicon-more-circle-fill': "\uE645",
  27592. 'uicon-chat': "\uE620",
  27593. 'uicon-chat-fill': "\uE61E",
  27594. 'uicon-bag-fill': "\uE617",
  27595. 'uicon-bag': "\uE619",
  27596. 'uicon-error-circle-fill': "\uE62C",
  27597. 'uicon-error-circle': "\uE624",
  27598. 'uicon-close-circle': "\uE63F",
  27599. 'uicon-close-circle-fill': "\uE637",
  27600. 'uicon-checkmark-circle': "\uE63D",
  27601. 'uicon-checkmark-circle-fill': "\uE635",
  27602. 'uicon-question-circle-fill': "\uE666",
  27603. 'uicon-question-circle': "\uE625",
  27604. 'uicon-share': "\uE631",
  27605. 'uicon-share-fill': "\uE65E",
  27606. 'uicon-shopping-cart': "\uE621",
  27607. 'uicon-shopping-cart-fill': "\uE65D",
  27608. 'uicon-bell': "\uE609",
  27609. 'uicon-bell-fill': "\uE640",
  27610. 'uicon-list': "\uE650",
  27611. 'uicon-list-dot': "\uE616",
  27612. 'uicon-zhihu': "\uE6BA",
  27613. 'uicon-zhihu-circle-fill': "\uE709",
  27614. 'uicon-zhifubao': "\uE6B9",
  27615. 'uicon-zhifubao-circle-fill': "\uE6B8",
  27616. 'uicon-weixin-circle-fill': "\uE6B1",
  27617. 'uicon-weixin-fill': "\uE6B2",
  27618. 'uicon-twitter-circle-fill': "\uE6AB",
  27619. 'uicon-twitter': "\uE6AA",
  27620. 'uicon-taobao-circle-fill': "\uE6A7",
  27621. 'uicon-taobao': "\uE6A6",
  27622. 'uicon-weibo-circle-fill': "\uE6A5",
  27623. 'uicon-weibo': "\uE6A4",
  27624. 'uicon-qq-fill': "\uE6A1",
  27625. 'uicon-qq-circle-fill': "\uE6A0",
  27626. 'uicon-moments-circel-fill': "\uE69A",
  27627. 'uicon-moments': "\uE69B",
  27628. 'uicon-qzone': "\uE695",
  27629. 'uicon-qzone-circle-fill': "\uE696",
  27630. 'uicon-baidu-circle-fill': "\uE680",
  27631. 'uicon-baidu': "\uE681",
  27632. 'uicon-facebook-circle-fill': "\uE68A",
  27633. 'uicon-facebook': "\uE689",
  27634. 'uicon-car': "\uE60C",
  27635. 'uicon-car-fill': "\uE636",
  27636. 'uicon-warning-fill': "\uE64D",
  27637. 'uicon-warning': "\uE694",
  27638. 'uicon-clock-fill': "\uE638",
  27639. 'uicon-clock': "\uE60F",
  27640. 'uicon-edit-pen': "\uE612",
  27641. 'uicon-edit-pen-fill': "\uE66B",
  27642. 'uicon-email': "\uE611",
  27643. 'uicon-email-fill': "\uE642",
  27644. 'uicon-minus-circle': "\uE61B",
  27645. 'uicon-minus-circle-fill': "\uE652",
  27646. 'uicon-plus-circle': "\uE62E",
  27647. 'uicon-plus-circle-fill': "\uE661",
  27648. 'uicon-file-text': "\uE663",
  27649. 'uicon-file-text-fill': "\uE665",
  27650. 'uicon-pushpin': "\uE7E3",
  27651. 'uicon-pushpin-fill': "\uE86E",
  27652. 'uicon-grid': "\uE673",
  27653. 'uicon-grid-fill': "\uE678",
  27654. 'uicon-play-circle': "\uE647",
  27655. 'uicon-play-circle-fill': "\uE655",
  27656. 'uicon-pause-circle-fill': "\uE654",
  27657. 'uicon-pause': "\uE8FA",
  27658. 'uicon-pause-circle': "\uE643",
  27659. 'uicon-eye-off': "\uE648",
  27660. 'uicon-eye-off-outline': "\uE62B",
  27661. 'uicon-gift-fill': "\uE65C",
  27662. 'uicon-gift': "\uE65B",
  27663. 'uicon-rmb-circle-fill': "\uE657",
  27664. 'uicon-rmb-circle': "\uE677",
  27665. 'uicon-kefu-ermai': "\uE656",
  27666. 'uicon-server-fill': "\uE751",
  27667. 'uicon-coupon-fill': "\uE8C4",
  27668. 'uicon-coupon': "\uE8AE",
  27669. 'uicon-integral': "\uE704",
  27670. 'uicon-integral-fill': "\uE703",
  27671. 'uicon-home-fill': "\uE964",
  27672. 'uicon-home': "\uE965",
  27673. 'uicon-hourglass-half-fill': "\uE966",
  27674. 'uicon-hourglass': "\uE967",
  27675. 'uicon-account': "\uE628",
  27676. 'uicon-plus-people-fill': "\uE626",
  27677. 'uicon-minus-people-fill': "\uE615",
  27678. 'uicon-account-fill': "\uE614",
  27679. 'uicon-thumb-down-fill': "\uE726",
  27680. 'uicon-thumb-down': "\uE727",
  27681. 'uicon-thumb-up': "\uE733",
  27682. 'uicon-thumb-up-fill': "\uE72F",
  27683. 'uicon-lock-fill': "\uE979",
  27684. 'uicon-lock-open': "\uE973",
  27685. 'uicon-lock-opened-fill': "\uE974",
  27686. 'uicon-lock': "\uE97A",
  27687. 'uicon-red-packet-fill': "\uE690",
  27688. 'uicon-photo-fill': "\uE98B",
  27689. 'uicon-photo': "\uE98D",
  27690. 'uicon-volume-off-fill': "\uE659",
  27691. 'uicon-volume-off': "\uE644",
  27692. 'uicon-volume-fill': "\uE670",
  27693. 'uicon-volume': "\uE633",
  27694. 'uicon-red-packet': "\uE691",
  27695. 'uicon-download': "\uE63C",
  27696. 'uicon-arrow-up-fill': "\uE6B0",
  27697. 'uicon-arrow-down-fill': "\uE600",
  27698. 'uicon-play-left-fill': "\uE675",
  27699. 'uicon-play-right-fill': "\uE676",
  27700. 'uicon-rewind-left-fill': "\uE679",
  27701. 'uicon-rewind-right-fill': "\uE67A",
  27702. 'uicon-arrow-downward': "\uE604",
  27703. 'uicon-arrow-leftward': "\uE601",
  27704. 'uicon-arrow-rightward': "\uE603",
  27705. 'uicon-arrow-upward': "\uE607",
  27706. 'uicon-arrow-down': "\uE60D",
  27707. 'uicon-arrow-right': "\uE605",
  27708. 'uicon-arrow-left': "\uE60E",
  27709. 'uicon-arrow-up': "\uE606",
  27710. 'uicon-skip-back-left': "\uE674",
  27711. 'uicon-skip-forward-right': "\uE672",
  27712. 'uicon-rewind-right': "\uE66F",
  27713. 'uicon-rewind-left': "\uE671",
  27714. 'uicon-arrow-right-double': "\uE68D",
  27715. 'uicon-arrow-left-double': "\uE68C",
  27716. 'uicon-wifi-off': "\uE668",
  27717. 'uicon-wifi': "\uE667",
  27718. 'uicon-empty-data': "\uE62F",
  27719. 'uicon-empty-history': "\uE684",
  27720. 'uicon-empty-list': "\uE68B",
  27721. 'uicon-empty-page': "\uE627",
  27722. 'uicon-empty-order': "\uE639",
  27723. 'uicon-man': "\uE697",
  27724. 'uicon-woman': "\uE69C",
  27725. 'uicon-man-add': "\uE61C",
  27726. 'uicon-man-add-fill': "\uE64C",
  27727. 'uicon-man-delete': "\uE61A",
  27728. 'uicon-man-delete-fill': "\uE66A",
  27729. 'uicon-zh': "\uE70A",
  27730. 'uicon-en': "\uE692"
  27731. };
  27732. exports.default = _default;
  27733. /***/ }),
  27734. /* 407 */
  27735. /*!**********************************************************************************!*\
  27736. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-icon/props.js ***!
  27737. \**********************************************************************************/
  27738. /*! no static exports found */
  27739. /***/ (function(module, exports, __webpack_require__) {
  27740. "use strict";
  27741. /* WEBPACK VAR INJECTION */(function(uni) {
  27742. Object.defineProperty(exports, "__esModule", {
  27743. value: true
  27744. });
  27745. exports.default = void 0;
  27746. var _default = {
  27747. props: {
  27748. // 图标类名
  27749. name: {
  27750. type: String,
  27751. default: uni.$u.props.icon.name
  27752. },
  27753. // 图标颜色,可接受主题色
  27754. color: {
  27755. type: String,
  27756. default: uni.$u.props.icon.color
  27757. },
  27758. // 字体大小,单位px
  27759. size: {
  27760. type: [String, Number],
  27761. default: uni.$u.props.icon.size
  27762. },
  27763. // 是否显示粗体
  27764. bold: {
  27765. type: Boolean,
  27766. default: uni.$u.props.icon.bold
  27767. },
  27768. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  27769. index: {
  27770. type: [String, Number],
  27771. default: uni.$u.props.icon.index
  27772. },
  27773. // 触摸图标时的类名
  27774. hoverClass: {
  27775. type: String,
  27776. default: uni.$u.props.icon.hoverClass
  27777. },
  27778. // 自定义扩展前缀,方便用户扩展自己的图标库
  27779. customPrefix: {
  27780. type: String,
  27781. default: uni.$u.props.icon.customPrefix
  27782. },
  27783. // 图标右边或者下面的文字
  27784. label: {
  27785. type: [String, Number],
  27786. default: uni.$u.props.icon.label
  27787. },
  27788. // label的位置,只能右边或者下边
  27789. labelPos: {
  27790. type: String,
  27791. default: uni.$u.props.icon.labelPos
  27792. },
  27793. // label的大小
  27794. labelSize: {
  27795. type: [String, Number],
  27796. default: uni.$u.props.icon.labelSize
  27797. },
  27798. // label的颜色
  27799. labelColor: {
  27800. type: String,
  27801. default: uni.$u.props.icon.labelColor
  27802. },
  27803. // label与图标的距离
  27804. space: {
  27805. type: [String, Number],
  27806. default: uni.$u.props.icon.space
  27807. },
  27808. // 图片的mode
  27809. imgMode: {
  27810. type: String,
  27811. default: uni.$u.props.icon.imgMode
  27812. },
  27813. // 用于显示图片小图标时,图片的宽度
  27814. width: {
  27815. type: [String, Number],
  27816. default: uni.$u.props.icon.width
  27817. },
  27818. // 用于显示图片小图标时,图片的高度
  27819. height: {
  27820. type: [String, Number],
  27821. default: uni.$u.props.icon.height
  27822. },
  27823. // 用于解决某些情况下,让图标垂直居中的用途
  27824. top: {
  27825. type: [String, Number],
  27826. default: uni.$u.props.icon.top
  27827. },
  27828. // 是否阻止事件传播
  27829. stop: {
  27830. type: Boolean,
  27831. default: uni.$u.props.icon.stop
  27832. }
  27833. }
  27834. };
  27835. exports.default = _default;
  27836. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27837. /***/ }),
  27838. /* 408 */,
  27839. /* 409 */,
  27840. /* 410 */,
  27841. /* 411 */,
  27842. /* 412 */,
  27843. /* 413 */,
  27844. /* 414 */,
  27845. /* 415 */
  27846. /*!**********************************************************************************!*\
  27847. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-line/props.js ***!
  27848. \**********************************************************************************/
  27849. /*! no static exports found */
  27850. /***/ (function(module, exports, __webpack_require__) {
  27851. "use strict";
  27852. /* WEBPACK VAR INJECTION */(function(uni) {
  27853. Object.defineProperty(exports, "__esModule", {
  27854. value: true
  27855. });
  27856. exports.default = void 0;
  27857. var _default = {
  27858. props: {
  27859. color: {
  27860. type: String,
  27861. default: uni.$u.props.line.color
  27862. },
  27863. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  27864. length: {
  27865. type: [String, Number],
  27866. default: uni.$u.props.line.length
  27867. },
  27868. // 线条方向,col-竖向,row-横向
  27869. direction: {
  27870. type: String,
  27871. default: uni.$u.props.line.direction
  27872. },
  27873. // 是否显示细边框
  27874. hairline: {
  27875. type: Boolean,
  27876. default: uni.$u.props.line.hairline
  27877. },
  27878. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  27879. margin: {
  27880. type: [String, Number],
  27881. default: uni.$u.props.line.margin
  27882. },
  27883. // 是否虚线,true-虚线,false-实线
  27884. dashed: {
  27885. type: Boolean,
  27886. default: uni.$u.props.line.dashed
  27887. }
  27888. }
  27889. };
  27890. exports.default = _default;
  27891. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27892. /***/ }),
  27893. /* 416 */,
  27894. /* 417 */,
  27895. /* 418 */,
  27896. /* 419 */,
  27897. /* 420 */,
  27898. /* 421 */,
  27899. /* 422 */,
  27900. /* 423 */,
  27901. /* 424 */,
  27902. /* 425 */,
  27903. /* 426 */,
  27904. /* 427 */,
  27905. /* 428 */,
  27906. /* 429 */,
  27907. /* 430 */
  27908. /*!*************************************************************************************!*\
  27909. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-overlay/props.js ***!
  27910. \*************************************************************************************/
  27911. /*! no static exports found */
  27912. /***/ (function(module, exports, __webpack_require__) {
  27913. "use strict";
  27914. /* WEBPACK VAR INJECTION */(function(uni) {
  27915. Object.defineProperty(exports, "__esModule", {
  27916. value: true
  27917. });
  27918. exports.default = void 0;
  27919. var _default = {
  27920. props: {
  27921. // 是否显示遮罩
  27922. show: {
  27923. type: Boolean,
  27924. default: uni.$u.props.overlay.show
  27925. },
  27926. // 层级z-index
  27927. zIndex: {
  27928. type: [String, Number],
  27929. default: uni.$u.props.overlay.zIndex
  27930. },
  27931. // 遮罩的过渡时间,单位为ms
  27932. duration: {
  27933. type: [String, Number],
  27934. default: uni.$u.props.overlay.duration
  27935. },
  27936. // 不透明度值,当做rgba的第四个参数
  27937. opacity: {
  27938. type: [String, Number],
  27939. default: uni.$u.props.overlay.opacity
  27940. }
  27941. }
  27942. };
  27943. exports.default = _default;
  27944. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27945. /***/ }),
  27946. /* 431 */,
  27947. /* 432 */,
  27948. /* 433 */,
  27949. /* 434 */,
  27950. /* 435 */,
  27951. /* 436 */,
  27952. /* 437 */,
  27953. /* 438 */
  27954. /*!****************************************************************************************!*\
  27955. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-transition/props.js ***!
  27956. \****************************************************************************************/
  27957. /*! no static exports found */
  27958. /***/ (function(module, exports, __webpack_require__) {
  27959. "use strict";
  27960. /* WEBPACK VAR INJECTION */(function(uni) {
  27961. Object.defineProperty(exports, "__esModule", {
  27962. value: true
  27963. });
  27964. exports.default = void 0;
  27965. var _default = {
  27966. props: {
  27967. // 是否展示组件
  27968. show: {
  27969. type: Boolean,
  27970. default: uni.$u.props.transition.show
  27971. },
  27972. // 使用的动画模式
  27973. mode: {
  27974. type: String,
  27975. default: uni.$u.props.transition.mode
  27976. },
  27977. // 动画的执行时间,单位ms
  27978. duration: {
  27979. type: [String, Number],
  27980. default: uni.$u.props.transition.duration
  27981. },
  27982. // 使用的动画过渡函数
  27983. timingFunction: {
  27984. type: String,
  27985. default: uni.$u.props.transition.timingFunction
  27986. }
  27987. }
  27988. };
  27989. exports.default = _default;
  27990. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27991. /***/ }),
  27992. /* 439 */
  27993. /*!*********************************************************************************************!*\
  27994. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-transition/transition.js ***!
  27995. \*********************************************************************************************/
  27996. /*! no static exports found */
  27997. /***/ (function(module, exports, __webpack_require__) {
  27998. "use strict";
  27999. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28000. Object.defineProperty(exports, "__esModule", {
  28001. value: true
  28002. });
  28003. exports.default = void 0;
  28004. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 76));
  28005. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 78));
  28006. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 440));
  28007. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  28008. var nextTick = function nextTick() {
  28009. return new Promise(function (resolve) {
  28010. return setTimeout(resolve, 1000 / 50);
  28011. });
  28012. };
  28013. // nvue动画模块实现细节抽离在外部文件
  28014. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  28015. var getClassNames = function getClassNames(name) {
  28016. return {
  28017. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  28018. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  28019. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  28020. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  28021. };
  28022. };
  28023. var _default = {
  28024. methods: {
  28025. // 组件被点击发出事件
  28026. clickHandler: function clickHandler() {
  28027. this.$emit('click');
  28028. },
  28029. // vue版本的组件进场处理
  28030. vueEnter: function vueEnter() {
  28031. var _this = this;
  28032. // 动画进入时的类名
  28033. var classNames = getClassNames(this.mode);
  28034. // 定义状态和发出动画进入前事件
  28035. this.status = 'enter';
  28036. this.$emit('beforeEnter');
  28037. this.inited = true;
  28038. this.display = true;
  28039. this.classes = classNames.enter;
  28040. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  28041. return _regenerator.default.wrap(function _callee$(_context) {
  28042. while (1) {
  28043. switch (_context.prev = _context.next) {
  28044. case 0:
  28045. // 标识动画尚未结束
  28046. _this.$emit('enter');
  28047. _this.transitionEnded = false;
  28048. // 组件动画进入后触发的事件
  28049. _this.$emit('afterEnter');
  28050. // 赋予组件enter-to类名
  28051. _this.classes = classNames['enter-to'];
  28052. case 4:
  28053. case "end":
  28054. return _context.stop();
  28055. }
  28056. }
  28057. }, _callee);
  28058. })));
  28059. },
  28060. // 动画离场处理
  28061. vueLeave: function vueLeave() {
  28062. var _this2 = this;
  28063. // 如果不是展示状态,无需执行逻辑
  28064. if (!this.display) return;
  28065. var classNames = getClassNames(this.mode);
  28066. // 标记离开状态和发出事件
  28067. this.status = 'leave';
  28068. this.$emit('beforeLeave');
  28069. // 获得类名
  28070. this.classes = classNames.leave;
  28071. this.$nextTick(function () {
  28072. // 动画正在离场的状态
  28073. _this2.transitionEnded = false;
  28074. _this2.$emit('leave');
  28075. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  28076. setTimeout(_this2.onTransitionEnd, _this2.duration);
  28077. _this2.classes = classNames['leave-to'];
  28078. });
  28079. },
  28080. // 完成过渡后触发
  28081. onTransitionEnd: function onTransitionEnd() {
  28082. // 如果已经是结束的状态,无需再处理
  28083. if (this.transitionEnded) return;
  28084. this.transitionEnded = true;
  28085. // 发出组件动画执行后的事件
  28086. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  28087. if (!this.show && this.display) {
  28088. this.display = false;
  28089. this.inited = false;
  28090. }
  28091. }
  28092. }
  28093. };
  28094. exports.default = _default;
  28095. /***/ }),
  28096. /* 440 */
  28097. /*!***********************************************************************************************!*\
  28098. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  28099. \***********************************************************************************************/
  28100. /*! no static exports found */
  28101. /***/ (function(module, exports, __webpack_require__) {
  28102. "use strict";
  28103. Object.defineProperty(exports, "__esModule", {
  28104. value: true
  28105. });
  28106. exports.default = void 0;
  28107. var _default = {
  28108. fade: {
  28109. enter: {
  28110. opacity: 0
  28111. },
  28112. 'enter-to': {
  28113. opacity: 1
  28114. },
  28115. leave: {
  28116. opacity: 1
  28117. },
  28118. 'leave-to': {
  28119. opacity: 0
  28120. }
  28121. },
  28122. 'fade-up': {
  28123. enter: {
  28124. opacity: 0,
  28125. transform: 'translateY(100%)'
  28126. },
  28127. 'enter-to': {
  28128. opacity: 1,
  28129. transform: 'translateY(0)'
  28130. },
  28131. leave: {
  28132. opacity: 1,
  28133. transform: 'translateY(0)'
  28134. },
  28135. 'leave-to': {
  28136. opacity: 0,
  28137. transform: 'translateY(100%)'
  28138. }
  28139. },
  28140. 'fade-down': {
  28141. enter: {
  28142. opacity: 0,
  28143. transform: 'translateY(-100%)'
  28144. },
  28145. 'enter-to': {
  28146. opacity: 1,
  28147. transform: 'translateY(0)'
  28148. },
  28149. leave: {
  28150. opacity: 1,
  28151. transform: 'translateY(0)'
  28152. },
  28153. 'leave-to': {
  28154. opacity: 0,
  28155. transform: 'translateY(-100%)'
  28156. }
  28157. },
  28158. 'fade-left': {
  28159. enter: {
  28160. opacity: 0,
  28161. transform: 'translateX(-100%)'
  28162. },
  28163. 'enter-to': {
  28164. opacity: 1,
  28165. transform: 'translateY(0)'
  28166. },
  28167. leave: {
  28168. opacity: 1,
  28169. transform: 'translateY(0)'
  28170. },
  28171. 'leave-to': {
  28172. opacity: 0,
  28173. transform: 'translateX(-100%)'
  28174. }
  28175. },
  28176. 'fade-right': {
  28177. enter: {
  28178. opacity: 0,
  28179. transform: 'translateX(100%)'
  28180. },
  28181. 'enter-to': {
  28182. opacity: 1,
  28183. transform: 'translateY(0)'
  28184. },
  28185. leave: {
  28186. opacity: 1,
  28187. transform: 'translateY(0)'
  28188. },
  28189. 'leave-to': {
  28190. opacity: 0,
  28191. transform: 'translateX(100%)'
  28192. }
  28193. },
  28194. 'slide-up': {
  28195. enter: {
  28196. transform: 'translateY(100%)'
  28197. },
  28198. 'enter-to': {
  28199. transform: 'translateY(0)'
  28200. },
  28201. leave: {
  28202. transform: 'translateY(0)'
  28203. },
  28204. 'leave-to': {
  28205. transform: 'translateY(100%)'
  28206. }
  28207. },
  28208. 'slide-down': {
  28209. enter: {
  28210. transform: 'translateY(-100%)'
  28211. },
  28212. 'enter-to': {
  28213. transform: 'translateY(0)'
  28214. },
  28215. leave: {
  28216. transform: 'translateY(0)'
  28217. },
  28218. 'leave-to': {
  28219. transform: 'translateY(-100%)'
  28220. }
  28221. },
  28222. 'slide-left': {
  28223. enter: {
  28224. transform: 'translateX(-100%)'
  28225. },
  28226. 'enter-to': {
  28227. transform: 'translateY(0)'
  28228. },
  28229. leave: {
  28230. transform: 'translateY(0)'
  28231. },
  28232. 'leave-to': {
  28233. transform: 'translateX(-100%)'
  28234. }
  28235. },
  28236. 'slide-right': {
  28237. enter: {
  28238. transform: 'translateX(100%)'
  28239. },
  28240. 'enter-to': {
  28241. transform: 'translateY(0)'
  28242. },
  28243. leave: {
  28244. transform: 'translateY(0)'
  28245. },
  28246. 'leave-to': {
  28247. transform: 'translateX(100%)'
  28248. }
  28249. },
  28250. zoom: {
  28251. enter: {
  28252. transform: 'scale(0.95)'
  28253. },
  28254. 'enter-to': {
  28255. transform: 'scale(1)'
  28256. },
  28257. leave: {
  28258. transform: 'scale(1)'
  28259. },
  28260. 'leave-to': {
  28261. transform: 'scale(0.95)'
  28262. }
  28263. },
  28264. 'fade-zoom': {
  28265. enter: {
  28266. opacity: 0,
  28267. transform: 'scale(0.95)'
  28268. },
  28269. 'enter-to': {
  28270. opacity: 1,
  28271. transform: 'scale(1)'
  28272. },
  28273. leave: {
  28274. opacity: 1,
  28275. transform: 'scale(1)'
  28276. },
  28277. 'leave-to': {
  28278. opacity: 0,
  28279. transform: 'scale(0.95)'
  28280. }
  28281. }
  28282. };
  28283. exports.default = _default;
  28284. /***/ }),
  28285. /* 441 */,
  28286. /* 442 */,
  28287. /* 443 */,
  28288. /* 444 */,
  28289. /* 445 */,
  28290. /* 446 */,
  28291. /* 447 */,
  28292. /* 448 */
  28293. /*!****************************************************************************************!*\
  28294. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  28295. \****************************************************************************************/
  28296. /*! no static exports found */
  28297. /***/ (function(module, exports, __webpack_require__) {
  28298. "use strict";
  28299. /* WEBPACK VAR INJECTION */(function(uni) {
  28300. Object.defineProperty(exports, "__esModule", {
  28301. value: true
  28302. });
  28303. exports.default = void 0;
  28304. var _default = {
  28305. props: {
  28306. bgColor: {
  28307. type: String,
  28308. default: uni.$u.props.statusBar.bgColor
  28309. }
  28310. }
  28311. };
  28312. exports.default = _default;
  28313. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28314. /***/ }),
  28315. /* 449 */,
  28316. /* 450 */,
  28317. /* 451 */,
  28318. /* 452 */,
  28319. /* 453 */,
  28320. /* 454 */,
  28321. /* 455 */,
  28322. /* 456 */
  28323. /*!*****************************************************************************************!*\
  28324. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  28325. \*****************************************************************************************/
  28326. /*! no static exports found */
  28327. /***/ (function(module, exports, __webpack_require__) {
  28328. "use strict";
  28329. Object.defineProperty(exports, "__esModule", {
  28330. value: true
  28331. });
  28332. exports.default = void 0;
  28333. var _default = {
  28334. props: {}
  28335. };
  28336. exports.default = _default;
  28337. /***/ }),
  28338. /* 457 */,
  28339. /* 458 */,
  28340. /* 459 */,
  28341. /* 460 */,
  28342. /* 461 */,
  28343. /* 462 */,
  28344. /* 463 */,
  28345. /* 464 */
  28346. /*!*********************************************************************************!*\
  28347. !*** D:/demo/tourism/uni_applet/uni_modules/uview-ui/components/u-gap/props.js ***!
  28348. \*********************************************************************************/
  28349. /*! no static exports found */
  28350. /***/ (function(module, exports, __webpack_require__) {
  28351. "use strict";
  28352. /* WEBPACK VAR INJECTION */(function(uni) {
  28353. Object.defineProperty(exports, "__esModule", {
  28354. value: true
  28355. });
  28356. exports.default = void 0;
  28357. var _default = {
  28358. props: {
  28359. // 背景颜色(默认transparent)
  28360. bgColor: {
  28361. type: String,
  28362. default: uni.$u.props.gap.bgColor
  28363. },
  28364. // 分割槽高度,单位px(默认30)
  28365. height: {
  28366. type: [String, Number],
  28367. default: uni.$u.props.gap.height
  28368. },
  28369. // 与上一个组件的距离
  28370. marginTop: {
  28371. type: [String, Number],
  28372. default: uni.$u.props.gap.marginTop
  28373. },
  28374. // 与下一个组件的距离
  28375. marginBottom: {
  28376. type: [String, Number],
  28377. default: uni.$u.props.gap.marginBottom
  28378. }
  28379. }
  28380. };
  28381. exports.default = _default;
  28382. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28383. /***/ }),
  28384. /* 465 */,
  28385. /* 466 */,
  28386. /* 467 */,
  28387. /* 468 */,
  28388. /* 469 */,
  28389. /* 470 */,
  28390. /* 471 */,
  28391. /* 472 */,
  28392. /* 473 */,
  28393. /* 474 */,
  28394. /* 475 */,
  28395. /* 476 */,
  28396. /* 477 */,
  28397. /* 478 */,
  28398. /* 479 */,
  28399. /* 480 */,
  28400. /* 481 */,
  28401. /* 482 */,
  28402. /* 483 */,
  28403. /* 484 */,
  28404. /* 485 */,
  28405. /* 486 */,
  28406. /* 487 */,
  28407. /* 488 */,
  28408. /* 489 */,
  28409. /* 490 */,
  28410. /* 491 */,
  28411. /* 492 */,
  28412. /* 493 */,
  28413. /* 494 */,
  28414. /* 495 */,
  28415. /* 496 */,
  28416. /* 497 */
  28417. /*!******************************************************************************************************!*\
  28418. !*** D:/demo/tourism/uni_applet/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js ***!
  28419. \******************************************************************************************************/
  28420. /*! no static exports found */
  28421. /***/ (function(module, exports, __webpack_require__) {
  28422. "use strict";
  28423. Object.defineProperty(exports, "__esModule", {
  28424. value: true
  28425. });
  28426. exports.default = void 0;
  28427. // mescroll-body 和 mescroll-uni 通用
  28428. var MescrollMixin = {
  28429. data: function data() {
  28430. return {
  28431. mescroll: null //mescroll实例对象
  28432. };
  28433. },
  28434. // 注册系统自带的下拉刷新 (配置down.native为true时生效, 还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  28435. onPullDownRefresh: function onPullDownRefresh() {
  28436. this.mescroll && this.mescroll.onPullDownRefresh();
  28437. },
  28438. // 注册列表滚动事件,用于判定在顶部可下拉刷新,在指定位置可显示隐藏回到顶部按钮 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  28439. onPageScroll: function onPageScroll(e) {
  28440. this.mescroll && this.mescroll.onPageScroll(e);
  28441. },
  28442. // 注册滚动到底部的事件,用于上拉加载 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  28443. onReachBottom: function onReachBottom() {
  28444. this.mescroll && this.mescroll.onReachBottom();
  28445. },
  28446. methods: {
  28447. // mescroll组件初始化的回调,可获取到mescroll对象
  28448. mescrollInit: function mescrollInit(mescroll) {
  28449. this.mescroll = mescroll;
  28450. this.mescrollInitByRef(); // 兼容字节跳动小程序
  28451. },
  28452. // 以ref的方式初始化mescroll对象 (兼容字节跳动小程序)
  28453. mescrollInitByRef: function mescrollInitByRef() {
  28454. if (!this.mescroll || !this.mescroll.resetUpScroll) {
  28455. var mescrollRef = this.$refs.mescrollRef;
  28456. if (mescrollRef) this.mescroll = mescrollRef.mescroll;
  28457. }
  28458. },
  28459. // 下拉刷新的回调 (mixin默认resetUpScroll)
  28460. downCallback: function downCallback() {
  28461. var _this = this;
  28462. if (this.mescroll.optUp.use) {
  28463. this.mescroll.resetUpScroll();
  28464. } else {
  28465. setTimeout(function () {
  28466. _this.mescroll.endSuccess();
  28467. }, 500);
  28468. }
  28469. },
  28470. // 上拉加载的回调
  28471. upCallback: function upCallback() {
  28472. var _this2 = this;
  28473. // mixin默认延时500自动结束加载
  28474. setTimeout(function () {
  28475. _this2.mescroll.endErr();
  28476. }, 500);
  28477. }
  28478. },
  28479. mounted: function mounted() {
  28480. this.mescrollInitByRef(); // 兼容字节跳动小程序, 避免未设置@init或@init此时未能取到ref的情况
  28481. }
  28482. };
  28483. var _default = MescrollMixin;
  28484. exports.default = _default;
  28485. /***/ }),
  28486. /* 498 */
  28487. /*!***************************************************************!*\
  28488. !*** D:/demo/tourism/uni_applet/js_sdk/qqmap-wx-jssdk.min.js ***!
  28489. \***************************************************************/
  28490. /*! no static exports found */
  28491. /***/ (function(module, exports, __webpack_require__) {
  28492. /* WEBPACK VAR INJECTION */(function(wx) {var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23);
  28493. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 24);
  28494. var ERROR_CONF = {
  28495. KEY_ERR: 311,
  28496. KEY_ERR_MSG: 'key格式错误',
  28497. PARAM_ERR: 310,
  28498. PARAM_ERR_MSG: '请求参数信息有误',
  28499. SYSTEM_ERR: 600,
  28500. SYSTEM_ERR_MSG: '系统错误',
  28501. WX_ERR_CODE: 1000,
  28502. WX_OK_CODE: 200
  28503. };
  28504. var BASE_URL = 'https://apis.map.qq.com/ws/';
  28505. var URL_SEARCH = BASE_URL + 'place/v1/search';
  28506. var URL_SUGGESTION = BASE_URL + 'place/v1/suggestion';
  28507. var URL_GET_GEOCODER = BASE_URL + 'geocoder/v1/';
  28508. var URL_CITY_LIST = BASE_URL + 'district/v1/list';
  28509. var URL_AREA_LIST = BASE_URL + 'district/v1/getchildren';
  28510. var URL_DISTANCE = BASE_URL + 'distance/v1/';
  28511. var URL_DIRECTION = BASE_URL + 'direction/v1/';
  28512. var MODE = {
  28513. driving: 'driving',
  28514. transit: 'transit'
  28515. };
  28516. var EARTH_RADIUS = 6378136.49;
  28517. var Utils = {
  28518. safeAdd: function safeAdd(x, y) {
  28519. var lsw = (x & 0xffff) + (y & 0xffff);
  28520. var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
  28521. return msw << 16 | lsw & 0xffff;
  28522. },
  28523. bitRotateLeft: function bitRotateLeft(num, cnt) {
  28524. return num << cnt | num >>> 32 - cnt;
  28525. },
  28526. md5cmn: function md5cmn(q, a, b, x, s, t) {
  28527. return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(a, q), this.safeAdd(x, t)), s), b);
  28528. },
  28529. md5ff: function md5ff(a, b, c, d, x, s, t) {
  28530. return this.md5cmn(b & c | ~b & d, a, b, x, s, t);
  28531. },
  28532. md5gg: function md5gg(a, b, c, d, x, s, t) {
  28533. return this.md5cmn(b & d | c & ~d, a, b, x, s, t);
  28534. },
  28535. md5hh: function md5hh(a, b, c, d, x, s, t) {
  28536. return this.md5cmn(b ^ c ^ d, a, b, x, s, t);
  28537. },
  28538. md5ii: function md5ii(a, b, c, d, x, s, t) {
  28539. return this.md5cmn(c ^ (b | ~d), a, b, x, s, t);
  28540. },
  28541. binlMD5: function binlMD5(x, len) {
  28542. x[len >> 5] |= 0x80 << len % 32;
  28543. x[(len + 64 >>> 9 << 4) + 14] = len;
  28544. var i;
  28545. var olda;
  28546. var oldb;
  28547. var oldc;
  28548. var oldd;
  28549. var a = 1732584193;
  28550. var b = -271733879;
  28551. var c = -1732584194;
  28552. var d = 271733878;
  28553. for (i = 0; i < x.length; i += 16) {
  28554. olda = a;
  28555. oldb = b;
  28556. oldc = c;
  28557. oldd = d;
  28558. a = this.md5ff(a, b, c, d, x[i], 7, -680876936);
  28559. d = this.md5ff(d, a, b, c, x[i + 1], 12, -389564586);
  28560. c = this.md5ff(c, d, a, b, x[i + 2], 17, 606105819);
  28561. b = this.md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
  28562. a = this.md5ff(a, b, c, d, x[i + 4], 7, -176418897);
  28563. d = this.md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
  28564. c = this.md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
  28565. b = this.md5ff(b, c, d, a, x[i + 7], 22, -45705983);
  28566. a = this.md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
  28567. d = this.md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
  28568. c = this.md5ff(c, d, a, b, x[i + 10], 17, -42063);
  28569. b = this.md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
  28570. a = this.md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
  28571. d = this.md5ff(d, a, b, c, x[i + 13], 12, -40341101);
  28572. c = this.md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
  28573. b = this.md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
  28574. a = this.md5gg(a, b, c, d, x[i + 1], 5, -165796510);
  28575. d = this.md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
  28576. c = this.md5gg(c, d, a, b, x[i + 11], 14, 643717713);
  28577. b = this.md5gg(b, c, d, a, x[i], 20, -373897302);
  28578. a = this.md5gg(a, b, c, d, x[i + 5], 5, -701558691);
  28579. d = this.md5gg(d, a, b, c, x[i + 10], 9, 38016083);
  28580. c = this.md5gg(c, d, a, b, x[i + 15], 14, -660478335);
  28581. b = this.md5gg(b, c, d, a, x[i + 4], 20, -405537848);
  28582. a = this.md5gg(a, b, c, d, x[i + 9], 5, 568446438);
  28583. d = this.md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
  28584. c = this.md5gg(c, d, a, b, x[i + 3], 14, -187363961);
  28585. b = this.md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
  28586. a = this.md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
  28587. d = this.md5gg(d, a, b, c, x[i + 2], 9, -51403784);
  28588. c = this.md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
  28589. b = this.md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
  28590. a = this.md5hh(a, b, c, d, x[i + 5], 4, -378558);
  28591. d = this.md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
  28592. c = this.md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
  28593. b = this.md5hh(b, c, d, a, x[i + 14], 23, -35309556);
  28594. a = this.md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
  28595. d = this.md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
  28596. c = this.md5hh(c, d, a, b, x[i + 7], 16, -155497632);
  28597. b = this.md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
  28598. a = this.md5hh(a, b, c, d, x[i + 13], 4, 681279174);
  28599. d = this.md5hh(d, a, b, c, x[i], 11, -358537222);
  28600. c = this.md5hh(c, d, a, b, x[i + 3], 16, -722521979);
  28601. b = this.md5hh(b, c, d, a, x[i + 6], 23, 76029189);
  28602. a = this.md5hh(a, b, c, d, x[i + 9], 4, -640364487);
  28603. d = this.md5hh(d, a, b, c, x[i + 12], 11, -421815835);
  28604. c = this.md5hh(c, d, a, b, x[i + 15], 16, 530742520);
  28605. b = this.md5hh(b, c, d, a, x[i + 2], 23, -995338651);
  28606. a = this.md5ii(a, b, c, d, x[i], 6, -198630844);
  28607. d = this.md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
  28608. c = this.md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
  28609. b = this.md5ii(b, c, d, a, x[i + 5], 21, -57434055);
  28610. a = this.md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
  28611. d = this.md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
  28612. c = this.md5ii(c, d, a, b, x[i + 10], 15, -1051523);
  28613. b = this.md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
  28614. a = this.md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
  28615. d = this.md5ii(d, a, b, c, x[i + 15], 10, -30611744);
  28616. c = this.md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
  28617. b = this.md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
  28618. a = this.md5ii(a, b, c, d, x[i + 4], 6, -145523070);
  28619. d = this.md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
  28620. c = this.md5ii(c, d, a, b, x[i + 2], 15, 718787259);
  28621. b = this.md5ii(b, c, d, a, x[i + 9], 21, -343485551);
  28622. a = this.safeAdd(a, olda);
  28623. b = this.safeAdd(b, oldb);
  28624. c = this.safeAdd(c, oldc);
  28625. d = this.safeAdd(d, oldd);
  28626. }
  28627. return [a, b, c, d];
  28628. },
  28629. binl2rstr: function binl2rstr(input) {
  28630. var i;
  28631. var output = '';
  28632. var length32 = input.length * 32;
  28633. for (i = 0; i < length32; i += 8) {
  28634. output += String.fromCharCode(input[i >> 5] >>> i % 32 & 0xff);
  28635. }
  28636. return output;
  28637. },
  28638. rstr2binl: function rstr2binl(input) {
  28639. var i;
  28640. var output = [];
  28641. output[(input.length >> 2) - 1] = undefined;
  28642. for (i = 0; i < output.length; i += 1) {
  28643. output[i] = 0;
  28644. }
  28645. var length8 = input.length * 8;
  28646. for (i = 0; i < length8; i += 8) {
  28647. output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;
  28648. }
  28649. return output;
  28650. },
  28651. rstrMD5: function rstrMD5(s) {
  28652. return this.binl2rstr(this.binlMD5(this.rstr2binl(s), s.length * 8));
  28653. },
  28654. rstrHMACMD5: function rstrHMACMD5(key, data) {
  28655. var i;
  28656. var bkey = this.rstr2binl(key);
  28657. var ipad = [];
  28658. var opad = [];
  28659. var hash;
  28660. ipad[15] = opad[15] = undefined;
  28661. if (bkey.length > 16) {
  28662. bkey = this.binlMD5(bkey, key.length * 8);
  28663. }
  28664. for (i = 0; i < 16; i += 1) {
  28665. ipad[i] = bkey[i] ^ 0x36363636;
  28666. opad[i] = bkey[i] ^ 0x5c5c5c5c;
  28667. }
  28668. hash = this.binlMD5(ipad.concat(this.rstr2binl(data)), 512 + data.length * 8);
  28669. return this.binl2rstr(this.binlMD5(opad.concat(hash), 512 + 128));
  28670. },
  28671. rstr2hex: function rstr2hex(input) {
  28672. var hexTab = '0123456789abcdef';
  28673. var output = '';
  28674. var x;
  28675. var i;
  28676. for (i = 0; i < input.length; i += 1) {
  28677. x = input.charCodeAt(i);
  28678. output += hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f);
  28679. }
  28680. return output;
  28681. },
  28682. str2rstrUTF8: function str2rstrUTF8(input) {
  28683. return unescape(encodeURIComponent(input));
  28684. },
  28685. rawMD5: function rawMD5(s) {
  28686. return this.rstrMD5(this.str2rstrUTF8(s));
  28687. },
  28688. hexMD5: function hexMD5(s) {
  28689. return this.rstr2hex(this.rawMD5(s));
  28690. },
  28691. rawHMACMD5: function rawHMACMD5(k, d) {
  28692. return this.rstrHMACMD5(this.str2rstrUTF8(k), str2rstrUTF8(d));
  28693. },
  28694. hexHMACMD5: function hexHMACMD5(k, d) {
  28695. return this.rstr2hex(this.rawHMACMD5(k, d));
  28696. },
  28697. md5: function md5(string, key, raw) {
  28698. if (!key) {
  28699. if (!raw) {
  28700. return this.hexMD5(string);
  28701. }
  28702. return this.rawMD5(string);
  28703. }
  28704. if (!raw) {
  28705. return this.hexHMACMD5(key, string);
  28706. }
  28707. return this.rawHMACMD5(key, string);
  28708. },
  28709. getSig: function getSig(requestParam, sk, feature, mode) {
  28710. var sig = null;
  28711. var requestArr = [];
  28712. Object.keys(requestParam).sort().forEach(function (key) {
  28713. requestArr.push(key + '=' + requestParam[key]);
  28714. });
  28715. if (feature == 'search') {
  28716. sig = '/ws/place/v1/search?' + requestArr.join('&') + sk;
  28717. }
  28718. if (feature == 'suggest') {
  28719. sig = '/ws/place/v1/suggestion?' + requestArr.join('&') + sk;
  28720. }
  28721. if (feature == 'reverseGeocoder') {
  28722. sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;
  28723. }
  28724. if (feature == 'geocoder') {
  28725. sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;
  28726. }
  28727. if (feature == 'getCityList') {
  28728. sig = '/ws/district/v1/list?' + requestArr.join('&') + sk;
  28729. }
  28730. if (feature == 'getDistrictByCityId') {
  28731. sig = '/ws/district/v1/getchildren?' + requestArr.join('&') + sk;
  28732. }
  28733. if (feature == 'calculateDistance') {
  28734. sig = '/ws/distance/v1/?' + requestArr.join('&') + sk;
  28735. }
  28736. if (feature == 'direction') {
  28737. sig = '/ws/direction/v1/' + mode + '?' + requestArr.join('&') + sk;
  28738. }
  28739. sig = this.md5(sig);
  28740. return sig;
  28741. },
  28742. location2query: function location2query(data) {
  28743. if (typeof data == 'string') {
  28744. return data;
  28745. }
  28746. var query = '';
  28747. for (var i = 0; i < data.length; i++) {
  28748. var d = data[i];
  28749. if (!!query) {
  28750. query += ';';
  28751. }
  28752. if (d.location) {
  28753. query = query + d.location.lat + ',' + d.location.lng;
  28754. }
  28755. if (d.latitude && d.longitude) {
  28756. query = query + d.latitude + ',' + d.longitude;
  28757. }
  28758. }
  28759. return query;
  28760. },
  28761. rad: function rad(d) {
  28762. return d * Math.PI / 180.0;
  28763. },
  28764. getEndLocation: function getEndLocation(location) {
  28765. var to = location.split(';');
  28766. var endLocation = [];
  28767. for (var i = 0; i < to.length; i++) {
  28768. endLocation.push({
  28769. lat: parseFloat(to[i].split(',')[0]),
  28770. lng: parseFloat(to[i].split(',')[1])
  28771. });
  28772. }
  28773. return endLocation;
  28774. },
  28775. getDistance: function getDistance(latFrom, lngFrom, latTo, lngTo) {
  28776. var radLatFrom = this.rad(latFrom);
  28777. var radLatTo = this.rad(latTo);
  28778. var a = radLatFrom - radLatTo;
  28779. var b = this.rad(lngFrom) - this.rad(lngTo);
  28780. var distance = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLatFrom) * Math.cos(radLatTo) * Math.pow(Math.sin(b / 2), 2)));
  28781. distance = distance * EARTH_RADIUS;
  28782. distance = Math.round(distance * 10000) / 10000;
  28783. return parseFloat(distance.toFixed(0));
  28784. },
  28785. getWXLocation: function getWXLocation(success, fail, complete) {
  28786. wx.getLocation({
  28787. type: 'gcj02',
  28788. success: success,
  28789. fail: fail,
  28790. complete: complete
  28791. });
  28792. },
  28793. getLocationParam: function getLocationParam(location) {
  28794. if (typeof location == 'string') {
  28795. var locationArr = location.split(',');
  28796. if (locationArr.length === 2) {
  28797. location = {
  28798. latitude: location.split(',')[0],
  28799. longitude: location.split(',')[1]
  28800. };
  28801. } else {
  28802. location = {};
  28803. }
  28804. }
  28805. return location;
  28806. },
  28807. polyfillParam: function polyfillParam(param) {
  28808. param.success = param.success || function () {};
  28809. param.fail = param.fail || function () {};
  28810. param.complete = param.complete || function () {};
  28811. },
  28812. checkParamKeyEmpty: function checkParamKeyEmpty(param, key) {
  28813. if (!param[key]) {
  28814. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + key + '参数格式有误');
  28815. param.fail(errconf);
  28816. param.complete(errconf);
  28817. return true;
  28818. }
  28819. return false;
  28820. },
  28821. checkKeyword: function checkKeyword(param) {
  28822. return !this.checkParamKeyEmpty(param, 'keyword');
  28823. },
  28824. checkLocation: function checkLocation(param) {
  28825. var location = this.getLocationParam(param.location);
  28826. if (!location || !location.latitude || !location.longitude) {
  28827. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + ' location参数格式有误');
  28828. param.fail(errconf);
  28829. param.complete(errconf);
  28830. return false;
  28831. }
  28832. return true;
  28833. },
  28834. buildErrorConfig: function buildErrorConfig(errCode, errMsg) {
  28835. return {
  28836. status: errCode,
  28837. message: errMsg
  28838. };
  28839. },
  28840. handleData: function handleData(param, data, feature) {
  28841. if (feature == 'search') {
  28842. var searchResult = data.data;
  28843. var searchSimplify = [];
  28844. for (var i = 0; i < searchResult.length; i++) {
  28845. searchSimplify.push({
  28846. id: searchResult[i].id || null,
  28847. title: searchResult[i].title || null,
  28848. latitude: searchResult[i].location && searchResult[i].location.lat || null,
  28849. longitude: searchResult[i].location && searchResult[i].location.lng || null,
  28850. address: searchResult[i].address || null,
  28851. category: searchResult[i].category || null,
  28852. tel: searchResult[i].tel || null,
  28853. adcode: searchResult[i].ad_info && searchResult[i].ad_info.adcode || null,
  28854. city: searchResult[i].ad_info && searchResult[i].ad_info.city || null,
  28855. district: searchResult[i].ad_info && searchResult[i].ad_info.district || null,
  28856. province: searchResult[i].ad_info && searchResult[i].ad_info.province || null
  28857. });
  28858. }
  28859. param.success(data, {
  28860. searchResult: searchResult,
  28861. searchSimplify: searchSimplify
  28862. });
  28863. } else if (feature == 'suggest') {
  28864. var suggestResult = data.data;
  28865. var suggestSimplify = [];
  28866. for (var i = 0; i < suggestResult.length; i++) {
  28867. suggestSimplify.push({
  28868. adcode: suggestResult[i].adcode || null,
  28869. address: suggestResult[i].address || null,
  28870. category: suggestResult[i].category || null,
  28871. city: suggestResult[i].city || null,
  28872. district: suggestResult[i].district || null,
  28873. id: suggestResult[i].id || null,
  28874. latitude: suggestResult[i].location && suggestResult[i].location.lat || null,
  28875. longitude: suggestResult[i].location && suggestResult[i].location.lng || null,
  28876. province: suggestResult[i].province || null,
  28877. title: suggestResult[i].title || null,
  28878. type: suggestResult[i].type || null
  28879. });
  28880. }
  28881. param.success(data, {
  28882. suggestResult: suggestResult,
  28883. suggestSimplify: suggestSimplify
  28884. });
  28885. } else if (feature == 'reverseGeocoder') {
  28886. var reverseGeocoderResult = data.result;
  28887. var reverseGeocoderSimplify = {
  28888. address: reverseGeocoderResult.address || null,
  28889. latitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lat || null,
  28890. longitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lng || null,
  28891. adcode: reverseGeocoderResult.ad_info && reverseGeocoderResult.ad_info.adcode || null,
  28892. city: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.city || null,
  28893. district: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.district || null,
  28894. nation: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.nation || null,
  28895. province: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.province || null,
  28896. street: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street || null,
  28897. street_number: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street_number || null,
  28898. recommend: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.recommend || null,
  28899. rough: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.rough || null
  28900. };
  28901. if (reverseGeocoderResult.pois) {
  28902. var pois = reverseGeocoderResult.pois;
  28903. var poisSimplify = [];
  28904. for (var i = 0; i < pois.length; i++) {
  28905. poisSimplify.push({
  28906. id: pois[i].id || null,
  28907. title: pois[i].title || null,
  28908. latitude: pois[i].location && pois[i].location.lat || null,
  28909. longitude: pois[i].location && pois[i].location.lng || null,
  28910. address: pois[i].address || null,
  28911. category: pois[i].category || null,
  28912. adcode: pois[i].ad_info && pois[i].ad_info.adcode || null,
  28913. city: pois[i].ad_info && pois[i].ad_info.city || null,
  28914. district: pois[i].ad_info && pois[i].ad_info.district || null,
  28915. province: pois[i].ad_info && pois[i].ad_info.province || null
  28916. });
  28917. }
  28918. param.success(data, {
  28919. reverseGeocoderResult: reverseGeocoderResult,
  28920. reverseGeocoderSimplify: reverseGeocoderSimplify,
  28921. pois: pois,
  28922. poisSimplify: poisSimplify
  28923. });
  28924. } else {
  28925. param.success(data, {
  28926. reverseGeocoderResult: reverseGeocoderResult,
  28927. reverseGeocoderSimplify: reverseGeocoderSimplify
  28928. });
  28929. }
  28930. } else if (feature == 'geocoder') {
  28931. var geocoderResult = data.result;
  28932. var geocoderSimplify = {
  28933. title: geocoderResult.title || null,
  28934. latitude: geocoderResult.location && geocoderResult.location.lat || null,
  28935. longitude: geocoderResult.location && geocoderResult.location.lng || null,
  28936. adcode: geocoderResult.ad_info && geocoderResult.ad_info.adcode || null,
  28937. province: geocoderResult.address_components && geocoderResult.address_components.province || null,
  28938. city: geocoderResult.address_components && geocoderResult.address_components.city || null,
  28939. district: geocoderResult.address_components && geocoderResult.address_components.district || null,
  28940. street: geocoderResult.address_components && geocoderResult.address_components.street || null,
  28941. street_number: geocoderResult.address_components && geocoderResult.address_components.street_number || null,
  28942. level: geocoderResult.level || null
  28943. };
  28944. param.success(data, {
  28945. geocoderResult: geocoderResult,
  28946. geocoderSimplify: geocoderSimplify
  28947. });
  28948. } else if (feature == 'getCityList') {
  28949. var provinceResult = data.result[0];
  28950. var cityResult = data.result[1];
  28951. var districtResult = data.result[2];
  28952. param.success(data, {
  28953. provinceResult: provinceResult,
  28954. cityResult: cityResult,
  28955. districtResult: districtResult
  28956. });
  28957. } else if (feature == 'getDistrictByCityId') {
  28958. var districtByCity = data.result[0];
  28959. param.success(data, districtByCity);
  28960. } else if (feature == 'calculateDistance') {
  28961. var calculateDistanceResult = data.result.elements;
  28962. var distance = [];
  28963. for (var i = 0; i < calculateDistanceResult.length; i++) {
  28964. distance.push(calculateDistanceResult[i].distance);
  28965. }
  28966. param.success(data, {
  28967. calculateDistanceResult: calculateDistanceResult,
  28968. distance: distance
  28969. });
  28970. } else if (feature == 'direction') {
  28971. var direction = data.result.routes;
  28972. param.success(data, direction);
  28973. } else {
  28974. param.success(data);
  28975. }
  28976. },
  28977. buildWxRequestConfig: function buildWxRequestConfig(param, options, feature) {
  28978. var that = this;
  28979. options.header = {
  28980. "content-type": "application/json"
  28981. };
  28982. options.method = 'GET';
  28983. options.success = function (res) {
  28984. var data = res.data;
  28985. if (data.status === 0) {
  28986. that.handleData(param, data, feature);
  28987. } else {
  28988. param.fail(data);
  28989. }
  28990. };
  28991. options.fail = function (res) {
  28992. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  28993. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  28994. };
  28995. options.complete = function (res) {
  28996. var statusCode = +res.statusCode;
  28997. switch (statusCode) {
  28998. case ERROR_CONF.WX_ERR_CODE:
  28999. {
  29000. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  29001. break;
  29002. }
  29003. case ERROR_CONF.WX_OK_CODE:
  29004. {
  29005. var data = res.data;
  29006. if (data.status === 0) {
  29007. param.complete(data);
  29008. } else {
  29009. param.complete(that.buildErrorConfig(data.status, data.message));
  29010. }
  29011. break;
  29012. }
  29013. default:
  29014. {
  29015. param.complete(that.buildErrorConfig(ERROR_CONF.SYSTEM_ERR, ERROR_CONF.SYSTEM_ERR_MSG));
  29016. }
  29017. }
  29018. };
  29019. return options;
  29020. },
  29021. locationProcess: function locationProcess(param, locationsuccess, locationfail, locationcomplete) {
  29022. var that = this;
  29023. locationfail = locationfail || function (res) {
  29024. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  29025. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  29026. };
  29027. locationcomplete = locationcomplete || function (res) {
  29028. if (res.statusCode == ERROR_CONF.WX_ERR_CODE) {
  29029. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  29030. }
  29031. };
  29032. if (!param.location) {
  29033. that.getWXLocation(locationsuccess, locationfail, locationcomplete);
  29034. } else if (that.checkLocation(param)) {
  29035. var location = Utils.getLocationParam(param.location);
  29036. locationsuccess(location);
  29037. }
  29038. }
  29039. };
  29040. var QQMapWX = /*#__PURE__*/function () {
  29041. "use strict";
  29042. function QQMapWX(options) {
  29043. _classCallCheck(this, QQMapWX);
  29044. if (!options.key) {
  29045. throw Error('key值不能为空');
  29046. }
  29047. this.key = options.key;
  29048. }
  29049. _createClass(QQMapWX, [{
  29050. key: "search",
  29051. value: function search(options) {
  29052. var that = this;
  29053. options = options || {};
  29054. Utils.polyfillParam(options);
  29055. if (!Utils.checkKeyword(options)) {
  29056. return;
  29057. }
  29058. var requestParam = {
  29059. keyword: options.keyword,
  29060. orderby: options.orderby || '_distance',
  29061. page_size: options.page_size || 10,
  29062. page_index: options.page_index || 1,
  29063. output: 'json',
  29064. key: that.key
  29065. };
  29066. if (options.address_format) {
  29067. requestParam.address_format = options.address_format;
  29068. }
  29069. if (options.filter) {
  29070. requestParam.filter = options.filter;
  29071. }
  29072. var distance = options.distance || "1000";
  29073. var auto_extend = options.auto_extend || 1;
  29074. var region = null;
  29075. var rectangle = null;
  29076. if (options.region) {
  29077. region = options.region;
  29078. }
  29079. if (options.rectangle) {
  29080. rectangle = options.rectangle;
  29081. }
  29082. var locationsuccess = function locationsuccess(result) {
  29083. if (region && !rectangle) {
  29084. requestParam.boundary = "region(" + region + "," + auto_extend + "," + result.latitude + "," + result.longitude + ")";
  29085. if (options.sig) {
  29086. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  29087. }
  29088. } else if (rectangle && !region) {
  29089. requestParam.boundary = "rectangle(" + rectangle + ")";
  29090. if (options.sig) {
  29091. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  29092. }
  29093. } else {
  29094. requestParam.boundary = "nearby(" + result.latitude + "," + result.longitude + "," + distance + "," + auto_extend + ")";
  29095. if (options.sig) {
  29096. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  29097. }
  29098. }
  29099. wx.request(Utils.buildWxRequestConfig(options, {
  29100. url: URL_SEARCH,
  29101. data: requestParam
  29102. }, 'search'));
  29103. };
  29104. Utils.locationProcess(options, locationsuccess);
  29105. }
  29106. }, {
  29107. key: "getSuggestion",
  29108. value: function getSuggestion(options) {
  29109. var that = this;
  29110. options = options || {};
  29111. Utils.polyfillParam(options);
  29112. if (!Utils.checkKeyword(options)) {
  29113. return;
  29114. }
  29115. var requestParam = {
  29116. keyword: options.keyword,
  29117. region: options.region || '全国',
  29118. region_fix: options.region_fix || 0,
  29119. policy: options.policy || 0,
  29120. page_size: options.page_size || 10,
  29121. page_index: options.page_index || 1,
  29122. get_subpois: options.get_subpois || 0,
  29123. output: 'json',
  29124. key: that.key
  29125. };
  29126. if (options.address_format) {
  29127. requestParam.address_format = options.address_format;
  29128. }
  29129. if (options.filter) {
  29130. requestParam.filter = options.filter;
  29131. }
  29132. if (options.location) {
  29133. var locationsuccess = function locationsuccess(result) {
  29134. requestParam.location = result.latitude + ',' + result.longitude;
  29135. if (options.sig) {
  29136. requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');
  29137. }
  29138. wx.request(Utils.buildWxRequestConfig(options, {
  29139. url: URL_SUGGESTION,
  29140. data: requestParam
  29141. }, "suggest"));
  29142. };
  29143. Utils.locationProcess(options, locationsuccess);
  29144. } else {
  29145. if (options.sig) {
  29146. requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');
  29147. }
  29148. wx.request(Utils.buildWxRequestConfig(options, {
  29149. url: URL_SUGGESTION,
  29150. data: requestParam
  29151. }, "suggest"));
  29152. }
  29153. }
  29154. }, {
  29155. key: "reverseGeocoder",
  29156. value: function reverseGeocoder(options) {
  29157. var that = this;
  29158. options = options || {};
  29159. Utils.polyfillParam(options);
  29160. var requestParam = {
  29161. coord_type: options.coord_type || 5,
  29162. get_poi: options.get_poi || 0,
  29163. output: 'json',
  29164. key: that.key
  29165. };
  29166. if (options.poi_options) {
  29167. requestParam.poi_options = options.poi_options;
  29168. }
  29169. var locationsuccess = function locationsuccess(result) {
  29170. requestParam.location = result.latitude + ',' + result.longitude;
  29171. if (options.sig) {
  29172. requestParam.sig = Utils.getSig(requestParam, options.sig, 'reverseGeocoder');
  29173. }
  29174. wx.request(Utils.buildWxRequestConfig(options, {
  29175. url: URL_GET_GEOCODER,
  29176. data: requestParam
  29177. }, 'reverseGeocoder'));
  29178. };
  29179. Utils.locationProcess(options, locationsuccess);
  29180. }
  29181. }, {
  29182. key: "geocoder",
  29183. value: function geocoder(options) {
  29184. var that = this;
  29185. options = options || {};
  29186. Utils.polyfillParam(options);
  29187. if (Utils.checkParamKeyEmpty(options, 'address')) {
  29188. return;
  29189. }
  29190. var requestParam = {
  29191. address: options.address,
  29192. output: 'json',
  29193. key: that.key
  29194. };
  29195. if (options.region) {
  29196. requestParam.region = options.region;
  29197. }
  29198. if (options.sig) {
  29199. requestParam.sig = Utils.getSig(requestParam, options.sig, 'geocoder');
  29200. }
  29201. wx.request(Utils.buildWxRequestConfig(options, {
  29202. url: URL_GET_GEOCODER,
  29203. data: requestParam
  29204. }, 'geocoder'));
  29205. }
  29206. }, {
  29207. key: "getCityList",
  29208. value: function getCityList(options) {
  29209. var that = this;
  29210. options = options || {};
  29211. Utils.polyfillParam(options);
  29212. var requestParam = {
  29213. output: 'json',
  29214. key: that.key
  29215. };
  29216. if (options.sig) {
  29217. requestParam.sig = Utils.getSig(requestParam, options.sig, 'getCityList');
  29218. }
  29219. wx.request(Utils.buildWxRequestConfig(options, {
  29220. url: URL_CITY_LIST,
  29221. data: requestParam
  29222. }, 'getCityList'));
  29223. }
  29224. }, {
  29225. key: "getDistrictByCityId",
  29226. value: function getDistrictByCityId(options) {
  29227. var that = this;
  29228. options = options || {};
  29229. Utils.polyfillParam(options);
  29230. if (Utils.checkParamKeyEmpty(options, 'id')) {
  29231. return;
  29232. }
  29233. var requestParam = {
  29234. id: options.id || '',
  29235. output: 'json',
  29236. key: that.key
  29237. };
  29238. if (options.sig) {
  29239. requestParam.sig = Utils.getSig(requestParam, options.sig, 'getDistrictByCityId');
  29240. }
  29241. wx.request(Utils.buildWxRequestConfig(options, {
  29242. url: URL_AREA_LIST,
  29243. data: requestParam
  29244. }, 'getDistrictByCityId'));
  29245. }
  29246. }, {
  29247. key: "calculateDistance",
  29248. value: function calculateDistance(options) {
  29249. var that = this;
  29250. options = options || {};
  29251. Utils.polyfillParam(options);
  29252. if (Utils.checkParamKeyEmpty(options, 'to')) {
  29253. return;
  29254. }
  29255. var requestParam = {
  29256. mode: options.mode || 'walking',
  29257. to: Utils.location2query(options.to),
  29258. output: 'json',
  29259. key: that.key
  29260. };
  29261. if (options.from) {
  29262. options.location = options.from;
  29263. }
  29264. if (requestParam.mode == 'straight') {
  29265. var locationsuccess = function locationsuccess(result) {
  29266. var locationTo = Utils.getEndLocation(requestParam.to);
  29267. var data = {
  29268. message: "query ok",
  29269. result: {
  29270. elements: []
  29271. },
  29272. status: 0
  29273. };
  29274. for (var i = 0; i < locationTo.length; i++) {
  29275. data.result.elements.push({
  29276. distance: Utils.getDistance(result.latitude, result.longitude, locationTo[i].lat, locationTo[i].lng),
  29277. duration: 0,
  29278. from: {
  29279. lat: result.latitude,
  29280. lng: result.longitude
  29281. },
  29282. to: {
  29283. lat: locationTo[i].lat,
  29284. lng: locationTo[i].lng
  29285. }
  29286. });
  29287. }
  29288. var calculateResult = data.result.elements;
  29289. var distanceResult = [];
  29290. for (var i = 0; i < calculateResult.length; i++) {
  29291. distanceResult.push(calculateResult[i].distance);
  29292. }
  29293. return options.success(data, {
  29294. calculateResult: calculateResult,
  29295. distanceResult: distanceResult
  29296. });
  29297. };
  29298. Utils.locationProcess(options, locationsuccess);
  29299. } else {
  29300. var locationsuccess = function locationsuccess(result) {
  29301. requestParam.from = result.latitude + ',' + result.longitude;
  29302. if (options.sig) {
  29303. requestParam.sig = Utils.getSig(requestParam, options.sig, 'calculateDistance');
  29304. }
  29305. wx.request(Utils.buildWxRequestConfig(options, {
  29306. url: URL_DISTANCE,
  29307. data: requestParam
  29308. }, 'calculateDistance'));
  29309. };
  29310. Utils.locationProcess(options, locationsuccess);
  29311. }
  29312. }
  29313. }, {
  29314. key: "direction",
  29315. value: function direction(options) {
  29316. var that = this;
  29317. options = options || {};
  29318. Utils.polyfillParam(options);
  29319. if (Utils.checkParamKeyEmpty(options, 'to')) {
  29320. return;
  29321. }
  29322. var requestParam = {
  29323. output: 'json',
  29324. key: that.key
  29325. };
  29326. if (typeof options.to == 'string') {
  29327. requestParam.to = options.to;
  29328. } else {
  29329. requestParam.to = options.to.latitude + ',' + options.to.longitude;
  29330. }
  29331. var SET_URL_DIRECTION = null;
  29332. options.mode = options.mode || MODE.driving;
  29333. SET_URL_DIRECTION = URL_DIRECTION + options.mode;
  29334. if (options.from) {
  29335. options.location = options.from;
  29336. }
  29337. if (options.mode == MODE.driving) {
  29338. if (options.from_poi) {
  29339. requestParam.from_poi = options.from_poi;
  29340. }
  29341. if (options.heading) {
  29342. requestParam.heading = options.heading;
  29343. }
  29344. if (options.speed) {
  29345. requestParam.speed = options.speed;
  29346. }
  29347. if (options.accuracy) {
  29348. requestParam.accuracy = options.accuracy;
  29349. }
  29350. if (options.road_type) {
  29351. requestParam.road_type = options.road_type;
  29352. }
  29353. if (options.to_poi) {
  29354. requestParam.to_poi = options.to_poi;
  29355. }
  29356. if (options.from_track) {
  29357. requestParam.from_track = options.from_track;
  29358. }
  29359. if (options.waypoints) {
  29360. requestParam.waypoints = options.waypoints;
  29361. }
  29362. if (options.policy) {
  29363. requestParam.policy = options.policy;
  29364. }
  29365. if (options.plate_number) {
  29366. requestParam.plate_number = options.plate_number;
  29367. }
  29368. }
  29369. if (options.mode == MODE.transit) {
  29370. if (options.departure_time) {
  29371. requestParam.departure_time = options.departure_time;
  29372. }
  29373. if (options.policy) {
  29374. requestParam.policy = options.policy;
  29375. }
  29376. }
  29377. var locationsuccess = function locationsuccess(result) {
  29378. requestParam.from = result.latitude + ',' + result.longitude;
  29379. if (options.sig) {
  29380. requestParam.sig = Utils.getSig(requestParam, options.sig, 'direction', options.mode);
  29381. }
  29382. wx.request(Utils.buildWxRequestConfig(options, {
  29383. url: SET_URL_DIRECTION,
  29384. data: requestParam
  29385. }, 'direction'));
  29386. };
  29387. Utils.locationProcess(options, locationsuccess);
  29388. }
  29389. }]);
  29390. return QQMapWX;
  29391. }();
  29392. ;
  29393. module.exports = QQMapWX;
  29394. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  29395. /***/ })
  29396. ]]);
  29397. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map