vendor.js 1.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!*********************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  5. \*********************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(exports, "__esModule", {
  10. value: true
  11. });
  12. exports.default = void 0;
  13. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  14. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  15. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  16. return this;
  17. }();
  18. var key = ['w', 'x'].join('');
  19. var oldWx = target[key];
  20. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  21. function isWxKey(key) {
  22. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  23. return false;
  24. }
  25. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  26. }
  27. function initWx() {
  28. var newWx = {};
  29. for (var _key in oldWx) {
  30. if (isWxKey(_key)) {
  31. // TODO wrapper function
  32. newWx[_key] = oldWx[_key];
  33. }
  34. }
  35. return newWx;
  36. }
  37. target[key] = initWx();
  38. var _default = target[key];
  39. exports.default = _default;
  40. /***/ }),
  41. /***/ 10:
  42. /*!****************************************************************!*\
  43. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  44. \****************************************************************/
  45. /*! no static exports found */
  46. /***/ (function(module, exports) {
  47. function _nonIterableRest() {
  48. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  49. }
  50. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  51. /***/ }),
  52. /***/ 102:
  53. /*!****************************************************!*\
  54. !*** D:/project/product_wx/static/mine/banner.png ***!
  55. \****************************************************/
  56. /*! no static exports found */
  57. /***/ (function(module, exports) {
  58. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABGUAAAJ8AgMAAAAqjfSkAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURUQ990I79zMs9igh9Ls7gNwAACAASURBVHja5J0/juM4Fsblgbs3tQNPspfRAHJUiQ1IU4FPUDrFHqEnqKCVlwBRACuXgtpLzA2mgqIAZRuUgfUsSVH/bEqWbPKRi6IHJXc3MEU8f/y97z1SsvO3gvEeTBiHv/WNz+C28fvI//PfDtjEHvRF5rS9MTSPmkNzmjYNjar5I7BUNc+BYdW83xoZ3ar5UDANI6DRrprj1GnoWlCn2yOjVzWnZ9OheQ4sVc3L5Gk82AYazar5UDMNI6DRq5rjjGloWVCn58BO1cyamJbQvASWqmbWxHSw5uO+yOhTzYeyaQCsZ1DVzJzYwTbQaFTNs+nQvASWquavzbxpPNgGGm2q+fymcBpGQKNLNaff5k7jYBtodKlmfotEcWjeA0tVc8PE1LJm9nqGUs2n4mkArGcg1dzUIlG6oH4oiYwG1TybDs27msioV81tE1PImk9FkVGumk/104BreWpVza2GQt2Ceg4sVc2tlcvBNtAoV83NlcuDbaBRrZqjlmlAFwg6VHPHxBQtqJfAUtXcMTE1oflQGRmVqrlnYkpYc1QamVHV/MsBm9ijbaAZVw2ZFZr7JnawDTSjH9cRzQrNfRM72AaaMdWc0KzQ3GkoHmwDzZhq0KzQ3NsiebQNNCOqOc4Lzb0tkoNtoBn+uFhkZoTm7srl3tB8qo/MkGrQrNB8bu6dxp2sUdTynKIaMis0J52JErLlOUE1fDlND40CAt63oP7SERnpx3VCs0KjokVysA00A6pBs0KjZGL3sOakJzIy1ZBZoTnpTJTALc9rqjmiWaFRYyjuWFDvAZRqTmhWaBRVLgfbQCNTDZoVGlWVy4NtoJGohswKjbLK5dE20Fyq5ohmhUZZ5XLrgvoIoFRzQrNCo25iN4bmqDEyZ6pBs0KjcGK3seb0HECphswKjcqJ3caalwBKNUc0KzQqJ3awDTT9j6sCTTw1NEondrANNH3VIDRHNWoNxYNtoOmphswLzQ99yLMBNF3VsOWUoGhqaOYeJ1e+oD50R6b9uFgswsmq+VQbmfmhOWmPTKOaZjlFU0Jz8x33yhbUjwBKNUckGcOhUU7AuapRvJ5HVFMXCPG00KhvkczMUJ8AkRGqkUZmMDSfGpFnC2hq1RCcEZ6g2H9XQ6NjYvMW1DtIaNjHdcJdTxNdC82z6dDAiIarBhFE0OQM9a4xG0wb/wmgVEPyFIvYTMCwnspllmqeoVRzzFF2qZih0GiqXOZkqP8GQKo5pThHBZ7qa170Ic+y9RT8XpYFKhEXTnK2oiSh0VW5zFlQfwKF5pcyz+iKItNUo61FMic0QJFxfylJSTKS8lgk/RLzIjT6WiSP1qHGd6hqUI7TjlbC4dDoa5EcbEON79DQlCW1NRg3shlWjcYWyYNtqNmx0GQZLi8EIwuNzl7so2Wuxluy0GCqmjKTiOY8NDrndLCsSnDo+CWnXpiqRqSokfJSa4vkYBeFvUo1GZUMuV5Dqbnj/v4F9QkQmb3DVUMtHy7xVdZoOX56i2oAGhK+11XN1QylGX4PViWoWjUFIqVAzTCGdX9WjxYlKN93PddjoclzPNCwaUOjfYEfrMrde1ewJstKLDPDbWj0J8zpofmmHTR+w5ocFyJDJUPlpf5P6tEqW7OoWUPt8LivAUgKB2tsDVON67pOlaFq1aBY2gCFcBIPVjk+kaGKHFHWjHT5ThDge7TG8fVYwzMUrlfTxdGjF4jP6WBTS2Kzrt1w1vgamWo+gq8VGsEal7OmoKpJhyzfESQy0xcUSCOr9jUFzlrVnGcoENDMUY3ObLltWbOsWJMVgjWSGuoFJjLTM9Q7BGuEr6EUznCaNk447BYKH0CRmb6g3nVC5sLXFJhIKUxDAxUZGxbUulVNU3lT1Uh7ElaG5k9tmvE8OWsINqsa8wtqvb7wNYw1JULy8vLLqGYbUNX4Ul8jREOLqNhIaAxnqH0QrPb7CzdcUDecVSCO7V9QWlTD5CJlDc4Q+toZasNYs9mc+xpaQxUUxP8vodGhGk+o5sLXcNXUJ0C/YobaD2UoKhlclm3LPPlqqvEryPRY4y4r1XDFYMlpvq+RoQRkJKopixSXAjbhF8xQnoCM1NeUvQwVfq0MtVsJuUh8TUELhTwjX7SGYqXTJWtcz1nWbhjhL1pDffttIVSzkPgaWnm3vibWHRrPKtV4HDXDvoYHpvE1WpP3jv7GjT2q2XdYI/M1rPKuSRxrXlD8M7JGNb63DaSs8UTbPGtP4esuL/lvdBY2+Rp3IfE1XdYQaQtUdWj4uRX62trhazhdBljjuDVr2vMAOn3NzhFjY4WvWe+v+hrKGtHKCs/3oTSQxvOWEtwYUE0FGbmvaViTyo5/qg+N7zRjYV41OwoZjr8xX5OVKSbyA2tqReO2r61p1fgCMqO+hm9eIoBCwXU6w7RqHGfFWePKfM2iqaEoiTFA5e31hlnVuM5yhDVehzVp26/RlqF8pzcWRlVDk6VgzaivycqBxrni0Lj9sTWoGn/nuKOs6WSoQn9ods7Z2JhTzWbXsMaR+JpF62tyoZpQZ/JuKLOU4AZWNQwmywm+hlfe7Z63tsrbuRgLU6r5rcOaUV+T4v7Nl5pC00DGk+AGVjWet3MEZNxR1pRZ62s07ig4krExo5p1sJvia9j9ULT21u5r/KVXv7zm3dKIaqgTnuZrKIYJkRpitaGRqabBDahq9uvNJF9DKYzx0LlhjbamjxtQ1XiMNRVkfMEabnB8du1lKKaaVCYbpaHZOfJhQDXrLmtGfA07KVE/UyKO9e0o+C1gOi/HWYKrhhXdE30NrusErSclhlRT4QZSNX6lmkn9miLN9PeGXYmvqfaWTaim9jWCNT6/m4Vdzn1NBnAqa1A13N1Aqma3muhrihxRP5w2my26jjl6y2Z03i4FiiFV43mTfQ07lqX/3LA7rBqKG0jVMCszrV/DM1SdufXtKOzkvqaK2LcDsGrOfM0Qawr2HDFzGYqPfwKqxpnsa4pWNTo3dndLR7yWntO8r0PzDzjV+F3WbAVrOHS27Er/+czXYN2nssZV8+sbmGp8Z7KvYR3Q7sHhSDdrvEvWON8RrGqm+Zoct74mMsWaX0sEpZqds5rcr6GqwXW/JgYIDauczsf3NEsNsmbL37BLVWH1VEMMumGumjR7hVLNYka/hmT6+zWjvoapBqE3ENXspvuaPONWmMie5gipGrqogVQz3dfgPBOVdwiyoAZYQ39hCqEar8sasSO25e+23hlraOJOkfSoBDBr6MfzCqAad7KvodVlnqWpaV+TVjnyTb9q3FFf45/VUG1gEnO+pjqICqGa6b6GPQUUX9bdwKzJq8dBp6CsEbDZttdtnzXsYVmZ9GmOkKoRBuJVv2om+xrWyQI4X7NjZ3HFy+28b1UjlvUbDGvcaawp68I7NpahqLkSp+YQUIaa5GuyZh/KHGtw+w0gKSBrLgaHTud8Td65s8WQaoqsLuOeRnED6mvY7RudYyS9Z5vrUY172UL/nmFaKlRpIBrDDaivYXverR82VUPR9dRJkrb4GmaHCSCGpazJcgHhJP6ZjOBGN2u8Hmv4sxwxnOUbUA3pWohXK3xNVrL9S8iNXfcSNpQ19aGEKPoZhYO4UcQaV/gaz62Y4/niJ7+2rCGG97yFasTmclJ9dYwVvobW3c1xc32P9rnGGmr46g2fiN0O8GoBa/hNqanh3UummkwcQo0TfqvEmwX9mjRtfA3IZovc1+TiQGFcBWdoSSljTS2QcdVkoiFgljXtmQQUhjQ+YWre1xS4/q4AgzVUhuuHbYZhzJd2IsUNMGsy3Ol+hqZqKFzUmSCMozgK5f0J2H4NtXyZ/nsvr/iapvKmNRQXb0zzFNLta66yJhf7UCYzFE0E9V2OlMHRU8zLuVSvr9mzJwvTP9Er9zXi1fE1hJQYMkNJ+zV5Y62in2IuiaRggK2hWHuNmHbDVDXtYxOTOEriJJa1Q6H7NUT0kYB2L2W+BjdfbRZFT/Xaji7boaC+JsedDBWay1CofbIvDU4URixXXbRD1fiavWDNfs98DbvuxYW/7bKm0P+84eu+hoi9MKYaGpcklvUnYH0Nu+kHYeNuuAO8JK7EG3HyvKlVDafMiv+kQ1w2m7W4stHZhyIFwJ73lX5N3vz+J+ZoYpbExVzM+ZqifrxaYnDPm6aCykHwSTDY0Cwl2X1Rk6E6rHEEZFb7C9aw+7yJ6NfECcRB/AHW1KJJ2p5RfX0z5WtY9m7XuaE9b1zkYg4UMLSIikKeLMW9a2pZs65Zs2bPN1rz62axqa4b9r7dvSSglk/er2Eb70Ts0SX8+7Oj9t7q1FC/hp+NNZ+higZ4ESuj+jcgvZrwNez5NUhs0YWhSdak1RcxUQTHEYdO12u9mfE1qCykx81h3XB7QDcKuRkOexlTqa9Zc9awIS7toAZn3TnL1+t/hmb7NcwFU0scV42+djKpEV/DvpiZGN7zzki948MyFFtMMQ/MOW4U+ZoVZw198T+x12pfXRl1OueG6xvgdfaG3Wv9miYRUNZw0Jz1ASrcAPsaIrbHEqOnsmrVhnweIQMOj07Uw40aX9NhjSMYsxhgDUlN+xqMS1H+x1EYhfXi7qWFFN7XdL5iNzZ4KquZAV1MT1Vv4my8qlHNiqtmValmdZah9usea+oOm877vN1p/Rrex6J+j28rXADnTUFoZrIG4Nnm1/s1aT2HmFtPtoF5MSUFC2qmryHE+PmavFN5o4RKJ4wqCffik76rYs1EXyM6bInBey9pDVUfPUI/46he3PH53tgfKlhDR/WzvdZjveN/2bIG4Gv6JtZQ9PN5qigTn5+f4+PHN1jW1LdeJib3vPM2RT6xTW8Uyj6uH/In6s/zNQv2GOrFgl4X/E/d16b625o1eXePLjLkazq94briTmShcdSw5n/MXd1t4zoTdYDsPifA7q3HD7kFLLBfCwHEKm4JeTULIEAKYAFyRxSgGj7N8Fc2aVqOxLH0YGADZA1ldHhm5syZO3mNSy9pe95ud4y05zcWh9llmQQfzcumWPN2C2uGKeyHosyh4gl1sqHLcr2xL/AtadfznmPZQyBh1CTeDdCH6jKdZvdovgc3gDIviDVwuY9wvf9+sT+2qqzE6pLvVjY/1uo1XjjcobKmeELl7L934zVTrygd1nzUmGQAlHfS2jhc8Zqv4gKPPXiNmpo4rFWwZnCqhE4KyJ84z57dxj6a78DNGqw590MDR/x61CTTNbb9BILHSznUV3GBxwqsOSDWLD7d/fL+y/6rcyLxg8S78ppjjdeE9mUHpU9MLuU1s/kqLanYg9ecde9cjyShO8A4E5tIrjhUQIUqwvB3wmYFrwEcjkPwjFPlUDqc3JxJzHRzcPNVWlKxD68JjV3aeag+/G0EU+7BcFF8ND8ejpqsNaD7eP8V/sl5gLZkw/l6zRB0c90JI8dX8Vnh0bx8D2vu1NcM5L58/8SFOiwstL2sHy0fzeFxrDkAmrwtPt0NWHPwWAN7L3tNX6+Jky1CcBiJ4iyXeyeP5sfuWINR41Nv1mBUrBA1fWIN2GHAsFsn1MNv1DqsWfAaRcJr4mSLFUoAkZizTF5gw994o1bVa2hdqoNSIra8oVrjDydZjJoHqU3+Czh8mbEmRg1izRPkUL1vvHMofmIFgDt1bOnR/GiDNe4vRKYAHabUeAmUJIzl+PD3H81KXpN06DinqdcoN7E2B8opvkr81qN57Os5i64Le0Br4GVD5nhMt6Ua4hzq5xisfaAczDspZPaI+v6jWYM1cT8UJa+JbijCCgG4g2BWfjQP4bDf35Dd62CvQ7ofShPnUGgjpqOsmwHn64JueP+oyWPNjDRtT6gcr5mUr8My/snd0G4GhxeP5sfWWHO8wJpQNCfkNT/nEyrphUklryx+t3qhVvOa3PHdltdoJ0PlHRRsYDxVlmvD30gV3PqGi50O7tPurvIvFPIa6j7Uz9G/026SWQipcuKj779Qa3Oo/e1Ra/Ua7Q9vPmONc8zm/PYL9bI/rxnIe94/9ehLWVCoEZI7vxi5+aNZiTXZhkJbXjME5REc2hgzVTb80Pfz+xvs58dytwNgzfECa6h5zdh71RzUhrmt8Em1wwu1Emumgbpeg65UqJrDjgKUbKwioNCie/z0XsNrQpXPzoFyGl5ztm+1lfAx5Skf2/yFWpdD6QaO+DVeo7x/LeeMS2hEiUzVfIOoWfyC1+PiO72GBCrkUIYea/zopZAWZ7hU+8DwGqzRUUbS5IQq8JqhDxUjoWzuLa/+WmYDrHEux6nn8Qwy+Ol4zSGp11hHKFJeE/xr5gcC2SVISdjt2vD+WDOYWHyUZPUarydkOEEHTahaH2oLrDncxBqImlGRY43yZXM7CZXZrkODNWqgrtfoc5ynFhzITadkrShx+PW/v6vvZdC4r3L8cB/XJ5RKpC00vMaEZbY8MdFpdkKVeM3wBLxGx7FhsIPyp5TYnA2v4DW4fWP/es2xEjWjn0vlFmtAx8cYMdYM0XIdcI+oD+VFc+D/GUc3KifUr7/rr+wJ5bDm4zpqBvrasIkb8ebscn6bWCeqMNwAaxosXKtijT8M2KcIqnd5uzZ8+A2bKlfeK3gNlrLiEcVosGZMyyKdsIaFrNKia8BrgkeLJOM1MLFre96oM4cBBc5lSYi/Gdbc5jWw6ce7A1DmUF6gK63IMVeRIMCaxPaNTssXhxyZTeZkvV7z7wPXunqNU4BeDvW1xBrw5UtF1cCKqes14CLWVgFamvP2A7so5RPXhm/teQ2qzffHmmrUDNE5FlUkXNUThX2xZrGZ+Ql8+RTaMHMQH83JQoUN3xLkla41vEbrdB6KjNdMJpr7iHxhmCCHits36Oo1vUNhgT2okrzGtOY1Q9gqJqmwZoxVczyhGO+EJOc1M9Ck9RpGhDUmblxL5ahyV6yp1mu8jo6wXtP7oR/GUHzUoV+WuimpboE1qu+pec2kowD0etnF7idUsV4zmJzYvG2VzzhGPodJ50/uzPzlRdT8WX+v7HmnanMqTwmf/ucHvGl4DXYUqLHGJC5vJzii4JSqikia9KHaYs31ozlrE/q6iodNE1e0b+OoqfIaNXpeI+iipvcikvn0xik6kSN9y0fz54HrwZ53k6LE62u2Nhx03Z/RMqvGhvfnNV5GR4g1o9M/SS+qjsc4Xb1mPqEm3bKjUNDX+NlLJxbmQqjMcGprXuOM+Sh5jU4WFnTolZX1g2qKNbCzZUqCpkFR4jU/vqGSRb+oN2eMmtfEsjkh1ugwQsLYSTp71GtLiUs5wAPXutrw1O/vy1fhNfODiftROC784VVJ9d68BqPGzyiQ8Zr57xP0NUK5alb1hWqANW2dSLIvVCynYcWG2wFMSV2vUY7YUOprgi8f55/KP5da1Lw/cFWw5m3Ba8Zz0ocSDXjN4ZhTZQ1hLNVOboBNAJf7suEKrzGo+iHmNeNwDuW0DkG4u6MosTPWTNN4bqrly79Q0aLl0zFiSV6vQaxR1Fij59NAO8oJXV3QDFtxLCfDGtTXjDky3Dpq3AiJQJMWq+fjnJbXwIMZdtcN35tDgfbTSrKyXbq9oiZgTRI1I6zpm5pm3vkR+LDrXAIXlncd3jvzmrNOBuAZ2Qnls0vcS8JxozerdhR2xhoAm6IH6N/N7toLdQ5nVNxgyGsyx715DaYJ1PqawTg9AJuxhqH+SNQP7/e39ff9WDONykxTT55D+Z63nAmwtLosrq46CqYpr4FVAeoJdMPhhOLOCZ9lXMRa51BDzLwvRCR/t7vuYcMmlkYEb8KG630o7wFKWBues5XBqQE6dcLnI8O8d+nRvD1w3caat7elUqLolfXACEDpvjuHsn6FUjZRSlR5Tbp+Q5JhTe8zFengFxbB32bDL+/r79tY87LgNVDlm/JR0w5rtJ9RkLwTdkJBKMVp9TXnsBOEltek/zPm3XckCjtjDdSyprQHlGLNx2Z3nQ2Pibd5shePUfahwkpQQl4DUTMEvRqDNfCcVQcMXx64b2JN+nPsKOQPqMZYE+Cucx6gSl7Xa0xrXtMPQaVAVxtWU6ylzSd3J/0OTDKsGXHoJ6vE/+/wsd1V5TWuXiNB44jRwjk1r7FDP9RaPp2sbOE4KsYzJdnLR7Pr5WYvxwLWfGx216Im1GskTinMISOkVJyW1wxjmHqkm1GAmsToTig07LorUXh74L6JNenPsTacekosyuYNsSbZ5y3FCVuYPLMwoLW+ZnQCDlKsMQtosVW+mn/NvlgD+hrVFzxAW55QevQ5FPC92PrhlH0oMxlFzWv0wgxa4nYSEJNIwqiBHbsqWl0sixINo2aIo8wnq4rNDSu01g0XPHUbq7KMfaGcWJh194xv7Iw1ZygNG5OtDbeLmmT6EwbFcKfYHbzm+LH6vslr4Odp1PS9VYtlsObPZnc183a1e3bBsaQiZsM6rxtuGDVhnzecUC5eyHlNtGKWlKqstM4HdXNUgpLzmog1Fz3vlrxGJSeUU5BUsebSNfieK89rjuHXXSglTKE2/Ge7q96H0rHK5xyHGe0JhfoaXdgqRhE1cEIxrjrOcoFziTXr7+UvWM5o4c8XbNiYrCX+fw/NAKwaDUjYsMMaFl9rQcxrgA3HcSi51A03jJpJaV/lO2Hmjb2oSm3421hzuIk10OQwmhprRnVe/N+iMNPcFGtmNjzRZ97BvAEkoHaOmUlV5TUP3PnrNfy+5IXCqCnohn+/b3YfamzYteicyyWbkZhJajY8R80wUJ9QyRnJBBgfiXtMdXfmNfavFbR8jAhrhtH+fZh39ZF3LAtogDVBbi7o+lA+WeH8BH0oMGtRnLaUNQTJ7jXWvG93VXmN6ZO9l4rfJalugDW9ImfDg98qpk7YbxFYOK/Uhi+2Idx1Z3mN+1z8HOs1yhR63n/eN7vrUTMEZx+7K1U+A6/Rir6jEPpQUvqVNvLa+si0xhqTOBZyKqyx3wJ7c5+48pKrp8ihCpMtbZUSwQ5f2XExzqu8Zt9HA9OFYWBXUp1QY5xXY8qqSAS1UgLqNZPW/ROwYR0zS1wBryRxi+6Wp0S7qInbN9Ch2q5SIK7y6QmdSALWME6VeYcjCrR8naV+xFijo3f25eH9yLxR4a5GzeieDXo4CnQhEeRs2DxBbRi+gnFlRms47ExsaHMoUCloaqwZXZ4gwsiPW/jDCXve4Etq6KMmTIqxGWukDPv6SNlwmJxIR0Lx0bxtd1WxRo1xz0V3p9Flg563JmfD2s9k2UV04D/HpaLmNZh653nNy3ZXPWrcX4d7MwnFBHHPG7eKKXqsic4JXbSnpuU1zvUo61/TDmuCt3knOSSYmEYRn1DoHDspci2fjntjJLc6Pi6JeQ3OaOkC1mx4V3veY7RiFgVjHwKsiSmUIKsNR0cJjjI+7NXRY40u+A23wxodJqqlrfRxlXsyzXOoydB3FLyWDxbJipNiTjx3sWeiLRvGiV2TtICSR9PsmrFmjEU9O3QppKCv14z0bDhgzXxqf6JFNafnNZheDnlfvrcN71rUTIlxorDmfIrR9qEgvdT0WHNO9kOBJ9QzNHbPg/GDj1e8piXW+NpwHPdhWO4jZcPzsRmTKKLacDyhIEXo3AAmcdTANpuw91LQRY0bqWbp86DNvMf58B5M/zRYgysMEW6klPRYo3pFjzW9WhwGKDiveUrsnENB97Ko5Ttud9eixuvNQTfsdylcNXZbs+FB+dlLSciGF07ZUrDOygKIec1E31Hw9RqJuuEu7qIjV0qQYw3MQ+lkWo0Jxem7lz0oJYbs7OVxw6vyQoW9l7A1q1NC8TtWgu7Na6ZBleah2kZNUoKVaJfFaAugdj+UydeGH5k3Ktx1Nuy+RAcSUOZUNpxUiG83/WhirOmH4G0unV4ta0XSujYcdcOMCmvC3kspuT+hJHGiYKMmekowmqiZYyaADTZa3AiHoK4Nl9jw64Z35YSK9RqBky15F0WC2jA5rzHGYY1wHmtCOC0fJ60N68Hka8PtsOaso5ZvjhrpAPl5tHyKLQ/vtlFjmyuCyxg89H0oVdDyNUwvdZKuwBEFGptnOKFGpclzKOVzKFszF/9n79pSLLmRqHtc4I/+cO1gdjDewVADXktBahNeR2kBAilBC1BCz36UcDfQMExGhF63SrfubcapIxh3Yew/F9mheJw4cc4jao4D+porPds21/yJP/e64Uum8hGTL18XGqhkIfc1e/9GYSheUywMjeDDcE0JzjW39lADW76iyq+ZOmyNdQ6ODTPK57v6NQOjZnW5r9E2KZsb8GKXseFWA1SDBoWCDRNjrbhmaWg3XFA+JF7jt7X2Vry3tBPwa1ZqiPsaoEOjZk0Pyrwl/3eLlhFjjz44XlO4y45hLPeYC/zZM9SRa/buJnXog6rDP7v06f57GtzX8GuK4FxDmpLlHmoRFebeUmHop7l8sr0cOUOF3PBZ1z2txu+hYGk4e9E5RYtdteSQ0dgK5bryc2OLd/bO0jbzLe1fe6ifkhddQUCZUs0tDrRCca4pt5cWiddUsU0SVxP402CxYdK59F1/qKF4zZ72UCaTSAy4eMudN37yLp4tOsVOni4VGBv28Bkq+8gKYS2jNeBcc4wvAV6hwnbFeGcdR63geM22dt1sBkdNwowU7VoYGDYfKKkAlC+sE+SaQstqr0jg91CxaGUBseFMN6dFFGESSsH1hul8I3RXCkOjJlS6msjGuq6p9+AZ6pZ07NC+xqdcw6LmYkNnwBWKsOHNr/DJuwldK/KxpqfTMrobju6Gfs3IGSqP3gu77M6gKcHa5g1eo1EzVN2F0Z03eV/qu54t5+M18Zbe8EiUb5WPw9c+higBRLAxYHWA7aZ+zXiUj0mfxs0h0lKVY5H3UKHuvLmvISd4NJeP9YZ909koFMpX8BorHBvbMyAeHzURzeUjbLhIFuoyWGIn7/1KiAQ2XvpEXtY6SUIZ/YGtC4ka78F9zV5PYxdDckeUbOAzFGmbR/zkzOFq7AAAExxJREFUHao5iq0lW6NzjYP3NX4vO+9FzpiJfKSxO++jr9kmiJoQ1mr6tlhq/DoE0PH8Glf7GtCgsK9ZzZGts5qKANYbvsU2Hwll5Tys5XjD2Qk0Ja7QABxsXoYV4eHTDNVwA2B7qH1Fc/m8S32NabhYGr9RKJ4tQLzm4hIEqml7qciCGO8qFmIl7QLJsf5d2OoUQhq6UVibvkahuuGEGS18vcGkNQWmVG+b34OLaKZE2UMdoaKSECieX5NpqeCdd+ZUH8PTwtfMJvGQkCjfXilryDRcsPvMiv2oKDG8Gw6tLh+KX+NSY0OUWLVY3l6CSSSUazbv+3feI1G+DEpom7TDDFraR/SG+fdCc/nqxa6RizG4EokPE0ze3heeI9le2gcdDM/ONbtzq4P3NaG5UWAVUKPBao4bby8n6GvkUcsaSvMRXXpa6J23h/c1u69rKOv6E9R4vCa0FoZgfg3PuIpamgWvDlBJCsDby8yvYZBGJwIo/GLXb2uAc/mIXyPKCWwxwcSajo7YcAfD4Hb8jUI17zIqeewaGqQUdA8Vg5uAX1N0qllTQuspmBK5cFpg8S4eVaZM23AvOtIbDpcJcs2eotaK3vAM6gAh9oVjh1eoq+5B48dL1hsutCyYtA/JQSUtZoLNCZXgERPNlLjpDzV0vPTvVFmUQ1tnca7B3yhk4hFZIFGu4dKN74ZXuWAD55qit5EJWWjYnHNNwLOyQmK8k+IRa5t34Zo4PtfkEqWAfc01nEYkUI1VjuW+Zu1KkQzuhhNeo/Wr6PL14Or/x74mxOjb34KofBYMSqS+ZoJuOH8Z9rx0aV6w4BkqVSjkDEWnfHujB63mcEu9qlAG29dY9lEgjgT9F3gPxbkmou+hfP02yU22b2P47tO8DOhr4DvvynPUrABaMjB6hvJwHwXXMgrZE1Q/sL18Or2vmeAeakvagFqpNzLo4zf1YeUSRz4ozjWh7qEUGpSQQiCT5X1dvpezc00zKqDuoXwGqElFTMt3mcJVLOA9W9YcM68cMzof0X2ahn9/OvPTUK7prrwH77xj4YDSPsEmuY0JXMXQunzZ6Zzka0xWNlf3by9fXs7NNdsEKN/mrndhgklAWz65h4poXT4f9ySPyquWZE1i7t5DnZlrPN1eXmuRgHjD1/mOqvfygGTh09lRU9tQIG+4tZgwbnnE6ef5/FwzwRVd2oUd3XAjTv2AZ8vLeVHD3wXusVv0a+gpLcKTsGgfBbmiq1CsRqF8pRtW8rbVAw6GT6e2fKKIj+cNF3foV0OTgn4QNn/+13m5hhXxPVyl2vtrqqV19pEV3cupUXO8ph1/e1kqFK/orC3CCcg9FOkNw1E+nytUkkZNkITWd6Gsl6fToob1his2bGAVqnSdWlGJso+dpT5/ObGvmcOzJWZbMa2laGflWA0bFMTpJ8A1JfL5hmhlaW0eOjD8kv45p6955w+Fi5qKmyfhow6/ptsNP50ZNXsunAbeDStteAWlxFzs8274C/+ciPIdUbP2PXbHVqgSMlp6cou2s6F7qBm0smJVWGP8036A8bu55vm0GsW5xk/AlPDZmlmzqA8LgD60UXg5q7NJesNVK0uBu2HjXo/3xG/JPNANP5/5oHYfZlBzDFVVwvIP0/AVPtfAtbL2xMNnQfw0eCv1CF5zXoWSvgZ/e9nErZVm2MgL15/PUC+0cHk5Lde0ZHNU8fa79HzcDd/Q2rj9oJ7PyTU0Q4U4wQzlymkLTdxdrayb2PDTKbnGh9YfCsjlK4xhZpAQEHoXAD01DYvvZYRrSgTnE29YWeEBPMSUePrpvoHv/xY1K55fs1Weua0In3nILOD5jHTDni2XKTQlklegTT4K5Ll2lwH6JGFzSpHKCmsT8Gv4QZmsN6yTzSMUGyaoJKJvFIKvw6UoH9kZLnZ97LDVxgtdNnrDVmSyHhovn89qbtizJfTB4aFRE9Y6yNGT0hkcVnex4adzOhueoVbnPNofag/lznspAaygivjUoIfWzxumXxMrI2sRM5uHFdbOm6GqLh/usiUfGB5h88ZKoMSXwCri78eD6rc1w3nDPjfk5oagxL1P8/TnR41LD+qdWMHYbnitpCySruGYwZ7AE16zTYANp0MJ7vJY2Nwt9kcU8V/Kvz//+fG+JkY0vyafKBzxogqBBOy+cTToE+gN+72QfHjdotUEKtVHGsb7Xu7lhIQrFD8oA17REV6zlhkKqMt3KYqFjqlHff+NsVHTeNEhbxRcHqKEaS6+oFBF/MuleJ29f1FDo2ar2LDMUNbgvejYpA/te+njupbtZRYYUnC85qhR+BlqC81hauFT4/WG4xS5pugmsFJ1Mr+00Bkq1o0CzM4mC6xxk3dDTwITNfgbhVAGOZqhFD0oZRzaH+pKOBbWDeeOXOVCqXsqoKO7YSeAAHiGyl+GsGGrnXMz+HmH/qQwdvL2vnjREV5DZ7vobpg9W/YJuHyxRfmMSKwZdF8zg8Kab7ph0sqy7gew4RMrlDiVWij1KJ3AW8aECRzWolqIzTVbmMcFXjEccRMcHl6hJvCiK6tlvfCIoDRx+QwSG+Y91D4Byudd83WEPWLx3XDmbyDvoWhcSUd0pUK5CfqaC/6ypWW805s6XhNRSdDd8Ax6w7FctnCF0swm0Q49QxXvLGDxzj4KljdQtsp3g7th712Ee9G5wq8R7ojtECWgO2+Fx4Y11+2ll/7Gd8Orw+eapEMqsnPs9WOdA/NriAEaIpg3XLh8IlYoo5Qx7i9smPg1ZVB4dYr1a5zDdsP71WULsBt2abxkU7GusDkG5VvRe6i2FrC9BDnRKQXva/zq4Be7vtZuIqvZ7sYbMEPFgNbKCtHnCpW2lrYH1+CwYahybF6FvfHJT+LiY5kSNEPtaH5NaGUtlJ5k5+1vBM3oXJMODI94Mdb1lc3Hd8NrwGtl7VtzylyMvD9I4w+fodyld5g1NGpq5GrGJbr6aojJG168iciSNEDTr2DhKN+2VbxGzQCbWz6BX/gTaQ1WxOeOIqJVj5onlSvTBH7eLuLvodKKjqTnFIeLcPkUeIYKzTEzijfs20sxtgWFr+g2ScPoXFMEu5jEtwg0DHdm9jdufkbza1Ky0Y7sbI6vs8CNSYg3nIFZ5YA+CvkvaJH1pexazCS8YSzKV2H7JbEdHf7OOyamhELeKGRhPqNfKQcvfOqt0d2wn4DmmJ3ojUTOHFw+YmWFnvD70KjZQtYAXdhSTNSqJ+DyJUHbCW4Ujj9vkox1z0hhPF6DV8Tf0okC6camCcoa/Eah9YeCRU35NpkFYB24QjE2XDRADeweqoryLSw+18ckAJM33B+KOLol3SlB+tRyVwP09FzT/r9RsHlpO49EY90NIebR3XDYWc8RnGuuIvfog41w1ZC3l3RE590ErmJZOJZVWpYEEuMnb7zesI/v5v++0c9wvOYKfYT1NSl4F/NG8nPOpOMN6PayCRqL4g0f02UTNQLxWTQAuq9+hm44z5fJbU1rpRxe2zzuE/hDXV+QLMmPSYP3UEeLPoOaYyh9DdmBpm4Y7QJ/5ODgsH7eIfomchkwZ2gCeed92cPlyrQFdXvp6oGhKUCWxXbD5CMTJ+DX5BsFeVV05w2evI++pnGBxzElfIGylmwIauEeuz6seP2aehursk+q6RFkh36aIw+H1eMrVJq8DeeaN1lHfTT7Gfhpfk5RA+cNx/16raH6Z3QDP80vcudd6QBopx9ONYbQrAWsX/OLbBQ8PNfE1PLpzJzT6D3UV8aGPd7B0Bfp2OWNpS773KORn2aS28v3Eq1s6v2AFPOJf37lPRReUyL4BEqQuNqSOpoFypT4u9x5J38opLZ5zKrHViR9FBrl+40YoGsTzShR3VClAd9YDcpZ56AV6p9JAxTvDxVzlZRVFLG7sfdQG2HDM+A1R9SElGBEiESnQQHWDX+7VEtQsH5N9qIzWSXVQOkAxwjFGqBhor4m7S8tGOX7+fu3rW5aLJB6VLSy3Gu2lsDiNV833sPPkWt846NAsoVY3vCv9J785la8Ll9WlMzuGxp82fKPy3c6Zp7CLbW9iJIUrJlPAuqG/9joDim0O28Nm6F80eUzS//ycmDUfDkKFLulVmwYphzrk4+CUMyt8I9wueZv37dv1ZkZrF8TysL7iBetLRav+XoEDbV8rbY5eIaSxnO5oYc37tP89u/tm8A1eG3zffXFv5BM14wp7lmIT/ONcg15is3AG24QIysbb+CDOlINRY1LPYV9hzmOjZrakxulZMsCnKG+bpxrtkrmM0B+jTyoRWgS5HqpgXjNH//5fiF+zRE2Ho4NV+n5t5JfLCpqaOy+/Le5a8mN3Aai6F44QPsG8SL7GIhvZaA5QHqfU3gbHkCAaEC9lwDxPmqAPAABMvUhJfVYs0qL5TFmFrMa1JQe33v1w64sZ+Q3x5abLTxdg00Buv26BrQWG/4jEta4/hvwGkjd5YWCH3MuSxwkXqiDHVx0dEfhjlNI7Tbvv9Q0xBrW3kKMHl8oeLs7+Zr3asz7XaMtocU01DFB1rCGWm1Ya+SUNxsjTb7/rjeqP7VCcw3B+SFrKPEZhX7RUO84Wti0bStF+V6TtXZkDbXwGi3p8pV/QlvaP43IccdTSsHhD29YW/yaRqwONZUdoIi+ShHWCGxYO9oUbPLjz36NfHMsXZbIIkFLKO9rCikM44w1k/i+4X4q81DvusF1G+2mYfOxP9AkgJoUwnjv10i2ORrT37ErvTVHtzsbBqCJCajw6Hzxa7b2mVXFGpObSFTDh855zltXfrwBaACE4TeiMPk1qwvsSgux4dzY3XKpUM3/lKov1CXhL4BgjIybrWFhXnMrHxTeoss312oP/bxQZDBz/AA4jH6N+RZ9w0tXrKb1atVv0T1RZHzC1yk69mtuphf3a/LpGBDe53xvTZm611IPlkIDOIxZM1B/jTObBn5ll29JXVxGok31y8wXjksEMuwCcj50A26dEb7ZsnjDZ7zZ0vI2x6pCgYEGXyhIG2LDrhySEa8orGwJ1bZmE2w+9gSaGCN9Th5fKKxe4pTWNInXobiRpSHLPCsFVZHXFKApLxTXoaZOvlMC22u6dRlKb57f2I8NX9KMwQF9YU/Vy267oFB7E8m8fK5R1DdcdQcoAI23IaRMhhORYfRryiVZlr1Sm0jmpVR5CIqt4Sq2+TEhzGDOWIQcwJlw5/LJ7q8p2wEa2tyt8vBlHV5TgMbmP22kx/t73NjtyxQdradWxlS9YPgGYttz3pDwDpbfbqwoLGRY6iTo5IbChv+lzNG62pm+Z8oXCyiThbd1Ab8orENtD6bWxhqzLmtos/lEfewDNPl58kxrPMTID251LVV4V9ZUlrRopfCSgmK/Znc2fLgm+JhiiGlhNgPXvPvb8C14zeeqEMbLa3QVU+IVkoVYHuknfKBAKoSQscZ8zsZjK6uhmmUEvq1TvTxlqW2J0FDqBOvRACXpLd9tjhqq3M7SvOJcb3zjj2fDR3iokw+e44O/vU8AwtyV1fXyN3aXXVl4UCzH5VyhDnWliHDKhExsIINGz1hjbt9iV1apn6pftB3tEZrXFDyzGe8LrQGsGfwwEtb0q2spWipryjjAuWlwLrXRebJlV6FwQjozwk+pJBRWTLSG1qNKY81vfXffhqrZrtm5lw+ABj8mAJfkR0gWTygMvGbwo89YI70r67krBQX0ayBxtodSHx2aC4IMwvAqY4gNQ9YUrBH3hqdZepM+wAMcSu+9pOUFdGRmMpg3bAxD8oRApRbOmn6Zh9JCWfPZ5xtVtLBQa7Ym9lTeT4kw2FufWU3MgGNZeeNu889OejvAaW6vadbmvd7TNj/YABGxIyVMpJeJ2TByvnHmNdJY89JNQ5a4Go8gKUVXbXbFGgQaIHszzFimfGiAWi7sIta4r92XdUPzO1Y1cuKUs8Ptl5VHD2XDADTBgaYEnjfC9+N9Vgn8VY3o9DGvEZ69/Gso/z04i9rCC5Vn6HarKDxhckCqxCVbsmeTrOesYayR7jb/c1o63pt8pm9rz+XDQnOwDkHYIrBAwtgY4+r1RpePevlMb6R7+f7GZZs9N7EozdK72bOwe4kgk+xcRcCMCdiNRZGBv811KDeJX0v9Z1pGFHi/ZdNsXnd8UGie4auhpxsCAyob8oYkVLGHQXl7nofqmPMJ7q/phvkQE1ufimFnJ+V9xLr2gAI7h4QgxrL6RpKTRsYatyp6K5HQHEhAlfMbfAdenfdT3lcHgaGs8Si5geItSgFiFZ1DRjwy45Ptrzn21ObDNp/CnmrOl512SrxhJOCTwayxcZFO5aXyJWu6flrRYZFevqPrl/YabCKhdgCt9lHep5gga/Ar8twzEojWeMwgYjWUNVzz7qR7+U549I0BT2FAslmzj/I+Wu8gRxx5e450d5ozptg27PJ1NGEo+kI9z+uF6MDPctzx5zLdI9jwFd6hwQ4WqwYYkRH7amKci1HwQDlPynvo53JzK1Wie8Vnsl+5WMiFldpolvj/ofkRPAmnQCYW+ljZ+8QWc654Q+ZgmyNijfnF5tj/AJn5Im5LIAsCAAAAAElFTkSuQmCC"
  59. /***/ }),
  60. /***/ 103:
  61. /*!**************************************************!*\
  62. !*** D:/project/product_wx/static/mine/head.png ***!
  63. \**************************************************/
  64. /*! no static exports found */
  65. /***/ (function(module, exports) {
  66. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAGGZJREFUeF7tXQd4VEXXfs/2TSVi6L0GEBBRUBBRURH8FCygyG8XKSJSRBGlCoLwUSJSFJAiSpEi+IEIUoWAKNJEek1M6CSkbN/5n7mbhJTd7L279+7dqPM8S0J25pwz5525d2ZOGcLfoDB2NQaO6HrQuOqBoT5IUw/MXQXQRAIsEoRIMEQCiMrtbhaAbM+HsgF3NkiTAuY+DsIxaLXHAP1xIsos7eqh0tYBxhjBbm8IYm1BeACEVmCopEw/WBpAu8CwBYy2wWD4g4iYMryUoVoqAGaMRcPleAbM3RFgbQGKV0Yd/qiyywBtA7F10JqWl4YZHrYAM8Y0cNoeAWMvgqgzALM/9Yf4ewuIVoGxhdAZNxKRO8T8RbELO4CZLfM2aPQvgvA8GCqL6oXalQh/wYVvYKAFRMbDaotTkH/YAMyYrTEc7iEg6gpAF05KkiCLE0RLocUnRMZDEtopVlV1gJnDci9AQwB0BKC6PDJpmoGwFsw9jvQRSTLRDIiMagplVmsdaDEJwBMBSV56Gq2BDgOJTKfUEDnkADPGIuG0DQPwNgCTGp1WgacVYFOhM40h4vvu0JWQASzsX132bmDuiQAptG8NneIC4iQsxti7MJgWh2o/HRKAGWPl4LQtB9AmIMX8/Rr9DJ3xGSK6pHTXFAeYOayPAGwhQOWV7kzpos8uAvQi6U0blJRbMYAZYzrYbWOgwWAAGiU7UYppuwGaAJ1hGBE5leiHIgCzzMx4GHXfgaiVEkL/7WgylgS9qTMRXZa7b7IDzJilOpy0HkCC3ML+rekRTkKL9kSm03L2U1aAmd3eFOT+AUBFOYX8x9AipMLt7EiGqANy9Vk2gJnD0QZwrQFQRi7h/pF0iK6DaTqRXv+zHP2XBWDmtHUCY4vD0OIjh47UoMEtVc+TzvhdsMyDBpg5LPcBwjs33Mx5wepG7fY2QNue9PptwQgSFMC579yt/z6Wg4GgxLY3oKM2RMaDgXIIGGBmtdaCDklg+PcAI1Dti2rHLsJFrcgU2Oo6IIBZZmY5mPQ7ANQVJeO/lYLVwAnojPcGcrQpGWDGmBZO22YA9wUr9b/tJWiAsR3Qm+4nIpeEVtIN7MxhHQ/gPSlMQlnXZsnBmRN/4szxw/jrzEmkpZzFlYupsFpyYLV4LHUmcyRM5gjcWqESKlapgco16qBW/dtQo25DGE3hvFak8aQ3vi9Fn5JmMHNYHwWwNhzPlg/9thPb1q3A3p2b4XQ6pOggv65Ob8Cd97bD/R2fQaM77g6IhsKNuGPfY6Q38V2LqCIaYJaTUwUGzT4w3CqKcggqud1u/LJ1PdZ88wVSzpyQlWO12gno1L0nWrR9RFa6wRNjV+BgzSgiIkUMLVEAM8b0cNo2hZM999jBvfhq+jicO3lETD8DrlMroTFeePN91GnYNGAasjeU8D4WB7DL2htuzJBd0AAIupxOLJk9CeuXLwygdYBNiPBEtx54+pW+0Gi0ARKRuZkGfUhrmumPql+A2Y0bt8KsPwbQLf6IKf191o10TBn2Fo7/8bvSrLzS5+/lt0d9CnMED3NSu7BrsDjqU0zMlZIk8Q+w3TIXRK+q3R2+Ep44pCdSz8tqTZPcrWq162PwuM9RpqxK0TMFJSZ8QTpTz4ABZnZ7S5Cb+/Wq6pGRmXEdH739AtKSz/gBhIExj3M1E4YuQfgD/8ljxoQ/MlB+BV7Z7xgvxrNKzboYnrgI5si8YEXJ40SuBm7oNK2IDL/4Ilhi75jdsgdEd8klTSB07DYrPh70Ck4d8XEcyxg8EHrACwQwxrifej7++b8LNIURk0ubETg3/t9Gd9yDweM/h1ardhAG7SG9saVkgJnD2h6A6P1WIOCJaTN9zGDs3rKueNU8YAOYgWL4llRHGBBEeLjz83jxrQ+CJSdH+w6+9sY+ZzBzWLmZStXjyI3ffYOF08Z6ZmjuP54JJf2xKocWC9LIA7nPBxNwz4OPyU1eKr3tpDe19dbIq6ZybbxB2SGlSli0/uW0FAx5rRP4IzocSx7AUTGxGP/l94iNK6uymKwt6c3biwrhA2Ar96vix5KqlU8Gv44/ft+FPEWqJogvxvnvZqBVu/+g99BP1BbxB9KbeABfoVIMYGbPbgbS7lUz0m//L9sxaWhvQdBwBbioXKNnLEXN+repCTIDczUnQ+S+gkJ4AdjyOYjeUEtSfr489PXO+OtcbjBegZmilkw++RaQLaHpnfhg8gJ1RST6knTG13wCzBgzwWlLU9MFJ2nTWsz8+N18GcN1Bnt7ugyZOFdtK1Q6dMaKRJS/cCk0g5kt5yloNCvUHIaDX34MF5LPlgqAhX13AZN6/cbN8eHUEJ6RewPK7X6ajBEr874qDLDTugoMPOGJKmVv0mZMHfZWId6laQZzwUfNWCo4D6hWCN+RzvRkMYDZ9etlEGW+CMCglnDj33kNh/ftLjUAe1aBhZej9z78BHoOGaeWCjlfO7Is5SkuLp3/J38GM6flNTCao5Zkl9KSMej/vOzMwnmR5WWVrzcY8dm32xARFa2WKvnW43UymOcWAdi2GIw9p5ZUy+dNw+pFs4qxD+dHtGcC83PswpuRVweMxAP/6aKWKvlR3xLSGbsVBthh4Wn7Kqgl1cD/aw9+elW0lEaAGzS9C0Mnz1dLlZxvGulNQpoMYegxmy0BGqas70sJ3U0+fRxDe+SvC0rXO9jLi5h7fUxfsR1RMSrG4bmpARmNRz0Au6w94Ubx52OIxuB3X83EivmfeeUW7jPY12P6jXfHok171TYk/N3Riwymzz0AO9V9/47s261Ee28gNt4Qjc1cNkWW0gBa3v8o+g7jacBUKrnvYQ/Adus5EKqpIUp25g30fqo1mLt4Ls8wX0Dnq8vbQisyOhYzV+4AaVRyhmE4TwZTdco9nsxRy7iwZ9sGTBs9IOjHs8lkQmRUFK5eKdEHTZEx7A1gzmj0zGWoWa+RIjxFEGXQGSOI2bKaQKOTLWWACMaFqiz87GNsXPV10AC/8uqrqFChAiZOmACnU5GENSV2zRvI3Xu/h0efeVGqSuSr73Y2JbXPnz944ymcP3UsKIDvaN4cPXv1Emhs3boFi7/+Rj4liaTkDWAeBsPdbFUr/FyaOWzvA+xjNYSwWS3o8Z+7BJuvD4T9OtGVKVMGI0aNQkRERD6JL2bNwt693KQduuIN4Lhby+PTpTwQU61CQ4g5bfPA2MtqiMAd2Lk7rK8iZovUf+BANGjQoBAJq9WKsWPG4NJFfrQemuJL1unLtyNGLXcebh9mDvXcc35cuQiLpvs+mPcH8EMPP4QuXZ/1imBycjI+GTcODkdgkYaBDAtv8r4zbhaatlAtRed6/ojeBTBVYiXnThqOretKMD8zQG+KQLfnunrdCrdo0QI6vd4nFidPnlRsFtvdWqxYthR2C7+hx1OE3XARH5nn3hiEx55VKzCEdvMZzFfQTQIZscG2KfGAI5e4KSISiYlTg2Ule3sXI7zzzhDk3Ch5W6ay+fAgMaf1DBhqyK4BEQR7PN4C1pyS82ObTGYkTlNxJVpCP/q/PQCWnJsz2FtVbvznTgCqFMJZYg7LVTUiBzOuXUHfLl59tQvpgh9gJE6bpop+/DHt368fLBZLidUiIqPx+ZrCTgz+6Mr4/SX+iOYShjy1/tGDezF2gP9DgNIOMAdrxsqfER2rSvStVTWAf96wGl98MrTYYK1cuTLaPfQQqlarBg0RUtPS0OKuu/zuh2Uc9aJJ/bpnDypWrAg3Y0g+fx4//fQTUv/6q1j7UdOXgGcKUKFwgNV5RHszEba9/3507doF9oxLsGelI6pCTehMecHWxS02Kigsd7l8M4rRac1GVtppGKLjoI8th2VLl2H7tsJRP28Nn4wWbXksX6gLu6baImvOf4dh2w/53p2oXr063n3vXWSmHIE5riKMsfFFgsx4fK+XfUjIdZbLsMB2iO9/bRmXYbmehugqDTBxwkScPXvT9ff5XoPRoYsKZ0meRZaVX8XWMNR64tH6B3/lyfI8ZcjQoShrdMJcpgL0ET4c1sJoEnvTlyMnE5brF3DVpsX4cTcPcPg+mO+HVSgHVTvoKGhkMBgMwko54+whxNUKo2w2xRDxP8Kunz6A2BqN0a9v3/xTNPWC0zwHHT8CCHkyqL7P3IeM61cFFVaqVEkwGPDRb47z5/fnX8kqzJR8lnl9GDViBFJTU4W/N2p+D4ZMUMUjeb0qxgb+znr5kaZwuz1pF7UaDSYnJoJvicK5CBYjEesAm80GvkfmgXS88KRqY79QISKIaCFfRQ8FaGwoFZt9IwO9nix8IctLr7yMVq1alyxGWExe/0Ls3LEDCxfcjDS8Jb48EpeoYTakodzg3xUaTUjP0i6lJmPQC4WjGCIjIzF85Ehw+25pLunp6Rg1Yjhycm6ecPHEp7P/92vou+V2P6uKy87Z44cxrDe/JrhwiY+Px0svv4y69eoV+oI/6jQavi9RPzdHnmAemQo71J04fhzz583DFS9+YQs2HIRGG+IseYLLjicmOKROd0f27xFSI3krPMFKnTp1hJMs/ntKcjIe79QJdeuGV+7xEydO4PvVq1GlalXBI4WfZHHzpC/vlM9X7w51vJLH6Y4rOdRus/t2bcXkD98U/ch69rnn8GC7dqLrh6Li5k2bsHTJEtGsuOsOd+EJWclzmxUADrHjO897xfNfiS2NGjVCv/79xVYPSb1piYn4448/RPOauGAtKlQJoVW2iON7T1DoQle2r1+F2RM/FK0cnU6HKVMTYTCqFrpcSFa7zY5BAwfAbreL7sPHs1ehaq3CawvRjQOpqEEv0uaFroQ4+GzTmqWYnzhakth9+/VD48aqWGSKyXno0CF89qk0J4SQR/4XDD7zPKatqWChuXPwx5VfYdF0fvWD+NKwYUO8PcB7BIR4KvLUTJwyFX/+yY/wxZfhny5C3UbNxDcIqia7QHqzcH9kgQj/0AWgrft2PhbPmii5CwMHDUL9BHUvNT169CimTJIeVPbh1AWo3/hOyX0OqIHXAHC75TVQaFI4/G/JXCydPVmy7DVq1sSQ999XLVcl3wJxf2u+JZJaeEA4DwwPSSH2OumKpnAIYRKW7xfPwbI5UwLq65NPPYVHO3QIqG2wjdb/8ANWrbxpw5ZCb+jkeWjQtIWUJoHWtcNir0QxMYIlR5U0St8vno1lcwJzheWHH33efBNNmobWrHjwwAHMmD7dd5iNHzhCBrCvNErCQitE59LBzGAup9FoxHtDhqBylSqBjnJJ7VJSUjBh/HhwK1Gg5YMpC5DQJATvYH7+bIxYlidn4RkcolSGa5d+iSVfSF+oFFRudHQ0er/5JmrXrh2ozkW1O3XyJGbMmIGszExR9X1VGpb4FerddkdQNEQ0LjmVoTCLnba5YEzRWIsfli/ANzMniJC35CparRbdX3gBrVv7MTMGyCkpKQmLFi6EyyXpukCv3EZOX4zaCQoHkPhLRioAHIJ0whtWfY2vPpMvYpV7Y3bq1EmI8JejZGdlYc2aNdi6ZYsc5AQaY2YtR/W6haMgZSPuISQunbBQ02HldzUo5ue5/cdVmD1B/FGlGEVwb5CHHn5Y+JjNgV0wyaMUftq4UfjwEFQ5y0ezvhUuv1SwrCe9qdj2QpWU/vt3b8OkD/oo0td6dWrh9W6dYYwpC0P0LdD4uRXF7XLCnnkNthtXMXfxdzh2Upl7mZQ/yZKQ0t8zi207AVbYr0YmSE7+eQCj3npeJmqFydSsXgWvPHEz5klrMEFrMHs+Rs/MdtkscNnzPjdn6rw123DmnKg7HyXLPnza16jb8HbJ7cQ1oCTSG70uRHzfuuK0PgGG1eIYSKvFbwp9/3VlkoQVBViKZEoC/PGcVahaUyFrEqET6UxrvPW15IuxHLZfASb75u3Khb8woLsynrrhCvDkrzcgvkJlKeNNXF2GfWQw+dx/lQwws98Np3C1nazOUJkZ6ejzlDJbm2pVK6HH04+AuaSlbiCtHrNXbMT55OLBY+I0XXKtmSt3IipWdodCBrhbkz5ily/ufoFjdss8EMkaWOOw2/FqB2VMZ+XKl8fojz6CPfMq7FnXYc/JhMuaDZbrg52nCNJooTVFwhARDUNUHAzRZTFi2DBcVChxy7z1+8BvGJe1MDafDGbvzm25jPwDnJlZDib9UQBxcgr30iNN4JbhAKGoTBzgj8aM8SoqX1jxwhdc3srwDz9UBGB+v+H8DTLnmiO6Dos9gaKjL5WEi1+AhRW1AhdE9+rcCtmZGXKOGYFWSQD7Y6YUwDyt8MxVO/2xl/a9XBdECwAzpoXTxoNeZXtxDn6pIy6knJPWKRG1wxFg7mzHne5kLDuhM7YlIr9nqKJmsACyxVIDOuJXb8vyqB7drztOHN4vW58jDCZUjI1H5XIV0b1/j4DoLk6cg+SLqUjLuIwcu3wnWfVua4ZhiYsCkqlYI/5odrjvILP5ZgByCZRFAyyAbMvuDI2WW7wltfPGn1/V/ntSYPE6kUYz6sRXQ9VbKqBKXDnUKVcd5WNuXg6Zc1dZQCtRRBdDxK+eaEdeLt64ipOXziHl+iUkX7uAk5fPI9tWcsIVX3pu3rod+o+W5qTngxa/1/ZJ0hlFn09I1ILgJD8FhKCdlOdOGoGt65aLGtUc0EaV6qBJlXqoV646KpYp+Xp1W+0ouOKlRSpqL1thPFVySiQ+s49fPIeDKcdxOPWkaMAfeOwZvDpwlKi++qk0lfQmSZ6H0gFmTA+nbQ+AoM7dvp07FWu+me21PwadHg0r1sbtVesLP/0BWpSI26yFtUkZ8YlbGIPpYDo0Fr+vtEKs0tIv48+0U9iffEwA3OHynsb4ieffQJfX3g4SYLYHOtO9RCRpgy8Z4Nz3cTVo6edgssQXtQnrtTo0qFgLzaomoGWtJojOT74SmF4clcxwVMtL4FIyDf35bOhTA3v85lHOtGbjl9MHsS/5KI6knS4Edvc+7+HRp/2njPIpJcN5uFgbMpsle/sFBLAAstVaF1rwU65bA4Fg1+Z1mDF2MOKj49C+UWu0rt0MUaabKYEDoVm0jaMiBznC90x2M+iTs6FPk29BxWXgYCed2o8fDyfhcuY19Bk6Afe0C/SWcHYVLmpFJtPxQHQSMMACyPbsO0HaTQBipDJPOfA7zq/+Hi1rNRUi/JUq/HHtqBoBV6zh5sLLxaDNcAjgSn0sS5HT5XYLs7pap8dRpWkAJ3dEN+CmdmQw/CaFb8G6QQEsgOxwtAVcPM+HUZQQGZnAoWPAeU/+in9MqVYJaFwfiBV95Z0N0LYnvb5w0i2JCgsaYAFkj2mRx1L6dqWw2YF9fwJnkvnJiUQx/ybVea7hmlWBZg2BkgPpbCBXV9JFejUBStGGLADnzuQ2IPdqMFb8ICT1IrB7P2AN3O1USqfCvq7JCLS8HajsNV44HWCdSW8Oaubm6UA2gD3v5Kym0OjWgUG4N0+Yqb8fBo4p4wYT9kD6EzChFnB7I0BITyGUNDBNBzIYZLNMyAqwgKnFUh1a+hFuV31s2wNcuOyvm//s7yvEA/e3BDSaI9CxDkRmWQ/oZQfYM3FZPHbs/gmnkxV2BP6bjI261Q+iUcIDFBt7Te4eKQKwAPK6dUY4aA4ysrqDMcX4yK2QkNIjYoiJWgQD60EdOyqyQFFc8Wzthm5Iz/oSTqe0w+GQaloFZnqdBWViXqGODymao0xxgIXZvHlHfVy6sgw2+7+PbK4Qk+kAKpTrQm3vPqH00AoJwALII0dq0LzVO8jMGgmHM7DQA6W1oTR9vc6K6KgR2Jv0Xxo5svh1qwrwDxnAebKzTUmVkZ4+FTnZT8P9D3k3a4ghMnIFKpTpT61aKeO26WNwhBzgfKA3bG6H65nTYbXVV2Dghg9Js+kIysb2pXZtA/NuCLInqgGcu50irN/8ErIsg5GTo2hkVpB6kt480nwE5oiJ6PjgfOKrZZWKqgAX7DPbuP0xZNx4FzmWNqV2W8WBjDBvwy3RE+nBtutUwrQQ27ABOP/RvT2pBS5deQNOdzfY7PIaiJXSuNGQA51mMcrHzaY2bX5Rik0gdMMO4Hygt2zRwaF9DhkZXWB3dITTqQukg4q10ekcMOjWIa7McmhdS+iBB0J/7biIzoUtwIUe37/9FotLGS8gJ+dxOFz3wW5X59DEYLBCr92OiIjvUavyAkpICC5xhwiAgq1SKgAu2km2PaktLl9tBdDjsDuaw+6QOegnl6PRYINe/xvgXotyt+6iNvdsDVbhoW5fKgEuBviOHZXg0t6NzBu1kJUTD4P+HoBqwO2OgJuZ4Hbr4XZr4XJ5fIO0Wp6u3QWNxgENWaHR5ADsLKz23YiJvoToqNPQGnfTvXeUereT/wdi29kqXXm2EQAAAABJRU5ErkJggg=="
  67. /***/ }),
  68. /***/ 104:
  69. /*!*********************************************************!*\
  70. !*** D:/project/product_wx/static/mine/versionicon.png ***!
  71. \*********************************************************/
  72. /*! no static exports found */
  73. /***/ (function(module, exports) {
  74. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABVBJREFUWEftWd9rHFUU/s7sJtmHtrTa7EyTWaiYgmCEFhQrVnTNpD9QHwqtTWgKCoopKiIIrX+BLRREVFpRUGilUSsNNNI2mbhKI1YU2oeIBSMWdpLOJNqGmkI2uzNH7syu3d1kd2Z2t0Kg85adc+/55tzvfOeeE8Iye2iZ4cVdwHf6xOqOcDw+en8TWCPCFoA7CaSAoLjAGSaDTYDGmTGWBenT011/1PNRNQJORdW4vYcl7pdAW8IAcMBjzPTBlBX5GkjmwqwVtqEBt8vDXQQ6RkQdZc7mAR53mCYkwrx45zBiEnEHQJ0AYsX2DL7CzK9NWltHw4AOATgVSyi5dwHqLzhgxhyAARB/bpjRi0DSBbr4ScVUJbcZTHuJ0FcKno+lzeibldeW7hYIcGvrN0qL1HyaiDa71GTkADoyl7l5eHZ252yYCK1efXr1ipZVBwB+iwhRbz++mHEWds7MPGP67eUL2AUbaU4R6IH85uNZOL2WtW3cb/Nq72X5fGcTpJNELl0gKJKxF5J+oH0AuzS4ANDD+cgOZpzr+2ZmnhdUqPtpbf1yRYt0z0kiPFuItGFFk9XoURVwQhk5WuAsMwYNK7LbP7NTsXXx3JMCwLXp6Pf+3ExFVdk+XQANCE53768UjYqAhRpIJOkFGmScG4/5RVZRzq5vQlMKwPq8w6tZZJOmueNqtePwIr3mxwI9HHa0SupRAbD46txvQrpEgmVhbwrCWVXRvyJgV6l84ZRharv9+ONxOnJJJKLgs2FGH1rqNJcErMb1vSThhBddOmRYXW/7ORTvE4r+Z1F0C0uupk3tviDrVXn0HSI+KGxtRs+UpX1Rvm5JwAlFvwBgi9DZucw/iaDSpSr6WQK2l0X4nGFqO4IAFpK3MrbyWl6nx9Km9oQv4NbWcx2xSPT3vCp8Yljay0GcCRv3WCmSImCtJ1X4K8t2MgidCj5UWf+YCC+Jv+ft3IaZme0Txf4XRbg9rr8iSTiW18akYXZ/FxSwsGtbeWYtxVpcmbqVvTUY9HT+A6yMPEUgkbhwHPRPTmsfVQWsyvrxfPmcT5uRNf6yFOZzgtgK7bdvCFow44Rhaft8AI9cIqKNAP+SNrsfCeKi2MYtvbFVb4jf5uZvvhc2wl7yjvwsihUzXzas7k1VASdk/Zq4zzqMgUlL6w0LWJX1M7crF4YMS3su7B7tsn5SIvSI+3Ta0tZVB6zonDf4LG1qL4Z1ViZtgSWt2E9C0T8F8IL4LW1qJXm2KOkSyw5wnZRoRIRDUUKV60u6RgAOlXT1ylr9gEPKWnt8uF+SpKO1Fo56AaslhcPZPzm91S1ihWdR0tVTmj0NLbkAhVaJ0KU577Smy0+9gGu6/Ainany4jyTpuEuLENfLegGXXi/t3ilr20B5HQh0gc+RtNE0n/41SBEppgQzTxhW94Yg6xTl2wej7Fyu6QIvHLTJuhYhjHhR5vEgLZJ7OsroAQIf8pKWDhpm12E/wOUtks3onrI0tz0LGGHPrKwJHTKsyE7/JhRou/e8OxKY+nvbFT+wQIOaUM9RKqbKuVTRAGUo41zv9WtG/UF6Fg1v871NFw9SchTpCcrpSuA9ztoDDR6kFCKx1KiKj8xl5mocVa04ANCdGVXdjtDiYaBou0RXAHJOGGbTT9WHgdlHwVLf/zIMLD5WoR4S8fuFWVvRu3kGj3PZuJWIO6jCuNVher2SGlSiku8wcOmFqWibvLArQpFXxTggaJLl7cZstj+csppPBVGcULIWBIi4ezSTpBFJj1f/l4HzwwI7ennbHsRHsU2NEQ7rpnH2dwE3LpZL77TsIvwvQyHlS9/f8ZQAAAAASUVORK5CYII="
  75. /***/ }),
  76. /***/ 105:
  77. /*!**********************************************************!*\
  78. !*** D:/project/product_wx/static/mine/editpassword.png ***!
  79. \**********************************************************/
  80. /*! no static exports found */
  81. /***/ (function(module, exports) {
  82. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA/BJREFUWEftmE9oHGUYxp/3m80m8Q/UJJsZsxMQbKGCl0APETw0ZJIaqwdBhELFFhU8KBbsIVKlCoUq6qGHnixY0YOot9TSZHdZoYIBPQgWKhhIYGdkJtPGHgrdNbPzlplxcbPu7ny72e0azFz2sO/3vr/v+f7M+wxhhz20w3jx/wROpb5+oJ8eOgSBSTDtBWFPsHLMsAFaAfnLlp3IAVPF7a7othQeHc09miSeJ8JRAAPNYJhxm8AXSkwfrK8bTrvgbQLnB8ZV7yyDXidCoro4AyaYbxDBY5BGgF4DV4SPdwrryjlgymsVvGXgVOo7bUBJLgB0oFKMGctg/3yJN7Oue9iuhhh7cGFEDPY/BSFeJuBg1ZhLJX/jiOu+cLsV6JaAA9h+JZkn0P6/i6yVGa/+4RhZmaJjatZQCJ8CeCSK5x+K5T/nWoFuATif0FXvKhFNtlssGBceUDG0QBSp7TO+shzjiMyEgxhp4LSaOyWIz0TCIFv0N55rRZmtQPmBcc3LAPRkCF3GMcs1PpeBlgKO9m3/angTMOyiX5qo3asyxf61t+8fvE7ACIN/M+2Zx2RySAHrauYsEc1HavjHLXf2okzyuJj0yOIzIqF8w0wXTGf6jbh46S2ha9lCeD0x1gqOsq+d60gGRiYmVuGx4cX9Sp9yPTogdMZypt+VSdytmFjgh0eWDiQS4qcImJ+wnJnlbsHI5I0FDpKkU4vPB7+We+hbmaTdjIkFHh7OpQf7aG83ISq572zyys2b01azWk2BdTX7JoCPa/uFbsEzI+gtTpqOca5RjYbAQ0OX9fv6kqv3CrYCGECX/NJ4o3u+IbCuZQ4SKB8l4p/L7H8iSGxpbDqltM++ppB4q9JQMXjKtGe+r5dfCph9/0VzffbLTgHWy5PWlo4JiM9CebYN3CRBpybRU+DQiQjSZU59ZcI9A9a1zEcEOhkuLcMjwomCbZyPW4meAKe1zGEBulQNF0B7pc199q25tWbQPQHWtdxpAr9XCyZzaHsDrC69QiQCC7Tl8cv+hOXO/vKfUxgI3fRV0D8GVdYC9UThSMEAurwKgsbAFdNWnpXpn3sIDIxr2cBOBc74YsE2jsfdEMH/u8CN3u311NPVzO9EYUu6MxROa9mXiPGaV+a37Rv1m5jaifZ0S8js2e4ClzFnusaVdkBkx+ijS0dJiC861K3RvGlPfyhbvJ246i9LbbWXaTUzKYh+rDQxAF8D0a12YGLHMO8B6PGKu2nmzpt4unxC17xfq75UxtbtRAAzXzOdxESjl01TE5oeuqxTX/I0CPfENYOxwpt/vW9tPG02mnysze+Eap3MsQvcSTXr5dpVuNsK3wXVCjlLaPN+NwAAAABJRU5ErkJggg=="
  83. /***/ }),
  84. /***/ 106:
  85. /*!********************************************************!*\
  86. !*** D:/project/product_wx/static/mine/youjiantou.png ***!
  87. \********************************************************/
  88. /*! no static exports found */
  89. /***/ (function(module, exports) {
  90. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAgFJREFUWEft189qE1EUx/FzklyDmCgkryEkkHtDxGg6glAq7dMoLipuxAqib+I/XGgHi7MJIeTeZFcspStREZ8ggWSOXIlQBt10zhlauLOf4TO/+cLMIFywAy+YFwJY+omFhcPCmQVCEiEJ7iSSJKlEUbSUXvbv9XM1PBqNLiul3iPiZ631syLQucDOuQgAYgBQiLjb6XT2pNG5wB43m8120jR95dEA8ERr/VgSnRvscdPpdJuIXns0Ee0ZY3al0CzgItFsYI92zt0DgDcAcElqaVawR1trtxDx7Rr93BjzkDMPdrA0WgR8Cu3zqBIR29JiYI+eTCabpVLpnUcDwAut9YO8eYiC/4F+qbW+nwctDs6iieiRMebpWdGFgJ1z14hoiIjX/atca715bsHj8fhquVz+hIhdADhUSt1ptVq/ziWYG+tvUiyJ4XBYr1arB+tlj5RSgzzLsnwP/++xrrExIt4AgKM0TaNut/vzrBmcPo99YUksexJJktTq9fo+ANwkomMiGnAty56Ex9ZqtX1E/INdLBZRv9//wZEBexJFYVmSiOP4SrPZ/AgAtwDgZD6fDySWZUnCYxuNxgdEvO2xlUplo91uf+fOgC0Ja+0GIvq/5q/L5TLq9XrfJLEsSVhr765Wqy9FYFnA0otmr8/+4pC+gQAOC2cWCEmEJDIL/AZuWc4tuG4XogAAAABJRU5ErkJggg=="
  91. /***/ }),
  92. /***/ 107:
  93. /*!*****************************************************!*\
  94. !*** D:/project/product_wx/static/mine/outicon.png ***!
  95. \*****************************************************/
  96. /*! no static exports found */
  97. /***/ (function(module, exports) {
  98. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABQpJREFUWEftmXGIFHUUx79vZtUlFM7LvZm7mwUPCgwKDC5CSvC8mdRUMLjSoD/6w/8KukDRoEgpSSjIwNB/wj9MlCQsSu3csfUP/xBUMhQSMjyYubuZ20sFLde7mXnx2905Nr3dmdm9/UO4/WvZmffeZ76/936/92YJj9mHHjNezAG3esVaonAm893C+dLiHcS4Yo8b38/mQ7QEOKua7wDYzwwv+Pd+5+jdjROzBd0SYE09+zGBdwnIKUz1OM664Tng2VJA+JlTuErNxDmsqWd3EPMgA3ttV/9qppWJo3BWyX3JRAMIsNMe14/EXeEEwPlUt+IflghbhHNmvmK7xvONAmuKeZcICyu+9tqu8UEc6JjA+ZTW4R8lCQMlpwzHD/j10YJxvlHg7szQAEnyoRAazPss13g/CjoWsKbkPiOinWVWvu7BW1dvq4qTEsJXd+bMckmSToOglpXGVtvVv6kHHQncrebWS6CfK06Gi/6DFYXCeqee07jAwkfXk0PLpJR8saJ0cZL9F1x3zbVa/iOA8+ms6v8BYCmAoucFK8cmXrkUtWxJgMtKDw1Isny87JfPW46xsiFgTTHfI8I+YRwwfTri9n8UBdvoPtytmEfDgvaZN426xo8zxaqjcD6VVfw/QVgqisxy5R6gr9gy4PZTGs2bf5MIKQbO2Y7elwi4SzF1mZArFxrtsp3+3XFgG1W4ZKeYh4nwlvj+z+Rk9tatV+2HY9ZUWFNznxNomzAo+t7ThcLaG60GrhYJwLuWo38dGzir5i4C1Cu2MdsxnokL24zCQD6VVf27ANIB49iIq7+ZANi8X8+w3gN0KUNbZJKPgnHHcuXOuLkvfE4LxXzNdo3nYgG3tZ1oW5RedLuR/A0DaGpulVf0hp07yXrh6TwuFbreGQtYVU8vnYd5N5sBTpJC1fdmVfMQgLfFb5ajP1JjMxbdYwcshsi03C6SXxzwsZqSRhV92E5TzJ+IsAHAsOXoPbFSopT8ijlWakoYpuXqxmwBRfnRVNMiQANw3nL0R47o2vuwYp4gwiZm3LNdeTHQ50UFa/Z6dSrWWtmawOGoLiAC8IYRxzjZLFCU/f97F3/jiLsm7BKnTWsCt7ef0p4Iz3bGD7arvxYVsNnrmpK7SkTPMjBhO3J2pv27bnupVdJCgHie1Ds2sfpys1C17LsUc7NMOFYudNpnuf0zTh91gUsTgSz9Vt4s+ILtpla2IpfFQbUwvehqpdiKRf9BT60hIXri6DAPSVJ5I2fwF7ZjbJ9tlau2MqHuh5bbv6dWjEjgyjEtVBZTh5i7BmuN9408iBj3QTRYtuVLlpNaUW8VI4GFm84lZ3plWcpPj+Wl/lja01x65NPdHf6BcPXEkDBFUyui3sPFAhbQ6pLcqpRM4hQK3yWcm2Rp6/h4/19JldWUX18E/INEtLwsLBzf8/tG/15zPcpXbGDhqCuTe1mW6Hg4lovenhnfMkv7R8ZX/x4VrKvjzEsSSdvEgRTey8w3Ai/YGAdW2CQCFgaZzEl1gbTgQHXQSkFeJ+AcQNc4YAeSPBFwoEqAyoTlBIjWSxy5058AfHDSv729UHjjXtTDhtcTA4eGWsZcCxmfENAbN9i0qsAvzLx7xDUuJLVtGDgMVCrIFG0GsIFAy2oBiH2cIZnseUfiLv9MvpoGrnZa+m8DbU+RTG3wKQ2Zi1McTLju/BtJxqR6qs8qcNLlbeT+OeBGVEti8x9q9mtLhchgzwAAAABJRU5ErkJggg=="
  99. /***/ }),
  100. /***/ 11:
  101. /*!***************************************************************!*\
  102. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  103. \***************************************************************/
  104. /*! no static exports found */
  105. /***/ (function(module, exports, __webpack_require__) {
  106. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  107. function _defineProperty(obj, key, value) {
  108. key = toPropertyKey(key);
  109. if (key in obj) {
  110. Object.defineProperty(obj, key, {
  111. value: value,
  112. enumerable: true,
  113. configurable: true,
  114. writable: true
  115. });
  116. } else {
  117. obj[key] = value;
  118. }
  119. return obj;
  120. }
  121. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  122. /***/ }),
  123. /***/ 12:
  124. /*!**************************************************************!*\
  125. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  126. \**************************************************************/
  127. /*! no static exports found */
  128. /***/ (function(module, exports, __webpack_require__) {
  129. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  130. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  131. function _toPropertyKey(arg) {
  132. var key = toPrimitive(arg, "string");
  133. return _typeof(key) === "symbol" ? key : String(key);
  134. }
  135. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  136. /***/ }),
  137. /***/ 13:
  138. /*!*******************************************************!*\
  139. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  140. \*******************************************************/
  141. /*! no static exports found */
  142. /***/ (function(module, exports) {
  143. function _typeof(obj) {
  144. "@babel/helpers - typeof";
  145. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  146. return typeof obj;
  147. } : function (obj) {
  148. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  149. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  150. }
  151. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  152. /***/ }),
  153. /***/ 14:
  154. /*!************************************************************!*\
  155. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  156. \************************************************************/
  157. /*! no static exports found */
  158. /***/ (function(module, exports, __webpack_require__) {
  159. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  160. function _toPrimitive(input, hint) {
  161. if (_typeof(input) !== "object" || input === null) return input;
  162. var prim = input[Symbol.toPrimitive];
  163. if (prim !== undefined) {
  164. var res = prim.call(input, hint || "default");
  165. if (_typeof(res) !== "object") return res;
  166. throw new TypeError("@@toPrimitive must return a primitive value.");
  167. }
  168. return (hint === "string" ? String : Number)(input);
  169. }
  170. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  171. /***/ }),
  172. /***/ 15:
  173. /*!**********************************************************!*\
  174. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  175. \**********************************************************/
  176. /*! no static exports found */
  177. /***/ (function(module, exports, __webpack_require__) {
  178. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  179. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  180. function _construct(Parent, args, Class) {
  181. if (isNativeReflectConstruct()) {
  182. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  183. } else {
  184. module.exports = _construct = function _construct(Parent, args, Class) {
  185. var a = [null];
  186. a.push.apply(a, args);
  187. var Constructor = Function.bind.apply(Parent, a);
  188. var instance = new Constructor();
  189. if (Class) setPrototypeOf(instance, Class.prototype);
  190. return instance;
  191. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  192. }
  193. return _construct.apply(null, arguments);
  194. }
  195. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  196. /***/ }),
  197. /***/ 16:
  198. /*!***************************************************************!*\
  199. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  200. \***************************************************************/
  201. /*! no static exports found */
  202. /***/ (function(module, exports) {
  203. function _setPrototypeOf(o, p) {
  204. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  205. o.__proto__ = p;
  206. return o;
  207. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  208. return _setPrototypeOf(o, p);
  209. }
  210. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  211. /***/ }),
  212. /***/ 17:
  213. /*!*************************************************************************!*\
  214. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  215. \*************************************************************************/
  216. /*! no static exports found */
  217. /***/ (function(module, exports) {
  218. function _isNativeReflectConstruct() {
  219. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  220. if (Reflect.construct.sham) return false;
  221. if (typeof Proxy === "function") return true;
  222. try {
  223. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  224. return true;
  225. } catch (e) {
  226. return false;
  227. }
  228. }
  229. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  230. /***/ }),
  231. /***/ 18:
  232. /*!******************************************************************!*\
  233. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  234. \******************************************************************/
  235. /*! no static exports found */
  236. /***/ (function(module, exports, __webpack_require__) {
  237. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  238. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  239. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  240. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  241. function _toConsumableArray(arr) {
  242. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  243. }
  244. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  245. /***/ }),
  246. /***/ 19:
  247. /*!******************************************************************!*\
  248. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  249. \******************************************************************/
  250. /*! no static exports found */
  251. /***/ (function(module, exports, __webpack_require__) {
  252. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  253. function _arrayWithoutHoles(arr) {
  254. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  255. }
  256. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  257. /***/ }),
  258. /***/ 2:
  259. /*!************************************************************!*\
  260. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  261. \************************************************************/
  262. /*! no static exports found */
  263. /***/ (function(module, exports, __webpack_require__) {
  264. "use strict";
  265. /* WEBPACK VAR INJECTION */(function(wx, global) {
  266. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  267. Object.defineProperty(exports, "__esModule", {
  268. value: true
  269. });
  270. exports.createApp = createApp;
  271. exports.createComponent = createComponent;
  272. exports.createPage = createPage;
  273. exports.createPlugin = createPlugin;
  274. exports.createSubpackageApp = createSubpackageApp;
  275. exports.default = void 0;
  276. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  277. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  278. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  279. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  280. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  281. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  282. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  283. 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; }
  284. 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; }
  285. var realAtob;
  286. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  287. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  288. if (typeof atob !== 'function') {
  289. realAtob = function realAtob(str) {
  290. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  291. if (!b64re.test(str)) {
  292. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  293. }
  294. // Adding the padding if missing, for semplicity
  295. str += '=='.slice(2 - (str.length & 3));
  296. var bitmap;
  297. var result = '';
  298. var r1;
  299. var r2;
  300. var i = 0;
  301. for (; i < str.length;) {
  302. 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++)));
  303. 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);
  304. }
  305. return result;
  306. };
  307. } else {
  308. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  309. realAtob = atob;
  310. }
  311. function b64DecodeUnicode(str) {
  312. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  313. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  314. }).join(''));
  315. }
  316. function getCurrentUserInfo() {
  317. var token = wx.getStorageSync('uni_id_token') || '';
  318. var tokenArr = token.split('.');
  319. if (!token || tokenArr.length !== 3) {
  320. return {
  321. uid: null,
  322. role: [],
  323. permission: [],
  324. tokenExpired: 0
  325. };
  326. }
  327. var userInfo;
  328. try {
  329. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  330. } catch (error) {
  331. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  332. }
  333. userInfo.tokenExpired = userInfo.exp * 1000;
  334. delete userInfo.exp;
  335. delete userInfo.iat;
  336. return userInfo;
  337. }
  338. function uniIdMixin(Vue) {
  339. Vue.prototype.uniIDHasRole = function (roleId) {
  340. var _getCurrentUserInfo = getCurrentUserInfo(),
  341. role = _getCurrentUserInfo.role;
  342. return role.indexOf(roleId) > -1;
  343. };
  344. Vue.prototype.uniIDHasPermission = function (permissionId) {
  345. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  346. permission = _getCurrentUserInfo2.permission;
  347. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  348. };
  349. Vue.prototype.uniIDTokenValid = function () {
  350. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  351. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  352. return tokenExpired > Date.now();
  353. };
  354. }
  355. var _toString = Object.prototype.toString;
  356. var hasOwnProperty = Object.prototype.hasOwnProperty;
  357. function isFn(fn) {
  358. return typeof fn === 'function';
  359. }
  360. function isStr(str) {
  361. return typeof str === 'string';
  362. }
  363. function isObject(obj) {
  364. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  365. }
  366. function isPlainObject(obj) {
  367. return _toString.call(obj) === '[object Object]';
  368. }
  369. function hasOwn(obj, key) {
  370. return hasOwnProperty.call(obj, key);
  371. }
  372. function noop() {}
  373. /**
  374. * Create a cached version of a pure function.
  375. */
  376. function cached(fn) {
  377. var cache = Object.create(null);
  378. return function cachedFn(str) {
  379. var hit = cache[str];
  380. return hit || (cache[str] = fn(str));
  381. };
  382. }
  383. /**
  384. * Camelize a hyphen-delimited string.
  385. */
  386. var camelizeRE = /-(\w)/g;
  387. var camelize = cached(function (str) {
  388. return str.replace(camelizeRE, function (_, c) {
  389. return c ? c.toUpperCase() : '';
  390. });
  391. });
  392. function sortObject(obj) {
  393. var sortObj = {};
  394. if (isPlainObject(obj)) {
  395. Object.keys(obj).sort().forEach(function (key) {
  396. sortObj[key] = obj[key];
  397. });
  398. }
  399. return !Object.keys(sortObj) ? obj : sortObj;
  400. }
  401. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  402. var globalInterceptors = {};
  403. var scopedInterceptors = {};
  404. function mergeHook(parentVal, childVal) {
  405. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  406. return res ? dedupeHooks(res) : res;
  407. }
  408. function dedupeHooks(hooks) {
  409. var res = [];
  410. for (var i = 0; i < hooks.length; i++) {
  411. if (res.indexOf(hooks[i]) === -1) {
  412. res.push(hooks[i]);
  413. }
  414. }
  415. return res;
  416. }
  417. function removeHook(hooks, hook) {
  418. var index = hooks.indexOf(hook);
  419. if (index !== -1) {
  420. hooks.splice(index, 1);
  421. }
  422. }
  423. function mergeInterceptorHook(interceptor, option) {
  424. Object.keys(option).forEach(function (hook) {
  425. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  426. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  427. }
  428. });
  429. }
  430. function removeInterceptorHook(interceptor, option) {
  431. if (!interceptor || !option) {
  432. return;
  433. }
  434. Object.keys(option).forEach(function (hook) {
  435. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  436. removeHook(interceptor[hook], option[hook]);
  437. }
  438. });
  439. }
  440. function addInterceptor(method, option) {
  441. if (typeof method === 'string' && isPlainObject(option)) {
  442. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  443. } else if (isPlainObject(method)) {
  444. mergeInterceptorHook(globalInterceptors, method);
  445. }
  446. }
  447. function removeInterceptor(method, option) {
  448. if (typeof method === 'string') {
  449. if (isPlainObject(option)) {
  450. removeInterceptorHook(scopedInterceptors[method], option);
  451. } else {
  452. delete scopedInterceptors[method];
  453. }
  454. } else if (isPlainObject(method)) {
  455. removeInterceptorHook(globalInterceptors, method);
  456. }
  457. }
  458. function wrapperHook(hook, params) {
  459. return function (data) {
  460. return hook(data, params) || data;
  461. };
  462. }
  463. function isPromise(obj) {
  464. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  465. }
  466. function queue(hooks, data, params) {
  467. var promise = false;
  468. for (var i = 0; i < hooks.length; i++) {
  469. var hook = hooks[i];
  470. if (promise) {
  471. promise = Promise.resolve(wrapperHook(hook, params));
  472. } else {
  473. var res = hook(data, params);
  474. if (isPromise(res)) {
  475. promise = Promise.resolve(res);
  476. }
  477. if (res === false) {
  478. return {
  479. then: function then() {}
  480. };
  481. }
  482. }
  483. }
  484. return promise || {
  485. then: function then(callback) {
  486. return callback(data);
  487. }
  488. };
  489. }
  490. function wrapperOptions(interceptor) {
  491. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  492. ['success', 'fail', 'complete'].forEach(function (name) {
  493. if (Array.isArray(interceptor[name])) {
  494. var oldCallback = options[name];
  495. options[name] = function callbackInterceptor(res) {
  496. queue(interceptor[name], res, options).then(function (res) {
  497. /* eslint-disable no-mixed-operators */
  498. return isFn(oldCallback) && oldCallback(res) || res;
  499. });
  500. };
  501. }
  502. });
  503. return options;
  504. }
  505. function wrapperReturnValue(method, returnValue) {
  506. var returnValueHooks = [];
  507. if (Array.isArray(globalInterceptors.returnValue)) {
  508. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  509. }
  510. var interceptor = scopedInterceptors[method];
  511. if (interceptor && Array.isArray(interceptor.returnValue)) {
  512. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  513. }
  514. returnValueHooks.forEach(function (hook) {
  515. returnValue = hook(returnValue) || returnValue;
  516. });
  517. return returnValue;
  518. }
  519. function getApiInterceptorHooks(method) {
  520. var interceptor = Object.create(null);
  521. Object.keys(globalInterceptors).forEach(function (hook) {
  522. if (hook !== 'returnValue') {
  523. interceptor[hook] = globalInterceptors[hook].slice();
  524. }
  525. });
  526. var scopedInterceptor = scopedInterceptors[method];
  527. if (scopedInterceptor) {
  528. Object.keys(scopedInterceptor).forEach(function (hook) {
  529. if (hook !== 'returnValue') {
  530. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  531. }
  532. });
  533. }
  534. return interceptor;
  535. }
  536. function invokeApi(method, api, options) {
  537. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  538. params[_key - 3] = arguments[_key];
  539. }
  540. var interceptor = getApiInterceptorHooks(method);
  541. if (interceptor && Object.keys(interceptor).length) {
  542. if (Array.isArray(interceptor.invoke)) {
  543. var res = queue(interceptor.invoke, options);
  544. return res.then(function (options) {
  545. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  546. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  547. });
  548. } else {
  549. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  550. }
  551. }
  552. return api.apply(void 0, [options].concat(params));
  553. }
  554. var promiseInterceptor = {
  555. returnValue: function returnValue(res) {
  556. if (!isPromise(res)) {
  557. return res;
  558. }
  559. return new Promise(function (resolve, reject) {
  560. res.then(function (res) {
  561. if (res[0]) {
  562. reject(res[0]);
  563. } else {
  564. resolve(res[1]);
  565. }
  566. });
  567. });
  568. }
  569. };
  570. 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/;
  571. var CONTEXT_API_RE = /^create|Manager$/;
  572. // Context例外情况
  573. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  574. // 同步例外情况
  575. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  576. var CALLBACK_API_RE = /^on|^off/;
  577. function isContextApi(name) {
  578. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  579. }
  580. function isSyncApi(name) {
  581. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  582. }
  583. function isCallbackApi(name) {
  584. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  585. }
  586. function handlePromise(promise) {
  587. return promise.then(function (data) {
  588. return [null, data];
  589. }).catch(function (err) {
  590. return [err];
  591. });
  592. }
  593. function shouldPromise(name) {
  594. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  595. return false;
  596. }
  597. return true;
  598. }
  599. /* eslint-disable no-extend-native */
  600. if (!Promise.prototype.finally) {
  601. Promise.prototype.finally = function (callback) {
  602. var promise = this.constructor;
  603. return this.then(function (value) {
  604. return promise.resolve(callback()).then(function () {
  605. return value;
  606. });
  607. }, function (reason) {
  608. return promise.resolve(callback()).then(function () {
  609. throw reason;
  610. });
  611. });
  612. };
  613. }
  614. function promisify(name, api) {
  615. if (!shouldPromise(name) || !isFn(api)) {
  616. return api;
  617. }
  618. return function promiseApi() {
  619. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  620. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  621. params[_key2 - 1] = arguments[_key2];
  622. }
  623. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  624. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  625. }
  626. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  627. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  628. success: resolve,
  629. fail: reject
  630. })].concat(params));
  631. })));
  632. };
  633. }
  634. var EPS = 1e-4;
  635. var BASE_DEVICE_WIDTH = 750;
  636. var isIOS = false;
  637. var deviceWidth = 0;
  638. var deviceDPR = 0;
  639. function checkDeviceWidth() {
  640. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  641. platform = _wx$getSystemInfoSync.platform,
  642. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  643. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  644. deviceWidth = windowWidth;
  645. deviceDPR = pixelRatio;
  646. isIOS = platform === 'ios';
  647. }
  648. function upx2px(number, newDeviceWidth) {
  649. if (deviceWidth === 0) {
  650. checkDeviceWidth();
  651. }
  652. number = Number(number);
  653. if (number === 0) {
  654. return 0;
  655. }
  656. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  657. if (result < 0) {
  658. result = -result;
  659. }
  660. result = Math.floor(result + EPS);
  661. if (result === 0) {
  662. if (deviceDPR === 1 || !isIOS) {
  663. result = 1;
  664. } else {
  665. result = 0.5;
  666. }
  667. }
  668. return number < 0 ? -result : result;
  669. }
  670. var LOCALE_ZH_HANS = 'zh-Hans';
  671. var LOCALE_ZH_HANT = 'zh-Hant';
  672. var LOCALE_EN = 'en';
  673. var LOCALE_FR = 'fr';
  674. var LOCALE_ES = 'es';
  675. var messages = {};
  676. var locale;
  677. {
  678. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  679. }
  680. function initI18nMessages() {
  681. if (!isEnableLocale()) {
  682. return;
  683. }
  684. var localeKeys = Object.keys(__uniConfig.locales);
  685. if (localeKeys.length) {
  686. localeKeys.forEach(function (locale) {
  687. var curMessages = messages[locale];
  688. var userMessages = __uniConfig.locales[locale];
  689. if (curMessages) {
  690. Object.assign(curMessages, userMessages);
  691. } else {
  692. messages[locale] = userMessages;
  693. }
  694. });
  695. }
  696. }
  697. initI18nMessages();
  698. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  699. var t = i18n.t;
  700. var i18nMixin = i18n.mixin = {
  701. beforeCreate: function beforeCreate() {
  702. var _this = this;
  703. var unwatch = i18n.i18n.watchLocale(function () {
  704. _this.$forceUpdate();
  705. });
  706. this.$once('hook:beforeDestroy', function () {
  707. unwatch();
  708. });
  709. },
  710. methods: {
  711. $$t: function $$t(key, values) {
  712. return t(key, values);
  713. }
  714. }
  715. };
  716. var setLocale = i18n.setLocale;
  717. var getLocale = i18n.getLocale;
  718. function initAppLocale(Vue, appVm, locale) {
  719. var state = Vue.observable({
  720. locale: locale || i18n.getLocale()
  721. });
  722. var localeWatchers = [];
  723. appVm.$watchLocale = function (fn) {
  724. localeWatchers.push(fn);
  725. };
  726. Object.defineProperty(appVm, '$locale', {
  727. get: function get() {
  728. return state.locale;
  729. },
  730. set: function set(v) {
  731. state.locale = v;
  732. localeWatchers.forEach(function (watch) {
  733. return watch(v);
  734. });
  735. }
  736. });
  737. }
  738. function isEnableLocale() {
  739. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  740. }
  741. function include(str, parts) {
  742. return !!parts.find(function (part) {
  743. return str.indexOf(part) !== -1;
  744. });
  745. }
  746. function startsWith(str, parts) {
  747. return parts.find(function (part) {
  748. return str.indexOf(part) === 0;
  749. });
  750. }
  751. function normalizeLocale(locale, messages) {
  752. if (!locale) {
  753. return;
  754. }
  755. locale = locale.trim().replace(/_/g, '-');
  756. if (messages && messages[locale]) {
  757. return locale;
  758. }
  759. locale = locale.toLowerCase();
  760. if (locale === 'chinese') {
  761. // 支付宝
  762. return LOCALE_ZH_HANS;
  763. }
  764. if (locale.indexOf('zh') === 0) {
  765. if (locale.indexOf('-hans') > -1) {
  766. return LOCALE_ZH_HANS;
  767. }
  768. if (locale.indexOf('-hant') > -1) {
  769. return LOCALE_ZH_HANT;
  770. }
  771. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  772. return LOCALE_ZH_HANT;
  773. }
  774. return LOCALE_ZH_HANS;
  775. }
  776. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  777. if (lang) {
  778. return lang;
  779. }
  780. }
  781. // export function initI18n() {
  782. // const localeKeys = Object.keys(__uniConfig.locales || {})
  783. // if (localeKeys.length) {
  784. // localeKeys.forEach((locale) =>
  785. // i18n.add(locale, __uniConfig.locales[locale])
  786. // )
  787. // }
  788. // }
  789. function getLocale$1() {
  790. // 优先使用 $locale
  791. if (isFn(getApp)) {
  792. var app = getApp({
  793. allowDefault: true
  794. });
  795. if (app && app.$vm) {
  796. return app.$vm.$locale;
  797. }
  798. }
  799. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  800. }
  801. function setLocale$1(locale) {
  802. var app = isFn(getApp) ? getApp() : false;
  803. if (!app) {
  804. return false;
  805. }
  806. var oldLocale = app.$vm.$locale;
  807. if (oldLocale !== locale) {
  808. app.$vm.$locale = locale;
  809. onLocaleChangeCallbacks.forEach(function (fn) {
  810. return fn({
  811. locale: locale
  812. });
  813. });
  814. return true;
  815. }
  816. return false;
  817. }
  818. var onLocaleChangeCallbacks = [];
  819. function onLocaleChange(fn) {
  820. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  821. onLocaleChangeCallbacks.push(fn);
  822. }
  823. }
  824. if (typeof global !== 'undefined') {
  825. global.getLocale = getLocale$1;
  826. }
  827. var interceptors = {
  828. promiseInterceptor: promiseInterceptor
  829. };
  830. var baseApi = /*#__PURE__*/Object.freeze({
  831. __proto__: null,
  832. upx2px: upx2px,
  833. getLocale: getLocale$1,
  834. setLocale: setLocale$1,
  835. onLocaleChange: onLocaleChange,
  836. addInterceptor: addInterceptor,
  837. removeInterceptor: removeInterceptor,
  838. interceptors: interceptors
  839. });
  840. function findExistsPageIndex(url) {
  841. var pages = getCurrentPages();
  842. var len = pages.length;
  843. while (len--) {
  844. var page = pages[len];
  845. if (page.$page && page.$page.fullPath === url) {
  846. return len;
  847. }
  848. }
  849. return -1;
  850. }
  851. var redirectTo = {
  852. name: function name(fromArgs) {
  853. if (fromArgs.exists === 'back' && fromArgs.delta) {
  854. return 'navigateBack';
  855. }
  856. return 'redirectTo';
  857. },
  858. args: function args(fromArgs) {
  859. if (fromArgs.exists === 'back' && fromArgs.url) {
  860. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  861. if (existsPageIndex !== -1) {
  862. var delta = getCurrentPages().length - 1 - existsPageIndex;
  863. if (delta > 0) {
  864. fromArgs.delta = delta;
  865. }
  866. }
  867. }
  868. }
  869. };
  870. var previewImage = {
  871. args: function args(fromArgs) {
  872. var currentIndex = parseInt(fromArgs.current);
  873. if (isNaN(currentIndex)) {
  874. return;
  875. }
  876. var urls = fromArgs.urls;
  877. if (!Array.isArray(urls)) {
  878. return;
  879. }
  880. var len = urls.length;
  881. if (!len) {
  882. return;
  883. }
  884. if (currentIndex < 0) {
  885. currentIndex = 0;
  886. } else if (currentIndex >= len) {
  887. currentIndex = len - 1;
  888. }
  889. if (currentIndex > 0) {
  890. fromArgs.current = urls[currentIndex];
  891. fromArgs.urls = urls.filter(function (item, index) {
  892. return index < currentIndex ? item !== urls[currentIndex] : true;
  893. });
  894. } else {
  895. fromArgs.current = urls[0];
  896. }
  897. return {
  898. indicator: false,
  899. loop: false
  900. };
  901. }
  902. };
  903. var UUID_KEY = '__DC_STAT_UUID';
  904. var deviceId;
  905. function useDeviceId(result) {
  906. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  907. if (!deviceId) {
  908. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  909. wx.setStorage({
  910. key: UUID_KEY,
  911. data: deviceId
  912. });
  913. }
  914. result.deviceId = deviceId;
  915. }
  916. function addSafeAreaInsets(result) {
  917. if (result.safeArea) {
  918. var safeArea = result.safeArea;
  919. result.safeAreaInsets = {
  920. top: safeArea.top,
  921. left: safeArea.left,
  922. right: result.windowWidth - safeArea.right,
  923. bottom: result.screenHeight - safeArea.bottom
  924. };
  925. }
  926. }
  927. function populateParameters(result) {
  928. var _result$brand = result.brand,
  929. brand = _result$brand === void 0 ? '' : _result$brand,
  930. _result$model = result.model,
  931. model = _result$model === void 0 ? '' : _result$model,
  932. _result$system = result.system,
  933. system = _result$system === void 0 ? '' : _result$system,
  934. _result$language = result.language,
  935. language = _result$language === void 0 ? '' : _result$language,
  936. theme = result.theme,
  937. version = result.version,
  938. platform = result.platform,
  939. fontSizeSetting = result.fontSizeSetting,
  940. SDKVersion = result.SDKVersion,
  941. pixelRatio = result.pixelRatio,
  942. deviceOrientation = result.deviceOrientation;
  943. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  944. var extraParam = {};
  945. // osName osVersion
  946. var osName = '';
  947. var osVersion = '';
  948. {
  949. osName = system.split(' ')[0] || '';
  950. osVersion = system.split(' ')[1] || '';
  951. }
  952. var hostVersion = version;
  953. // deviceType
  954. var deviceType = getGetDeviceType(result, model);
  955. // deviceModel
  956. var deviceBrand = getDeviceBrand(brand);
  957. // hostName
  958. var _hostName = getHostName(result);
  959. // deviceOrientation
  960. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  961. // devicePixelRatio
  962. var _devicePixelRatio = pixelRatio;
  963. // SDKVersion
  964. var _SDKVersion = SDKVersion;
  965. // hostLanguage
  966. var hostLanguage = language.replace(/_/g, '-');
  967. // wx.getAccountInfoSync
  968. var parameters = {
  969. appId: "__UNI__E97C301",
  970. appName: "产品化管理端",
  971. appVersion: "1.0.0",
  972. appVersionCode: "100",
  973. appLanguage: getAppLanguage(hostLanguage),
  974. uniCompileVersion: "3.98",
  975. uniRuntimeVersion: "3.98",
  976. uniPlatform: undefined || "mp-weixin",
  977. deviceBrand: deviceBrand,
  978. deviceModel: model,
  979. deviceType: deviceType,
  980. devicePixelRatio: _devicePixelRatio,
  981. deviceOrientation: _deviceOrientation,
  982. osName: osName.toLocaleLowerCase(),
  983. osVersion: osVersion,
  984. hostTheme: theme,
  985. hostVersion: hostVersion,
  986. hostLanguage: hostLanguage,
  987. hostName: _hostName,
  988. hostSDKVersion: _SDKVersion,
  989. hostFontSizeSetting: fontSizeSetting,
  990. windowTop: 0,
  991. windowBottom: 0,
  992. // TODO
  993. osLanguage: undefined,
  994. osTheme: undefined,
  995. ua: undefined,
  996. hostPackageName: undefined,
  997. browserName: undefined,
  998. browserVersion: undefined
  999. };
  1000. Object.assign(result, parameters, extraParam);
  1001. }
  1002. function getGetDeviceType(result, model) {
  1003. var deviceType = result.deviceType || 'phone';
  1004. {
  1005. var deviceTypeMaps = {
  1006. ipad: 'pad',
  1007. windows: 'pc',
  1008. mac: 'pc'
  1009. };
  1010. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  1011. var _model = model.toLocaleLowerCase();
  1012. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  1013. var _m = deviceTypeMapsKeys[index];
  1014. if (_model.indexOf(_m) !== -1) {
  1015. deviceType = deviceTypeMaps[_m];
  1016. break;
  1017. }
  1018. }
  1019. }
  1020. return deviceType;
  1021. }
  1022. function getDeviceBrand(brand) {
  1023. var deviceBrand = brand;
  1024. if (deviceBrand) {
  1025. deviceBrand = brand.toLocaleLowerCase();
  1026. }
  1027. return deviceBrand;
  1028. }
  1029. function getAppLanguage(defaultLanguage) {
  1030. return getLocale$1 ? getLocale$1() : defaultLanguage;
  1031. }
  1032. function getHostName(result) {
  1033. var _platform = 'WeChat';
  1034. var _hostName = result.hostName || _platform; // mp-jd
  1035. {
  1036. if (result.environment) {
  1037. _hostName = result.environment;
  1038. } else if (result.host && result.host.env) {
  1039. _hostName = result.host.env;
  1040. }
  1041. }
  1042. return _hostName;
  1043. }
  1044. var getSystemInfo = {
  1045. returnValue: function returnValue(result) {
  1046. useDeviceId(result);
  1047. addSafeAreaInsets(result);
  1048. populateParameters(result);
  1049. }
  1050. };
  1051. var showActionSheet = {
  1052. args: function args(fromArgs) {
  1053. if ((0, _typeof2.default)(fromArgs) === 'object') {
  1054. fromArgs.alertText = fromArgs.title;
  1055. }
  1056. }
  1057. };
  1058. var getAppBaseInfo = {
  1059. returnValue: function returnValue(result) {
  1060. var _result = result,
  1061. version = _result.version,
  1062. language = _result.language,
  1063. SDKVersion = _result.SDKVersion,
  1064. theme = _result.theme;
  1065. var _hostName = getHostName(result);
  1066. var hostLanguage = language.replace('_', '-');
  1067. result = sortObject(Object.assign(result, {
  1068. appId: "__UNI__E97C301",
  1069. appName: "产品化管理端",
  1070. appVersion: "1.0.0",
  1071. appVersionCode: "100",
  1072. appLanguage: getAppLanguage(hostLanguage),
  1073. hostVersion: version,
  1074. hostLanguage: hostLanguage,
  1075. hostName: _hostName,
  1076. hostSDKVersion: SDKVersion,
  1077. hostTheme: theme
  1078. }));
  1079. }
  1080. };
  1081. var getDeviceInfo = {
  1082. returnValue: function returnValue(result) {
  1083. var _result2 = result,
  1084. brand = _result2.brand,
  1085. model = _result2.model;
  1086. var deviceType = getGetDeviceType(result, model);
  1087. var deviceBrand = getDeviceBrand(brand);
  1088. useDeviceId(result);
  1089. result = sortObject(Object.assign(result, {
  1090. deviceType: deviceType,
  1091. deviceBrand: deviceBrand,
  1092. deviceModel: model
  1093. }));
  1094. }
  1095. };
  1096. var getWindowInfo = {
  1097. returnValue: function returnValue(result) {
  1098. addSafeAreaInsets(result);
  1099. result = sortObject(Object.assign(result, {
  1100. windowTop: 0,
  1101. windowBottom: 0
  1102. }));
  1103. }
  1104. };
  1105. var getAppAuthorizeSetting = {
  1106. returnValue: function returnValue(result) {
  1107. var locationReducedAccuracy = result.locationReducedAccuracy;
  1108. result.locationAccuracy = 'unsupported';
  1109. if (locationReducedAccuracy === true) {
  1110. result.locationAccuracy = 'reduced';
  1111. } else if (locationReducedAccuracy === false) {
  1112. result.locationAccuracy = 'full';
  1113. }
  1114. }
  1115. };
  1116. // import navigateTo from 'uni-helpers/navigate-to'
  1117. var compressImage = {
  1118. args: function args(fromArgs) {
  1119. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  1120. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  1121. fromArgs.compressHeight = fromArgs.compressedHeight;
  1122. }
  1123. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  1124. fromArgs.compressWidth = fromArgs.compressedWidth;
  1125. }
  1126. }
  1127. };
  1128. var protocols = {
  1129. redirectTo: redirectTo,
  1130. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  1131. previewImage: previewImage,
  1132. getSystemInfo: getSystemInfo,
  1133. getSystemInfoSync: getSystemInfo,
  1134. showActionSheet: showActionSheet,
  1135. getAppBaseInfo: getAppBaseInfo,
  1136. getDeviceInfo: getDeviceInfo,
  1137. getWindowInfo: getWindowInfo,
  1138. getAppAuthorizeSetting: getAppAuthorizeSetting,
  1139. compressImage: compressImage
  1140. };
  1141. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  1142. var canIUses = [];
  1143. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  1144. function processCallback(methodName, method, returnValue) {
  1145. return function (res) {
  1146. return method(processReturnValue(methodName, res, returnValue));
  1147. };
  1148. }
  1149. function processArgs(methodName, fromArgs) {
  1150. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1151. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1152. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1153. if (isPlainObject(fromArgs)) {
  1154. // 一般 api 的参数解析
  1155. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  1156. if (isFn(argsOption)) {
  1157. argsOption = argsOption(fromArgs, toArgs) || {};
  1158. }
  1159. for (var key in fromArgs) {
  1160. if (hasOwn(argsOption, key)) {
  1161. var keyOption = argsOption[key];
  1162. if (isFn(keyOption)) {
  1163. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  1164. }
  1165. if (!keyOption) {
  1166. // 不支持的参数
  1167. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  1168. } else if (isStr(keyOption)) {
  1169. // 重写参数 key
  1170. toArgs[keyOption] = fromArgs[key];
  1171. } else if (isPlainObject(keyOption)) {
  1172. // {name:newName,value:value}可重新指定参数 key:value
  1173. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  1174. }
  1175. } else if (CALLBACKS.indexOf(key) !== -1) {
  1176. if (isFn(fromArgs[key])) {
  1177. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  1178. }
  1179. } else {
  1180. if (!keepFromArgs) {
  1181. toArgs[key] = fromArgs[key];
  1182. }
  1183. }
  1184. }
  1185. return toArgs;
  1186. } else if (isFn(fromArgs)) {
  1187. fromArgs = processCallback(methodName, fromArgs, returnValue);
  1188. }
  1189. return fromArgs;
  1190. }
  1191. function processReturnValue(methodName, res, returnValue) {
  1192. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1193. if (isFn(protocols.returnValue)) {
  1194. // 处理通用 returnValue
  1195. res = protocols.returnValue(methodName, res);
  1196. }
  1197. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  1198. }
  1199. function wrapper(methodName, method) {
  1200. if (hasOwn(protocols, methodName)) {
  1201. var protocol = protocols[methodName];
  1202. if (!protocol) {
  1203. // 暂不支持的 api
  1204. return function () {
  1205. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1206. };
  1207. }
  1208. return function (arg1, arg2) {
  1209. // 目前 api 最多两个参数
  1210. var options = protocol;
  1211. if (isFn(protocol)) {
  1212. options = protocol(arg1);
  1213. }
  1214. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1215. var args = [arg1];
  1216. if (typeof arg2 !== 'undefined') {
  1217. args.push(arg2);
  1218. }
  1219. if (isFn(options.name)) {
  1220. methodName = options.name(arg1);
  1221. } else if (isStr(options.name)) {
  1222. methodName = options.name;
  1223. }
  1224. var returnValue = wx[methodName].apply(wx, args);
  1225. if (isSyncApi(methodName)) {
  1226. // 同步 api
  1227. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1228. }
  1229. return returnValue;
  1230. };
  1231. }
  1232. return method;
  1233. }
  1234. var todoApis = Object.create(null);
  1235. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1236. function createTodoApi(name) {
  1237. return function todoApi(_ref) {
  1238. var fail = _ref.fail,
  1239. complete = _ref.complete;
  1240. var res = {
  1241. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1242. };
  1243. isFn(fail) && fail(res);
  1244. isFn(complete) && complete(res);
  1245. };
  1246. }
  1247. TODOS.forEach(function (name) {
  1248. todoApis[name] = createTodoApi(name);
  1249. });
  1250. var providers = {
  1251. oauth: ['weixin'],
  1252. share: ['weixin'],
  1253. payment: ['wxpay'],
  1254. push: ['weixin']
  1255. };
  1256. function getProvider(_ref2) {
  1257. var service = _ref2.service,
  1258. success = _ref2.success,
  1259. fail = _ref2.fail,
  1260. complete = _ref2.complete;
  1261. var res = false;
  1262. if (providers[service]) {
  1263. res = {
  1264. errMsg: 'getProvider:ok',
  1265. service: service,
  1266. provider: providers[service]
  1267. };
  1268. isFn(success) && success(res);
  1269. } else {
  1270. res = {
  1271. errMsg: 'getProvider:fail service not found'
  1272. };
  1273. isFn(fail) && fail(res);
  1274. }
  1275. isFn(complete) && complete(res);
  1276. }
  1277. var extraApi = /*#__PURE__*/Object.freeze({
  1278. __proto__: null,
  1279. getProvider: getProvider
  1280. });
  1281. var getEmitter = function () {
  1282. var Emitter;
  1283. return function getUniEmitter() {
  1284. if (!Emitter) {
  1285. Emitter = new _vue.default();
  1286. }
  1287. return Emitter;
  1288. };
  1289. }();
  1290. function apply(ctx, method, args) {
  1291. return ctx[method].apply(ctx, args);
  1292. }
  1293. function $on() {
  1294. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1295. }
  1296. function $off() {
  1297. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1298. }
  1299. function $once() {
  1300. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1301. }
  1302. function $emit() {
  1303. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1304. }
  1305. var eventApi = /*#__PURE__*/Object.freeze({
  1306. __proto__: null,
  1307. $on: $on,
  1308. $off: $off,
  1309. $once: $once,
  1310. $emit: $emit
  1311. });
  1312. /**
  1313. * 框架内 try-catch
  1314. */
  1315. /**
  1316. * 开发者 try-catch
  1317. */
  1318. function tryCatch(fn) {
  1319. return function () {
  1320. try {
  1321. return fn.apply(fn, arguments);
  1322. } catch (e) {
  1323. // TODO
  1324. console.error(e);
  1325. }
  1326. };
  1327. }
  1328. function getApiCallbacks(params) {
  1329. var apiCallbacks = {};
  1330. for (var name in params) {
  1331. var param = params[name];
  1332. if (isFn(param)) {
  1333. apiCallbacks[name] = tryCatch(param);
  1334. delete params[name];
  1335. }
  1336. }
  1337. return apiCallbacks;
  1338. }
  1339. var cid;
  1340. var cidErrMsg;
  1341. var enabled;
  1342. function normalizePushMessage(message) {
  1343. try {
  1344. return JSON.parse(message);
  1345. } catch (e) {}
  1346. return message;
  1347. }
  1348. function invokePushCallback(args) {
  1349. if (args.type === 'enabled') {
  1350. enabled = true;
  1351. } else if (args.type === 'clientId') {
  1352. cid = args.cid;
  1353. cidErrMsg = args.errMsg;
  1354. invokeGetPushCidCallbacks(cid, args.errMsg);
  1355. } else if (args.type === 'pushMsg') {
  1356. var message = {
  1357. type: 'receive',
  1358. data: normalizePushMessage(args.message)
  1359. };
  1360. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1361. var callback = onPushMessageCallbacks[i];
  1362. callback(message);
  1363. // 该消息已被阻止
  1364. if (message.stopped) {
  1365. break;
  1366. }
  1367. }
  1368. } else if (args.type === 'click') {
  1369. onPushMessageCallbacks.forEach(function (callback) {
  1370. callback({
  1371. type: 'click',
  1372. data: normalizePushMessage(args.message)
  1373. });
  1374. });
  1375. }
  1376. }
  1377. var getPushCidCallbacks = [];
  1378. function invokeGetPushCidCallbacks(cid, errMsg) {
  1379. getPushCidCallbacks.forEach(function (callback) {
  1380. callback(cid, errMsg);
  1381. });
  1382. getPushCidCallbacks.length = 0;
  1383. }
  1384. function getPushClientId(args) {
  1385. if (!isPlainObject(args)) {
  1386. args = {};
  1387. }
  1388. var _getApiCallbacks = getApiCallbacks(args),
  1389. success = _getApiCallbacks.success,
  1390. fail = _getApiCallbacks.fail,
  1391. complete = _getApiCallbacks.complete;
  1392. var hasSuccess = isFn(success);
  1393. var hasFail = isFn(fail);
  1394. var hasComplete = isFn(complete);
  1395. Promise.resolve().then(function () {
  1396. if (typeof enabled === 'undefined') {
  1397. enabled = false;
  1398. cid = '';
  1399. cidErrMsg = 'uniPush is not enabled';
  1400. }
  1401. getPushCidCallbacks.push(function (cid, errMsg) {
  1402. var res;
  1403. if (cid) {
  1404. res = {
  1405. errMsg: 'getPushClientId:ok',
  1406. cid: cid
  1407. };
  1408. hasSuccess && success(res);
  1409. } else {
  1410. res = {
  1411. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1412. };
  1413. hasFail && fail(res);
  1414. }
  1415. hasComplete && complete(res);
  1416. });
  1417. if (typeof cid !== 'undefined') {
  1418. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1419. }
  1420. });
  1421. }
  1422. var onPushMessageCallbacks = [];
  1423. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1424. var onPushMessage = function onPushMessage(fn) {
  1425. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1426. onPushMessageCallbacks.push(fn);
  1427. }
  1428. };
  1429. var offPushMessage = function offPushMessage(fn) {
  1430. if (!fn) {
  1431. onPushMessageCallbacks.length = 0;
  1432. } else {
  1433. var index = onPushMessageCallbacks.indexOf(fn);
  1434. if (index > -1) {
  1435. onPushMessageCallbacks.splice(index, 1);
  1436. }
  1437. }
  1438. };
  1439. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1440. if (!baseInfo) {
  1441. baseInfo = wx.getSystemInfoSync();
  1442. }
  1443. var host = baseInfo ? baseInfo.host : null;
  1444. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1445. var api = /*#__PURE__*/Object.freeze({
  1446. __proto__: null,
  1447. shareVideoMessage: shareVideoMessage,
  1448. getPushClientId: getPushClientId,
  1449. onPushMessage: onPushMessage,
  1450. offPushMessage: offPushMessage,
  1451. invokePushCallback: invokePushCallback
  1452. });
  1453. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1454. function findVmByVueId(vm, vuePid) {
  1455. var $children = vm.$children;
  1456. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1457. for (var i = $children.length - 1; i >= 0; i--) {
  1458. var childVm = $children[i];
  1459. if (childVm.$scope._$vueId === vuePid) {
  1460. return childVm;
  1461. }
  1462. }
  1463. // 反向递归查找
  1464. var parentVm;
  1465. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1466. parentVm = findVmByVueId($children[_i], vuePid);
  1467. if (parentVm) {
  1468. return parentVm;
  1469. }
  1470. }
  1471. }
  1472. function initBehavior(options) {
  1473. return Behavior(options);
  1474. }
  1475. function isPage() {
  1476. return !!this.route;
  1477. }
  1478. function initRelation(detail) {
  1479. this.triggerEvent('__l', detail);
  1480. }
  1481. function selectAllComponents(mpInstance, selector, $refs) {
  1482. var components = mpInstance.selectAllComponents(selector) || [];
  1483. components.forEach(function (component) {
  1484. var ref = component.dataset.ref;
  1485. $refs[ref] = component.$vm || toSkip(component);
  1486. {
  1487. if (component.dataset.vueGeneric === 'scoped') {
  1488. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1489. selectAllComponents(scopedComponent, selector, $refs);
  1490. });
  1491. }
  1492. }
  1493. });
  1494. }
  1495. function syncRefs(refs, newRefs) {
  1496. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1497. var newKeys = Object.keys(newRefs);
  1498. newKeys.forEach(function (key) {
  1499. var oldValue = refs[key];
  1500. var newValue = newRefs[key];
  1501. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1502. return oldValue.includes(value);
  1503. })) {
  1504. return;
  1505. }
  1506. refs[key] = newValue;
  1507. oldKeys.delete(key);
  1508. });
  1509. oldKeys.forEach(function (key) {
  1510. delete refs[key];
  1511. });
  1512. return refs;
  1513. }
  1514. function initRefs(vm) {
  1515. var mpInstance = vm.$scope;
  1516. var refs = {};
  1517. Object.defineProperty(vm, '$refs', {
  1518. get: function get() {
  1519. var $refs = {};
  1520. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1521. // TODO 暂不考虑 for 中的 scoped
  1522. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1523. forComponents.forEach(function (component) {
  1524. var ref = component.dataset.ref;
  1525. if (!$refs[ref]) {
  1526. $refs[ref] = [];
  1527. }
  1528. $refs[ref].push(component.$vm || toSkip(component));
  1529. });
  1530. return syncRefs(refs, $refs);
  1531. }
  1532. });
  1533. }
  1534. function handleLink(event) {
  1535. var _ref3 = event.detail || event.value,
  1536. vuePid = _ref3.vuePid,
  1537. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1538. var parentVm;
  1539. if (vuePid) {
  1540. parentVm = findVmByVueId(this.$vm, vuePid);
  1541. }
  1542. if (!parentVm) {
  1543. parentVm = this.$vm;
  1544. }
  1545. vueOptions.parent = parentVm;
  1546. }
  1547. function markMPComponent(component) {
  1548. // 在 Vue 中标记为小程序组件
  1549. var IS_MP = '__v_isMPComponent';
  1550. Object.defineProperty(component, IS_MP, {
  1551. configurable: true,
  1552. enumerable: false,
  1553. value: true
  1554. });
  1555. return component;
  1556. }
  1557. function toSkip(obj) {
  1558. var OB = '__ob__';
  1559. var SKIP = '__v_skip';
  1560. if (isObject(obj) && Object.isExtensible(obj)) {
  1561. // 避免被 @vue/composition-api 观测
  1562. Object.defineProperty(obj, OB, {
  1563. configurable: true,
  1564. enumerable: false,
  1565. value: (0, _defineProperty2.default)({}, SKIP, true)
  1566. });
  1567. }
  1568. return obj;
  1569. }
  1570. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1571. function initWorkletMethods(mpMethods, vueMethods) {
  1572. if (vueMethods) {
  1573. Object.keys(vueMethods).forEach(function (name) {
  1574. var matches = name.match(WORKLET_RE);
  1575. if (matches) {
  1576. var workletName = matches[1];
  1577. mpMethods[name] = vueMethods[name];
  1578. mpMethods[workletName] = vueMethods[workletName];
  1579. }
  1580. });
  1581. }
  1582. }
  1583. var MPPage = Page;
  1584. var MPComponent = Component;
  1585. var customizeRE = /:/g;
  1586. var customize = cached(function (str) {
  1587. return camelize(str.replace(customizeRE, '-'));
  1588. });
  1589. function initTriggerEvent(mpInstance) {
  1590. var oldTriggerEvent = mpInstance.triggerEvent;
  1591. var newTriggerEvent = function newTriggerEvent(event) {
  1592. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1593. args[_key3 - 1] = arguments[_key3];
  1594. }
  1595. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1596. if (this.$vm || this.dataset && this.dataset.comType) {
  1597. event = customize(event);
  1598. } else {
  1599. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1600. var newEvent = customize(event);
  1601. if (newEvent !== event) {
  1602. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1603. }
  1604. }
  1605. return oldTriggerEvent.apply(this, [event].concat(args));
  1606. };
  1607. try {
  1608. // 京东小程序 triggerEvent 为只读
  1609. mpInstance.triggerEvent = newTriggerEvent;
  1610. } catch (error) {
  1611. mpInstance._triggerEvent = newTriggerEvent;
  1612. }
  1613. }
  1614. function initHook(name, options, isComponent) {
  1615. var oldHook = options[name];
  1616. options[name] = function () {
  1617. markMPComponent(this);
  1618. initTriggerEvent(this);
  1619. if (oldHook) {
  1620. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1621. args[_key4] = arguments[_key4];
  1622. }
  1623. return oldHook.apply(this, args);
  1624. }
  1625. };
  1626. }
  1627. if (!MPPage.__$wrappered) {
  1628. MPPage.__$wrappered = true;
  1629. Page = function Page() {
  1630. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1631. initHook('onLoad', options);
  1632. return MPPage(options);
  1633. };
  1634. Page.after = MPPage.after;
  1635. Component = function Component() {
  1636. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1637. initHook('created', options);
  1638. return MPComponent(options);
  1639. };
  1640. }
  1641. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1642. function initMocks(vm, mocks) {
  1643. var mpInstance = vm.$mp[vm.mpType];
  1644. mocks.forEach(function (mock) {
  1645. if (hasOwn(mpInstance, mock)) {
  1646. vm[mock] = mpInstance[mock];
  1647. }
  1648. });
  1649. }
  1650. function hasHook(hook, vueOptions) {
  1651. if (!vueOptions) {
  1652. return true;
  1653. }
  1654. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1655. return true;
  1656. }
  1657. vueOptions = vueOptions.default || vueOptions;
  1658. if (isFn(vueOptions)) {
  1659. if (isFn(vueOptions.extendOptions[hook])) {
  1660. return true;
  1661. }
  1662. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1663. return true;
  1664. }
  1665. return false;
  1666. }
  1667. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1668. return true;
  1669. }
  1670. var mixins = vueOptions.mixins;
  1671. if (Array.isArray(mixins)) {
  1672. return !!mixins.find(function (mixin) {
  1673. return hasHook(hook, mixin);
  1674. });
  1675. }
  1676. }
  1677. function initHooks(mpOptions, hooks, vueOptions) {
  1678. hooks.forEach(function (hook) {
  1679. if (hasHook(hook, vueOptions)) {
  1680. mpOptions[hook] = function (args) {
  1681. return this.$vm && this.$vm.__call_hook(hook, args);
  1682. };
  1683. }
  1684. });
  1685. }
  1686. function initUnknownHooks(mpOptions, vueOptions) {
  1687. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1688. findHooks(vueOptions).forEach(function (hook) {
  1689. return initHook$1(mpOptions, hook, excludes);
  1690. });
  1691. }
  1692. function findHooks(vueOptions) {
  1693. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1694. if (vueOptions) {
  1695. Object.keys(vueOptions).forEach(function (name) {
  1696. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1697. hooks.push(name);
  1698. }
  1699. });
  1700. }
  1701. return hooks;
  1702. }
  1703. function initHook$1(mpOptions, hook, excludes) {
  1704. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1705. mpOptions[hook] = function (args) {
  1706. return this.$vm && this.$vm.__call_hook(hook, args);
  1707. };
  1708. }
  1709. }
  1710. function initVueComponent(Vue, vueOptions) {
  1711. vueOptions = vueOptions.default || vueOptions;
  1712. var VueComponent;
  1713. if (isFn(vueOptions)) {
  1714. VueComponent = vueOptions;
  1715. } else {
  1716. VueComponent = Vue.extend(vueOptions);
  1717. }
  1718. vueOptions = VueComponent.options;
  1719. return [VueComponent, vueOptions];
  1720. }
  1721. function initSlots(vm, vueSlots) {
  1722. if (Array.isArray(vueSlots) && vueSlots.length) {
  1723. var $slots = Object.create(null);
  1724. vueSlots.forEach(function (slotName) {
  1725. $slots[slotName] = true;
  1726. });
  1727. vm.$scopedSlots = vm.$slots = $slots;
  1728. }
  1729. }
  1730. function initVueIds(vueIds, mpInstance) {
  1731. vueIds = (vueIds || '').split(',');
  1732. var len = vueIds.length;
  1733. if (len === 1) {
  1734. mpInstance._$vueId = vueIds[0];
  1735. } else if (len === 2) {
  1736. mpInstance._$vueId = vueIds[0];
  1737. mpInstance._$vuePid = vueIds[1];
  1738. }
  1739. }
  1740. function initData(vueOptions, context) {
  1741. var data = vueOptions.data || {};
  1742. var methods = vueOptions.methods || {};
  1743. if (typeof data === 'function') {
  1744. try {
  1745. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1746. } catch (e) {
  1747. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1748. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1749. }
  1750. }
  1751. } else {
  1752. try {
  1753. // 对 data 格式化
  1754. data = JSON.parse(JSON.stringify(data));
  1755. } catch (e) {}
  1756. }
  1757. if (!isPlainObject(data)) {
  1758. data = {};
  1759. }
  1760. Object.keys(methods).forEach(function (methodName) {
  1761. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1762. data[methodName] = methods[methodName];
  1763. }
  1764. });
  1765. return data;
  1766. }
  1767. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1768. function createObserver(name) {
  1769. return function observer(newVal, oldVal) {
  1770. if (this.$vm) {
  1771. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1772. }
  1773. };
  1774. }
  1775. function initBehaviors(vueOptions, initBehavior) {
  1776. var vueBehaviors = vueOptions.behaviors;
  1777. var vueExtends = vueOptions.extends;
  1778. var vueMixins = vueOptions.mixins;
  1779. var vueProps = vueOptions.props;
  1780. if (!vueProps) {
  1781. vueOptions.props = vueProps = [];
  1782. }
  1783. var behaviors = [];
  1784. if (Array.isArray(vueBehaviors)) {
  1785. vueBehaviors.forEach(function (behavior) {
  1786. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1787. if (behavior === 'uni://form-field') {
  1788. if (Array.isArray(vueProps)) {
  1789. vueProps.push('name');
  1790. vueProps.push('value');
  1791. } else {
  1792. vueProps.name = {
  1793. type: String,
  1794. default: ''
  1795. };
  1796. vueProps.value = {
  1797. type: [String, Number, Boolean, Array, Object, Date],
  1798. default: ''
  1799. };
  1800. }
  1801. }
  1802. });
  1803. }
  1804. if (isPlainObject(vueExtends) && vueExtends.props) {
  1805. behaviors.push(initBehavior({
  1806. properties: initProperties(vueExtends.props, true)
  1807. }));
  1808. }
  1809. if (Array.isArray(vueMixins)) {
  1810. vueMixins.forEach(function (vueMixin) {
  1811. if (isPlainObject(vueMixin) && vueMixin.props) {
  1812. behaviors.push(initBehavior({
  1813. properties: initProperties(vueMixin.props, true)
  1814. }));
  1815. }
  1816. });
  1817. }
  1818. return behaviors;
  1819. }
  1820. function parsePropType(key, type, defaultValue, file) {
  1821. // [String]=>String
  1822. if (Array.isArray(type) && type.length === 1) {
  1823. return type[0];
  1824. }
  1825. return type;
  1826. }
  1827. function initProperties(props) {
  1828. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1829. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1830. var options = arguments.length > 3 ? arguments[3] : undefined;
  1831. var properties = {};
  1832. if (!isBehavior) {
  1833. properties.vueId = {
  1834. type: String,
  1835. value: ''
  1836. };
  1837. {
  1838. if (options.virtualHost) {
  1839. properties.virtualHostStyle = {
  1840. type: null,
  1841. value: ''
  1842. };
  1843. properties.virtualHostClass = {
  1844. type: null,
  1845. value: ''
  1846. };
  1847. }
  1848. }
  1849. // scopedSlotsCompiler auto
  1850. properties.scopedSlotsCompiler = {
  1851. type: String,
  1852. value: ''
  1853. };
  1854. properties.vueSlots = {
  1855. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1856. type: null,
  1857. value: [],
  1858. observer: function observer(newVal, oldVal) {
  1859. var $slots = Object.create(null);
  1860. newVal.forEach(function (slotName) {
  1861. $slots[slotName] = true;
  1862. });
  1863. this.setData({
  1864. $slots: $slots
  1865. });
  1866. }
  1867. };
  1868. }
  1869. if (Array.isArray(props)) {
  1870. // ['title']
  1871. props.forEach(function (key) {
  1872. properties[key] = {
  1873. type: null,
  1874. observer: createObserver(key)
  1875. };
  1876. });
  1877. } else if (isPlainObject(props)) {
  1878. // {title:{type:String,default:''},content:String}
  1879. Object.keys(props).forEach(function (key) {
  1880. var opts = props[key];
  1881. if (isPlainObject(opts)) {
  1882. // title:{type:String,default:''}
  1883. var value = opts.default;
  1884. if (isFn(value)) {
  1885. value = value();
  1886. }
  1887. opts.type = parsePropType(key, opts.type);
  1888. properties[key] = {
  1889. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1890. value: value,
  1891. observer: createObserver(key)
  1892. };
  1893. } else {
  1894. // content:String
  1895. var type = parsePropType(key, opts);
  1896. properties[key] = {
  1897. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1898. observer: createObserver(key)
  1899. };
  1900. }
  1901. });
  1902. }
  1903. return properties;
  1904. }
  1905. function wrapper$1(event) {
  1906. // TODO 又得兼容 mpvue 的 mp 对象
  1907. try {
  1908. event.mp = JSON.parse(JSON.stringify(event));
  1909. } catch (e) {}
  1910. event.stopPropagation = noop;
  1911. event.preventDefault = noop;
  1912. event.target = event.target || {};
  1913. if (!hasOwn(event, 'detail')) {
  1914. event.detail = {};
  1915. }
  1916. if (hasOwn(event, 'markerId')) {
  1917. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1918. event.detail.markerId = event.markerId;
  1919. }
  1920. if (isPlainObject(event.detail)) {
  1921. event.target = Object.assign({}, event.target, event.detail);
  1922. }
  1923. return event;
  1924. }
  1925. function getExtraValue(vm, dataPathsArray) {
  1926. var context = vm;
  1927. dataPathsArray.forEach(function (dataPathArray) {
  1928. var dataPath = dataPathArray[0];
  1929. var value = dataPathArray[2];
  1930. if (dataPath || typeof value !== 'undefined') {
  1931. // ['','',index,'disable']
  1932. var propPath = dataPathArray[1];
  1933. var valuePath = dataPathArray[3];
  1934. var vFor;
  1935. if (Number.isInteger(dataPath)) {
  1936. vFor = dataPath;
  1937. } else if (!dataPath) {
  1938. vFor = context;
  1939. } else if (typeof dataPath === 'string' && dataPath) {
  1940. if (dataPath.indexOf('#s#') === 0) {
  1941. vFor = dataPath.substr(3);
  1942. } else {
  1943. vFor = vm.__get_value(dataPath, context);
  1944. }
  1945. }
  1946. if (Number.isInteger(vFor)) {
  1947. context = value;
  1948. } else if (!propPath) {
  1949. context = vFor[value];
  1950. } else {
  1951. if (Array.isArray(vFor)) {
  1952. context = vFor.find(function (vForItem) {
  1953. return vm.__get_value(propPath, vForItem) === value;
  1954. });
  1955. } else if (isPlainObject(vFor)) {
  1956. context = Object.keys(vFor).find(function (vForKey) {
  1957. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1958. });
  1959. } else {
  1960. console.error('v-for 暂不支持循环数据:', vFor);
  1961. }
  1962. }
  1963. if (valuePath) {
  1964. context = vm.__get_value(valuePath, context);
  1965. }
  1966. }
  1967. });
  1968. return context;
  1969. }
  1970. function processEventExtra(vm, extra, event, __args__) {
  1971. var extraObj = {};
  1972. if (Array.isArray(extra) && extra.length) {
  1973. /**
  1974. *[
  1975. * ['data.items', 'data.id', item.data.id],
  1976. * ['metas', 'id', meta.id]
  1977. *],
  1978. *[
  1979. * ['data.items', 'data.id', item.data.id],
  1980. * ['metas', 'id', meta.id]
  1981. *],
  1982. *'test'
  1983. */
  1984. extra.forEach(function (dataPath, index) {
  1985. if (typeof dataPath === 'string') {
  1986. if (!dataPath) {
  1987. // model,prop.sync
  1988. extraObj['$' + index] = vm;
  1989. } else {
  1990. if (dataPath === '$event') {
  1991. // $event
  1992. extraObj['$' + index] = event;
  1993. } else if (dataPath === 'arguments') {
  1994. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1995. } else if (dataPath.indexOf('$event.') === 0) {
  1996. // $event.target.value
  1997. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1998. } else {
  1999. extraObj['$' + index] = vm.__get_value(dataPath);
  2000. }
  2001. }
  2002. } else {
  2003. extraObj['$' + index] = getExtraValue(vm, dataPath);
  2004. }
  2005. });
  2006. }
  2007. return extraObj;
  2008. }
  2009. function getObjByArray(arr) {
  2010. var obj = {};
  2011. for (var i = 1; i < arr.length; i++) {
  2012. var element = arr[i];
  2013. obj[element[0]] = element[1];
  2014. }
  2015. return obj;
  2016. }
  2017. function processEventArgs(vm, event) {
  2018. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  2019. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  2020. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  2021. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  2022. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  2023. // fixed 用户直接触发 mpInstance.triggerEvent
  2024. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  2025. if (isCustom) {
  2026. // 自定义事件
  2027. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  2028. if (!args.length) {
  2029. // 无参数,直接传入 event 或 detail 数组
  2030. if (isCustomMPEvent) {
  2031. return [event];
  2032. }
  2033. return __args__;
  2034. }
  2035. }
  2036. var extraObj = processEventExtra(vm, extra, event, __args__);
  2037. var ret = [];
  2038. args.forEach(function (arg) {
  2039. if (arg === '$event') {
  2040. if (methodName === '__set_model' && !isCustom) {
  2041. // input v-model value
  2042. ret.push(event.target.value);
  2043. } else {
  2044. if (isCustom && !isCustomMPEvent) {
  2045. ret.push(__args__[0]);
  2046. } else {
  2047. // wxcomponent 组件或内置组件
  2048. ret.push(event);
  2049. }
  2050. }
  2051. } else {
  2052. if (Array.isArray(arg) && arg[0] === 'o') {
  2053. ret.push(getObjByArray(arg));
  2054. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  2055. ret.push(extraObj[arg]);
  2056. } else {
  2057. ret.push(arg);
  2058. }
  2059. }
  2060. });
  2061. return ret;
  2062. }
  2063. var ONCE = '~';
  2064. var CUSTOM = '^';
  2065. function isMatchEventType(eventType, optType) {
  2066. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  2067. }
  2068. function getContextVm(vm) {
  2069. var $parent = vm.$parent;
  2070. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  2071. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  2072. $parent = $parent.$parent;
  2073. }
  2074. return $parent && $parent.$parent;
  2075. }
  2076. function handleEvent(event) {
  2077. var _this2 = this;
  2078. event = wrapper$1(event);
  2079. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  2080. var dataset = (event.currentTarget || event.target).dataset;
  2081. if (!dataset) {
  2082. return console.warn('事件信息不存在');
  2083. }
  2084. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  2085. if (!eventOpts) {
  2086. return console.warn('事件信息不存在');
  2087. }
  2088. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  2089. var eventType = event.type;
  2090. var ret = [];
  2091. eventOpts.forEach(function (eventOpt) {
  2092. var type = eventOpt[0];
  2093. var eventsArray = eventOpt[1];
  2094. var isCustom = type.charAt(0) === CUSTOM;
  2095. type = isCustom ? type.slice(1) : type;
  2096. var isOnce = type.charAt(0) === ONCE;
  2097. type = isOnce ? type.slice(1) : type;
  2098. if (eventsArray && isMatchEventType(eventType, type)) {
  2099. eventsArray.forEach(function (eventArray) {
  2100. var methodName = eventArray[0];
  2101. if (methodName) {
  2102. var handlerCtx = _this2.$vm;
  2103. if (handlerCtx.$options.generic) {
  2104. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  2105. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  2106. }
  2107. if (methodName === '$emit') {
  2108. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  2109. return;
  2110. }
  2111. var handler = handlerCtx[methodName];
  2112. if (!isFn(handler)) {
  2113. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  2114. var path = _this2.route || _this2.is;
  2115. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  2116. }
  2117. if (isOnce) {
  2118. if (handler.once) {
  2119. return;
  2120. }
  2121. handler.once = true;
  2122. }
  2123. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  2124. params = Array.isArray(params) ? params : [];
  2125. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  2126. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  2127. // eslint-disable-next-line no-sparse-arrays
  2128. params = params.concat([,,,,,,,,,, event]);
  2129. }
  2130. ret.push(handler.apply(handlerCtx, params));
  2131. }
  2132. });
  2133. }
  2134. });
  2135. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  2136. return ret[0];
  2137. }
  2138. }
  2139. var eventChannels = {};
  2140. function getEventChannel(id) {
  2141. var eventChannel = eventChannels[id];
  2142. delete eventChannels[id];
  2143. return eventChannel;
  2144. }
  2145. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  2146. function initEventChannel() {
  2147. _vue.default.prototype.getOpenerEventChannel = function () {
  2148. // 微信小程序使用自身getOpenerEventChannel
  2149. {
  2150. return this.$scope.getOpenerEventChannel();
  2151. }
  2152. };
  2153. var callHook = _vue.default.prototype.__call_hook;
  2154. _vue.default.prototype.__call_hook = function (hook, args) {
  2155. if (hook === 'onLoad' && args && args.__id__) {
  2156. this.__eventChannel__ = getEventChannel(args.__id__);
  2157. delete args.__id__;
  2158. }
  2159. return callHook.call(this, hook, args);
  2160. };
  2161. }
  2162. function initScopedSlotsParams() {
  2163. var center = {};
  2164. var parents = {};
  2165. function currentId(fn) {
  2166. var vueIds = this.$options.propsData.vueId;
  2167. if (vueIds) {
  2168. var vueId = vueIds.split(',')[0];
  2169. fn(vueId);
  2170. }
  2171. }
  2172. _vue.default.prototype.$hasSSP = function (vueId) {
  2173. var slot = center[vueId];
  2174. if (!slot) {
  2175. parents[vueId] = this;
  2176. this.$on('hook:destroyed', function () {
  2177. delete parents[vueId];
  2178. });
  2179. }
  2180. return slot;
  2181. };
  2182. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  2183. var slot = center[vueId];
  2184. if (slot) {
  2185. var params = slot[name] || [];
  2186. if (needAll) {
  2187. return params;
  2188. }
  2189. return params[0];
  2190. }
  2191. };
  2192. _vue.default.prototype.$setSSP = function (name, value) {
  2193. var index = 0;
  2194. currentId.call(this, function (vueId) {
  2195. var slot = center[vueId];
  2196. var params = slot[name] = slot[name] || [];
  2197. params.push(value);
  2198. index = params.length - 1;
  2199. });
  2200. return index;
  2201. };
  2202. _vue.default.prototype.$initSSP = function () {
  2203. currentId.call(this, function (vueId) {
  2204. center[vueId] = {};
  2205. });
  2206. };
  2207. _vue.default.prototype.$callSSP = function () {
  2208. currentId.call(this, function (vueId) {
  2209. if (parents[vueId]) {
  2210. parents[vueId].$forceUpdate();
  2211. }
  2212. });
  2213. };
  2214. _vue.default.mixin({
  2215. destroyed: function destroyed() {
  2216. var propsData = this.$options.propsData;
  2217. var vueId = propsData && propsData.vueId;
  2218. if (vueId) {
  2219. delete center[vueId];
  2220. delete parents[vueId];
  2221. }
  2222. }
  2223. });
  2224. }
  2225. function parseBaseApp(vm, _ref4) {
  2226. var mocks = _ref4.mocks,
  2227. initRefs = _ref4.initRefs;
  2228. initEventChannel();
  2229. {
  2230. initScopedSlotsParams();
  2231. }
  2232. if (vm.$options.store) {
  2233. _vue.default.prototype.$store = vm.$options.store;
  2234. }
  2235. uniIdMixin(_vue.default);
  2236. _vue.default.prototype.mpHost = "mp-weixin";
  2237. _vue.default.mixin({
  2238. beforeCreate: function beforeCreate() {
  2239. if (!this.$options.mpType) {
  2240. return;
  2241. }
  2242. this.mpType = this.$options.mpType;
  2243. this.$mp = (0, _defineProperty2.default)({
  2244. data: {}
  2245. }, this.mpType, this.$options.mpInstance);
  2246. this.$scope = this.$options.mpInstance;
  2247. delete this.$options.mpType;
  2248. delete this.$options.mpInstance;
  2249. if (this.mpType === 'page' && typeof getApp === 'function') {
  2250. // hack vue-i18n
  2251. var app = getApp();
  2252. if (app.$vm && app.$vm.$i18n) {
  2253. this._i18n = app.$vm.$i18n;
  2254. }
  2255. }
  2256. if (this.mpType !== 'app') {
  2257. initRefs(this);
  2258. initMocks(this, mocks);
  2259. }
  2260. }
  2261. });
  2262. var appOptions = {
  2263. onLaunch: function onLaunch(args) {
  2264. if (this.$vm) {
  2265. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2266. return;
  2267. }
  2268. {
  2269. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2270. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2271. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2272. }
  2273. }
  2274. this.$vm = vm;
  2275. this.$vm.$mp = {
  2276. app: this
  2277. };
  2278. this.$vm.$scope = this;
  2279. // vm 上也挂载 globalData
  2280. this.$vm.globalData = this.globalData;
  2281. this.$vm._isMounted = true;
  2282. this.$vm.__call_hook('mounted', args);
  2283. this.$vm.__call_hook('onLaunch', args);
  2284. }
  2285. };
  2286. // 兼容旧版本 globalData
  2287. appOptions.globalData = vm.$options.globalData || {};
  2288. // 将 methods 中的方法挂在 getApp() 中
  2289. var methods = vm.$options.methods;
  2290. if (methods) {
  2291. Object.keys(methods).forEach(function (name) {
  2292. appOptions[name] = methods[name];
  2293. });
  2294. }
  2295. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2296. initHooks(appOptions, hooks);
  2297. initUnknownHooks(appOptions, vm.$options);
  2298. return appOptions;
  2299. }
  2300. function parseApp(vm) {
  2301. return parseBaseApp(vm, {
  2302. mocks: mocks,
  2303. initRefs: initRefs
  2304. });
  2305. }
  2306. function createApp(vm) {
  2307. App(parseApp(vm));
  2308. return vm;
  2309. }
  2310. var encodeReserveRE = /[!'()*]/g;
  2311. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2312. return '%' + c.charCodeAt(0).toString(16);
  2313. };
  2314. var commaRE = /%2C/g;
  2315. // fixed encodeURIComponent which is more conformant to RFC3986:
  2316. // - escapes [!'()*]
  2317. // - preserve commas
  2318. var encode = function encode(str) {
  2319. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2320. };
  2321. function stringifyQuery(obj) {
  2322. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2323. var res = obj ? Object.keys(obj).map(function (key) {
  2324. var val = obj[key];
  2325. if (val === undefined) {
  2326. return '';
  2327. }
  2328. if (val === null) {
  2329. return encodeStr(key);
  2330. }
  2331. if (Array.isArray(val)) {
  2332. var result = [];
  2333. val.forEach(function (val2) {
  2334. if (val2 === undefined) {
  2335. return;
  2336. }
  2337. if (val2 === null) {
  2338. result.push(encodeStr(key));
  2339. } else {
  2340. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2341. }
  2342. });
  2343. return result.join('&');
  2344. }
  2345. return encodeStr(key) + '=' + encodeStr(val);
  2346. }).filter(function (x) {
  2347. return x.length > 0;
  2348. }).join('&') : null;
  2349. return res ? "?".concat(res) : '';
  2350. }
  2351. function parseBaseComponent(vueComponentOptions) {
  2352. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2353. isPage = _ref5.isPage,
  2354. initRelation = _ref5.initRelation;
  2355. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2356. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2357. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2358. VueComponent = _initVueComponent2[0],
  2359. vueOptions = _initVueComponent2[1];
  2360. var options = _objectSpread({
  2361. multipleSlots: true,
  2362. // styleIsolation: 'apply-shared',
  2363. addGlobalClass: true
  2364. }, vueOptions.options || {});
  2365. {
  2366. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2367. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2368. Object.assign(options, vueOptions['mp-weixin'].options);
  2369. }
  2370. }
  2371. var componentOptions = {
  2372. options: options,
  2373. data: initData(vueOptions, _vue.default.prototype),
  2374. behaviors: initBehaviors(vueOptions, initBehavior),
  2375. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2376. lifetimes: {
  2377. attached: function attached() {
  2378. var properties = this.properties;
  2379. var options = {
  2380. mpType: isPage.call(this) ? 'page' : 'component',
  2381. mpInstance: this,
  2382. propsData: properties
  2383. };
  2384. initVueIds(properties.vueId, this);
  2385. // 处理父子关系
  2386. initRelation.call(this, {
  2387. vuePid: this._$vuePid,
  2388. vueOptions: options
  2389. });
  2390. // 初始化 vue 实例
  2391. this.$vm = new VueComponent(options);
  2392. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2393. initSlots(this.$vm, properties.vueSlots);
  2394. // 触发首次 setData
  2395. this.$vm.$mount();
  2396. },
  2397. ready: function ready() {
  2398. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2399. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2400. if (this.$vm) {
  2401. this.$vm._isMounted = true;
  2402. this.$vm.__call_hook('mounted');
  2403. this.$vm.__call_hook('onReady');
  2404. }
  2405. },
  2406. detached: function detached() {
  2407. this.$vm && this.$vm.$destroy();
  2408. }
  2409. },
  2410. pageLifetimes: {
  2411. show: function show(args) {
  2412. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2413. },
  2414. hide: function hide() {
  2415. this.$vm && this.$vm.__call_hook('onPageHide');
  2416. },
  2417. resize: function resize(size) {
  2418. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2419. }
  2420. },
  2421. methods: {
  2422. __l: handleLink,
  2423. __e: handleEvent
  2424. }
  2425. };
  2426. // externalClasses
  2427. if (vueOptions.externalClasses) {
  2428. componentOptions.externalClasses = vueOptions.externalClasses;
  2429. }
  2430. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2431. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2432. componentOptions.methods[callMethod] = function (args) {
  2433. return this.$vm[callMethod](args);
  2434. };
  2435. });
  2436. }
  2437. if (needVueOptions) {
  2438. return [componentOptions, vueOptions, VueComponent];
  2439. }
  2440. if (isPage) {
  2441. return componentOptions;
  2442. }
  2443. return [componentOptions, VueComponent];
  2444. }
  2445. function parseComponent(vueComponentOptions, needVueOptions) {
  2446. return parseBaseComponent(vueComponentOptions, {
  2447. isPage: isPage,
  2448. initRelation: initRelation
  2449. }, needVueOptions);
  2450. }
  2451. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2452. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2453. function parseBasePage(vuePageOptions) {
  2454. var _parseComponent = parseComponent(vuePageOptions, true),
  2455. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2456. pageOptions = _parseComponent2[0],
  2457. vueOptions = _parseComponent2[1];
  2458. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2459. pageOptions.methods.onLoad = function (query) {
  2460. this.options = query;
  2461. var copyQuery = Object.assign({}, query);
  2462. delete copyQuery.__id__;
  2463. this.$page = {
  2464. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2465. };
  2466. this.$vm.$mp.query = query; // 兼容 mpvue
  2467. this.$vm.__call_hook('onLoad', query);
  2468. };
  2469. {
  2470. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2471. }
  2472. {
  2473. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2474. }
  2475. return pageOptions;
  2476. }
  2477. function parsePage(vuePageOptions) {
  2478. return parseBasePage(vuePageOptions);
  2479. }
  2480. function createPage(vuePageOptions) {
  2481. {
  2482. return Component(parsePage(vuePageOptions));
  2483. }
  2484. }
  2485. function createComponent(vueOptions) {
  2486. {
  2487. return Component(parseComponent(vueOptions));
  2488. }
  2489. }
  2490. function createSubpackageApp(vm) {
  2491. var appOptions = parseApp(vm);
  2492. var app = getApp({
  2493. allowDefault: true
  2494. });
  2495. vm.$scope = app;
  2496. var globalData = app.globalData;
  2497. if (globalData) {
  2498. Object.keys(appOptions.globalData).forEach(function (name) {
  2499. if (!hasOwn(globalData, name)) {
  2500. globalData[name] = appOptions.globalData[name];
  2501. }
  2502. });
  2503. }
  2504. Object.keys(appOptions).forEach(function (name) {
  2505. if (!hasOwn(app, name)) {
  2506. app[name] = appOptions[name];
  2507. }
  2508. });
  2509. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2510. wx.onAppShow(function () {
  2511. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2512. args[_key5] = arguments[_key5];
  2513. }
  2514. vm.__call_hook('onShow', args);
  2515. });
  2516. }
  2517. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2518. wx.onAppHide(function () {
  2519. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2520. args[_key6] = arguments[_key6];
  2521. }
  2522. vm.__call_hook('onHide', args);
  2523. });
  2524. }
  2525. if (isFn(appOptions.onLaunch)) {
  2526. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2527. vm.__call_hook('onLaunch', args);
  2528. }
  2529. return vm;
  2530. }
  2531. function createPlugin(vm) {
  2532. var appOptions = parseApp(vm);
  2533. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2534. wx.onAppShow(function () {
  2535. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2536. args[_key7] = arguments[_key7];
  2537. }
  2538. vm.__call_hook('onShow', args);
  2539. });
  2540. }
  2541. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2542. wx.onAppHide(function () {
  2543. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2544. args[_key8] = arguments[_key8];
  2545. }
  2546. vm.__call_hook('onHide', args);
  2547. });
  2548. }
  2549. if (isFn(appOptions.onLaunch)) {
  2550. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2551. vm.__call_hook('onLaunch', args);
  2552. }
  2553. return vm;
  2554. }
  2555. todos.forEach(function (todoApi) {
  2556. protocols[todoApi] = false;
  2557. });
  2558. canIUses.forEach(function (canIUseApi) {
  2559. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2560. if (!wx.canIUse(apiName)) {
  2561. protocols[canIUseApi] = false;
  2562. }
  2563. });
  2564. var uni = {};
  2565. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2566. uni = new Proxy({}, {
  2567. get: function get(target, name) {
  2568. if (hasOwn(target, name)) {
  2569. return target[name];
  2570. }
  2571. if (baseApi[name]) {
  2572. return baseApi[name];
  2573. }
  2574. if (api[name]) {
  2575. return promisify(name, api[name]);
  2576. }
  2577. {
  2578. if (extraApi[name]) {
  2579. return promisify(name, extraApi[name]);
  2580. }
  2581. if (todoApis[name]) {
  2582. return promisify(name, todoApis[name]);
  2583. }
  2584. }
  2585. if (eventApi[name]) {
  2586. return eventApi[name];
  2587. }
  2588. return promisify(name, wrapper(name, wx[name]));
  2589. },
  2590. set: function set(target, name, value) {
  2591. target[name] = value;
  2592. return true;
  2593. }
  2594. });
  2595. } else {
  2596. Object.keys(baseApi).forEach(function (name) {
  2597. uni[name] = baseApi[name];
  2598. });
  2599. {
  2600. Object.keys(todoApis).forEach(function (name) {
  2601. uni[name] = promisify(name, todoApis[name]);
  2602. });
  2603. Object.keys(extraApi).forEach(function (name) {
  2604. uni[name] = promisify(name, extraApi[name]);
  2605. });
  2606. }
  2607. Object.keys(eventApi).forEach(function (name) {
  2608. uni[name] = eventApi[name];
  2609. });
  2610. Object.keys(api).forEach(function (name) {
  2611. uni[name] = promisify(name, api[name]);
  2612. });
  2613. Object.keys(wx).forEach(function (name) {
  2614. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2615. uni[name] = promisify(name, wrapper(name, wx[name]));
  2616. }
  2617. });
  2618. }
  2619. wx.createApp = createApp;
  2620. wx.createPage = createPage;
  2621. wx.createComponent = createComponent;
  2622. wx.createSubpackageApp = createSubpackageApp;
  2623. wx.createPlugin = createPlugin;
  2624. var uni$1 = uni;
  2625. var _default = uni$1;
  2626. exports.default = _default;
  2627. /* 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)))
  2628. /***/ }),
  2629. /***/ 20:
  2630. /*!****************************************************************!*\
  2631. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2632. \****************************************************************/
  2633. /*! no static exports found */
  2634. /***/ (function(module, exports) {
  2635. function _iterableToArray(iter) {
  2636. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2637. }
  2638. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2639. /***/ }),
  2640. /***/ 21:
  2641. /*!******************************************************************!*\
  2642. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2643. \******************************************************************/
  2644. /*! no static exports found */
  2645. /***/ (function(module, exports) {
  2646. function _nonIterableSpread() {
  2647. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2648. }
  2649. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2650. /***/ }),
  2651. /***/ 22:
  2652. /*!*************************************************************!*\
  2653. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2654. \*************************************************************/
  2655. /*! no static exports found */
  2656. /***/ (function(module, exports, __webpack_require__) {
  2657. "use strict";
  2658. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2659. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2660. Object.defineProperty(exports, "__esModule", {
  2661. value: true
  2662. });
  2663. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2664. exports.compileI18nJsonStr = compileI18nJsonStr;
  2665. exports.hasI18nJson = hasI18nJson;
  2666. exports.initVueI18n = initVueI18n;
  2667. exports.isI18nStr = isI18nStr;
  2668. exports.isString = void 0;
  2669. exports.normalizeLocale = normalizeLocale;
  2670. exports.parseI18nJson = parseI18nJson;
  2671. exports.resolveLocale = resolveLocale;
  2672. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2673. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2674. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2675. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2676. var isObject = function isObject(val) {
  2677. return val !== null && (0, _typeof2.default)(val) === 'object';
  2678. };
  2679. var defaultDelimiters = ['{', '}'];
  2680. var BaseFormatter = /*#__PURE__*/function () {
  2681. function BaseFormatter() {
  2682. (0, _classCallCheck2.default)(this, BaseFormatter);
  2683. this._caches = Object.create(null);
  2684. }
  2685. (0, _createClass2.default)(BaseFormatter, [{
  2686. key: "interpolate",
  2687. value: function interpolate(message, values) {
  2688. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2689. if (!values) {
  2690. return [message];
  2691. }
  2692. var tokens = this._caches[message];
  2693. if (!tokens) {
  2694. tokens = parse(message, delimiters);
  2695. this._caches[message] = tokens;
  2696. }
  2697. return compile(tokens, values);
  2698. }
  2699. }]);
  2700. return BaseFormatter;
  2701. }();
  2702. exports.Formatter = BaseFormatter;
  2703. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2704. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2705. function parse(format, _ref) {
  2706. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2707. startDelimiter = _ref2[0],
  2708. endDelimiter = _ref2[1];
  2709. var tokens = [];
  2710. var position = 0;
  2711. var text = '';
  2712. while (position < format.length) {
  2713. var char = format[position++];
  2714. if (char === startDelimiter) {
  2715. if (text) {
  2716. tokens.push({
  2717. type: 'text',
  2718. value: text
  2719. });
  2720. }
  2721. text = '';
  2722. var sub = '';
  2723. char = format[position++];
  2724. while (char !== undefined && char !== endDelimiter) {
  2725. sub += char;
  2726. char = format[position++];
  2727. }
  2728. var isClosed = char === endDelimiter;
  2729. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2730. tokens.push({
  2731. value: sub,
  2732. type: type
  2733. });
  2734. }
  2735. // else if (char === '%') {
  2736. // // when found rails i18n syntax, skip text capture
  2737. // if (format[position] !== '{') {
  2738. // text += char
  2739. // }
  2740. // }
  2741. else {
  2742. text += char;
  2743. }
  2744. }
  2745. text && tokens.push({
  2746. type: 'text',
  2747. value: text
  2748. });
  2749. return tokens;
  2750. }
  2751. function compile(tokens, values) {
  2752. var compiled = [];
  2753. var index = 0;
  2754. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2755. if (mode === 'unknown') {
  2756. return compiled;
  2757. }
  2758. while (index < tokens.length) {
  2759. var token = tokens[index];
  2760. switch (token.type) {
  2761. case 'text':
  2762. compiled.push(token.value);
  2763. break;
  2764. case 'list':
  2765. compiled.push(values[parseInt(token.value, 10)]);
  2766. break;
  2767. case 'named':
  2768. if (mode === 'named') {
  2769. compiled.push(values[token.value]);
  2770. } else {
  2771. if (true) {
  2772. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2773. }
  2774. }
  2775. break;
  2776. case 'unknown':
  2777. if (true) {
  2778. console.warn("Detect 'unknown' type of token!");
  2779. }
  2780. break;
  2781. }
  2782. index++;
  2783. }
  2784. return compiled;
  2785. }
  2786. var LOCALE_ZH_HANS = 'zh-Hans';
  2787. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2788. var LOCALE_ZH_HANT = 'zh-Hant';
  2789. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2790. var LOCALE_EN = 'en';
  2791. exports.LOCALE_EN = LOCALE_EN;
  2792. var LOCALE_FR = 'fr';
  2793. exports.LOCALE_FR = LOCALE_FR;
  2794. var LOCALE_ES = 'es';
  2795. exports.LOCALE_ES = LOCALE_ES;
  2796. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2797. var hasOwn = function hasOwn(val, key) {
  2798. return hasOwnProperty.call(val, key);
  2799. };
  2800. var defaultFormatter = new BaseFormatter();
  2801. function include(str, parts) {
  2802. return !!parts.find(function (part) {
  2803. return str.indexOf(part) !== -1;
  2804. });
  2805. }
  2806. function startsWith(str, parts) {
  2807. return parts.find(function (part) {
  2808. return str.indexOf(part) === 0;
  2809. });
  2810. }
  2811. function normalizeLocale(locale, messages) {
  2812. if (!locale) {
  2813. return;
  2814. }
  2815. locale = locale.trim().replace(/_/g, '-');
  2816. if (messages && messages[locale]) {
  2817. return locale;
  2818. }
  2819. locale = locale.toLowerCase();
  2820. if (locale === 'chinese') {
  2821. // 支付宝
  2822. return LOCALE_ZH_HANS;
  2823. }
  2824. if (locale.indexOf('zh') === 0) {
  2825. if (locale.indexOf('-hans') > -1) {
  2826. return LOCALE_ZH_HANS;
  2827. }
  2828. if (locale.indexOf('-hant') > -1) {
  2829. return LOCALE_ZH_HANT;
  2830. }
  2831. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2832. return LOCALE_ZH_HANT;
  2833. }
  2834. return LOCALE_ZH_HANS;
  2835. }
  2836. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2837. if (messages && Object.keys(messages).length > 0) {
  2838. locales = Object.keys(messages);
  2839. }
  2840. var lang = startsWith(locale, locales);
  2841. if (lang) {
  2842. return lang;
  2843. }
  2844. }
  2845. var I18n = /*#__PURE__*/function () {
  2846. function I18n(_ref3) {
  2847. var locale = _ref3.locale,
  2848. fallbackLocale = _ref3.fallbackLocale,
  2849. messages = _ref3.messages,
  2850. watcher = _ref3.watcher,
  2851. formater = _ref3.formater;
  2852. (0, _classCallCheck2.default)(this, I18n);
  2853. this.locale = LOCALE_EN;
  2854. this.fallbackLocale = LOCALE_EN;
  2855. this.message = {};
  2856. this.messages = {};
  2857. this.watchers = [];
  2858. if (fallbackLocale) {
  2859. this.fallbackLocale = fallbackLocale;
  2860. }
  2861. this.formater = formater || defaultFormatter;
  2862. this.messages = messages || {};
  2863. this.setLocale(locale || LOCALE_EN);
  2864. if (watcher) {
  2865. this.watchLocale(watcher);
  2866. }
  2867. }
  2868. (0, _createClass2.default)(I18n, [{
  2869. key: "setLocale",
  2870. value: function setLocale(locale) {
  2871. var _this = this;
  2872. var oldLocale = this.locale;
  2873. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2874. if (!this.messages[this.locale]) {
  2875. // 可能初始化时不存在
  2876. this.messages[this.locale] = {};
  2877. }
  2878. this.message = this.messages[this.locale];
  2879. // 仅发生变化时,通知
  2880. if (oldLocale !== this.locale) {
  2881. this.watchers.forEach(function (watcher) {
  2882. watcher(_this.locale, oldLocale);
  2883. });
  2884. }
  2885. }
  2886. }, {
  2887. key: "getLocale",
  2888. value: function getLocale() {
  2889. return this.locale;
  2890. }
  2891. }, {
  2892. key: "watchLocale",
  2893. value: function watchLocale(fn) {
  2894. var _this2 = this;
  2895. var index = this.watchers.push(fn) - 1;
  2896. return function () {
  2897. _this2.watchers.splice(index, 1);
  2898. };
  2899. }
  2900. }, {
  2901. key: "add",
  2902. value: function add(locale, message) {
  2903. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2904. var curMessages = this.messages[locale];
  2905. if (curMessages) {
  2906. if (override) {
  2907. Object.assign(curMessages, message);
  2908. } else {
  2909. Object.keys(message).forEach(function (key) {
  2910. if (!hasOwn(curMessages, key)) {
  2911. curMessages[key] = message[key];
  2912. }
  2913. });
  2914. }
  2915. } else {
  2916. this.messages[locale] = message;
  2917. }
  2918. }
  2919. }, {
  2920. key: "f",
  2921. value: function f(message, values, delimiters) {
  2922. return this.formater.interpolate(message, values, delimiters).join('');
  2923. }
  2924. }, {
  2925. key: "t",
  2926. value: function t(key, locale, values) {
  2927. var message = this.message;
  2928. if (typeof locale === 'string') {
  2929. locale = normalizeLocale(locale, this.messages);
  2930. locale && (message = this.messages[locale]);
  2931. } else {
  2932. values = locale;
  2933. }
  2934. if (!hasOwn(message, key)) {
  2935. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2936. return key;
  2937. }
  2938. return this.formater.interpolate(message[key], values).join('');
  2939. }
  2940. }]);
  2941. return I18n;
  2942. }();
  2943. exports.I18n = I18n;
  2944. function watchAppLocale(appVm, i18n) {
  2945. // 需要保证 watch 的触发在组件渲染之前
  2946. if (appVm.$watchLocale) {
  2947. // vue2
  2948. appVm.$watchLocale(function (newLocale) {
  2949. i18n.setLocale(newLocale);
  2950. });
  2951. } else {
  2952. appVm.$watch(function () {
  2953. return appVm.$locale;
  2954. }, function (newLocale) {
  2955. i18n.setLocale(newLocale);
  2956. });
  2957. }
  2958. }
  2959. function getDefaultLocale() {
  2960. if (typeof uni !== 'undefined' && uni.getLocale) {
  2961. return uni.getLocale();
  2962. }
  2963. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  2964. if (typeof global !== 'undefined' && global.getLocale) {
  2965. return global.getLocale();
  2966. }
  2967. return LOCALE_EN;
  2968. }
  2969. function initVueI18n(locale) {
  2970. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2971. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  2972. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  2973. // 兼容旧版本入参
  2974. if (typeof locale !== 'string') {
  2975. var _ref4 = [messages, locale];
  2976. locale = _ref4[0];
  2977. messages = _ref4[1];
  2978. }
  2979. if (typeof locale !== 'string') {
  2980. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  2981. locale = getDefaultLocale();
  2982. }
  2983. if (typeof fallbackLocale !== 'string') {
  2984. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  2985. }
  2986. var i18n = new I18n({
  2987. locale: locale,
  2988. fallbackLocale: fallbackLocale,
  2989. messages: messages,
  2990. watcher: watcher
  2991. });
  2992. var _t = function t(key, values) {
  2993. if (typeof getApp !== 'function') {
  2994. // app view
  2995. /* eslint-disable no-func-assign */
  2996. _t = function t(key, values) {
  2997. return i18n.t(key, values);
  2998. };
  2999. } else {
  3000. var isWatchedAppLocale = false;
  3001. _t = function t(key, values) {
  3002. var appVm = getApp().$vm;
  3003. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3004. // options: {
  3005. // type: Array,
  3006. // default () {
  3007. // return [{
  3008. // icon: 'shop',
  3009. // text: t("uni-goods-nav.options.shop"),
  3010. // }, {
  3011. // icon: 'cart',
  3012. // text: t("uni-goods-nav.options.cart")
  3013. // }]
  3014. // }
  3015. // },
  3016. if (appVm) {
  3017. // 触发响应式
  3018. appVm.$locale;
  3019. if (!isWatchedAppLocale) {
  3020. isWatchedAppLocale = true;
  3021. watchAppLocale(appVm, i18n);
  3022. }
  3023. }
  3024. return i18n.t(key, values);
  3025. };
  3026. }
  3027. return _t(key, values);
  3028. };
  3029. return {
  3030. i18n: i18n,
  3031. f: function f(message, values, delimiters) {
  3032. return i18n.f(message, values, delimiters);
  3033. },
  3034. t: function t(key, values) {
  3035. return _t(key, values);
  3036. },
  3037. add: function add(locale, message) {
  3038. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3039. return i18n.add(locale, message, override);
  3040. },
  3041. watch: function watch(fn) {
  3042. return i18n.watchLocale(fn);
  3043. },
  3044. getLocale: function getLocale() {
  3045. return i18n.getLocale();
  3046. },
  3047. setLocale: function setLocale(newLocale) {
  3048. return i18n.setLocale(newLocale);
  3049. }
  3050. };
  3051. }
  3052. var isString = function isString(val) {
  3053. return typeof val === 'string';
  3054. };
  3055. exports.isString = isString;
  3056. var formater;
  3057. function hasI18nJson(jsonObj, delimiters) {
  3058. if (!formater) {
  3059. formater = new BaseFormatter();
  3060. }
  3061. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3062. var value = jsonObj[key];
  3063. if (isString(value)) {
  3064. if (isI18nStr(value, delimiters)) {
  3065. return true;
  3066. }
  3067. } else {
  3068. return hasI18nJson(value, delimiters);
  3069. }
  3070. });
  3071. }
  3072. function parseI18nJson(jsonObj, values, delimiters) {
  3073. if (!formater) {
  3074. formater = new BaseFormatter();
  3075. }
  3076. walkJsonObj(jsonObj, function (jsonObj, key) {
  3077. var value = jsonObj[key];
  3078. if (isString(value)) {
  3079. if (isI18nStr(value, delimiters)) {
  3080. jsonObj[key] = compileStr(value, values, delimiters);
  3081. }
  3082. } else {
  3083. parseI18nJson(value, values, delimiters);
  3084. }
  3085. });
  3086. return jsonObj;
  3087. }
  3088. function compileI18nJsonStr(jsonStr, _ref5) {
  3089. var locale = _ref5.locale,
  3090. locales = _ref5.locales,
  3091. delimiters = _ref5.delimiters;
  3092. if (!isI18nStr(jsonStr, delimiters)) {
  3093. return jsonStr;
  3094. }
  3095. if (!formater) {
  3096. formater = new BaseFormatter();
  3097. }
  3098. var localeValues = [];
  3099. Object.keys(locales).forEach(function (name) {
  3100. if (name !== locale) {
  3101. localeValues.push({
  3102. locale: name,
  3103. values: locales[name]
  3104. });
  3105. }
  3106. });
  3107. localeValues.unshift({
  3108. locale: locale,
  3109. values: locales[locale]
  3110. });
  3111. try {
  3112. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3113. } catch (e) {}
  3114. return jsonStr;
  3115. }
  3116. function isI18nStr(value, delimiters) {
  3117. return value.indexOf(delimiters[0]) > -1;
  3118. }
  3119. function compileStr(value, values, delimiters) {
  3120. return formater.interpolate(value, values, delimiters).join('');
  3121. }
  3122. function compileValue(jsonObj, key, localeValues, delimiters) {
  3123. var value = jsonObj[key];
  3124. if (isString(value)) {
  3125. // 存在国际化
  3126. if (isI18nStr(value, delimiters)) {
  3127. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3128. if (localeValues.length > 1) {
  3129. // 格式化国际化语言
  3130. var valueLocales = jsonObj[key + 'Locales'] = {};
  3131. localeValues.forEach(function (localValue) {
  3132. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3133. });
  3134. }
  3135. }
  3136. } else {
  3137. compileJsonObj(value, localeValues, delimiters);
  3138. }
  3139. }
  3140. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3141. walkJsonObj(jsonObj, function (jsonObj, key) {
  3142. compileValue(jsonObj, key, localeValues, delimiters);
  3143. });
  3144. return jsonObj;
  3145. }
  3146. function walkJsonObj(jsonObj, walk) {
  3147. if (Array.isArray(jsonObj)) {
  3148. for (var i = 0; i < jsonObj.length; i++) {
  3149. if (walk(jsonObj, i)) {
  3150. return true;
  3151. }
  3152. }
  3153. } else if (isObject(jsonObj)) {
  3154. for (var key in jsonObj) {
  3155. if (walk(jsonObj, key)) {
  3156. return true;
  3157. }
  3158. }
  3159. }
  3160. return false;
  3161. }
  3162. function resolveLocale(locales) {
  3163. return function (locale) {
  3164. if (!locale) {
  3165. return locale;
  3166. }
  3167. locale = normalizeLocale(locale) || locale;
  3168. return resolveLocaleChain(locale).find(function (locale) {
  3169. return locales.indexOf(locale) > -1;
  3170. });
  3171. };
  3172. }
  3173. function resolveLocaleChain(locale) {
  3174. var chain = [];
  3175. var tokens = locale.split('-');
  3176. while (tokens.length) {
  3177. chain.push(tokens.join('-'));
  3178. tokens.pop();
  3179. }
  3180. return chain;
  3181. }
  3182. /* 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)))
  3183. /***/ }),
  3184. /***/ 23:
  3185. /*!***************************************************************!*\
  3186. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3187. \***************************************************************/
  3188. /*! no static exports found */
  3189. /***/ (function(module, exports) {
  3190. function _classCallCheck(instance, Constructor) {
  3191. if (!(instance instanceof Constructor)) {
  3192. throw new TypeError("Cannot call a class as a function");
  3193. }
  3194. }
  3195. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3196. /***/ }),
  3197. /***/ 24:
  3198. /*!************************************************************!*\
  3199. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3200. \************************************************************/
  3201. /*! no static exports found */
  3202. /***/ (function(module, exports, __webpack_require__) {
  3203. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3204. function _defineProperties(target, props) {
  3205. for (var i = 0; i < props.length; i++) {
  3206. var descriptor = props[i];
  3207. descriptor.enumerable = descriptor.enumerable || false;
  3208. descriptor.configurable = true;
  3209. if ("value" in descriptor) descriptor.writable = true;
  3210. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3211. }
  3212. }
  3213. function _createClass(Constructor, protoProps, staticProps) {
  3214. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3215. if (staticProps) _defineProperties(Constructor, staticProps);
  3216. Object.defineProperty(Constructor, "prototype", {
  3217. writable: false
  3218. });
  3219. return Constructor;
  3220. }
  3221. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3222. /***/ }),
  3223. /***/ 25:
  3224. /*!******************************************************************************************!*\
  3225. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3226. \******************************************************************************************/
  3227. /*! exports provided: default */
  3228. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3229. "use strict";
  3230. __webpack_require__.r(__webpack_exports__);
  3231. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3232. * Vue.js v2.6.11
  3233. * (c) 2014-2023 Evan You
  3234. * Released under the MIT License.
  3235. */
  3236. /* */
  3237. var emptyObject = Object.freeze({});
  3238. // These helpers produce better VM code in JS engines due to their
  3239. // explicitness and function inlining.
  3240. function isUndef (v) {
  3241. return v === undefined || v === null
  3242. }
  3243. function isDef (v) {
  3244. return v !== undefined && v !== null
  3245. }
  3246. function isTrue (v) {
  3247. return v === true
  3248. }
  3249. function isFalse (v) {
  3250. return v === false
  3251. }
  3252. /**
  3253. * Check if value is primitive.
  3254. */
  3255. function isPrimitive (value) {
  3256. return (
  3257. typeof value === 'string' ||
  3258. typeof value === 'number' ||
  3259. // $flow-disable-line
  3260. typeof value === 'symbol' ||
  3261. typeof value === 'boolean'
  3262. )
  3263. }
  3264. /**
  3265. * Quick object check - this is primarily used to tell
  3266. * Objects from primitive values when we know the value
  3267. * is a JSON-compliant type.
  3268. */
  3269. function isObject (obj) {
  3270. return obj !== null && typeof obj === 'object'
  3271. }
  3272. /**
  3273. * Get the raw type string of a value, e.g., [object Object].
  3274. */
  3275. var _toString = Object.prototype.toString;
  3276. function toRawType (value) {
  3277. return _toString.call(value).slice(8, -1)
  3278. }
  3279. /**
  3280. * Strict object type check. Only returns true
  3281. * for plain JavaScript objects.
  3282. */
  3283. function isPlainObject (obj) {
  3284. return _toString.call(obj) === '[object Object]'
  3285. }
  3286. function isRegExp (v) {
  3287. return _toString.call(v) === '[object RegExp]'
  3288. }
  3289. /**
  3290. * Check if val is a valid array index.
  3291. */
  3292. function isValidArrayIndex (val) {
  3293. var n = parseFloat(String(val));
  3294. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3295. }
  3296. function isPromise (val) {
  3297. return (
  3298. isDef(val) &&
  3299. typeof val.then === 'function' &&
  3300. typeof val.catch === 'function'
  3301. )
  3302. }
  3303. /**
  3304. * Convert a value to a string that is actually rendered.
  3305. */
  3306. function toString (val) {
  3307. return val == null
  3308. ? ''
  3309. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3310. ? JSON.stringify(val, null, 2)
  3311. : String(val)
  3312. }
  3313. /**
  3314. * Convert an input value to a number for persistence.
  3315. * If the conversion fails, return original string.
  3316. */
  3317. function toNumber (val) {
  3318. var n = parseFloat(val);
  3319. return isNaN(n) ? val : n
  3320. }
  3321. /**
  3322. * Make a map and return a function for checking if a key
  3323. * is in that map.
  3324. */
  3325. function makeMap (
  3326. str,
  3327. expectsLowerCase
  3328. ) {
  3329. var map = Object.create(null);
  3330. var list = str.split(',');
  3331. for (var i = 0; i < list.length; i++) {
  3332. map[list[i]] = true;
  3333. }
  3334. return expectsLowerCase
  3335. ? function (val) { return map[val.toLowerCase()]; }
  3336. : function (val) { return map[val]; }
  3337. }
  3338. /**
  3339. * Check if a tag is a built-in tag.
  3340. */
  3341. var isBuiltInTag = makeMap('slot,component', true);
  3342. /**
  3343. * Check if an attribute is a reserved attribute.
  3344. */
  3345. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3346. /**
  3347. * Remove an item from an array.
  3348. */
  3349. function remove (arr, item) {
  3350. if (arr.length) {
  3351. var index = arr.indexOf(item);
  3352. if (index > -1) {
  3353. return arr.splice(index, 1)
  3354. }
  3355. }
  3356. }
  3357. /**
  3358. * Check whether an object has the property.
  3359. */
  3360. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3361. function hasOwn (obj, key) {
  3362. return hasOwnProperty.call(obj, key)
  3363. }
  3364. /**
  3365. * Create a cached version of a pure function.
  3366. */
  3367. function cached (fn) {
  3368. var cache = Object.create(null);
  3369. return (function cachedFn (str) {
  3370. var hit = cache[str];
  3371. return hit || (cache[str] = fn(str))
  3372. })
  3373. }
  3374. /**
  3375. * Camelize a hyphen-delimited string.
  3376. */
  3377. var camelizeRE = /-(\w)/g;
  3378. var camelize = cached(function (str) {
  3379. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3380. });
  3381. /**
  3382. * Capitalize a string.
  3383. */
  3384. var capitalize = cached(function (str) {
  3385. return str.charAt(0).toUpperCase() + str.slice(1)
  3386. });
  3387. /**
  3388. * Hyphenate a camelCase string.
  3389. */
  3390. var hyphenateRE = /\B([A-Z])/g;
  3391. var hyphenate = cached(function (str) {
  3392. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3393. });
  3394. /**
  3395. * Simple bind polyfill for environments that do not support it,
  3396. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3397. * since native bind is now performant enough in most browsers.
  3398. * But removing it would mean breaking code that was able to run in
  3399. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3400. */
  3401. /* istanbul ignore next */
  3402. function polyfillBind (fn, ctx) {
  3403. function boundFn (a) {
  3404. var l = arguments.length;
  3405. return l
  3406. ? l > 1
  3407. ? fn.apply(ctx, arguments)
  3408. : fn.call(ctx, a)
  3409. : fn.call(ctx)
  3410. }
  3411. boundFn._length = fn.length;
  3412. return boundFn
  3413. }
  3414. function nativeBind (fn, ctx) {
  3415. return fn.bind(ctx)
  3416. }
  3417. var bind = Function.prototype.bind
  3418. ? nativeBind
  3419. : polyfillBind;
  3420. /**
  3421. * Convert an Array-like object to a real Array.
  3422. */
  3423. function toArray (list, start) {
  3424. start = start || 0;
  3425. var i = list.length - start;
  3426. var ret = new Array(i);
  3427. while (i--) {
  3428. ret[i] = list[i + start];
  3429. }
  3430. return ret
  3431. }
  3432. /**
  3433. * Mix properties into target object.
  3434. */
  3435. function extend (to, _from) {
  3436. for (var key in _from) {
  3437. to[key] = _from[key];
  3438. }
  3439. return to
  3440. }
  3441. /**
  3442. * Merge an Array of Objects into a single Object.
  3443. */
  3444. function toObject (arr) {
  3445. var res = {};
  3446. for (var i = 0; i < arr.length; i++) {
  3447. if (arr[i]) {
  3448. extend(res, arr[i]);
  3449. }
  3450. }
  3451. return res
  3452. }
  3453. /* eslint-disable no-unused-vars */
  3454. /**
  3455. * Perform no operation.
  3456. * Stubbing args to make Flow happy without leaving useless transpiled code
  3457. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3458. */
  3459. function noop (a, b, c) {}
  3460. /**
  3461. * Always return false.
  3462. */
  3463. var no = function (a, b, c) { return false; };
  3464. /* eslint-enable no-unused-vars */
  3465. /**
  3466. * Return the same value.
  3467. */
  3468. var identity = function (_) { return _; };
  3469. /**
  3470. * Check if two values are loosely equal - that is,
  3471. * if they are plain objects, do they have the same shape?
  3472. */
  3473. function looseEqual (a, b) {
  3474. if (a === b) { return true }
  3475. var isObjectA = isObject(a);
  3476. var isObjectB = isObject(b);
  3477. if (isObjectA && isObjectB) {
  3478. try {
  3479. var isArrayA = Array.isArray(a);
  3480. var isArrayB = Array.isArray(b);
  3481. if (isArrayA && isArrayB) {
  3482. return a.length === b.length && a.every(function (e, i) {
  3483. return looseEqual(e, b[i])
  3484. })
  3485. } else if (a instanceof Date && b instanceof Date) {
  3486. return a.getTime() === b.getTime()
  3487. } else if (!isArrayA && !isArrayB) {
  3488. var keysA = Object.keys(a);
  3489. var keysB = Object.keys(b);
  3490. return keysA.length === keysB.length && keysA.every(function (key) {
  3491. return looseEqual(a[key], b[key])
  3492. })
  3493. } else {
  3494. /* istanbul ignore next */
  3495. return false
  3496. }
  3497. } catch (e) {
  3498. /* istanbul ignore next */
  3499. return false
  3500. }
  3501. } else if (!isObjectA && !isObjectB) {
  3502. return String(a) === String(b)
  3503. } else {
  3504. return false
  3505. }
  3506. }
  3507. /**
  3508. * Return the first index at which a loosely equal value can be
  3509. * found in the array (if value is a plain object, the array must
  3510. * contain an object of the same shape), or -1 if it is not present.
  3511. */
  3512. function looseIndexOf (arr, val) {
  3513. for (var i = 0; i < arr.length; i++) {
  3514. if (looseEqual(arr[i], val)) { return i }
  3515. }
  3516. return -1
  3517. }
  3518. /**
  3519. * Ensure a function is called only once.
  3520. */
  3521. function once (fn) {
  3522. var called = false;
  3523. return function () {
  3524. if (!called) {
  3525. called = true;
  3526. fn.apply(this, arguments);
  3527. }
  3528. }
  3529. }
  3530. var ASSET_TYPES = [
  3531. 'component',
  3532. 'directive',
  3533. 'filter'
  3534. ];
  3535. var LIFECYCLE_HOOKS = [
  3536. 'beforeCreate',
  3537. 'created',
  3538. 'beforeMount',
  3539. 'mounted',
  3540. 'beforeUpdate',
  3541. 'updated',
  3542. 'beforeDestroy',
  3543. 'destroyed',
  3544. 'activated',
  3545. 'deactivated',
  3546. 'errorCaptured',
  3547. 'serverPrefetch'
  3548. ];
  3549. /* */
  3550. var config = ({
  3551. /**
  3552. * Option merge strategies (used in core/util/options)
  3553. */
  3554. // $flow-disable-line
  3555. optionMergeStrategies: Object.create(null),
  3556. /**
  3557. * Whether to suppress warnings.
  3558. */
  3559. silent: false,
  3560. /**
  3561. * Show production mode tip message on boot?
  3562. */
  3563. productionTip: "development" !== 'production',
  3564. /**
  3565. * Whether to enable devtools
  3566. */
  3567. devtools: "development" !== 'production',
  3568. /**
  3569. * Whether to record perf
  3570. */
  3571. performance: false,
  3572. /**
  3573. * Error handler for watcher errors
  3574. */
  3575. errorHandler: null,
  3576. /**
  3577. * Warn handler for watcher warns
  3578. */
  3579. warnHandler: null,
  3580. /**
  3581. * Ignore certain custom elements
  3582. */
  3583. ignoredElements: [],
  3584. /**
  3585. * Custom user key aliases for v-on
  3586. */
  3587. // $flow-disable-line
  3588. keyCodes: Object.create(null),
  3589. /**
  3590. * Check if a tag is reserved so that it cannot be registered as a
  3591. * component. This is platform-dependent and may be overwritten.
  3592. */
  3593. isReservedTag: no,
  3594. /**
  3595. * Check if an attribute is reserved so that it cannot be used as a component
  3596. * prop. This is platform-dependent and may be overwritten.
  3597. */
  3598. isReservedAttr: no,
  3599. /**
  3600. * Check if a tag is an unknown element.
  3601. * Platform-dependent.
  3602. */
  3603. isUnknownElement: no,
  3604. /**
  3605. * Get the namespace of an element
  3606. */
  3607. getTagNamespace: noop,
  3608. /**
  3609. * Parse the real tag name for the specific platform.
  3610. */
  3611. parsePlatformTagName: identity,
  3612. /**
  3613. * Check if an attribute must be bound using property, e.g. value
  3614. * Platform-dependent.
  3615. */
  3616. mustUseProp: no,
  3617. /**
  3618. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3619. * This will significantly reduce performance if set to false.
  3620. */
  3621. async: true,
  3622. /**
  3623. * Exposed for legacy reasons
  3624. */
  3625. _lifecycleHooks: LIFECYCLE_HOOKS
  3626. });
  3627. /* */
  3628. /**
  3629. * unicode letters used for parsing html tags, component names and property paths.
  3630. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3631. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3632. */
  3633. 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/;
  3634. /**
  3635. * Check if a string starts with $ or _
  3636. */
  3637. function isReserved (str) {
  3638. var c = (str + '').charCodeAt(0);
  3639. return c === 0x24 || c === 0x5F
  3640. }
  3641. /**
  3642. * Define a property.
  3643. */
  3644. function def (obj, key, val, enumerable) {
  3645. Object.defineProperty(obj, key, {
  3646. value: val,
  3647. enumerable: !!enumerable,
  3648. writable: true,
  3649. configurable: true
  3650. });
  3651. }
  3652. /**
  3653. * Parse simple path.
  3654. */
  3655. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3656. function parsePath (path) {
  3657. if (bailRE.test(path)) {
  3658. return
  3659. }
  3660. var segments = path.split('.');
  3661. return function (obj) {
  3662. for (var i = 0; i < segments.length; i++) {
  3663. if (!obj) { return }
  3664. obj = obj[segments[i]];
  3665. }
  3666. return obj
  3667. }
  3668. }
  3669. /* */
  3670. // can we use __proto__?
  3671. var hasProto = '__proto__' in {};
  3672. // Browser environment sniffing
  3673. var inBrowser = typeof window !== 'undefined';
  3674. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3675. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3676. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3677. var isIE = UA && /msie|trident/.test(UA);
  3678. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3679. var isEdge = UA && UA.indexOf('edge/') > 0;
  3680. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3681. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3682. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3683. var isPhantomJS = UA && /phantomjs/.test(UA);
  3684. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3685. // Firefox has a "watch" function on Object.prototype...
  3686. var nativeWatch = ({}).watch;
  3687. if (inBrowser) {
  3688. try {
  3689. var opts = {};
  3690. Object.defineProperty(opts, 'passive', ({
  3691. get: function get () {
  3692. }
  3693. })); // https://github.com/facebook/flow/issues/285
  3694. window.addEventListener('test-passive', null, opts);
  3695. } catch (e) {}
  3696. }
  3697. // this needs to be lazy-evaled because vue may be required before
  3698. // vue-server-renderer can set VUE_ENV
  3699. var _isServer;
  3700. var isServerRendering = function () {
  3701. if (_isServer === undefined) {
  3702. /* istanbul ignore if */
  3703. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3704. // detect presence of vue-server-renderer and avoid
  3705. // Webpack shimming the process
  3706. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3707. } else {
  3708. _isServer = false;
  3709. }
  3710. }
  3711. return _isServer
  3712. };
  3713. // detect devtools
  3714. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3715. /* istanbul ignore next */
  3716. function isNative (Ctor) {
  3717. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3718. }
  3719. var hasSymbol =
  3720. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3721. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3722. var _Set;
  3723. /* istanbul ignore if */ // $flow-disable-line
  3724. if (typeof Set !== 'undefined' && isNative(Set)) {
  3725. // use native Set when available.
  3726. _Set = Set;
  3727. } else {
  3728. // a non-standard Set polyfill that only works with primitive keys.
  3729. _Set = /*@__PURE__*/(function () {
  3730. function Set () {
  3731. this.set = Object.create(null);
  3732. }
  3733. Set.prototype.has = function has (key) {
  3734. return this.set[key] === true
  3735. };
  3736. Set.prototype.add = function add (key) {
  3737. this.set[key] = true;
  3738. };
  3739. Set.prototype.clear = function clear () {
  3740. this.set = Object.create(null);
  3741. };
  3742. return Set;
  3743. }());
  3744. }
  3745. /* */
  3746. var warn = noop;
  3747. var tip = noop;
  3748. var generateComponentTrace = (noop); // work around flow check
  3749. var formatComponentName = (noop);
  3750. if (true) {
  3751. var hasConsole = typeof console !== 'undefined';
  3752. var classifyRE = /(?:^|[-_])(\w)/g;
  3753. var classify = function (str) { return str
  3754. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3755. .replace(/[-_]/g, ''); };
  3756. warn = function (msg, vm) {
  3757. var trace = vm ? generateComponentTrace(vm) : '';
  3758. if (config.warnHandler) {
  3759. config.warnHandler.call(null, msg, vm, trace);
  3760. } else if (hasConsole && (!config.silent)) {
  3761. console.error(("[Vue warn]: " + msg + trace));
  3762. }
  3763. };
  3764. tip = function (msg, vm) {
  3765. if (hasConsole && (!config.silent)) {
  3766. console.warn("[Vue tip]: " + msg + (
  3767. vm ? generateComponentTrace(vm) : ''
  3768. ));
  3769. }
  3770. };
  3771. formatComponentName = function (vm, includeFile) {
  3772. if (vm.$root === vm) {
  3773. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3774. return ('') + vm.$options.__file
  3775. }
  3776. return '<Root>'
  3777. }
  3778. var options = typeof vm === 'function' && vm.cid != null
  3779. ? vm.options
  3780. : vm._isVue
  3781. ? vm.$options || vm.constructor.options
  3782. : vm;
  3783. var name = options.name || options._componentTag;
  3784. var file = options.__file;
  3785. if (!name && file) {
  3786. var match = file.match(/([^/\\]+)\.vue$/);
  3787. name = match && match[1];
  3788. }
  3789. return (
  3790. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3791. (file && includeFile !== false ? (" at " + file) : '')
  3792. )
  3793. };
  3794. var repeat = function (str, n) {
  3795. var res = '';
  3796. while (n) {
  3797. if (n % 2 === 1) { res += str; }
  3798. if (n > 1) { str += str; }
  3799. n >>= 1;
  3800. }
  3801. return res
  3802. };
  3803. generateComponentTrace = function (vm) {
  3804. if (vm._isVue && vm.$parent) {
  3805. var tree = [];
  3806. var currentRecursiveSequence = 0;
  3807. while (vm && vm.$options.name !== 'PageBody') {
  3808. if (tree.length > 0) {
  3809. var last = tree[tree.length - 1];
  3810. if (last.constructor === vm.constructor) {
  3811. currentRecursiveSequence++;
  3812. vm = vm.$parent;
  3813. continue
  3814. } else if (currentRecursiveSequence > 0) {
  3815. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3816. currentRecursiveSequence = 0;
  3817. }
  3818. }
  3819. !vm.$options.isReserved && tree.push(vm);
  3820. vm = vm.$parent;
  3821. }
  3822. return '\n\nfound in\n\n' + tree
  3823. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3824. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3825. : formatComponentName(vm))); })
  3826. .join('\n')
  3827. } else {
  3828. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3829. }
  3830. };
  3831. }
  3832. /* */
  3833. var uid = 0;
  3834. /**
  3835. * A dep is an observable that can have multiple
  3836. * directives subscribing to it.
  3837. */
  3838. var Dep = function Dep () {
  3839. this.id = uid++;
  3840. this.subs = [];
  3841. };
  3842. Dep.prototype.addSub = function addSub (sub) {
  3843. this.subs.push(sub);
  3844. };
  3845. Dep.prototype.removeSub = function removeSub (sub) {
  3846. remove(this.subs, sub);
  3847. };
  3848. Dep.prototype.depend = function depend () {
  3849. if (Dep.SharedObject.target) {
  3850. Dep.SharedObject.target.addDep(this);
  3851. }
  3852. };
  3853. Dep.prototype.notify = function notify () {
  3854. // stabilize the subscriber list first
  3855. var subs = this.subs.slice();
  3856. if ( true && !config.async) {
  3857. // subs aren't sorted in scheduler if not running async
  3858. // we need to sort them now to make sure they fire in correct
  3859. // order
  3860. subs.sort(function (a, b) { return a.id - b.id; });
  3861. }
  3862. for (var i = 0, l = subs.length; i < l; i++) {
  3863. subs[i].update();
  3864. }
  3865. };
  3866. // The current target watcher being evaluated.
  3867. // This is globally unique because only one watcher
  3868. // can be evaluated at a time.
  3869. // fixed by xxxxxx (nvue shared vuex)
  3870. /* eslint-disable no-undef */
  3871. Dep.SharedObject = {};
  3872. Dep.SharedObject.target = null;
  3873. Dep.SharedObject.targetStack = [];
  3874. function pushTarget (target) {
  3875. Dep.SharedObject.targetStack.push(target);
  3876. Dep.SharedObject.target = target;
  3877. Dep.target = target;
  3878. }
  3879. function popTarget () {
  3880. Dep.SharedObject.targetStack.pop();
  3881. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3882. Dep.target = Dep.SharedObject.target;
  3883. }
  3884. /* */
  3885. var VNode = function VNode (
  3886. tag,
  3887. data,
  3888. children,
  3889. text,
  3890. elm,
  3891. context,
  3892. componentOptions,
  3893. asyncFactory
  3894. ) {
  3895. this.tag = tag;
  3896. this.data = data;
  3897. this.children = children;
  3898. this.text = text;
  3899. this.elm = elm;
  3900. this.ns = undefined;
  3901. this.context = context;
  3902. this.fnContext = undefined;
  3903. this.fnOptions = undefined;
  3904. this.fnScopeId = undefined;
  3905. this.key = data && data.key;
  3906. this.componentOptions = componentOptions;
  3907. this.componentInstance = undefined;
  3908. this.parent = undefined;
  3909. this.raw = false;
  3910. this.isStatic = false;
  3911. this.isRootInsert = true;
  3912. this.isComment = false;
  3913. this.isCloned = false;
  3914. this.isOnce = false;
  3915. this.asyncFactory = asyncFactory;
  3916. this.asyncMeta = undefined;
  3917. this.isAsyncPlaceholder = false;
  3918. };
  3919. var prototypeAccessors = { child: { configurable: true } };
  3920. // DEPRECATED: alias for componentInstance for backwards compat.
  3921. /* istanbul ignore next */
  3922. prototypeAccessors.child.get = function () {
  3923. return this.componentInstance
  3924. };
  3925. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3926. var createEmptyVNode = function (text) {
  3927. if ( text === void 0 ) text = '';
  3928. var node = new VNode();
  3929. node.text = text;
  3930. node.isComment = true;
  3931. return node
  3932. };
  3933. function createTextVNode (val) {
  3934. return new VNode(undefined, undefined, undefined, String(val))
  3935. }
  3936. // optimized shallow clone
  3937. // used for static nodes and slot nodes because they may be reused across
  3938. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3939. // on their elm reference.
  3940. function cloneVNode (vnode) {
  3941. var cloned = new VNode(
  3942. vnode.tag,
  3943. vnode.data,
  3944. // #7975
  3945. // clone children array to avoid mutating original in case of cloning
  3946. // a child.
  3947. vnode.children && vnode.children.slice(),
  3948. vnode.text,
  3949. vnode.elm,
  3950. vnode.context,
  3951. vnode.componentOptions,
  3952. vnode.asyncFactory
  3953. );
  3954. cloned.ns = vnode.ns;
  3955. cloned.isStatic = vnode.isStatic;
  3956. cloned.key = vnode.key;
  3957. cloned.isComment = vnode.isComment;
  3958. cloned.fnContext = vnode.fnContext;
  3959. cloned.fnOptions = vnode.fnOptions;
  3960. cloned.fnScopeId = vnode.fnScopeId;
  3961. cloned.asyncMeta = vnode.asyncMeta;
  3962. cloned.isCloned = true;
  3963. return cloned
  3964. }
  3965. /*
  3966. * not type checking this file because flow doesn't play well with
  3967. * dynamically accessing methods on Array prototype
  3968. */
  3969. var arrayProto = Array.prototype;
  3970. var arrayMethods = Object.create(arrayProto);
  3971. var methodsToPatch = [
  3972. 'push',
  3973. 'pop',
  3974. 'shift',
  3975. 'unshift',
  3976. 'splice',
  3977. 'sort',
  3978. 'reverse'
  3979. ];
  3980. /**
  3981. * Intercept mutating methods and emit events
  3982. */
  3983. methodsToPatch.forEach(function (method) {
  3984. // cache original method
  3985. var original = arrayProto[method];
  3986. def(arrayMethods, method, function mutator () {
  3987. var args = [], len = arguments.length;
  3988. while ( len-- ) args[ len ] = arguments[ len ];
  3989. var result = original.apply(this, args);
  3990. var ob = this.__ob__;
  3991. var inserted;
  3992. switch (method) {
  3993. case 'push':
  3994. case 'unshift':
  3995. inserted = args;
  3996. break
  3997. case 'splice':
  3998. inserted = args.slice(2);
  3999. break
  4000. }
  4001. if (inserted) { ob.observeArray(inserted); }
  4002. // notify change
  4003. ob.dep.notify();
  4004. return result
  4005. });
  4006. });
  4007. /* */
  4008. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4009. /**
  4010. * In some cases we may want to disable observation inside a component's
  4011. * update computation.
  4012. */
  4013. var shouldObserve = true;
  4014. function toggleObserving (value) {
  4015. shouldObserve = value;
  4016. }
  4017. /**
  4018. * Observer class that is attached to each observed
  4019. * object. Once attached, the observer converts the target
  4020. * object's property keys into getter/setters that
  4021. * collect dependencies and dispatch updates.
  4022. */
  4023. var Observer = function Observer (value) {
  4024. this.value = value;
  4025. this.dep = new Dep();
  4026. this.vmCount = 0;
  4027. def(value, '__ob__', this);
  4028. if (Array.isArray(value)) {
  4029. if (hasProto) {
  4030. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4031. if(value.push !== value.__proto__.push){
  4032. copyAugment(value, arrayMethods, arrayKeys);
  4033. } else {
  4034. protoAugment(value, arrayMethods);
  4035. }
  4036. }
  4037. } else {
  4038. copyAugment(value, arrayMethods, arrayKeys);
  4039. }
  4040. this.observeArray(value);
  4041. } else {
  4042. this.walk(value);
  4043. }
  4044. };
  4045. /**
  4046. * Walk through all properties and convert them into
  4047. * getter/setters. This method should only be called when
  4048. * value type is Object.
  4049. */
  4050. Observer.prototype.walk = function walk (obj) {
  4051. var keys = Object.keys(obj);
  4052. for (var i = 0; i < keys.length; i++) {
  4053. defineReactive$$1(obj, keys[i]);
  4054. }
  4055. };
  4056. /**
  4057. * Observe a list of Array items.
  4058. */
  4059. Observer.prototype.observeArray = function observeArray (items) {
  4060. for (var i = 0, l = items.length; i < l; i++) {
  4061. observe(items[i]);
  4062. }
  4063. };
  4064. // helpers
  4065. /**
  4066. * Augment a target Object or Array by intercepting
  4067. * the prototype chain using __proto__
  4068. */
  4069. function protoAugment (target, src) {
  4070. /* eslint-disable no-proto */
  4071. target.__proto__ = src;
  4072. /* eslint-enable no-proto */
  4073. }
  4074. /**
  4075. * Augment a target Object or Array by defining
  4076. * hidden properties.
  4077. */
  4078. /* istanbul ignore next */
  4079. function copyAugment (target, src, keys) {
  4080. for (var i = 0, l = keys.length; i < l; i++) {
  4081. var key = keys[i];
  4082. def(target, key, src[key]);
  4083. }
  4084. }
  4085. /**
  4086. * Attempt to create an observer instance for a value,
  4087. * returns the new observer if successfully observed,
  4088. * or the existing observer if the value already has one.
  4089. */
  4090. function observe (value, asRootData) {
  4091. if (!isObject(value) || value instanceof VNode) {
  4092. return
  4093. }
  4094. var ob;
  4095. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4096. ob = value.__ob__;
  4097. } else if (
  4098. shouldObserve &&
  4099. !isServerRendering() &&
  4100. (Array.isArray(value) || isPlainObject(value)) &&
  4101. Object.isExtensible(value) &&
  4102. !value._isVue &&
  4103. !value.__v_isMPComponent
  4104. ) {
  4105. ob = new Observer(value);
  4106. }
  4107. if (asRootData && ob) {
  4108. ob.vmCount++;
  4109. }
  4110. return ob
  4111. }
  4112. /**
  4113. * Define a reactive property on an Object.
  4114. */
  4115. function defineReactive$$1 (
  4116. obj,
  4117. key,
  4118. val,
  4119. customSetter,
  4120. shallow
  4121. ) {
  4122. var dep = new Dep();
  4123. var property = Object.getOwnPropertyDescriptor(obj, key);
  4124. if (property && property.configurable === false) {
  4125. return
  4126. }
  4127. // cater for pre-defined getter/setters
  4128. var getter = property && property.get;
  4129. var setter = property && property.set;
  4130. if ((!getter || setter) && arguments.length === 2) {
  4131. val = obj[key];
  4132. }
  4133. var childOb = !shallow && observe(val);
  4134. Object.defineProperty(obj, key, {
  4135. enumerable: true,
  4136. configurable: true,
  4137. get: function reactiveGetter () {
  4138. var value = getter ? getter.call(obj) : val;
  4139. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4140. dep.depend();
  4141. if (childOb) {
  4142. childOb.dep.depend();
  4143. if (Array.isArray(value)) {
  4144. dependArray(value);
  4145. }
  4146. }
  4147. }
  4148. return value
  4149. },
  4150. set: function reactiveSetter (newVal) {
  4151. var value = getter ? getter.call(obj) : val;
  4152. /* eslint-disable no-self-compare */
  4153. if (newVal === value || (newVal !== newVal && value !== value)) {
  4154. return
  4155. }
  4156. /* eslint-enable no-self-compare */
  4157. if ( true && customSetter) {
  4158. customSetter();
  4159. }
  4160. // #7981: for accessor properties without setter
  4161. if (getter && !setter) { return }
  4162. if (setter) {
  4163. setter.call(obj, newVal);
  4164. } else {
  4165. val = newVal;
  4166. }
  4167. childOb = !shallow && observe(newVal);
  4168. dep.notify();
  4169. }
  4170. });
  4171. }
  4172. /**
  4173. * Set a property on an object. Adds the new property and
  4174. * triggers change notification if the property doesn't
  4175. * already exist.
  4176. */
  4177. function set (target, key, val) {
  4178. if ( true &&
  4179. (isUndef(target) || isPrimitive(target))
  4180. ) {
  4181. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4182. }
  4183. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4184. target.length = Math.max(target.length, key);
  4185. target.splice(key, 1, val);
  4186. return val
  4187. }
  4188. if (key in target && !(key in Object.prototype)) {
  4189. target[key] = val;
  4190. return val
  4191. }
  4192. var ob = (target).__ob__;
  4193. if (target._isVue || (ob && ob.vmCount)) {
  4194. true && warn(
  4195. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4196. 'at runtime - declare it upfront in the data option.'
  4197. );
  4198. return val
  4199. }
  4200. if (!ob) {
  4201. target[key] = val;
  4202. return val
  4203. }
  4204. defineReactive$$1(ob.value, key, val);
  4205. ob.dep.notify();
  4206. return val
  4207. }
  4208. /**
  4209. * Delete a property and trigger change if necessary.
  4210. */
  4211. function del (target, key) {
  4212. if ( true &&
  4213. (isUndef(target) || isPrimitive(target))
  4214. ) {
  4215. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4216. }
  4217. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4218. target.splice(key, 1);
  4219. return
  4220. }
  4221. var ob = (target).__ob__;
  4222. if (target._isVue || (ob && ob.vmCount)) {
  4223. true && warn(
  4224. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4225. '- just set it to null.'
  4226. );
  4227. return
  4228. }
  4229. if (!hasOwn(target, key)) {
  4230. return
  4231. }
  4232. delete target[key];
  4233. if (!ob) {
  4234. return
  4235. }
  4236. ob.dep.notify();
  4237. }
  4238. /**
  4239. * Collect dependencies on array elements when the array is touched, since
  4240. * we cannot intercept array element access like property getters.
  4241. */
  4242. function dependArray (value) {
  4243. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4244. e = value[i];
  4245. e && e.__ob__ && e.__ob__.dep.depend();
  4246. if (Array.isArray(e)) {
  4247. dependArray(e);
  4248. }
  4249. }
  4250. }
  4251. /* */
  4252. /**
  4253. * Option overwriting strategies are functions that handle
  4254. * how to merge a parent option value and a child option
  4255. * value into the final value.
  4256. */
  4257. var strats = config.optionMergeStrategies;
  4258. /**
  4259. * Options with restrictions
  4260. */
  4261. if (true) {
  4262. strats.el = strats.propsData = function (parent, child, vm, key) {
  4263. if (!vm) {
  4264. warn(
  4265. "option \"" + key + "\" can only be used during instance " +
  4266. 'creation with the `new` keyword.'
  4267. );
  4268. }
  4269. return defaultStrat(parent, child)
  4270. };
  4271. }
  4272. /**
  4273. * Helper that recursively merges two data objects together.
  4274. */
  4275. function mergeData (to, from) {
  4276. if (!from) { return to }
  4277. var key, toVal, fromVal;
  4278. var keys = hasSymbol
  4279. ? Reflect.ownKeys(from)
  4280. : Object.keys(from);
  4281. for (var i = 0; i < keys.length; i++) {
  4282. key = keys[i];
  4283. // in case the object is already observed...
  4284. if (key === '__ob__') { continue }
  4285. toVal = to[key];
  4286. fromVal = from[key];
  4287. if (!hasOwn(to, key)) {
  4288. set(to, key, fromVal);
  4289. } else if (
  4290. toVal !== fromVal &&
  4291. isPlainObject(toVal) &&
  4292. isPlainObject(fromVal)
  4293. ) {
  4294. mergeData(toVal, fromVal);
  4295. }
  4296. }
  4297. return to
  4298. }
  4299. /**
  4300. * Data
  4301. */
  4302. function mergeDataOrFn (
  4303. parentVal,
  4304. childVal,
  4305. vm
  4306. ) {
  4307. if (!vm) {
  4308. // in a Vue.extend merge, both should be functions
  4309. if (!childVal) {
  4310. return parentVal
  4311. }
  4312. if (!parentVal) {
  4313. return childVal
  4314. }
  4315. // when parentVal & childVal are both present,
  4316. // we need to return a function that returns the
  4317. // merged result of both functions... no need to
  4318. // check if parentVal is a function here because
  4319. // it has to be a function to pass previous merges.
  4320. return function mergedDataFn () {
  4321. return mergeData(
  4322. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4323. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4324. )
  4325. }
  4326. } else {
  4327. return function mergedInstanceDataFn () {
  4328. // instance merge
  4329. var instanceData = typeof childVal === 'function'
  4330. ? childVal.call(vm, vm)
  4331. : childVal;
  4332. var defaultData = typeof parentVal === 'function'
  4333. ? parentVal.call(vm, vm)
  4334. : parentVal;
  4335. if (instanceData) {
  4336. return mergeData(instanceData, defaultData)
  4337. } else {
  4338. return defaultData
  4339. }
  4340. }
  4341. }
  4342. }
  4343. strats.data = function (
  4344. parentVal,
  4345. childVal,
  4346. vm
  4347. ) {
  4348. if (!vm) {
  4349. if (childVal && typeof childVal !== 'function') {
  4350. true && warn(
  4351. 'The "data" option should be a function ' +
  4352. 'that returns a per-instance value in component ' +
  4353. 'definitions.',
  4354. vm
  4355. );
  4356. return parentVal
  4357. }
  4358. return mergeDataOrFn(parentVal, childVal)
  4359. }
  4360. return mergeDataOrFn(parentVal, childVal, vm)
  4361. };
  4362. /**
  4363. * Hooks and props are merged as arrays.
  4364. */
  4365. function mergeHook (
  4366. parentVal,
  4367. childVal
  4368. ) {
  4369. var res = childVal
  4370. ? parentVal
  4371. ? parentVal.concat(childVal)
  4372. : Array.isArray(childVal)
  4373. ? childVal
  4374. : [childVal]
  4375. : parentVal;
  4376. return res
  4377. ? dedupeHooks(res)
  4378. : res
  4379. }
  4380. function dedupeHooks (hooks) {
  4381. var res = [];
  4382. for (var i = 0; i < hooks.length; i++) {
  4383. if (res.indexOf(hooks[i]) === -1) {
  4384. res.push(hooks[i]);
  4385. }
  4386. }
  4387. return res
  4388. }
  4389. LIFECYCLE_HOOKS.forEach(function (hook) {
  4390. strats[hook] = mergeHook;
  4391. });
  4392. /**
  4393. * Assets
  4394. *
  4395. * When a vm is present (instance creation), we need to do
  4396. * a three-way merge between constructor options, instance
  4397. * options and parent options.
  4398. */
  4399. function mergeAssets (
  4400. parentVal,
  4401. childVal,
  4402. vm,
  4403. key
  4404. ) {
  4405. var res = Object.create(parentVal || null);
  4406. if (childVal) {
  4407. true && assertObjectType(key, childVal, vm);
  4408. return extend(res, childVal)
  4409. } else {
  4410. return res
  4411. }
  4412. }
  4413. ASSET_TYPES.forEach(function (type) {
  4414. strats[type + 's'] = mergeAssets;
  4415. });
  4416. /**
  4417. * Watchers.
  4418. *
  4419. * Watchers hashes should not overwrite one
  4420. * another, so we merge them as arrays.
  4421. */
  4422. strats.watch = function (
  4423. parentVal,
  4424. childVal,
  4425. vm,
  4426. key
  4427. ) {
  4428. // work around Firefox's Object.prototype.watch...
  4429. if (parentVal === nativeWatch) { parentVal = undefined; }
  4430. if (childVal === nativeWatch) { childVal = undefined; }
  4431. /* istanbul ignore if */
  4432. if (!childVal) { return Object.create(parentVal || null) }
  4433. if (true) {
  4434. assertObjectType(key, childVal, vm);
  4435. }
  4436. if (!parentVal) { return childVal }
  4437. var ret = {};
  4438. extend(ret, parentVal);
  4439. for (var key$1 in childVal) {
  4440. var parent = ret[key$1];
  4441. var child = childVal[key$1];
  4442. if (parent && !Array.isArray(parent)) {
  4443. parent = [parent];
  4444. }
  4445. ret[key$1] = parent
  4446. ? parent.concat(child)
  4447. : Array.isArray(child) ? child : [child];
  4448. }
  4449. return ret
  4450. };
  4451. /**
  4452. * Other object hashes.
  4453. */
  4454. strats.props =
  4455. strats.methods =
  4456. strats.inject =
  4457. strats.computed = function (
  4458. parentVal,
  4459. childVal,
  4460. vm,
  4461. key
  4462. ) {
  4463. if (childVal && "development" !== 'production') {
  4464. assertObjectType(key, childVal, vm);
  4465. }
  4466. if (!parentVal) { return childVal }
  4467. var ret = Object.create(null);
  4468. extend(ret, parentVal);
  4469. if (childVal) { extend(ret, childVal); }
  4470. return ret
  4471. };
  4472. strats.provide = mergeDataOrFn;
  4473. /**
  4474. * Default strategy.
  4475. */
  4476. var defaultStrat = function (parentVal, childVal) {
  4477. return childVal === undefined
  4478. ? parentVal
  4479. : childVal
  4480. };
  4481. /**
  4482. * Validate component names
  4483. */
  4484. function checkComponents (options) {
  4485. for (var key in options.components) {
  4486. validateComponentName(key);
  4487. }
  4488. }
  4489. function validateComponentName (name) {
  4490. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4491. warn(
  4492. 'Invalid component name: "' + name + '". Component names ' +
  4493. 'should conform to valid custom element name in html5 specification.'
  4494. );
  4495. }
  4496. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4497. warn(
  4498. 'Do not use built-in or reserved HTML elements as component ' +
  4499. 'id: ' + name
  4500. );
  4501. }
  4502. }
  4503. /**
  4504. * Ensure all props option syntax are normalized into the
  4505. * Object-based format.
  4506. */
  4507. function normalizeProps (options, vm) {
  4508. var props = options.props;
  4509. if (!props) { return }
  4510. var res = {};
  4511. var i, val, name;
  4512. if (Array.isArray(props)) {
  4513. i = props.length;
  4514. while (i--) {
  4515. val = props[i];
  4516. if (typeof val === 'string') {
  4517. name = camelize(val);
  4518. res[name] = { type: null };
  4519. } else if (true) {
  4520. warn('props must be strings when using array syntax.');
  4521. }
  4522. }
  4523. } else if (isPlainObject(props)) {
  4524. for (var key in props) {
  4525. val = props[key];
  4526. name = camelize(key);
  4527. res[name] = isPlainObject(val)
  4528. ? val
  4529. : { type: val };
  4530. }
  4531. } else if (true) {
  4532. warn(
  4533. "Invalid value for option \"props\": expected an Array or an Object, " +
  4534. "but got " + (toRawType(props)) + ".",
  4535. vm
  4536. );
  4537. }
  4538. options.props = res;
  4539. }
  4540. /**
  4541. * Normalize all injections into Object-based format
  4542. */
  4543. function normalizeInject (options, vm) {
  4544. var inject = options.inject;
  4545. if (!inject) { return }
  4546. var normalized = options.inject = {};
  4547. if (Array.isArray(inject)) {
  4548. for (var i = 0; i < inject.length; i++) {
  4549. normalized[inject[i]] = { from: inject[i] };
  4550. }
  4551. } else if (isPlainObject(inject)) {
  4552. for (var key in inject) {
  4553. var val = inject[key];
  4554. normalized[key] = isPlainObject(val)
  4555. ? extend({ from: key }, val)
  4556. : { from: val };
  4557. }
  4558. } else if (true) {
  4559. warn(
  4560. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4561. "but got " + (toRawType(inject)) + ".",
  4562. vm
  4563. );
  4564. }
  4565. }
  4566. /**
  4567. * Normalize raw function directives into object format.
  4568. */
  4569. function normalizeDirectives (options) {
  4570. var dirs = options.directives;
  4571. if (dirs) {
  4572. for (var key in dirs) {
  4573. var def$$1 = dirs[key];
  4574. if (typeof def$$1 === 'function') {
  4575. dirs[key] = { bind: def$$1, update: def$$1 };
  4576. }
  4577. }
  4578. }
  4579. }
  4580. function assertObjectType (name, value, vm) {
  4581. if (!isPlainObject(value)) {
  4582. warn(
  4583. "Invalid value for option \"" + name + "\": expected an Object, " +
  4584. "but got " + (toRawType(value)) + ".",
  4585. vm
  4586. );
  4587. }
  4588. }
  4589. /**
  4590. * Merge two option objects into a new one.
  4591. * Core utility used in both instantiation and inheritance.
  4592. */
  4593. function mergeOptions (
  4594. parent,
  4595. child,
  4596. vm
  4597. ) {
  4598. if (true) {
  4599. checkComponents(child);
  4600. }
  4601. if (typeof child === 'function') {
  4602. child = child.options;
  4603. }
  4604. normalizeProps(child, vm);
  4605. normalizeInject(child, vm);
  4606. normalizeDirectives(child);
  4607. // Apply extends and mixins on the child options,
  4608. // but only if it is a raw options object that isn't
  4609. // the result of another mergeOptions call.
  4610. // Only merged options has the _base property.
  4611. if (!child._base) {
  4612. if (child.extends) {
  4613. parent = mergeOptions(parent, child.extends, vm);
  4614. }
  4615. if (child.mixins) {
  4616. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4617. parent = mergeOptions(parent, child.mixins[i], vm);
  4618. }
  4619. }
  4620. }
  4621. var options = {};
  4622. var key;
  4623. for (key in parent) {
  4624. mergeField(key);
  4625. }
  4626. for (key in child) {
  4627. if (!hasOwn(parent, key)) {
  4628. mergeField(key);
  4629. }
  4630. }
  4631. function mergeField (key) {
  4632. var strat = strats[key] || defaultStrat;
  4633. options[key] = strat(parent[key], child[key], vm, key);
  4634. }
  4635. return options
  4636. }
  4637. /**
  4638. * Resolve an asset.
  4639. * This function is used because child instances need access
  4640. * to assets defined in its ancestor chain.
  4641. */
  4642. function resolveAsset (
  4643. options,
  4644. type,
  4645. id,
  4646. warnMissing
  4647. ) {
  4648. /* istanbul ignore if */
  4649. if (typeof id !== 'string') {
  4650. return
  4651. }
  4652. var assets = options[type];
  4653. // check local registration variations first
  4654. if (hasOwn(assets, id)) { return assets[id] }
  4655. var camelizedId = camelize(id);
  4656. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4657. var PascalCaseId = capitalize(camelizedId);
  4658. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4659. // fallback to prototype chain
  4660. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4661. if ( true && warnMissing && !res) {
  4662. warn(
  4663. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4664. options
  4665. );
  4666. }
  4667. return res
  4668. }
  4669. /* */
  4670. function validateProp (
  4671. key,
  4672. propOptions,
  4673. propsData,
  4674. vm
  4675. ) {
  4676. var prop = propOptions[key];
  4677. var absent = !hasOwn(propsData, key);
  4678. var value = propsData[key];
  4679. // boolean casting
  4680. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4681. if (booleanIndex > -1) {
  4682. if (absent && !hasOwn(prop, 'default')) {
  4683. value = false;
  4684. } else if (value === '' || value === hyphenate(key)) {
  4685. // only cast empty string / same name to boolean if
  4686. // boolean has higher priority
  4687. var stringIndex = getTypeIndex(String, prop.type);
  4688. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4689. value = true;
  4690. }
  4691. }
  4692. }
  4693. // check default value
  4694. if (value === undefined) {
  4695. value = getPropDefaultValue(vm, prop, key);
  4696. // since the default value is a fresh copy,
  4697. // make sure to observe it.
  4698. var prevShouldObserve = shouldObserve;
  4699. toggleObserving(true);
  4700. observe(value);
  4701. toggleObserving(prevShouldObserve);
  4702. }
  4703. if (
  4704. true
  4705. ) {
  4706. assertProp(prop, key, value, vm, absent);
  4707. }
  4708. return value
  4709. }
  4710. /**
  4711. * Get the default value of a prop.
  4712. */
  4713. function getPropDefaultValue (vm, prop, key) {
  4714. // no default, return undefined
  4715. if (!hasOwn(prop, 'default')) {
  4716. return undefined
  4717. }
  4718. var def = prop.default;
  4719. // warn against non-factory defaults for Object & Array
  4720. if ( true && isObject(def)) {
  4721. warn(
  4722. 'Invalid default value for prop "' + key + '": ' +
  4723. 'Props with type Object/Array must use a factory function ' +
  4724. 'to return the default value.',
  4725. vm
  4726. );
  4727. }
  4728. // the raw prop value was also undefined from previous render,
  4729. // return previous default value to avoid unnecessary watcher trigger
  4730. if (vm && vm.$options.propsData &&
  4731. vm.$options.propsData[key] === undefined &&
  4732. vm._props[key] !== undefined
  4733. ) {
  4734. return vm._props[key]
  4735. }
  4736. // call factory function for non-Function types
  4737. // a value is Function if its prototype is function even across different execution context
  4738. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4739. ? def.call(vm)
  4740. : def
  4741. }
  4742. /**
  4743. * Assert whether a prop is valid.
  4744. */
  4745. function assertProp (
  4746. prop,
  4747. name,
  4748. value,
  4749. vm,
  4750. absent
  4751. ) {
  4752. if (prop.required && absent) {
  4753. warn(
  4754. 'Missing required prop: "' + name + '"',
  4755. vm
  4756. );
  4757. return
  4758. }
  4759. if (value == null && !prop.required) {
  4760. return
  4761. }
  4762. var type = prop.type;
  4763. var valid = !type || type === true;
  4764. var expectedTypes = [];
  4765. if (type) {
  4766. if (!Array.isArray(type)) {
  4767. type = [type];
  4768. }
  4769. for (var i = 0; i < type.length && !valid; i++) {
  4770. var assertedType = assertType(value, type[i]);
  4771. expectedTypes.push(assertedType.expectedType || '');
  4772. valid = assertedType.valid;
  4773. }
  4774. }
  4775. if (!valid) {
  4776. warn(
  4777. getInvalidTypeMessage(name, value, expectedTypes),
  4778. vm
  4779. );
  4780. return
  4781. }
  4782. var validator = prop.validator;
  4783. if (validator) {
  4784. if (!validator(value)) {
  4785. warn(
  4786. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4787. vm
  4788. );
  4789. }
  4790. }
  4791. }
  4792. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4793. function assertType (value, type) {
  4794. var valid;
  4795. var expectedType = getType(type);
  4796. if (simpleCheckRE.test(expectedType)) {
  4797. var t = typeof value;
  4798. valid = t === expectedType.toLowerCase();
  4799. // for primitive wrapper objects
  4800. if (!valid && t === 'object') {
  4801. valid = value instanceof type;
  4802. }
  4803. } else if (expectedType === 'Object') {
  4804. valid = isPlainObject(value);
  4805. } else if (expectedType === 'Array') {
  4806. valid = Array.isArray(value);
  4807. } else {
  4808. valid = value instanceof type;
  4809. }
  4810. return {
  4811. valid: valid,
  4812. expectedType: expectedType
  4813. }
  4814. }
  4815. /**
  4816. * Use function string name to check built-in types,
  4817. * because a simple equality check will fail when running
  4818. * across different vms / iframes.
  4819. */
  4820. function getType (fn) {
  4821. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4822. return match ? match[1] : ''
  4823. }
  4824. function isSameType (a, b) {
  4825. return getType(a) === getType(b)
  4826. }
  4827. function getTypeIndex (type, expectedTypes) {
  4828. if (!Array.isArray(expectedTypes)) {
  4829. return isSameType(expectedTypes, type) ? 0 : -1
  4830. }
  4831. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4832. if (isSameType(expectedTypes[i], type)) {
  4833. return i
  4834. }
  4835. }
  4836. return -1
  4837. }
  4838. function getInvalidTypeMessage (name, value, expectedTypes) {
  4839. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4840. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4841. var expectedType = expectedTypes[0];
  4842. var receivedType = toRawType(value);
  4843. var expectedValue = styleValue(value, expectedType);
  4844. var receivedValue = styleValue(value, receivedType);
  4845. // check if we need to specify expected value
  4846. if (expectedTypes.length === 1 &&
  4847. isExplicable(expectedType) &&
  4848. !isBoolean(expectedType, receivedType)) {
  4849. message += " with value " + expectedValue;
  4850. }
  4851. message += ", got " + receivedType + " ";
  4852. // check if we need to specify received value
  4853. if (isExplicable(receivedType)) {
  4854. message += "with value " + receivedValue + ".";
  4855. }
  4856. return message
  4857. }
  4858. function styleValue (value, type) {
  4859. if (type === 'String') {
  4860. return ("\"" + value + "\"")
  4861. } else if (type === 'Number') {
  4862. return ("" + (Number(value)))
  4863. } else {
  4864. return ("" + value)
  4865. }
  4866. }
  4867. function isExplicable (value) {
  4868. var explicitTypes = ['string', 'number', 'boolean'];
  4869. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4870. }
  4871. function isBoolean () {
  4872. var args = [], len = arguments.length;
  4873. while ( len-- ) args[ len ] = arguments[ len ];
  4874. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4875. }
  4876. /* */
  4877. function handleError (err, vm, info) {
  4878. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4879. // See: https://github.com/vuejs/vuex/issues/1505
  4880. pushTarget();
  4881. try {
  4882. if (vm) {
  4883. var cur = vm;
  4884. while ((cur = cur.$parent)) {
  4885. var hooks = cur.$options.errorCaptured;
  4886. if (hooks) {
  4887. for (var i = 0; i < hooks.length; i++) {
  4888. try {
  4889. var capture = hooks[i].call(cur, err, vm, info) === false;
  4890. if (capture) { return }
  4891. } catch (e) {
  4892. globalHandleError(e, cur, 'errorCaptured hook');
  4893. }
  4894. }
  4895. }
  4896. }
  4897. }
  4898. globalHandleError(err, vm, info);
  4899. } finally {
  4900. popTarget();
  4901. }
  4902. }
  4903. function invokeWithErrorHandling (
  4904. handler,
  4905. context,
  4906. args,
  4907. vm,
  4908. info
  4909. ) {
  4910. var res;
  4911. try {
  4912. res = args ? handler.apply(context, args) : handler.call(context);
  4913. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4914. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4915. // issue #9511
  4916. // avoid catch triggering multiple times when nested calls
  4917. res._handled = true;
  4918. }
  4919. } catch (e) {
  4920. handleError(e, vm, info);
  4921. }
  4922. return res
  4923. }
  4924. function globalHandleError (err, vm, info) {
  4925. if (config.errorHandler) {
  4926. try {
  4927. return config.errorHandler.call(null, err, vm, info)
  4928. } catch (e) {
  4929. // if the user intentionally throws the original error in the handler,
  4930. // do not log it twice
  4931. if (e !== err) {
  4932. logError(e, null, 'config.errorHandler');
  4933. }
  4934. }
  4935. }
  4936. logError(err, vm, info);
  4937. }
  4938. function logError (err, vm, info) {
  4939. if (true) {
  4940. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4941. }
  4942. /* istanbul ignore else */
  4943. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4944. console.error(err);
  4945. } else {
  4946. throw err
  4947. }
  4948. }
  4949. /* */
  4950. var callbacks = [];
  4951. var pending = false;
  4952. function flushCallbacks () {
  4953. pending = false;
  4954. var copies = callbacks.slice(0);
  4955. callbacks.length = 0;
  4956. for (var i = 0; i < copies.length; i++) {
  4957. copies[i]();
  4958. }
  4959. }
  4960. // Here we have async deferring wrappers using microtasks.
  4961. // In 2.5 we used (macro) tasks (in combination with microtasks).
  4962. // However, it has subtle problems when state is changed right before repaint
  4963. // (e.g. #6813, out-in transitions).
  4964. // Also, using (macro) tasks in event handler would cause some weird behaviors
  4965. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  4966. // So we now use microtasks everywhere, again.
  4967. // A major drawback of this tradeoff is that there are some scenarios
  4968. // where microtasks have too high a priority and fire in between supposedly
  4969. // sequential events (e.g. #4521, #6690, which have workarounds)
  4970. // or even between bubbling of the same event (#6566).
  4971. var timerFunc;
  4972. // The nextTick behavior leverages the microtask queue, which can be accessed
  4973. // via either native Promise.then or MutationObserver.
  4974. // MutationObserver has wider support, however it is seriously bugged in
  4975. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  4976. // completely stops working after triggering a few times... so, if native
  4977. // Promise is available, we will use it:
  4978. /* istanbul ignore next, $flow-disable-line */
  4979. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  4980. var p = Promise.resolve();
  4981. timerFunc = function () {
  4982. p.then(flushCallbacks);
  4983. // In problematic UIWebViews, Promise.then doesn't completely break, but
  4984. // it can get stuck in a weird state where callbacks are pushed into the
  4985. // microtask queue but the queue isn't being flushed, until the browser
  4986. // needs to do some other work, e.g. handle a timer. Therefore we can
  4987. // "force" the microtask queue to be flushed by adding an empty timer.
  4988. if (isIOS) { setTimeout(noop); }
  4989. };
  4990. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  4991. isNative(MutationObserver) ||
  4992. // PhantomJS and iOS 7.x
  4993. MutationObserver.toString() === '[object MutationObserverConstructor]'
  4994. )) {
  4995. // Use MutationObserver where native Promise is not available,
  4996. // e.g. PhantomJS, iOS7, Android 4.4
  4997. // (#6466 MutationObserver is unreliable in IE11)
  4998. var counter = 1;
  4999. var observer = new MutationObserver(flushCallbacks);
  5000. var textNode = document.createTextNode(String(counter));
  5001. observer.observe(textNode, {
  5002. characterData: true
  5003. });
  5004. timerFunc = function () {
  5005. counter = (counter + 1) % 2;
  5006. textNode.data = String(counter);
  5007. };
  5008. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5009. // Fallback to setImmediate.
  5010. // Technically it leverages the (macro) task queue,
  5011. // but it is still a better choice than setTimeout.
  5012. timerFunc = function () {
  5013. setImmediate(flushCallbacks);
  5014. };
  5015. } else {
  5016. // Fallback to setTimeout.
  5017. timerFunc = function () {
  5018. setTimeout(flushCallbacks, 0);
  5019. };
  5020. }
  5021. function nextTick (cb, ctx) {
  5022. var _resolve;
  5023. callbacks.push(function () {
  5024. if (cb) {
  5025. try {
  5026. cb.call(ctx);
  5027. } catch (e) {
  5028. handleError(e, ctx, 'nextTick');
  5029. }
  5030. } else if (_resolve) {
  5031. _resolve(ctx);
  5032. }
  5033. });
  5034. if (!pending) {
  5035. pending = true;
  5036. timerFunc();
  5037. }
  5038. // $flow-disable-line
  5039. if (!cb && typeof Promise !== 'undefined') {
  5040. return new Promise(function (resolve) {
  5041. _resolve = resolve;
  5042. })
  5043. }
  5044. }
  5045. /* */
  5046. /* not type checking this file because flow doesn't play well with Proxy */
  5047. var initProxy;
  5048. if (true) {
  5049. var allowedGlobals = makeMap(
  5050. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5051. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5052. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5053. 'require' // for Webpack/Browserify
  5054. );
  5055. var warnNonPresent = function (target, key) {
  5056. warn(
  5057. "Property or method \"" + key + "\" is not defined on the instance but " +
  5058. 'referenced during render. Make sure that this property is reactive, ' +
  5059. 'either in the data option, or for class-based components, by ' +
  5060. 'initializing the property. ' +
  5061. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5062. target
  5063. );
  5064. };
  5065. var warnReservedPrefix = function (target, key) {
  5066. warn(
  5067. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5068. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5069. 'prevent conflicts with Vue internals. ' +
  5070. 'See: https://vuejs.org/v2/api/#data',
  5071. target
  5072. );
  5073. };
  5074. var hasProxy =
  5075. typeof Proxy !== 'undefined' && isNative(Proxy);
  5076. if (hasProxy) {
  5077. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5078. config.keyCodes = new Proxy(config.keyCodes, {
  5079. set: function set (target, key, value) {
  5080. if (isBuiltInModifier(key)) {
  5081. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5082. return false
  5083. } else {
  5084. target[key] = value;
  5085. return true
  5086. }
  5087. }
  5088. });
  5089. }
  5090. var hasHandler = {
  5091. has: function has (target, key) {
  5092. var has = key in target;
  5093. var isAllowed = allowedGlobals(key) ||
  5094. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5095. if (!has && !isAllowed) {
  5096. if (key in target.$data) { warnReservedPrefix(target, key); }
  5097. else { warnNonPresent(target, key); }
  5098. }
  5099. return has || !isAllowed
  5100. }
  5101. };
  5102. var getHandler = {
  5103. get: function get (target, key) {
  5104. if (typeof key === 'string' && !(key in target)) {
  5105. if (key in target.$data) { warnReservedPrefix(target, key); }
  5106. else { warnNonPresent(target, key); }
  5107. }
  5108. return target[key]
  5109. }
  5110. };
  5111. initProxy = function initProxy (vm) {
  5112. if (hasProxy) {
  5113. // determine which proxy handler to use
  5114. var options = vm.$options;
  5115. var handlers = options.render && options.render._withStripped
  5116. ? getHandler
  5117. : hasHandler;
  5118. vm._renderProxy = new Proxy(vm, handlers);
  5119. } else {
  5120. vm._renderProxy = vm;
  5121. }
  5122. };
  5123. }
  5124. /* */
  5125. var seenObjects = new _Set();
  5126. /**
  5127. * Recursively traverse an object to evoke all converted
  5128. * getters, so that every nested property inside the object
  5129. * is collected as a "deep" dependency.
  5130. */
  5131. function traverse (val) {
  5132. _traverse(val, seenObjects);
  5133. seenObjects.clear();
  5134. }
  5135. function _traverse (val, seen) {
  5136. var i, keys;
  5137. var isA = Array.isArray(val);
  5138. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5139. return
  5140. }
  5141. if (val.__ob__) {
  5142. var depId = val.__ob__.dep.id;
  5143. if (seen.has(depId)) {
  5144. return
  5145. }
  5146. seen.add(depId);
  5147. }
  5148. if (isA) {
  5149. i = val.length;
  5150. while (i--) { _traverse(val[i], seen); }
  5151. } else {
  5152. keys = Object.keys(val);
  5153. i = keys.length;
  5154. while (i--) { _traverse(val[keys[i]], seen); }
  5155. }
  5156. }
  5157. var mark;
  5158. var measure;
  5159. if (true) {
  5160. var perf = inBrowser && window.performance;
  5161. /* istanbul ignore if */
  5162. if (
  5163. perf &&
  5164. perf.mark &&
  5165. perf.measure &&
  5166. perf.clearMarks &&
  5167. perf.clearMeasures
  5168. ) {
  5169. mark = function (tag) { return perf.mark(tag); };
  5170. measure = function (name, startTag, endTag) {
  5171. perf.measure(name, startTag, endTag);
  5172. perf.clearMarks(startTag);
  5173. perf.clearMarks(endTag);
  5174. // perf.clearMeasures(name)
  5175. };
  5176. }
  5177. }
  5178. /* */
  5179. var normalizeEvent = cached(function (name) {
  5180. var passive = name.charAt(0) === '&';
  5181. name = passive ? name.slice(1) : name;
  5182. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5183. name = once$$1 ? name.slice(1) : name;
  5184. var capture = name.charAt(0) === '!';
  5185. name = capture ? name.slice(1) : name;
  5186. return {
  5187. name: name,
  5188. once: once$$1,
  5189. capture: capture,
  5190. passive: passive
  5191. }
  5192. });
  5193. function createFnInvoker (fns, vm) {
  5194. function invoker () {
  5195. var arguments$1 = arguments;
  5196. var fns = invoker.fns;
  5197. if (Array.isArray(fns)) {
  5198. var cloned = fns.slice();
  5199. for (var i = 0; i < cloned.length; i++) {
  5200. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5201. }
  5202. } else {
  5203. // return handler return value for single handlers
  5204. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5205. }
  5206. }
  5207. invoker.fns = fns;
  5208. return invoker
  5209. }
  5210. function updateListeners (
  5211. on,
  5212. oldOn,
  5213. add,
  5214. remove$$1,
  5215. createOnceHandler,
  5216. vm
  5217. ) {
  5218. var name, def$$1, cur, old, event;
  5219. for (name in on) {
  5220. def$$1 = cur = on[name];
  5221. old = oldOn[name];
  5222. event = normalizeEvent(name);
  5223. if (isUndef(cur)) {
  5224. true && warn(
  5225. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5226. vm
  5227. );
  5228. } else if (isUndef(old)) {
  5229. if (isUndef(cur.fns)) {
  5230. cur = on[name] = createFnInvoker(cur, vm);
  5231. }
  5232. if (isTrue(event.once)) {
  5233. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5234. }
  5235. add(event.name, cur, event.capture, event.passive, event.params);
  5236. } else if (cur !== old) {
  5237. old.fns = cur;
  5238. on[name] = old;
  5239. }
  5240. }
  5241. for (name in oldOn) {
  5242. if (isUndef(on[name])) {
  5243. event = normalizeEvent(name);
  5244. remove$$1(event.name, oldOn[name], event.capture);
  5245. }
  5246. }
  5247. }
  5248. /* */
  5249. /* */
  5250. // fixed by xxxxxx (mp properties)
  5251. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5252. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5253. if (isUndef(propOptions)) {
  5254. return res
  5255. }
  5256. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5257. var attrs = data.attrs;
  5258. var props = data.props;
  5259. if (isDef(attrs) || isDef(props)) {
  5260. for (var key in propOptions) {
  5261. var altKey = hyphenate(key);
  5262. var result = checkProp(res, props, key, altKey, true) ||
  5263. checkProp(res, attrs, key, altKey, false);
  5264. // externalClass
  5265. if (
  5266. result &&
  5267. res[key] &&
  5268. externalClasses.indexOf(altKey) !== -1 &&
  5269. context[camelize(res[key])]
  5270. ) {
  5271. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5272. res[key] = context[camelize(res[key])];
  5273. }
  5274. }
  5275. }
  5276. return res
  5277. }
  5278. function extractPropsFromVNodeData (
  5279. data,
  5280. Ctor,
  5281. tag,
  5282. context// fixed by xxxxxx
  5283. ) {
  5284. // we are only extracting raw values here.
  5285. // validation and default values are handled in the child
  5286. // component itself.
  5287. var propOptions = Ctor.options.props;
  5288. if (isUndef(propOptions)) {
  5289. // fixed by xxxxxx
  5290. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5291. }
  5292. var res = {};
  5293. var attrs = data.attrs;
  5294. var props = data.props;
  5295. if (isDef(attrs) || isDef(props)) {
  5296. for (var key in propOptions) {
  5297. var altKey = hyphenate(key);
  5298. if (true) {
  5299. var keyInLowerCase = key.toLowerCase();
  5300. if (
  5301. key !== keyInLowerCase &&
  5302. attrs && hasOwn(attrs, keyInLowerCase)
  5303. ) {
  5304. tip(
  5305. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5306. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5307. " \"" + key + "\". " +
  5308. "Note that HTML attributes are case-insensitive and camelCased " +
  5309. "props need to use their kebab-case equivalents when using in-DOM " +
  5310. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5311. );
  5312. }
  5313. }
  5314. checkProp(res, props, key, altKey, true) ||
  5315. checkProp(res, attrs, key, altKey, false);
  5316. }
  5317. }
  5318. // fixed by xxxxxx
  5319. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5320. }
  5321. function checkProp (
  5322. res,
  5323. hash,
  5324. key,
  5325. altKey,
  5326. preserve
  5327. ) {
  5328. if (isDef(hash)) {
  5329. if (hasOwn(hash, key)) {
  5330. res[key] = hash[key];
  5331. if (!preserve) {
  5332. delete hash[key];
  5333. }
  5334. return true
  5335. } else if (hasOwn(hash, altKey)) {
  5336. res[key] = hash[altKey];
  5337. if (!preserve) {
  5338. delete hash[altKey];
  5339. }
  5340. return true
  5341. }
  5342. }
  5343. return false
  5344. }
  5345. /* */
  5346. // The template compiler attempts to minimize the need for normalization by
  5347. // statically analyzing the template at compile time.
  5348. //
  5349. // For plain HTML markup, normalization can be completely skipped because the
  5350. // generated render function is guaranteed to return Array<VNode>. There are
  5351. // two cases where extra normalization is needed:
  5352. // 1. When the children contains components - because a functional component
  5353. // may return an Array instead of a single root. In this case, just a simple
  5354. // normalization is needed - if any child is an Array, we flatten the whole
  5355. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5356. // because functional components already normalize their own children.
  5357. function simpleNormalizeChildren (children) {
  5358. for (var i = 0; i < children.length; i++) {
  5359. if (Array.isArray(children[i])) {
  5360. return Array.prototype.concat.apply([], children)
  5361. }
  5362. }
  5363. return children
  5364. }
  5365. // 2. When the children contains constructs that always generated nested Arrays,
  5366. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5367. // with hand-written render functions / JSX. In such cases a full normalization
  5368. // is needed to cater to all possible types of children values.
  5369. function normalizeChildren (children) {
  5370. return isPrimitive(children)
  5371. ? [createTextVNode(children)]
  5372. : Array.isArray(children)
  5373. ? normalizeArrayChildren(children)
  5374. : undefined
  5375. }
  5376. function isTextNode (node) {
  5377. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5378. }
  5379. function normalizeArrayChildren (children, nestedIndex) {
  5380. var res = [];
  5381. var i, c, lastIndex, last;
  5382. for (i = 0; i < children.length; i++) {
  5383. c = children[i];
  5384. if (isUndef(c) || typeof c === 'boolean') { continue }
  5385. lastIndex = res.length - 1;
  5386. last = res[lastIndex];
  5387. // nested
  5388. if (Array.isArray(c)) {
  5389. if (c.length > 0) {
  5390. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5391. // merge adjacent text nodes
  5392. if (isTextNode(c[0]) && isTextNode(last)) {
  5393. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5394. c.shift();
  5395. }
  5396. res.push.apply(res, c);
  5397. }
  5398. } else if (isPrimitive(c)) {
  5399. if (isTextNode(last)) {
  5400. // merge adjacent text nodes
  5401. // this is necessary for SSR hydration because text nodes are
  5402. // essentially merged when rendered to HTML strings
  5403. res[lastIndex] = createTextVNode(last.text + c);
  5404. } else if (c !== '') {
  5405. // convert primitive to vnode
  5406. res.push(createTextVNode(c));
  5407. }
  5408. } else {
  5409. if (isTextNode(c) && isTextNode(last)) {
  5410. // merge adjacent text nodes
  5411. res[lastIndex] = createTextVNode(last.text + c.text);
  5412. } else {
  5413. // default key for nested array children (likely generated by v-for)
  5414. if (isTrue(children._isVList) &&
  5415. isDef(c.tag) &&
  5416. isUndef(c.key) &&
  5417. isDef(nestedIndex)) {
  5418. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5419. }
  5420. res.push(c);
  5421. }
  5422. }
  5423. }
  5424. return res
  5425. }
  5426. /* */
  5427. function initProvide (vm) {
  5428. var provide = vm.$options.provide;
  5429. if (provide) {
  5430. vm._provided = typeof provide === 'function'
  5431. ? provide.call(vm)
  5432. : provide;
  5433. }
  5434. }
  5435. function initInjections (vm) {
  5436. var result = resolveInject(vm.$options.inject, vm);
  5437. if (result) {
  5438. toggleObserving(false);
  5439. Object.keys(result).forEach(function (key) {
  5440. /* istanbul ignore else */
  5441. if (true) {
  5442. defineReactive$$1(vm, key, result[key], function () {
  5443. warn(
  5444. "Avoid mutating an injected value directly since the changes will be " +
  5445. "overwritten whenever the provided component re-renders. " +
  5446. "injection being mutated: \"" + key + "\"",
  5447. vm
  5448. );
  5449. });
  5450. } else {}
  5451. });
  5452. toggleObserving(true);
  5453. }
  5454. }
  5455. function resolveInject (inject, vm) {
  5456. if (inject) {
  5457. // inject is :any because flow is not smart enough to figure out cached
  5458. var result = Object.create(null);
  5459. var keys = hasSymbol
  5460. ? Reflect.ownKeys(inject)
  5461. : Object.keys(inject);
  5462. for (var i = 0; i < keys.length; i++) {
  5463. var key = keys[i];
  5464. // #6574 in case the inject object is observed...
  5465. if (key === '__ob__') { continue }
  5466. var provideKey = inject[key].from;
  5467. var source = vm;
  5468. while (source) {
  5469. if (source._provided && hasOwn(source._provided, provideKey)) {
  5470. result[key] = source._provided[provideKey];
  5471. break
  5472. }
  5473. source = source.$parent;
  5474. }
  5475. if (!source) {
  5476. if ('default' in inject[key]) {
  5477. var provideDefault = inject[key].default;
  5478. result[key] = typeof provideDefault === 'function'
  5479. ? provideDefault.call(vm)
  5480. : provideDefault;
  5481. } else if (true) {
  5482. warn(("Injection \"" + key + "\" not found"), vm);
  5483. }
  5484. }
  5485. }
  5486. return result
  5487. }
  5488. }
  5489. /* */
  5490. /**
  5491. * Runtime helper for resolving raw children VNodes into a slot object.
  5492. */
  5493. function resolveSlots (
  5494. children,
  5495. context
  5496. ) {
  5497. if (!children || !children.length) {
  5498. return {}
  5499. }
  5500. var slots = {};
  5501. for (var i = 0, l = children.length; i < l; i++) {
  5502. var child = children[i];
  5503. var data = child.data;
  5504. // remove slot attribute if the node is resolved as a Vue slot node
  5505. if (data && data.attrs && data.attrs.slot) {
  5506. delete data.attrs.slot;
  5507. }
  5508. // named slots should only be respected if the vnode was rendered in the
  5509. // same context.
  5510. if ((child.context === context || child.fnContext === context) &&
  5511. data && data.slot != null
  5512. ) {
  5513. var name = data.slot;
  5514. var slot = (slots[name] || (slots[name] = []));
  5515. if (child.tag === 'template') {
  5516. slot.push.apply(slot, child.children || []);
  5517. } else {
  5518. slot.push(child);
  5519. }
  5520. } else {
  5521. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5522. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5523. (slots['page'] || (slots['page'] = [])).push(child);
  5524. }else{
  5525. (slots.default || (slots.default = [])).push(child);
  5526. }
  5527. }
  5528. }
  5529. // ignore slots that contains only whitespace
  5530. for (var name$1 in slots) {
  5531. if (slots[name$1].every(isWhitespace)) {
  5532. delete slots[name$1];
  5533. }
  5534. }
  5535. return slots
  5536. }
  5537. function isWhitespace (node) {
  5538. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5539. }
  5540. /* */
  5541. function normalizeScopedSlots (
  5542. slots,
  5543. normalSlots,
  5544. prevSlots
  5545. ) {
  5546. var res;
  5547. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5548. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5549. var key = slots && slots.$key;
  5550. if (!slots) {
  5551. res = {};
  5552. } else if (slots._normalized) {
  5553. // fast path 1: child component re-render only, parent did not change
  5554. return slots._normalized
  5555. } else if (
  5556. isStable &&
  5557. prevSlots &&
  5558. prevSlots !== emptyObject &&
  5559. key === prevSlots.$key &&
  5560. !hasNormalSlots &&
  5561. !prevSlots.$hasNormal
  5562. ) {
  5563. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5564. // only need to normalize once
  5565. return prevSlots
  5566. } else {
  5567. res = {};
  5568. for (var key$1 in slots) {
  5569. if (slots[key$1] && key$1[0] !== '$') {
  5570. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5571. }
  5572. }
  5573. }
  5574. // expose normal slots on scopedSlots
  5575. for (var key$2 in normalSlots) {
  5576. if (!(key$2 in res)) {
  5577. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5578. }
  5579. }
  5580. // avoriaz seems to mock a non-extensible $scopedSlots object
  5581. // and when that is passed down this would cause an error
  5582. if (slots && Object.isExtensible(slots)) {
  5583. (slots)._normalized = res;
  5584. }
  5585. def(res, '$stable', isStable);
  5586. def(res, '$key', key);
  5587. def(res, '$hasNormal', hasNormalSlots);
  5588. return res
  5589. }
  5590. function normalizeScopedSlot(normalSlots, key, fn) {
  5591. var normalized = function () {
  5592. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5593. res = res && typeof res === 'object' && !Array.isArray(res)
  5594. ? [res] // single vnode
  5595. : normalizeChildren(res);
  5596. return res && (
  5597. res.length === 0 ||
  5598. (res.length === 1 && res[0].isComment) // #9658
  5599. ) ? undefined
  5600. : res
  5601. };
  5602. // this is a slot using the new v-slot syntax without scope. although it is
  5603. // compiled as a scoped slot, render fn users would expect it to be present
  5604. // on this.$slots because the usage is semantically a normal slot.
  5605. if (fn.proxy) {
  5606. Object.defineProperty(normalSlots, key, {
  5607. get: normalized,
  5608. enumerable: true,
  5609. configurable: true
  5610. });
  5611. }
  5612. return normalized
  5613. }
  5614. function proxyNormalSlot(slots, key) {
  5615. return function () { return slots[key]; }
  5616. }
  5617. /* */
  5618. /**
  5619. * Runtime helper for rendering v-for lists.
  5620. */
  5621. function renderList (
  5622. val,
  5623. render
  5624. ) {
  5625. var ret, i, l, keys, key;
  5626. if (Array.isArray(val) || typeof val === 'string') {
  5627. ret = new Array(val.length);
  5628. for (i = 0, l = val.length; i < l; i++) {
  5629. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5630. }
  5631. } else if (typeof val === 'number') {
  5632. ret = new Array(val);
  5633. for (i = 0; i < val; i++) {
  5634. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5635. }
  5636. } else if (isObject(val)) {
  5637. if (hasSymbol && val[Symbol.iterator]) {
  5638. ret = [];
  5639. var iterator = val[Symbol.iterator]();
  5640. var result = iterator.next();
  5641. while (!result.done) {
  5642. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5643. result = iterator.next();
  5644. }
  5645. } else {
  5646. keys = Object.keys(val);
  5647. ret = new Array(keys.length);
  5648. for (i = 0, l = keys.length; i < l; i++) {
  5649. key = keys[i];
  5650. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5651. }
  5652. }
  5653. }
  5654. if (!isDef(ret)) {
  5655. ret = [];
  5656. }
  5657. (ret)._isVList = true;
  5658. return ret
  5659. }
  5660. /* */
  5661. /**
  5662. * Runtime helper for rendering <slot>
  5663. */
  5664. function renderSlot (
  5665. name,
  5666. fallback,
  5667. props,
  5668. bindObject
  5669. ) {
  5670. var scopedSlotFn = this.$scopedSlots[name];
  5671. var nodes;
  5672. if (scopedSlotFn) { // scoped slot
  5673. props = props || {};
  5674. if (bindObject) {
  5675. if ( true && !isObject(bindObject)) {
  5676. warn(
  5677. 'slot v-bind without argument expects an Object',
  5678. this
  5679. );
  5680. }
  5681. props = extend(extend({}, bindObject), props);
  5682. }
  5683. // fixed by xxxxxx app-plus scopedSlot
  5684. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5685. } else {
  5686. nodes = this.$slots[name] || fallback;
  5687. }
  5688. var target = props && props.slot;
  5689. if (target) {
  5690. return this.$createElement('template', { slot: target }, nodes)
  5691. } else {
  5692. return nodes
  5693. }
  5694. }
  5695. /* */
  5696. /**
  5697. * Runtime helper for resolving filters
  5698. */
  5699. function resolveFilter (id) {
  5700. return resolveAsset(this.$options, 'filters', id, true) || identity
  5701. }
  5702. /* */
  5703. function isKeyNotMatch (expect, actual) {
  5704. if (Array.isArray(expect)) {
  5705. return expect.indexOf(actual) === -1
  5706. } else {
  5707. return expect !== actual
  5708. }
  5709. }
  5710. /**
  5711. * Runtime helper for checking keyCodes from config.
  5712. * exposed as Vue.prototype._k
  5713. * passing in eventKeyName as last argument separately for backwards compat
  5714. */
  5715. function checkKeyCodes (
  5716. eventKeyCode,
  5717. key,
  5718. builtInKeyCode,
  5719. eventKeyName,
  5720. builtInKeyName
  5721. ) {
  5722. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5723. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5724. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5725. } else if (mappedKeyCode) {
  5726. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5727. } else if (eventKeyName) {
  5728. return hyphenate(eventKeyName) !== key
  5729. }
  5730. }
  5731. /* */
  5732. /**
  5733. * Runtime helper for merging v-bind="object" into a VNode's data.
  5734. */
  5735. function bindObjectProps (
  5736. data,
  5737. tag,
  5738. value,
  5739. asProp,
  5740. isSync
  5741. ) {
  5742. if (value) {
  5743. if (!isObject(value)) {
  5744. true && warn(
  5745. 'v-bind without argument expects an Object or Array value',
  5746. this
  5747. );
  5748. } else {
  5749. if (Array.isArray(value)) {
  5750. value = toObject(value);
  5751. }
  5752. var hash;
  5753. var loop = function ( key ) {
  5754. if (
  5755. key === 'class' ||
  5756. key === 'style' ||
  5757. isReservedAttribute(key)
  5758. ) {
  5759. hash = data;
  5760. } else {
  5761. var type = data.attrs && data.attrs.type;
  5762. hash = asProp || config.mustUseProp(tag, type, key)
  5763. ? data.domProps || (data.domProps = {})
  5764. : data.attrs || (data.attrs = {});
  5765. }
  5766. var camelizedKey = camelize(key);
  5767. var hyphenatedKey = hyphenate(key);
  5768. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5769. hash[key] = value[key];
  5770. if (isSync) {
  5771. var on = data.on || (data.on = {});
  5772. on[("update:" + key)] = function ($event) {
  5773. value[key] = $event;
  5774. };
  5775. }
  5776. }
  5777. };
  5778. for (var key in value) loop( key );
  5779. }
  5780. }
  5781. return data
  5782. }
  5783. /* */
  5784. /**
  5785. * Runtime helper for rendering static trees.
  5786. */
  5787. function renderStatic (
  5788. index,
  5789. isInFor
  5790. ) {
  5791. var cached = this._staticTrees || (this._staticTrees = []);
  5792. var tree = cached[index];
  5793. // if has already-rendered static tree and not inside v-for,
  5794. // we can reuse the same tree.
  5795. if (tree && !isInFor) {
  5796. return tree
  5797. }
  5798. // otherwise, render a fresh tree.
  5799. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5800. this._renderProxy,
  5801. null,
  5802. this // for render fns generated for functional component templates
  5803. );
  5804. markStatic(tree, ("__static__" + index), false);
  5805. return tree
  5806. }
  5807. /**
  5808. * Runtime helper for v-once.
  5809. * Effectively it means marking the node as static with a unique key.
  5810. */
  5811. function markOnce (
  5812. tree,
  5813. index,
  5814. key
  5815. ) {
  5816. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5817. return tree
  5818. }
  5819. function markStatic (
  5820. tree,
  5821. key,
  5822. isOnce
  5823. ) {
  5824. if (Array.isArray(tree)) {
  5825. for (var i = 0; i < tree.length; i++) {
  5826. if (tree[i] && typeof tree[i] !== 'string') {
  5827. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5828. }
  5829. }
  5830. } else {
  5831. markStaticNode(tree, key, isOnce);
  5832. }
  5833. }
  5834. function markStaticNode (node, key, isOnce) {
  5835. node.isStatic = true;
  5836. node.key = key;
  5837. node.isOnce = isOnce;
  5838. }
  5839. /* */
  5840. function bindObjectListeners (data, value) {
  5841. if (value) {
  5842. if (!isPlainObject(value)) {
  5843. true && warn(
  5844. 'v-on without argument expects an Object value',
  5845. this
  5846. );
  5847. } else {
  5848. var on = data.on = data.on ? extend({}, data.on) : {};
  5849. for (var key in value) {
  5850. var existing = on[key];
  5851. var ours = value[key];
  5852. on[key] = existing ? [].concat(existing, ours) : ours;
  5853. }
  5854. }
  5855. }
  5856. return data
  5857. }
  5858. /* */
  5859. function resolveScopedSlots (
  5860. fns, // see flow/vnode
  5861. res,
  5862. // the following are added in 2.6
  5863. hasDynamicKeys,
  5864. contentHashKey
  5865. ) {
  5866. res = res || { $stable: !hasDynamicKeys };
  5867. for (var i = 0; i < fns.length; i++) {
  5868. var slot = fns[i];
  5869. if (Array.isArray(slot)) {
  5870. resolveScopedSlots(slot, res, hasDynamicKeys);
  5871. } else if (slot) {
  5872. // marker for reverse proxying v-slot without scope on this.$slots
  5873. if (slot.proxy) {
  5874. slot.fn.proxy = true;
  5875. }
  5876. res[slot.key] = slot.fn;
  5877. }
  5878. }
  5879. if (contentHashKey) {
  5880. (res).$key = contentHashKey;
  5881. }
  5882. return res
  5883. }
  5884. /* */
  5885. function bindDynamicKeys (baseObj, values) {
  5886. for (var i = 0; i < values.length; i += 2) {
  5887. var key = values[i];
  5888. if (typeof key === 'string' && key) {
  5889. baseObj[values[i]] = values[i + 1];
  5890. } else if ( true && key !== '' && key !== null) {
  5891. // null is a special value for explicitly removing a binding
  5892. warn(
  5893. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5894. this
  5895. );
  5896. }
  5897. }
  5898. return baseObj
  5899. }
  5900. // helper to dynamically append modifier runtime markers to event names.
  5901. // ensure only append when value is already string, otherwise it will be cast
  5902. // to string and cause the type check to miss.
  5903. function prependModifier (value, symbol) {
  5904. return typeof value === 'string' ? symbol + value : value
  5905. }
  5906. /* */
  5907. function installRenderHelpers (target) {
  5908. target._o = markOnce;
  5909. target._n = toNumber;
  5910. target._s = toString;
  5911. target._l = renderList;
  5912. target._t = renderSlot;
  5913. target._q = looseEqual;
  5914. target._i = looseIndexOf;
  5915. target._m = renderStatic;
  5916. target._f = resolveFilter;
  5917. target._k = checkKeyCodes;
  5918. target._b = bindObjectProps;
  5919. target._v = createTextVNode;
  5920. target._e = createEmptyVNode;
  5921. target._u = resolveScopedSlots;
  5922. target._g = bindObjectListeners;
  5923. target._d = bindDynamicKeys;
  5924. target._p = prependModifier;
  5925. }
  5926. /* */
  5927. function FunctionalRenderContext (
  5928. data,
  5929. props,
  5930. children,
  5931. parent,
  5932. Ctor
  5933. ) {
  5934. var this$1 = this;
  5935. var options = Ctor.options;
  5936. // ensure the createElement function in functional components
  5937. // gets a unique context - this is necessary for correct named slot check
  5938. var contextVm;
  5939. if (hasOwn(parent, '_uid')) {
  5940. contextVm = Object.create(parent);
  5941. // $flow-disable-line
  5942. contextVm._original = parent;
  5943. } else {
  5944. // the context vm passed in is a functional context as well.
  5945. // in this case we want to make sure we are able to get a hold to the
  5946. // real context instance.
  5947. contextVm = parent;
  5948. // $flow-disable-line
  5949. parent = parent._original;
  5950. }
  5951. var isCompiled = isTrue(options._compiled);
  5952. var needNormalization = !isCompiled;
  5953. this.data = data;
  5954. this.props = props;
  5955. this.children = children;
  5956. this.parent = parent;
  5957. this.listeners = data.on || emptyObject;
  5958. this.injections = resolveInject(options.inject, parent);
  5959. this.slots = function () {
  5960. if (!this$1.$slots) {
  5961. normalizeScopedSlots(
  5962. data.scopedSlots,
  5963. this$1.$slots = resolveSlots(children, parent)
  5964. );
  5965. }
  5966. return this$1.$slots
  5967. };
  5968. Object.defineProperty(this, 'scopedSlots', ({
  5969. enumerable: true,
  5970. get: function get () {
  5971. return normalizeScopedSlots(data.scopedSlots, this.slots())
  5972. }
  5973. }));
  5974. // support for compiled functional template
  5975. if (isCompiled) {
  5976. // exposing $options for renderStatic()
  5977. this.$options = options;
  5978. // pre-resolve slots for renderSlot()
  5979. this.$slots = this.slots();
  5980. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  5981. }
  5982. if (options._scopeId) {
  5983. this._c = function (a, b, c, d) {
  5984. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  5985. if (vnode && !Array.isArray(vnode)) {
  5986. vnode.fnScopeId = options._scopeId;
  5987. vnode.fnContext = parent;
  5988. }
  5989. return vnode
  5990. };
  5991. } else {
  5992. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  5993. }
  5994. }
  5995. installRenderHelpers(FunctionalRenderContext.prototype);
  5996. function createFunctionalComponent (
  5997. Ctor,
  5998. propsData,
  5999. data,
  6000. contextVm,
  6001. children
  6002. ) {
  6003. var options = Ctor.options;
  6004. var props = {};
  6005. var propOptions = options.props;
  6006. if (isDef(propOptions)) {
  6007. for (var key in propOptions) {
  6008. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6009. }
  6010. } else {
  6011. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6012. if (isDef(data.props)) { mergeProps(props, data.props); }
  6013. }
  6014. var renderContext = new FunctionalRenderContext(
  6015. data,
  6016. props,
  6017. children,
  6018. contextVm,
  6019. Ctor
  6020. );
  6021. var vnode = options.render.call(null, renderContext._c, renderContext);
  6022. if (vnode instanceof VNode) {
  6023. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6024. } else if (Array.isArray(vnode)) {
  6025. var vnodes = normalizeChildren(vnode) || [];
  6026. var res = new Array(vnodes.length);
  6027. for (var i = 0; i < vnodes.length; i++) {
  6028. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6029. }
  6030. return res
  6031. }
  6032. }
  6033. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6034. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6035. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6036. // that should not be matched to match.
  6037. var clone = cloneVNode(vnode);
  6038. clone.fnContext = contextVm;
  6039. clone.fnOptions = options;
  6040. if (true) {
  6041. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6042. }
  6043. if (data.slot) {
  6044. (clone.data || (clone.data = {})).slot = data.slot;
  6045. }
  6046. return clone
  6047. }
  6048. function mergeProps (to, from) {
  6049. for (var key in from) {
  6050. to[camelize(key)] = from[key];
  6051. }
  6052. }
  6053. /* */
  6054. /* */
  6055. /* */
  6056. /* */
  6057. // inline hooks to be invoked on component VNodes during patch
  6058. var componentVNodeHooks = {
  6059. init: function init (vnode, hydrating) {
  6060. if (
  6061. vnode.componentInstance &&
  6062. !vnode.componentInstance._isDestroyed &&
  6063. vnode.data.keepAlive
  6064. ) {
  6065. // kept-alive components, treat as a patch
  6066. var mountedNode = vnode; // work around flow
  6067. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6068. } else {
  6069. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6070. vnode,
  6071. activeInstance
  6072. );
  6073. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6074. }
  6075. },
  6076. prepatch: function prepatch (oldVnode, vnode) {
  6077. var options = vnode.componentOptions;
  6078. var child = vnode.componentInstance = oldVnode.componentInstance;
  6079. updateChildComponent(
  6080. child,
  6081. options.propsData, // updated props
  6082. options.listeners, // updated listeners
  6083. vnode, // new parent vnode
  6084. options.children // new children
  6085. );
  6086. },
  6087. insert: function insert (vnode) {
  6088. var context = vnode.context;
  6089. var componentInstance = vnode.componentInstance;
  6090. if (!componentInstance._isMounted) {
  6091. callHook(componentInstance, 'onServiceCreated');
  6092. callHook(componentInstance, 'onServiceAttached');
  6093. componentInstance._isMounted = true;
  6094. callHook(componentInstance, 'mounted');
  6095. }
  6096. if (vnode.data.keepAlive) {
  6097. if (context._isMounted) {
  6098. // vue-router#1212
  6099. // During updates, a kept-alive component's child components may
  6100. // change, so directly walking the tree here may call activated hooks
  6101. // on incorrect children. Instead we push them into a queue which will
  6102. // be processed after the whole patch process ended.
  6103. queueActivatedComponent(componentInstance);
  6104. } else {
  6105. activateChildComponent(componentInstance, true /* direct */);
  6106. }
  6107. }
  6108. },
  6109. destroy: function destroy (vnode) {
  6110. var componentInstance = vnode.componentInstance;
  6111. if (!componentInstance._isDestroyed) {
  6112. if (!vnode.data.keepAlive) {
  6113. componentInstance.$destroy();
  6114. } else {
  6115. deactivateChildComponent(componentInstance, true /* direct */);
  6116. }
  6117. }
  6118. }
  6119. };
  6120. var hooksToMerge = Object.keys(componentVNodeHooks);
  6121. function createComponent (
  6122. Ctor,
  6123. data,
  6124. context,
  6125. children,
  6126. tag
  6127. ) {
  6128. if (isUndef(Ctor)) {
  6129. return
  6130. }
  6131. var baseCtor = context.$options._base;
  6132. // plain options object: turn it into a constructor
  6133. if (isObject(Ctor)) {
  6134. Ctor = baseCtor.extend(Ctor);
  6135. }
  6136. // if at this stage it's not a constructor or an async component factory,
  6137. // reject.
  6138. if (typeof Ctor !== 'function') {
  6139. if (true) {
  6140. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6141. }
  6142. return
  6143. }
  6144. // async component
  6145. var asyncFactory;
  6146. if (isUndef(Ctor.cid)) {
  6147. asyncFactory = Ctor;
  6148. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6149. if (Ctor === undefined) {
  6150. // return a placeholder node for async component, which is rendered
  6151. // as a comment node but preserves all the raw information for the node.
  6152. // the information will be used for async server-rendering and hydration.
  6153. return createAsyncPlaceholder(
  6154. asyncFactory,
  6155. data,
  6156. context,
  6157. children,
  6158. tag
  6159. )
  6160. }
  6161. }
  6162. data = data || {};
  6163. // resolve constructor options in case global mixins are applied after
  6164. // component constructor creation
  6165. resolveConstructorOptions(Ctor);
  6166. // transform component v-model data into props & events
  6167. if (isDef(data.model)) {
  6168. transformModel(Ctor.options, data);
  6169. }
  6170. // extract props
  6171. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6172. // functional component
  6173. if (isTrue(Ctor.options.functional)) {
  6174. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6175. }
  6176. // extract listeners, since these needs to be treated as
  6177. // child component listeners instead of DOM listeners
  6178. var listeners = data.on;
  6179. // replace with listeners with .native modifier
  6180. // so it gets processed during parent component patch.
  6181. data.on = data.nativeOn;
  6182. if (isTrue(Ctor.options.abstract)) {
  6183. // abstract components do not keep anything
  6184. // other than props & listeners & slot
  6185. // work around flow
  6186. var slot = data.slot;
  6187. data = {};
  6188. if (slot) {
  6189. data.slot = slot;
  6190. }
  6191. }
  6192. // install component management hooks onto the placeholder node
  6193. installComponentHooks(data);
  6194. // return a placeholder vnode
  6195. var name = Ctor.options.name || tag;
  6196. var vnode = new VNode(
  6197. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6198. data, undefined, undefined, undefined, context,
  6199. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6200. asyncFactory
  6201. );
  6202. return vnode
  6203. }
  6204. function createComponentInstanceForVnode (
  6205. vnode, // we know it's MountedComponentVNode but flow doesn't
  6206. parent // activeInstance in lifecycle state
  6207. ) {
  6208. var options = {
  6209. _isComponent: true,
  6210. _parentVnode: vnode,
  6211. parent: parent
  6212. };
  6213. // check inline-template render functions
  6214. var inlineTemplate = vnode.data.inlineTemplate;
  6215. if (isDef(inlineTemplate)) {
  6216. options.render = inlineTemplate.render;
  6217. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6218. }
  6219. return new vnode.componentOptions.Ctor(options)
  6220. }
  6221. function installComponentHooks (data) {
  6222. var hooks = data.hook || (data.hook = {});
  6223. for (var i = 0; i < hooksToMerge.length; i++) {
  6224. var key = hooksToMerge[i];
  6225. var existing = hooks[key];
  6226. var toMerge = componentVNodeHooks[key];
  6227. if (existing !== toMerge && !(existing && existing._merged)) {
  6228. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6229. }
  6230. }
  6231. }
  6232. function mergeHook$1 (f1, f2) {
  6233. var merged = function (a, b) {
  6234. // flow complains about extra args which is why we use any
  6235. f1(a, b);
  6236. f2(a, b);
  6237. };
  6238. merged._merged = true;
  6239. return merged
  6240. }
  6241. // transform component v-model info (value and callback) into
  6242. // prop and event handler respectively.
  6243. function transformModel (options, data) {
  6244. var prop = (options.model && options.model.prop) || 'value';
  6245. var event = (options.model && options.model.event) || 'input'
  6246. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6247. var on = data.on || (data.on = {});
  6248. var existing = on[event];
  6249. var callback = data.model.callback;
  6250. if (isDef(existing)) {
  6251. if (
  6252. Array.isArray(existing)
  6253. ? existing.indexOf(callback) === -1
  6254. : existing !== callback
  6255. ) {
  6256. on[event] = [callback].concat(existing);
  6257. }
  6258. } else {
  6259. on[event] = callback;
  6260. }
  6261. }
  6262. /* */
  6263. var SIMPLE_NORMALIZE = 1;
  6264. var ALWAYS_NORMALIZE = 2;
  6265. // wrapper function for providing a more flexible interface
  6266. // without getting yelled at by flow
  6267. function createElement (
  6268. context,
  6269. tag,
  6270. data,
  6271. children,
  6272. normalizationType,
  6273. alwaysNormalize
  6274. ) {
  6275. if (Array.isArray(data) || isPrimitive(data)) {
  6276. normalizationType = children;
  6277. children = data;
  6278. data = undefined;
  6279. }
  6280. if (isTrue(alwaysNormalize)) {
  6281. normalizationType = ALWAYS_NORMALIZE;
  6282. }
  6283. return _createElement(context, tag, data, children, normalizationType)
  6284. }
  6285. function _createElement (
  6286. context,
  6287. tag,
  6288. data,
  6289. children,
  6290. normalizationType
  6291. ) {
  6292. if (isDef(data) && isDef((data).__ob__)) {
  6293. true && warn(
  6294. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6295. 'Always create fresh vnode data objects in each render!',
  6296. context
  6297. );
  6298. return createEmptyVNode()
  6299. }
  6300. // object syntax in v-bind
  6301. if (isDef(data) && isDef(data.is)) {
  6302. tag = data.is;
  6303. }
  6304. if (!tag) {
  6305. // in case of component :is set to falsy value
  6306. return createEmptyVNode()
  6307. }
  6308. // warn against non-primitive key
  6309. if ( true &&
  6310. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6311. ) {
  6312. {
  6313. warn(
  6314. 'Avoid using non-primitive value as key, ' +
  6315. 'use string/number value instead.',
  6316. context
  6317. );
  6318. }
  6319. }
  6320. // support single function children as default scoped slot
  6321. if (Array.isArray(children) &&
  6322. typeof children[0] === 'function'
  6323. ) {
  6324. data = data || {};
  6325. data.scopedSlots = { default: children[0] };
  6326. children.length = 0;
  6327. }
  6328. if (normalizationType === ALWAYS_NORMALIZE) {
  6329. children = normalizeChildren(children);
  6330. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6331. children = simpleNormalizeChildren(children);
  6332. }
  6333. var vnode, ns;
  6334. if (typeof tag === 'string') {
  6335. var Ctor;
  6336. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6337. if (config.isReservedTag(tag)) {
  6338. // platform built-in elements
  6339. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6340. warn(
  6341. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6342. context
  6343. );
  6344. }
  6345. vnode = new VNode(
  6346. config.parsePlatformTagName(tag), data, children,
  6347. undefined, undefined, context
  6348. );
  6349. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6350. // component
  6351. vnode = createComponent(Ctor, data, context, children, tag);
  6352. } else {
  6353. // unknown or unlisted namespaced elements
  6354. // check at runtime because it may get assigned a namespace when its
  6355. // parent normalizes children
  6356. vnode = new VNode(
  6357. tag, data, children,
  6358. undefined, undefined, context
  6359. );
  6360. }
  6361. } else {
  6362. // direct component options / constructor
  6363. vnode = createComponent(tag, data, context, children);
  6364. }
  6365. if (Array.isArray(vnode)) {
  6366. return vnode
  6367. } else if (isDef(vnode)) {
  6368. if (isDef(ns)) { applyNS(vnode, ns); }
  6369. if (isDef(data)) { registerDeepBindings(data); }
  6370. return vnode
  6371. } else {
  6372. return createEmptyVNode()
  6373. }
  6374. }
  6375. function applyNS (vnode, ns, force) {
  6376. vnode.ns = ns;
  6377. if (vnode.tag === 'foreignObject') {
  6378. // use default namespace inside foreignObject
  6379. ns = undefined;
  6380. force = true;
  6381. }
  6382. if (isDef(vnode.children)) {
  6383. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6384. var child = vnode.children[i];
  6385. if (isDef(child.tag) && (
  6386. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6387. applyNS(child, ns, force);
  6388. }
  6389. }
  6390. }
  6391. }
  6392. // ref #5318
  6393. // necessary to ensure parent re-render when deep bindings like :style and
  6394. // :class are used on slot nodes
  6395. function registerDeepBindings (data) {
  6396. if (isObject(data.style)) {
  6397. traverse(data.style);
  6398. }
  6399. if (isObject(data.class)) {
  6400. traverse(data.class);
  6401. }
  6402. }
  6403. /* */
  6404. function initRender (vm) {
  6405. vm._vnode = null; // the root of the child tree
  6406. vm._staticTrees = null; // v-once cached trees
  6407. var options = vm.$options;
  6408. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6409. var renderContext = parentVnode && parentVnode.context;
  6410. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6411. vm.$scopedSlots = emptyObject;
  6412. // bind the createElement fn to this instance
  6413. // so that we get proper render context inside it.
  6414. // args order: tag, data, children, normalizationType, alwaysNormalize
  6415. // internal version is used by render functions compiled from templates
  6416. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6417. // normalization is always applied for the public version, used in
  6418. // user-written render functions.
  6419. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6420. // $attrs & $listeners are exposed for easier HOC creation.
  6421. // they need to be reactive so that HOCs using them are always updated
  6422. var parentData = parentVnode && parentVnode.data;
  6423. /* istanbul ignore else */
  6424. if (true) {
  6425. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6426. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6427. }, true);
  6428. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6429. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6430. }, true);
  6431. } else {}
  6432. }
  6433. var currentRenderingInstance = null;
  6434. function renderMixin (Vue) {
  6435. // install runtime convenience helpers
  6436. installRenderHelpers(Vue.prototype);
  6437. Vue.prototype.$nextTick = function (fn) {
  6438. return nextTick(fn, this)
  6439. };
  6440. Vue.prototype._render = function () {
  6441. var vm = this;
  6442. var ref = vm.$options;
  6443. var render = ref.render;
  6444. var _parentVnode = ref._parentVnode;
  6445. if (_parentVnode) {
  6446. vm.$scopedSlots = normalizeScopedSlots(
  6447. _parentVnode.data.scopedSlots,
  6448. vm.$slots,
  6449. vm.$scopedSlots
  6450. );
  6451. }
  6452. // set parent vnode. this allows render functions to have access
  6453. // to the data on the placeholder node.
  6454. vm.$vnode = _parentVnode;
  6455. // render self
  6456. var vnode;
  6457. try {
  6458. // There's no need to maintain a stack because all render fns are called
  6459. // separately from one another. Nested component's render fns are called
  6460. // when parent component is patched.
  6461. currentRenderingInstance = vm;
  6462. vnode = render.call(vm._renderProxy, vm.$createElement);
  6463. } catch (e) {
  6464. handleError(e, vm, "render");
  6465. // return error render result,
  6466. // or previous vnode to prevent render error causing blank component
  6467. /* istanbul ignore else */
  6468. if ( true && vm.$options.renderError) {
  6469. try {
  6470. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6471. } catch (e) {
  6472. handleError(e, vm, "renderError");
  6473. vnode = vm._vnode;
  6474. }
  6475. } else {
  6476. vnode = vm._vnode;
  6477. }
  6478. } finally {
  6479. currentRenderingInstance = null;
  6480. }
  6481. // if the returned array contains only a single node, allow it
  6482. if (Array.isArray(vnode) && vnode.length === 1) {
  6483. vnode = vnode[0];
  6484. }
  6485. // return empty vnode in case the render function errored out
  6486. if (!(vnode instanceof VNode)) {
  6487. if ( true && Array.isArray(vnode)) {
  6488. warn(
  6489. 'Multiple root nodes returned from render function. Render function ' +
  6490. 'should return a single root node.',
  6491. vm
  6492. );
  6493. }
  6494. vnode = createEmptyVNode();
  6495. }
  6496. // set parent
  6497. vnode.parent = _parentVnode;
  6498. return vnode
  6499. };
  6500. }
  6501. /* */
  6502. function ensureCtor (comp, base) {
  6503. if (
  6504. comp.__esModule ||
  6505. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6506. ) {
  6507. comp = comp.default;
  6508. }
  6509. return isObject(comp)
  6510. ? base.extend(comp)
  6511. : comp
  6512. }
  6513. function createAsyncPlaceholder (
  6514. factory,
  6515. data,
  6516. context,
  6517. children,
  6518. tag
  6519. ) {
  6520. var node = createEmptyVNode();
  6521. node.asyncFactory = factory;
  6522. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6523. return node
  6524. }
  6525. function resolveAsyncComponent (
  6526. factory,
  6527. baseCtor
  6528. ) {
  6529. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6530. return factory.errorComp
  6531. }
  6532. if (isDef(factory.resolved)) {
  6533. return factory.resolved
  6534. }
  6535. var owner = currentRenderingInstance;
  6536. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6537. // already pending
  6538. factory.owners.push(owner);
  6539. }
  6540. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6541. return factory.loadingComp
  6542. }
  6543. if (owner && !isDef(factory.owners)) {
  6544. var owners = factory.owners = [owner];
  6545. var sync = true;
  6546. var timerLoading = null;
  6547. var timerTimeout = null
  6548. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6549. var forceRender = function (renderCompleted) {
  6550. for (var i = 0, l = owners.length; i < l; i++) {
  6551. (owners[i]).$forceUpdate();
  6552. }
  6553. if (renderCompleted) {
  6554. owners.length = 0;
  6555. if (timerLoading !== null) {
  6556. clearTimeout(timerLoading);
  6557. timerLoading = null;
  6558. }
  6559. if (timerTimeout !== null) {
  6560. clearTimeout(timerTimeout);
  6561. timerTimeout = null;
  6562. }
  6563. }
  6564. };
  6565. var resolve = once(function (res) {
  6566. // cache resolved
  6567. factory.resolved = ensureCtor(res, baseCtor);
  6568. // invoke callbacks only if this is not a synchronous resolve
  6569. // (async resolves are shimmed as synchronous during SSR)
  6570. if (!sync) {
  6571. forceRender(true);
  6572. } else {
  6573. owners.length = 0;
  6574. }
  6575. });
  6576. var reject = once(function (reason) {
  6577. true && warn(
  6578. "Failed to resolve async component: " + (String(factory)) +
  6579. (reason ? ("\nReason: " + reason) : '')
  6580. );
  6581. if (isDef(factory.errorComp)) {
  6582. factory.error = true;
  6583. forceRender(true);
  6584. }
  6585. });
  6586. var res = factory(resolve, reject);
  6587. if (isObject(res)) {
  6588. if (isPromise(res)) {
  6589. // () => Promise
  6590. if (isUndef(factory.resolved)) {
  6591. res.then(resolve, reject);
  6592. }
  6593. } else if (isPromise(res.component)) {
  6594. res.component.then(resolve, reject);
  6595. if (isDef(res.error)) {
  6596. factory.errorComp = ensureCtor(res.error, baseCtor);
  6597. }
  6598. if (isDef(res.loading)) {
  6599. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6600. if (res.delay === 0) {
  6601. factory.loading = true;
  6602. } else {
  6603. timerLoading = setTimeout(function () {
  6604. timerLoading = null;
  6605. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6606. factory.loading = true;
  6607. forceRender(false);
  6608. }
  6609. }, res.delay || 200);
  6610. }
  6611. }
  6612. if (isDef(res.timeout)) {
  6613. timerTimeout = setTimeout(function () {
  6614. timerTimeout = null;
  6615. if (isUndef(factory.resolved)) {
  6616. reject(
  6617. true
  6618. ? ("timeout (" + (res.timeout) + "ms)")
  6619. : undefined
  6620. );
  6621. }
  6622. }, res.timeout);
  6623. }
  6624. }
  6625. }
  6626. sync = false;
  6627. // return in case resolved synchronously
  6628. return factory.loading
  6629. ? factory.loadingComp
  6630. : factory.resolved
  6631. }
  6632. }
  6633. /* */
  6634. function isAsyncPlaceholder (node) {
  6635. return node.isComment && node.asyncFactory
  6636. }
  6637. /* */
  6638. function getFirstComponentChild (children) {
  6639. if (Array.isArray(children)) {
  6640. for (var i = 0; i < children.length; i++) {
  6641. var c = children[i];
  6642. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6643. return c
  6644. }
  6645. }
  6646. }
  6647. }
  6648. /* */
  6649. /* */
  6650. function initEvents (vm) {
  6651. vm._events = Object.create(null);
  6652. vm._hasHookEvent = false;
  6653. // init parent attached events
  6654. var listeners = vm.$options._parentListeners;
  6655. if (listeners) {
  6656. updateComponentListeners(vm, listeners);
  6657. }
  6658. }
  6659. var target;
  6660. function add (event, fn) {
  6661. target.$on(event, fn);
  6662. }
  6663. function remove$1 (event, fn) {
  6664. target.$off(event, fn);
  6665. }
  6666. function createOnceHandler (event, fn) {
  6667. var _target = target;
  6668. return function onceHandler () {
  6669. var res = fn.apply(null, arguments);
  6670. if (res !== null) {
  6671. _target.$off(event, onceHandler);
  6672. }
  6673. }
  6674. }
  6675. function updateComponentListeners (
  6676. vm,
  6677. listeners,
  6678. oldListeners
  6679. ) {
  6680. target = vm;
  6681. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6682. target = undefined;
  6683. }
  6684. function eventsMixin (Vue) {
  6685. var hookRE = /^hook:/;
  6686. Vue.prototype.$on = function (event, fn) {
  6687. var vm = this;
  6688. if (Array.isArray(event)) {
  6689. for (var i = 0, l = event.length; i < l; i++) {
  6690. vm.$on(event[i], fn);
  6691. }
  6692. } else {
  6693. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6694. // optimize hook:event cost by using a boolean flag marked at registration
  6695. // instead of a hash lookup
  6696. if (hookRE.test(event)) {
  6697. vm._hasHookEvent = true;
  6698. }
  6699. }
  6700. return vm
  6701. };
  6702. Vue.prototype.$once = function (event, fn) {
  6703. var vm = this;
  6704. function on () {
  6705. vm.$off(event, on);
  6706. fn.apply(vm, arguments);
  6707. }
  6708. on.fn = fn;
  6709. vm.$on(event, on);
  6710. return vm
  6711. };
  6712. Vue.prototype.$off = function (event, fn) {
  6713. var vm = this;
  6714. // all
  6715. if (!arguments.length) {
  6716. vm._events = Object.create(null);
  6717. return vm
  6718. }
  6719. // array of events
  6720. if (Array.isArray(event)) {
  6721. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6722. vm.$off(event[i$1], fn);
  6723. }
  6724. return vm
  6725. }
  6726. // specific event
  6727. var cbs = vm._events[event];
  6728. if (!cbs) {
  6729. return vm
  6730. }
  6731. if (!fn) {
  6732. vm._events[event] = null;
  6733. return vm
  6734. }
  6735. // specific handler
  6736. var cb;
  6737. var i = cbs.length;
  6738. while (i--) {
  6739. cb = cbs[i];
  6740. if (cb === fn || cb.fn === fn) {
  6741. cbs.splice(i, 1);
  6742. break
  6743. }
  6744. }
  6745. return vm
  6746. };
  6747. Vue.prototype.$emit = function (event) {
  6748. var vm = this;
  6749. if (true) {
  6750. var lowerCaseEvent = event.toLowerCase();
  6751. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6752. tip(
  6753. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6754. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6755. "Note that HTML attributes are case-insensitive and you cannot use " +
  6756. "v-on to listen to camelCase events when using in-DOM templates. " +
  6757. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6758. );
  6759. }
  6760. }
  6761. var cbs = vm._events[event];
  6762. if (cbs) {
  6763. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6764. var args = toArray(arguments, 1);
  6765. var info = "event handler for \"" + event + "\"";
  6766. for (var i = 0, l = cbs.length; i < l; i++) {
  6767. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6768. }
  6769. }
  6770. return vm
  6771. };
  6772. }
  6773. /* */
  6774. var activeInstance = null;
  6775. var isUpdatingChildComponent = false;
  6776. function setActiveInstance(vm) {
  6777. var prevActiveInstance = activeInstance;
  6778. activeInstance = vm;
  6779. return function () {
  6780. activeInstance = prevActiveInstance;
  6781. }
  6782. }
  6783. function initLifecycle (vm) {
  6784. var options = vm.$options;
  6785. // locate first non-abstract parent
  6786. var parent = options.parent;
  6787. if (parent && !options.abstract) {
  6788. while (parent.$options.abstract && parent.$parent) {
  6789. parent = parent.$parent;
  6790. }
  6791. parent.$children.push(vm);
  6792. }
  6793. vm.$parent = parent;
  6794. vm.$root = parent ? parent.$root : vm;
  6795. vm.$children = [];
  6796. vm.$refs = {};
  6797. vm._watcher = null;
  6798. vm._inactive = null;
  6799. vm._directInactive = false;
  6800. vm._isMounted = false;
  6801. vm._isDestroyed = false;
  6802. vm._isBeingDestroyed = false;
  6803. }
  6804. function lifecycleMixin (Vue) {
  6805. Vue.prototype._update = function (vnode, hydrating) {
  6806. var vm = this;
  6807. var prevEl = vm.$el;
  6808. var prevVnode = vm._vnode;
  6809. var restoreActiveInstance = setActiveInstance(vm);
  6810. vm._vnode = vnode;
  6811. // Vue.prototype.__patch__ is injected in entry points
  6812. // based on the rendering backend used.
  6813. if (!prevVnode) {
  6814. // initial render
  6815. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6816. } else {
  6817. // updates
  6818. vm.$el = vm.__patch__(prevVnode, vnode);
  6819. }
  6820. restoreActiveInstance();
  6821. // update __vue__ reference
  6822. if (prevEl) {
  6823. prevEl.__vue__ = null;
  6824. }
  6825. if (vm.$el) {
  6826. vm.$el.__vue__ = vm;
  6827. }
  6828. // if parent is an HOC, update its $el as well
  6829. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6830. vm.$parent.$el = vm.$el;
  6831. }
  6832. // updated hook is called by the scheduler to ensure that children are
  6833. // updated in a parent's updated hook.
  6834. };
  6835. Vue.prototype.$forceUpdate = function () {
  6836. var vm = this;
  6837. if (vm._watcher) {
  6838. vm._watcher.update();
  6839. }
  6840. };
  6841. Vue.prototype.$destroy = function () {
  6842. var vm = this;
  6843. if (vm._isBeingDestroyed) {
  6844. return
  6845. }
  6846. callHook(vm, 'beforeDestroy');
  6847. vm._isBeingDestroyed = true;
  6848. // remove self from parent
  6849. var parent = vm.$parent;
  6850. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6851. remove(parent.$children, vm);
  6852. }
  6853. // teardown watchers
  6854. if (vm._watcher) {
  6855. vm._watcher.teardown();
  6856. }
  6857. var i = vm._watchers.length;
  6858. while (i--) {
  6859. vm._watchers[i].teardown();
  6860. }
  6861. // remove reference from data ob
  6862. // frozen object may not have observer.
  6863. if (vm._data.__ob__) {
  6864. vm._data.__ob__.vmCount--;
  6865. }
  6866. // call the last hook...
  6867. vm._isDestroyed = true;
  6868. // invoke destroy hooks on current rendered tree
  6869. vm.__patch__(vm._vnode, null);
  6870. // fire destroyed hook
  6871. callHook(vm, 'destroyed');
  6872. // turn off all instance listeners.
  6873. vm.$off();
  6874. // remove __vue__ reference
  6875. if (vm.$el) {
  6876. vm.$el.__vue__ = null;
  6877. }
  6878. // release circular reference (#6759)
  6879. if (vm.$vnode) {
  6880. vm.$vnode.parent = null;
  6881. }
  6882. };
  6883. }
  6884. function updateChildComponent (
  6885. vm,
  6886. propsData,
  6887. listeners,
  6888. parentVnode,
  6889. renderChildren
  6890. ) {
  6891. if (true) {
  6892. isUpdatingChildComponent = true;
  6893. }
  6894. // determine whether component has slot children
  6895. // we need to do this before overwriting $options._renderChildren.
  6896. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6897. // dynamic slot names). Static scoped slots compiled from template has the
  6898. // "$stable" marker.
  6899. var newScopedSlots = parentVnode.data.scopedSlots;
  6900. var oldScopedSlots = vm.$scopedSlots;
  6901. var hasDynamicScopedSlot = !!(
  6902. (newScopedSlots && !newScopedSlots.$stable) ||
  6903. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6904. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6905. );
  6906. // Any static slot children from the parent may have changed during parent's
  6907. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6908. // update is necessary to ensure correctness.
  6909. var needsForceUpdate = !!(
  6910. renderChildren || // has new static slots
  6911. vm.$options._renderChildren || // has old static slots
  6912. hasDynamicScopedSlot
  6913. );
  6914. vm.$options._parentVnode = parentVnode;
  6915. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6916. if (vm._vnode) { // update child tree's parent
  6917. vm._vnode.parent = parentVnode;
  6918. }
  6919. vm.$options._renderChildren = renderChildren;
  6920. // update $attrs and $listeners hash
  6921. // these are also reactive so they may trigger child update if the child
  6922. // used them during render
  6923. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6924. vm.$listeners = listeners || emptyObject;
  6925. // update props
  6926. if (propsData && vm.$options.props) {
  6927. toggleObserving(false);
  6928. var props = vm._props;
  6929. var propKeys = vm.$options._propKeys || [];
  6930. for (var i = 0; i < propKeys.length; i++) {
  6931. var key = propKeys[i];
  6932. var propOptions = vm.$options.props; // wtf flow?
  6933. props[key] = validateProp(key, propOptions, propsData, vm);
  6934. }
  6935. toggleObserving(true);
  6936. // keep a copy of raw propsData
  6937. vm.$options.propsData = propsData;
  6938. }
  6939. // fixed by xxxxxx update properties(mp runtime)
  6940. vm._$updateProperties && vm._$updateProperties(vm);
  6941. // update listeners
  6942. listeners = listeners || emptyObject;
  6943. var oldListeners = vm.$options._parentListeners;
  6944. vm.$options._parentListeners = listeners;
  6945. updateComponentListeners(vm, listeners, oldListeners);
  6946. // resolve slots + force update if has children
  6947. if (needsForceUpdate) {
  6948. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6949. vm.$forceUpdate();
  6950. }
  6951. if (true) {
  6952. isUpdatingChildComponent = false;
  6953. }
  6954. }
  6955. function isInInactiveTree (vm) {
  6956. while (vm && (vm = vm.$parent)) {
  6957. if (vm._inactive) { return true }
  6958. }
  6959. return false
  6960. }
  6961. function activateChildComponent (vm, direct) {
  6962. if (direct) {
  6963. vm._directInactive = false;
  6964. if (isInInactiveTree(vm)) {
  6965. return
  6966. }
  6967. } else if (vm._directInactive) {
  6968. return
  6969. }
  6970. if (vm._inactive || vm._inactive === null) {
  6971. vm._inactive = false;
  6972. for (var i = 0; i < vm.$children.length; i++) {
  6973. activateChildComponent(vm.$children[i]);
  6974. }
  6975. callHook(vm, 'activated');
  6976. }
  6977. }
  6978. function deactivateChildComponent (vm, direct) {
  6979. if (direct) {
  6980. vm._directInactive = true;
  6981. if (isInInactiveTree(vm)) {
  6982. return
  6983. }
  6984. }
  6985. if (!vm._inactive) {
  6986. vm._inactive = true;
  6987. for (var i = 0; i < vm.$children.length; i++) {
  6988. deactivateChildComponent(vm.$children[i]);
  6989. }
  6990. callHook(vm, 'deactivated');
  6991. }
  6992. }
  6993. function callHook (vm, hook) {
  6994. // #7573 disable dep collection when invoking lifecycle hooks
  6995. pushTarget();
  6996. var handlers = vm.$options[hook];
  6997. var info = hook + " hook";
  6998. if (handlers) {
  6999. for (var i = 0, j = handlers.length; i < j; i++) {
  7000. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7001. }
  7002. }
  7003. if (vm._hasHookEvent) {
  7004. vm.$emit('hook:' + hook);
  7005. }
  7006. popTarget();
  7007. }
  7008. /* */
  7009. var MAX_UPDATE_COUNT = 100;
  7010. var queue = [];
  7011. var activatedChildren = [];
  7012. var has = {};
  7013. var circular = {};
  7014. var waiting = false;
  7015. var flushing = false;
  7016. var index = 0;
  7017. /**
  7018. * Reset the scheduler's state.
  7019. */
  7020. function resetSchedulerState () {
  7021. index = queue.length = activatedChildren.length = 0;
  7022. has = {};
  7023. if (true) {
  7024. circular = {};
  7025. }
  7026. waiting = flushing = false;
  7027. }
  7028. // Async edge case #6566 requires saving the timestamp when event listeners are
  7029. // attached. However, calling performance.now() has a perf overhead especially
  7030. // if the page has thousands of event listeners. Instead, we take a timestamp
  7031. // every time the scheduler flushes and use that for all event listeners
  7032. // attached during that flush.
  7033. var currentFlushTimestamp = 0;
  7034. // Async edge case fix requires storing an event listener's attach timestamp.
  7035. var getNow = Date.now;
  7036. // Determine what event timestamp the browser is using. Annoyingly, the
  7037. // timestamp can either be hi-res (relative to page load) or low-res
  7038. // (relative to UNIX epoch), so in order to compare time we have to use the
  7039. // same timestamp type when saving the flush timestamp.
  7040. // All IE versions use low-res event timestamps, and have problematic clock
  7041. // implementations (#9632)
  7042. if (inBrowser && !isIE) {
  7043. var performance = window.performance;
  7044. if (
  7045. performance &&
  7046. typeof performance.now === 'function' &&
  7047. getNow() > document.createEvent('Event').timeStamp
  7048. ) {
  7049. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7050. // smaller than it, it means the event is using a hi-res timestamp,
  7051. // and we need to use the hi-res version for event listener timestamps as
  7052. // well.
  7053. getNow = function () { return performance.now(); };
  7054. }
  7055. }
  7056. /**
  7057. * Flush both queues and run the watchers.
  7058. */
  7059. function flushSchedulerQueue () {
  7060. currentFlushTimestamp = getNow();
  7061. flushing = true;
  7062. var watcher, id;
  7063. // Sort queue before flush.
  7064. // This ensures that:
  7065. // 1. Components are updated from parent to child. (because parent is always
  7066. // created before the child)
  7067. // 2. A component's user watchers are run before its render watcher (because
  7068. // user watchers are created before the render watcher)
  7069. // 3. If a component is destroyed during a parent component's watcher run,
  7070. // its watchers can be skipped.
  7071. queue.sort(function (a, b) { return a.id - b.id; });
  7072. // do not cache length because more watchers might be pushed
  7073. // as we run existing watchers
  7074. for (index = 0; index < queue.length; index++) {
  7075. watcher = queue[index];
  7076. if (watcher.before) {
  7077. watcher.before();
  7078. }
  7079. id = watcher.id;
  7080. has[id] = null;
  7081. watcher.run();
  7082. // in dev build, check and stop circular updates.
  7083. if ( true && has[id] != null) {
  7084. circular[id] = (circular[id] || 0) + 1;
  7085. if (circular[id] > MAX_UPDATE_COUNT) {
  7086. warn(
  7087. 'You may have an infinite update loop ' + (
  7088. watcher.user
  7089. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7090. : "in a component render function."
  7091. ),
  7092. watcher.vm
  7093. );
  7094. break
  7095. }
  7096. }
  7097. }
  7098. // keep copies of post queues before resetting state
  7099. var activatedQueue = activatedChildren.slice();
  7100. var updatedQueue = queue.slice();
  7101. resetSchedulerState();
  7102. // call component updated and activated hooks
  7103. callActivatedHooks(activatedQueue);
  7104. callUpdatedHooks(updatedQueue);
  7105. // devtool hook
  7106. /* istanbul ignore if */
  7107. if (devtools && config.devtools) {
  7108. devtools.emit('flush');
  7109. }
  7110. }
  7111. function callUpdatedHooks (queue) {
  7112. var i = queue.length;
  7113. while (i--) {
  7114. var watcher = queue[i];
  7115. var vm = watcher.vm;
  7116. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7117. callHook(vm, 'updated');
  7118. }
  7119. }
  7120. }
  7121. /**
  7122. * Queue a kept-alive component that was activated during patch.
  7123. * The queue will be processed after the entire tree has been patched.
  7124. */
  7125. function queueActivatedComponent (vm) {
  7126. // setting _inactive to false here so that a render function can
  7127. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7128. vm._inactive = false;
  7129. activatedChildren.push(vm);
  7130. }
  7131. function callActivatedHooks (queue) {
  7132. for (var i = 0; i < queue.length; i++) {
  7133. queue[i]._inactive = true;
  7134. activateChildComponent(queue[i], true /* true */);
  7135. }
  7136. }
  7137. /**
  7138. * Push a watcher into the watcher queue.
  7139. * Jobs with duplicate IDs will be skipped unless it's
  7140. * pushed when the queue is being flushed.
  7141. */
  7142. function queueWatcher (watcher) {
  7143. var id = watcher.id;
  7144. if (has[id] == null) {
  7145. has[id] = true;
  7146. if (!flushing) {
  7147. queue.push(watcher);
  7148. } else {
  7149. // if already flushing, splice the watcher based on its id
  7150. // if already past its id, it will be run next immediately.
  7151. var i = queue.length - 1;
  7152. while (i > index && queue[i].id > watcher.id) {
  7153. i--;
  7154. }
  7155. queue.splice(i + 1, 0, watcher);
  7156. }
  7157. // queue the flush
  7158. if (!waiting) {
  7159. waiting = true;
  7160. if ( true && !config.async) {
  7161. flushSchedulerQueue();
  7162. return
  7163. }
  7164. nextTick(flushSchedulerQueue);
  7165. }
  7166. }
  7167. }
  7168. /* */
  7169. var uid$2 = 0;
  7170. /**
  7171. * A watcher parses an expression, collects dependencies,
  7172. * and fires callback when the expression value changes.
  7173. * This is used for both the $watch() api and directives.
  7174. */
  7175. var Watcher = function Watcher (
  7176. vm,
  7177. expOrFn,
  7178. cb,
  7179. options,
  7180. isRenderWatcher
  7181. ) {
  7182. this.vm = vm;
  7183. if (isRenderWatcher) {
  7184. vm._watcher = this;
  7185. }
  7186. vm._watchers.push(this);
  7187. // options
  7188. if (options) {
  7189. this.deep = !!options.deep;
  7190. this.user = !!options.user;
  7191. this.lazy = !!options.lazy;
  7192. this.sync = !!options.sync;
  7193. this.before = options.before;
  7194. } else {
  7195. this.deep = this.user = this.lazy = this.sync = false;
  7196. }
  7197. this.cb = cb;
  7198. this.id = ++uid$2; // uid for batching
  7199. this.active = true;
  7200. this.dirty = this.lazy; // for lazy watchers
  7201. this.deps = [];
  7202. this.newDeps = [];
  7203. this.depIds = new _Set();
  7204. this.newDepIds = new _Set();
  7205. this.expression = true
  7206. ? expOrFn.toString()
  7207. : undefined;
  7208. // parse expression for getter
  7209. if (typeof expOrFn === 'function') {
  7210. this.getter = expOrFn;
  7211. } else {
  7212. this.getter = parsePath(expOrFn);
  7213. if (!this.getter) {
  7214. this.getter = noop;
  7215. true && warn(
  7216. "Failed watching path: \"" + expOrFn + "\" " +
  7217. 'Watcher only accepts simple dot-delimited paths. ' +
  7218. 'For full control, use a function instead.',
  7219. vm
  7220. );
  7221. }
  7222. }
  7223. this.value = this.lazy
  7224. ? undefined
  7225. : this.get();
  7226. };
  7227. /**
  7228. * Evaluate the getter, and re-collect dependencies.
  7229. */
  7230. Watcher.prototype.get = function get () {
  7231. pushTarget(this);
  7232. var value;
  7233. var vm = this.vm;
  7234. try {
  7235. value = this.getter.call(vm, vm);
  7236. } catch (e) {
  7237. if (this.user) {
  7238. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7239. } else {
  7240. throw e
  7241. }
  7242. } finally {
  7243. // "touch" every property so they are all tracked as
  7244. // dependencies for deep watching
  7245. if (this.deep) {
  7246. traverse(value);
  7247. }
  7248. popTarget();
  7249. this.cleanupDeps();
  7250. }
  7251. return value
  7252. };
  7253. /**
  7254. * Add a dependency to this directive.
  7255. */
  7256. Watcher.prototype.addDep = function addDep (dep) {
  7257. var id = dep.id;
  7258. if (!this.newDepIds.has(id)) {
  7259. this.newDepIds.add(id);
  7260. this.newDeps.push(dep);
  7261. if (!this.depIds.has(id)) {
  7262. dep.addSub(this);
  7263. }
  7264. }
  7265. };
  7266. /**
  7267. * Clean up for dependency collection.
  7268. */
  7269. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7270. var i = this.deps.length;
  7271. while (i--) {
  7272. var dep = this.deps[i];
  7273. if (!this.newDepIds.has(dep.id)) {
  7274. dep.removeSub(this);
  7275. }
  7276. }
  7277. var tmp = this.depIds;
  7278. this.depIds = this.newDepIds;
  7279. this.newDepIds = tmp;
  7280. this.newDepIds.clear();
  7281. tmp = this.deps;
  7282. this.deps = this.newDeps;
  7283. this.newDeps = tmp;
  7284. this.newDeps.length = 0;
  7285. };
  7286. /**
  7287. * Subscriber interface.
  7288. * Will be called when a dependency changes.
  7289. */
  7290. Watcher.prototype.update = function update () {
  7291. /* istanbul ignore else */
  7292. if (this.lazy) {
  7293. this.dirty = true;
  7294. } else if (this.sync) {
  7295. this.run();
  7296. } else {
  7297. queueWatcher(this);
  7298. }
  7299. };
  7300. /**
  7301. * Scheduler job interface.
  7302. * Will be called by the scheduler.
  7303. */
  7304. Watcher.prototype.run = function run () {
  7305. if (this.active) {
  7306. var value = this.get();
  7307. if (
  7308. value !== this.value ||
  7309. // Deep watchers and watchers on Object/Arrays should fire even
  7310. // when the value is the same, because the value may
  7311. // have mutated.
  7312. isObject(value) ||
  7313. this.deep
  7314. ) {
  7315. // set new value
  7316. var oldValue = this.value;
  7317. this.value = value;
  7318. if (this.user) {
  7319. try {
  7320. this.cb.call(this.vm, value, oldValue);
  7321. } catch (e) {
  7322. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7323. }
  7324. } else {
  7325. this.cb.call(this.vm, value, oldValue);
  7326. }
  7327. }
  7328. }
  7329. };
  7330. /**
  7331. * Evaluate the value of the watcher.
  7332. * This only gets called for lazy watchers.
  7333. */
  7334. Watcher.prototype.evaluate = function evaluate () {
  7335. this.value = this.get();
  7336. this.dirty = false;
  7337. };
  7338. /**
  7339. * Depend on all deps collected by this watcher.
  7340. */
  7341. Watcher.prototype.depend = function depend () {
  7342. var i = this.deps.length;
  7343. while (i--) {
  7344. this.deps[i].depend();
  7345. }
  7346. };
  7347. /**
  7348. * Remove self from all dependencies' subscriber list.
  7349. */
  7350. Watcher.prototype.teardown = function teardown () {
  7351. if (this.active) {
  7352. // remove self from vm's watcher list
  7353. // this is a somewhat expensive operation so we skip it
  7354. // if the vm is being destroyed.
  7355. if (!this.vm._isBeingDestroyed) {
  7356. remove(this.vm._watchers, this);
  7357. }
  7358. var i = this.deps.length;
  7359. while (i--) {
  7360. this.deps[i].removeSub(this);
  7361. }
  7362. this.active = false;
  7363. }
  7364. };
  7365. /* */
  7366. var sharedPropertyDefinition = {
  7367. enumerable: true,
  7368. configurable: true,
  7369. get: noop,
  7370. set: noop
  7371. };
  7372. function proxy (target, sourceKey, key) {
  7373. sharedPropertyDefinition.get = function proxyGetter () {
  7374. return this[sourceKey][key]
  7375. };
  7376. sharedPropertyDefinition.set = function proxySetter (val) {
  7377. this[sourceKey][key] = val;
  7378. };
  7379. Object.defineProperty(target, key, sharedPropertyDefinition);
  7380. }
  7381. function initState (vm) {
  7382. vm._watchers = [];
  7383. var opts = vm.$options;
  7384. if (opts.props) { initProps(vm, opts.props); }
  7385. if (opts.methods) { initMethods(vm, opts.methods); }
  7386. if (opts.data) {
  7387. initData(vm);
  7388. } else {
  7389. observe(vm._data = {}, true /* asRootData */);
  7390. }
  7391. if (opts.computed) { initComputed(vm, opts.computed); }
  7392. if (opts.watch && opts.watch !== nativeWatch) {
  7393. initWatch(vm, opts.watch);
  7394. }
  7395. }
  7396. function initProps (vm, propsOptions) {
  7397. var propsData = vm.$options.propsData || {};
  7398. var props = vm._props = {};
  7399. // cache prop keys so that future props updates can iterate using Array
  7400. // instead of dynamic object key enumeration.
  7401. var keys = vm.$options._propKeys = [];
  7402. var isRoot = !vm.$parent;
  7403. // root instance props should be converted
  7404. if (!isRoot) {
  7405. toggleObserving(false);
  7406. }
  7407. var loop = function ( key ) {
  7408. keys.push(key);
  7409. var value = validateProp(key, propsOptions, propsData, vm);
  7410. /* istanbul ignore else */
  7411. if (true) {
  7412. var hyphenatedKey = hyphenate(key);
  7413. if (isReservedAttribute(hyphenatedKey) ||
  7414. config.isReservedAttr(hyphenatedKey)) {
  7415. warn(
  7416. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7417. vm
  7418. );
  7419. }
  7420. defineReactive$$1(props, key, value, function () {
  7421. if (!isRoot && !isUpdatingChildComponent) {
  7422. {
  7423. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7424. return
  7425. }
  7426. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7427. if(
  7428. key === 'value' &&
  7429. Array.isArray(vm.$options.behaviors) &&
  7430. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7431. ){
  7432. return
  7433. }
  7434. if(vm._getFormData){
  7435. return
  7436. }
  7437. var $parent = vm.$parent;
  7438. while($parent){
  7439. if($parent.__next_tick_pending){
  7440. return
  7441. }
  7442. $parent = $parent.$parent;
  7443. }
  7444. }
  7445. warn(
  7446. "Avoid mutating a prop directly since the value will be " +
  7447. "overwritten whenever the parent component re-renders. " +
  7448. "Instead, use a data or computed property based on the prop's " +
  7449. "value. Prop being mutated: \"" + key + "\"",
  7450. vm
  7451. );
  7452. }
  7453. });
  7454. } else {}
  7455. // static props are already proxied on the component's prototype
  7456. // during Vue.extend(). We only need to proxy props defined at
  7457. // instantiation here.
  7458. if (!(key in vm)) {
  7459. proxy(vm, "_props", key);
  7460. }
  7461. };
  7462. for (var key in propsOptions) loop( key );
  7463. toggleObserving(true);
  7464. }
  7465. function initData (vm) {
  7466. var data = vm.$options.data;
  7467. data = vm._data = typeof data === 'function'
  7468. ? getData(data, vm)
  7469. : data || {};
  7470. if (!isPlainObject(data)) {
  7471. data = {};
  7472. true && warn(
  7473. 'data functions should return an object:\n' +
  7474. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7475. vm
  7476. );
  7477. }
  7478. // proxy data on instance
  7479. var keys = Object.keys(data);
  7480. var props = vm.$options.props;
  7481. var methods = vm.$options.methods;
  7482. var i = keys.length;
  7483. while (i--) {
  7484. var key = keys[i];
  7485. if (true) {
  7486. if (methods && hasOwn(methods, key)) {
  7487. warn(
  7488. ("Method \"" + key + "\" has already been defined as a data property."),
  7489. vm
  7490. );
  7491. }
  7492. }
  7493. if (props && hasOwn(props, key)) {
  7494. true && warn(
  7495. "The data property \"" + key + "\" is already declared as a prop. " +
  7496. "Use prop default value instead.",
  7497. vm
  7498. );
  7499. } else if (!isReserved(key)) {
  7500. proxy(vm, "_data", key);
  7501. }
  7502. }
  7503. // observe data
  7504. observe(data, true /* asRootData */);
  7505. }
  7506. function getData (data, vm) {
  7507. // #7573 disable dep collection when invoking data getters
  7508. pushTarget();
  7509. try {
  7510. return data.call(vm, vm)
  7511. } catch (e) {
  7512. handleError(e, vm, "data()");
  7513. return {}
  7514. } finally {
  7515. popTarget();
  7516. }
  7517. }
  7518. var computedWatcherOptions = { lazy: true };
  7519. function initComputed (vm, computed) {
  7520. // $flow-disable-line
  7521. var watchers = vm._computedWatchers = Object.create(null);
  7522. // computed properties are just getters during SSR
  7523. var isSSR = isServerRendering();
  7524. for (var key in computed) {
  7525. var userDef = computed[key];
  7526. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7527. if ( true && getter == null) {
  7528. warn(
  7529. ("Getter is missing for computed property \"" + key + "\"."),
  7530. vm
  7531. );
  7532. }
  7533. if (!isSSR) {
  7534. // create internal watcher for the computed property.
  7535. watchers[key] = new Watcher(
  7536. vm,
  7537. getter || noop,
  7538. noop,
  7539. computedWatcherOptions
  7540. );
  7541. }
  7542. // component-defined computed properties are already defined on the
  7543. // component prototype. We only need to define computed properties defined
  7544. // at instantiation here.
  7545. if (!(key in vm)) {
  7546. defineComputed(vm, key, userDef);
  7547. } else if (true) {
  7548. if (key in vm.$data) {
  7549. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7550. } else if (vm.$options.props && key in vm.$options.props) {
  7551. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7552. }
  7553. }
  7554. }
  7555. }
  7556. function defineComputed (
  7557. target,
  7558. key,
  7559. userDef
  7560. ) {
  7561. var shouldCache = !isServerRendering();
  7562. if (typeof userDef === 'function') {
  7563. sharedPropertyDefinition.get = shouldCache
  7564. ? createComputedGetter(key)
  7565. : createGetterInvoker(userDef);
  7566. sharedPropertyDefinition.set = noop;
  7567. } else {
  7568. sharedPropertyDefinition.get = userDef.get
  7569. ? shouldCache && userDef.cache !== false
  7570. ? createComputedGetter(key)
  7571. : createGetterInvoker(userDef.get)
  7572. : noop;
  7573. sharedPropertyDefinition.set = userDef.set || noop;
  7574. }
  7575. if ( true &&
  7576. sharedPropertyDefinition.set === noop) {
  7577. sharedPropertyDefinition.set = function () {
  7578. warn(
  7579. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7580. this
  7581. );
  7582. };
  7583. }
  7584. Object.defineProperty(target, key, sharedPropertyDefinition);
  7585. }
  7586. function createComputedGetter (key) {
  7587. return function computedGetter () {
  7588. var watcher = this._computedWatchers && this._computedWatchers[key];
  7589. if (watcher) {
  7590. if (watcher.dirty) {
  7591. watcher.evaluate();
  7592. }
  7593. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7594. watcher.depend();
  7595. }
  7596. return watcher.value
  7597. }
  7598. }
  7599. }
  7600. function createGetterInvoker(fn) {
  7601. return function computedGetter () {
  7602. return fn.call(this, this)
  7603. }
  7604. }
  7605. function initMethods (vm, methods) {
  7606. var props = vm.$options.props;
  7607. for (var key in methods) {
  7608. if (true) {
  7609. if (typeof methods[key] !== 'function') {
  7610. warn(
  7611. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7612. "Did you reference the function correctly?",
  7613. vm
  7614. );
  7615. }
  7616. if (props && hasOwn(props, key)) {
  7617. warn(
  7618. ("Method \"" + key + "\" has already been defined as a prop."),
  7619. vm
  7620. );
  7621. }
  7622. if ((key in vm) && isReserved(key)) {
  7623. warn(
  7624. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7625. "Avoid defining component methods that start with _ or $."
  7626. );
  7627. }
  7628. }
  7629. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7630. }
  7631. }
  7632. function initWatch (vm, watch) {
  7633. for (var key in watch) {
  7634. var handler = watch[key];
  7635. if (Array.isArray(handler)) {
  7636. for (var i = 0; i < handler.length; i++) {
  7637. createWatcher(vm, key, handler[i]);
  7638. }
  7639. } else {
  7640. createWatcher(vm, key, handler);
  7641. }
  7642. }
  7643. }
  7644. function createWatcher (
  7645. vm,
  7646. expOrFn,
  7647. handler,
  7648. options
  7649. ) {
  7650. if (isPlainObject(handler)) {
  7651. options = handler;
  7652. handler = handler.handler;
  7653. }
  7654. if (typeof handler === 'string') {
  7655. handler = vm[handler];
  7656. }
  7657. return vm.$watch(expOrFn, handler, options)
  7658. }
  7659. function stateMixin (Vue) {
  7660. // flow somehow has problems with directly declared definition object
  7661. // when using Object.defineProperty, so we have to procedurally build up
  7662. // the object here.
  7663. var dataDef = {};
  7664. dataDef.get = function () { return this._data };
  7665. var propsDef = {};
  7666. propsDef.get = function () { return this._props };
  7667. if (true) {
  7668. dataDef.set = function () {
  7669. warn(
  7670. 'Avoid replacing instance root $data. ' +
  7671. 'Use nested data properties instead.',
  7672. this
  7673. );
  7674. };
  7675. propsDef.set = function () {
  7676. warn("$props is readonly.", this);
  7677. };
  7678. }
  7679. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7680. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7681. Vue.prototype.$set = set;
  7682. Vue.prototype.$delete = del;
  7683. Vue.prototype.$watch = function (
  7684. expOrFn,
  7685. cb,
  7686. options
  7687. ) {
  7688. var vm = this;
  7689. if (isPlainObject(cb)) {
  7690. return createWatcher(vm, expOrFn, cb, options)
  7691. }
  7692. options = options || {};
  7693. options.user = true;
  7694. var watcher = new Watcher(vm, expOrFn, cb, options);
  7695. if (options.immediate) {
  7696. try {
  7697. cb.call(vm, watcher.value);
  7698. } catch (error) {
  7699. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7700. }
  7701. }
  7702. return function unwatchFn () {
  7703. watcher.teardown();
  7704. }
  7705. };
  7706. }
  7707. /* */
  7708. var uid$3 = 0;
  7709. function initMixin (Vue) {
  7710. Vue.prototype._init = function (options) {
  7711. var vm = this;
  7712. // a uid
  7713. vm._uid = uid$3++;
  7714. var startTag, endTag;
  7715. /* istanbul ignore if */
  7716. if ( true && config.performance && mark) {
  7717. startTag = "vue-perf-start:" + (vm._uid);
  7718. endTag = "vue-perf-end:" + (vm._uid);
  7719. mark(startTag);
  7720. }
  7721. // a flag to avoid this being observed
  7722. vm._isVue = true;
  7723. // merge options
  7724. if (options && options._isComponent) {
  7725. // optimize internal component instantiation
  7726. // since dynamic options merging is pretty slow, and none of the
  7727. // internal component options needs special treatment.
  7728. initInternalComponent(vm, options);
  7729. } else {
  7730. vm.$options = mergeOptions(
  7731. resolveConstructorOptions(vm.constructor),
  7732. options || {},
  7733. vm
  7734. );
  7735. }
  7736. /* istanbul ignore else */
  7737. if (true) {
  7738. initProxy(vm);
  7739. } else {}
  7740. // expose real self
  7741. vm._self = vm;
  7742. initLifecycle(vm);
  7743. initEvents(vm);
  7744. initRender(vm);
  7745. callHook(vm, 'beforeCreate');
  7746. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7747. initState(vm);
  7748. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7749. !vm._$fallback && callHook(vm, 'created');
  7750. /* istanbul ignore if */
  7751. if ( true && config.performance && mark) {
  7752. vm._name = formatComponentName(vm, false);
  7753. mark(endTag);
  7754. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7755. }
  7756. if (vm.$options.el) {
  7757. vm.$mount(vm.$options.el);
  7758. }
  7759. };
  7760. }
  7761. function initInternalComponent (vm, options) {
  7762. var opts = vm.$options = Object.create(vm.constructor.options);
  7763. // doing this because it's faster than dynamic enumeration.
  7764. var parentVnode = options._parentVnode;
  7765. opts.parent = options.parent;
  7766. opts._parentVnode = parentVnode;
  7767. var vnodeComponentOptions = parentVnode.componentOptions;
  7768. opts.propsData = vnodeComponentOptions.propsData;
  7769. opts._parentListeners = vnodeComponentOptions.listeners;
  7770. opts._renderChildren = vnodeComponentOptions.children;
  7771. opts._componentTag = vnodeComponentOptions.tag;
  7772. if (options.render) {
  7773. opts.render = options.render;
  7774. opts.staticRenderFns = options.staticRenderFns;
  7775. }
  7776. }
  7777. function resolveConstructorOptions (Ctor) {
  7778. var options = Ctor.options;
  7779. if (Ctor.super) {
  7780. var superOptions = resolveConstructorOptions(Ctor.super);
  7781. var cachedSuperOptions = Ctor.superOptions;
  7782. if (superOptions !== cachedSuperOptions) {
  7783. // super option changed,
  7784. // need to resolve new options.
  7785. Ctor.superOptions = superOptions;
  7786. // check if there are any late-modified/attached options (#4976)
  7787. var modifiedOptions = resolveModifiedOptions(Ctor);
  7788. // update base extend options
  7789. if (modifiedOptions) {
  7790. extend(Ctor.extendOptions, modifiedOptions);
  7791. }
  7792. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7793. if (options.name) {
  7794. options.components[options.name] = Ctor;
  7795. }
  7796. }
  7797. }
  7798. return options
  7799. }
  7800. function resolveModifiedOptions (Ctor) {
  7801. var modified;
  7802. var latest = Ctor.options;
  7803. var sealed = Ctor.sealedOptions;
  7804. for (var key in latest) {
  7805. if (latest[key] !== sealed[key]) {
  7806. if (!modified) { modified = {}; }
  7807. modified[key] = latest[key];
  7808. }
  7809. }
  7810. return modified
  7811. }
  7812. function Vue (options) {
  7813. if ( true &&
  7814. !(this instanceof Vue)
  7815. ) {
  7816. warn('Vue is a constructor and should be called with the `new` keyword');
  7817. }
  7818. this._init(options);
  7819. }
  7820. initMixin(Vue);
  7821. stateMixin(Vue);
  7822. eventsMixin(Vue);
  7823. lifecycleMixin(Vue);
  7824. renderMixin(Vue);
  7825. /* */
  7826. function initUse (Vue) {
  7827. Vue.use = function (plugin) {
  7828. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7829. if (installedPlugins.indexOf(plugin) > -1) {
  7830. return this
  7831. }
  7832. // additional parameters
  7833. var args = toArray(arguments, 1);
  7834. args.unshift(this);
  7835. if (typeof plugin.install === 'function') {
  7836. plugin.install.apply(plugin, args);
  7837. } else if (typeof plugin === 'function') {
  7838. plugin.apply(null, args);
  7839. }
  7840. installedPlugins.push(plugin);
  7841. return this
  7842. };
  7843. }
  7844. /* */
  7845. function initMixin$1 (Vue) {
  7846. Vue.mixin = function (mixin) {
  7847. this.options = mergeOptions(this.options, mixin);
  7848. return this
  7849. };
  7850. }
  7851. /* */
  7852. function initExtend (Vue) {
  7853. /**
  7854. * Each instance constructor, including Vue, has a unique
  7855. * cid. This enables us to create wrapped "child
  7856. * constructors" for prototypal inheritance and cache them.
  7857. */
  7858. Vue.cid = 0;
  7859. var cid = 1;
  7860. /**
  7861. * Class inheritance
  7862. */
  7863. Vue.extend = function (extendOptions) {
  7864. extendOptions = extendOptions || {};
  7865. var Super = this;
  7866. var SuperId = Super.cid;
  7867. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7868. if (cachedCtors[SuperId]) {
  7869. return cachedCtors[SuperId]
  7870. }
  7871. var name = extendOptions.name || Super.options.name;
  7872. if ( true && name) {
  7873. validateComponentName(name);
  7874. }
  7875. var Sub = function VueComponent (options) {
  7876. this._init(options);
  7877. };
  7878. Sub.prototype = Object.create(Super.prototype);
  7879. Sub.prototype.constructor = Sub;
  7880. Sub.cid = cid++;
  7881. Sub.options = mergeOptions(
  7882. Super.options,
  7883. extendOptions
  7884. );
  7885. Sub['super'] = Super;
  7886. // For props and computed properties, we define the proxy getters on
  7887. // the Vue instances at extension time, on the extended prototype. This
  7888. // avoids Object.defineProperty calls for each instance created.
  7889. if (Sub.options.props) {
  7890. initProps$1(Sub);
  7891. }
  7892. if (Sub.options.computed) {
  7893. initComputed$1(Sub);
  7894. }
  7895. // allow further extension/mixin/plugin usage
  7896. Sub.extend = Super.extend;
  7897. Sub.mixin = Super.mixin;
  7898. Sub.use = Super.use;
  7899. // create asset registers, so extended classes
  7900. // can have their private assets too.
  7901. ASSET_TYPES.forEach(function (type) {
  7902. Sub[type] = Super[type];
  7903. });
  7904. // enable recursive self-lookup
  7905. if (name) {
  7906. Sub.options.components[name] = Sub;
  7907. }
  7908. // keep a reference to the super options at extension time.
  7909. // later at instantiation we can check if Super's options have
  7910. // been updated.
  7911. Sub.superOptions = Super.options;
  7912. Sub.extendOptions = extendOptions;
  7913. Sub.sealedOptions = extend({}, Sub.options);
  7914. // cache constructor
  7915. cachedCtors[SuperId] = Sub;
  7916. return Sub
  7917. };
  7918. }
  7919. function initProps$1 (Comp) {
  7920. var props = Comp.options.props;
  7921. for (var key in props) {
  7922. proxy(Comp.prototype, "_props", key);
  7923. }
  7924. }
  7925. function initComputed$1 (Comp) {
  7926. var computed = Comp.options.computed;
  7927. for (var key in computed) {
  7928. defineComputed(Comp.prototype, key, computed[key]);
  7929. }
  7930. }
  7931. /* */
  7932. function initAssetRegisters (Vue) {
  7933. /**
  7934. * Create asset registration methods.
  7935. */
  7936. ASSET_TYPES.forEach(function (type) {
  7937. Vue[type] = function (
  7938. id,
  7939. definition
  7940. ) {
  7941. if (!definition) {
  7942. return this.options[type + 's'][id]
  7943. } else {
  7944. /* istanbul ignore if */
  7945. if ( true && type === 'component') {
  7946. validateComponentName(id);
  7947. }
  7948. if (type === 'component' && isPlainObject(definition)) {
  7949. definition.name = definition.name || id;
  7950. definition = this.options._base.extend(definition);
  7951. }
  7952. if (type === 'directive' && typeof definition === 'function') {
  7953. definition = { bind: definition, update: definition };
  7954. }
  7955. this.options[type + 's'][id] = definition;
  7956. return definition
  7957. }
  7958. };
  7959. });
  7960. }
  7961. /* */
  7962. function getComponentName (opts) {
  7963. return opts && (opts.Ctor.options.name || opts.tag)
  7964. }
  7965. function matches (pattern, name) {
  7966. if (Array.isArray(pattern)) {
  7967. return pattern.indexOf(name) > -1
  7968. } else if (typeof pattern === 'string') {
  7969. return pattern.split(',').indexOf(name) > -1
  7970. } else if (isRegExp(pattern)) {
  7971. return pattern.test(name)
  7972. }
  7973. /* istanbul ignore next */
  7974. return false
  7975. }
  7976. function pruneCache (keepAliveInstance, filter) {
  7977. var cache = keepAliveInstance.cache;
  7978. var keys = keepAliveInstance.keys;
  7979. var _vnode = keepAliveInstance._vnode;
  7980. for (var key in cache) {
  7981. var cachedNode = cache[key];
  7982. if (cachedNode) {
  7983. var name = getComponentName(cachedNode.componentOptions);
  7984. if (name && !filter(name)) {
  7985. pruneCacheEntry(cache, key, keys, _vnode);
  7986. }
  7987. }
  7988. }
  7989. }
  7990. function pruneCacheEntry (
  7991. cache,
  7992. key,
  7993. keys,
  7994. current
  7995. ) {
  7996. var cached$$1 = cache[key];
  7997. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  7998. cached$$1.componentInstance.$destroy();
  7999. }
  8000. cache[key] = null;
  8001. remove(keys, key);
  8002. }
  8003. var patternTypes = [String, RegExp, Array];
  8004. var KeepAlive = {
  8005. name: 'keep-alive',
  8006. abstract: true,
  8007. props: {
  8008. include: patternTypes,
  8009. exclude: patternTypes,
  8010. max: [String, Number]
  8011. },
  8012. created: function created () {
  8013. this.cache = Object.create(null);
  8014. this.keys = [];
  8015. },
  8016. destroyed: function destroyed () {
  8017. for (var key in this.cache) {
  8018. pruneCacheEntry(this.cache, key, this.keys);
  8019. }
  8020. },
  8021. mounted: function mounted () {
  8022. var this$1 = this;
  8023. this.$watch('include', function (val) {
  8024. pruneCache(this$1, function (name) { return matches(val, name); });
  8025. });
  8026. this.$watch('exclude', function (val) {
  8027. pruneCache(this$1, function (name) { return !matches(val, name); });
  8028. });
  8029. },
  8030. render: function render () {
  8031. var slot = this.$slots.default;
  8032. var vnode = getFirstComponentChild(slot);
  8033. var componentOptions = vnode && vnode.componentOptions;
  8034. if (componentOptions) {
  8035. // check pattern
  8036. var name = getComponentName(componentOptions);
  8037. var ref = this;
  8038. var include = ref.include;
  8039. var exclude = ref.exclude;
  8040. if (
  8041. // not included
  8042. (include && (!name || !matches(include, name))) ||
  8043. // excluded
  8044. (exclude && name && matches(exclude, name))
  8045. ) {
  8046. return vnode
  8047. }
  8048. var ref$1 = this;
  8049. var cache = ref$1.cache;
  8050. var keys = ref$1.keys;
  8051. var key = vnode.key == null
  8052. // same constructor may get registered as different local components
  8053. // so cid alone is not enough (#3269)
  8054. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8055. : vnode.key;
  8056. if (cache[key]) {
  8057. vnode.componentInstance = cache[key].componentInstance;
  8058. // make current key freshest
  8059. remove(keys, key);
  8060. keys.push(key);
  8061. } else {
  8062. cache[key] = vnode;
  8063. keys.push(key);
  8064. // prune oldest entry
  8065. if (this.max && keys.length > parseInt(this.max)) {
  8066. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8067. }
  8068. }
  8069. vnode.data.keepAlive = true;
  8070. }
  8071. return vnode || (slot && slot[0])
  8072. }
  8073. };
  8074. var builtInComponents = {
  8075. KeepAlive: KeepAlive
  8076. };
  8077. /* */
  8078. function initGlobalAPI (Vue) {
  8079. // config
  8080. var configDef = {};
  8081. configDef.get = function () { return config; };
  8082. if (true) {
  8083. configDef.set = function () {
  8084. warn(
  8085. 'Do not replace the Vue.config object, set individual fields instead.'
  8086. );
  8087. };
  8088. }
  8089. Object.defineProperty(Vue, 'config', configDef);
  8090. // exposed util methods.
  8091. // NOTE: these are not considered part of the public API - avoid relying on
  8092. // them unless you are aware of the risk.
  8093. Vue.util = {
  8094. warn: warn,
  8095. extend: extend,
  8096. mergeOptions: mergeOptions,
  8097. defineReactive: defineReactive$$1
  8098. };
  8099. Vue.set = set;
  8100. Vue.delete = del;
  8101. Vue.nextTick = nextTick;
  8102. // 2.6 explicit observable API
  8103. Vue.observable = function (obj) {
  8104. observe(obj);
  8105. return obj
  8106. };
  8107. Vue.options = Object.create(null);
  8108. ASSET_TYPES.forEach(function (type) {
  8109. Vue.options[type + 's'] = Object.create(null);
  8110. });
  8111. // this is used to identify the "base" constructor to extend all plain-object
  8112. // components with in Weex's multi-instance scenarios.
  8113. Vue.options._base = Vue;
  8114. extend(Vue.options.components, builtInComponents);
  8115. initUse(Vue);
  8116. initMixin$1(Vue);
  8117. initExtend(Vue);
  8118. initAssetRegisters(Vue);
  8119. }
  8120. initGlobalAPI(Vue);
  8121. Object.defineProperty(Vue.prototype, '$isServer', {
  8122. get: isServerRendering
  8123. });
  8124. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8125. get: function get () {
  8126. /* istanbul ignore next */
  8127. return this.$vnode && this.$vnode.ssrContext
  8128. }
  8129. });
  8130. // expose FunctionalRenderContext for ssr runtime helper installation
  8131. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8132. value: FunctionalRenderContext
  8133. });
  8134. Vue.version = '2.6.11';
  8135. /**
  8136. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8137. */
  8138. var ARRAYTYPE = '[object Array]';
  8139. var OBJECTTYPE = '[object Object]';
  8140. var NULLTYPE = '[object Null]';
  8141. var UNDEFINEDTYPE = '[object Undefined]';
  8142. // const FUNCTIONTYPE = '[object Function]'
  8143. function diff(current, pre) {
  8144. var result = {};
  8145. syncKeys(current, pre);
  8146. _diff(current, pre, '', result);
  8147. return result
  8148. }
  8149. function syncKeys(current, pre) {
  8150. if (current === pre) { return }
  8151. var rootCurrentType = type(current);
  8152. var rootPreType = type(pre);
  8153. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8154. if(Object.keys(current).length >= Object.keys(pre).length){
  8155. for (var key in pre) {
  8156. var currentValue = current[key];
  8157. if (currentValue === undefined) {
  8158. current[key] = null;
  8159. } else {
  8160. syncKeys(currentValue, pre[key]);
  8161. }
  8162. }
  8163. }
  8164. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8165. if (current.length >= pre.length) {
  8166. pre.forEach(function (item, index) {
  8167. syncKeys(current[index], item);
  8168. });
  8169. }
  8170. }
  8171. }
  8172. function nullOrUndefined(currentType, preType) {
  8173. if(
  8174. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8175. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8176. ) {
  8177. return false
  8178. }
  8179. return true
  8180. }
  8181. function _diff(current, pre, path, result) {
  8182. if (current === pre) { return }
  8183. var rootCurrentType = type(current);
  8184. var rootPreType = type(pre);
  8185. if (rootCurrentType == OBJECTTYPE) {
  8186. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8187. setResult(result, path, current);
  8188. } else {
  8189. var loop = function ( key ) {
  8190. var currentValue = current[key];
  8191. var preValue = pre[key];
  8192. var currentType = type(currentValue);
  8193. var preType = type(preValue);
  8194. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8195. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8196. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8197. }
  8198. } else if (currentType == ARRAYTYPE) {
  8199. if (preType != ARRAYTYPE) {
  8200. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8201. } else {
  8202. if (currentValue.length < preValue.length) {
  8203. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8204. } else {
  8205. currentValue.forEach(function (item, index) {
  8206. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8207. });
  8208. }
  8209. }
  8210. } else if (currentType == OBJECTTYPE) {
  8211. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8212. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8213. } else {
  8214. for (var subKey in currentValue) {
  8215. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8216. }
  8217. }
  8218. }
  8219. };
  8220. for (var key in current) loop( key );
  8221. }
  8222. } else if (rootCurrentType == ARRAYTYPE) {
  8223. if (rootPreType != ARRAYTYPE) {
  8224. setResult(result, path, current);
  8225. } else {
  8226. if (current.length < pre.length) {
  8227. setResult(result, path, current);
  8228. } else {
  8229. current.forEach(function (item, index) {
  8230. _diff(item, pre[index], path + '[' + index + ']', result);
  8231. });
  8232. }
  8233. }
  8234. } else {
  8235. setResult(result, path, current);
  8236. }
  8237. }
  8238. function setResult(result, k, v) {
  8239. // if (type(v) != FUNCTIONTYPE) {
  8240. result[k] = v;
  8241. // }
  8242. }
  8243. function type(obj) {
  8244. return Object.prototype.toString.call(obj)
  8245. }
  8246. /* */
  8247. function flushCallbacks$1(vm) {
  8248. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8249. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8250. var mpInstance = vm.$scope;
  8251. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8252. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8253. }
  8254. var copies = vm.__next_tick_callbacks.slice(0);
  8255. vm.__next_tick_callbacks.length = 0;
  8256. for (var i = 0; i < copies.length; i++) {
  8257. copies[i]();
  8258. }
  8259. }
  8260. }
  8261. function hasRenderWatcher(vm) {
  8262. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8263. }
  8264. function nextTick$1(vm, cb) {
  8265. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8266. //2.nextTick 之前存在 render watcher
  8267. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8268. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8269. var mpInstance = vm.$scope;
  8270. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8271. ']:nextVueTick');
  8272. }
  8273. return nextTick(cb, vm)
  8274. }else{
  8275. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8276. var mpInstance$1 = vm.$scope;
  8277. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8278. ']:nextMPTick');
  8279. }
  8280. }
  8281. var _resolve;
  8282. if (!vm.__next_tick_callbacks) {
  8283. vm.__next_tick_callbacks = [];
  8284. }
  8285. vm.__next_tick_callbacks.push(function () {
  8286. if (cb) {
  8287. try {
  8288. cb.call(vm);
  8289. } catch (e) {
  8290. handleError(e, vm, 'nextTick');
  8291. }
  8292. } else if (_resolve) {
  8293. _resolve(vm);
  8294. }
  8295. });
  8296. // $flow-disable-line
  8297. if (!cb && typeof Promise !== 'undefined') {
  8298. return new Promise(function (resolve) {
  8299. _resolve = resolve;
  8300. })
  8301. }
  8302. }
  8303. /* */
  8304. function clearInstance(key, value) {
  8305. // 简易去除 Vue 和小程序组件实例
  8306. if (value) {
  8307. if (value._isVue || value.__v_isMPComponent) {
  8308. return {}
  8309. }
  8310. }
  8311. return value
  8312. }
  8313. function cloneWithData(vm) {
  8314. // 确保当前 vm 所有数据被同步
  8315. var ret = Object.create(null);
  8316. var dataKeys = [].concat(
  8317. Object.keys(vm._data || {}),
  8318. Object.keys(vm._computedWatchers || {}));
  8319. dataKeys.reduce(function(ret, key) {
  8320. ret[key] = vm[key];
  8321. return ret
  8322. }, ret);
  8323. // vue-composition-api
  8324. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8325. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8326. if (rawBindings) {
  8327. Object.keys(rawBindings).forEach(function (key) {
  8328. ret[key] = vm[key];
  8329. });
  8330. }
  8331. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8332. Object.assign(ret, vm.$mp.data || {});
  8333. if (
  8334. Array.isArray(vm.$options.behaviors) &&
  8335. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8336. ) { //form-field
  8337. ret['name'] = vm.name;
  8338. ret['value'] = vm.value;
  8339. }
  8340. return JSON.parse(JSON.stringify(ret, clearInstance))
  8341. }
  8342. var patch = function(oldVnode, vnode) {
  8343. var this$1 = this;
  8344. if (vnode === null) { //destroy
  8345. return
  8346. }
  8347. if (this.mpType === 'page' || this.mpType === 'component') {
  8348. var mpInstance = this.$scope;
  8349. var data = Object.create(null);
  8350. try {
  8351. data = cloneWithData(this);
  8352. } catch (err) {
  8353. console.error(err);
  8354. }
  8355. data.__webviewId__ = mpInstance.data.__webviewId__;
  8356. var mpData = Object.create(null);
  8357. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8358. mpData[key] = mpInstance.data[key];
  8359. });
  8360. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8361. if (Object.keys(diffData).length) {
  8362. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8363. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8364. ']差量更新',
  8365. JSON.stringify(diffData));
  8366. }
  8367. this.__next_tick_pending = true;
  8368. mpInstance.setData(diffData, function () {
  8369. this$1.__next_tick_pending = false;
  8370. flushCallbacks$1(this$1);
  8371. });
  8372. } else {
  8373. flushCallbacks$1(this);
  8374. }
  8375. }
  8376. };
  8377. /* */
  8378. function createEmptyRender() {
  8379. }
  8380. function mountComponent$1(
  8381. vm,
  8382. el,
  8383. hydrating
  8384. ) {
  8385. if (!vm.mpType) {//main.js 中的 new Vue
  8386. return vm
  8387. }
  8388. if (vm.mpType === 'app') {
  8389. vm.$options.render = createEmptyRender;
  8390. }
  8391. if (!vm.$options.render) {
  8392. vm.$options.render = createEmptyRender;
  8393. if (true) {
  8394. /* istanbul ignore if */
  8395. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8396. vm.$options.el || el) {
  8397. warn(
  8398. 'You are using the runtime-only build of Vue where the template ' +
  8399. 'compiler is not available. Either pre-compile the templates into ' +
  8400. 'render functions, or use the compiler-included build.',
  8401. vm
  8402. );
  8403. } else {
  8404. warn(
  8405. 'Failed to mount component: template or render function not defined.',
  8406. vm
  8407. );
  8408. }
  8409. }
  8410. }
  8411. !vm._$fallback && callHook(vm, 'beforeMount');
  8412. var updateComponent = function () {
  8413. vm._update(vm._render(), hydrating);
  8414. };
  8415. // we set this to vm._watcher inside the watcher's constructor
  8416. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8417. // component's mounted hook), which relies on vm._watcher being already defined
  8418. new Watcher(vm, updateComponent, noop, {
  8419. before: function before() {
  8420. if (vm._isMounted && !vm._isDestroyed) {
  8421. callHook(vm, 'beforeUpdate');
  8422. }
  8423. }
  8424. }, true /* isRenderWatcher */);
  8425. hydrating = false;
  8426. return vm
  8427. }
  8428. /* */
  8429. function renderClass (
  8430. staticClass,
  8431. dynamicClass
  8432. ) {
  8433. if (isDef(staticClass) || isDef(dynamicClass)) {
  8434. return concat(staticClass, stringifyClass(dynamicClass))
  8435. }
  8436. /* istanbul ignore next */
  8437. return ''
  8438. }
  8439. function concat (a, b) {
  8440. return a ? b ? (a + ' ' + b) : a : (b || '')
  8441. }
  8442. function stringifyClass (value) {
  8443. if (Array.isArray(value)) {
  8444. return stringifyArray(value)
  8445. }
  8446. if (isObject(value)) {
  8447. return stringifyObject(value)
  8448. }
  8449. if (typeof value === 'string') {
  8450. return value
  8451. }
  8452. /* istanbul ignore next */
  8453. return ''
  8454. }
  8455. function stringifyArray (value) {
  8456. var res = '';
  8457. var stringified;
  8458. for (var i = 0, l = value.length; i < l; i++) {
  8459. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8460. if (res) { res += ' '; }
  8461. res += stringified;
  8462. }
  8463. }
  8464. return res
  8465. }
  8466. function stringifyObject (value) {
  8467. var res = '';
  8468. for (var key in value) {
  8469. if (value[key]) {
  8470. if (res) { res += ' '; }
  8471. res += key;
  8472. }
  8473. }
  8474. return res
  8475. }
  8476. /* */
  8477. var parseStyleText = cached(function (cssText) {
  8478. var res = {};
  8479. var listDelimiter = /;(?![^(]*\))/g;
  8480. var propertyDelimiter = /:(.+)/;
  8481. cssText.split(listDelimiter).forEach(function (item) {
  8482. if (item) {
  8483. var tmp = item.split(propertyDelimiter);
  8484. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8485. }
  8486. });
  8487. return res
  8488. });
  8489. // normalize possible array / string values into Object
  8490. function normalizeStyleBinding (bindingStyle) {
  8491. if (Array.isArray(bindingStyle)) {
  8492. return toObject(bindingStyle)
  8493. }
  8494. if (typeof bindingStyle === 'string') {
  8495. return parseStyleText(bindingStyle)
  8496. }
  8497. return bindingStyle
  8498. }
  8499. /* */
  8500. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8501. function getTarget(obj, path) {
  8502. var parts = path.split('.');
  8503. var key = parts[0];
  8504. if (key.indexOf('__$n') === 0) { //number index
  8505. key = parseInt(key.replace('__$n', ''));
  8506. }
  8507. if (parts.length === 1) {
  8508. return obj[key]
  8509. }
  8510. return getTarget(obj[key], parts.slice(1).join('.'))
  8511. }
  8512. function internalMixin(Vue) {
  8513. Vue.config.errorHandler = function(err, vm, info) {
  8514. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8515. console.error(err);
  8516. /* eslint-disable no-undef */
  8517. var app = typeof getApp === 'function' && getApp();
  8518. if (app && app.onError) {
  8519. app.onError(err);
  8520. }
  8521. };
  8522. var oldEmit = Vue.prototype.$emit;
  8523. Vue.prototype.$emit = function(event) {
  8524. if (this.$scope && event) {
  8525. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8526. if (triggerEvent) {
  8527. try {
  8528. triggerEvent.call(this.$scope, event, {
  8529. __args__: toArray(arguments, 1)
  8530. });
  8531. } catch (error) {
  8532. }
  8533. }
  8534. }
  8535. return oldEmit.apply(this, arguments)
  8536. };
  8537. Vue.prototype.$nextTick = function(fn) {
  8538. return nextTick$1(this, fn)
  8539. };
  8540. MP_METHODS.forEach(function (method) {
  8541. Vue.prototype[method] = function(args) {
  8542. if (this.$scope && this.$scope[method]) {
  8543. return this.$scope[method](args)
  8544. }
  8545. // mp-alipay
  8546. if (typeof my === 'undefined') {
  8547. return
  8548. }
  8549. if (method === 'createSelectorQuery') {
  8550. /* eslint-disable no-undef */
  8551. return my.createSelectorQuery(args)
  8552. } else if (method === 'createIntersectionObserver') {
  8553. /* eslint-disable no-undef */
  8554. return my.createIntersectionObserver(args)
  8555. }
  8556. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8557. };
  8558. });
  8559. Vue.prototype.__init_provide = initProvide;
  8560. Vue.prototype.__init_injections = initInjections;
  8561. Vue.prototype.__call_hook = function(hook, args) {
  8562. var vm = this;
  8563. // #7573 disable dep collection when invoking lifecycle hooks
  8564. pushTarget();
  8565. var handlers = vm.$options[hook];
  8566. var info = hook + " hook";
  8567. var ret;
  8568. if (handlers) {
  8569. for (var i = 0, j = handlers.length; i < j; i++) {
  8570. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8571. }
  8572. }
  8573. if (vm._hasHookEvent) {
  8574. vm.$emit('hook:' + hook, args);
  8575. }
  8576. popTarget();
  8577. return ret
  8578. };
  8579. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8580. if (Array.isArray(modifiers)) {
  8581. if (modifiers.indexOf('trim') !== -1) {
  8582. value = value.trim();
  8583. }
  8584. if (modifiers.indexOf('number') !== -1) {
  8585. value = this._n(value);
  8586. }
  8587. }
  8588. if (!target) {
  8589. target = this;
  8590. }
  8591. // 解决动态属性添加
  8592. Vue.set(target, key, value);
  8593. };
  8594. Vue.prototype.__set_sync = function(target, key, value) {
  8595. if (!target) {
  8596. target = this;
  8597. }
  8598. // 解决动态属性添加
  8599. Vue.set(target, key, value);
  8600. };
  8601. Vue.prototype.__get_orig = function(item) {
  8602. if (isPlainObject(item)) {
  8603. return item['$orig'] || item
  8604. }
  8605. return item
  8606. };
  8607. Vue.prototype.__get_value = function(dataPath, target) {
  8608. return getTarget(target || this, dataPath)
  8609. };
  8610. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8611. return renderClass(staticClass, dynamicClass)
  8612. };
  8613. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8614. if (!dynamicStyle && !staticStyle) {
  8615. return ''
  8616. }
  8617. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8618. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8619. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8620. };
  8621. Vue.prototype.__map = function(val, iteratee) {
  8622. //TODO 暂不考虑 string
  8623. var ret, i, l, keys, key;
  8624. if (Array.isArray(val)) {
  8625. ret = new Array(val.length);
  8626. for (i = 0, l = val.length; i < l; i++) {
  8627. ret[i] = iteratee(val[i], i);
  8628. }
  8629. return ret
  8630. } else if (isObject(val)) {
  8631. keys = Object.keys(val);
  8632. ret = Object.create(null);
  8633. for (i = 0, l = keys.length; i < l; i++) {
  8634. key = keys[i];
  8635. ret[key] = iteratee(val[key], key, i);
  8636. }
  8637. return ret
  8638. } else if (typeof val === 'number') {
  8639. ret = new Array(val);
  8640. for (i = 0, l = val; i < l; i++) {
  8641. // 第一个参数暂时仍和小程序一致
  8642. ret[i] = iteratee(i, i);
  8643. }
  8644. return ret
  8645. }
  8646. return []
  8647. };
  8648. }
  8649. /* */
  8650. var LIFECYCLE_HOOKS$1 = [
  8651. //App
  8652. 'onLaunch',
  8653. 'onShow',
  8654. 'onHide',
  8655. 'onUniNViewMessage',
  8656. 'onPageNotFound',
  8657. 'onThemeChange',
  8658. 'onError',
  8659. 'onUnhandledRejection',
  8660. //Page
  8661. 'onInit',
  8662. 'onLoad',
  8663. // 'onShow',
  8664. 'onReady',
  8665. // 'onHide',
  8666. 'onUnload',
  8667. 'onPullDownRefresh',
  8668. 'onReachBottom',
  8669. 'onTabItemTap',
  8670. 'onAddToFavorites',
  8671. 'onShareTimeline',
  8672. 'onShareAppMessage',
  8673. 'onResize',
  8674. 'onPageScroll',
  8675. 'onNavigationBarButtonTap',
  8676. 'onBackPress',
  8677. 'onNavigationBarSearchInputChanged',
  8678. 'onNavigationBarSearchInputConfirmed',
  8679. 'onNavigationBarSearchInputClicked',
  8680. 'onUploadDouyinVideo',
  8681. 'onNFCReadMessage',
  8682. //Component
  8683. // 'onReady', // 兼容旧版本,应该移除该事件
  8684. 'onPageShow',
  8685. 'onPageHide',
  8686. 'onPageResize'
  8687. ];
  8688. function lifecycleMixin$1(Vue) {
  8689. //fixed vue-class-component
  8690. var oldExtend = Vue.extend;
  8691. Vue.extend = function(extendOptions) {
  8692. extendOptions = extendOptions || {};
  8693. var methods = extendOptions.methods;
  8694. if (methods) {
  8695. Object.keys(methods).forEach(function (methodName) {
  8696. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8697. extendOptions[methodName] = methods[methodName];
  8698. delete methods[methodName];
  8699. }
  8700. });
  8701. }
  8702. return oldExtend.call(this, extendOptions)
  8703. };
  8704. var strategies = Vue.config.optionMergeStrategies;
  8705. var mergeHook = strategies.created;
  8706. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8707. strategies[hook] = mergeHook;
  8708. });
  8709. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8710. }
  8711. /* */
  8712. // install platform patch function
  8713. Vue.prototype.__patch__ = patch;
  8714. // public mount method
  8715. Vue.prototype.$mount = function(
  8716. el ,
  8717. hydrating
  8718. ) {
  8719. return mountComponent$1(this, el, hydrating)
  8720. };
  8721. lifecycleMixin$1(Vue);
  8722. internalMixin(Vue);
  8723. /* */
  8724. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8725. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8726. /***/ }),
  8727. /***/ 26:
  8728. /*!****************************************!*\
  8729. !*** D:/project/product_wx/pages.json ***!
  8730. \****************************************/
  8731. /*! no static exports found */
  8732. /***/ (function(module, exports) {
  8733. /***/ }),
  8734. /***/ 27:
  8735. /*!*******************************************************************!*\
  8736. !*** ./node_modules/@dcloudio/uni-stat/dist/uni-cloud-stat.es.js ***!
  8737. \*******************************************************************/
  8738. /*! no static exports found */
  8739. /***/ (function(module, exports, __webpack_require__) {
  8740. /* WEBPACK VAR INJECTION */(function(uni, uniCloud) {var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ 33);
  8741. var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34);
  8742. var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35);
  8743. var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23);
  8744. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 24);
  8745. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  8746. var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11);
  8747. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
  8748. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  8749. /**
  8750. * 获取系统信息
  8751. */
  8752. var sys = uni.getSystemInfoSync();
  8753. // 访问开始即启动小程序,访问结束结分为:进入后台超过5min、在前台无任何操作超过30min、在新的来源打开小程序;
  8754. var STAT_VERSION = "3.98";
  8755. var STAT_URL = 'https://tongji.dcloud.io/uni/stat';
  8756. var STAT_H5_URL = 'https://tongji.dcloud.io/uni/stat.gif';
  8757. var PAGE_PVER_TIME = 1800; // 页面在前台无操作结束访问时间 单位s
  8758. var APP_PVER_TIME = 300; // 应用在后台结束访问时间 单位s
  8759. var OPERATING_TIME = 10; // 数据上报时间 单位s
  8760. var DIFF_TIME = 60 * 1000 * 60 * 24;
  8761. var appid = "__UNI__E97C301"; // 做应用隔离
  8762. var dbSet = function dbSet(name, value) {
  8763. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8764. if (!data) {
  8765. data = {};
  8766. }
  8767. data[name] = value;
  8768. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8769. };
  8770. var dbGet = function dbGet(name) {
  8771. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8772. if (!data[name]) {
  8773. var dbdata = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  8774. if (!dbdata) {
  8775. dbdata = {};
  8776. }
  8777. if (!dbdata[name]) {
  8778. return undefined;
  8779. }
  8780. data[name] = dbdata[name];
  8781. }
  8782. return data[name];
  8783. };
  8784. var dbRemove = function dbRemove(name) {
  8785. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8786. if (data[name]) {
  8787. delete data[name];
  8788. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8789. } else {
  8790. data = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  8791. if (data[name]) {
  8792. delete data[name];
  8793. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8794. }
  8795. }
  8796. };
  8797. // 获取 manifest.json 中统计配置
  8798. var uniStatisticsConfig = {"version":"2","enable":true};
  8799. var statConfig = {
  8800. appid: "__UNI__E97C301"
  8801. };
  8802. var titleJsons = {};
  8803. var debug = false || false;
  8804. // eslint-disable-next-line no-restricted-globals
  8805. var pagesTitle = __webpack_require__(/*! uni-pages?{"type":"style"} */ 40).default;
  8806. var pagesData = pagesTitle.pages;
  8807. for (var i in pagesData) {
  8808. var _style$navigationBar;
  8809. var style = pagesData[i];
  8810. var titleText =
  8811. // MP
  8812. style.navigationBarTitleText ||
  8813. // ali
  8814. style.defaultTitle || ( // H5 || App
  8815. (_style$navigationBar = style.navigationBar) === null || _style$navigationBar === void 0 ? void 0 : _style$navigationBar.titleText) || '';
  8816. if (titleText) {
  8817. titleJsons[i] = titleText;
  8818. }
  8819. }
  8820. // TODO 在云函数中获取,暂时注释
  8821. var UUID_KEY = '__DC_STAT_UUID';
  8822. var UUID_VALUE = '__DC_UUID_VALUE';
  8823. function getUuid() {
  8824. var uuid = '';
  8825. if (get_platform_name() === 'n') {
  8826. try {
  8827. uuid = plus.runtime.getDCloudId();
  8828. } catch (e) {
  8829. uuid = '';
  8830. }
  8831. return uuid;
  8832. }
  8833. try {
  8834. uuid = uni.getStorageSync(UUID_KEY);
  8835. } catch (e) {
  8836. uuid = UUID_VALUE;
  8837. }
  8838. if (!uuid) {
  8839. uuid = Date.now() + '' + Math.floor(Math.random() * 1e7);
  8840. try {
  8841. uni.setStorageSync(UUID_KEY, uuid);
  8842. } catch (e) {
  8843. uni.setStorageSync(UUID_KEY, UUID_VALUE);
  8844. }
  8845. }
  8846. return uuid;
  8847. }
  8848. var get_uuid = function get_uuid(statData) {
  8849. // 有可能不存在 deviceId(一般不存在就是出bug了),就自己生成一个
  8850. return sys.deviceId || getUuid();
  8851. };
  8852. /**
  8853. * 获取老版的 deviceid ,兼容以前的错误 deviceid
  8854. * @param {*} statData
  8855. * @returns
  8856. */
  8857. var get_odid = function get_odid(statData) {
  8858. var odid = '';
  8859. if (get_platform_name() === 'n') {
  8860. try {
  8861. odid = plus.device.uuid;
  8862. } catch (e) {
  8863. odid = '';
  8864. }
  8865. return odid;
  8866. }
  8867. return sys.deviceId || getUuid();
  8868. };
  8869. /**
  8870. * 获取配置信息 如 appid
  8871. */
  8872. var stat_config = statConfig;
  8873. var get_sgin = function get_sgin(statData) {
  8874. var arr = Object.keys(statData);
  8875. var sortArr = arr.sort();
  8876. var sgin = {};
  8877. var sginStr = '';
  8878. for (var i in sortArr) {
  8879. sgin[sortArr[i]] = statData[sortArr[i]];
  8880. sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&';
  8881. }
  8882. return {
  8883. sign: '',
  8884. options: sginStr.substr(0, sginStr.length - 1)
  8885. };
  8886. };
  8887. var get_encodeURIComponent_options = function get_encodeURIComponent_options(statData) {
  8888. var data = {};
  8889. for (var prop in statData) {
  8890. data[prop] = encodeURIComponent(statData[prop]);
  8891. }
  8892. return data;
  8893. };
  8894. /**
  8895. * 获取当前平台
  8896. * 移动端 : 'n',
  8897. * h5 : 'h5',
  8898. * 微信 : 'wx',
  8899. * 阿里 : 'ali',
  8900. * 百度 : 'bd',
  8901. * 头条 : 'tt',
  8902. * qq : 'qq',
  8903. * 快应用 : 'qn',
  8904. * 快手 : 'ks',
  8905. * 飞书 : 'lark',
  8906. * 快应用 : 'qw',
  8907. * 钉钉 : 'dt'
  8908. */
  8909. var get_platform_name = function get_platform_name() {
  8910. var _platformList;
  8911. // 苹果审核代码中禁止出现 alipay 字样 ,需要特殊处理一下
  8912. var aliArr = ['y', 'a', 'p', 'mp-ali'];
  8913. var platformList = (_platformList = {
  8914. app: 'n',
  8915. 'app-plus': 'n',
  8916. h5: 'h5',
  8917. 'mp-weixin': 'wx'
  8918. }, _defineProperty(_platformList, aliArr.reverse().join(''), 'ali'), _defineProperty(_platformList, 'mp-baidu', 'bd'), _defineProperty(_platformList, 'mp-toutiao', 'tt'), _defineProperty(_platformList, 'mp-qq', 'qq'), _defineProperty(_platformList, 'quickapp-native', 'qn'), _defineProperty(_platformList, 'mp-kuaishou', 'ks'), _defineProperty(_platformList, 'mp-lark', 'lark'), _defineProperty(_platformList, 'quickapp-webview', 'qw'), _platformList);
  8919. if (platformList["mp-weixin"] === 'ali') {
  8920. if (my && my.env) {
  8921. var clientName = my.env.clientName;
  8922. if (clientName === 'ap') return 'ali';
  8923. if (clientName === 'dingtalk') return 'dt';
  8924. // TODO 缺少 ali 下的其他平台
  8925. }
  8926. }
  8927. return platformList["mp-weixin"];
  8928. };
  8929. /**
  8930. * 获取小程序 appid
  8931. */
  8932. var get_pack_name = function get_pack_name() {
  8933. var packName = '';
  8934. if (get_platform_name() === 'wx' || get_platform_name() === 'qq') {
  8935. // 兼容微信小程序低版本基础库
  8936. if (uni.canIUse('getAccountInfoSync')) {
  8937. packName = uni.getAccountInfoSync().miniProgram.appId || '';
  8938. }
  8939. }
  8940. if (get_platform_name() === 'n') ;
  8941. return packName;
  8942. };
  8943. /**
  8944. * 应用版本
  8945. */
  8946. var get_version = function get_version() {
  8947. return get_platform_name() === 'n' ? plus.runtime.version : '';
  8948. };
  8949. /**
  8950. * 获取渠道
  8951. */
  8952. var get_channel = function get_channel() {
  8953. var platformName = get_platform_name();
  8954. var channel = '';
  8955. if (platformName === 'n') {
  8956. channel = plus.runtime.channel;
  8957. }
  8958. return channel;
  8959. };
  8960. /**
  8961. * 获取小程序场景值
  8962. * @param {Object} options 页面信息
  8963. */
  8964. var get_scene = function get_scene(options) {
  8965. var platformName = get_platform_name();
  8966. var scene = '';
  8967. if (options) {
  8968. return options;
  8969. }
  8970. if (platformName === 'wx') {
  8971. scene = uni.getLaunchOptionsSync().scene;
  8972. }
  8973. return scene;
  8974. };
  8975. /**
  8976. * 获取页面url,不包含参数
  8977. */
  8978. var get_route$1 = function get_route$1(pageVm) {
  8979. var _self = pageVm || get_page_vm();
  8980. if (get_platform_name() === 'bd') {
  8981. var mp_route = _self.$mp && _self.$mp.page && _self.$mp.page.is;
  8982. var scope_route = _self.$scope && _self.$scope.is;
  8983. return mp_route || scope_route || '';
  8984. } else {
  8985. return _self.route || _self.$scope && _self.$scope.route || _self.$mp && _self.$mp.page.route;
  8986. }
  8987. };
  8988. /**
  8989. * 获取页面url, 包含参数
  8990. */
  8991. var get_page_route = function get_page_route(pageVm) {
  8992. // 从 app 进入应用 ,没有 $page ,获取不到路由 ,需要获取页面 尝试从 getCurrentPages 获取也页面实例
  8993. // FIXME 尽量不使用 getCurrentPages ,大部分获取路由是从 onHide 获取 ,这时可以获取到,如果是 onload ,则可能获取不到,比如 百度
  8994. var page = pageVm && (pageVm.$page || pageVm.$scope && pageVm.$scope.$page);
  8995. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  8996. if (!page) return lastPageRoute || '';
  8997. // 如果找不到 fullPath 就取 route 的值
  8998. return page.fullPath === '/' ? page.route : page.fullPath || page.route;
  8999. };
  9000. /**
  9001. * 获取页面实例
  9002. */
  9003. var get_page_vm = function get_page_vm() {
  9004. var pages = getCurrentPages();
  9005. var $page = pages[pages.length - 1];
  9006. if (!$page) return null;
  9007. return $page.$vm;
  9008. };
  9009. /**
  9010. * 获取页面类型
  9011. */
  9012. var get_page_types = function get_page_types(self) {
  9013. // XXX 百度有问题 ,获取的都是 componet ,等待修复
  9014. if (self.mpType === 'page' || self.$mpType === 'page' || self.$mp && self.$mp.mpType === 'page' || self.$options.mpType === 'page') {
  9015. return 'page';
  9016. }
  9017. if (self.mpType === 'app' || self.$mpType === 'app' || self.$mp && self.$mp.mpType === 'app' || self.$options.mpType === 'app') {
  9018. return 'app';
  9019. }
  9020. return null;
  9021. };
  9022. /**
  9023. * 处理上报参数
  9024. * @param {Object} 需要处理的数据
  9025. */
  9026. var handle_data = function handle_data(statData) {
  9027. var firstArr = [];
  9028. var contentArr = [];
  9029. var lastArr = [];
  9030. var _loop = function _loop(_i) {
  9031. var rd = statData[_i];
  9032. rd.forEach(function (elm) {
  9033. var newData = '';
  9034. {
  9035. newData = elm;
  9036. }
  9037. if (_i === 0) {
  9038. firstArr.push(newData);
  9039. } else if (_i === 3) {
  9040. lastArr.push(newData);
  9041. } else {
  9042. contentArr.push(newData);
  9043. }
  9044. });
  9045. };
  9046. for (var _i in statData) {
  9047. _loop(_i);
  9048. }
  9049. firstArr.push.apply(firstArr, contentArr.concat(lastArr));
  9050. // 参数需要处理成字符串,方便上传
  9051. return JSON.stringify(firstArr);
  9052. };
  9053. /**
  9054. * 自定义事件参数校验
  9055. */
  9056. var calibration = function calibration(eventName, options) {
  9057. // login 、 share 、pay_success 、pay_fail 、register 、title
  9058. if (!eventName) {
  9059. console.error("uni.report Missing [eventName] parameter");
  9060. return true;
  9061. }
  9062. if (typeof eventName !== 'string') {
  9063. console.error("uni.report [eventName] Parameter type error, it can only be of type String");
  9064. return true;
  9065. }
  9066. if (eventName.length > 255) {
  9067. console.error("uni.report [eventName] Parameter length cannot be greater than 255");
  9068. return true;
  9069. }
  9070. if (typeof options !== 'string' && _typeof(options) !== 'object') {
  9071. console.error('uni.report [options] Parameter type error, Only supports String or Object type');
  9072. return true;
  9073. }
  9074. if (typeof options === 'string' && options.length > 255) {
  9075. console.error("uni.report [options] Parameter length cannot be greater than 255");
  9076. return true;
  9077. }
  9078. if (eventName === 'title' && typeof options !== 'string') {
  9079. console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String");
  9080. return true;
  9081. }
  9082. };
  9083. var get_page_name = function get_page_name(routepath) {
  9084. return titleJsons && titleJsons[routepath] || '';
  9085. };
  9086. var Report_Data_Time = 'Report_Data_Time';
  9087. var Report_Status = 'Report_Status';
  9088. var is_report_data = function is_report_data() {
  9089. return new Promise(function (resolve, reject) {
  9090. var start_time = '';
  9091. var end_time = new Date().getTime();
  9092. var diff_time = DIFF_TIME;
  9093. var report_status = 1;
  9094. try {
  9095. start_time = uni.getStorageSync(Report_Data_Time);
  9096. report_status = uni.getStorageSync(Report_Status);
  9097. } catch (e) {
  9098. start_time = '';
  9099. report_status = 1;
  9100. }
  9101. if (report_status === '') {
  9102. requestData(function (_ref) {
  9103. var enable = _ref.enable;
  9104. uni.setStorageSync(Report_Data_Time, end_time);
  9105. uni.setStorageSync(Report_Status, enable);
  9106. if (enable === 1) {
  9107. resolve();
  9108. }
  9109. });
  9110. return;
  9111. }
  9112. if (report_status === 1) {
  9113. resolve();
  9114. }
  9115. if (!start_time) {
  9116. uni.setStorageSync(Report_Data_Time, end_time);
  9117. start_time = end_time;
  9118. }
  9119. if (end_time - start_time > diff_time) {
  9120. requestData(function (_ref2) {
  9121. var enable = _ref2.enable;
  9122. uni.setStorageSync(Report_Data_Time, end_time);
  9123. uni.setStorageSync(Report_Status, enable);
  9124. });
  9125. }
  9126. });
  9127. };
  9128. var requestData = function requestData(done) {
  9129. var appid = "__UNI__E97C301";
  9130. var formData = {
  9131. usv: STAT_VERSION,
  9132. conf: JSON.stringify({
  9133. ak: appid
  9134. })
  9135. };
  9136. uni.request({
  9137. url: STAT_URL,
  9138. method: 'GET',
  9139. data: formData,
  9140. success: function success(res) {
  9141. var data = res.data;
  9142. if (data.ret === 0) {
  9143. typeof done === 'function' && done({
  9144. enable: data.enable
  9145. });
  9146. }
  9147. },
  9148. fail: function fail(e) {
  9149. var report_status_code = 1;
  9150. try {
  9151. report_status_code = uni.getStorageSync(Report_Status);
  9152. } catch (e) {
  9153. report_status_code = 1;
  9154. }
  9155. if (report_status_code === '') {
  9156. report_status_code = 1;
  9157. }
  9158. typeof done === 'function' && done({
  9159. enable: report_status_code
  9160. });
  9161. }
  9162. });
  9163. };
  9164. /**
  9165. * 获取uniCloud服务空间配置
  9166. * @returns {Object}
  9167. */
  9168. var uni_cloud_config = function uni_cloud_config() {
  9169. return {} || {};
  9170. };
  9171. /**
  9172. * 获取服务空间
  9173. * @param {*} config
  9174. * @returns
  9175. */
  9176. var get_space = function get_space(config) {
  9177. var uniCloudConfig = uni_cloud_config();
  9178. var spaceId = uniCloudConfig.spaceId,
  9179. provider = uniCloudConfig.provider,
  9180. clientSecret = uniCloudConfig.clientSecret,
  9181. secretKey = uniCloudConfig.secretKey,
  9182. secretId = uniCloudConfig.secretId;
  9183. var space_type = ['tcb', 'tencent', 'aliyun', 'alipay'];
  9184. var is_provider = space_type.indexOf(provider) !== -1;
  9185. var is_aliyun = provider === 'aliyun' && spaceId && clientSecret;
  9186. var is_tcb = (provider === 'tcb' || provider === 'tencent') && spaceId;
  9187. var is_alipay = provider === 'alipay' && spaceId && secretKey && secretId;
  9188. if (is_provider && (is_aliyun || is_tcb || is_alipay)) {
  9189. return uniCloudConfig;
  9190. } else {
  9191. if (config && config.spaceId) {
  9192. return config;
  9193. }
  9194. }
  9195. return null;
  9196. };
  9197. /**
  9198. * 是否开启 debug 模式
  9199. */
  9200. var is_debug = debug;
  9201. /**
  9202. * 日志输出
  9203. * @param {*} data
  9204. */
  9205. var log = function log(data, type) {
  9206. var msg_type = '';
  9207. switch (data.lt) {
  9208. case '1':
  9209. msg_type = '应用启动';
  9210. break;
  9211. case '3':
  9212. msg_type = '应用进入后台';
  9213. break;
  9214. case '11':
  9215. msg_type = '页面切换';
  9216. break;
  9217. case '21':
  9218. msg_type = '事件触发';
  9219. break;
  9220. case '31':
  9221. msg_type = '应用错误';
  9222. break;
  9223. case '101':
  9224. msg_type = 'PUSH';
  9225. break;
  9226. }
  9227. if (type) {
  9228. console.log("=== \u7EDF\u8BA1\u961F\u5217\u6570\u636E\u4E0A\u62A5 ===");
  9229. console.log(data);
  9230. console.log("=== \u4E0A\u62A5\u7ED3\u675F ===");
  9231. return;
  9232. }
  9233. if (msg_type) {
  9234. console.log("=== \u7EDF\u8BA1\u6570\u636E\u91C7\u96C6\uFF1A".concat(msg_type, " ==="));
  9235. console.log(data);
  9236. console.log("=== \u91C7\u96C6\u7ED3\u675F ===");
  9237. }
  9238. };
  9239. /**
  9240. * 获取上报时间间隔
  9241. * @param {*} defaultTime 默认上报间隔时间 单位s
  9242. */
  9243. var get_report_Interval = function get_report_Interval(defaultTime) {
  9244. var time = uniStatisticsConfig.reportInterval;
  9245. // 如果上报时间配置为0 相当于立即上报
  9246. if (Number(time) === 0) return 0;
  9247. time = time || defaultTime;
  9248. var reg = /(^[1-9]\d*$)/;
  9249. // 如果不是整数,则默认为上报间隔时间
  9250. if (!reg.test(time)) return defaultTime;
  9251. return Number(time);
  9252. };
  9253. /**
  9254. * 获取隐私协议配置
  9255. */
  9256. var is_push_clientid = function is_push_clientid() {
  9257. if (uniStatisticsConfig.collectItems) {
  9258. var ClientID = uniStatisticsConfig.collectItems.uniPushClientID;
  9259. return typeof ClientID === 'boolean' ? ClientID : false;
  9260. }
  9261. return false;
  9262. };
  9263. /**
  9264. * 是否上报页面数据
  9265. * @returns
  9266. */
  9267. var is_page_report = function is_page_report() {
  9268. if (uniStatisticsConfig.collectItems) {
  9269. var statPageLog = uniStatisticsConfig.collectItems.uniStatPageLog;
  9270. // 如果字段不存在返回 true , 如果是boolean 值按原值返回,如果是其他类型 返回false
  9271. if (statPageLog === undefined) return true;
  9272. return typeof statPageLog === 'boolean' ? statPageLog : true;
  9273. }
  9274. return true;
  9275. };
  9276. /**
  9277. * 是否已处理设备 DeviceId
  9278. * 如果值为 1 则表示已处理
  9279. */
  9280. var IS_HANDLE_DEVECE_ID = 'is_handle_device_id';
  9281. var is_handle_device = function is_handle_device() {
  9282. var isHandleDevice = dbGet(IS_HANDLE_DEVECE_ID) || '';
  9283. dbSet(IS_HANDLE_DEVECE_ID, '1');
  9284. return isHandleDevice === '1';
  9285. };
  9286. // 首次访问时间
  9287. var FIRST_VISIT_TIME_KEY = '__first__visit__time';
  9288. // 最后访问时间
  9289. var LAST_VISIT_TIME_KEY = '__last__visit__time';
  9290. /**
  9291. * 获取当前时间
  9292. */
  9293. var get_time = function get_time() {
  9294. return parseInt(new Date().getTime() / 1000);
  9295. };
  9296. /**
  9297. * 获取首次访问时间
  9298. */
  9299. var get_first_visit_time = function get_first_visit_time() {
  9300. var timeStorge = dbGet(FIRST_VISIT_TIME_KEY);
  9301. var time = 0;
  9302. if (timeStorge) {
  9303. time = timeStorge;
  9304. } else {
  9305. time = get_time();
  9306. dbSet(FIRST_VISIT_TIME_KEY, time);
  9307. // 首次访问需要 将最后访问时间置 0
  9308. dbRemove(LAST_VISIT_TIME_KEY);
  9309. }
  9310. return time;
  9311. };
  9312. /**
  9313. * 最后访问时间
  9314. */
  9315. var get_last_visit_time = function get_last_visit_time() {
  9316. var timeStorge = dbGet(LAST_VISIT_TIME_KEY);
  9317. var time = 0;
  9318. if (timeStorge) {
  9319. time = timeStorge;
  9320. }
  9321. dbSet(LAST_VISIT_TIME_KEY, get_time());
  9322. return time;
  9323. };
  9324. // 页面停留时间记录key
  9325. var PAGE_RESIDENCE_TIME = '__page__residence__time';
  9326. var First_Page_Residence_Time = 0;
  9327. var Last_Page_Residence_Time = 0;
  9328. /**
  9329. * 设置页面停留时间
  9330. */
  9331. var set_page_residence_time = function set_page_residence_time() {
  9332. First_Page_Residence_Time = get_time();
  9333. dbSet(PAGE_RESIDENCE_TIME, First_Page_Residence_Time);
  9334. return First_Page_Residence_Time;
  9335. };
  9336. /**
  9337. * 获取页面停留时间
  9338. */
  9339. var get_page_residence_time = function get_page_residence_time() {
  9340. Last_Page_Residence_Time = get_time();
  9341. First_Page_Residence_Time = dbGet(PAGE_RESIDENCE_TIME);
  9342. return Last_Page_Residence_Time - First_Page_Residence_Time;
  9343. };
  9344. /**
  9345. * 获取总访问次数
  9346. */
  9347. var TOTAL_VISIT_COUNT = '__total__visit__count';
  9348. var get_total_visit_count = function get_total_visit_count() {
  9349. var timeStorge = dbGet(TOTAL_VISIT_COUNT);
  9350. var count = 1;
  9351. if (timeStorge) {
  9352. count = timeStorge;
  9353. count++;
  9354. }
  9355. dbSet(TOTAL_VISIT_COUNT, count);
  9356. return count;
  9357. };
  9358. var FIRST_TIME = '__first_time';
  9359. /**
  9360. * 设置页面首次访问时间,用户获取页面/应用停留时常
  9361. */
  9362. var set_first_time = function set_first_time() {
  9363. // 获取当前时间 ,以下代码获取到是毫秒级时间戳 ,实际上用到是秒级时间戳,所以需要除以1000
  9364. // const time = new Date().getTime()
  9365. var time = get_time();
  9366. var timeStorge = dbSet(FIRST_TIME, time);
  9367. return timeStorge;
  9368. };
  9369. /**
  9370. * 获取最后一次时间 ,暂时用不到,直接获取当前时间即可
  9371. */
  9372. // export const get_last_time = () => {
  9373. // let time = new Date().getTime()
  9374. // Set__Last__Time = time
  9375. // return time
  9376. // }
  9377. /**
  9378. * 获取页面 \ 应用停留时间
  9379. */
  9380. var get_residence_time = function get_residence_time(type) {
  9381. var residenceTime = 0;
  9382. var first_time = dbGet(FIRST_TIME);
  9383. var last_time = get_time();
  9384. if (first_time !== 0) {
  9385. residenceTime = last_time - first_time;
  9386. }
  9387. // 将毫秒级时间戳转换为秒级时间戳,因为直接获取的是秒级时间戳,所以不需要转换
  9388. // residenceTime = parseInt(residenceTime / 1000)
  9389. residenceTime = residenceTime < 1 ? 1 : residenceTime;
  9390. if (type === 'app') {
  9391. var overtime = residenceTime > APP_PVER_TIME ? true : false;
  9392. return {
  9393. residenceTime: residenceTime,
  9394. overtime: overtime
  9395. };
  9396. }
  9397. if (type === 'page') {
  9398. var _overtime = residenceTime > PAGE_PVER_TIME ? true : false;
  9399. return {
  9400. residenceTime: residenceTime,
  9401. overtime: _overtime
  9402. };
  9403. }
  9404. return {
  9405. residenceTime: residenceTime
  9406. };
  9407. };
  9408. var eport_Interval = get_report_Interval(OPERATING_TIME);
  9409. // 统计数据默认值
  9410. var statData = {
  9411. uuid: get_uuid(),
  9412. // 设备标识
  9413. ak: stat_config.appid,
  9414. // uni-app 应用 Appid
  9415. p: sys.platform === 'android' ? 'a' : 'i',
  9416. // 手机系统
  9417. ut: get_platform_name(),
  9418. // 平台类型
  9419. mpn: get_pack_name(),
  9420. // 原生平台包名、小程序 appid
  9421. usv: STAT_VERSION,
  9422. // 统计 sdk 版本
  9423. v: get_version(),
  9424. // 应用版本,仅app
  9425. ch: get_channel(),
  9426. // 渠道信息
  9427. cn: '',
  9428. // 国家
  9429. pn: '',
  9430. // 省份
  9431. ct: '',
  9432. // 城市
  9433. t: get_time(),
  9434. // 上报数据时的时间戳
  9435. tt: '',
  9436. brand: sys.brand || '',
  9437. // 手机品牌
  9438. md: sys.model,
  9439. // 手机型号
  9440. sv: sys.system.replace(/(Android|iOS)\s/, ''),
  9441. // 手机系统版本
  9442. mpsdk: sys.SDKVersion || '',
  9443. // x程序 sdk version
  9444. mpv: sys.version || '',
  9445. // 小程序平台版本 ,如微信、支付宝
  9446. lang: sys.language,
  9447. // 语言
  9448. pr: sys.pixelRatio,
  9449. // pixelRatio 设备像素比
  9450. ww: sys.windowWidth,
  9451. // windowWidth 可使用窗口宽度
  9452. wh: sys.windowHeight,
  9453. // windowHeight 可使用窗口高度
  9454. sw: sys.screenWidth,
  9455. // screenWidth 屏幕宽度
  9456. sh: sys.screenHeight // screenHeight 屏幕高度
  9457. };
  9458. var Report = /*#__PURE__*/function () {
  9459. "use strict";
  9460. function Report() {
  9461. _classCallCheck(this, Report);
  9462. // 页面实例
  9463. this.self = '';
  9464. // 进入应用标识
  9465. this.__licationShow = false;
  9466. // 离开应用标识
  9467. this.__licationHide = false;
  9468. // 统计默认值
  9469. this.statData = statData;
  9470. // 标题默认值
  9471. this._navigationBarTitle = {
  9472. config: '',
  9473. page: '',
  9474. report: '',
  9475. lt: ''
  9476. };
  9477. // 页面参数
  9478. this._query = {};
  9479. // 页面最后停留页面的 url
  9480. // this._lastPageRoute = ''
  9481. // 注册拦截器
  9482. var registerInterceptor = typeof uni.addInterceptor === 'function';
  9483. if (registerInterceptor) {
  9484. this.addInterceptorInit();
  9485. this.interceptLogin();
  9486. this.interceptShare(true);
  9487. this.interceptRequestPayment();
  9488. }
  9489. }
  9490. _createClass(Report, [{
  9491. key: "addInterceptorInit",
  9492. value: function addInterceptorInit() {
  9493. var self = this;
  9494. uni.addInterceptor('setNavigationBarTitle', {
  9495. invoke: function invoke(args) {
  9496. self._navigationBarTitle.page = args.title;
  9497. }
  9498. });
  9499. }
  9500. }, {
  9501. key: "interceptLogin",
  9502. value: function interceptLogin() {
  9503. var self = this;
  9504. uni.addInterceptor('login', {
  9505. complete: function complete() {
  9506. self._login();
  9507. }
  9508. });
  9509. }
  9510. }, {
  9511. key: "interceptShare",
  9512. value: function interceptShare(type) {
  9513. var self = this;
  9514. if (!type) {
  9515. self._share();
  9516. return;
  9517. }
  9518. uni.addInterceptor('share', {
  9519. success: function success() {
  9520. self._share();
  9521. },
  9522. fail: function fail() {
  9523. self._share();
  9524. }
  9525. });
  9526. }
  9527. }, {
  9528. key: "interceptRequestPayment",
  9529. value: function interceptRequestPayment() {
  9530. var self = this;
  9531. uni.addInterceptor('requestPayment', {
  9532. success: function success() {
  9533. self._payment('pay_success');
  9534. },
  9535. fail: function fail() {
  9536. self._payment('pay_fail');
  9537. }
  9538. });
  9539. }
  9540. }, {
  9541. key: "_login",
  9542. value: function _login() {
  9543. this.sendEventRequest({
  9544. key: 'login'
  9545. }, 0);
  9546. }
  9547. }, {
  9548. key: "_share",
  9549. value: function _share() {
  9550. this.sendEventRequest({
  9551. key: 'share'
  9552. }, 0);
  9553. }
  9554. }, {
  9555. key: "_payment",
  9556. value: function _payment(key) {
  9557. this.sendEventRequest({
  9558. key: key
  9559. }, 0);
  9560. }
  9561. /**
  9562. * 进入应用触发
  9563. */
  9564. }, {
  9565. key: "applicationShow",
  9566. value: function applicationShow() {
  9567. // 通过 __licationHide 判断保证是进入后台后在次进入应用,避免重复上报数据
  9568. if (this.__licationHide) {
  9569. var time = get_residence_time('app');
  9570. // 需要判断进入后台是否超过时限 ,默认是 30min ,是的话需要执行进入应用的上报
  9571. if (time.overtime) {
  9572. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  9573. var options = {
  9574. path: lastPageRoute,
  9575. scene: this.statData.sc,
  9576. cst: 2
  9577. };
  9578. this.sendReportRequest(options);
  9579. }
  9580. // 状态重置
  9581. this.__licationHide = false;
  9582. }
  9583. }
  9584. /**
  9585. * 离开应用触发
  9586. * @param {Object} self
  9587. * @param {Object} type
  9588. */
  9589. }, {
  9590. key: "applicationHide",
  9591. value: function applicationHide(self, type) {
  9592. if (!self) {
  9593. // 表示应用切换到后台 ,此时需要从页面栈获取页面实例
  9594. self = get_page_vm();
  9595. }
  9596. // 进入应用后台保存状态,方便进入前台后判断是否上报应用数据
  9597. this.__licationHide = true;
  9598. var time = get_residence_time();
  9599. var route = get_page_route(self);
  9600. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9601. this.sendHideRequest({
  9602. urlref: route,
  9603. urlref_ts: time.residenceTime
  9604. }, type);
  9605. // 更新页面首次访问时间
  9606. set_first_time();
  9607. }
  9608. /**
  9609. * 进入页面触发
  9610. */
  9611. }, {
  9612. key: "pageShow",
  9613. value: function pageShow(self) {
  9614. // 清空值 ,初始化 ,避免污染后面的上报数据
  9615. this._navigationBarTitle = {
  9616. config: '',
  9617. page: '',
  9618. report: '',
  9619. lt: ''
  9620. };
  9621. var route = get_page_route(self);
  9622. var routepath = get_route$1(self);
  9623. this._navigationBarTitle.config = get_page_name(routepath);
  9624. // 表示应用触发 ,页面切换不触发之后的逻辑
  9625. if (this.__licationShow) {
  9626. // 更新页面首次访问时间
  9627. set_first_time();
  9628. // this._lastPageRoute = route
  9629. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9630. this.__licationShow = false;
  9631. return;
  9632. }
  9633. var time = get_residence_time('page');
  9634. // 停留时间
  9635. if (time.overtime) {
  9636. var options = {
  9637. path: route,
  9638. scene: this.statData.sc,
  9639. cst: 3
  9640. };
  9641. this.sendReportRequest(options);
  9642. }
  9643. // 更新页面首次访问时间
  9644. set_first_time();
  9645. }
  9646. /**
  9647. * 离开页面触发
  9648. */
  9649. }, {
  9650. key: "pageHide",
  9651. value: function pageHide(self) {
  9652. if (!this.__licationHide) {
  9653. var time = get_residence_time('page');
  9654. var route = get_page_route(self);
  9655. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  9656. if (!lastPageRoute) {
  9657. lastPageRoute = route;
  9658. }
  9659. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9660. this.sendPageRequest({
  9661. url: route,
  9662. urlref: lastPageRoute,
  9663. urlref_ts: time.residenceTime
  9664. });
  9665. // this._lastPageRoute = route
  9666. return;
  9667. }
  9668. }
  9669. /**
  9670. * 发送请求,应用维度上报
  9671. * @param {Object} options 页面信息
  9672. * @param {Boolean} type 是否立即上报
  9673. */
  9674. }, {
  9675. key: "sendReportRequest",
  9676. value: function sendReportRequest(options, type) {
  9677. this._navigationBarTitle.lt = '1';
  9678. this._navigationBarTitle.config = get_page_name(options.path);
  9679. var is_opt = options.query && JSON.stringify(options.query) !== '{}';
  9680. var query = is_opt ? '?' + JSON.stringify(options.query) : '';
  9681. var last_time = get_last_visit_time();
  9682. // 非老用户
  9683. if (last_time !== 0 || !last_time) {
  9684. var odid = get_odid();
  9685. // 2.0 处理规则
  9686. {
  9687. var have_device = is_handle_device();
  9688. // 如果没有上报过设备信息 ,则需要上报设备信息
  9689. if (!have_device) {
  9690. this.statData.odid = odid;
  9691. }
  9692. }
  9693. }
  9694. Object.assign(this.statData, {
  9695. lt: '1',
  9696. url: options.path + query || '',
  9697. t: get_time(),
  9698. sc: get_scene(options.scene),
  9699. fvts: get_first_visit_time(),
  9700. lvts: last_time,
  9701. tvc: get_total_visit_count(),
  9702. // create session type 上报类型 ,1 应用进入 2.后台30min进入 3.页面30min进入
  9703. cst: options.cst || 1
  9704. });
  9705. if (get_platform_name() === 'n') {
  9706. this.getProperty(type);
  9707. } else {
  9708. this.getNetworkInfo(type);
  9709. }
  9710. }
  9711. /**
  9712. * 发送请求,页面维度上报
  9713. * @param {Object} opt
  9714. */
  9715. }, {
  9716. key: "sendPageRequest",
  9717. value: function sendPageRequest(opt) {
  9718. var url = opt.url,
  9719. urlref = opt.urlref,
  9720. urlref_ts = opt.urlref_ts;
  9721. this._navigationBarTitle.lt = '11';
  9722. var options = {
  9723. ak: this.statData.ak,
  9724. uuid: this.statData.uuid,
  9725. p: this.statData.p,
  9726. lt: '11',
  9727. ut: this.statData.ut,
  9728. url: url,
  9729. tt: this.statData.tt,
  9730. urlref: urlref,
  9731. urlref_ts: urlref_ts,
  9732. ch: this.statData.ch,
  9733. usv: this.statData.usv,
  9734. t: get_time()
  9735. };
  9736. this.request(options);
  9737. }
  9738. /**
  9739. * 进入后台上报数据
  9740. * @param {Object} opt
  9741. * @param {Object} type
  9742. */
  9743. }, {
  9744. key: "sendHideRequest",
  9745. value: function sendHideRequest(opt, type) {
  9746. var urlref = opt.urlref,
  9747. urlref_ts = opt.urlref_ts;
  9748. var options = {
  9749. ak: this.statData.ak,
  9750. uuid: this.statData.uuid,
  9751. p: this.statData.p,
  9752. lt: '3',
  9753. ut: this.statData.ut,
  9754. urlref: urlref,
  9755. urlref_ts: urlref_ts,
  9756. ch: this.statData.ch,
  9757. usv: this.statData.usv,
  9758. t: get_time()
  9759. };
  9760. this.request(options, type);
  9761. }
  9762. /**
  9763. * 自定义事件上报
  9764. */
  9765. }, {
  9766. key: "sendEventRequest",
  9767. value: function sendEventRequest() {
  9768. var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  9769. _ref3$key = _ref3.key,
  9770. key = _ref3$key === void 0 ? '' : _ref3$key,
  9771. _ref3$value = _ref3.value,
  9772. value = _ref3$value === void 0 ? '' : _ref3$value;
  9773. var routepath = '';
  9774. try {
  9775. routepath = get_route$1();
  9776. } catch (error) {
  9777. var launch_options = dbGet('__launch_options');
  9778. routepath = launch_options.path;
  9779. }
  9780. this._navigationBarTitle.config = get_page_name(routepath);
  9781. this._navigationBarTitle.lt = '21';
  9782. var options = {
  9783. ak: this.statData.ak,
  9784. uuid: this.statData.uuid,
  9785. p: this.statData.p,
  9786. lt: '21',
  9787. ut: this.statData.ut,
  9788. url: routepath,
  9789. ch: this.statData.ch,
  9790. e_n: key,
  9791. e_v: _typeof(value) === 'object' ? JSON.stringify(value) : value.toString(),
  9792. usv: this.statData.usv,
  9793. t: get_time()
  9794. };
  9795. this.request(options);
  9796. }
  9797. }, {
  9798. key: "sendPushRequest",
  9799. value: function sendPushRequest(options, cid) {
  9800. var _this = this;
  9801. var time = get_time();
  9802. var statData = {
  9803. lt: '101',
  9804. cid: cid,
  9805. t: time,
  9806. ut: this.statData.ut
  9807. };
  9808. // debug 打印打点信息
  9809. if (is_debug) {
  9810. log(statData);
  9811. }
  9812. var stat_data = handle_data({
  9813. 101: [statData]
  9814. });
  9815. var optionsData = {
  9816. usv: STAT_VERSION,
  9817. //统计 SDK 版本号
  9818. t: time,
  9819. //发送请求时的时间戮
  9820. requests: stat_data
  9821. };
  9822. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  9823. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  9824. setTimeout(function () {
  9825. _this.sendRequest(optionsData);
  9826. }, 200);
  9827. return;
  9828. }
  9829. this.sendRequest(optionsData);
  9830. }
  9831. /**
  9832. * 获取wgt资源版本
  9833. */
  9834. }, {
  9835. key: "getProperty",
  9836. value: function getProperty(type) {
  9837. var _this2 = this;
  9838. plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
  9839. _this2.statData.v = wgtinfo.version || '';
  9840. _this2.getNetworkInfo(type);
  9841. });
  9842. }
  9843. /**
  9844. * 获取网络信息
  9845. */
  9846. }, {
  9847. key: "getNetworkInfo",
  9848. value: function getNetworkInfo(type) {
  9849. var _this3 = this;
  9850. uni.getNetworkType({
  9851. success: function success(result) {
  9852. _this3.statData.net = result.networkType;
  9853. _this3.getLocation(type);
  9854. }
  9855. });
  9856. }
  9857. /**
  9858. * 获取位置信息
  9859. */
  9860. }, {
  9861. key: "getLocation",
  9862. value: function getLocation(type) {
  9863. var _this4 = this;
  9864. if (stat_config.getLocation) {
  9865. uni.getLocation({
  9866. type: 'wgs84',
  9867. geocode: true,
  9868. success: function success(result) {
  9869. if (result.address) {
  9870. _this4.statData.cn = result.address.country;
  9871. _this4.statData.pn = result.address.province;
  9872. _this4.statData.ct = result.address.city;
  9873. }
  9874. _this4.statData.lat = result.latitude;
  9875. _this4.statData.lng = result.longitude;
  9876. _this4.request(_this4.statData, type);
  9877. }
  9878. });
  9879. } else {
  9880. this.statData.lat = 0;
  9881. this.statData.lng = 0;
  9882. this.request(this.statData, type);
  9883. }
  9884. }
  9885. /**
  9886. * 发送请求
  9887. * @param {Object} data 上报数据
  9888. * @param {Object} type 类型
  9889. */
  9890. }, {
  9891. key: "request",
  9892. value: function request(data, type) {
  9893. var _this5 = this;
  9894. var time = get_time();
  9895. var title = this._navigationBarTitle;
  9896. Object.assign(data, {
  9897. ttn: title.page,
  9898. ttpj: title.config,
  9899. ttc: title.report
  9900. });
  9901. var uniStatData = dbGet('__UNI__STAT__DATA') || {};
  9902. if (!uniStatData[data.lt]) {
  9903. uniStatData[data.lt] = [];
  9904. }
  9905. // 加入队列
  9906. uniStatData[data.lt].push(data);
  9907. dbSet('__UNI__STAT__DATA', uniStatData);
  9908. var page_residence_time = get_page_residence_time();
  9909. // debug 打印打点信息
  9910. if (is_debug) {
  9911. log(data);
  9912. }
  9913. // 判断时候到达上报时间 ,默认 10 秒上报
  9914. if (page_residence_time < eport_Interval && !type) return;
  9915. // 时间超过,重新获取时间戳
  9916. set_page_residence_time();
  9917. var stat_data = handle_data(uniStatData);
  9918. var optionsData = {
  9919. usv: STAT_VERSION,
  9920. //统计 SDK 版本号
  9921. t: time,
  9922. //发送请求时的时间戮
  9923. requests: stat_data
  9924. };
  9925. // 重置队列
  9926. dbRemove('__UNI__STAT__DATA');
  9927. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  9928. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  9929. setTimeout(function () {
  9930. _this5.sendRequest(optionsData);
  9931. }, 200);
  9932. return;
  9933. }
  9934. this.sendRequest(optionsData);
  9935. }
  9936. }, {
  9937. key: "getIsReportData",
  9938. value: function getIsReportData() {
  9939. return is_report_data();
  9940. }
  9941. /**
  9942. * 数据上报
  9943. * @param {Object} optionsData 需要上报的数据
  9944. */
  9945. }, {
  9946. key: "sendRequest",
  9947. value: function sendRequest(optionsData) {
  9948. {
  9949. if (!uni.__stat_uniCloud_space) {
  9950. console.error('应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.');
  9951. return;
  9952. }
  9953. var uniCloudObj = uni.__stat_uniCloud_space.importObject('uni-stat-receiver', {
  9954. customUI: true
  9955. });
  9956. uniCloudObj.report(optionsData).then(function () {
  9957. if (is_debug) {
  9958. log(optionsData, true);
  9959. }
  9960. }).catch(function (err) {
  9961. if (is_debug) {
  9962. console.warn('=== 统计上报错误');
  9963. console.error(err);
  9964. }
  9965. });
  9966. }
  9967. }
  9968. /**
  9969. * h5 请求
  9970. */
  9971. }, {
  9972. key: "imageRequest",
  9973. value: function imageRequest(data) {
  9974. this.getIsReportData().then(function () {
  9975. var image = new Image();
  9976. var options = get_sgin(get_encodeURIComponent_options(data)).options;
  9977. image.src = STAT_H5_URL + '?' + options;
  9978. if (is_debug) {
  9979. log(data, true);
  9980. }
  9981. });
  9982. }
  9983. }, {
  9984. key: "sendEvent",
  9985. value: function sendEvent(key, value) {
  9986. // 校验 type 参数
  9987. if (calibration(key, value)) return;
  9988. if (key === 'title') {
  9989. this._navigationBarTitle.report = value;
  9990. return;
  9991. }
  9992. this.sendEventRequest({
  9993. key: key,
  9994. value: _typeof(value) === 'object' ? JSON.stringify(value) : value
  9995. }, 1);
  9996. }
  9997. }]);
  9998. return Report;
  9999. }();
  10000. var Stat = /*#__PURE__*/function (_Report) {
  10001. "use strict";
  10002. _inherits(Stat, _Report);
  10003. var _super = _createSuper(Stat);
  10004. function Stat() {
  10005. _classCallCheck(this, Stat);
  10006. return _super.call(this);
  10007. }
  10008. /**
  10009. * 获取推送id
  10010. */
  10011. _createClass(Stat, [{
  10012. key: "pushEvent",
  10013. value: function pushEvent(options) {
  10014. var _this6 = this;
  10015. var ClientID = is_push_clientid();
  10016. if (uni.getPushClientId && ClientID) {
  10017. uni.getPushClientId({
  10018. success: function success(res) {
  10019. var cid = res.cid || false;
  10020. // 只有获取到才会上传
  10021. if (cid) {
  10022. _this6.sendPushRequest(options, cid);
  10023. }
  10024. }
  10025. });
  10026. }
  10027. }
  10028. /**
  10029. * 进入应用
  10030. * @param {Object} options 页面参数
  10031. * @param {Object} self 当前页面实例
  10032. */
  10033. }, {
  10034. key: "launch",
  10035. value: function launch(options, self) {
  10036. // 初始化页面停留时间 start
  10037. set_page_residence_time();
  10038. this.__licationShow = true;
  10039. dbSet('__launch_options', options);
  10040. // 应用初始上报参数为1
  10041. options.cst = 1;
  10042. this.sendReportRequest(options, true);
  10043. }
  10044. }, {
  10045. key: "load",
  10046. value: function load(options, self) {
  10047. this.self = self;
  10048. this._query = options;
  10049. }
  10050. }, {
  10051. key: "appHide",
  10052. value: function appHide(self) {
  10053. this.applicationHide(self, true);
  10054. }
  10055. }, {
  10056. key: "appShow",
  10057. value: function appShow(self) {
  10058. this.applicationShow(self);
  10059. }
  10060. }, {
  10061. key: "show",
  10062. value: function show(self) {
  10063. this.self = self;
  10064. if (get_page_types(self) === 'page') {
  10065. var isPageReport = is_page_report();
  10066. if (isPageReport) {
  10067. this.pageShow(self);
  10068. }
  10069. }
  10070. if (get_page_types(self) === 'app') {
  10071. this.appShow();
  10072. }
  10073. }
  10074. }, {
  10075. key: "hide",
  10076. value: function hide(self) {
  10077. this.self = self;
  10078. if (get_page_types(self) === 'page') {
  10079. var isPageReport = is_page_report();
  10080. if (isPageReport) {
  10081. this.pageHide(self);
  10082. }
  10083. }
  10084. if (get_page_types(self) === 'app') {
  10085. this.appHide();
  10086. }
  10087. }
  10088. }, {
  10089. key: "error",
  10090. value: function error(em) {
  10091. // 开发工具内不上报错误
  10092. // if (this._platform === 'devtools') {
  10093. // if (process.env.NODE_ENV === 'development') {
  10094. // console.info('当前运行环境为开发者工具,不上报数据。')
  10095. // return
  10096. // }
  10097. // }
  10098. var emVal = '';
  10099. if (!em.message) {
  10100. emVal = JSON.stringify(em);
  10101. } else {
  10102. emVal = em.stack;
  10103. }
  10104. var route = '';
  10105. try {
  10106. route = get_route();
  10107. } catch (e) {
  10108. // 未获取到页面路径
  10109. route = '';
  10110. }
  10111. var options = {
  10112. ak: this.statData.ak,
  10113. uuid: this.statData.uuid,
  10114. p: this.statData.p,
  10115. lt: '31',
  10116. url: route,
  10117. ut: this.statData.ut,
  10118. ch: this.statData.ch,
  10119. mpsdk: this.statData.mpsdk,
  10120. mpv: this.statData.mpv,
  10121. v: this.statData.v,
  10122. em: emVal,
  10123. usv: this.statData.usv,
  10124. t: parseInt(new Date().getTime() / 1000)
  10125. };
  10126. this.request(options);
  10127. }
  10128. }], [{
  10129. key: "getInstance",
  10130. value: function getInstance() {
  10131. if (!uni.__stat_instance) {
  10132. uni.__stat_instance = new Stat();
  10133. }
  10134. // 2.0 init 服务空间
  10135. {
  10136. var space = get_space(uniCloud.config);
  10137. if (!uni.__stat_uniCloud_space) {
  10138. // 判断不为空对象
  10139. if (space && Object.keys(space).length !== 0) {
  10140. var spaceData = {
  10141. provider: space.provider,
  10142. spaceId: space.spaceId,
  10143. clientSecret: space.clientSecret
  10144. };
  10145. if (space.endpoint) {
  10146. spaceData.endpoint = space.endpoint;
  10147. }
  10148. if (space.provider === 'alipay') {
  10149. spaceData.secretKey = space.secretKey;
  10150. spaceData.accessKey = space.accessKey || space.secretId;
  10151. spaceData.spaceAppId = space.spaceAppId || space.appId;
  10152. }
  10153. uni.__stat_uniCloud_space = uniCloud.init(spaceData);
  10154. // console.log(
  10155. // '=== 当前绑定的统计服务空间spaceId:' +
  10156. // uni.__stat_uniCloud_space.config.spaceId
  10157. // )
  10158. } else {
  10159. console.error('应用未关联服务空间,请在uniCloud目录右键关联服务空间');
  10160. }
  10161. }
  10162. }
  10163. return uni.__stat_instance;
  10164. }
  10165. }]);
  10166. return Stat;
  10167. }(Report);
  10168. var Stat$1 = Stat;
  10169. var stat = Stat$1.getInstance();
  10170. // 用于判断是隐藏页面还是卸载页面
  10171. var isHide = false;
  10172. var lifecycle = {
  10173. onLaunch: function onLaunch(options) {
  10174. // 进入应用上报数据
  10175. stat.launch(options, this);
  10176. // 上报push推送id
  10177. stat.pushEvent(options);
  10178. },
  10179. onLoad: function onLoad(options) {
  10180. stat.load(options, this);
  10181. // 重写分享,获取分享上报事件
  10182. if (this.$scope && this.$scope.onShareAppMessage) {
  10183. var oldShareAppMessage = this.$scope.onShareAppMessage;
  10184. this.$scope.onShareAppMessage = function (options) {
  10185. stat.interceptShare(false);
  10186. return oldShareAppMessage.call(this, options);
  10187. };
  10188. }
  10189. },
  10190. onShow: function onShow() {
  10191. isHide = false;
  10192. stat.show(this);
  10193. },
  10194. onHide: function onHide() {
  10195. isHide = true;
  10196. stat.hide(this);
  10197. },
  10198. onUnload: function onUnload() {
  10199. if (isHide) {
  10200. isHide = false;
  10201. return;
  10202. }
  10203. stat.hide(this);
  10204. },
  10205. onError: function onError(e) {
  10206. stat.error(e);
  10207. }
  10208. };
  10209. // 加载统计代码
  10210. function load_stat() {
  10211. // eslint-disable-next-line no-restricted-globals
  10212. var Vue = __webpack_require__(/*! vue */ 25);
  10213. (Vue.default || Vue).mixin(lifecycle);
  10214. uni.report = function (type, options) {
  10215. stat.sendEvent(type, options);
  10216. };
  10217. }
  10218. function main() {
  10219. if (is_debug) {
  10220. {
  10221. console.log('=== uni统计开启,version:2.0 ===');
  10222. }
  10223. load_stat();
  10224. } else {
  10225. if (true) {
  10226. uni.report = function (type, options) {};
  10227. } else {}
  10228. }
  10229. }
  10230. main();
  10231. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js */ 28)["default"]))
  10232. /***/ }),
  10233. /***/ 28:
  10234. /*!************************************************************************************!*\
  10235. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  10236. \************************************************************************************/
  10237. /*! no static exports found */
  10238. /***/ (function(module, exports, __webpack_require__) {
  10239. "use strict";
  10240. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  10241. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10242. Object.defineProperty(exports, "__esModule", {
  10243. value: true
  10244. });
  10245. exports.default = void 0;
  10246. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  10247. var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 31));
  10248. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  10249. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10250. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  10251. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  10252. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10253. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  10254. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  10255. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  10256. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 36));
  10257. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  10258. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  10259. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 38));
  10260. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e34) { throw _e34; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e35) { didErr = true; err = _e35; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  10261. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  10262. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  10263. 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; }
  10264. 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; }
  10265. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  10266. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  10267. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  10268. function t(e) {
  10269. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  10270. }
  10271. function n(e, t, n) {
  10272. return e(n = {
  10273. path: t,
  10274. exports: {},
  10275. require: function require(e, t) {
  10276. return function () {
  10277. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  10278. }(null == t && n.path);
  10279. }
  10280. }, n.exports), n.exports;
  10281. }
  10282. var s = n(function (e, t) {
  10283. var n;
  10284. e.exports = (n = n || function (e, t) {
  10285. var n = Object.create || function () {
  10286. function e() {}
  10287. return function (t) {
  10288. var n;
  10289. return e.prototype = t, n = new e(), e.prototype = null, n;
  10290. };
  10291. }(),
  10292. s = {},
  10293. r = s.lib = {},
  10294. i = r.Base = {
  10295. extend: function extend(e) {
  10296. var t = n(this);
  10297. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  10298. t.$super.init.apply(this, arguments);
  10299. }), t.init.prototype = t, t.$super = this, t;
  10300. },
  10301. create: function create() {
  10302. var e = this.extend();
  10303. return e.init.apply(e, arguments), e;
  10304. },
  10305. init: function init() {},
  10306. mixIn: function mixIn(e) {
  10307. for (var t in e) {
  10308. e.hasOwnProperty(t) && (this[t] = e[t]);
  10309. }
  10310. e.hasOwnProperty("toString") && (this.toString = e.toString);
  10311. },
  10312. clone: function clone() {
  10313. return this.init.prototype.extend(this);
  10314. }
  10315. },
  10316. o = r.WordArray = i.extend({
  10317. init: function init(e, n) {
  10318. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  10319. },
  10320. toString: function toString(e) {
  10321. return (e || c).stringify(this);
  10322. },
  10323. concat: function concat(e) {
  10324. var t = this.words,
  10325. n = e.words,
  10326. s = this.sigBytes,
  10327. r = e.sigBytes;
  10328. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  10329. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  10330. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  10331. } else for (i = 0; i < r; i += 4) {
  10332. t[s + i >>> 2] = n[i >>> 2];
  10333. }
  10334. return this.sigBytes += r, this;
  10335. },
  10336. clamp: function clamp() {
  10337. var t = this.words,
  10338. n = this.sigBytes;
  10339. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  10340. },
  10341. clone: function clone() {
  10342. var e = i.clone.call(this);
  10343. return e.words = this.words.slice(0), e;
  10344. },
  10345. random: function random(t) {
  10346. for (var n, s = [], r = function r(t) {
  10347. t = t;
  10348. var n = 987654321,
  10349. s = 4294967295;
  10350. return function () {
  10351. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  10352. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  10353. };
  10354. }, i = 0; i < t; i += 4) {
  10355. var a = r(4294967296 * (n || e.random()));
  10356. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  10357. }
  10358. return new o.init(s, t);
  10359. }
  10360. }),
  10361. a = s.enc = {},
  10362. c = a.Hex = {
  10363. stringify: function stringify(e) {
  10364. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  10365. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  10366. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  10367. }
  10368. return s.join("");
  10369. },
  10370. parse: function parse(e) {
  10371. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  10372. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  10373. }
  10374. return new o.init(n, t / 2);
  10375. }
  10376. },
  10377. u = a.Latin1 = {
  10378. stringify: function stringify(e) {
  10379. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  10380. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  10381. s.push(String.fromCharCode(i));
  10382. }
  10383. return s.join("");
  10384. },
  10385. parse: function parse(e) {
  10386. for (var t = e.length, n = [], s = 0; s < t; s++) {
  10387. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  10388. }
  10389. return new o.init(n, t);
  10390. }
  10391. },
  10392. h = a.Utf8 = {
  10393. stringify: function stringify(e) {
  10394. try {
  10395. return decodeURIComponent(escape(u.stringify(e)));
  10396. } catch (e) {
  10397. throw new Error("Malformed UTF-8 data");
  10398. }
  10399. },
  10400. parse: function parse(e) {
  10401. return u.parse(unescape(encodeURIComponent(e)));
  10402. }
  10403. },
  10404. l = r.BufferedBlockAlgorithm = i.extend({
  10405. reset: function reset() {
  10406. this._data = new o.init(), this._nDataBytes = 0;
  10407. },
  10408. _append: function _append(e) {
  10409. "string" == typeof e && (e = h.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  10410. },
  10411. _process: function _process(t) {
  10412. var n = this._data,
  10413. s = n.words,
  10414. r = n.sigBytes,
  10415. i = this.blockSize,
  10416. a = r / (4 * i),
  10417. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  10418. u = e.min(4 * c, r);
  10419. if (c) {
  10420. for (var h = 0; h < c; h += i) {
  10421. this._doProcessBlock(s, h);
  10422. }
  10423. var l = s.splice(0, c);
  10424. n.sigBytes -= u;
  10425. }
  10426. return new o.init(l, u);
  10427. },
  10428. clone: function clone() {
  10429. var e = i.clone.call(this);
  10430. return e._data = this._data.clone(), e;
  10431. },
  10432. _minBufferSize: 0
  10433. });
  10434. r.Hasher = l.extend({
  10435. cfg: i.extend(),
  10436. init: function init(e) {
  10437. this.cfg = this.cfg.extend(e), this.reset();
  10438. },
  10439. reset: function reset() {
  10440. l.reset.call(this), this._doReset();
  10441. },
  10442. update: function update(e) {
  10443. return this._append(e), this._process(), this;
  10444. },
  10445. finalize: function finalize(e) {
  10446. return e && this._append(e), this._doFinalize();
  10447. },
  10448. blockSize: 16,
  10449. _createHelper: function _createHelper(e) {
  10450. return function (t, n) {
  10451. return new e.init(n).finalize(t);
  10452. };
  10453. },
  10454. _createHmacHelper: function _createHmacHelper(e) {
  10455. return function (t, n) {
  10456. return new d.HMAC.init(e, n).finalize(t);
  10457. };
  10458. }
  10459. });
  10460. var d = s.algo = {};
  10461. return s;
  10462. }(Math), n);
  10463. }),
  10464. r = s,
  10465. i = (n(function (e, t) {
  10466. var n;
  10467. e.exports = (n = r, function (e) {
  10468. var t = n,
  10469. s = t.lib,
  10470. r = s.WordArray,
  10471. i = s.Hasher,
  10472. o = t.algo,
  10473. a = [];
  10474. !function () {
  10475. for (var t = 0; t < 64; t++) {
  10476. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  10477. }
  10478. }();
  10479. var c = o.MD5 = i.extend({
  10480. _doReset: function _doReset() {
  10481. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  10482. },
  10483. _doProcessBlock: function _doProcessBlock(e, t) {
  10484. for (var n = 0; n < 16; n++) {
  10485. var s = t + n,
  10486. r = e[s];
  10487. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  10488. }
  10489. var i = this._hash.words,
  10490. o = e[t + 0],
  10491. c = e[t + 1],
  10492. p = e[t + 2],
  10493. f = e[t + 3],
  10494. g = e[t + 4],
  10495. m = e[t + 5],
  10496. y = e[t + 6],
  10497. _ = e[t + 7],
  10498. w = e[t + 8],
  10499. v = e[t + 9],
  10500. I = e[t + 10],
  10501. S = e[t + 11],
  10502. b = e[t + 12],
  10503. k = e[t + 13],
  10504. A = e[t + 14],
  10505. P = e[t + 15],
  10506. T = i[0],
  10507. C = i[1],
  10508. x = i[2],
  10509. O = i[3];
  10510. T = u(T, C, x, O, o, 7, a[0]), O = u(O, T, C, x, c, 12, a[1]), x = u(x, O, T, C, p, 17, a[2]), C = u(C, x, O, T, f, 22, a[3]), T = u(T, C, x, O, g, 7, a[4]), O = u(O, T, C, x, m, 12, a[5]), x = u(x, O, T, C, y, 17, a[6]), C = u(C, x, O, T, _, 22, a[7]), T = u(T, C, x, O, w, 7, a[8]), O = u(O, T, C, x, v, 12, a[9]), x = u(x, O, T, C, I, 17, a[10]), C = u(C, x, O, T, S, 22, a[11]), T = u(T, C, x, O, b, 7, a[12]), O = u(O, T, C, x, k, 12, a[13]), x = u(x, O, T, C, A, 17, a[14]), T = h(T, C = u(C, x, O, T, P, 22, a[15]), x, O, c, 5, a[16]), O = h(O, T, C, x, y, 9, a[17]), x = h(x, O, T, C, S, 14, a[18]), C = h(C, x, O, T, o, 20, a[19]), T = h(T, C, x, O, m, 5, a[20]), O = h(O, T, C, x, I, 9, a[21]), x = h(x, O, T, C, P, 14, a[22]), C = h(C, x, O, T, g, 20, a[23]), T = h(T, C, x, O, v, 5, a[24]), O = h(O, T, C, x, A, 9, a[25]), x = h(x, O, T, C, f, 14, a[26]), C = h(C, x, O, T, w, 20, a[27]), T = h(T, C, x, O, k, 5, a[28]), O = h(O, T, C, x, p, 9, a[29]), x = h(x, O, T, C, _, 14, a[30]), T = l(T, C = h(C, x, O, T, b, 20, a[31]), x, O, m, 4, a[32]), O = l(O, T, C, x, w, 11, a[33]), x = l(x, O, T, C, S, 16, a[34]), C = l(C, x, O, T, A, 23, a[35]), T = l(T, C, x, O, c, 4, a[36]), O = l(O, T, C, x, g, 11, a[37]), x = l(x, O, T, C, _, 16, a[38]), C = l(C, x, O, T, I, 23, a[39]), T = l(T, C, x, O, k, 4, a[40]), O = l(O, T, C, x, o, 11, a[41]), x = l(x, O, T, C, f, 16, a[42]), C = l(C, x, O, T, y, 23, a[43]), T = l(T, C, x, O, v, 4, a[44]), O = l(O, T, C, x, b, 11, a[45]), x = l(x, O, T, C, P, 16, a[46]), T = d(T, C = l(C, x, O, T, p, 23, a[47]), x, O, o, 6, a[48]), O = d(O, T, C, x, _, 10, a[49]), x = d(x, O, T, C, A, 15, a[50]), C = d(C, x, O, T, m, 21, a[51]), T = d(T, C, x, O, b, 6, a[52]), O = d(O, T, C, x, f, 10, a[53]), x = d(x, O, T, C, I, 15, a[54]), C = d(C, x, O, T, c, 21, a[55]), T = d(T, C, x, O, w, 6, a[56]), O = d(O, T, C, x, P, 10, a[57]), x = d(x, O, T, C, y, 15, a[58]), C = d(C, x, O, T, k, 21, a[59]), T = d(T, C, x, O, g, 6, a[60]), O = d(O, T, C, x, S, 10, a[61]), x = d(x, O, T, C, p, 15, a[62]), C = d(C, x, O, T, v, 21, a[63]), i[0] = i[0] + T | 0, i[1] = i[1] + C | 0, i[2] = i[2] + x | 0, i[3] = i[3] + O | 0;
  10511. },
  10512. _doFinalize: function _doFinalize() {
  10513. var t = this._data,
  10514. n = t.words,
  10515. s = 8 * this._nDataBytes,
  10516. r = 8 * t.sigBytes;
  10517. n[r >>> 5] |= 128 << 24 - r % 32;
  10518. var i = e.floor(s / 4294967296),
  10519. o = s;
  10520. n[15 + (r + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), n[14 + (r + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();
  10521. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  10522. var h = c[u];
  10523. c[u] = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8);
  10524. }
  10525. return a;
  10526. },
  10527. clone: function clone() {
  10528. var e = i.clone.call(this);
  10529. return e._hash = this._hash.clone(), e;
  10530. }
  10531. });
  10532. function u(e, t, n, s, r, i, o) {
  10533. var a = e + (t & n | ~t & s) + r + o;
  10534. return (a << i | a >>> 32 - i) + t;
  10535. }
  10536. function h(e, t, n, s, r, i, o) {
  10537. var a = e + (t & s | n & ~s) + r + o;
  10538. return (a << i | a >>> 32 - i) + t;
  10539. }
  10540. function l(e, t, n, s, r, i, o) {
  10541. var a = e + (t ^ n ^ s) + r + o;
  10542. return (a << i | a >>> 32 - i) + t;
  10543. }
  10544. function d(e, t, n, s, r, i, o) {
  10545. var a = e + (n ^ (t | ~s)) + r + o;
  10546. return (a << i | a >>> 32 - i) + t;
  10547. }
  10548. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  10549. }(Math), n.MD5);
  10550. }), n(function (e, t) {
  10551. var n;
  10552. e.exports = (n = r, void function () {
  10553. var e = n,
  10554. t = e.lib.Base,
  10555. s = e.enc.Utf8;
  10556. e.algo.HMAC = t.extend({
  10557. init: function init(e, t) {
  10558. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  10559. var n = e.blockSize,
  10560. r = 4 * n;
  10561. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  10562. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  10563. a[u] ^= 1549556828, c[u] ^= 909522486;
  10564. }
  10565. i.sigBytes = o.sigBytes = r, this.reset();
  10566. },
  10567. reset: function reset() {
  10568. var e = this._hasher;
  10569. e.reset(), e.update(this._iKey);
  10570. },
  10571. update: function update(e) {
  10572. return this._hasher.update(e), this;
  10573. },
  10574. finalize: function finalize(e) {
  10575. var t = this._hasher,
  10576. n = t.finalize(e);
  10577. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  10578. }
  10579. });
  10580. }());
  10581. }), n(function (e, t) {
  10582. e.exports = r.HmacMD5;
  10583. })),
  10584. o = n(function (e, t) {
  10585. e.exports = r.enc.Utf8;
  10586. }),
  10587. a = n(function (e, t) {
  10588. var n;
  10589. e.exports = (n = r, function () {
  10590. var e = n,
  10591. t = e.lib.WordArray;
  10592. function s(e, n, s) {
  10593. for (var r = [], i = 0, o = 0; o < n; o++) {
  10594. if (o % 4) {
  10595. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  10596. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  10597. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  10598. }
  10599. }
  10600. return t.create(r, i);
  10601. }
  10602. e.enc.Base64 = {
  10603. stringify: function stringify(e) {
  10604. var t = e.words,
  10605. n = e.sigBytes,
  10606. s = this._map;
  10607. e.clamp();
  10608. for (var r = [], i = 0; i < n; i += 3) {
  10609. for (var o = (t[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (t[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | t[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; a < 4 && i + .75 * a < n; a++) {
  10610. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  10611. }
  10612. }
  10613. var c = s.charAt(64);
  10614. if (c) for (; r.length % 4;) {
  10615. r.push(c);
  10616. }
  10617. return r.join("");
  10618. },
  10619. parse: function parse(e) {
  10620. var t = e.length,
  10621. n = this._map,
  10622. r = this._reverseMap;
  10623. if (!r) {
  10624. r = this._reverseMap = [];
  10625. for (var i = 0; i < n.length; i++) {
  10626. r[n.charCodeAt(i)] = i;
  10627. }
  10628. }
  10629. var o = n.charAt(64);
  10630. if (o) {
  10631. var a = e.indexOf(o);
  10632. -1 !== a && (t = a);
  10633. }
  10634. return s(e, t, r);
  10635. },
  10636. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  10637. };
  10638. }(), n.enc.Base64);
  10639. });
  10640. var c = "FUNCTION",
  10641. u = "OBJECT",
  10642. h = "CLIENT_DB",
  10643. l = "pending",
  10644. d = "fulfilled",
  10645. p = "rejected";
  10646. function f(e) {
  10647. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  10648. }
  10649. function g(e) {
  10650. return "object" === f(e);
  10651. }
  10652. function m(e) {
  10653. return "function" == typeof e;
  10654. }
  10655. function y(e) {
  10656. return function () {
  10657. try {
  10658. return e.apply(e, arguments);
  10659. } catch (e) {
  10660. console.error(e);
  10661. }
  10662. };
  10663. }
  10664. var _ = "REJECTED",
  10665. w = "NOT_PENDING";
  10666. var v = /*#__PURE__*/function () {
  10667. function v() {
  10668. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  10669. e = _ref.createPromise,
  10670. _ref$retryRule = _ref.retryRule,
  10671. t = _ref$retryRule === void 0 ? _ : _ref$retryRule;
  10672. (0, _classCallCheck2.default)(this, v);
  10673. this.createPromise = e, this.status = null, this.promise = null, this.retryRule = t;
  10674. }
  10675. (0, _createClass2.default)(v, [{
  10676. key: "needRetry",
  10677. get: function get() {
  10678. if (!this.status) return !0;
  10679. switch (this.retryRule) {
  10680. case _:
  10681. return this.status === p;
  10682. case w:
  10683. return this.status !== l;
  10684. }
  10685. }
  10686. }, {
  10687. key: "exec",
  10688. value: function exec() {
  10689. var _this = this;
  10690. return this.needRetry ? (this.status = l, this.promise = this.createPromise().then(function (e) {
  10691. return _this.status = d, Promise.resolve(e);
  10692. }, function (e) {
  10693. return _this.status = p, Promise.reject(e);
  10694. }), this.promise) : this.promise;
  10695. }
  10696. }]);
  10697. return v;
  10698. }();
  10699. function I(e) {
  10700. return e && "string" == typeof e ? JSON.parse(e) : e;
  10701. }
  10702. var S = "development" === "development",
  10703. b = "mp-weixin",
  10704. k = "true" === undefined || !0 === undefined,
  10705. A = I([]),
  10706. P = "h5" === b ? "web" : "app-plus" === b ? "app" : b,
  10707. T = I(undefined),
  10708. C = I([]) || [],
  10709. x = true;
  10710. var O = "";
  10711. try {
  10712. O = (__webpack_require__(/*! uni-stat-config */ 39).default || __webpack_require__(/*! uni-stat-config */ 39)).appid;
  10713. } catch (e) {}
  10714. var E = {};
  10715. function L(e) {
  10716. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10717. var n, s;
  10718. return n = E, s = e, Object.prototype.hasOwnProperty.call(n, s) || (E[e] = t), E[e];
  10719. }
  10720. "app" === P && (E = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  10721. var R = ["invoke", "success", "fail", "complete"],
  10722. U = L("_globalUniCloudInterceptor");
  10723. function N(e, t) {
  10724. U[e] || (U[e] = {}), g(t) && Object.keys(t).forEach(function (n) {
  10725. R.indexOf(n) > -1 && function (e, t, n) {
  10726. var s = U[e][t];
  10727. s || (s = U[e][t] = []), -1 === s.indexOf(n) && m(n) && s.push(n);
  10728. }(e, n, t[n]);
  10729. });
  10730. }
  10731. function D(e, t) {
  10732. U[e] || (U[e] = {}), g(t) ? Object.keys(t).forEach(function (n) {
  10733. R.indexOf(n) > -1 && function (e, t, n) {
  10734. var s = U[e][t];
  10735. if (!s) return;
  10736. var r = s.indexOf(n);
  10737. r > -1 && s.splice(r, 1);
  10738. }(e, n, t[n]);
  10739. }) : delete U[e];
  10740. }
  10741. function M(e, t) {
  10742. return e && 0 !== e.length ? e.reduce(function (e, n) {
  10743. return e.then(function () {
  10744. return n(t);
  10745. });
  10746. }, Promise.resolve()) : Promise.resolve();
  10747. }
  10748. function q(e, t) {
  10749. return U[e] && U[e][t] || [];
  10750. }
  10751. function F(e) {
  10752. N("callObject", e);
  10753. }
  10754. var K = L("_globalUniCloudListener"),
  10755. j = "response",
  10756. $ = "needLogin",
  10757. B = "refreshToken",
  10758. W = "clientdb",
  10759. H = "cloudfunction",
  10760. z = "cloudobject";
  10761. function J(e) {
  10762. return K[e] || (K[e] = []), K[e];
  10763. }
  10764. function G(e, t) {
  10765. var n = J(e);
  10766. n.includes(t) || n.push(t);
  10767. }
  10768. function V(e, t) {
  10769. var n = J(e),
  10770. s = n.indexOf(t);
  10771. -1 !== s && n.splice(s, 1);
  10772. }
  10773. function Y(e, t) {
  10774. var n = J(e);
  10775. for (var _e2 = 0; _e2 < n.length; _e2++) {
  10776. (0, n[_e2])(t);
  10777. }
  10778. }
  10779. var Q,
  10780. X = !1;
  10781. function Z() {
  10782. return Q || (Q = new Promise(function (e) {
  10783. X && e(), function t() {
  10784. if ("function" == typeof getCurrentPages) {
  10785. var _t2 = getCurrentPages();
  10786. _t2 && _t2[0] && (X = !0, e());
  10787. }
  10788. X || setTimeout(function () {
  10789. t();
  10790. }, 30);
  10791. }();
  10792. }), Q);
  10793. }
  10794. function ee(e) {
  10795. var t = {};
  10796. for (var _n2 in e) {
  10797. var _s2 = e[_n2];
  10798. m(_s2) && (t[_n2] = y(_s2));
  10799. }
  10800. return t;
  10801. }
  10802. var te = /*#__PURE__*/function (_Error) {
  10803. (0, _inherits2.default)(te, _Error);
  10804. var _super = _createSuper(te);
  10805. function te(e) {
  10806. var _this2;
  10807. (0, _classCallCheck2.default)(this, te);
  10808. _this2 = _super.call(this, e.message), _this2.errMsg = e.message || e.errMsg || "unknown system error", _this2.code = _this2.errCode = e.code || e.errCode || "SYSTEM_ERROR", _this2.errSubject = _this2.subject = e.subject || e.errSubject, _this2.cause = e.cause, _this2.requestId = e.requestId;
  10809. return _this2;
  10810. }
  10811. (0, _createClass2.default)(te, [{
  10812. key: "toJson",
  10813. value: function toJson() {
  10814. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  10815. if (!(e >= 10)) return e++, {
  10816. errCode: this.errCode,
  10817. errMsg: this.errMsg,
  10818. errSubject: this.errSubject,
  10819. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  10820. };
  10821. }
  10822. }]);
  10823. return te;
  10824. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  10825. var ne = {
  10826. request: function request(e) {
  10827. return uni.request(e);
  10828. },
  10829. uploadFile: function uploadFile(e) {
  10830. return uni.uploadFile(e);
  10831. },
  10832. setStorageSync: function setStorageSync(e, t) {
  10833. return uni.setStorageSync(e, t);
  10834. },
  10835. getStorageSync: function getStorageSync(e) {
  10836. return uni.getStorageSync(e);
  10837. },
  10838. removeStorageSync: function removeStorageSync(e) {
  10839. return uni.removeStorageSync(e);
  10840. },
  10841. clearStorageSync: function clearStorageSync() {
  10842. return uni.clearStorageSync();
  10843. }
  10844. };
  10845. function se() {
  10846. return {
  10847. token: ne.getStorageSync("uni_id_token") || ne.getStorageSync("uniIdToken"),
  10848. tokenExpired: ne.getStorageSync("uni_id_token_expired")
  10849. };
  10850. }
  10851. function re() {
  10852. var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  10853. e = _ref2.token,
  10854. t = _ref2.tokenExpired;
  10855. e && ne.setStorageSync("uni_id_token", e), t && ne.setStorageSync("uni_id_token_expired", t);
  10856. }
  10857. var ie, oe;
  10858. function ae() {
  10859. return ie || (ie = uni.getSystemInfoSync()), ie;
  10860. }
  10861. function ce() {
  10862. var e, t;
  10863. try {
  10864. if (uni.getLaunchOptionsSync) {
  10865. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  10866. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  10867. _n3 = _uni$getLaunchOptions.scene,
  10868. _s3 = _uni$getLaunchOptions.channel;
  10869. e = _s3, t = _n3;
  10870. }
  10871. } catch (e) {}
  10872. return {
  10873. channel: e,
  10874. scene: t
  10875. };
  10876. }
  10877. function ue() {
  10878. var e = uni.getLocale && uni.getLocale() || "en";
  10879. if (oe) return _objectSpread(_objectSpread({}, oe), {}, {
  10880. locale: e,
  10881. LOCALE: e
  10882. });
  10883. var t = ae(),
  10884. n = t.deviceId,
  10885. s = t.osName,
  10886. r = t.uniPlatform,
  10887. i = t.appId,
  10888. o = ["pixelRatio", "brand", "model", "system", "language", "version", "platform", "host", "SDKVersion", "swanNativeVersion", "app", "AppPlatform", "fontSizeSetting"];
  10889. for (var _e3 = 0; _e3 < o.length; _e3++) {
  10890. delete t[o[_e3]];
  10891. }
  10892. return oe = _objectSpread(_objectSpread({
  10893. PLATFORM: r,
  10894. OS: s,
  10895. APPID: i,
  10896. DEVICEID: n
  10897. }, ce()), t), _objectSpread(_objectSpread({}, oe), {}, {
  10898. locale: e,
  10899. LOCALE: e
  10900. });
  10901. }
  10902. var he = {
  10903. sign: function sign(e, t) {
  10904. var n = "";
  10905. return Object.keys(e).sort().forEach(function (t) {
  10906. e[t] && (n = n + "&" + t + "=" + e[t]);
  10907. }), n = n.slice(1), i(n, t).toString();
  10908. },
  10909. wrappedRequest: function wrappedRequest(e, t) {
  10910. return new Promise(function (n, s) {
  10911. t(Object.assign(e, {
  10912. complete: function complete(e) {
  10913. e || (e = {}), S && "web" === P && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  10914. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  10915. if (!e.statusCode || e.statusCode >= 400) return s(new te({
  10916. code: "SYS_ERR",
  10917. message: e.errMsg || "request:fail",
  10918. requestId: t
  10919. }));
  10920. var r = e.data;
  10921. if (r.error) return s(new te({
  10922. code: r.error.code,
  10923. message: r.error.message,
  10924. requestId: t
  10925. }));
  10926. r.result = r.data, r.requestId = t, delete r.data, n(r);
  10927. }
  10928. }));
  10929. });
  10930. },
  10931. toBase64: function toBase64(e) {
  10932. return a.stringify(o.parse(e));
  10933. }
  10934. };
  10935. var le = /*#__PURE__*/function () {
  10936. function le(e) {
  10937. var _this3 = this;
  10938. (0, _classCallCheck2.default)(this, le);
  10939. ["spaceId", "clientSecret"].forEach(function (t) {
  10940. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  10941. }), this.config = Object.assign({}, {
  10942. endpoint: 0 === e.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com"
  10943. }, e), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = ne, this._getAccessTokenPromiseHub = new v({
  10944. createPromise: function createPromise() {
  10945. return _this3.requestAuth(_this3.setupRequest({
  10946. method: "serverless.auth.user.anonymousAuthorize",
  10947. params: "{}"
  10948. }, "auth")).then(function (e) {
  10949. if (!e.result || !e.result.accessToken) throw new te({
  10950. code: "AUTH_FAILED",
  10951. message: "获取accessToken失败"
  10952. });
  10953. _this3.setAccessToken(e.result.accessToken);
  10954. });
  10955. },
  10956. retryRule: w
  10957. });
  10958. }
  10959. (0, _createClass2.default)(le, [{
  10960. key: "hasAccessToken",
  10961. get: function get() {
  10962. return !!this.accessToken;
  10963. }
  10964. }, {
  10965. key: "setAccessToken",
  10966. value: function setAccessToken(e) {
  10967. this.accessToken = e;
  10968. }
  10969. }, {
  10970. key: "requestWrapped",
  10971. value: function requestWrapped(e) {
  10972. return he.wrappedRequest(e, this.adapter.request);
  10973. }
  10974. }, {
  10975. key: "requestAuth",
  10976. value: function requestAuth(e) {
  10977. return this.requestWrapped(e);
  10978. }
  10979. }, {
  10980. key: "request",
  10981. value: function request(e, t) {
  10982. var _this4 = this;
  10983. return Promise.resolve().then(function () {
  10984. return _this4.hasAccessToken ? t ? _this4.requestWrapped(e) : _this4.requestWrapped(e).catch(function (t) {
  10985. return new Promise(function (e, n) {
  10986. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  10987. }).then(function () {
  10988. return _this4.getAccessToken();
  10989. }).then(function () {
  10990. var t = _this4.rebuildRequest(e);
  10991. return _this4.request(t, !0);
  10992. });
  10993. }) : _this4.getAccessToken().then(function () {
  10994. var t = _this4.rebuildRequest(e);
  10995. return _this4.request(t, !0);
  10996. });
  10997. });
  10998. }
  10999. }, {
  11000. key: "rebuildRequest",
  11001. value: function rebuildRequest(e) {
  11002. var t = Object.assign({}, e);
  11003. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = he.sign(t.data, this.config.clientSecret), t;
  11004. }
  11005. }, {
  11006. key: "setupRequest",
  11007. value: function setupRequest(e, t) {
  11008. var n = Object.assign({}, e, {
  11009. spaceId: this.config.spaceId,
  11010. timestamp: Date.now()
  11011. }),
  11012. s = {
  11013. "Content-Type": "application/json"
  11014. };
  11015. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = he.sign(n, this.config.clientSecret), {
  11016. url: this.config.requestUrl,
  11017. method: "POST",
  11018. data: n,
  11019. dataType: "json",
  11020. header: s
  11021. };
  11022. }
  11023. }, {
  11024. key: "getAccessToken",
  11025. value: function getAccessToken() {
  11026. return this._getAccessTokenPromiseHub.exec();
  11027. }
  11028. }, {
  11029. key: "authorize",
  11030. value: function () {
  11031. var _authorize = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  11032. return _regenerator.default.wrap(function _callee$(_context) {
  11033. while (1) {
  11034. switch (_context.prev = _context.next) {
  11035. case 0:
  11036. _context.next = 2;
  11037. return this.getAccessToken();
  11038. case 2:
  11039. case "end":
  11040. return _context.stop();
  11041. }
  11042. }
  11043. }, _callee, this);
  11044. }));
  11045. function authorize() {
  11046. return _authorize.apply(this, arguments);
  11047. }
  11048. return authorize;
  11049. }()
  11050. }, {
  11051. key: "callFunction",
  11052. value: function callFunction(e) {
  11053. var t = {
  11054. method: "serverless.function.runtime.invoke",
  11055. params: JSON.stringify({
  11056. functionTarget: e.name,
  11057. functionArgs: e.data || {}
  11058. })
  11059. };
  11060. return this.request(this.setupRequest(t));
  11061. }
  11062. }, {
  11063. key: "getOSSUploadOptionsFromPath",
  11064. value: function getOSSUploadOptionsFromPath(e) {
  11065. var t = {
  11066. method: "serverless.file.resource.generateProximalSign",
  11067. params: JSON.stringify(e)
  11068. };
  11069. return this.request(this.setupRequest(t));
  11070. }
  11071. }, {
  11072. key: "uploadFileToOSS",
  11073. value: function uploadFileToOSS(_ref3) {
  11074. var _this5 = this;
  11075. var e = _ref3.url,
  11076. t = _ref3.formData,
  11077. n = _ref3.name,
  11078. s = _ref3.filePath,
  11079. r = _ref3.fileType,
  11080. i = _ref3.onUploadProgress;
  11081. return new Promise(function (o, a) {
  11082. var c = _this5.adapter.uploadFile({
  11083. url: e,
  11084. formData: t,
  11085. name: n,
  11086. filePath: s,
  11087. fileType: r,
  11088. header: {
  11089. "X-OSS-server-side-encrpytion": "AES256"
  11090. },
  11091. success: function success(e) {
  11092. e && e.statusCode < 400 ? o(e) : a(new te({
  11093. code: "UPLOAD_FAILED",
  11094. message: "文件上传失败"
  11095. }));
  11096. },
  11097. fail: function fail(e) {
  11098. a(new te({
  11099. code: e.code || "UPLOAD_FAILED",
  11100. message: e.message || e.errMsg || "文件上传失败"
  11101. }));
  11102. }
  11103. });
  11104. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  11105. i({
  11106. loaded: e.totalBytesSent,
  11107. total: e.totalBytesExpectedToSend
  11108. });
  11109. });
  11110. });
  11111. }
  11112. }, {
  11113. key: "reportOSSUpload",
  11114. value: function reportOSSUpload(e) {
  11115. var t = {
  11116. method: "serverless.file.resource.report",
  11117. params: JSON.stringify(e)
  11118. };
  11119. return this.request(this.setupRequest(t));
  11120. }
  11121. }, {
  11122. key: "uploadFile",
  11123. value: function () {
  11124. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref4) {
  11125. var e, t, _ref4$fileType, n, _ref4$cloudPathAsReal, s, r, i, o, a, c, u, h, l, d, p, g, m, y, _, _e4, w;
  11126. return _regenerator.default.wrap(function _callee2$(_context2) {
  11127. while (1) {
  11128. switch (_context2.prev = _context2.next) {
  11129. case 0:
  11130. e = _ref4.filePath, t = _ref4.cloudPath, _ref4$fileType = _ref4.fileType, n = _ref4$fileType === void 0 ? "image" : _ref4$fileType, _ref4$cloudPathAsReal = _ref4.cloudPathAsRealPath, s = _ref4$cloudPathAsReal === void 0 ? !1 : _ref4$cloudPathAsReal, r = _ref4.onUploadProgress, i = _ref4.config;
  11131. if (!("string" !== f(t))) {
  11132. _context2.next = 3;
  11133. break;
  11134. }
  11135. throw new te({
  11136. code: "INVALID_PARAM",
  11137. message: "cloudPath必须为字符串类型"
  11138. });
  11139. case 3:
  11140. if (t = t.trim()) {
  11141. _context2.next = 5;
  11142. break;
  11143. }
  11144. throw new te({
  11145. code: "INVALID_PARAM",
  11146. message: "cloudPath不可为空"
  11147. });
  11148. case 5:
  11149. if (!/:\/\//.test(t)) {
  11150. _context2.next = 7;
  11151. break;
  11152. }
  11153. throw new te({
  11154. code: "INVALID_PARAM",
  11155. message: "cloudPath不合法"
  11156. });
  11157. case 7:
  11158. o = i && i.envType || this.config.envType;
  11159. if (!(s && ("/" !== t[0] && (t = "/" + t), t.indexOf("\\") > -1))) {
  11160. _context2.next = 10;
  11161. break;
  11162. }
  11163. throw new te({
  11164. code: "INVALID_PARAM",
  11165. message: "使用cloudPath作为路径时,cloudPath不可包含“\\”"
  11166. });
  11167. case 10:
  11168. _context2.next = 12;
  11169. return this.getOSSUploadOptionsFromPath({
  11170. env: o,
  11171. filename: s ? t.split("/").pop() : t,
  11172. fileId: s ? t : void 0
  11173. });
  11174. case 12:
  11175. a = _context2.sent.result;
  11176. c = "https://" + a.cdnDomain + "/" + a.ossPath;
  11177. u = a.securityToken;
  11178. h = a.accessKeyId;
  11179. l = a.signature;
  11180. d = a.host;
  11181. p = a.ossPath;
  11182. g = a.id;
  11183. m = a.policy;
  11184. y = a.ossCallbackUrl;
  11185. _ = {
  11186. "Cache-Control": "max-age=2592000",
  11187. "Content-Disposition": "attachment",
  11188. OSSAccessKeyId: h,
  11189. Signature: l,
  11190. host: d,
  11191. id: g,
  11192. key: p,
  11193. policy: m,
  11194. success_action_status: 200
  11195. };
  11196. if (u && (_["x-oss-security-token"] = u), y) {
  11197. _e4 = JSON.stringify({
  11198. callbackUrl: y,
  11199. callbackBody: JSON.stringify({
  11200. fileId: g,
  11201. spaceId: this.config.spaceId
  11202. }),
  11203. callbackBodyType: "application/json"
  11204. });
  11205. _.callback = he.toBase64(_e4);
  11206. }
  11207. w = {
  11208. url: "https://" + a.host,
  11209. formData: _,
  11210. fileName: "file",
  11211. name: "file",
  11212. filePath: e,
  11213. fileType: n
  11214. };
  11215. _context2.next = 27;
  11216. return this.uploadFileToOSS(Object.assign({}, w, {
  11217. onUploadProgress: r
  11218. }));
  11219. case 27:
  11220. if (!y) {
  11221. _context2.next = 29;
  11222. break;
  11223. }
  11224. return _context2.abrupt("return", {
  11225. success: !0,
  11226. filePath: e,
  11227. fileID: c
  11228. });
  11229. case 29:
  11230. _context2.next = 31;
  11231. return this.reportOSSUpload({
  11232. id: g
  11233. });
  11234. case 31:
  11235. if (!_context2.sent.success) {
  11236. _context2.next = 33;
  11237. break;
  11238. }
  11239. return _context2.abrupt("return", {
  11240. success: !0,
  11241. filePath: e,
  11242. fileID: c
  11243. });
  11244. case 33:
  11245. throw new te({
  11246. code: "UPLOAD_FAILED",
  11247. message: "文件上传失败"
  11248. });
  11249. case 34:
  11250. case "end":
  11251. return _context2.stop();
  11252. }
  11253. }
  11254. }, _callee2, this);
  11255. }));
  11256. function uploadFile(_x) {
  11257. return _uploadFile.apply(this, arguments);
  11258. }
  11259. return uploadFile;
  11260. }()
  11261. }, {
  11262. key: "getTempFileURL",
  11263. value: function getTempFileURL() {
  11264. var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  11265. e = _ref5.fileList;
  11266. return new Promise(function (t, n) {
  11267. Array.isArray(e) && 0 !== e.length || n(new te({
  11268. code: "INVALID_PARAM",
  11269. message: "fileList的元素必须是非空的字符串"
  11270. })), t({
  11271. fileList: e.map(function (e) {
  11272. return {
  11273. fileID: e,
  11274. tempFileURL: e
  11275. };
  11276. })
  11277. });
  11278. });
  11279. }
  11280. }, {
  11281. key: "getFileInfo",
  11282. value: function () {
  11283. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  11284. var _ref6,
  11285. e,
  11286. t,
  11287. _args3 = arguments;
  11288. return _regenerator.default.wrap(function _callee3$(_context3) {
  11289. while (1) {
  11290. switch (_context3.prev = _context3.next) {
  11291. case 0:
  11292. _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref6.fileList;
  11293. if (!(!Array.isArray(e) || 0 === e.length)) {
  11294. _context3.next = 3;
  11295. break;
  11296. }
  11297. throw new te({
  11298. code: "INVALID_PARAM",
  11299. message: "fileList的元素必须是非空的字符串"
  11300. });
  11301. case 3:
  11302. t = {
  11303. method: "serverless.file.resource.info",
  11304. params: JSON.stringify({
  11305. id: e.map(function (e) {
  11306. return e.split("?")[0];
  11307. }).join(",")
  11308. })
  11309. };
  11310. _context3.next = 6;
  11311. return this.request(this.setupRequest(t));
  11312. case 6:
  11313. _context3.t0 = _context3.sent.result;
  11314. return _context3.abrupt("return", {
  11315. fileList: _context3.t0
  11316. });
  11317. case 8:
  11318. case "end":
  11319. return _context3.stop();
  11320. }
  11321. }
  11322. }, _callee3, this);
  11323. }));
  11324. function getFileInfo() {
  11325. return _getFileInfo.apply(this, arguments);
  11326. }
  11327. return getFileInfo;
  11328. }()
  11329. }]);
  11330. return le;
  11331. }();
  11332. var de = {
  11333. init: function init(e) {
  11334. var t = new le(e),
  11335. n = {
  11336. signInAnonymously: function signInAnonymously() {
  11337. return t.authorize();
  11338. },
  11339. getLoginState: function getLoginState() {
  11340. return Promise.resolve(!1);
  11341. }
  11342. };
  11343. return t.auth = function () {
  11344. return n;
  11345. }, t.customAuth = t.auth, t;
  11346. }
  11347. };
  11348. var pe = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  11349. var fe;
  11350. !function (e) {
  11351. e.local = "local", e.none = "none", e.session = "session";
  11352. }(fe || (fe = {}));
  11353. var ge = function ge() {},
  11354. me = n(function (e, t) {
  11355. var n;
  11356. e.exports = (n = r, function (e) {
  11357. var t = n,
  11358. s = t.lib,
  11359. r = s.WordArray,
  11360. i = s.Hasher,
  11361. o = t.algo,
  11362. a = [],
  11363. c = [];
  11364. !function () {
  11365. function t(t) {
  11366. for (var n = e.sqrt(t), s = 2; s <= n; s++) {
  11367. if (!(t % s)) return !1;
  11368. }
  11369. return !0;
  11370. }
  11371. function n(e) {
  11372. return 4294967296 * (e - (0 | e)) | 0;
  11373. }
  11374. for (var s = 2, r = 0; r < 64;) {
  11375. t(s) && (r < 8 && (a[r] = n(e.pow(s, .5))), c[r] = n(e.pow(s, 1 / 3)), r++), s++;
  11376. }
  11377. }();
  11378. var u = [],
  11379. h = o.SHA256 = i.extend({
  11380. _doReset: function _doReset() {
  11381. this._hash = new r.init(a.slice(0));
  11382. },
  11383. _doProcessBlock: function _doProcessBlock(e, t) {
  11384. for (var n = this._hash.words, s = n[0], r = n[1], i = n[2], o = n[3], a = n[4], h = n[5], l = n[6], d = n[7], p = 0; p < 64; p++) {
  11385. if (p < 16) u[p] = 0 | e[t + p];else {
  11386. var f = u[p - 15],
  11387. g = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3,
  11388. m = u[p - 2],
  11389. y = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
  11390. u[p] = g + u[p - 7] + y + u[p - 16];
  11391. }
  11392. var _ = s & r ^ s & i ^ r & i,
  11393. w = (s << 30 | s >>> 2) ^ (s << 19 | s >>> 13) ^ (s << 10 | s >>> 22),
  11394. v = d + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & h ^ ~a & l) + c[p] + u[p];
  11395. d = l, l = h, h = a, a = o + v | 0, o = i, i = r, r = s, s = v + (w + _) | 0;
  11396. }
  11397. n[0] = n[0] + s | 0, n[1] = n[1] + r | 0, n[2] = n[2] + i | 0, n[3] = n[3] + o | 0, n[4] = n[4] + a | 0, n[5] = n[5] + h | 0, n[6] = n[6] + l | 0, n[7] = n[7] + d | 0;
  11398. },
  11399. _doFinalize: function _doFinalize() {
  11400. var t = this._data,
  11401. n = t.words,
  11402. s = 8 * this._nDataBytes,
  11403. r = 8 * t.sigBytes;
  11404. return n[r >>> 5] |= 128 << 24 - r % 32, n[14 + (r + 64 >>> 9 << 4)] = e.floor(s / 4294967296), n[15 + (r + 64 >>> 9 << 4)] = s, t.sigBytes = 4 * n.length, this._process(), this._hash;
  11405. },
  11406. clone: function clone() {
  11407. var e = i.clone.call(this);
  11408. return e._hash = this._hash.clone(), e;
  11409. }
  11410. });
  11411. t.SHA256 = i._createHelper(h), t.HmacSHA256 = i._createHmacHelper(h);
  11412. }(Math), n.SHA256);
  11413. }),
  11414. ye = me,
  11415. _e = n(function (e, t) {
  11416. e.exports = r.HmacSHA256;
  11417. });
  11418. var we = function we() {
  11419. var e;
  11420. if (!Promise) {
  11421. e = function e() {}, e.promise = {};
  11422. var _t3 = function _t3() {
  11423. throw new te({
  11424. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  11425. });
  11426. };
  11427. return Object.defineProperty(e.promise, "then", {
  11428. get: _t3
  11429. }), Object.defineProperty(e.promise, "catch", {
  11430. get: _t3
  11431. }), e;
  11432. }
  11433. var t = new Promise(function (t, n) {
  11434. e = function e(_e5, s) {
  11435. return _e5 ? n(_e5) : t(s);
  11436. };
  11437. });
  11438. return e.promise = t, e;
  11439. };
  11440. function ve(e) {
  11441. return void 0 === e;
  11442. }
  11443. function Ie(e) {
  11444. return "[object Null]" === Object.prototype.toString.call(e);
  11445. }
  11446. var Se;
  11447. function be(e) {
  11448. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  11449. var n;
  11450. var _iterator = _createForOfIteratorHelper(t),
  11451. _step;
  11452. try {
  11453. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  11454. var _e6 = _step.value;
  11455. var _t4 = _e6.isMatch,
  11456. _n4 = _e6.genAdapter,
  11457. _s4 = _e6.runtime;
  11458. if (_t4()) return {
  11459. adapter: _n4(),
  11460. runtime: _s4
  11461. };
  11462. }
  11463. } catch (err) {
  11464. _iterator.e(err);
  11465. } finally {
  11466. _iterator.f();
  11467. }
  11468. }
  11469. !function (e) {
  11470. e.WEB = "web", e.WX_MP = "wx_mp";
  11471. }(Se || (Se = {}));
  11472. var ke = {
  11473. adapter: null,
  11474. runtime: void 0
  11475. },
  11476. Ae = ["anonymousUuidKey"];
  11477. var Pe = /*#__PURE__*/function (_ge) {
  11478. (0, _inherits2.default)(Pe, _ge);
  11479. var _super2 = _createSuper(Pe);
  11480. function Pe() {
  11481. var _this6;
  11482. (0, _classCallCheck2.default)(this, Pe);
  11483. _this6 = _super2.call(this), ke.adapter.root.tcbObject || (ke.adapter.root.tcbObject = {});
  11484. return _this6;
  11485. }
  11486. (0, _createClass2.default)(Pe, [{
  11487. key: "setItem",
  11488. value: function setItem(e, t) {
  11489. ke.adapter.root.tcbObject[e] = t;
  11490. }
  11491. }, {
  11492. key: "getItem",
  11493. value: function getItem(e) {
  11494. return ke.adapter.root.tcbObject[e];
  11495. }
  11496. }, {
  11497. key: "removeItem",
  11498. value: function removeItem(e) {
  11499. delete ke.adapter.root.tcbObject[e];
  11500. }
  11501. }, {
  11502. key: "clear",
  11503. value: function clear() {
  11504. delete ke.adapter.root.tcbObject;
  11505. }
  11506. }]);
  11507. return Pe;
  11508. }(ge);
  11509. function Te(e, t) {
  11510. switch (e) {
  11511. case "local":
  11512. return t.localStorage || new Pe();
  11513. case "none":
  11514. return new Pe();
  11515. default:
  11516. return t.sessionStorage || new Pe();
  11517. }
  11518. }
  11519. var Ce = /*#__PURE__*/function () {
  11520. function Ce(e) {
  11521. (0, _classCallCheck2.default)(this, Ce);
  11522. if (!this._storage) {
  11523. this._persistence = ke.adapter.primaryStorage || e.persistence, this._storage = Te(this._persistence, ke.adapter);
  11524. var _t5 = "access_token_".concat(e.env),
  11525. _n5 = "access_token_expire_".concat(e.env),
  11526. _s5 = "refresh_token_".concat(e.env),
  11527. _r = "anonymous_uuid_".concat(e.env),
  11528. _i = "login_type_".concat(e.env),
  11529. _o = "user_info_".concat(e.env);
  11530. this.keys = {
  11531. accessTokenKey: _t5,
  11532. accessTokenExpireKey: _n5,
  11533. refreshTokenKey: _s5,
  11534. anonymousUuidKey: _r,
  11535. loginTypeKey: _i,
  11536. userInfoKey: _o
  11537. };
  11538. }
  11539. }
  11540. (0, _createClass2.default)(Ce, [{
  11541. key: "updatePersistence",
  11542. value: function updatePersistence(e) {
  11543. if (e === this._persistence) return;
  11544. var t = "local" === this._persistence;
  11545. this._persistence = e;
  11546. var n = Te(e, ke.adapter);
  11547. for (var _e7 in this.keys) {
  11548. var _s6 = this.keys[_e7];
  11549. if (t && Ae.includes(_e7)) continue;
  11550. var _r2 = this._storage.getItem(_s6);
  11551. ve(_r2) || Ie(_r2) || (n.setItem(_s6, _r2), this._storage.removeItem(_s6));
  11552. }
  11553. this._storage = n;
  11554. }
  11555. }, {
  11556. key: "setStore",
  11557. value: function setStore(e, t, n) {
  11558. if (!this._storage) return;
  11559. var s = {
  11560. version: n || "localCachev1",
  11561. content: t
  11562. },
  11563. r = JSON.stringify(s);
  11564. try {
  11565. this._storage.setItem(e, r);
  11566. } catch (e) {
  11567. throw e;
  11568. }
  11569. }
  11570. }, {
  11571. key: "getStore",
  11572. value: function getStore(e, t) {
  11573. try {
  11574. if (!this._storage) return;
  11575. } catch (e) {
  11576. return "";
  11577. }
  11578. t = t || "localCachev1";
  11579. var n = this._storage.getItem(e);
  11580. if (!n) return "";
  11581. if (n.indexOf(t) >= 0) {
  11582. return JSON.parse(n).content;
  11583. }
  11584. return "";
  11585. }
  11586. }, {
  11587. key: "removeStore",
  11588. value: function removeStore(e) {
  11589. this._storage.removeItem(e);
  11590. }
  11591. }]);
  11592. return Ce;
  11593. }();
  11594. var xe = {},
  11595. Oe = {};
  11596. function Ee(e) {
  11597. return xe[e];
  11598. }
  11599. var Le = /*#__PURE__*/(0, _createClass2.default)(function Le(e, t) {
  11600. (0, _classCallCheck2.default)(this, Le);
  11601. this.data = t || null, this.name = e;
  11602. });
  11603. var Re = /*#__PURE__*/function (_Le) {
  11604. (0, _inherits2.default)(Re, _Le);
  11605. var _super3 = _createSuper(Re);
  11606. function Re(e, t) {
  11607. var _this7;
  11608. (0, _classCallCheck2.default)(this, Re);
  11609. _this7 = _super3.call(this, "error", {
  11610. error: e,
  11611. data: t
  11612. }), _this7.error = e;
  11613. return _this7;
  11614. }
  11615. return (0, _createClass2.default)(Re);
  11616. }(Le);
  11617. var Ue = new ( /*#__PURE__*/function () {
  11618. function _class() {
  11619. (0, _classCallCheck2.default)(this, _class);
  11620. this._listeners = {};
  11621. }
  11622. (0, _createClass2.default)(_class, [{
  11623. key: "on",
  11624. value: function on(e, t) {
  11625. return function (e, t, n) {
  11626. n[e] = n[e] || [], n[e].push(t);
  11627. }(e, t, this._listeners), this;
  11628. }
  11629. }, {
  11630. key: "off",
  11631. value: function off(e, t) {
  11632. return function (e, t, n) {
  11633. if (n && n[e]) {
  11634. var _s7 = n[e].indexOf(t);
  11635. -1 !== _s7 && n[e].splice(_s7, 1);
  11636. }
  11637. }(e, t, this._listeners), this;
  11638. }
  11639. }, {
  11640. key: "fire",
  11641. value: function fire(e, t) {
  11642. if (e instanceof Re) return console.error(e.error), this;
  11643. var n = "string" == typeof e ? new Le(e, t || {}) : e;
  11644. var s = n.name;
  11645. if (this._listens(s)) {
  11646. n.target = this;
  11647. var _e8 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  11648. var _iterator2 = _createForOfIteratorHelper(_e8),
  11649. _step2;
  11650. try {
  11651. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  11652. var _t6 = _step2.value;
  11653. _t6.call(this, n);
  11654. }
  11655. } catch (err) {
  11656. _iterator2.e(err);
  11657. } finally {
  11658. _iterator2.f();
  11659. }
  11660. }
  11661. return this;
  11662. }
  11663. }, {
  11664. key: "_listens",
  11665. value: function _listens(e) {
  11666. return this._listeners[e] && this._listeners[e].length > 0;
  11667. }
  11668. }]);
  11669. return _class;
  11670. }())();
  11671. function Ne(e, t) {
  11672. Ue.on(e, t);
  11673. }
  11674. function De(e) {
  11675. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11676. Ue.fire(e, t);
  11677. }
  11678. function Me(e, t) {
  11679. Ue.off(e, t);
  11680. }
  11681. var qe = "loginStateChanged",
  11682. Fe = "loginStateExpire",
  11683. Ke = "loginTypeChanged",
  11684. je = "anonymousConverted",
  11685. $e = "refreshAccessToken";
  11686. var Be;
  11687. !function (e) {
  11688. e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", e.NULL = "NULL";
  11689. }(Be || (Be = {}));
  11690. var We = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  11691. He = {
  11692. "X-SDK-Version": "1.3.5"
  11693. };
  11694. function ze(e, t, n) {
  11695. var s = e[t];
  11696. e[t] = function (t) {
  11697. var r = {},
  11698. i = {};
  11699. n.forEach(function (n) {
  11700. var _n$call = n.call(e, t),
  11701. s = _n$call.data,
  11702. o = _n$call.headers;
  11703. Object.assign(r, s), Object.assign(i, o);
  11704. });
  11705. var o = t.data;
  11706. return o && function () {
  11707. var e;
  11708. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e9 in r) {
  11709. o.append(_e9, r[_e9]);
  11710. }
  11711. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  11712. };
  11713. }
  11714. function Je() {
  11715. var e = Math.random().toString(16).slice(2);
  11716. return {
  11717. data: {
  11718. seqId: e
  11719. },
  11720. headers: _objectSpread(_objectSpread({}, He), {}, {
  11721. "x-seqid": e
  11722. })
  11723. };
  11724. }
  11725. var Ge = /*#__PURE__*/function () {
  11726. function Ge() {
  11727. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  11728. (0, _classCallCheck2.default)(this, Ge);
  11729. var t;
  11730. this.config = e, this._reqClass = new ke.adapter.reqClass({
  11731. timeout: this.config.timeout,
  11732. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  11733. restrictedMethods: ["post"]
  11734. }), this._cache = Ee(this.config.env), this._localCache = (t = this.config.env, Oe[t]), ze(this._reqClass, "post", [Je]), ze(this._reqClass, "upload", [Je]), ze(this._reqClass, "download", [Je]);
  11735. }
  11736. (0, _createClass2.default)(Ge, [{
  11737. key: "post",
  11738. value: function () {
  11739. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(e) {
  11740. return _regenerator.default.wrap(function _callee4$(_context4) {
  11741. while (1) {
  11742. switch (_context4.prev = _context4.next) {
  11743. case 0:
  11744. _context4.next = 2;
  11745. return this._reqClass.post(e);
  11746. case 2:
  11747. return _context4.abrupt("return", _context4.sent);
  11748. case 3:
  11749. case "end":
  11750. return _context4.stop();
  11751. }
  11752. }
  11753. }, _callee4, this);
  11754. }));
  11755. function post(_x2) {
  11756. return _post.apply(this, arguments);
  11757. }
  11758. return post;
  11759. }()
  11760. }, {
  11761. key: "upload",
  11762. value: function () {
  11763. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e) {
  11764. return _regenerator.default.wrap(function _callee5$(_context5) {
  11765. while (1) {
  11766. switch (_context5.prev = _context5.next) {
  11767. case 0:
  11768. _context5.next = 2;
  11769. return this._reqClass.upload(e);
  11770. case 2:
  11771. return _context5.abrupt("return", _context5.sent);
  11772. case 3:
  11773. case "end":
  11774. return _context5.stop();
  11775. }
  11776. }
  11777. }, _callee5, this);
  11778. }));
  11779. function upload(_x3) {
  11780. return _upload.apply(this, arguments);
  11781. }
  11782. return upload;
  11783. }()
  11784. }, {
  11785. key: "download",
  11786. value: function () {
  11787. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(e) {
  11788. return _regenerator.default.wrap(function _callee6$(_context6) {
  11789. while (1) {
  11790. switch (_context6.prev = _context6.next) {
  11791. case 0:
  11792. _context6.next = 2;
  11793. return this._reqClass.download(e);
  11794. case 2:
  11795. return _context6.abrupt("return", _context6.sent);
  11796. case 3:
  11797. case "end":
  11798. return _context6.stop();
  11799. }
  11800. }
  11801. }, _callee6, this);
  11802. }));
  11803. function download(_x4) {
  11804. return _download.apply(this, arguments);
  11805. }
  11806. return download;
  11807. }()
  11808. }, {
  11809. key: "refreshAccessToken",
  11810. value: function () {
  11811. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  11812. var e, t;
  11813. return _regenerator.default.wrap(function _callee7$(_context7) {
  11814. while (1) {
  11815. switch (_context7.prev = _context7.next) {
  11816. case 0:
  11817. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  11818. _context7.prev = 1;
  11819. _context7.next = 4;
  11820. return this._refreshAccessTokenPromise;
  11821. case 4:
  11822. e = _context7.sent;
  11823. _context7.next = 10;
  11824. break;
  11825. case 7:
  11826. _context7.prev = 7;
  11827. _context7.t0 = _context7["catch"](1);
  11828. t = _context7.t0;
  11829. case 10:
  11830. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  11831. _context7.next = 12;
  11832. break;
  11833. }
  11834. throw t;
  11835. case 12:
  11836. return _context7.abrupt("return", e);
  11837. case 13:
  11838. case "end":
  11839. return _context7.stop();
  11840. }
  11841. }
  11842. }, _callee7, this, [[1, 7]]);
  11843. }));
  11844. function refreshAccessToken() {
  11845. return _refreshAccessToken2.apply(this, arguments);
  11846. }
  11847. return refreshAccessToken;
  11848. }()
  11849. }, {
  11850. key: "_refreshAccessToken",
  11851. value: function () {
  11852. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  11853. var _this$_cache$keys, e, t, n, s, r, i, o, a, _e10, _e11, _t7, _s8;
  11854. return _regenerator.default.wrap(function _callee8$(_context8) {
  11855. while (1) {
  11856. switch (_context8.prev = _context8.next) {
  11857. case 0:
  11858. _this$_cache$keys = this._cache.keys, e = _this$_cache$keys.accessTokenKey, t = _this$_cache$keys.accessTokenExpireKey, n = _this$_cache$keys.refreshTokenKey, s = _this$_cache$keys.loginTypeKey, r = _this$_cache$keys.anonymousUuidKey;
  11859. this._cache.removeStore(e), this._cache.removeStore(t);
  11860. i = this._cache.getStore(n);
  11861. if (i) {
  11862. _context8.next = 5;
  11863. break;
  11864. }
  11865. throw new te({
  11866. message: "未登录CloudBase"
  11867. });
  11868. case 5:
  11869. o = {
  11870. refresh_token: i
  11871. };
  11872. _context8.next = 8;
  11873. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  11874. case 8:
  11875. a = _context8.sent;
  11876. if (!a.data.code) {
  11877. _context8.next = 21;
  11878. break;
  11879. }
  11880. _e10 = a.data.code;
  11881. if (!("SIGN_PARAM_INVALID" === _e10 || "REFRESH_TOKEN_EXPIRED" === _e10 || "INVALID_REFRESH_TOKEN" === _e10)) {
  11882. _context8.next = 20;
  11883. break;
  11884. }
  11885. if (!(this._cache.getStore(s) === Be.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e10)) {
  11886. _context8.next = 19;
  11887. break;
  11888. }
  11889. _e11 = this._cache.getStore(r);
  11890. _t7 = this._cache.getStore(n);
  11891. _context8.next = 17;
  11892. return this.send("auth.signInAnonymously", {
  11893. anonymous_uuid: _e11,
  11894. refresh_token: _t7
  11895. });
  11896. case 17:
  11897. _s8 = _context8.sent;
  11898. return _context8.abrupt("return", (this.setRefreshToken(_s8.refresh_token), this._refreshAccessToken()));
  11899. case 19:
  11900. De(Fe), this._cache.removeStore(n);
  11901. case 20:
  11902. throw new te({
  11903. code: a.data.code,
  11904. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  11905. });
  11906. case 21:
  11907. if (!a.data.access_token) {
  11908. _context8.next = 23;
  11909. break;
  11910. }
  11911. return _context8.abrupt("return", (De($e), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  11912. accessToken: a.data.access_token,
  11913. accessTokenExpire: a.data.access_token_expire
  11914. }));
  11915. case 23:
  11916. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  11917. case 24:
  11918. case "end":
  11919. return _context8.stop();
  11920. }
  11921. }
  11922. }, _callee8, this);
  11923. }));
  11924. function _refreshAccessToken() {
  11925. return _refreshAccessToken3.apply(this, arguments);
  11926. }
  11927. return _refreshAccessToken;
  11928. }()
  11929. }, {
  11930. key: "getAccessToken",
  11931. value: function () {
  11932. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  11933. var _this$_cache$keys2, e, t, n, s, r, i;
  11934. return _regenerator.default.wrap(function _callee9$(_context9) {
  11935. while (1) {
  11936. switch (_context9.prev = _context9.next) {
  11937. case 0:
  11938. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;
  11939. if (this._cache.getStore(n)) {
  11940. _context9.next = 3;
  11941. break;
  11942. }
  11943. throw new te({
  11944. message: "refresh token不存在,登录状态异常"
  11945. });
  11946. case 3:
  11947. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  11948. _context9.t0 = this._shouldRefreshAccessTokenHook;
  11949. if (!_context9.t0) {
  11950. _context9.next = 9;
  11951. break;
  11952. }
  11953. _context9.next = 8;
  11954. return this._shouldRefreshAccessTokenHook(s, r);
  11955. case 8:
  11956. _context9.t0 = !_context9.sent;
  11957. case 9:
  11958. _context9.t1 = _context9.t0;
  11959. if (!_context9.t1) {
  11960. _context9.next = 12;
  11961. break;
  11962. }
  11963. i = !1;
  11964. case 12:
  11965. return _context9.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  11966. accessToken: s,
  11967. accessTokenExpire: r
  11968. });
  11969. case 13:
  11970. case "end":
  11971. return _context9.stop();
  11972. }
  11973. }
  11974. }, _callee9, this);
  11975. }));
  11976. function getAccessToken() {
  11977. return _getAccessToken.apply(this, arguments);
  11978. }
  11979. return getAccessToken;
  11980. }()
  11981. }, {
  11982. key: "request",
  11983. value: function () {
  11984. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, t, n) {
  11985. var s, r, i, _e12, o, _e13, _e14, a, c, u, h, l, d, p, f, g;
  11986. return _regenerator.default.wrap(function _callee10$(_context10) {
  11987. while (1) {
  11988. switch (_context10.prev = _context10.next) {
  11989. case 0:
  11990. s = "x-tcb-trace_".concat(this.config.env);
  11991. r = "application/x-www-form-urlencoded";
  11992. i = _objectSpread({
  11993. action: e,
  11994. env: this.config.env,
  11995. dataVersion: "2019-08-16"
  11996. }, t);
  11997. if (!(-1 === We.indexOf(e))) {
  11998. _context10.next = 10;
  11999. break;
  12000. }
  12001. _e12 = this._cache.keys.refreshTokenKey;
  12002. _context10.t0 = this._cache.getStore(_e12);
  12003. if (!_context10.t0) {
  12004. _context10.next = 10;
  12005. break;
  12006. }
  12007. _context10.next = 9;
  12008. return this.getAccessToken();
  12009. case 9:
  12010. i.access_token = _context10.sent.accessToken;
  12011. case 10:
  12012. if ("storage.uploadFile" === e) {
  12013. o = new FormData();
  12014. for (_e13 in o) {
  12015. o.hasOwnProperty(_e13) && void 0 !== o[_e13] && o.append(_e13, i[_e13]);
  12016. }
  12017. r = "multipart/form-data";
  12018. } else {
  12019. r = "application/json", o = {};
  12020. for (_e14 in i) {
  12021. void 0 !== i[_e14] && (o[_e14] = i[_e14]);
  12022. }
  12023. }
  12024. a = {
  12025. headers: {
  12026. "content-type": r
  12027. }
  12028. };
  12029. n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  12030. c = this._localCache.getStore(s);
  12031. c && (a.headers["X-TCB-Trace"] = c);
  12032. u = t.parse, h = t.inQuery, l = t.search;
  12033. d = {
  12034. env: this.config.env
  12035. };
  12036. u && (d.parse = !0), h && (d = _objectSpread(_objectSpread({}, h), d));
  12037. p = function (e, t) {
  12038. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12039. var s = /\?/.test(t);
  12040. var r = "";
  12041. for (var _e15 in n) {
  12042. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e15, "=").concat(encodeURIComponent(n[_e15]));
  12043. }
  12044. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  12045. }(pe, "//tcb-api.tencentcloudapi.com/web", d);
  12046. l && (p += l);
  12047. _context10.next = 22;
  12048. return this.post(_objectSpread({
  12049. url: p,
  12050. data: o
  12051. }, a));
  12052. case 22:
  12053. f = _context10.sent;
  12054. g = f.header && f.header["x-tcb-trace"];
  12055. if (!(g && this._localCache.setStore(s, g), 200 !== Number(f.status) && 200 !== Number(f.statusCode) || !f.data)) {
  12056. _context10.next = 26;
  12057. break;
  12058. }
  12059. throw new te({
  12060. code: "NETWORK_ERROR",
  12061. message: "network request error"
  12062. });
  12063. case 26:
  12064. return _context10.abrupt("return", f);
  12065. case 27:
  12066. case "end":
  12067. return _context10.stop();
  12068. }
  12069. }
  12070. }, _callee10, this);
  12071. }));
  12072. function request(_x5, _x6, _x7) {
  12073. return _request.apply(this, arguments);
  12074. }
  12075. return request;
  12076. }()
  12077. }, {
  12078. key: "send",
  12079. value: function () {
  12080. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(e) {
  12081. var t,
  12082. n,
  12083. _n6,
  12084. _args11 = arguments;
  12085. return _regenerator.default.wrap(function _callee11$(_context11) {
  12086. while (1) {
  12087. switch (_context11.prev = _context11.next) {
  12088. case 0:
  12089. t = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
  12090. _context11.next = 3;
  12091. return this.request(e, t, {
  12092. onUploadProgress: t.onUploadProgress
  12093. });
  12094. case 3:
  12095. n = _context11.sent;
  12096. if (!("ACCESS_TOKEN_EXPIRED" === n.data.code && -1 === We.indexOf(e))) {
  12097. _context11.next = 13;
  12098. break;
  12099. }
  12100. _context11.next = 7;
  12101. return this.refreshAccessToken();
  12102. case 7:
  12103. _context11.next = 9;
  12104. return this.request(e, t, {
  12105. onUploadProgress: t.onUploadProgress
  12106. });
  12107. case 9:
  12108. _n6 = _context11.sent;
  12109. if (!_n6.data.code) {
  12110. _context11.next = 12;
  12111. break;
  12112. }
  12113. throw new te({
  12114. code: _n6.data.code,
  12115. message: _n6.data.message
  12116. });
  12117. case 12:
  12118. return _context11.abrupt("return", _n6.data);
  12119. case 13:
  12120. if (!n.data.code) {
  12121. _context11.next = 15;
  12122. break;
  12123. }
  12124. throw new te({
  12125. code: n.data.code,
  12126. message: n.data.message
  12127. });
  12128. case 15:
  12129. return _context11.abrupt("return", n.data);
  12130. case 16:
  12131. case "end":
  12132. return _context11.stop();
  12133. }
  12134. }
  12135. }, _callee11, this);
  12136. }));
  12137. function send(_x8) {
  12138. return _send.apply(this, arguments);
  12139. }
  12140. return send;
  12141. }()
  12142. }, {
  12143. key: "setRefreshToken",
  12144. value: function setRefreshToken(e) {
  12145. var _this$_cache$keys3 = this._cache.keys,
  12146. t = _this$_cache$keys3.accessTokenKey,
  12147. n = _this$_cache$keys3.accessTokenExpireKey,
  12148. s = _this$_cache$keys3.refreshTokenKey;
  12149. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  12150. }
  12151. }]);
  12152. return Ge;
  12153. }();
  12154. var Ve = {};
  12155. function Ye(e) {
  12156. return Ve[e];
  12157. }
  12158. var Qe = /*#__PURE__*/function () {
  12159. function Qe(e) {
  12160. (0, _classCallCheck2.default)(this, Qe);
  12161. this.config = e, this._cache = Ee(e.env), this._request = Ye(e.env);
  12162. }
  12163. (0, _createClass2.default)(Qe, [{
  12164. key: "setRefreshToken",
  12165. value: function setRefreshToken(e) {
  12166. var _this$_cache$keys4 = this._cache.keys,
  12167. t = _this$_cache$keys4.accessTokenKey,
  12168. n = _this$_cache$keys4.accessTokenExpireKey,
  12169. s = _this$_cache$keys4.refreshTokenKey;
  12170. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  12171. }
  12172. }, {
  12173. key: "setAccessToken",
  12174. value: function setAccessToken(e, t) {
  12175. var _this$_cache$keys5 = this._cache.keys,
  12176. n = _this$_cache$keys5.accessTokenKey,
  12177. s = _this$_cache$keys5.accessTokenExpireKey;
  12178. this._cache.setStore(n, e), this._cache.setStore(s, t);
  12179. }
  12180. }, {
  12181. key: "refreshUserInfo",
  12182. value: function () {
  12183. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  12184. var _yield$this$_request$, e;
  12185. return _regenerator.default.wrap(function _callee12$(_context12) {
  12186. while (1) {
  12187. switch (_context12.prev = _context12.next) {
  12188. case 0:
  12189. _context12.next = 2;
  12190. return this._request.send("auth.getUserInfo", {});
  12191. case 2:
  12192. _yield$this$_request$ = _context12.sent;
  12193. e = _yield$this$_request$.data;
  12194. return _context12.abrupt("return", (this.setLocalUserInfo(e), e));
  12195. case 5:
  12196. case "end":
  12197. return _context12.stop();
  12198. }
  12199. }
  12200. }, _callee12, this);
  12201. }));
  12202. function refreshUserInfo() {
  12203. return _refreshUserInfo.apply(this, arguments);
  12204. }
  12205. return refreshUserInfo;
  12206. }()
  12207. }, {
  12208. key: "setLocalUserInfo",
  12209. value: function setLocalUserInfo(e) {
  12210. var t = this._cache.keys.userInfoKey;
  12211. this._cache.setStore(t, e);
  12212. }
  12213. }]);
  12214. return Qe;
  12215. }();
  12216. var Xe = /*#__PURE__*/function () {
  12217. function Xe(e) {
  12218. (0, _classCallCheck2.default)(this, Xe);
  12219. if (!e) throw new te({
  12220. code: "PARAM_ERROR",
  12221. message: "envId is not defined"
  12222. });
  12223. this._envId = e, this._cache = Ee(this._envId), this._request = Ye(this._envId), this.setUserInfo();
  12224. }
  12225. (0, _createClass2.default)(Xe, [{
  12226. key: "linkWithTicket",
  12227. value: function linkWithTicket(e) {
  12228. if ("string" != typeof e) throw new te({
  12229. code: "PARAM_ERROR",
  12230. message: "ticket must be string"
  12231. });
  12232. return this._request.send("auth.linkWithTicket", {
  12233. ticket: e
  12234. });
  12235. }
  12236. }, {
  12237. key: "linkWithRedirect",
  12238. value: function linkWithRedirect(e) {
  12239. e.signInWithRedirect();
  12240. }
  12241. }, {
  12242. key: "updatePassword",
  12243. value: function updatePassword(e, t) {
  12244. return this._request.send("auth.updatePassword", {
  12245. oldPassword: t,
  12246. newPassword: e
  12247. });
  12248. }
  12249. }, {
  12250. key: "updateEmail",
  12251. value: function updateEmail(e) {
  12252. return this._request.send("auth.updateEmail", {
  12253. newEmail: e
  12254. });
  12255. }
  12256. }, {
  12257. key: "updateUsername",
  12258. value: function updateUsername(e) {
  12259. if ("string" != typeof e) throw new te({
  12260. code: "PARAM_ERROR",
  12261. message: "username must be a string"
  12262. });
  12263. return this._request.send("auth.updateUsername", {
  12264. username: e
  12265. });
  12266. }
  12267. }, {
  12268. key: "getLinkedUidList",
  12269. value: function () {
  12270. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
  12271. var _yield$this$_request$2, e, t, n;
  12272. return _regenerator.default.wrap(function _callee13$(_context13) {
  12273. while (1) {
  12274. switch (_context13.prev = _context13.next) {
  12275. case 0:
  12276. _context13.next = 2;
  12277. return this._request.send("auth.getLinkedUidList", {});
  12278. case 2:
  12279. _yield$this$_request$2 = _context13.sent;
  12280. e = _yield$this$_request$2.data;
  12281. t = !1;
  12282. n = e.users;
  12283. return _context13.abrupt("return", (n.forEach(function (e) {
  12284. e.wxOpenId && e.wxPublicId && (t = !0);
  12285. }), {
  12286. users: n,
  12287. hasPrimaryUid: t
  12288. }));
  12289. case 7:
  12290. case "end":
  12291. return _context13.stop();
  12292. }
  12293. }
  12294. }, _callee13, this);
  12295. }));
  12296. function getLinkedUidList() {
  12297. return _getLinkedUidList.apply(this, arguments);
  12298. }
  12299. return getLinkedUidList;
  12300. }()
  12301. }, {
  12302. key: "setPrimaryUid",
  12303. value: function setPrimaryUid(e) {
  12304. return this._request.send("auth.setPrimaryUid", {
  12305. uid: e
  12306. });
  12307. }
  12308. }, {
  12309. key: "unlink",
  12310. value: function unlink(e) {
  12311. return this._request.send("auth.unlink", {
  12312. platform: e
  12313. });
  12314. }
  12315. }, {
  12316. key: "update",
  12317. value: function () {
  12318. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {
  12319. var t, n, s, r, i, o, _yield$this$_request$3, a;
  12320. return _regenerator.default.wrap(function _callee14$(_context14) {
  12321. while (1) {
  12322. switch (_context14.prev = _context14.next) {
  12323. case 0:
  12324. t = e.nickName;
  12325. n = e.gender;
  12326. s = e.avatarUrl;
  12327. r = e.province;
  12328. i = e.country;
  12329. o = e.city;
  12330. _context14.next = 8;
  12331. return this._request.send("auth.updateUserInfo", {
  12332. nickName: t,
  12333. gender: n,
  12334. avatarUrl: s,
  12335. province: r,
  12336. country: i,
  12337. city: o
  12338. });
  12339. case 8:
  12340. _yield$this$_request$3 = _context14.sent;
  12341. a = _yield$this$_request$3.data;
  12342. this.setLocalUserInfo(a);
  12343. case 11:
  12344. case "end":
  12345. return _context14.stop();
  12346. }
  12347. }
  12348. }, _callee14, this);
  12349. }));
  12350. function update(_x9) {
  12351. return _update.apply(this, arguments);
  12352. }
  12353. return update;
  12354. }()
  12355. }, {
  12356. key: "refresh",
  12357. value: function () {
  12358. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
  12359. var _yield$this$_request$4, e;
  12360. return _regenerator.default.wrap(function _callee15$(_context15) {
  12361. while (1) {
  12362. switch (_context15.prev = _context15.next) {
  12363. case 0:
  12364. _context15.next = 2;
  12365. return this._request.send("auth.getUserInfo", {});
  12366. case 2:
  12367. _yield$this$_request$4 = _context15.sent;
  12368. e = _yield$this$_request$4.data;
  12369. return _context15.abrupt("return", (this.setLocalUserInfo(e), e));
  12370. case 5:
  12371. case "end":
  12372. return _context15.stop();
  12373. }
  12374. }
  12375. }, _callee15, this);
  12376. }));
  12377. function refresh() {
  12378. return _refresh.apply(this, arguments);
  12379. }
  12380. return refresh;
  12381. }()
  12382. }, {
  12383. key: "setUserInfo",
  12384. value: function setUserInfo() {
  12385. var _this8 = this;
  12386. var e = this._cache.keys.userInfoKey,
  12387. t = this._cache.getStore(e);
  12388. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  12389. _this8[e] = t[e];
  12390. }), this.location = {
  12391. country: t.country,
  12392. province: t.province,
  12393. city: t.city
  12394. };
  12395. }
  12396. }, {
  12397. key: "setLocalUserInfo",
  12398. value: function setLocalUserInfo(e) {
  12399. var t = this._cache.keys.userInfoKey;
  12400. this._cache.setStore(t, e), this.setUserInfo();
  12401. }
  12402. }]);
  12403. return Xe;
  12404. }();
  12405. var Ze = /*#__PURE__*/function () {
  12406. function Ze(e) {
  12407. (0, _classCallCheck2.default)(this, Ze);
  12408. if (!e) throw new te({
  12409. code: "PARAM_ERROR",
  12410. message: "envId is not defined"
  12411. });
  12412. this._cache = Ee(e);
  12413. var _this$_cache$keys6 = this._cache.keys,
  12414. t = _this$_cache$keys6.refreshTokenKey,
  12415. n = _this$_cache$keys6.accessTokenKey,
  12416. s = _this$_cache$keys6.accessTokenExpireKey,
  12417. r = this._cache.getStore(t),
  12418. i = this._cache.getStore(n),
  12419. o = this._cache.getStore(s);
  12420. this.credential = {
  12421. refreshToken: r,
  12422. accessToken: i,
  12423. accessTokenExpire: o
  12424. }, this.user = new Xe(e);
  12425. }
  12426. (0, _createClass2.default)(Ze, [{
  12427. key: "isAnonymousAuth",
  12428. get: function get() {
  12429. return this.loginType === Be.ANONYMOUS;
  12430. }
  12431. }, {
  12432. key: "isCustomAuth",
  12433. get: function get() {
  12434. return this.loginType === Be.CUSTOM;
  12435. }
  12436. }, {
  12437. key: "isWeixinAuth",
  12438. get: function get() {
  12439. return this.loginType === Be.WECHAT || this.loginType === Be.WECHAT_OPEN || this.loginType === Be.WECHAT_PUBLIC;
  12440. }
  12441. }, {
  12442. key: "loginType",
  12443. get: function get() {
  12444. return this._cache.getStore(this._cache.keys.loginTypeKey);
  12445. }
  12446. }]);
  12447. return Ze;
  12448. }();
  12449. var et = /*#__PURE__*/function (_Qe) {
  12450. (0, _inherits2.default)(et, _Qe);
  12451. var _super4 = _createSuper(et);
  12452. function et() {
  12453. (0, _classCallCheck2.default)(this, et);
  12454. return _super4.apply(this, arguments);
  12455. }
  12456. (0, _createClass2.default)(et, [{
  12457. key: "signIn",
  12458. value: function () {
  12459. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
  12460. var _this$_cache$keys7, e, t, n, s, r, _e16;
  12461. return _regenerator.default.wrap(function _callee16$(_context16) {
  12462. while (1) {
  12463. switch (_context16.prev = _context16.next) {
  12464. case 0:
  12465. this._cache.updatePersistence("local");
  12466. _this$_cache$keys7 = this._cache.keys;
  12467. e = _this$_cache$keys7.anonymousUuidKey;
  12468. t = _this$_cache$keys7.refreshTokenKey;
  12469. n = this._cache.getStore(e) || void 0;
  12470. s = this._cache.getStore(t) || void 0;
  12471. _context16.next = 8;
  12472. return this._request.send("auth.signInAnonymously", {
  12473. anonymous_uuid: n,
  12474. refresh_token: s
  12475. });
  12476. case 8:
  12477. r = _context16.sent;
  12478. if (!(r.uuid && r.refresh_token)) {
  12479. _context16.next = 20;
  12480. break;
  12481. }
  12482. this._setAnonymousUUID(r.uuid);
  12483. this.setRefreshToken(r.refresh_token);
  12484. _context16.next = 14;
  12485. return this._request.refreshAccessToken();
  12486. case 14:
  12487. De(qe);
  12488. De(Ke, {
  12489. env: this.config.env,
  12490. loginType: Be.ANONYMOUS,
  12491. persistence: "local"
  12492. });
  12493. _e16 = new Ze(this.config.env);
  12494. _context16.next = 19;
  12495. return _e16.user.refresh();
  12496. case 19:
  12497. return _context16.abrupt("return", _e16);
  12498. case 20:
  12499. throw new te({
  12500. message: "匿名登录失败"
  12501. });
  12502. case 21:
  12503. case "end":
  12504. return _context16.stop();
  12505. }
  12506. }
  12507. }, _callee16, this);
  12508. }));
  12509. function signIn() {
  12510. return _signIn.apply(this, arguments);
  12511. }
  12512. return signIn;
  12513. }()
  12514. }, {
  12515. key: "linkAndRetrieveDataWithTicket",
  12516. value: function () {
  12517. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {
  12518. var _this$_cache$keys8, t, n, s, r, i;
  12519. return _regenerator.default.wrap(function _callee17$(_context17) {
  12520. while (1) {
  12521. switch (_context17.prev = _context17.next) {
  12522. case 0:
  12523. _this$_cache$keys8 = this._cache.keys;
  12524. t = _this$_cache$keys8.anonymousUuidKey;
  12525. n = _this$_cache$keys8.refreshTokenKey;
  12526. s = this._cache.getStore(t);
  12527. r = this._cache.getStore(n);
  12528. _context17.next = 7;
  12529. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  12530. anonymous_uuid: s,
  12531. refresh_token: r,
  12532. ticket: e
  12533. });
  12534. case 7:
  12535. i = _context17.sent;
  12536. if (!i.refresh_token) {
  12537. _context17.next = 16;
  12538. break;
  12539. }
  12540. this._clearAnonymousUUID();
  12541. this.setRefreshToken(i.refresh_token);
  12542. _context17.next = 13;
  12543. return this._request.refreshAccessToken();
  12544. case 13:
  12545. De(je, {
  12546. env: this.config.env
  12547. });
  12548. De(Ke, {
  12549. loginType: Be.CUSTOM,
  12550. persistence: "local"
  12551. });
  12552. return _context17.abrupt("return", {
  12553. credential: {
  12554. refreshToken: i.refresh_token
  12555. }
  12556. });
  12557. case 16:
  12558. throw new te({
  12559. message: "匿名转化失败"
  12560. });
  12561. case 17:
  12562. case "end":
  12563. return _context17.stop();
  12564. }
  12565. }
  12566. }, _callee17, this);
  12567. }));
  12568. function linkAndRetrieveDataWithTicket(_x10) {
  12569. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  12570. }
  12571. return linkAndRetrieveDataWithTicket;
  12572. }()
  12573. }, {
  12574. key: "_setAnonymousUUID",
  12575. value: function _setAnonymousUUID(e) {
  12576. var _this$_cache$keys9 = this._cache.keys,
  12577. t = _this$_cache$keys9.anonymousUuidKey,
  12578. n = _this$_cache$keys9.loginTypeKey;
  12579. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, Be.ANONYMOUS);
  12580. }
  12581. }, {
  12582. key: "_clearAnonymousUUID",
  12583. value: function _clearAnonymousUUID() {
  12584. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  12585. }
  12586. }]);
  12587. return et;
  12588. }(Qe);
  12589. var tt = /*#__PURE__*/function (_Qe2) {
  12590. (0, _inherits2.default)(tt, _Qe2);
  12591. var _super5 = _createSuper(tt);
  12592. function tt() {
  12593. (0, _classCallCheck2.default)(this, tt);
  12594. return _super5.apply(this, arguments);
  12595. }
  12596. (0, _createClass2.default)(tt, [{
  12597. key: "signIn",
  12598. value: function () {
  12599. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(e) {
  12600. var t, n;
  12601. return _regenerator.default.wrap(function _callee18$(_context18) {
  12602. while (1) {
  12603. switch (_context18.prev = _context18.next) {
  12604. case 0:
  12605. if (!("string" != typeof e)) {
  12606. _context18.next = 2;
  12607. break;
  12608. }
  12609. throw new te({
  12610. code: "PARAM_ERROR",
  12611. message: "ticket must be a string"
  12612. });
  12613. case 2:
  12614. t = this._cache.keys.refreshTokenKey;
  12615. _context18.next = 5;
  12616. return this._request.send("auth.signInWithTicket", {
  12617. ticket: e,
  12618. refresh_token: this._cache.getStore(t) || ""
  12619. });
  12620. case 5:
  12621. n = _context18.sent;
  12622. if (!n.refresh_token) {
  12623. _context18.next = 15;
  12624. break;
  12625. }
  12626. this.setRefreshToken(n.refresh_token);
  12627. _context18.next = 10;
  12628. return this._request.refreshAccessToken();
  12629. case 10:
  12630. De(qe);
  12631. De(Ke, {
  12632. env: this.config.env,
  12633. loginType: Be.CUSTOM,
  12634. persistence: this.config.persistence
  12635. });
  12636. _context18.next = 14;
  12637. return this.refreshUserInfo();
  12638. case 14:
  12639. return _context18.abrupt("return", new Ze(this.config.env));
  12640. case 15:
  12641. throw new te({
  12642. message: "自定义登录失败"
  12643. });
  12644. case 16:
  12645. case "end":
  12646. return _context18.stop();
  12647. }
  12648. }
  12649. }, _callee18, this);
  12650. }));
  12651. function signIn(_x11) {
  12652. return _signIn2.apply(this, arguments);
  12653. }
  12654. return signIn;
  12655. }()
  12656. }]);
  12657. return tt;
  12658. }(Qe);
  12659. var nt = /*#__PURE__*/function (_Qe3) {
  12660. (0, _inherits2.default)(nt, _Qe3);
  12661. var _super6 = _createSuper(nt);
  12662. function nt() {
  12663. (0, _classCallCheck2.default)(this, nt);
  12664. return _super6.apply(this, arguments);
  12665. }
  12666. (0, _createClass2.default)(nt, [{
  12667. key: "signIn",
  12668. value: function () {
  12669. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t) {
  12670. var n, s, r, i, o;
  12671. return _regenerator.default.wrap(function _callee19$(_context19) {
  12672. while (1) {
  12673. switch (_context19.prev = _context19.next) {
  12674. case 0:
  12675. if (!("string" != typeof e)) {
  12676. _context19.next = 2;
  12677. break;
  12678. }
  12679. throw new te({
  12680. code: "PARAM_ERROR",
  12681. message: "email must be a string"
  12682. });
  12683. case 2:
  12684. n = this._cache.keys.refreshTokenKey;
  12685. _context19.next = 5;
  12686. return this._request.send("auth.signIn", {
  12687. loginType: "EMAIL",
  12688. email: e,
  12689. password: t,
  12690. refresh_token: this._cache.getStore(n) || ""
  12691. });
  12692. case 5:
  12693. s = _context19.sent;
  12694. r = s.refresh_token;
  12695. i = s.access_token;
  12696. o = s.access_token_expire;
  12697. if (!r) {
  12698. _context19.next = 22;
  12699. break;
  12700. }
  12701. this.setRefreshToken(r);
  12702. if (!(i && o)) {
  12703. _context19.next = 15;
  12704. break;
  12705. }
  12706. this.setAccessToken(i, o);
  12707. _context19.next = 17;
  12708. break;
  12709. case 15:
  12710. _context19.next = 17;
  12711. return this._request.refreshAccessToken();
  12712. case 17:
  12713. _context19.next = 19;
  12714. return this.refreshUserInfo();
  12715. case 19:
  12716. De(qe);
  12717. De(Ke, {
  12718. env: this.config.env,
  12719. loginType: Be.EMAIL,
  12720. persistence: this.config.persistence
  12721. });
  12722. return _context19.abrupt("return", new Ze(this.config.env));
  12723. case 22:
  12724. throw s.code ? new te({
  12725. code: s.code,
  12726. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  12727. }) : new te({
  12728. message: "邮箱登录失败"
  12729. });
  12730. case 23:
  12731. case "end":
  12732. return _context19.stop();
  12733. }
  12734. }
  12735. }, _callee19, this);
  12736. }));
  12737. function signIn(_x12, _x13) {
  12738. return _signIn3.apply(this, arguments);
  12739. }
  12740. return signIn;
  12741. }()
  12742. }, {
  12743. key: "activate",
  12744. value: function () {
  12745. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e) {
  12746. return _regenerator.default.wrap(function _callee20$(_context20) {
  12747. while (1) {
  12748. switch (_context20.prev = _context20.next) {
  12749. case 0:
  12750. return _context20.abrupt("return", this._request.send("auth.activateEndUserMail", {
  12751. token: e
  12752. }));
  12753. case 1:
  12754. case "end":
  12755. return _context20.stop();
  12756. }
  12757. }
  12758. }, _callee20, this);
  12759. }));
  12760. function activate(_x14) {
  12761. return _activate.apply(this, arguments);
  12762. }
  12763. return activate;
  12764. }()
  12765. }, {
  12766. key: "resetPasswordWithToken",
  12767. value: function () {
  12768. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {
  12769. return _regenerator.default.wrap(function _callee21$(_context21) {
  12770. while (1) {
  12771. switch (_context21.prev = _context21.next) {
  12772. case 0:
  12773. return _context21.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  12774. token: e,
  12775. newPassword: t
  12776. }));
  12777. case 1:
  12778. case "end":
  12779. return _context21.stop();
  12780. }
  12781. }
  12782. }, _callee21, this);
  12783. }));
  12784. function resetPasswordWithToken(_x15, _x16) {
  12785. return _resetPasswordWithToken.apply(this, arguments);
  12786. }
  12787. return resetPasswordWithToken;
  12788. }()
  12789. }]);
  12790. return nt;
  12791. }(Qe);
  12792. var st = /*#__PURE__*/function (_Qe4) {
  12793. (0, _inherits2.default)(st, _Qe4);
  12794. var _super7 = _createSuper(st);
  12795. function st() {
  12796. (0, _classCallCheck2.default)(this, st);
  12797. return _super7.apply(this, arguments);
  12798. }
  12799. (0, _createClass2.default)(st, [{
  12800. key: "signIn",
  12801. value: function () {
  12802. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(e, t) {
  12803. var n, s, r, i, o;
  12804. return _regenerator.default.wrap(function _callee22$(_context22) {
  12805. while (1) {
  12806. switch (_context22.prev = _context22.next) {
  12807. case 0:
  12808. if (!("string" != typeof e)) {
  12809. _context22.next = 2;
  12810. break;
  12811. }
  12812. throw new te({
  12813. code: "PARAM_ERROR",
  12814. message: "username must be a string"
  12815. });
  12816. case 2:
  12817. "string" != typeof t && (t = "", console.warn("password is empty"));
  12818. n = this._cache.keys.refreshTokenKey;
  12819. _context22.next = 6;
  12820. return this._request.send("auth.signIn", {
  12821. loginType: Be.USERNAME,
  12822. username: e,
  12823. password: t,
  12824. refresh_token: this._cache.getStore(n) || ""
  12825. });
  12826. case 6:
  12827. s = _context22.sent;
  12828. r = s.refresh_token;
  12829. i = s.access_token_expire;
  12830. o = s.access_token;
  12831. if (!r) {
  12832. _context22.next = 23;
  12833. break;
  12834. }
  12835. this.setRefreshToken(r);
  12836. if (!(o && i)) {
  12837. _context22.next = 16;
  12838. break;
  12839. }
  12840. this.setAccessToken(o, i);
  12841. _context22.next = 18;
  12842. break;
  12843. case 16:
  12844. _context22.next = 18;
  12845. return this._request.refreshAccessToken();
  12846. case 18:
  12847. _context22.next = 20;
  12848. return this.refreshUserInfo();
  12849. case 20:
  12850. De(qe);
  12851. De(Ke, {
  12852. env: this.config.env,
  12853. loginType: Be.USERNAME,
  12854. persistence: this.config.persistence
  12855. });
  12856. return _context22.abrupt("return", new Ze(this.config.env));
  12857. case 23:
  12858. throw s.code ? new te({
  12859. code: s.code,
  12860. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  12861. }) : new te({
  12862. message: "用户名密码登录失败"
  12863. });
  12864. case 24:
  12865. case "end":
  12866. return _context22.stop();
  12867. }
  12868. }
  12869. }, _callee22, this);
  12870. }));
  12871. function signIn(_x17, _x18) {
  12872. return _signIn4.apply(this, arguments);
  12873. }
  12874. return signIn;
  12875. }()
  12876. }]);
  12877. return st;
  12878. }(Qe);
  12879. var rt = /*#__PURE__*/function () {
  12880. function rt(e) {
  12881. (0, _classCallCheck2.default)(this, rt);
  12882. this.config = e, this._cache = Ee(e.env), this._request = Ye(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), Ne(Ke, this._onLoginTypeChanged);
  12883. }
  12884. (0, _createClass2.default)(rt, [{
  12885. key: "currentUser",
  12886. get: function get() {
  12887. var e = this.hasLoginState();
  12888. return e && e.user || null;
  12889. }
  12890. }, {
  12891. key: "loginType",
  12892. get: function get() {
  12893. return this._cache.getStore(this._cache.keys.loginTypeKey);
  12894. }
  12895. }, {
  12896. key: "anonymousAuthProvider",
  12897. value: function anonymousAuthProvider() {
  12898. return new et(this.config);
  12899. }
  12900. }, {
  12901. key: "customAuthProvider",
  12902. value: function customAuthProvider() {
  12903. return new tt(this.config);
  12904. }
  12905. }, {
  12906. key: "emailAuthProvider",
  12907. value: function emailAuthProvider() {
  12908. return new nt(this.config);
  12909. }
  12910. }, {
  12911. key: "usernameAuthProvider",
  12912. value: function usernameAuthProvider() {
  12913. return new st(this.config);
  12914. }
  12915. }, {
  12916. key: "signInAnonymously",
  12917. value: function () {
  12918. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23() {
  12919. return _regenerator.default.wrap(function _callee23$(_context23) {
  12920. while (1) {
  12921. switch (_context23.prev = _context23.next) {
  12922. case 0:
  12923. return _context23.abrupt("return", new et(this.config).signIn());
  12924. case 1:
  12925. case "end":
  12926. return _context23.stop();
  12927. }
  12928. }
  12929. }, _callee23, this);
  12930. }));
  12931. function signInAnonymously() {
  12932. return _signInAnonymously.apply(this, arguments);
  12933. }
  12934. return signInAnonymously;
  12935. }()
  12936. }, {
  12937. key: "signInWithEmailAndPassword",
  12938. value: function () {
  12939. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(e, t) {
  12940. return _regenerator.default.wrap(function _callee24$(_context24) {
  12941. while (1) {
  12942. switch (_context24.prev = _context24.next) {
  12943. case 0:
  12944. return _context24.abrupt("return", new nt(this.config).signIn(e, t));
  12945. case 1:
  12946. case "end":
  12947. return _context24.stop();
  12948. }
  12949. }
  12950. }, _callee24, this);
  12951. }));
  12952. function signInWithEmailAndPassword(_x19, _x20) {
  12953. return _signInWithEmailAndPassword.apply(this, arguments);
  12954. }
  12955. return signInWithEmailAndPassword;
  12956. }()
  12957. }, {
  12958. key: "signInWithUsernameAndPassword",
  12959. value: function signInWithUsernameAndPassword(e, t) {
  12960. return new st(this.config).signIn(e, t);
  12961. }
  12962. }, {
  12963. key: "linkAndRetrieveDataWithTicket",
  12964. value: function () {
  12965. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(e) {
  12966. return _regenerator.default.wrap(function _callee25$(_context25) {
  12967. while (1) {
  12968. switch (_context25.prev = _context25.next) {
  12969. case 0:
  12970. this._anonymousAuthProvider || (this._anonymousAuthProvider = new et(this.config)), Ne(je, this._onAnonymousConverted);
  12971. _context25.next = 3;
  12972. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  12973. case 3:
  12974. return _context25.abrupt("return", _context25.sent);
  12975. case 4:
  12976. case "end":
  12977. return _context25.stop();
  12978. }
  12979. }
  12980. }, _callee25, this);
  12981. }));
  12982. function linkAndRetrieveDataWithTicket(_x21) {
  12983. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  12984. }
  12985. return linkAndRetrieveDataWithTicket;
  12986. }()
  12987. }, {
  12988. key: "signOut",
  12989. value: function () {
  12990. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26() {
  12991. var _this$_cache$keys10, e, t, n, s, r;
  12992. return _regenerator.default.wrap(function _callee26$(_context26) {
  12993. while (1) {
  12994. switch (_context26.prev = _context26.next) {
  12995. case 0:
  12996. if (!(this.loginType === Be.ANONYMOUS)) {
  12997. _context26.next = 2;
  12998. break;
  12999. }
  13000. throw new te({
  13001. message: "匿名用户不支持登出操作"
  13002. });
  13003. case 2:
  13004. _this$_cache$keys10 = this._cache.keys, e = _this$_cache$keys10.refreshTokenKey, t = _this$_cache$keys10.accessTokenKey, n = _this$_cache$keys10.accessTokenExpireKey, s = this._cache.getStore(e);
  13005. if (s) {
  13006. _context26.next = 5;
  13007. break;
  13008. }
  13009. return _context26.abrupt("return");
  13010. case 5:
  13011. _context26.next = 7;
  13012. return this._request.send("auth.logout", {
  13013. refresh_token: s
  13014. });
  13015. case 7:
  13016. r = _context26.sent;
  13017. return _context26.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), De(qe), De(Ke, {
  13018. env: this.config.env,
  13019. loginType: Be.NULL,
  13020. persistence: this.config.persistence
  13021. }), r));
  13022. case 9:
  13023. case "end":
  13024. return _context26.stop();
  13025. }
  13026. }
  13027. }, _callee26, this);
  13028. }));
  13029. function signOut() {
  13030. return _signOut.apply(this, arguments);
  13031. }
  13032. return signOut;
  13033. }()
  13034. }, {
  13035. key: "signUpWithEmailAndPassword",
  13036. value: function () {
  13037. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e, t) {
  13038. return _regenerator.default.wrap(function _callee27$(_context27) {
  13039. while (1) {
  13040. switch (_context27.prev = _context27.next) {
  13041. case 0:
  13042. return _context27.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  13043. email: e,
  13044. password: t
  13045. }));
  13046. case 1:
  13047. case "end":
  13048. return _context27.stop();
  13049. }
  13050. }
  13051. }, _callee27, this);
  13052. }));
  13053. function signUpWithEmailAndPassword(_x22, _x23) {
  13054. return _signUpWithEmailAndPassword.apply(this, arguments);
  13055. }
  13056. return signUpWithEmailAndPassword;
  13057. }()
  13058. }, {
  13059. key: "sendPasswordResetEmail",
  13060. value: function () {
  13061. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(e) {
  13062. return _regenerator.default.wrap(function _callee28$(_context28) {
  13063. while (1) {
  13064. switch (_context28.prev = _context28.next) {
  13065. case 0:
  13066. return _context28.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  13067. email: e
  13068. }));
  13069. case 1:
  13070. case "end":
  13071. return _context28.stop();
  13072. }
  13073. }
  13074. }, _callee28, this);
  13075. }));
  13076. function sendPasswordResetEmail(_x24) {
  13077. return _sendPasswordResetEmail.apply(this, arguments);
  13078. }
  13079. return sendPasswordResetEmail;
  13080. }()
  13081. }, {
  13082. key: "onLoginStateChanged",
  13083. value: function onLoginStateChanged(e) {
  13084. var _this9 = this;
  13085. Ne(qe, function () {
  13086. var t = _this9.hasLoginState();
  13087. e.call(_this9, t);
  13088. });
  13089. var t = this.hasLoginState();
  13090. e.call(this, t);
  13091. }
  13092. }, {
  13093. key: "onLoginStateExpired",
  13094. value: function onLoginStateExpired(e) {
  13095. Ne(Fe, e.bind(this));
  13096. }
  13097. }, {
  13098. key: "onAccessTokenRefreshed",
  13099. value: function onAccessTokenRefreshed(e) {
  13100. Ne($e, e.bind(this));
  13101. }
  13102. }, {
  13103. key: "onAnonymousConverted",
  13104. value: function onAnonymousConverted(e) {
  13105. Ne(je, e.bind(this));
  13106. }
  13107. }, {
  13108. key: "onLoginTypeChanged",
  13109. value: function onLoginTypeChanged(e) {
  13110. var _this10 = this;
  13111. Ne(Ke, function () {
  13112. var t = _this10.hasLoginState();
  13113. e.call(_this10, t);
  13114. });
  13115. }
  13116. }, {
  13117. key: "getAccessToken",
  13118. value: function () {
  13119. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29() {
  13120. return _regenerator.default.wrap(function _callee29$(_context29) {
  13121. while (1) {
  13122. switch (_context29.prev = _context29.next) {
  13123. case 0:
  13124. _context29.next = 2;
  13125. return this._request.getAccessToken();
  13126. case 2:
  13127. _context29.t0 = _context29.sent.accessToken;
  13128. _context29.t1 = this.config.env;
  13129. return _context29.abrupt("return", {
  13130. accessToken: _context29.t0,
  13131. env: _context29.t1
  13132. });
  13133. case 5:
  13134. case "end":
  13135. return _context29.stop();
  13136. }
  13137. }
  13138. }, _callee29, this);
  13139. }));
  13140. function getAccessToken() {
  13141. return _getAccessToken2.apply(this, arguments);
  13142. }
  13143. return getAccessToken;
  13144. }()
  13145. }, {
  13146. key: "hasLoginState",
  13147. value: function hasLoginState() {
  13148. var e = this._cache.keys.refreshTokenKey;
  13149. return this._cache.getStore(e) ? new Ze(this.config.env) : null;
  13150. }
  13151. }, {
  13152. key: "isUsernameRegistered",
  13153. value: function () {
  13154. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e) {
  13155. var _yield$this$_request$5, t;
  13156. return _regenerator.default.wrap(function _callee30$(_context30) {
  13157. while (1) {
  13158. switch (_context30.prev = _context30.next) {
  13159. case 0:
  13160. if (!("string" != typeof e)) {
  13161. _context30.next = 2;
  13162. break;
  13163. }
  13164. throw new te({
  13165. code: "PARAM_ERROR",
  13166. message: "username must be a string"
  13167. });
  13168. case 2:
  13169. _context30.next = 4;
  13170. return this._request.send("auth.isUsernameRegistered", {
  13171. username: e
  13172. });
  13173. case 4:
  13174. _yield$this$_request$5 = _context30.sent;
  13175. t = _yield$this$_request$5.data;
  13176. return _context30.abrupt("return", t && t.isRegistered);
  13177. case 7:
  13178. case "end":
  13179. return _context30.stop();
  13180. }
  13181. }
  13182. }, _callee30, this);
  13183. }));
  13184. function isUsernameRegistered(_x25) {
  13185. return _isUsernameRegistered.apply(this, arguments);
  13186. }
  13187. return isUsernameRegistered;
  13188. }()
  13189. }, {
  13190. key: "getLoginState",
  13191. value: function getLoginState() {
  13192. return Promise.resolve(this.hasLoginState());
  13193. }
  13194. }, {
  13195. key: "signInWithTicket",
  13196. value: function () {
  13197. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(e) {
  13198. return _regenerator.default.wrap(function _callee31$(_context31) {
  13199. while (1) {
  13200. switch (_context31.prev = _context31.next) {
  13201. case 0:
  13202. return _context31.abrupt("return", new tt(this.config).signIn(e));
  13203. case 1:
  13204. case "end":
  13205. return _context31.stop();
  13206. }
  13207. }
  13208. }, _callee31, this);
  13209. }));
  13210. function signInWithTicket(_x26) {
  13211. return _signInWithTicket.apply(this, arguments);
  13212. }
  13213. return signInWithTicket;
  13214. }()
  13215. }, {
  13216. key: "shouldRefreshAccessToken",
  13217. value: function shouldRefreshAccessToken(e) {
  13218. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  13219. }
  13220. }, {
  13221. key: "getUserInfo",
  13222. value: function getUserInfo() {
  13223. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  13224. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  13225. requestId: e.seqId
  13226. });
  13227. });
  13228. }
  13229. }, {
  13230. key: "getAuthHeader",
  13231. value: function getAuthHeader() {
  13232. var _this$_cache$keys11 = this._cache.keys,
  13233. e = _this$_cache$keys11.refreshTokenKey,
  13234. t = _this$_cache$keys11.accessTokenKey,
  13235. n = this._cache.getStore(e);
  13236. return {
  13237. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  13238. };
  13239. }
  13240. }, {
  13241. key: "_onAnonymousConverted",
  13242. value: function _onAnonymousConverted(e) {
  13243. var t = e.data.env;
  13244. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  13245. }
  13246. }, {
  13247. key: "_onLoginTypeChanged",
  13248. value: function _onLoginTypeChanged(e) {
  13249. var _e$data = e.data,
  13250. t = _e$data.loginType,
  13251. n = _e$data.persistence,
  13252. s = _e$data.env;
  13253. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  13254. }
  13255. }]);
  13256. return rt;
  13257. }();
  13258. var it = function it(e, t) {
  13259. t = t || we();
  13260. var n = Ye(this.config.env),
  13261. s = e.cloudPath,
  13262. r = e.filePath,
  13263. i = e.onUploadProgress,
  13264. _e$fileType = e.fileType,
  13265. o = _e$fileType === void 0 ? "image" : _e$fileType;
  13266. return n.send("storage.getUploadMetadata", {
  13267. path: s
  13268. }).then(function (e) {
  13269. var _e$data2 = e.data,
  13270. a = _e$data2.url,
  13271. c = _e$data2.authorization,
  13272. u = _e$data2.token,
  13273. h = _e$data2.fileId,
  13274. l = _e$data2.cosFileId,
  13275. d = e.requestId,
  13276. p = {
  13277. key: s,
  13278. signature: c,
  13279. "x-cos-meta-fileid": l,
  13280. success_action_status: "201",
  13281. "x-cos-security-token": u
  13282. };
  13283. n.upload({
  13284. url: a,
  13285. data: p,
  13286. file: r,
  13287. name: s,
  13288. fileType: o,
  13289. onUploadProgress: i
  13290. }).then(function (e) {
  13291. 201 === e.statusCode ? t(null, {
  13292. fileID: h,
  13293. requestId: d
  13294. }) : t(new te({
  13295. code: "STORAGE_REQUEST_FAIL",
  13296. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  13297. }));
  13298. }).catch(function (e) {
  13299. t(e);
  13300. });
  13301. }).catch(function (e) {
  13302. t(e);
  13303. }), t.promise;
  13304. },
  13305. ot = function ot(e, t) {
  13306. t = t || we();
  13307. var n = Ye(this.config.env),
  13308. s = e.cloudPath;
  13309. return n.send("storage.getUploadMetadata", {
  13310. path: s
  13311. }).then(function (e) {
  13312. t(null, e);
  13313. }).catch(function (e) {
  13314. t(e);
  13315. }), t.promise;
  13316. },
  13317. at = function at(_ref7, t) {
  13318. var e = _ref7.fileList;
  13319. if (t = t || we(), !e || !Array.isArray(e)) return {
  13320. code: "INVALID_PARAM",
  13321. message: "fileList必须是非空的数组"
  13322. };
  13323. var _iterator3 = _createForOfIteratorHelper(e),
  13324. _step3;
  13325. try {
  13326. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  13327. var _t8 = _step3.value;
  13328. if (!_t8 || "string" != typeof _t8) return {
  13329. code: "INVALID_PARAM",
  13330. message: "fileList的元素必须是非空的字符串"
  13331. };
  13332. }
  13333. } catch (err) {
  13334. _iterator3.e(err);
  13335. } finally {
  13336. _iterator3.f();
  13337. }
  13338. var n = {
  13339. fileid_list: e
  13340. };
  13341. return Ye(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  13342. e.code ? t(null, e) : t(null, {
  13343. fileList: e.data.delete_list,
  13344. requestId: e.requestId
  13345. });
  13346. }).catch(function (e) {
  13347. t(e);
  13348. }), t.promise;
  13349. },
  13350. ct = function ct(_ref8, t) {
  13351. var e = _ref8.fileList;
  13352. t = t || we(), e && Array.isArray(e) || t(null, {
  13353. code: "INVALID_PARAM",
  13354. message: "fileList必须是非空的数组"
  13355. });
  13356. var n = [];
  13357. var _iterator4 = _createForOfIteratorHelper(e),
  13358. _step4;
  13359. try {
  13360. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  13361. var _s9 = _step4.value;
  13362. "object" == (0, _typeof2.default)(_s9) ? (_s9.hasOwnProperty("fileID") && _s9.hasOwnProperty("maxAge") || t(null, {
  13363. code: "INVALID_PARAM",
  13364. message: "fileList的元素必须是包含fileID和maxAge的对象"
  13365. }), n.push({
  13366. fileid: _s9.fileID,
  13367. max_age: _s9.maxAge
  13368. })) : "string" == typeof _s9 ? n.push({
  13369. fileid: _s9
  13370. }) : t(null, {
  13371. code: "INVALID_PARAM",
  13372. message: "fileList的元素必须是字符串"
  13373. });
  13374. }
  13375. } catch (err) {
  13376. _iterator4.e(err);
  13377. } finally {
  13378. _iterator4.f();
  13379. }
  13380. var s = {
  13381. file_list: n
  13382. };
  13383. return Ye(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  13384. e.code ? t(null, e) : t(null, {
  13385. fileList: e.data.download_list,
  13386. requestId: e.requestId
  13387. });
  13388. }).catch(function (e) {
  13389. t(e);
  13390. }), t.promise;
  13391. },
  13392. ut = /*#__PURE__*/function () {
  13393. var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(_ref9, t) {
  13394. var e, n, s, r;
  13395. return _regenerator.default.wrap(function _callee32$(_context32) {
  13396. while (1) {
  13397. switch (_context32.prev = _context32.next) {
  13398. case 0:
  13399. e = _ref9.fileID;
  13400. _context32.next = 3;
  13401. return ct.call(this, {
  13402. fileList: [{
  13403. fileID: e,
  13404. maxAge: 600
  13405. }]
  13406. });
  13407. case 3:
  13408. n = _context32.sent.fileList[0];
  13409. if (!("SUCCESS" !== n.code)) {
  13410. _context32.next = 6;
  13411. break;
  13412. }
  13413. return _context32.abrupt("return", t ? t(n) : new Promise(function (e) {
  13414. e(n);
  13415. }));
  13416. case 6:
  13417. s = Ye(this.config.env);
  13418. r = n.download_url;
  13419. if (!(r = encodeURI(r), !t)) {
  13420. _context32.next = 10;
  13421. break;
  13422. }
  13423. return _context32.abrupt("return", s.download({
  13424. url: r
  13425. }));
  13426. case 10:
  13427. _context32.t0 = t;
  13428. _context32.next = 13;
  13429. return s.download({
  13430. url: r
  13431. });
  13432. case 13:
  13433. _context32.t1 = _context32.sent;
  13434. (0, _context32.t0)(_context32.t1);
  13435. case 15:
  13436. case "end":
  13437. return _context32.stop();
  13438. }
  13439. }
  13440. }, _callee32, this);
  13441. }));
  13442. return function ut(_x27, _x28) {
  13443. return _ref10.apply(this, arguments);
  13444. };
  13445. }(),
  13446. ht = function ht(_ref11, i) {
  13447. var e = _ref11.name,
  13448. t = _ref11.data,
  13449. n = _ref11.query,
  13450. s = _ref11.parse,
  13451. r = _ref11.search;
  13452. var o = i || we();
  13453. var a;
  13454. try {
  13455. a = t ? JSON.stringify(t) : "";
  13456. } catch (e) {
  13457. return Promise.reject(e);
  13458. }
  13459. if (!e) return Promise.reject(new te({
  13460. code: "PARAM_ERROR",
  13461. message: "函数名不能为空"
  13462. }));
  13463. var c = {
  13464. inQuery: n,
  13465. parse: s,
  13466. search: r,
  13467. function_name: e,
  13468. request_data: a
  13469. };
  13470. return Ye(this.config.env).send("functions.invokeFunction", c).then(function (e) {
  13471. if (e.code) o(null, e);else {
  13472. var _t9 = e.data.response_data;
  13473. if (s) o(null, {
  13474. result: _t9,
  13475. requestId: e.requestId
  13476. });else try {
  13477. _t9 = JSON.parse(e.data.response_data), o(null, {
  13478. result: _t9,
  13479. requestId: e.requestId
  13480. });
  13481. } catch (e) {
  13482. o(new te({
  13483. message: "response data must be json"
  13484. }));
  13485. }
  13486. }
  13487. return o.promise;
  13488. }).catch(function (e) {
  13489. o(e);
  13490. }), o.promise;
  13491. },
  13492. lt = {
  13493. timeout: 15e3,
  13494. persistence: "session"
  13495. },
  13496. dt = {};
  13497. var pt = /*#__PURE__*/function () {
  13498. function pt(e) {
  13499. (0, _classCallCheck2.default)(this, pt);
  13500. this.config = e || this.config, this.authObj = void 0;
  13501. }
  13502. (0, _createClass2.default)(pt, [{
  13503. key: "init",
  13504. value: function init(e) {
  13505. switch (ke.adapter || (this.requestClient = new ke.adapter.reqClass({
  13506. timeout: e.timeout || 5e3,
  13507. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  13508. })), this.config = _objectSpread(_objectSpread({}, lt), e), !0) {
  13509. case this.config.timeout > 6e5:
  13510. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;
  13511. break;
  13512. case this.config.timeout < 100:
  13513. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  13514. }
  13515. return new pt(this.config);
  13516. }
  13517. }, {
  13518. key: "auth",
  13519. value: function auth() {
  13520. var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13521. e = _ref12.persistence;
  13522. if (this.authObj) return this.authObj;
  13523. var t = e || ke.adapter.primaryStorage || lt.persistence;
  13524. var n;
  13525. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  13526. var t = e.env;
  13527. xe[t] = new Ce(e), Oe[t] = new Ce(_objectSpread(_objectSpread({}, e), {}, {
  13528. persistence: "local"
  13529. }));
  13530. }(this.config), n = this.config, Ve[n.env] = new Ge(n), this.authObj = new rt(this.config), this.authObj;
  13531. }
  13532. }, {
  13533. key: "on",
  13534. value: function on(e, t) {
  13535. return Ne.apply(this, [e, t]);
  13536. }
  13537. }, {
  13538. key: "off",
  13539. value: function off(e, t) {
  13540. return Me.apply(this, [e, t]);
  13541. }
  13542. }, {
  13543. key: "callFunction",
  13544. value: function callFunction(e, t) {
  13545. return ht.apply(this, [e, t]);
  13546. }
  13547. }, {
  13548. key: "deleteFile",
  13549. value: function deleteFile(e, t) {
  13550. return at.apply(this, [e, t]);
  13551. }
  13552. }, {
  13553. key: "getTempFileURL",
  13554. value: function getTempFileURL(e, t) {
  13555. return ct.apply(this, [e, t]);
  13556. }
  13557. }, {
  13558. key: "downloadFile",
  13559. value: function downloadFile(e, t) {
  13560. return ut.apply(this, [e, t]);
  13561. }
  13562. }, {
  13563. key: "uploadFile",
  13564. value: function uploadFile(e, t) {
  13565. return it.apply(this, [e, t]);
  13566. }
  13567. }, {
  13568. key: "getUploadMetadata",
  13569. value: function getUploadMetadata(e, t) {
  13570. return ot.apply(this, [e, t]);
  13571. }
  13572. }, {
  13573. key: "registerExtension",
  13574. value: function registerExtension(e) {
  13575. dt[e.name] = e;
  13576. }
  13577. }, {
  13578. key: "invokeExtension",
  13579. value: function () {
  13580. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {
  13581. var n;
  13582. return _regenerator.default.wrap(function _callee33$(_context33) {
  13583. while (1) {
  13584. switch (_context33.prev = _context33.next) {
  13585. case 0:
  13586. n = dt[e];
  13587. if (n) {
  13588. _context33.next = 3;
  13589. break;
  13590. }
  13591. throw new te({
  13592. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  13593. });
  13594. case 3:
  13595. _context33.next = 5;
  13596. return n.invoke(t, this);
  13597. case 5:
  13598. return _context33.abrupt("return", _context33.sent);
  13599. case 6:
  13600. case "end":
  13601. return _context33.stop();
  13602. }
  13603. }
  13604. }, _callee33, this);
  13605. }));
  13606. function invokeExtension(_x29, _x30) {
  13607. return _invokeExtension.apply(this, arguments);
  13608. }
  13609. return invokeExtension;
  13610. }()
  13611. }, {
  13612. key: "useAdapters",
  13613. value: function useAdapters(e) {
  13614. var _ref13 = be(e) || {},
  13615. t = _ref13.adapter,
  13616. n = _ref13.runtime;
  13617. t && (ke.adapter = t), n && (ke.runtime = n);
  13618. }
  13619. }]);
  13620. return pt;
  13621. }();
  13622. var ft = new pt();
  13623. function gt(e, t, n) {
  13624. void 0 === n && (n = {});
  13625. var s = /\?/.test(t),
  13626. r = "";
  13627. for (var i in n) {
  13628. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  13629. }
  13630. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  13631. }
  13632. var mt = /*#__PURE__*/function () {
  13633. function mt() {
  13634. (0, _classCallCheck2.default)(this, mt);
  13635. }
  13636. (0, _createClass2.default)(mt, [{
  13637. key: "post",
  13638. value: function post(e) {
  13639. var t = e.url,
  13640. n = e.data,
  13641. s = e.headers;
  13642. return new Promise(function (e, r) {
  13643. ne.request({
  13644. url: gt("https:", t),
  13645. data: n,
  13646. method: "POST",
  13647. header: s,
  13648. success: function success(t) {
  13649. e(t);
  13650. },
  13651. fail: function fail(e) {
  13652. r(e);
  13653. }
  13654. });
  13655. });
  13656. }
  13657. }, {
  13658. key: "upload",
  13659. value: function upload(e) {
  13660. return new Promise(function (t, n) {
  13661. var s = e.url,
  13662. r = e.file,
  13663. i = e.data,
  13664. o = e.headers,
  13665. a = e.fileType,
  13666. c = ne.uploadFile({
  13667. url: gt("https:", s),
  13668. name: "file",
  13669. formData: Object.assign({}, i),
  13670. filePath: r,
  13671. fileType: a,
  13672. header: o,
  13673. success: function success(e) {
  13674. var n = {
  13675. statusCode: e.statusCode,
  13676. data: e.data || {}
  13677. };
  13678. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  13679. },
  13680. fail: function fail(e) {
  13681. n(new Error(e.errMsg || "uploadFile:fail"));
  13682. }
  13683. });
  13684. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  13685. e.onUploadProgress({
  13686. loaded: t.totalBytesSent,
  13687. total: t.totalBytesExpectedToSend
  13688. });
  13689. });
  13690. });
  13691. }
  13692. }]);
  13693. return mt;
  13694. }();
  13695. var yt = {
  13696. setItem: function setItem(e, t) {
  13697. ne.setStorageSync(e, t);
  13698. },
  13699. getItem: function getItem(e) {
  13700. return ne.getStorageSync(e);
  13701. },
  13702. removeItem: function removeItem(e) {
  13703. ne.removeStorageSync(e);
  13704. },
  13705. clear: function clear() {
  13706. ne.clearStorageSync();
  13707. }
  13708. };
  13709. var _t = {
  13710. genAdapter: function genAdapter() {
  13711. return {
  13712. root: {},
  13713. reqClass: mt,
  13714. localStorage: yt,
  13715. primaryStorage: "local"
  13716. };
  13717. },
  13718. isMatch: function isMatch() {
  13719. return !0;
  13720. },
  13721. runtime: "uni_app"
  13722. };
  13723. ft.useAdapters(_t);
  13724. var wt = ft,
  13725. vt = wt.init;
  13726. wt.init = function (e) {
  13727. e.env = e.spaceId;
  13728. var t = vt.call(this, e);
  13729. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  13730. var n = t.auth;
  13731. return t.auth = function (e) {
  13732. var t = n.call(this, e);
  13733. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  13734. var n;
  13735. t[e] = (n = t[e], function (e) {
  13736. e = e || {};
  13737. var _ee = ee(e),
  13738. t = _ee.success,
  13739. s = _ee.fail,
  13740. r = _ee.complete;
  13741. if (!(t || s || r)) return n.call(this, e);
  13742. n.call(this, e).then(function (e) {
  13743. t && t(e), r && r(e);
  13744. }, function (e) {
  13745. s && s(e), r && r(e);
  13746. });
  13747. }).bind(t);
  13748. }), t;
  13749. }, t.customAuth = t.auth, t;
  13750. };
  13751. var It = wt;
  13752. var St = /*#__PURE__*/function (_le) {
  13753. (0, _inherits2.default)(St, _le);
  13754. var _super8 = _createSuper(St);
  13755. function St() {
  13756. (0, _classCallCheck2.default)(this, St);
  13757. return _super8.apply(this, arguments);
  13758. }
  13759. (0, _createClass2.default)(St, [{
  13760. key: "getAccessToken",
  13761. value: function getAccessToken() {
  13762. var _this11 = this;
  13763. return new Promise(function (e, t) {
  13764. var n = "Anonymous_Access_token";
  13765. _this11.setAccessToken(n), e(n);
  13766. });
  13767. }
  13768. }, {
  13769. key: "setupRequest",
  13770. value: function setupRequest(e, t) {
  13771. var n = Object.assign({}, e, {
  13772. spaceId: this.config.spaceId,
  13773. timestamp: Date.now()
  13774. }),
  13775. s = {
  13776. "Content-Type": "application/json"
  13777. };
  13778. "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = he.sign(n, this.config.clientSecret);
  13779. var r = ue();
  13780. s["x-client-info"] = encodeURIComponent(JSON.stringify(r));
  13781. var _se = se(),
  13782. i = _se.token;
  13783. return s["x-client-token"] = i, {
  13784. url: this.config.requestUrl,
  13785. method: "POST",
  13786. data: n,
  13787. dataType: "json",
  13788. header: JSON.parse(JSON.stringify(s))
  13789. };
  13790. }
  13791. }, {
  13792. key: "uploadFileToOSS",
  13793. value: function uploadFileToOSS(_ref14) {
  13794. var _this12 = this;
  13795. var e = _ref14.url,
  13796. t = _ref14.formData,
  13797. n = _ref14.name,
  13798. s = _ref14.filePath,
  13799. r = _ref14.fileType,
  13800. i = _ref14.onUploadProgress;
  13801. return new Promise(function (o, a) {
  13802. var c = _this12.adapter.uploadFile({
  13803. url: e,
  13804. formData: t,
  13805. name: n,
  13806. filePath: s,
  13807. fileType: r,
  13808. success: function success(e) {
  13809. e && e.statusCode < 400 ? o(e) : a(new te({
  13810. code: "UPLOAD_FAILED",
  13811. message: "文件上传失败"
  13812. }));
  13813. },
  13814. fail: function fail(e) {
  13815. a(new te({
  13816. code: e.code || "UPLOAD_FAILED",
  13817. message: e.message || e.errMsg || "文件上传失败"
  13818. }));
  13819. }
  13820. });
  13821. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  13822. i({
  13823. loaded: e.totalBytesSent,
  13824. total: e.totalBytesExpectedToSend
  13825. });
  13826. });
  13827. });
  13828. }
  13829. }, {
  13830. key: "uploadFile",
  13831. value: function uploadFile(_ref15) {
  13832. var _this13 = this;
  13833. var e = _ref15.filePath,
  13834. t = _ref15.cloudPath,
  13835. _ref15$fileType = _ref15.fileType,
  13836. n = _ref15$fileType === void 0 ? "image" : _ref15$fileType,
  13837. s = _ref15.onUploadProgress;
  13838. if (!t) throw new te({
  13839. code: "CLOUDPATH_REQUIRED",
  13840. message: "cloudPath不可为空"
  13841. });
  13842. var r;
  13843. return this.getOSSUploadOptionsFromPath({
  13844. cloudPath: t
  13845. }).then(function (t) {
  13846. var _t$result = t.result,
  13847. i = _t$result.url,
  13848. o = _t$result.formData,
  13849. a = _t$result.name;
  13850. r = t.result.fileUrl;
  13851. var c = {
  13852. url: i,
  13853. formData: o,
  13854. name: a,
  13855. filePath: e,
  13856. fileType: n
  13857. };
  13858. return _this13.uploadFileToOSS(Object.assign({}, c, {
  13859. onUploadProgress: s
  13860. }));
  13861. }).then(function () {
  13862. return _this13.reportOSSUpload({
  13863. cloudPath: t
  13864. });
  13865. }).then(function (t) {
  13866. return new Promise(function (n, s) {
  13867. t.success ? n({
  13868. success: !0,
  13869. filePath: e,
  13870. fileID: r
  13871. }) : s(new te({
  13872. code: "UPLOAD_FAILED",
  13873. message: "文件上传失败"
  13874. }));
  13875. });
  13876. });
  13877. }
  13878. }, {
  13879. key: "deleteFile",
  13880. value: function deleteFile(_ref16) {
  13881. var e = _ref16.fileList;
  13882. var t = {
  13883. method: "serverless.file.resource.delete",
  13884. params: JSON.stringify({
  13885. fileList: e
  13886. })
  13887. };
  13888. return this.request(this.setupRequest(t)).then(function (e) {
  13889. if (e.success) return e.result;
  13890. throw new te({
  13891. code: "DELETE_FILE_FAILED",
  13892. message: "删除文件失败"
  13893. });
  13894. });
  13895. }
  13896. }, {
  13897. key: "getTempFileURL",
  13898. value: function getTempFileURL() {
  13899. var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13900. e = _ref17.fileList,
  13901. t = _ref17.maxAge;
  13902. if (!Array.isArray(e) || 0 === e.length) throw new te({
  13903. code: "INVALID_PARAM",
  13904. message: "fileList的元素必须是非空的字符串"
  13905. });
  13906. var n = {
  13907. method: "serverless.file.resource.getTempFileURL",
  13908. params: JSON.stringify({
  13909. fileList: e,
  13910. maxAge: t
  13911. })
  13912. };
  13913. return this.request(this.setupRequest(n)).then(function (e) {
  13914. if (e.success) return {
  13915. fileList: e.result.fileList.map(function (e) {
  13916. return {
  13917. fileID: e.fileID,
  13918. tempFileURL: e.tempFileURL
  13919. };
  13920. })
  13921. };
  13922. throw new te({
  13923. code: "GET_TEMP_FILE_URL_FAILED",
  13924. message: "获取临时文件链接失败"
  13925. });
  13926. });
  13927. }
  13928. }]);
  13929. return St;
  13930. }(le);
  13931. var bt = {
  13932. init: function init(e) {
  13933. var t = new St(e),
  13934. n = {
  13935. signInAnonymously: function signInAnonymously() {
  13936. return t.authorize();
  13937. },
  13938. getLoginState: function getLoginState() {
  13939. return Promise.resolve(!1);
  13940. }
  13941. };
  13942. return t.auth = function () {
  13943. return n;
  13944. }, t.customAuth = t.auth, t;
  13945. }
  13946. },
  13947. kt = n(function (e, t) {
  13948. e.exports = r.enc.Hex;
  13949. });
  13950. function At() {
  13951. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  13952. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13953. var n = t.data,
  13954. s = t.functionName,
  13955. r = t.method,
  13956. i = t.headers,
  13957. _t$signHeaderKeys = t.signHeaderKeys,
  13958. o = _t$signHeaderKeys === void 0 ? [] : _t$signHeaderKeys,
  13959. a = t.config,
  13960. c = Date.now(),
  13961. u = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
  13962. var t = 16 * Math.random() | 0;
  13963. return ("x" === e ? t : 3 & t | 8).toString(16);
  13964. }),
  13965. h = Object.assign({}, i, {
  13966. "x-from-app-id": a.spaceAppId,
  13967. "x-from-env-id": a.spaceId,
  13968. "x-to-env-id": a.spaceId,
  13969. "x-from-instance-id": c,
  13970. "x-from-function-name": s,
  13971. "x-client-timestamp": c,
  13972. "x-alipay-source": "client",
  13973. "x-request-id": u,
  13974. "x-alipay-callid": u
  13975. }),
  13976. l = ["x-from-app-id", "x-from-env-id", "x-to-env-id", "x-from-instance-id", "x-from-function-name", "x-client-timestamp"].concat(o),
  13977. _ref18 = e.split("?") || [],
  13978. _ref19 = (0, _slicedToArray2.default)(_ref18, 2),
  13979. _ref19$ = _ref19[0],
  13980. d = _ref19$ === void 0 ? "" : _ref19$,
  13981. _ref19$2 = _ref19[1],
  13982. p = _ref19$2 === void 0 ? "" : _ref19$2,
  13983. f = function (e) {
  13984. var t = e.signedHeaders.join(";"),
  13985. n = e.signedHeaders.map(function (t) {
  13986. return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
  13987. }).join(""),
  13988. s = ye(e.body).toString(kt),
  13989. r = "".concat(e.method.toUpperCase(), "\n").concat(e.path, "\n").concat(e.query, "\n").concat(n, "\n").concat(t, "\n").concat(s, "\n"),
  13990. i = ye(r).toString(kt),
  13991. o = "HMAC-SHA256\n".concat(e.timestamp, "\n").concat(i, "\n"),
  13992. a = _e(o, e.secretKey).toString(kt);
  13993. return "HMAC-SHA256 Credential=".concat(e.secretId, ", SignedHeaders=").concat(t, ", Signature=").concat(a);
  13994. }({
  13995. path: d,
  13996. query: p,
  13997. method: r,
  13998. headers: h,
  13999. timestamp: c,
  14000. body: JSON.stringify(n),
  14001. secretId: a.accessKey,
  14002. secretKey: a.secretKey,
  14003. signedHeaders: l.sort()
  14004. });
  14005. return {
  14006. url: "".concat(a.endpoint).concat(e),
  14007. headers: Object.assign({}, h, {
  14008. Authorization: f
  14009. })
  14010. };
  14011. }
  14012. function Pt(_ref20) {
  14013. var e = _ref20.url,
  14014. t = _ref20.data,
  14015. _ref20$method = _ref20.method,
  14016. n = _ref20$method === void 0 ? "POST" : _ref20$method,
  14017. _ref20$headers = _ref20.headers,
  14018. s = _ref20$headers === void 0 ? {} : _ref20$headers;
  14019. return new Promise(function (r, i) {
  14020. ne.request({
  14021. url: e,
  14022. method: n,
  14023. data: t,
  14024. header: s,
  14025. dataType: "json",
  14026. complete: function complete() {
  14027. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14028. if (!e.statusCode || e.statusCode >= 400) {
  14029. var _ref21 = e.data || {},
  14030. _t10 = _ref21.errMsg;
  14031. return i(new te({
  14032. code: "SYS_ERR",
  14033. message: _t10 || e.errMsg || "request:fail",
  14034. requestId: e.requestID
  14035. }));
  14036. }
  14037. r({
  14038. status: e.statusCode,
  14039. data: e.data,
  14040. headers: e.header,
  14041. requestId: e.requestID
  14042. });
  14043. }
  14044. });
  14045. });
  14046. }
  14047. function Tt(e, t) {
  14048. var n = e.path,
  14049. s = e.data,
  14050. _e$method = e.method,
  14051. r = _e$method === void 0 ? "GET" : _e$method,
  14052. _At = At(n, {
  14053. functionName: "",
  14054. data: s,
  14055. method: r,
  14056. headers: {
  14057. "x-alipay-cloud-mode": "oss",
  14058. "x-data-api-type": "oss",
  14059. "x-expire-timestamp": Date.now() + 6e4
  14060. },
  14061. signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"],
  14062. config: t
  14063. }),
  14064. i = _At.url,
  14065. o = _At.headers;
  14066. return Pt({
  14067. url: i,
  14068. data: s,
  14069. method: r,
  14070. headers: o
  14071. }).then(function (e) {
  14072. var t = e.data || {};
  14073. if (!t.success) throw new te({
  14074. code: e.code,
  14075. message: e.message,
  14076. requestId: e.trace_id
  14077. });
  14078. return t.data || {};
  14079. }).catch(function (e) {
  14080. throw new te({
  14081. code: e.errCode,
  14082. message: e.errMsg,
  14083. requestId: e.requestId
  14084. });
  14085. });
  14086. }
  14087. function Ct() {
  14088. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  14089. var t = e.trim().replace(/^cloud:\/\//, ""),
  14090. n = t.indexOf("/");
  14091. if (n <= 0) throw new te({
  14092. code: "INVALID_PARAM",
  14093. message: "fileID不合法"
  14094. });
  14095. var s = t.substring(0, n),
  14096. r = t.substring(n + 1);
  14097. return s !== this.config.spaceId && console.warn("file ".concat(e, " does not belong to env ").concat(this.config.spaceId)), r;
  14098. }
  14099. var xt = /*#__PURE__*/function () {
  14100. function xt(e) {
  14101. (0, _classCallCheck2.default)(this, xt);
  14102. if (["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach(function (t) {
  14103. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  14104. }), e.endpoint) {
  14105. if ("string" != typeof e.endpoint) throw new Error("endpoint must be string");
  14106. if (!/^https:\/\//.test(e.endpoint)) throw new Error("endpoint must start with https://");
  14107. e.endpoint = e.endpoint.replace(/\/$/, "");
  14108. }
  14109. this.config = Object.assign({}, e, {
  14110. endpoint: e.endpoint || "https://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn")
  14111. });
  14112. }
  14113. (0, _createClass2.default)(xt, [{
  14114. key: "callFunction",
  14115. value: function callFunction(e) {
  14116. return function (e, t) {
  14117. var n = e.name,
  14118. s = e.data,
  14119. r = "POST",
  14120. _At2 = At("/functions/invokeFunction", {
  14121. functionName: n,
  14122. data: s,
  14123. method: r,
  14124. headers: {
  14125. "x-to-function-name": n
  14126. },
  14127. signHeaderKeys: ["x-to-function-name"],
  14128. config: t
  14129. }),
  14130. i = _At2.url,
  14131. o = _At2.headers;
  14132. return Pt({
  14133. url: i,
  14134. data: s,
  14135. method: r,
  14136. headers: o
  14137. }).then(function (e) {
  14138. return {
  14139. errCode: 0,
  14140. success: !0,
  14141. requestId: e.requestId,
  14142. result: e.data
  14143. };
  14144. }).catch(function (e) {
  14145. throw new te({
  14146. code: e.errCode,
  14147. message: e.errMsg,
  14148. requestId: e.requestId
  14149. });
  14150. });
  14151. }(e, this.config);
  14152. }
  14153. }, {
  14154. key: "uploadFileToOSS",
  14155. value: function uploadFileToOSS(_ref22) {
  14156. var e = _ref22.url,
  14157. t = _ref22.filePath,
  14158. n = _ref22.fileType,
  14159. s = _ref22.formData,
  14160. r = _ref22.onUploadProgress;
  14161. return new Promise(function (i, o) {
  14162. var a = ne.uploadFile({
  14163. url: e,
  14164. filePath: t,
  14165. fileType: n,
  14166. formData: s,
  14167. name: "file",
  14168. success: function success(e) {
  14169. e && e.statusCode < 400 ? i(e) : o(new te({
  14170. code: "UPLOAD_FAILED",
  14171. message: "文件上传失败"
  14172. }));
  14173. },
  14174. fail: function fail(e) {
  14175. o(new te({
  14176. code: e.code || "UPLOAD_FAILED",
  14177. message: e.message || e.errMsg || "文件上传失败"
  14178. }));
  14179. }
  14180. });
  14181. "function" == typeof r && a && "function" == typeof a.onProgressUpdate && a.onProgressUpdate(function (e) {
  14182. r({
  14183. loaded: e.totalBytesSent,
  14184. total: e.totalBytesExpectedToSend
  14185. });
  14186. });
  14187. });
  14188. }
  14189. }, {
  14190. key: "uploadFile",
  14191. value: function () {
  14192. var _uploadFile2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(_ref23) {
  14193. var e, _ref23$cloudPath, t, _ref23$fileType, n, s, r, i, o, a, c;
  14194. return _regenerator.default.wrap(function _callee34$(_context34) {
  14195. while (1) {
  14196. switch (_context34.prev = _context34.next) {
  14197. case 0:
  14198. e = _ref23.filePath, _ref23$cloudPath = _ref23.cloudPath, t = _ref23$cloudPath === void 0 ? "" : _ref23$cloudPath, _ref23$fileType = _ref23.fileType, n = _ref23$fileType === void 0 ? "image" : _ref23$fileType, s = _ref23.onUploadProgress;
  14199. if (!("string" !== f(t))) {
  14200. _context34.next = 3;
  14201. break;
  14202. }
  14203. throw new te({
  14204. code: "INVALID_PARAM",
  14205. message: "cloudPath必须为字符串类型"
  14206. });
  14207. case 3:
  14208. if (t = t.trim()) {
  14209. _context34.next = 5;
  14210. break;
  14211. }
  14212. throw new te({
  14213. code: "INVALID_PARAM",
  14214. message: "cloudPath不可为空"
  14215. });
  14216. case 5:
  14217. if (!/:\/\//.test(t)) {
  14218. _context34.next = 7;
  14219. break;
  14220. }
  14221. throw new te({
  14222. code: "INVALID_PARAM",
  14223. message: "cloudPath不合法"
  14224. });
  14225. case 7:
  14226. _context34.next = 9;
  14227. return Tt({
  14228. path: "/".concat(t.replace(/^\//, ""), "?post_url")
  14229. }, this.config);
  14230. case 9:
  14231. r = _context34.sent;
  14232. i = r.file_id;
  14233. o = r.upload_url;
  14234. a = r.form_data;
  14235. c = a && a.reduce(function (e, t) {
  14236. return e[t.key] = t.value, e;
  14237. }, {});
  14238. return _context34.abrupt("return", this.uploadFileToOSS({
  14239. url: o,
  14240. filePath: e,
  14241. fileType: n,
  14242. formData: c,
  14243. onUploadProgress: s
  14244. }).then(function () {
  14245. return {
  14246. fileID: i
  14247. };
  14248. }));
  14249. case 15:
  14250. case "end":
  14251. return _context34.stop();
  14252. }
  14253. }
  14254. }, _callee34, this);
  14255. }));
  14256. function uploadFile(_x31) {
  14257. return _uploadFile2.apply(this, arguments);
  14258. }
  14259. return uploadFile;
  14260. }()
  14261. }, {
  14262. key: "getTempFileURL",
  14263. value: function () {
  14264. var _getTempFileURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35(_ref24) {
  14265. var _this14 = this;
  14266. var e;
  14267. return _regenerator.default.wrap(function _callee35$(_context35) {
  14268. while (1) {
  14269. switch (_context35.prev = _context35.next) {
  14270. case 0:
  14271. e = _ref24.fileList;
  14272. return _context35.abrupt("return", new Promise(function (t, n) {
  14273. (!e || e.length < 0) && n(new te({
  14274. errCode: "INVALID_PARAM",
  14275. errMsg: "fileList不能为空数组"
  14276. })), e.length > 50 && n(new te({
  14277. errCode: "INVALID_PARAM",
  14278. errMsg: "fileList数组长度不能超过50"
  14279. }));
  14280. var s = [];
  14281. var _iterator5 = _createForOfIteratorHelper(e),
  14282. _step5;
  14283. try {
  14284. for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
  14285. var _t11 = _step5.value;
  14286. "string" !== f(_t11) && n(new te({
  14287. errCode: "INVALID_PARAM",
  14288. errMsg: "fileList的元素必须是非空的字符串"
  14289. }));
  14290. var _e17 = Ct.call(_this14, _t11);
  14291. s.push({
  14292. file_id: _e17,
  14293. expire: 600
  14294. });
  14295. }
  14296. } catch (err) {
  14297. _iterator5.e(err);
  14298. } finally {
  14299. _iterator5.f();
  14300. }
  14301. Tt({
  14302. path: "/?download_url",
  14303. data: {
  14304. file_list: s
  14305. },
  14306. method: "POST"
  14307. }, _this14.config).then(function (e) {
  14308. var _e$file_list = e.file_list,
  14309. n = _e$file_list === void 0 ? [] : _e$file_list;
  14310. t({
  14311. fileList: n.map(function (e) {
  14312. return {
  14313. fileID: e.file_id,
  14314. tempFileURL: e.download_url
  14315. };
  14316. })
  14317. });
  14318. }).catch(function (e) {
  14319. return n(e);
  14320. });
  14321. }));
  14322. case 2:
  14323. case "end":
  14324. return _context35.stop();
  14325. }
  14326. }
  14327. }, _callee35);
  14328. }));
  14329. function getTempFileURL(_x32) {
  14330. return _getTempFileURL.apply(this, arguments);
  14331. }
  14332. return getTempFileURL;
  14333. }()
  14334. }]);
  14335. return xt;
  14336. }();
  14337. var Ot = {
  14338. init: function init(e) {
  14339. e.provider = "alipay";
  14340. var t = new xt(e);
  14341. return t.auth = function () {
  14342. return {
  14343. signInAnonymously: function signInAnonymously() {
  14344. return Promise.resolve();
  14345. },
  14346. getLoginState: function getLoginState() {
  14347. return Promise.resolve(!0);
  14348. }
  14349. };
  14350. }, t;
  14351. }
  14352. };
  14353. function Et(_ref25) {
  14354. var e = _ref25.data;
  14355. var t;
  14356. t = ue();
  14357. var n = JSON.parse(JSON.stringify(e || {}));
  14358. if (Object.assign(n, {
  14359. clientInfo: t
  14360. }), !n.uniIdToken) {
  14361. var _se2 = se(),
  14362. _e18 = _se2.token;
  14363. _e18 && (n.uniIdToken = _e18);
  14364. }
  14365. return n;
  14366. }
  14367. function Lt() {
  14368. return _Lt.apply(this, arguments);
  14369. }
  14370. function _Lt() {
  14371. _Lt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee56() {
  14372. var _this27 = this;
  14373. var _ref67,
  14374. e,
  14375. t,
  14376. _this$__dev__,
  14377. n,
  14378. s,
  14379. r,
  14380. i,
  14381. o,
  14382. a,
  14383. _args6 = arguments;
  14384. return _regenerator.default.wrap(function _callee56$(_context56) {
  14385. while (1) {
  14386. switch (_context56.prev = _context56.next) {
  14387. case 0:
  14388. _ref67 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, e = _ref67.name, t = _ref67.data;
  14389. _context56.next = 3;
  14390. return this.__dev__.initLocalNetwork();
  14391. case 3:
  14392. _this$__dev__ = this.__dev__, n = _this$__dev__.localAddress, s = _this$__dev__.localPort, r = {
  14393. aliyun: "aliyun",
  14394. tencent: "tcb",
  14395. alipay: "alipay"
  14396. }[this.config.provider], i = this.config.spaceId, o = "http://".concat(n, ":").concat(s, "/system/check-function"), a = "http://".concat(n, ":").concat(s, "/cloudfunctions/").concat(e);
  14397. return _context56.abrupt("return", new Promise(function (t, n) {
  14398. ne.request({
  14399. method: "POST",
  14400. url: o,
  14401. data: {
  14402. name: e,
  14403. platform: P,
  14404. provider: r,
  14405. spaceId: i
  14406. },
  14407. timeout: 3e3,
  14408. success: function success(e) {
  14409. t(e);
  14410. },
  14411. fail: function fail() {
  14412. t({
  14413. data: {
  14414. code: "NETWORK_ERROR",
  14415. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  14416. }
  14417. });
  14418. }
  14419. });
  14420. }).then(function () {
  14421. var _ref68 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14422. e = _ref68.data;
  14423. var _ref69 = e || {},
  14424. t = _ref69.code,
  14425. n = _ref69.message;
  14426. return {
  14427. code: 0 === t ? 0 : t || "SYS_ERR",
  14428. message: n || "SYS_ERR"
  14429. };
  14430. }).then(function (_ref70) {
  14431. var n = _ref70.code,
  14432. s = _ref70.message;
  14433. if (0 !== n) {
  14434. switch (n) {
  14435. case "MODULE_ENCRYPTED":
  14436. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  14437. break;
  14438. case "FUNCTION_ENCRYPTED":
  14439. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  14440. break;
  14441. case "ACTION_ENCRYPTED":
  14442. console.error(s || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  14443. break;
  14444. case "NETWORK_ERROR":
  14445. {
  14446. var _e30 = "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";
  14447. throw console.error(_e30), new Error(_e30);
  14448. }
  14449. case "SWITCH_TO_CLOUD":
  14450. break;
  14451. default:
  14452. {
  14453. var _e31 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(s, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");
  14454. throw console.error(_e31), new Error(_e31);
  14455. }
  14456. }
  14457. return _this27._callCloudFunction({
  14458. name: e,
  14459. data: t
  14460. });
  14461. }
  14462. return new Promise(function (e, n) {
  14463. var s = Et.call(_this27, {
  14464. data: t
  14465. });
  14466. ne.request({
  14467. method: "POST",
  14468. url: a,
  14469. data: {
  14470. provider: r,
  14471. platform: P,
  14472. param: s
  14473. },
  14474. success: function success() {
  14475. var _ref71 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14476. t = _ref71.statusCode,
  14477. s = _ref71.data;
  14478. return !t || t >= 400 ? n(new te({
  14479. code: s.code || "SYS_ERR",
  14480. message: s.message || "request:fail"
  14481. })) : e({
  14482. result: s
  14483. });
  14484. },
  14485. fail: function fail(e) {
  14486. n(new te({
  14487. code: e.code || e.errCode || "SYS_ERR",
  14488. message: e.message || e.errMsg || "request:fail"
  14489. }));
  14490. }
  14491. });
  14492. });
  14493. }));
  14494. case 5:
  14495. case "end":
  14496. return _context56.stop();
  14497. }
  14498. }
  14499. }, _callee56, this);
  14500. }));
  14501. return _Lt.apply(this, arguments);
  14502. }
  14503. var Rt = [{
  14504. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  14505. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  14506. mode: "append"
  14507. }];
  14508. var Ut = /[\\^$.*+?()[\]{}|]/g,
  14509. Nt = RegExp(Ut.source);
  14510. function Dt(e, t, n) {
  14511. return e.replace(new RegExp((s = t) && Nt.test(s) ? s.replace(Ut, "\\$&") : s, "g"), n);
  14512. var s;
  14513. }
  14514. var Mt = "none",
  14515. qt = "request",
  14516. Ft = "response",
  14517. Kt = "both";
  14518. var jt = /*#__PURE__*/function () {
  14519. function jt() {
  14520. var _ref26 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14521. e = _ref26.secretType,
  14522. t = _ref26.uniCloudIns;
  14523. (0, _classCallCheck2.default)(this, jt);
  14524. this.clientType = "", this.secretType = e || Mt, this.uniCloudIns = t;
  14525. var _this$uniCloudIns$con = this.uniCloudIns.config,
  14526. n = _this$uniCloudIns$con.provider,
  14527. s = _this$uniCloudIns$con.spaceId;
  14528. var r;
  14529. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", r.config.spaceId)));
  14530. }
  14531. (0, _createClass2.default)(jt, [{
  14532. key: "getSystemInfo",
  14533. value: function getSystemInfo() {
  14534. return this._systemInfo || (this._systemInfo = ae()), this._systemInfo;
  14535. }
  14536. }, {
  14537. key: "appId",
  14538. get: function get() {
  14539. return this.getSystemInfo().appId;
  14540. }
  14541. }, {
  14542. key: "deviceId",
  14543. get: function get() {
  14544. return this.getSystemInfo().deviceId;
  14545. }
  14546. }, {
  14547. key: "encryptData",
  14548. value: function () {
  14549. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(e) {
  14550. return _regenerator.default.wrap(function _callee36$(_context36) {
  14551. while (1) {
  14552. switch (_context36.prev = _context36.next) {
  14553. case 0:
  14554. return _context36.abrupt("return", this.secretType === Mt ? e : this.platformEncryptData(e));
  14555. case 1:
  14556. case "end":
  14557. return _context36.stop();
  14558. }
  14559. }
  14560. }, _callee36, this);
  14561. }));
  14562. function encryptData(_x33) {
  14563. return _encryptData.apply(this, arguments);
  14564. }
  14565. return encryptData;
  14566. }()
  14567. }, {
  14568. key: "decryptResult",
  14569. value: function () {
  14570. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(e) {
  14571. var _ref27, t, n;
  14572. return _regenerator.default.wrap(function _callee37$(_context37) {
  14573. while (1) {
  14574. switch (_context37.prev = _context37.next) {
  14575. case 0:
  14576. if (!(this.secretType === Mt)) {
  14577. _context37.next = 2;
  14578. break;
  14579. }
  14580. return _context37.abrupt("return", e);
  14581. case 2:
  14582. _ref27 = e || {}, t = _ref27.errCode, n = _ref27.content;
  14583. return _context37.abrupt("return", t || !n ? e : this.secretType === qt ? n : this.platformDecryptResult(e));
  14584. case 4:
  14585. case "end":
  14586. return _context37.stop();
  14587. }
  14588. }
  14589. }, _callee37, this);
  14590. }));
  14591. function decryptResult(_x34) {
  14592. return _decryptResult.apply(this, arguments);
  14593. }
  14594. return decryptResult;
  14595. }()
  14596. }, {
  14597. key: "wrapVerifyClientCallFunction",
  14598. value: function wrapVerifyClientCallFunction(e) {
  14599. var t = this;
  14600. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38() {
  14601. var _ref29,
  14602. n,
  14603. _ref29$data,
  14604. s,
  14605. r,
  14606. _args38 = arguments;
  14607. return _regenerator.default.wrap(function _callee38$(_context38) {
  14608. while (1) {
  14609. switch (_context38.prev = _context38.next) {
  14610. case 0:
  14611. _ref29 = _args38.length > 0 && _args38[0] !== undefined ? _args38[0] : {}, n = _ref29.name, _ref29$data = _ref29.data, s = _ref29$data === void 0 ? {} : _ref29$data;
  14612. _context38.next = 3;
  14613. return t.prepare();
  14614. case 3:
  14615. _context38.next = 5;
  14616. return t.platformGetSignOption();
  14617. case 5:
  14618. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context38.sent;
  14619. _context38.next = 8;
  14620. return e({
  14621. name: n,
  14622. data: s
  14623. });
  14624. case 8:
  14625. r = _context38.sent;
  14626. _context38.t0 = t.isClientKeyNotFound(r);
  14627. if (!_context38.t0) {
  14628. _context38.next = 19;
  14629. break;
  14630. }
  14631. _context38.next = 13;
  14632. return t.prepare({
  14633. forceUpdate: !0
  14634. });
  14635. case 13:
  14636. _context38.next = 15;
  14637. return t.platformGetSignOption();
  14638. case 15:
  14639. s._uniCloudOptions = _context38.sent;
  14640. _context38.next = 18;
  14641. return e({
  14642. name: n,
  14643. data: s
  14644. });
  14645. case 18:
  14646. r = _context38.sent;
  14647. case 19:
  14648. return _context38.abrupt("return", r);
  14649. case 20:
  14650. case "end":
  14651. return _context38.stop();
  14652. }
  14653. }
  14654. }, _callee38);
  14655. }));
  14656. }
  14657. }, {
  14658. key: "wrapEncryptDataCallFunction",
  14659. value: function wrapEncryptDataCallFunction(e) {
  14660. var t = this;
  14661. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39() {
  14662. var _ref31,
  14663. n,
  14664. _ref31$data,
  14665. s,
  14666. r,
  14667. i,
  14668. _r3,
  14669. _args39 = arguments;
  14670. return _regenerator.default.wrap(function _callee39$(_context39) {
  14671. while (1) {
  14672. switch (_context39.prev = _context39.next) {
  14673. case 0:
  14674. _ref31 = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {}, n = _ref31.name, _ref31$data = _ref31.data, s = _ref31$data === void 0 ? {} : _ref31$data;
  14675. _context39.next = 3;
  14676. return t.prepare();
  14677. case 3:
  14678. _context39.next = 5;
  14679. return t.encryptData(s);
  14680. case 5:
  14681. r = _context39.sent;
  14682. _context39.next = 8;
  14683. return e({
  14684. name: n,
  14685. data: r
  14686. });
  14687. case 8:
  14688. i = _context39.sent;
  14689. if (!t.isClientKeyNotFound(i)) {
  14690. _context39.next = 21;
  14691. break;
  14692. }
  14693. _context39.next = 12;
  14694. return t.prepare({
  14695. forceUpdate: !0
  14696. });
  14697. case 12:
  14698. _context39.next = 14;
  14699. return t.encryptData(s);
  14700. case 14:
  14701. _r3 = _context39.sent;
  14702. _context39.next = 17;
  14703. return t.platformGetSignOption();
  14704. case 17:
  14705. s._uniCloudOptions = _context39.sent;
  14706. _context39.next = 20;
  14707. return e({
  14708. name: n,
  14709. data: _r3
  14710. });
  14711. case 20:
  14712. i = _context39.sent;
  14713. case 21:
  14714. _context39.next = 23;
  14715. return t.decryptResult(i.result);
  14716. case 23:
  14717. i.result = _context39.sent;
  14718. return _context39.abrupt("return", i);
  14719. case 25:
  14720. case "end":
  14721. return _context39.stop();
  14722. }
  14723. }
  14724. }, _callee39);
  14725. }));
  14726. }
  14727. }]);
  14728. return jt;
  14729. }();
  14730. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  14731. function $t(e) {
  14732. return parseInt(e) === e;
  14733. }
  14734. function Bt(e) {
  14735. if (!$t(e.length)) return !1;
  14736. for (var t = 0; t < e.length; t++) {
  14737. if (!$t(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  14738. }
  14739. return !0;
  14740. }
  14741. function Wt(e, t) {
  14742. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  14743. if (Array.isArray(e)) {
  14744. if (!Bt(e)) throw new Error("Array contains invalid value: " + e);
  14745. return new Uint8Array(e);
  14746. }
  14747. if ($t(e.length) && Bt(e)) return new Uint8Array(e);
  14748. throw new Error("unsupported array-like object");
  14749. }
  14750. function Ht(e) {
  14751. return new Uint8Array(e);
  14752. }
  14753. function zt(e, t, n, s, r) {
  14754. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  14755. }
  14756. var Jt,
  14757. Gt = {
  14758. toBytes: function toBytes(e) {
  14759. var t = [],
  14760. n = 0;
  14761. for (e = encodeURI(e); n < e.length;) {
  14762. var s = e.charCodeAt(n++);
  14763. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  14764. }
  14765. return Wt(t);
  14766. },
  14767. fromBytes: function fromBytes(e) {
  14768. for (var t = [], n = 0; n < e.length;) {
  14769. var s = e[n];
  14770. s < 128 ? (t.push(String.fromCharCode(s)), n++) : s > 191 && s < 224 ? (t.push(String.fromCharCode((31 & s) << 6 | 63 & e[n + 1])), n += 2) : (t.push(String.fromCharCode((15 & s) << 12 | (63 & e[n + 1]) << 6 | 63 & e[n + 2])), n += 3);
  14771. }
  14772. return t.join("");
  14773. }
  14774. },
  14775. Vt = (Jt = "0123456789abcdef", {
  14776. toBytes: function toBytes(e) {
  14777. for (var t = [], n = 0; n < e.length; n += 2) {
  14778. t.push(parseInt(e.substr(n, 2), 16));
  14779. }
  14780. return t;
  14781. },
  14782. fromBytes: function fromBytes(e) {
  14783. for (var t = [], n = 0; n < e.length; n++) {
  14784. var s = e[n];
  14785. t.push(Jt[(240 & s) >> 4] + Jt[15 & s]);
  14786. }
  14787. return t.join("");
  14788. }
  14789. }),
  14790. Yt = {
  14791. 16: 10,
  14792. 24: 12,
  14793. 32: 14
  14794. },
  14795. Qt = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145],
  14796. Xt = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22],
  14797. Zt = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125],
  14798. en = [3328402341, 4168907908, 4000806809, 4135287693, 4294111757, 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, 2824099068, 1841019862, 739644986],
  14799. tn = [2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766],
  14800. nn = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762, 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, 3151392187, 372911126],
  14801. sn = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567, 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, 3149649517, 370555436],
  14802. rn = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, 3576870512, 1215061108, 3501741890],
  14803. on = [1347548327, 1400783205, 3273267108, 2520393566, 3409685355, 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, 2422494913, 1635502980, 1893020342, 1950903388, 1120974935],
  14804. an = [2807058932, 1699970625, 2764249623, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, 2037970062, 1047239e3, 1910319033, 1337376481, 2904027272, 2892417312, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, 1463996600],
  14805. cn = [4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, 3313212038, 923313619, 679998e3, 3215307299, 57326082, 377642221, 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, 1455525988, 3414450555, 850817237, 1817998408, 3092726480],
  14806. un = [0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, 2438237621, 2203032232, 2370213795],
  14807. hn = [0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, 3198115200, 3046200461, 2827177882, 2743944855],
  14808. ln = [0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, 273792366, 492483431, 1047239e3, 861968209, 612205898, 695634755, 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, 2159976285, 2377486676, 2594734927, 2544078150],
  14809. dn = [0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, 514443284, 562755902, 679998e3, 865136418, 983426092, 3708173718, 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, 1654886325, 1568718495, 1418573201, 1335535747, 1184342925];
  14810. function pn(e) {
  14811. for (var t = [], n = 0; n < e.length; n += 4) {
  14812. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  14813. }
  14814. return t;
  14815. }
  14816. var fn = /*#__PURE__*/function () {
  14817. function fn(e) {
  14818. (0, _classCallCheck2.default)(this, fn);
  14819. if (!(this instanceof fn)) throw Error("AES must be instanitated with `new`");
  14820. Object.defineProperty(this, "key", {
  14821. value: Wt(e, !0)
  14822. }), this._prepare();
  14823. }
  14824. (0, _createClass2.default)(fn, [{
  14825. key: "_prepare",
  14826. value: function _prepare() {
  14827. var e = Yt[this.key.length];
  14828. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  14829. this._Ke = [], this._Kd = [];
  14830. for (var t = 0; t <= e; t++) {
  14831. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  14832. }
  14833. var n,
  14834. s = 4 * (e + 1),
  14835. r = this.key.length / 4,
  14836. i = pn(this.key);
  14837. for (t = 0; t < r; t++) {
  14838. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  14839. }
  14840. for (var o, a = 0, c = r; c < s;) {
  14841. if (o = i[r - 1], i[0] ^= Xt[o >> 16 & 255] << 24 ^ Xt[o >> 8 & 255] << 16 ^ Xt[255 & o] << 8 ^ Xt[o >> 24 & 255] ^ Qt[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  14842. i[t] ^= i[t - 1];
  14843. } else {
  14844. for (t = 1; t < r / 2; t++) {
  14845. i[t] ^= i[t - 1];
  14846. }
  14847. o = i[r / 2 - 1], i[r / 2] ^= Xt[255 & o] ^ Xt[o >> 8 & 255] << 8 ^ Xt[o >> 16 & 255] << 16 ^ Xt[o >> 24 & 255] << 24;
  14848. for (t = r / 2 + 1; t < r; t++) {
  14849. i[t] ^= i[t - 1];
  14850. }
  14851. }
  14852. for (t = 0; t < r && c < s;) {
  14853. u = c >> 2, h = c % 4, this._Ke[u][h] = i[t], this._Kd[e - u][h] = i[t++], c++;
  14854. }
  14855. }
  14856. for (var u = 1; u < e; u++) {
  14857. for (var h = 0; h < 4; h++) {
  14858. o = this._Kd[u][h], this._Kd[u][h] = un[o >> 24 & 255] ^ hn[o >> 16 & 255] ^ ln[o >> 8 & 255] ^ dn[255 & o];
  14859. }
  14860. }
  14861. }
  14862. }, {
  14863. key: "encrypt",
  14864. value: function encrypt(e) {
  14865. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  14866. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = pn(e), r = 0; r < 4; r++) {
  14867. s[r] ^= this._Ke[0][r];
  14868. }
  14869. for (var i = 1; i < t; i++) {
  14870. for (r = 0; r < 4; r++) {
  14871. n[r] = en[s[r] >> 24 & 255] ^ tn[s[(r + 1) % 4] >> 16 & 255] ^ nn[s[(r + 2) % 4] >> 8 & 255] ^ sn[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  14872. }
  14873. s = n.slice();
  14874. }
  14875. var o,
  14876. a = Ht(16);
  14877. for (r = 0; r < 4; r++) {
  14878. o = this._Ke[t][r], a[4 * r] = 255 & (Xt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Xt[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Xt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Xt[255 & s[(r + 3) % 4]] ^ o);
  14879. }
  14880. return a;
  14881. }
  14882. }, {
  14883. key: "decrypt",
  14884. value: function decrypt(e) {
  14885. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  14886. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = pn(e), r = 0; r < 4; r++) {
  14887. s[r] ^= this._Kd[0][r];
  14888. }
  14889. for (var i = 1; i < t; i++) {
  14890. for (r = 0; r < 4; r++) {
  14891. n[r] = rn[s[r] >> 24 & 255] ^ on[s[(r + 3) % 4] >> 16 & 255] ^ an[s[(r + 2) % 4] >> 8 & 255] ^ cn[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  14892. }
  14893. s = n.slice();
  14894. }
  14895. var o,
  14896. a = Ht(16);
  14897. for (r = 0; r < 4; r++) {
  14898. o = this._Kd[t][r], a[4 * r] = 255 & (Zt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Zt[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Zt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Zt[255 & s[(r + 1) % 4]] ^ o);
  14899. }
  14900. return a;
  14901. }
  14902. }]);
  14903. return fn;
  14904. }();
  14905. var gn = /*#__PURE__*/function () {
  14906. function gn(e) {
  14907. (0, _classCallCheck2.default)(this, gn);
  14908. if (!(this instanceof gn)) throw Error("AES must be instanitated with `new`");
  14909. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new fn(e);
  14910. }
  14911. (0, _createClass2.default)(gn, [{
  14912. key: "encrypt",
  14913. value: function encrypt(e) {
  14914. if ((e = Wt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  14915. for (var t = Ht(e.length), n = Ht(16), s = 0; s < e.length; s += 16) {
  14916. zt(e, n, 0, s, s + 16), zt(n = this._aes.encrypt(n), t, s);
  14917. }
  14918. return t;
  14919. }
  14920. }, {
  14921. key: "decrypt",
  14922. value: function decrypt(e) {
  14923. if ((e = Wt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  14924. for (var t = Ht(e.length), n = Ht(16), s = 0; s < e.length; s += 16) {
  14925. zt(e, n, 0, s, s + 16), zt(n = this._aes.decrypt(n), t, s);
  14926. }
  14927. return t;
  14928. }
  14929. }]);
  14930. return gn;
  14931. }();
  14932. var mn = /*#__PURE__*/function () {
  14933. function mn(e, t) {
  14934. (0, _classCallCheck2.default)(this, mn);
  14935. if (!(this instanceof mn)) throw Error("AES must be instanitated with `new`");
  14936. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  14937. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  14938. } else t = Ht(16);
  14939. this._lastCipherblock = Wt(t, !0), this._aes = new fn(e);
  14940. }
  14941. (0, _createClass2.default)(mn, [{
  14942. key: "encrypt",
  14943. value: function encrypt(e) {
  14944. if ((e = Wt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  14945. for (var t = Ht(e.length), n = Ht(16), s = 0; s < e.length; s += 16) {
  14946. zt(e, n, 0, s, s + 16);
  14947. for (var r = 0; r < 16; r++) {
  14948. n[r] ^= this._lastCipherblock[r];
  14949. }
  14950. this._lastCipherblock = this._aes.encrypt(n), zt(this._lastCipherblock, t, s);
  14951. }
  14952. return t;
  14953. }
  14954. }, {
  14955. key: "decrypt",
  14956. value: function decrypt(e) {
  14957. if ((e = Wt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  14958. for (var t = Ht(e.length), n = Ht(16), s = 0; s < e.length; s += 16) {
  14959. zt(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  14960. for (var r = 0; r < 16; r++) {
  14961. t[s + r] = n[r] ^ this._lastCipherblock[r];
  14962. }
  14963. zt(e, this._lastCipherblock, 0, s, s + 16);
  14964. }
  14965. return t;
  14966. }
  14967. }]);
  14968. return mn;
  14969. }();
  14970. var yn = /*#__PURE__*/function () {
  14971. function yn(e, t, n) {
  14972. (0, _classCallCheck2.default)(this, yn);
  14973. if (!(this instanceof yn)) throw Error("AES must be instanitated with `new`");
  14974. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  14975. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  14976. } else t = Ht(16);
  14977. n || (n = 1), this.segmentSize = n, this._shiftRegister = Wt(t, !0), this._aes = new fn(e);
  14978. }
  14979. (0, _createClass2.default)(yn, [{
  14980. key: "encrypt",
  14981. value: function encrypt(e) {
  14982. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  14983. for (var t, n = Wt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  14984. t = this._aes.encrypt(this._shiftRegister);
  14985. for (var r = 0; r < this.segmentSize; r++) {
  14986. n[s + r] ^= t[r];
  14987. }
  14988. zt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), zt(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  14989. }
  14990. return n;
  14991. }
  14992. }, {
  14993. key: "decrypt",
  14994. value: function decrypt(e) {
  14995. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  14996. for (var t, n = Wt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  14997. t = this._aes.encrypt(this._shiftRegister);
  14998. for (var r = 0; r < this.segmentSize; r++) {
  14999. n[s + r] ^= t[r];
  15000. }
  15001. zt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), zt(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  15002. }
  15003. return n;
  15004. }
  15005. }]);
  15006. return yn;
  15007. }();
  15008. var _n = /*#__PURE__*/function () {
  15009. function _n(e, t) {
  15010. (0, _classCallCheck2.default)(this, _n);
  15011. if (!(this instanceof _n)) throw Error("AES must be instanitated with `new`");
  15012. if (this.description = "Output Feedback", this.name = "ofb", t) {
  15013. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  15014. } else t = Ht(16);
  15015. this._lastPrecipher = Wt(t, !0), this._lastPrecipherIndex = 16, this._aes = new fn(e);
  15016. }
  15017. (0, _createClass2.default)(_n, [{
  15018. key: "encrypt",
  15019. value: function encrypt(e) {
  15020. for (var t = Wt(e, !0), n = 0; n < t.length; n++) {
  15021. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  15022. }
  15023. return t;
  15024. }
  15025. }, {
  15026. key: "decrypt",
  15027. value: function decrypt(e) {
  15028. return this.encrypt(e);
  15029. }
  15030. }]);
  15031. return _n;
  15032. }();
  15033. var wn = /*#__PURE__*/function () {
  15034. function wn(e) {
  15035. (0, _classCallCheck2.default)(this, wn);
  15036. if (!(this instanceof wn)) throw Error("Counter must be instanitated with `new`");
  15037. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = Ht(16), this.setValue(e)) : this.setBytes(e);
  15038. }
  15039. (0, _createClass2.default)(wn, [{
  15040. key: "setValue",
  15041. value: function setValue(e) {
  15042. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  15043. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  15044. for (var t = 15; t >= 0; --t) {
  15045. this._counter[t] = e % 256, e = parseInt(e / 256);
  15046. }
  15047. }
  15048. }, {
  15049. key: "setBytes",
  15050. value: function setBytes(e) {
  15051. if (16 != (e = Wt(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  15052. this._counter = e;
  15053. }
  15054. }, {
  15055. key: "increment",
  15056. value: function increment() {
  15057. for (var e = 15; e >= 0; e--) {
  15058. if (255 !== this._counter[e]) {
  15059. this._counter[e]++;
  15060. break;
  15061. }
  15062. this._counter[e] = 0;
  15063. }
  15064. }
  15065. }]);
  15066. return wn;
  15067. }();
  15068. var vn = /*#__PURE__*/function () {
  15069. function vn(e, t) {
  15070. (0, _classCallCheck2.default)(this, vn);
  15071. if (!(this instanceof vn)) throw Error("AES must be instanitated with `new`");
  15072. this.description = "Counter", this.name = "ctr", t instanceof wn || (t = new wn(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new fn(e);
  15073. }
  15074. (0, _createClass2.default)(vn, [{
  15075. key: "encrypt",
  15076. value: function encrypt(e) {
  15077. for (var t = Wt(e, !0), n = 0; n < t.length; n++) {
  15078. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  15079. }
  15080. return t;
  15081. }
  15082. }, {
  15083. key: "decrypt",
  15084. value: function decrypt(e) {
  15085. return this.encrypt(e);
  15086. }
  15087. }]);
  15088. return vn;
  15089. }();
  15090. var In = {
  15091. AES: fn,
  15092. Counter: wn,
  15093. ModeOfOperation: {
  15094. ecb: gn,
  15095. cbc: mn,
  15096. cfb: yn,
  15097. ofb: _n,
  15098. ctr: vn
  15099. },
  15100. utils: {
  15101. hex: Vt,
  15102. utf8: Gt
  15103. },
  15104. padding: {
  15105. pkcs7: {
  15106. pad: function pad(e) {
  15107. var t = 16 - (e = Wt(e, !0)).length % 16,
  15108. n = Ht(e.length + t);
  15109. zt(e, n);
  15110. for (var s = e.length; s < n.length; s++) {
  15111. n[s] = t;
  15112. }
  15113. return n;
  15114. },
  15115. strip: function strip(e) {
  15116. if ((e = Wt(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  15117. var t = e[e.length - 1];
  15118. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  15119. for (var n = e.length - t, s = 0; s < t; s++) {
  15120. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  15121. }
  15122. var r = Ht(n);
  15123. return zt(e, r, 0, 0, n), r;
  15124. }
  15125. }
  15126. },
  15127. _arrayTest: {
  15128. coerceArray: Wt,
  15129. createArray: Ht,
  15130. copyArray: zt
  15131. }
  15132. };
  15133. function Sn(e, t, n) {
  15134. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  15135. r = In.utils.utf8.toBytes(n),
  15136. i = In.utils.utf8.toBytes(e),
  15137. o = new In.ModeOfOperation.cbc(s, r),
  15138. a = In.padding.pkcs7.pad(i),
  15139. c = o.encrypt(a);
  15140. return uni.arrayBufferToBase64(c);
  15141. }
  15142. var bn = {
  15143. code: 2e4,
  15144. message: "System error"
  15145. },
  15146. kn = {
  15147. code: 20101,
  15148. message: "Invalid client"
  15149. },
  15150. An = {
  15151. code: 20102,
  15152. message: "Get encrypt key failed"
  15153. },
  15154. Pn = {
  15155. 10001: "Secure network is not supported on current playground or unimpsdk",
  15156. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  15157. 10009: "Encrypt payload failed",
  15158. 10010: "Decrypt response failed"
  15159. };
  15160. function Tn(e) {
  15161. var _ref32 = e || {},
  15162. t = _ref32.errSubject,
  15163. n = _ref32.subject,
  15164. s = _ref32.errCode,
  15165. r = _ref32.errMsg,
  15166. i = _ref32.code,
  15167. o = _ref32.message,
  15168. a = _ref32.cause;
  15169. return new te({
  15170. subject: t || n || "uni-secure-network",
  15171. code: s || i || bn.code,
  15172. message: r || o,
  15173. cause: a
  15174. });
  15175. }
  15176. var Cn,
  15177. xn,
  15178. On = null;
  15179. var En = /*#__PURE__*/function (_jt) {
  15180. (0, _inherits2.default)(En, _jt);
  15181. var _super9 = _createSuper(En);
  15182. function En(e) {
  15183. var _this15;
  15184. (0, _classCallCheck2.default)(this, En);
  15185. _this15 = _super9.call(this, e), _this15.clientType = "mp-weixin", _this15.userEncryptKey = null;
  15186. return _this15;
  15187. }
  15188. (0, _createClass2.default)(En, [{
  15189. key: "isLogin",
  15190. value: function isLogin() {
  15191. return !!this.scopedGlobalCache.mpWeixinCode || !!this.scopedGlobalCache.mpWeixinOpenid;
  15192. }
  15193. }, {
  15194. key: "prepare",
  15195. value: function () {
  15196. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40() {
  15197. return _regenerator.default.wrap(function _callee40$(_context40) {
  15198. while (1) {
  15199. switch (_context40.prev = _context40.next) {
  15200. case 0:
  15201. if (this.isLogin()) {
  15202. _context40.next = 7;
  15203. break;
  15204. }
  15205. if (this.scopedGlobalCache.initPromise) {
  15206. _context40.next = 3;
  15207. break;
  15208. }
  15209. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  15210. case 3:
  15211. _context40.next = 5;
  15212. return this.scopedGlobalCache.initPromise;
  15213. case 5:
  15214. if (this.isLogin()) {
  15215. _context40.next = 7;
  15216. break;
  15217. }
  15218. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  15219. case 7:
  15220. case "end":
  15221. return _context40.stop();
  15222. }
  15223. }
  15224. }, _callee40, this);
  15225. }));
  15226. function prepare() {
  15227. return _prepare2.apply(this, arguments);
  15228. }
  15229. return prepare;
  15230. }()
  15231. }, {
  15232. key: "getUserEncryptKey",
  15233. value: function () {
  15234. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41() {
  15235. var _this16 = this;
  15236. var e;
  15237. return _regenerator.default.wrap(function _callee41$(_context41) {
  15238. while (1) {
  15239. switch (_context41.prev = _context41.next) {
  15240. case 0:
  15241. if (!this.userEncryptKey) {
  15242. _context41.next = 2;
  15243. break;
  15244. }
  15245. return _context41.abrupt("return", this.userEncryptKey);
  15246. case 2:
  15247. if (!(On && On.expireTime)) {
  15248. _context41.next = 6;
  15249. break;
  15250. }
  15251. e = Date.now();
  15252. if (!(On.expireTime - e > 0)) {
  15253. _context41.next = 6;
  15254. break;
  15255. }
  15256. return _context41.abrupt("return", (this.userEncryptKey = On, this.userEncryptKey));
  15257. case 6:
  15258. return _context41.abrupt("return", new Promise(function (e, t) {
  15259. uni.getUserCryptoManager().getLatestUserKey({
  15260. success: function success(t) {
  15261. On = t, _this16.userEncryptKey = t, e(_this16.userEncryptKey);
  15262. },
  15263. fail: function fail(e) {
  15264. t(Tn(_objectSpread(_objectSpread({}, An), {}, {
  15265. cause: e
  15266. })));
  15267. }
  15268. });
  15269. }));
  15270. case 7:
  15271. case "end":
  15272. return _context41.stop();
  15273. }
  15274. }
  15275. }, _callee41, this);
  15276. }));
  15277. function getUserEncryptKey() {
  15278. return _getUserEncryptKey.apply(this, arguments);
  15279. }
  15280. return getUserEncryptKey;
  15281. }()
  15282. }, {
  15283. key: "getWxAppId",
  15284. value: function getWxAppId() {
  15285. return wx.getAccountInfoSync().miniProgram.appId;
  15286. }
  15287. }, {
  15288. key: "platformGetSignOption",
  15289. value: function () {
  15290. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
  15291. var _yield$this$getUserEn, e, t, n;
  15292. return _regenerator.default.wrap(function _callee42$(_context42) {
  15293. while (1) {
  15294. switch (_context42.prev = _context42.next) {
  15295. case 0:
  15296. _context42.next = 2;
  15297. return this.getUserEncryptKey();
  15298. case 2:
  15299. _yield$this$getUserEn = _context42.sent;
  15300. e = _yield$this$getUserEn.encryptKey;
  15301. t = _yield$this$getUserEn.iv;
  15302. n = _yield$this$getUserEn.version;
  15303. return _context42.abrupt("return", {
  15304. verifyClientSign: Sn(JSON.stringify({
  15305. data: JSON.stringify({}),
  15306. appId: this.appId,
  15307. deviceId: this.deviceId,
  15308. wxAppId: this.getWxAppId(),
  15309. simulator: "devtools" === ae().platform,
  15310. timestamp: Date.now()
  15311. }), e, t),
  15312. encryptKeyId: n,
  15313. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  15314. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  15315. });
  15316. case 7:
  15317. case "end":
  15318. return _context42.stop();
  15319. }
  15320. }
  15321. }, _callee42, this);
  15322. }));
  15323. function platformGetSignOption() {
  15324. return _platformGetSignOption.apply(this, arguments);
  15325. }
  15326. return platformGetSignOption;
  15327. }()
  15328. }, {
  15329. key: "platformEncryptData",
  15330. value: function () {
  15331. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43(e) {
  15332. var _yield$this$getUserEn2, t, n, s, r;
  15333. return _regenerator.default.wrap(function _callee43$(_context43) {
  15334. while (1) {
  15335. switch (_context43.prev = _context43.next) {
  15336. case 0:
  15337. _context43.next = 2;
  15338. return this.getUserEncryptKey();
  15339. case 2:
  15340. _yield$this$getUserEn2 = _context43.sent;
  15341. t = _yield$this$getUserEn2.encryptKey;
  15342. n = _yield$this$getUserEn2.iv;
  15343. s = _yield$this$getUserEn2.version;
  15344. r = {
  15345. secretType: this.secretType,
  15346. encryptKeyId: s,
  15347. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  15348. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  15349. };
  15350. return _context43.abrupt("return", this.secretType === Ft ? {
  15351. content: e,
  15352. _uniCloudOptions: r
  15353. } : {
  15354. content: Sn(JSON.stringify({
  15355. data: JSON.stringify(e),
  15356. appId: this.appId,
  15357. deviceId: this.deviceId,
  15358. wxAppId: this.getWxAppId(),
  15359. simulator: "devtools" === ae().platform,
  15360. timestamp: Date.now()
  15361. }), t, n),
  15362. _uniCloudOptions: r
  15363. });
  15364. case 8:
  15365. case "end":
  15366. return _context43.stop();
  15367. }
  15368. }
  15369. }, _callee43, this);
  15370. }));
  15371. function platformEncryptData(_x35) {
  15372. return _platformEncryptData.apply(this, arguments);
  15373. }
  15374. return platformEncryptData;
  15375. }()
  15376. }, {
  15377. key: "platformDecryptResult",
  15378. value: function () {
  15379. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44(e) {
  15380. var t, _yield$this$getUserEn3, n, s;
  15381. return _regenerator.default.wrap(function _callee44$(_context44) {
  15382. while (1) {
  15383. switch (_context44.prev = _context44.next) {
  15384. case 0:
  15385. t = e.content;
  15386. _context44.next = 3;
  15387. return this.getUserEncryptKey();
  15388. case 3:
  15389. _yield$this$getUserEn3 = _context44.sent;
  15390. n = _yield$this$getUserEn3.encryptKey;
  15391. s = _yield$this$getUserEn3.iv;
  15392. return _context44.abrupt("return", JSON.parse(function (e, t, n) {
  15393. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  15394. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  15395. i = In.utils.utf8.toBytes(n),
  15396. o = new In.ModeOfOperation.cbc(r, i),
  15397. a = In.padding.pkcs7.strip(o.decrypt(s));
  15398. return In.utils.utf8.fromBytes(a);
  15399. }(t, n, s)));
  15400. case 7:
  15401. case "end":
  15402. return _context44.stop();
  15403. }
  15404. }
  15405. }, _callee44, this);
  15406. }));
  15407. function platformDecryptResult(_x36) {
  15408. return _platformDecryptResult.apply(this, arguments);
  15409. }
  15410. return platformDecryptResult;
  15411. }()
  15412. }, {
  15413. key: "isClientKeyNotFound",
  15414. value: function isClientKeyNotFound() {
  15415. return !1;
  15416. }
  15417. }]);
  15418. return En;
  15419. }(jt);
  15420. function Ln(e) {
  15421. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  15422. n = {};
  15423. var _loop = function _loop(_s10) {
  15424. var r = t[_s10];
  15425. n[r] = function () {
  15426. for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
  15427. t[_key] = arguments[_key];
  15428. }
  15429. return new Promise(function (n, s) {
  15430. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  15431. var _ref33 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15432. e = _ref33.type,
  15433. t = _ref33.data,
  15434. r = _ref33.errCode,
  15435. i = _ref33.errMsg,
  15436. o = _ref33.errSubject,
  15437. a = _ref33.message;
  15438. "success" === e ? n(t) : s(Tn({
  15439. errCode: r,
  15440. errMsg: Pn[r] || i || a,
  15441. errSubject: o
  15442. }));
  15443. }])) : s(Tn({
  15444. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  15445. }));
  15446. });
  15447. };
  15448. };
  15449. for (var _s10 = 0; _s10 < t.length; _s10++) {
  15450. _loop(_s10);
  15451. }
  15452. return n;
  15453. }
  15454. var Rn = /*#__PURE__*/function (_jt2) {
  15455. (0, _inherits2.default)(Rn, _jt2);
  15456. var _super10 = _createSuper(Rn);
  15457. function Rn(e) {
  15458. var _this17;
  15459. (0, _classCallCheck2.default)(this, Rn);
  15460. _this17 = _super10.call(this, e), _this17.clientType = "app", _this17.appUtils = _objectSpread({}, Ln(uni.requireNativePlugin("plus"))), _this17.systemInfo = Cn || (Cn = ae());
  15461. return _this17;
  15462. }
  15463. (0, _createClass2.default)(Rn, [{
  15464. key: "hasClientKey",
  15465. value: function () {
  15466. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45() {
  15467. return _regenerator.default.wrap(function _callee45$(_context45) {
  15468. while (1) {
  15469. switch (_context45.prev = _context45.next) {
  15470. case 0:
  15471. _context45.next = 2;
  15472. return this.appUtils.hasClientKey({
  15473. provider: this.provider,
  15474. spaceId: this.spaceId
  15475. });
  15476. case 2:
  15477. this._hasClientKey = _context45.sent;
  15478. return _context45.abrupt("return", this._hasClientKey);
  15479. case 4:
  15480. case "end":
  15481. return _context45.stop();
  15482. }
  15483. }
  15484. }, _callee45, this);
  15485. }));
  15486. function hasClientKey() {
  15487. return _hasClientKey.apply(this, arguments);
  15488. }
  15489. return hasClientKey;
  15490. }()
  15491. }, {
  15492. key: "getAppClientKey",
  15493. value: function () {
  15494. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46() {
  15495. var _yield$this$appUtils$, e, t, n, s, r;
  15496. return _regenerator.default.wrap(function _callee46$(_context46) {
  15497. while (1) {
  15498. switch (_context46.prev = _context46.next) {
  15499. case 0:
  15500. _context46.next = 2;
  15501. return this.appUtils.encryptGetClientKeyPayload({
  15502. data: JSON.stringify({})
  15503. });
  15504. case 2:
  15505. _yield$this$appUtils$ = _context46.sent;
  15506. e = _yield$this$appUtils$.data;
  15507. t = _yield$this$appUtils$.key;
  15508. _context46.next = 7;
  15509. return this.uniCloudIns.callFunction({
  15510. name: "DCloud-clientDB",
  15511. data: {
  15512. redirectTo: "encryption",
  15513. action: "getAppClientKey",
  15514. data: e,
  15515. key: t
  15516. }
  15517. });
  15518. case 7:
  15519. _context46.t0 = _context46.sent.result;
  15520. if (_context46.t0) {
  15521. _context46.next = 10;
  15522. break;
  15523. }
  15524. _context46.t0 = {};
  15525. case 10:
  15526. n = _context46.t0;
  15527. if (!(0 !== n.errCode)) {
  15528. _context46.next = 13;
  15529. break;
  15530. }
  15531. throw function (e) {
  15532. return new te({
  15533. subject: e.errSubject || "uni-secure-network",
  15534. code: e.errCode || e.code || bn.code,
  15535. message: e.errMsg || e.message
  15536. });
  15537. }(n);
  15538. case 13:
  15539. s = n.clientKey, r = n.key;
  15540. _context46.next = 16;
  15541. return this.appUtils.setClientKey({
  15542. provider: this.provider,
  15543. spaceId: this.spaceId,
  15544. clientKey: s,
  15545. key: r
  15546. });
  15547. case 16:
  15548. case "end":
  15549. return _context46.stop();
  15550. }
  15551. }
  15552. }, _callee46, this);
  15553. }));
  15554. function getAppClientKey() {
  15555. return _getAppClientKey.apply(this, arguments);
  15556. }
  15557. return getAppClientKey;
  15558. }()
  15559. }, {
  15560. key: "ensureClientKey",
  15561. value: function () {
  15562. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47() {
  15563. var _this18 = this;
  15564. var _ref34,
  15565. _ref34$forceUpdate,
  15566. e,
  15567. _args47 = arguments;
  15568. return _regenerator.default.wrap(function _callee47$(_context47) {
  15569. while (1) {
  15570. switch (_context47.prev = _context47.next) {
  15571. case 0:
  15572. _ref34 = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {}, _ref34$forceUpdate = _ref34.forceUpdate, e = _ref34$forceUpdate === void 0 ? !1 : _ref34$forceUpdate;
  15573. _context47.t1 = !0;
  15574. _context47.next = 4;
  15575. return this.hasClientKey();
  15576. case 4:
  15577. _context47.t2 = _context47.sent;
  15578. _context47.t0 = _context47.t1 !== _context47.t2;
  15579. if (_context47.t0) {
  15580. _context47.next = 8;
  15581. break;
  15582. }
  15583. _context47.t0 = e;
  15584. case 8:
  15585. if (!_context47.t0) {
  15586. _context47.next = 10;
  15587. break;
  15588. }
  15589. return _context47.abrupt("return", (e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus === l || !e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus !== p || (this.scopedGlobalCache.initPromise = this.getAppClientKey(), this.scopedGlobalCache.initPromise.then(function (e) {
  15590. _this18.scopedGlobalCache.initStatus = d;
  15591. }).catch(function (e) {
  15592. throw _this18.scopedGlobalCache.initStatus = p, e;
  15593. }), this.scopedGlobalCache.initStatus = l), this.scopedGlobalCache.initPromise));
  15594. case 10:
  15595. case "end":
  15596. return _context47.stop();
  15597. }
  15598. }
  15599. }, _callee47, this);
  15600. }));
  15601. function ensureClientKey() {
  15602. return _ensureClientKey.apply(this, arguments);
  15603. }
  15604. return ensureClientKey;
  15605. }()
  15606. }, {
  15607. key: "prepare",
  15608. value: function () {
  15609. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48() {
  15610. var _ref35,
  15611. _ref35$forceUpdate,
  15612. e,
  15613. _args48 = arguments;
  15614. return _regenerator.default.wrap(function _callee48$(_context48) {
  15615. while (1) {
  15616. switch (_context48.prev = _context48.next) {
  15617. case 0:
  15618. _ref35 = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {}, _ref35$forceUpdate = _ref35.forceUpdate, e = _ref35$forceUpdate === void 0 ? !1 : _ref35$forceUpdate;
  15619. _context48.next = 3;
  15620. return this.ensureClientKey({
  15621. forceUpdate: e
  15622. });
  15623. case 3:
  15624. case "end":
  15625. return _context48.stop();
  15626. }
  15627. }
  15628. }, _callee48, this);
  15629. }));
  15630. function prepare() {
  15631. return _prepare3.apply(this, arguments);
  15632. }
  15633. return prepare;
  15634. }()
  15635. }, {
  15636. key: "platformGetSignOption",
  15637. value: function () {
  15638. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49() {
  15639. var _yield$this$appUtils$2, e, t;
  15640. return _regenerator.default.wrap(function _callee49$(_context49) {
  15641. while (1) {
  15642. switch (_context49.prev = _context49.next) {
  15643. case 0:
  15644. _context49.next = 2;
  15645. return this.appUtils.encrypt({
  15646. provider: this.provider,
  15647. spaceId: this.spaceId,
  15648. data: JSON.stringify({})
  15649. });
  15650. case 2:
  15651. _yield$this$appUtils$2 = _context49.sent;
  15652. e = _yield$this$appUtils$2.data;
  15653. t = _yield$this$appUtils$2.key;
  15654. return _context49.abrupt("return", {
  15655. verifyClientSign: e,
  15656. encryptKeyId: t
  15657. });
  15658. case 6:
  15659. case "end":
  15660. return _context49.stop();
  15661. }
  15662. }
  15663. }, _callee49, this);
  15664. }));
  15665. function platformGetSignOption() {
  15666. return _platformGetSignOption2.apply(this, arguments);
  15667. }
  15668. return platformGetSignOption;
  15669. }()
  15670. }, {
  15671. key: "platformEncryptData",
  15672. value: function () {
  15673. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50(e) {
  15674. var _yield$this$appUtils$3, t, n, s;
  15675. return _regenerator.default.wrap(function _callee50$(_context50) {
  15676. while (1) {
  15677. switch (_context50.prev = _context50.next) {
  15678. case 0:
  15679. _context50.next = 2;
  15680. return this.appUtils.encrypt({
  15681. provider: this.provider,
  15682. spaceId: this.spaceId,
  15683. data: JSON.stringify(e)
  15684. });
  15685. case 2:
  15686. _yield$this$appUtils$3 = _context50.sent;
  15687. t = _yield$this$appUtils$3.data;
  15688. n = _yield$this$appUtils$3.key;
  15689. s = {
  15690. secretType: this.secretType,
  15691. encryptKeyId: n
  15692. };
  15693. return _context50.abrupt("return", this.secretType === Ft ? {
  15694. content: e,
  15695. _uniCloudOptions: s
  15696. } : {
  15697. content: t,
  15698. _uniCloudOptions: s
  15699. });
  15700. case 7:
  15701. case "end":
  15702. return _context50.stop();
  15703. }
  15704. }
  15705. }, _callee50, this);
  15706. }));
  15707. function platformEncryptData(_x37) {
  15708. return _platformEncryptData2.apply(this, arguments);
  15709. }
  15710. return platformEncryptData;
  15711. }()
  15712. }, {
  15713. key: "platformDecryptResult",
  15714. value: function () {
  15715. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51(e) {
  15716. var t, _e$_uniCloudOptions, n, s, r;
  15717. return _regenerator.default.wrap(function _callee51$(_context51) {
  15718. while (1) {
  15719. switch (_context51.prev = _context51.next) {
  15720. case 0:
  15721. t = e.content;
  15722. _e$_uniCloudOptions = e._uniCloudOptions;
  15723. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  15724. s = n.encryptKeyId;
  15725. _context51.next = 6;
  15726. return this.appUtils.decrypt({
  15727. provider: this.provider,
  15728. spaceId: this.spaceId,
  15729. data: t,
  15730. key: s
  15731. });
  15732. case 6:
  15733. r = _context51.sent;
  15734. return _context51.abrupt("return", JSON.parse(r.data));
  15735. case 8:
  15736. case "end":
  15737. return _context51.stop();
  15738. }
  15739. }
  15740. }, _callee51, this);
  15741. }));
  15742. function platformDecryptResult(_x38) {
  15743. return _platformDecryptResult2.apply(this, arguments);
  15744. }
  15745. return platformDecryptResult;
  15746. }()
  15747. }, {
  15748. key: "isClientKeyNotFound",
  15749. value: function isClientKeyNotFound() {
  15750. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15751. var t = e.result || {};
  15752. return 70009 === t.errCode && "uni-secure-network" === t.errSubject;
  15753. }
  15754. }]);
  15755. return Rn;
  15756. }(jt);
  15757. function Un() {
  15758. var _ref36 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15759. e = _ref36.secretType;
  15760. return e === qt || e === Ft || e === Kt;
  15761. }
  15762. function Nn() {
  15763. var _ref37 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15764. e = _ref37.name,
  15765. _ref37$data = _ref37.data,
  15766. t = _ref37$data === void 0 ? {} : _ref37$data;
  15767. return "app" === P && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  15768. }
  15769. function Dn() {
  15770. var _ref38 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15771. e = _ref38.provider,
  15772. t = _ref38.spaceId,
  15773. n = _ref38.functionName;
  15774. var _ae = ae(),
  15775. s = _ae.appId,
  15776. r = _ae.uniPlatform,
  15777. i = _ae.osName;
  15778. var o = r;
  15779. "app" === r && (o = i);
  15780. var a = function () {
  15781. var _ref39 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15782. e = _ref39.provider,
  15783. t = _ref39.spaceId;
  15784. var n = A;
  15785. if (!n) return {};
  15786. e = function (e) {
  15787. return "tencent" === e ? "tcb" : e;
  15788. }(e);
  15789. var s = n.find(function (n) {
  15790. return n.provider === e && n.spaceId === t;
  15791. });
  15792. return s && s.config;
  15793. }({
  15794. provider: e,
  15795. spaceId: t
  15796. });
  15797. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  15798. var c = a.accessControl.function || {},
  15799. u = Object.keys(c);
  15800. if (0 === u.length) return !0;
  15801. var h = function (e, t) {
  15802. var n, s, r;
  15803. for (var _i2 = 0; _i2 < e.length; _i2++) {
  15804. var _o2 = e[_i2];
  15805. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  15806. return e.trim();
  15807. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  15808. }
  15809. return n || s || r;
  15810. }(u, n);
  15811. if (!h) return !1;
  15812. if ((c[h] || []).find(function () {
  15813. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15814. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  15815. })) return !0;
  15816. throw console.error("\u6B64\u5E94\u7528[appId: ".concat(s, ", platform: ").concat(o, "]\u4E0D\u5728\u4E91\u7AEF\u914D\u7F6E\u7684\u5141\u8BB8\u8BBF\u95EE\u7684\u5E94\u7528\u5217\u8868\u5185\uFF0C\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")), Tn(kn);
  15817. }
  15818. function Mn(_ref40) {
  15819. var e = _ref40.functionName,
  15820. t = _ref40.result,
  15821. n = _ref40.logPvd;
  15822. if (S && this.__dev__.debugLog && t && t.requestId) {
  15823. var _s11 = JSON.stringify({
  15824. spaceId: this.config.spaceId,
  15825. functionName: e,
  15826. requestId: t.requestId
  15827. });
  15828. console.log("[".concat(n, "-request]").concat(_s11, "[/").concat(n, "-request]"));
  15829. }
  15830. }
  15831. function qn(e) {
  15832. var t = e.callFunction,
  15833. n = function n(_n7) {
  15834. var _this19 = this;
  15835. var s = _n7.name;
  15836. _n7.data = Et.call(e, {
  15837. data: _n7.data
  15838. });
  15839. var r = {
  15840. aliyun: "aliyun",
  15841. tencent: "tcb",
  15842. tcb: "tcb",
  15843. alipay: "alipay"
  15844. }[this.config.provider],
  15845. i = Un(_n7),
  15846. o = Nn(_n7),
  15847. a = i || o;
  15848. return t.call(this, _n7).then(function (e) {
  15849. return e.errCode = 0, !a && Mn.call(_this19, {
  15850. functionName: s,
  15851. result: e,
  15852. logPvd: r
  15853. }), Promise.resolve(e);
  15854. }, function (e) {
  15855. return !a && Mn.call(_this19, {
  15856. functionName: s,
  15857. result: e,
  15858. logPvd: r
  15859. }), e && e.message && (e.message = function () {
  15860. var _ref41 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15861. _ref41$message = _ref41.message,
  15862. e = _ref41$message === void 0 ? "" : _ref41$message,
  15863. _ref41$extraInfo = _ref41.extraInfo,
  15864. t = _ref41$extraInfo === void 0 ? {} : _ref41$extraInfo,
  15865. _ref41$formatter = _ref41.formatter,
  15866. n = _ref41$formatter === void 0 ? [] : _ref41$formatter;
  15867. for (var _s12 = 0; _s12 < n.length; _s12++) {
  15868. var _n$_s = n[_s12],
  15869. _r4 = _n$_s.rule,
  15870. _i3 = _n$_s.content,
  15871. _o3 = _n$_s.mode,
  15872. _a = e.match(_r4);
  15873. if (!_a) continue;
  15874. var _c = _i3;
  15875. for (var _e19 = 1; _e19 < _a.length; _e19++) {
  15876. _c = Dt(_c, "{$".concat(_e19, "}"), _a[_e19]);
  15877. }
  15878. for (var _e20 in t) {
  15879. _c = Dt(_c, "{".concat(_e20, "}"), t[_e20]);
  15880. }
  15881. return "replace" === _o3 ? _c : e + _c;
  15882. }
  15883. return e;
  15884. }({
  15885. message: "[".concat(_n7.name, "]: ").concat(e.message),
  15886. formatter: Rt,
  15887. extraInfo: {
  15888. functionName: s
  15889. }
  15890. })), Promise.reject(e);
  15891. });
  15892. };
  15893. e.callFunction = function (t) {
  15894. var _e$config = e.config,
  15895. s = _e$config.provider,
  15896. r = _e$config.spaceId,
  15897. i = t.name;
  15898. var o, a;
  15899. if (t.data = t.data || {}, S && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && C ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = Lt), o = Lt) : o = n, o = o.bind(e), Nn(t)) a = n.call(e, t);else if (function (_ref42) {
  15900. var e = _ref42.name,
  15901. _ref42$data = _ref42.data,
  15902. t = _ref42$data === void 0 ? {} : _ref42$data;
  15903. return "mp-weixin" === P && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  15904. }(t)) a = o.call(e, t);else if (Un(t)) {
  15905. a = new xn({
  15906. secretType: t.secretType,
  15907. uniCloudIns: e
  15908. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  15909. } else if (Dn({
  15910. provider: s,
  15911. spaceId: r,
  15912. functionName: i
  15913. })) {
  15914. a = new xn({
  15915. secretType: t.secretType,
  15916. uniCloudIns: e
  15917. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  15918. } else a = o(t);
  15919. return Object.defineProperty(a, "result", {
  15920. get: function get() {
  15921. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  15922. }
  15923. }), a;
  15924. };
  15925. }
  15926. xn = "mp-weixin" !== P && "app" !== P ? /*#__PURE__*/function () {
  15927. function _class2() {
  15928. (0, _classCallCheck2.default)(this, _class2);
  15929. throw Tn({
  15930. message: "Platform ".concat(P, " is not supported by secure network")
  15931. });
  15932. }
  15933. return (0, _createClass2.default)(_class2);
  15934. }() : k ? "mp-weixin" === P ? En : Rn : /*#__PURE__*/function () {
  15935. function _class3() {
  15936. (0, _classCallCheck2.default)(this, _class3);
  15937. throw Tn({
  15938. message: "Platform ".concat(P, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  15939. });
  15940. }
  15941. return (0, _createClass2.default)(_class3);
  15942. }();
  15943. var Fn = Symbol("CLIENT_DB_INTERNAL");
  15944. function Kn(e, t) {
  15945. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Fn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  15946. get: function get(e, n, s) {
  15947. if ("_uniClient" === n) return null;
  15948. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  15949. if (n in e || "string" != typeof n) {
  15950. var _t12 = e[n];
  15951. return "function" == typeof _t12 ? _t12.bind(e) : _t12;
  15952. }
  15953. return t.get(e, n, s);
  15954. }
  15955. });
  15956. }
  15957. function jn(e) {
  15958. return {
  15959. on: function on(t, n) {
  15960. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  15961. },
  15962. off: function off(t, n) {
  15963. e[t] = e[t] || [];
  15964. var s = e[t].indexOf(n);
  15965. -1 !== s && e[t].splice(s, 1);
  15966. }
  15967. };
  15968. }
  15969. var $n = ["db.Geo", "db.command", "command.aggregate"];
  15970. function Bn(e, t) {
  15971. return $n.indexOf("".concat(e, ".").concat(t)) > -1;
  15972. }
  15973. function Wn(e) {
  15974. switch (f(e)) {
  15975. case "array":
  15976. return e.map(function (e) {
  15977. return Wn(e);
  15978. });
  15979. case "object":
  15980. return e._internalType === Fn || Object.keys(e).forEach(function (t) {
  15981. e[t] = Wn(e[t]);
  15982. }), e;
  15983. case "regexp":
  15984. return {
  15985. $regexp: {
  15986. source: e.source,
  15987. flags: e.flags
  15988. }
  15989. };
  15990. case "date":
  15991. return {
  15992. $date: e.toISOString()
  15993. };
  15994. default:
  15995. return e;
  15996. }
  15997. }
  15998. function Hn(e) {
  15999. return e && e.content && e.content.$method;
  16000. }
  16001. var zn = /*#__PURE__*/function () {
  16002. function zn(e, t, n) {
  16003. (0, _classCallCheck2.default)(this, zn);
  16004. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  16005. }
  16006. (0, _createClass2.default)(zn, [{
  16007. key: "toJSON",
  16008. value: function toJSON() {
  16009. var e = this;
  16010. var t = [e.content];
  16011. for (; e.prevStage;) {
  16012. e = e.prevStage, t.push(e.content);
  16013. }
  16014. return {
  16015. $db: t.reverse().map(function (e) {
  16016. return {
  16017. $method: e.$method,
  16018. $param: Wn(e.$param)
  16019. };
  16020. })
  16021. };
  16022. }
  16023. }, {
  16024. key: "toString",
  16025. value: function toString() {
  16026. return JSON.stringify(this.toJSON());
  16027. }
  16028. }, {
  16029. key: "getAction",
  16030. value: function getAction() {
  16031. var e = this.toJSON().$db.find(function (e) {
  16032. return "action" === e.$method;
  16033. });
  16034. return e && e.$param && e.$param[0];
  16035. }
  16036. }, {
  16037. key: "getCommand",
  16038. value: function getCommand() {
  16039. return {
  16040. $db: this.toJSON().$db.filter(function (e) {
  16041. return "action" !== e.$method;
  16042. })
  16043. };
  16044. }
  16045. }, {
  16046. key: "isAggregate",
  16047. get: function get() {
  16048. var e = this;
  16049. for (; e;) {
  16050. var t = Hn(e),
  16051. _n8 = Hn(e.prevStage);
  16052. if ("aggregate" === t && "collection" === _n8 || "pipeline" === t) return !0;
  16053. e = e.prevStage;
  16054. }
  16055. return !1;
  16056. }
  16057. }, {
  16058. key: "isCommand",
  16059. get: function get() {
  16060. var e = this;
  16061. for (; e;) {
  16062. if ("command" === Hn(e)) return !0;
  16063. e = e.prevStage;
  16064. }
  16065. return !1;
  16066. }
  16067. }, {
  16068. key: "isAggregateCommand",
  16069. get: function get() {
  16070. var e = this;
  16071. for (; e;) {
  16072. var t = Hn(e),
  16073. _n9 = Hn(e.prevStage);
  16074. if ("aggregate" === t && "command" === _n9) return !0;
  16075. e = e.prevStage;
  16076. }
  16077. return !1;
  16078. }
  16079. }, {
  16080. key: "getNextStageFn",
  16081. value: function getNextStageFn(e) {
  16082. var t = this;
  16083. return function () {
  16084. return Jn({
  16085. $method: e,
  16086. $param: Wn(Array.from(arguments))
  16087. }, t, t._database);
  16088. };
  16089. }
  16090. }, {
  16091. key: "count",
  16092. get: function get() {
  16093. return this.isAggregate ? this.getNextStageFn("count") : function () {
  16094. return this._send("count", Array.from(arguments));
  16095. };
  16096. }
  16097. }, {
  16098. key: "remove",
  16099. get: function get() {
  16100. return this.isCommand ? this.getNextStageFn("remove") : function () {
  16101. return this._send("remove", Array.from(arguments));
  16102. };
  16103. }
  16104. }, {
  16105. key: "get",
  16106. value: function get() {
  16107. return this._send("get", Array.from(arguments));
  16108. }
  16109. }, {
  16110. key: "add",
  16111. get: function get() {
  16112. return this.isCommand ? this.getNextStageFn("add") : function () {
  16113. return this._send("add", Array.from(arguments));
  16114. };
  16115. }
  16116. }, {
  16117. key: "update",
  16118. value: function update() {
  16119. return this._send("update", Array.from(arguments));
  16120. }
  16121. }, {
  16122. key: "end",
  16123. value: function end() {
  16124. return this._send("end", Array.from(arguments));
  16125. }
  16126. }, {
  16127. key: "set",
  16128. get: function get() {
  16129. return this.isCommand ? this.getNextStageFn("set") : function () {
  16130. throw new Error("JQL禁止使用set方法");
  16131. };
  16132. }
  16133. }, {
  16134. key: "_send",
  16135. value: function _send(e, t) {
  16136. var n = this.getAction(),
  16137. s = this.getCommand();
  16138. if (s.$db.push({
  16139. $method: e,
  16140. $param: Wn(t)
  16141. }), S) {
  16142. var _e21 = s.$db.find(function (e) {
  16143. return "collection" === e.$method;
  16144. }),
  16145. _t13 = _e21 && _e21.$param;
  16146. _t13 && 1 === _t13.length && "string" == typeof _e21.$param[0] && _e21.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  16147. }
  16148. return this._database._callCloudFunction({
  16149. action: n,
  16150. command: s
  16151. });
  16152. }
  16153. }]);
  16154. return zn;
  16155. }();
  16156. function Jn(e, t, n) {
  16157. return Kn(new zn(e, t, n), {
  16158. get: function get(e, t) {
  16159. var s = "db";
  16160. return e && e.content && (s = e.content.$method), Bn(s, t) ? Jn({
  16161. $method: t
  16162. }, e, n) : function () {
  16163. return Jn({
  16164. $method: t,
  16165. $param: Wn(Array.from(arguments))
  16166. }, e, n);
  16167. };
  16168. }
  16169. });
  16170. }
  16171. function Gn(_ref43) {
  16172. var e = _ref43.path,
  16173. t = _ref43.method;
  16174. return /*#__PURE__*/function () {
  16175. function _class4() {
  16176. (0, _classCallCheck2.default)(this, _class4);
  16177. this.param = Array.from(arguments);
  16178. }
  16179. (0, _createClass2.default)(_class4, [{
  16180. key: "toJSON",
  16181. value: function toJSON() {
  16182. return {
  16183. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  16184. return {
  16185. $method: e
  16186. };
  16187. })), [{
  16188. $method: t,
  16189. $param: this.param
  16190. }])
  16191. };
  16192. }
  16193. }, {
  16194. key: "toString",
  16195. value: function toString() {
  16196. return JSON.stringify(this.toJSON());
  16197. }
  16198. }]);
  16199. return _class4;
  16200. }();
  16201. }
  16202. function Vn(e) {
  16203. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16204. return Kn(new e(t), {
  16205. get: function get(e, t) {
  16206. return Bn("db", t) ? Jn({
  16207. $method: t
  16208. }, null, e) : function () {
  16209. return Jn({
  16210. $method: t,
  16211. $param: Wn(Array.from(arguments))
  16212. }, null, e);
  16213. };
  16214. }
  16215. });
  16216. }
  16217. var Yn = /*#__PURE__*/function (_ref44) {
  16218. (0, _inherits2.default)(Yn, _ref44);
  16219. var _super11 = _createSuper(Yn);
  16220. function Yn() {
  16221. (0, _classCallCheck2.default)(this, Yn);
  16222. return _super11.apply(this, arguments);
  16223. }
  16224. (0, _createClass2.default)(Yn, [{
  16225. key: "_parseResult",
  16226. value: function _parseResult(e) {
  16227. return this._isJQL ? e.result : e;
  16228. }
  16229. }, {
  16230. key: "_callCloudFunction",
  16231. value: function _callCloudFunction(_ref45) {
  16232. var _this20 = this;
  16233. var e = _ref45.action,
  16234. t = _ref45.command,
  16235. n = _ref45.multiCommand,
  16236. s = _ref45.queryList;
  16237. function r(e, t) {
  16238. if (n && s) for (var _n10 = 0; _n10 < s.length; _n10++) {
  16239. var _r5 = s[_n10];
  16240. _r5.udb && "function" == typeof _r5.udb.setResult && (t ? _r5.udb.setResult(t) : _r5.udb.setResult(e.result.dataList[_n10]));
  16241. }
  16242. }
  16243. var i = this,
  16244. o = this._isJQL ? "databaseForJQL" : "database";
  16245. function a(e) {
  16246. return i._callback("error", [e]), M(q(o, "fail"), e).then(function () {
  16247. return M(q(o, "complete"), e);
  16248. }).then(function () {
  16249. return r(null, e), Y(j, {
  16250. type: W,
  16251. content: e
  16252. }), Promise.reject(e);
  16253. });
  16254. }
  16255. var c = M(q(o, "invoke")),
  16256. u = this._uniClient;
  16257. return c.then(function () {
  16258. return u.callFunction({
  16259. name: "DCloud-clientDB",
  16260. type: h,
  16261. data: {
  16262. action: e,
  16263. command: t,
  16264. multiCommand: n
  16265. }
  16266. });
  16267. }).then(function (e) {
  16268. var _e$result = e.result,
  16269. t = _e$result.code,
  16270. n = _e$result.message,
  16271. s = _e$result.token,
  16272. c = _e$result.tokenExpired,
  16273. _e$result$systemInfo = _e$result.systemInfo,
  16274. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  16275. if (u) for (var _e22 = 0; _e22 < u.length; _e22++) {
  16276. var _u$_e = u[_e22],
  16277. _t14 = _u$_e.level,
  16278. _n11 = _u$_e.message,
  16279. _s13 = _u$_e.detail,
  16280. _r6 = console["app" === P && "warn" === _t14 ? "error" : _t14] || console.log;
  16281. var _i4 = "[System Info]" + _n11;
  16282. _s13 && (_i4 = "".concat(_i4, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s13)), _r6(_i4);
  16283. }
  16284. if (t) {
  16285. return a(new te({
  16286. code: t,
  16287. message: n,
  16288. requestId: e.requestId
  16289. }));
  16290. }
  16291. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (re({
  16292. token: s,
  16293. tokenExpired: c
  16294. }), _this20._callbackAuth("refreshToken", [{
  16295. token: s,
  16296. tokenExpired: c
  16297. }]), _this20._callback("refreshToken", [{
  16298. token: s,
  16299. tokenExpired: c
  16300. }]), Y(B, {
  16301. token: s,
  16302. tokenExpired: c
  16303. }));
  16304. var h = [{
  16305. prop: "affectedDocs",
  16306. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  16307. }, {
  16308. prop: "code",
  16309. tips: "code不再推荐使用,请使用errCode替代"
  16310. }, {
  16311. prop: "message",
  16312. tips: "message不再推荐使用,请使用errMsg替代"
  16313. }];
  16314. var _loop2 = function _loop2(_t15) {
  16315. var _h$_t = h[_t15],
  16316. n = _h$_t.prop,
  16317. s = _h$_t.tips;
  16318. if (n in e.result) {
  16319. var _t16 = e.result[n];
  16320. Object.defineProperty(e.result, n, {
  16321. get: function get() {
  16322. return console.warn(s), _t16;
  16323. }
  16324. });
  16325. }
  16326. };
  16327. for (var _t15 = 0; _t15 < h.length; _t15++) {
  16328. _loop2(_t15);
  16329. }
  16330. return function (e) {
  16331. return M(q(o, "success"), e).then(function () {
  16332. return M(q(o, "complete"), e);
  16333. }).then(function () {
  16334. r(e, null);
  16335. var t = i._parseResult(e);
  16336. return Y(j, {
  16337. type: W,
  16338. content: t
  16339. }), Promise.resolve(t);
  16340. });
  16341. }(e);
  16342. }, function (e) {
  16343. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  16344. return a(new te({
  16345. code: e.code || "SYSTEM_ERROR",
  16346. message: e.message,
  16347. requestId: e.requestId
  16348. }));
  16349. });
  16350. }
  16351. }]);
  16352. return Yn;
  16353. }( /*#__PURE__*/function () {
  16354. function _class5() {
  16355. var _ref46 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16356. _ref46$uniClient = _ref46.uniClient,
  16357. e = _ref46$uniClient === void 0 ? {} : _ref46$uniClient,
  16358. _ref46$isJQL = _ref46.isJQL,
  16359. t = _ref46$isJQL === void 0 ? !1 : _ref46$isJQL;
  16360. (0, _classCallCheck2.default)(this, _class5);
  16361. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e._isDefault && (this._dbCallBacks = L("_globalUniCloudDatabaseCallback")), t || (this.auth = jn(this._authCallBacks)), this._isJQL = t, Object.assign(this, jn(this._dbCallBacks)), this.env = Kn({}, {
  16362. get: function get(e, t) {
  16363. return {
  16364. $env: t
  16365. };
  16366. }
  16367. }), this.Geo = Kn({}, {
  16368. get: function get(e, t) {
  16369. return Gn({
  16370. path: ["Geo"],
  16371. method: t
  16372. });
  16373. }
  16374. }), this.serverDate = Gn({
  16375. path: [],
  16376. method: "serverDate"
  16377. }), this.RegExp = Gn({
  16378. path: [],
  16379. method: "RegExp"
  16380. });
  16381. }
  16382. (0, _createClass2.default)(_class5, [{
  16383. key: "getCloudEnv",
  16384. value: function getCloudEnv(e) {
  16385. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  16386. return {
  16387. $env: e.replace("$cloudEnv_", "")
  16388. };
  16389. }
  16390. }, {
  16391. key: "_callback",
  16392. value: function _callback(e, t) {
  16393. var n = this._dbCallBacks;
  16394. n[e] && n[e].forEach(function (e) {
  16395. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  16396. });
  16397. }
  16398. }, {
  16399. key: "_callbackAuth",
  16400. value: function _callbackAuth(e, t) {
  16401. var n = this._authCallBacks;
  16402. n[e] && n[e].forEach(function (e) {
  16403. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  16404. });
  16405. }
  16406. }, {
  16407. key: "multiSend",
  16408. value: function multiSend() {
  16409. var e = Array.from(arguments),
  16410. t = e.map(function (e) {
  16411. var t = e.getAction(),
  16412. n = e.getCommand();
  16413. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  16414. return {
  16415. action: t,
  16416. command: n
  16417. };
  16418. });
  16419. return this._callCloudFunction({
  16420. multiCommand: t,
  16421. queryList: e
  16422. });
  16423. }
  16424. }]);
  16425. return _class5;
  16426. }());
  16427. var Qn = "token无效,跳转登录页面",
  16428. Xn = "token过期,跳转登录页面",
  16429. Zn = {
  16430. TOKEN_INVALID_TOKEN_EXPIRED: Xn,
  16431. TOKEN_INVALID_INVALID_CLIENTID: Qn,
  16432. TOKEN_INVALID: Qn,
  16433. TOKEN_INVALID_WRONG_TOKEN: Qn,
  16434. TOKEN_INVALID_ANONYMOUS_USER: Qn
  16435. },
  16436. es = {
  16437. "uni-id-token-expired": Xn,
  16438. "uni-id-check-token-failed": Qn,
  16439. "uni-id-token-not-exist": Qn,
  16440. "uni-id-check-device-feature-failed": Qn
  16441. };
  16442. function ts(e, t) {
  16443. var n = "";
  16444. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  16445. }
  16446. function ns() {
  16447. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16448. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  16449. var n = [],
  16450. s = [];
  16451. return e.forEach(function (e) {
  16452. !0 === e.needLogin ? n.push(ts(t, e.path)) : !1 === e.needLogin && s.push(ts(t, e.path));
  16453. }), {
  16454. needLoginPage: n,
  16455. notNeedLoginPage: s
  16456. };
  16457. }
  16458. function ss(e) {
  16459. return e.split("?")[0].replace(/^\//, "");
  16460. }
  16461. function rs() {
  16462. return function (e) {
  16463. var t = e && e.$page && e.$page.fullPath || "";
  16464. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  16465. }(function () {
  16466. var e = getCurrentPages();
  16467. return e[e.length - 1];
  16468. }());
  16469. }
  16470. function is() {
  16471. return ss(rs());
  16472. }
  16473. function os() {
  16474. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16475. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16476. if (!e) return !1;
  16477. if (!(t && t.list && t.list.length)) return !1;
  16478. var n = t.list,
  16479. s = ss(e);
  16480. return n.some(function (e) {
  16481. return e.pagePath === s;
  16482. });
  16483. }
  16484. var as = !!_pages.default.uniIdRouter;
  16485. var _ref47 = function () {
  16486. var _ref28 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  16487. _ref28$pages = _ref28.pages,
  16488. t = _ref28$pages === void 0 ? [] : _ref28$pages,
  16489. _ref28$subPackages = _ref28.subPackages,
  16490. n = _ref28$subPackages === void 0 ? [] : _ref28$subPackages,
  16491. _ref28$uniIdRouter = _ref28.uniIdRouter,
  16492. s = _ref28$uniIdRouter === void 0 ? {} : _ref28$uniIdRouter,
  16493. _ref28$tabBar = _ref28.tabBar,
  16494. r = _ref28$tabBar === void 0 ? {} : _ref28$tabBar;
  16495. var i = s.loginPage,
  16496. _s$needLogin = s.needLogin,
  16497. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  16498. _s$resToLogin = s.resToLogin,
  16499. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  16500. _ns = ns(t),
  16501. c = _ns.needLoginPage,
  16502. u = _ns.notNeedLoginPage,
  16503. _ref30 = function () {
  16504. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16505. var t = [],
  16506. n = [];
  16507. return e.forEach(function (e) {
  16508. var s = e.root,
  16509. _e$pages = e.pages,
  16510. r = _e$pages === void 0 ? [] : _e$pages,
  16511. _ns2 = ns(r, s),
  16512. i = _ns2.needLoginPage,
  16513. o = _ns2.notNeedLoginPage;
  16514. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  16515. }), {
  16516. needLoginPage: t,
  16517. notNeedLoginPage: n
  16518. };
  16519. }(n),
  16520. h = _ref30.needLoginPage,
  16521. l = _ref30.notNeedLoginPage;
  16522. return {
  16523. loginPage: i,
  16524. routerNeedLogin: o,
  16525. resToLogin: a,
  16526. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(h)),
  16527. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(l)),
  16528. loginPageInTabBar: os(i, r)
  16529. };
  16530. }(),
  16531. cs = _ref47.loginPage,
  16532. us = _ref47.routerNeedLogin,
  16533. hs = _ref47.resToLogin,
  16534. ls = _ref47.needLoginPage,
  16535. ds = _ref47.notNeedLoginPage,
  16536. ps = _ref47.loginPageInTabBar;
  16537. if (ls.indexOf(cs) > -1) throw new Error("Login page [".concat(cs, "] should not be \"needLogin\", please check your pages.json"));
  16538. function fs(e) {
  16539. var t = is();
  16540. if ("/" === e.charAt(0)) return e;
  16541. var _e$split = e.split("?"),
  16542. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  16543. n = _e$split2[0],
  16544. s = _e$split2[1],
  16545. r = n.replace(/^\//, "").split("/"),
  16546. i = t.split("/");
  16547. i.pop();
  16548. for (var _e23 = 0; _e23 < r.length; _e23++) {
  16549. var _t17 = r[_e23];
  16550. ".." === _t17 ? i.pop() : "." !== _t17 && i.push(_t17);
  16551. }
  16552. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  16553. }
  16554. function gs(e) {
  16555. var t = ss(fs(e));
  16556. return !(ds.indexOf(t) > -1) && (ls.indexOf(t) > -1 || us.some(function (t) {
  16557. return function (e, t) {
  16558. return new RegExp(t).test(e);
  16559. }(e, t);
  16560. }));
  16561. }
  16562. function ms(_ref48) {
  16563. var e = _ref48.redirect;
  16564. var t = ss(e),
  16565. n = ss(cs);
  16566. return is() !== n && t !== n;
  16567. }
  16568. function ys() {
  16569. var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16570. e = _ref49.api,
  16571. t = _ref49.redirect;
  16572. if (!t || !ms({
  16573. redirect: t
  16574. })) return;
  16575. var n = function (e, t) {
  16576. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  16577. }(cs, t);
  16578. ps ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  16579. var s = {
  16580. navigateTo: uni.navigateTo,
  16581. redirectTo: uni.redirectTo,
  16582. switchTab: uni.switchTab,
  16583. reLaunch: uni.reLaunch
  16584. };
  16585. setTimeout(function () {
  16586. s[e]({
  16587. url: n
  16588. });
  16589. });
  16590. }
  16591. function _s() {
  16592. var _ref50 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16593. e = _ref50.url;
  16594. var t = {
  16595. abortLoginPageJump: !1,
  16596. autoToLoginPage: !1
  16597. },
  16598. n = function () {
  16599. var _se3 = se(),
  16600. e = _se3.token,
  16601. t = _se3.tokenExpired;
  16602. var n;
  16603. if (e) {
  16604. if (t < Date.now()) {
  16605. var _e24 = "uni-id-token-expired";
  16606. n = {
  16607. errCode: _e24,
  16608. errMsg: es[_e24]
  16609. };
  16610. }
  16611. } else {
  16612. var _e25 = "uni-id-check-token-failed";
  16613. n = {
  16614. errCode: _e25,
  16615. errMsg: es[_e25]
  16616. };
  16617. }
  16618. return n;
  16619. }();
  16620. if (gs(e) && n) {
  16621. n.uniIdRedirectUrl = e;
  16622. if (J($).length > 0) return setTimeout(function () {
  16623. Y($, n);
  16624. }, 0), t.abortLoginPageJump = !0, t;
  16625. t.autoToLoginPage = !0;
  16626. }
  16627. return t;
  16628. }
  16629. function ws() {
  16630. !function () {
  16631. var e = rs(),
  16632. _s14 = _s({
  16633. url: e
  16634. }),
  16635. t = _s14.abortLoginPageJump,
  16636. n = _s14.autoToLoginPage;
  16637. t || n && ys({
  16638. api: "redirectTo",
  16639. redirect: e
  16640. });
  16641. }();
  16642. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  16643. var _loop3 = function _loop3(_t18) {
  16644. var n = e[_t18];
  16645. uni.addInterceptor(n, {
  16646. invoke: function invoke(e) {
  16647. var _s15 = _s({
  16648. url: e.url
  16649. }),
  16650. t = _s15.abortLoginPageJump,
  16651. s = _s15.autoToLoginPage;
  16652. return t ? e : s ? (ys({
  16653. api: n,
  16654. redirect: fs(e.url)
  16655. }), !1) : e;
  16656. }
  16657. });
  16658. };
  16659. for (var _t18 = 0; _t18 < e.length; _t18++) {
  16660. _loop3(_t18);
  16661. }
  16662. }
  16663. function vs() {
  16664. this.onResponse(function (e) {
  16665. var t = e.type,
  16666. n = e.content;
  16667. var s = !1;
  16668. switch (t) {
  16669. case "cloudobject":
  16670. s = function (e) {
  16671. if ("object" != (0, _typeof2.default)(e)) return !1;
  16672. var _ref51 = e || {},
  16673. t = _ref51.errCode;
  16674. return t in es;
  16675. }(n);
  16676. break;
  16677. case "clientdb":
  16678. s = function (e) {
  16679. if ("object" != (0, _typeof2.default)(e)) return !1;
  16680. var _ref52 = e || {},
  16681. t = _ref52.errCode;
  16682. return t in Zn;
  16683. }(n);
  16684. }
  16685. s && function () {
  16686. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16687. var t = J($);
  16688. Z().then(function () {
  16689. var n = rs();
  16690. if (n && ms({
  16691. redirect: n
  16692. })) return t.length > 0 ? Y($, Object.assign({
  16693. uniIdRedirectUrl: n
  16694. }, e)) : void (cs && ys({
  16695. api: "navigateTo",
  16696. redirect: n
  16697. }));
  16698. });
  16699. }(n);
  16700. });
  16701. }
  16702. function Is(e) {
  16703. !function (e) {
  16704. e.onResponse = function (e) {
  16705. G(j, e);
  16706. }, e.offResponse = function (e) {
  16707. V(j, e);
  16708. };
  16709. }(e), function (e) {
  16710. e.onNeedLogin = function (e) {
  16711. G($, e);
  16712. }, e.offNeedLogin = function (e) {
  16713. V($, e);
  16714. }, as && (L("_globalUniCloudStatus").needLoginInit || (L("_globalUniCloudStatus").needLoginInit = !0, Z().then(function () {
  16715. ws.call(e);
  16716. }), hs && vs.call(e)));
  16717. }(e), function (e) {
  16718. e.onRefreshToken = function (e) {
  16719. G(B, e);
  16720. }, e.offRefreshToken = function (e) {
  16721. V(B, e);
  16722. };
  16723. }(e);
  16724. }
  16725. var Ss;
  16726. var bs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  16727. ks = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  16728. function As() {
  16729. var e = se().token || "",
  16730. t = e.split(".");
  16731. if (!e || 3 !== t.length) return {
  16732. uid: null,
  16733. role: [],
  16734. permission: [],
  16735. tokenExpired: 0
  16736. };
  16737. var n;
  16738. try {
  16739. n = JSON.parse((s = t[1], decodeURIComponent(Ss(s).split("").map(function (e) {
  16740. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  16741. }).join(""))));
  16742. } catch (e) {
  16743. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  16744. }
  16745. var s;
  16746. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  16747. }
  16748. Ss = "function" != typeof atob ? function (e) {
  16749. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !ks.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  16750. var t;
  16751. e += "==".slice(2 - (3 & e.length));
  16752. for (var n, s, r = "", i = 0; i < e.length;) {
  16753. t = bs.indexOf(e.charAt(i++)) << 18 | bs.indexOf(e.charAt(i++)) << 12 | (n = bs.indexOf(e.charAt(i++))) << 6 | (s = bs.indexOf(e.charAt(i++))), r += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === s ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);
  16754. }
  16755. return r;
  16756. } : atob;
  16757. var Ps = n(function (e, t) {
  16758. Object.defineProperty(t, "__esModule", {
  16759. value: !0
  16760. });
  16761. var n = "chooseAndUploadFile:ok",
  16762. s = "chooseAndUploadFile:fail";
  16763. function r(e, t) {
  16764. return e.tempFiles.forEach(function (e, n) {
  16765. e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));
  16766. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  16767. return e.path;
  16768. })), e;
  16769. }
  16770. function i(e, t, _ref53) {
  16771. var s = _ref53.onChooseFile,
  16772. r = _ref53.onUploadProgress;
  16773. return t.then(function (e) {
  16774. if (s) {
  16775. var _t19 = s(e);
  16776. if (void 0 !== _t19) return Promise.resolve(_t19).then(function (t) {
  16777. return void 0 === t ? e : t;
  16778. });
  16779. }
  16780. return e;
  16781. }).then(function (t) {
  16782. return !1 === t ? {
  16783. errMsg: n,
  16784. tempFilePaths: [],
  16785. tempFiles: []
  16786. } : function (e, t) {
  16787. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  16788. var r = arguments.length > 3 ? arguments[3] : undefined;
  16789. (t = Object.assign({}, t)).errMsg = n;
  16790. var i = t.tempFiles,
  16791. o = i.length;
  16792. var a = 0;
  16793. return new Promise(function (n) {
  16794. for (; a < s;) {
  16795. c();
  16796. }
  16797. function c() {
  16798. var s = a++;
  16799. if (s >= o) return void (!i.find(function (e) {
  16800. return !e.url && !e.errMsg;
  16801. }) && n(t));
  16802. var u = i[s];
  16803. e.uploadFile({
  16804. filePath: u.path,
  16805. cloudPath: u.cloudPath,
  16806. fileType: u.fileType,
  16807. cloudPathAsRealPath: u.cloudPathAsRealPath,
  16808. onUploadProgress: function onUploadProgress(e) {
  16809. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  16810. }
  16811. }).then(function (e) {
  16812. u.url = e.fileID, s < o && c();
  16813. }).catch(function (e) {
  16814. u.errMsg = e.errMsg || e.message, s < o && c();
  16815. });
  16816. }
  16817. });
  16818. }(e, t, 5, r);
  16819. });
  16820. }
  16821. t.initChooseAndUploadFile = function (e) {
  16822. return function () {
  16823. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  16824. type: "all"
  16825. };
  16826. return "image" === t.type ? i(e, function (e) {
  16827. var t = e.count,
  16828. n = e.sizeType,
  16829. _e$sourceType = e.sourceType,
  16830. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  16831. o = e.extension;
  16832. return new Promise(function (e, a) {
  16833. uni.chooseImage({
  16834. count: t,
  16835. sizeType: n,
  16836. sourceType: i,
  16837. extension: o,
  16838. success: function success(t) {
  16839. e(r(t, "image"));
  16840. },
  16841. fail: function fail(e) {
  16842. a({
  16843. errMsg: e.errMsg.replace("chooseImage:fail", s)
  16844. });
  16845. }
  16846. });
  16847. });
  16848. }(t), t) : "video" === t.type ? i(e, function (e) {
  16849. var t = e.camera,
  16850. n = e.compressed,
  16851. i = e.maxDuration,
  16852. _e$sourceType2 = e.sourceType,
  16853. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  16854. a = e.extension;
  16855. return new Promise(function (e, c) {
  16856. uni.chooseVideo({
  16857. camera: t,
  16858. compressed: n,
  16859. maxDuration: i,
  16860. sourceType: o,
  16861. extension: a,
  16862. success: function success(t) {
  16863. var n = t.tempFilePath,
  16864. s = t.duration,
  16865. i = t.size,
  16866. o = t.height,
  16867. a = t.width;
  16868. e(r({
  16869. errMsg: "chooseVideo:ok",
  16870. tempFilePaths: [n],
  16871. tempFiles: [{
  16872. name: t.tempFile && t.tempFile.name || "",
  16873. path: n,
  16874. size: i,
  16875. type: t.tempFile && t.tempFile.type || "",
  16876. width: a,
  16877. height: o,
  16878. duration: s,
  16879. fileType: "video",
  16880. cloudPath: ""
  16881. }]
  16882. }, "video"));
  16883. },
  16884. fail: function fail(e) {
  16885. c({
  16886. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  16887. });
  16888. }
  16889. });
  16890. });
  16891. }(t), t) : i(e, function (e) {
  16892. var t = e.count,
  16893. n = e.extension;
  16894. return new Promise(function (e, i) {
  16895. var o = uni.chooseFile;
  16896. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  16897. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  16898. });
  16899. o({
  16900. type: "all",
  16901. count: t,
  16902. extension: n,
  16903. success: function success(t) {
  16904. e(r(t));
  16905. },
  16906. fail: function fail(e) {
  16907. i({
  16908. errMsg: e.errMsg.replace("chooseFile:fail", s)
  16909. });
  16910. }
  16911. });
  16912. });
  16913. }(t), t);
  16914. };
  16915. };
  16916. }),
  16917. Ts = t(Ps);
  16918. var Cs = "manual";
  16919. function xs(e) {
  16920. return {
  16921. props: {
  16922. localdata: {
  16923. type: Array,
  16924. default: function _default() {
  16925. return [];
  16926. }
  16927. },
  16928. options: {
  16929. type: [Object, Array],
  16930. default: function _default() {
  16931. return {};
  16932. }
  16933. },
  16934. spaceInfo: {
  16935. type: Object,
  16936. default: function _default() {
  16937. return {};
  16938. }
  16939. },
  16940. collection: {
  16941. type: [String, Array],
  16942. default: ""
  16943. },
  16944. action: {
  16945. type: String,
  16946. default: ""
  16947. },
  16948. field: {
  16949. type: String,
  16950. default: ""
  16951. },
  16952. orderby: {
  16953. type: String,
  16954. default: ""
  16955. },
  16956. where: {
  16957. type: [String, Object],
  16958. default: ""
  16959. },
  16960. pageData: {
  16961. type: String,
  16962. default: "add"
  16963. },
  16964. pageCurrent: {
  16965. type: Number,
  16966. default: 1
  16967. },
  16968. pageSize: {
  16969. type: Number,
  16970. default: 20
  16971. },
  16972. getcount: {
  16973. type: [Boolean, String],
  16974. default: !1
  16975. },
  16976. gettree: {
  16977. type: [Boolean, String],
  16978. default: !1
  16979. },
  16980. gettreepath: {
  16981. type: [Boolean, String],
  16982. default: !1
  16983. },
  16984. startwith: {
  16985. type: String,
  16986. default: ""
  16987. },
  16988. limitlevel: {
  16989. type: Number,
  16990. default: 10
  16991. },
  16992. groupby: {
  16993. type: String,
  16994. default: ""
  16995. },
  16996. groupField: {
  16997. type: String,
  16998. default: ""
  16999. },
  17000. distinct: {
  17001. type: [Boolean, String],
  17002. default: !1
  17003. },
  17004. foreignKey: {
  17005. type: String,
  17006. default: ""
  17007. },
  17008. loadtime: {
  17009. type: String,
  17010. default: "auto"
  17011. },
  17012. manual: {
  17013. type: Boolean,
  17014. default: !1
  17015. }
  17016. },
  17017. data: function data() {
  17018. return {
  17019. mixinDatacomLoading: !1,
  17020. mixinDatacomHasMore: !1,
  17021. mixinDatacomResData: [],
  17022. mixinDatacomErrorMessage: "",
  17023. mixinDatacomPage: {}
  17024. };
  17025. },
  17026. created: function created() {
  17027. var _this21 = this;
  17028. this.mixinDatacomPage = {
  17029. current: this.pageCurrent,
  17030. size: this.pageSize,
  17031. count: 0
  17032. }, this.$watch(function () {
  17033. var e = [];
  17034. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  17035. e.push(_this21[t]);
  17036. }), e;
  17037. }, function (e, t) {
  17038. if (_this21.loadtime === Cs) return;
  17039. var n = !1;
  17040. var s = [];
  17041. for (var _r7 = 2; _r7 < e.length; _r7++) {
  17042. e[_r7] !== t[_r7] && (s.push(e[_r7]), n = !0);
  17043. }
  17044. e[0] !== t[0] && (_this21.mixinDatacomPage.current = _this21.pageCurrent), _this21.mixinDatacomPage.size = _this21.pageSize, _this21.onMixinDatacomPropsChange(n, s);
  17045. });
  17046. },
  17047. methods: {
  17048. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  17049. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  17050. var _this22 = this;
  17051. var _ref54 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17052. _ref54$getone = _ref54.getone,
  17053. e = _ref54$getone === void 0 ? !1 : _ref54$getone,
  17054. t = _ref54.success,
  17055. n = _ref54.fail;
  17056. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomGet().then(function (n) {
  17057. _this22.mixinDatacomLoading = !1;
  17058. var _n$result = n.result,
  17059. s = _n$result.data,
  17060. r = _n$result.count;
  17061. _this22.getcount && (_this22.mixinDatacomPage.count = r), _this22.mixinDatacomHasMore = s.length < _this22.pageSize;
  17062. var i = e ? s.length ? s[0] : void 0 : s;
  17063. _this22.mixinDatacomResData = i, t && t(i);
  17064. }).catch(function (e) {
  17065. _this22.mixinDatacomLoading = !1, _this22.mixinDatacomErrorMessage = e, n && n(e);
  17066. }));
  17067. },
  17068. mixinDatacomGet: function mixinDatacomGet() {
  17069. var _n12;
  17070. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  17071. var n = e.database(this.spaceInfo);
  17072. var s = t.action || this.action;
  17073. s && (n = n.action(s));
  17074. var r = t.collection || this.collection;
  17075. n = Array.isArray(r) ? (_n12 = n).collection.apply(_n12, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  17076. var i = t.where || this.where;
  17077. i && Object.keys(i).length && (n = n.where(i));
  17078. var o = t.field || this.field;
  17079. o && (n = n.field(o));
  17080. var a = t.foreignKey || this.foreignKey;
  17081. a && (n = n.foreignKey(a));
  17082. var c = t.groupby || this.groupby;
  17083. c && (n = n.groupBy(c));
  17084. var u = t.groupField || this.groupField;
  17085. u && (n = n.groupField(u));
  17086. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  17087. var h = t.orderby || this.orderby;
  17088. h && (n = n.orderBy(h));
  17089. var l = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  17090. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  17091. p = void 0 !== t.getcount ? t.getcount : this.getcount,
  17092. f = void 0 !== t.gettree ? t.gettree : this.gettree,
  17093. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  17094. m = {
  17095. getCount: p
  17096. },
  17097. y = {
  17098. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  17099. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  17100. };
  17101. return f && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (l - 1)).limit(d).get(m), n;
  17102. }
  17103. }
  17104. };
  17105. }
  17106. function Os(e) {
  17107. return function (t) {
  17108. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  17109. n = function (e) {
  17110. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  17111. return e.customUI = t.customUI || e.customUI, e.parseSystemError = t.parseSystemError || e.parseSystemError, Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), "object" == (0, _typeof2.default)(t.secretMethods) && (e.secretMethods = t.secretMethods), e;
  17112. }({
  17113. customUI: !1,
  17114. loadingOptions: {
  17115. title: "加载中...",
  17116. mask: !0
  17117. },
  17118. errorOptions: {
  17119. type: "modal",
  17120. retry: !1
  17121. }
  17122. }, n);
  17123. var _n13 = n,
  17124. s = _n13.customUI,
  17125. r = _n13.loadingOptions,
  17126. i = _n13.errorOptions,
  17127. o = _n13.parseSystemError,
  17128. a = !s;
  17129. return new Proxy({}, {
  17130. get: function get(s, c) {
  17131. return function () {
  17132. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17133. e = _ref55.fn,
  17134. t = _ref55.interceptorName,
  17135. n = _ref55.getCallbackArgs;
  17136. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52() {
  17137. var _len2,
  17138. s,
  17139. _key2,
  17140. r,
  17141. i,
  17142. o,
  17143. _args = arguments;
  17144. return _regenerator.default.wrap(function _callee52$(_context52) {
  17145. while (1) {
  17146. switch (_context52.prev = _context52.next) {
  17147. case 0:
  17148. for (_len2 = _args.length, s = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  17149. s[_key2] = _args[_key2];
  17150. }
  17151. r = n ? n({
  17152. params: s
  17153. }) : {};
  17154. _context52.prev = 2;
  17155. _context52.next = 5;
  17156. return M(q(t, "invoke"), _objectSpread({}, r));
  17157. case 5:
  17158. _context52.next = 7;
  17159. return e.apply(void 0, s);
  17160. case 7:
  17161. i = _context52.sent;
  17162. _context52.next = 10;
  17163. return M(q(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  17164. result: i
  17165. }));
  17166. case 10:
  17167. return _context52.abrupt("return", i);
  17168. case 13:
  17169. _context52.prev = 13;
  17170. _context52.t0 = _context52["catch"](2);
  17171. o = _context52.t0;
  17172. _context52.next = 18;
  17173. return M(q(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  17174. error: o
  17175. }));
  17176. case 18:
  17177. throw o;
  17178. case 19:
  17179. _context52.prev = 19;
  17180. _context52.next = 22;
  17181. return M(q(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  17182. error: o
  17183. }) : _objectSpread(_objectSpread({}, r), {}, {
  17184. result: i
  17185. }));
  17186. case 22:
  17187. return _context52.finish(19);
  17188. case 23:
  17189. case "end":
  17190. return _context52.stop();
  17191. }
  17192. }
  17193. }, _callee52, null, [[2, 13, 19, 23]]);
  17194. }));
  17195. }({
  17196. fn: function () {
  17197. var _s16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54() {
  17198. var l,
  17199. _len3,
  17200. h,
  17201. _key3,
  17202. d,
  17203. p,
  17204. _ref57,
  17205. f,
  17206. g,
  17207. m,
  17208. y,
  17209. _e26,
  17210. _yield,
  17211. _t20,
  17212. _n14,
  17213. _args4 = arguments;
  17214. return _regenerator.default.wrap(function _callee54$(_context54) {
  17215. while (1) {
  17216. switch (_context54.prev = _context54.next) {
  17217. case 0:
  17218. a && uni.showLoading({
  17219. title: r.title,
  17220. mask: r.mask
  17221. });
  17222. for (_len3 = _args4.length, h = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  17223. h[_key3] = _args4[_key3];
  17224. }
  17225. d = {
  17226. name: t,
  17227. type: u,
  17228. data: {
  17229. method: c,
  17230. params: h
  17231. }
  17232. };
  17233. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  17234. var n = t.data.method,
  17235. s = e.secretMethods || {},
  17236. r = s[n] || s["*"];
  17237. r && (t.secretType = r);
  17238. }(n, d);
  17239. p = !1;
  17240. _context54.prev = 5;
  17241. _context54.next = 8;
  17242. return e.callFunction(d);
  17243. case 8:
  17244. l = _context54.sent;
  17245. _context54.next = 14;
  17246. break;
  17247. case 11:
  17248. _context54.prev = 11;
  17249. _context54.t0 = _context54["catch"](5);
  17250. p = !0, l = {
  17251. result: new te(_context54.t0)
  17252. };
  17253. case 14:
  17254. _ref57 = l.result || {}, f = _ref57.errSubject, g = _ref57.errCode, m = _ref57.errMsg, y = _ref57.newToken;
  17255. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (re(y), Y(B, _objectSpread({}, y))), g)) {
  17256. _context54.next = 39;
  17257. break;
  17258. }
  17259. _e26 = m;
  17260. if (!(p && o)) {
  17261. _context54.next = 24;
  17262. break;
  17263. }
  17264. _context54.next = 20;
  17265. return o({
  17266. objectName: t,
  17267. methodName: c,
  17268. params: h,
  17269. errSubject: f,
  17270. errCode: g,
  17271. errMsg: m
  17272. });
  17273. case 20:
  17274. _context54.t1 = _context54.sent.errMsg;
  17275. if (_context54.t1) {
  17276. _context54.next = 23;
  17277. break;
  17278. }
  17279. _context54.t1 = m;
  17280. case 23:
  17281. _e26 = _context54.t1;
  17282. case 24:
  17283. if (!a) {
  17284. _context54.next = 37;
  17285. break;
  17286. }
  17287. if (!("toast" === i.type)) {
  17288. _context54.next = 29;
  17289. break;
  17290. }
  17291. uni.showToast({
  17292. title: _e26,
  17293. icon: "none"
  17294. });
  17295. _context54.next = 37;
  17296. break;
  17297. case 29:
  17298. if (!("modal" !== i.type)) {
  17299. _context54.next = 31;
  17300. break;
  17301. }
  17302. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  17303. case 31:
  17304. _context54.next = 33;
  17305. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53() {
  17306. var _ref59,
  17307. e,
  17308. t,
  17309. n,
  17310. s,
  17311. r,
  17312. _args2 = arguments;
  17313. return _regenerator.default.wrap(function _callee53$(_context53) {
  17314. while (1) {
  17315. switch (_context53.prev = _context53.next) {
  17316. case 0:
  17317. _ref59 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref59.title, t = _ref59.content, n = _ref59.showCancel, s = _ref59.cancelText, r = _ref59.confirmText;
  17318. return _context53.abrupt("return", new Promise(function (i, o) {
  17319. uni.showModal({
  17320. title: e,
  17321. content: t,
  17322. showCancel: n,
  17323. cancelText: s,
  17324. confirmText: r,
  17325. success: function success(e) {
  17326. i(e);
  17327. },
  17328. fail: function fail() {
  17329. i({
  17330. confirm: !1,
  17331. cancel: !0
  17332. });
  17333. }
  17334. });
  17335. }));
  17336. case 2:
  17337. case "end":
  17338. return _context53.stop();
  17339. }
  17340. }
  17341. }, _callee53);
  17342. }))({
  17343. title: "提示",
  17344. content: _e26,
  17345. showCancel: i.retry,
  17346. cancelText: "取消",
  17347. confirmText: i.retry ? "重试" : "确定"
  17348. });
  17349. case 33:
  17350. _yield = _context54.sent;
  17351. _t20 = _yield.confirm;
  17352. if (!(i.retry && _t20)) {
  17353. _context54.next = 37;
  17354. break;
  17355. }
  17356. return _context54.abrupt("return", s.apply(void 0, h));
  17357. case 37:
  17358. _n14 = new te({
  17359. subject: f,
  17360. code: g,
  17361. message: m,
  17362. requestId: l.requestId
  17363. });
  17364. throw _n14.detail = l.result, Y(j, {
  17365. type: z,
  17366. content: _n14
  17367. }), _n14;
  17368. case 39:
  17369. return _context54.abrupt("return", (Y(j, {
  17370. type: z,
  17371. content: l.result
  17372. }), l.result));
  17373. case 40:
  17374. case "end":
  17375. return _context54.stop();
  17376. }
  17377. }
  17378. }, _callee54, null, [[5, 11]]);
  17379. }));
  17380. function s() {
  17381. return _s16.apply(this, arguments);
  17382. }
  17383. return s;
  17384. }(),
  17385. interceptorName: "callObject",
  17386. getCallbackArgs: function getCallbackArgs() {
  17387. var _ref60 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17388. e = _ref60.params;
  17389. return {
  17390. objectName: t,
  17391. methodName: c,
  17392. params: e
  17393. };
  17394. }
  17395. });
  17396. }
  17397. });
  17398. };
  17399. }
  17400. function Es(e) {
  17401. return L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
  17402. }
  17403. function Ls() {
  17404. return _Ls.apply(this, arguments);
  17405. }
  17406. function _Ls() {
  17407. _Ls = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57() {
  17408. var _ref72,
  17409. e,
  17410. _ref72$callLoginByWei,
  17411. t,
  17412. n,
  17413. s,
  17414. r,
  17415. _args7 = arguments;
  17416. return _regenerator.default.wrap(function _callee57$(_context57) {
  17417. while (1) {
  17418. switch (_context57.prev = _context57.next) {
  17419. case 0:
  17420. _ref72 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, e = _ref72.openid, _ref72$callLoginByWei = _ref72.callLoginByWeixin, t = _ref72$callLoginByWei === void 0 ? !1 : _ref72$callLoginByWei;
  17421. n = Es(this);
  17422. if (!("mp-weixin" !== P)) {
  17423. _context57.next = 4;
  17424. break;
  17425. }
  17426. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(P, "`"));
  17427. case 4:
  17428. if (!(e && t)) {
  17429. _context57.next = 6;
  17430. break;
  17431. }
  17432. throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");
  17433. case 6:
  17434. if (!e) {
  17435. _context57.next = 8;
  17436. break;
  17437. }
  17438. return _context57.abrupt("return", (n.mpWeixinOpenid = e, {}));
  17439. case 8:
  17440. _context57.next = 10;
  17441. return new Promise(function (e, t) {
  17442. uni.login({
  17443. success: function success(t) {
  17444. e(t.code);
  17445. },
  17446. fail: function fail(e) {
  17447. t(new Error(e.errMsg));
  17448. }
  17449. });
  17450. });
  17451. case 10:
  17452. s = _context57.sent;
  17453. r = this.importObject("uni-id-co", {
  17454. customUI: !0
  17455. });
  17456. _context57.next = 14;
  17457. return r.secureNetworkHandshakeByWeixin({
  17458. code: s,
  17459. callLoginByWeixin: t
  17460. });
  17461. case 14:
  17462. n.mpWeixinCode = s;
  17463. return _context57.abrupt("return", {
  17464. code: s
  17465. });
  17466. case 16:
  17467. case "end":
  17468. return _context57.stop();
  17469. }
  17470. }
  17471. }, _callee57, this);
  17472. }));
  17473. return _Ls.apply(this, arguments);
  17474. }
  17475. function Rs(_x39) {
  17476. return _Rs.apply(this, arguments);
  17477. }
  17478. function _Rs() {
  17479. _Rs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58(e) {
  17480. var t;
  17481. return _regenerator.default.wrap(function _callee58$(_context58) {
  17482. while (1) {
  17483. switch (_context58.prev = _context58.next) {
  17484. case 0:
  17485. t = Es(this);
  17486. return _context58.abrupt("return", (t.initPromise || (t.initPromise = Ls.call(this, e)), t.initPromise));
  17487. case 2:
  17488. case "end":
  17489. return _context58.stop();
  17490. }
  17491. }
  17492. }, _callee58, this);
  17493. }));
  17494. return _Rs.apply(this, arguments);
  17495. }
  17496. function Us(e) {
  17497. return function () {
  17498. var _ref61 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17499. t = _ref61.openid,
  17500. _ref61$callLoginByWei = _ref61.callLoginByWeixin,
  17501. n = _ref61$callLoginByWei === void 0 ? !1 : _ref61$callLoginByWei;
  17502. return Rs.call(e, {
  17503. openid: t,
  17504. callLoginByWeixin: n
  17505. });
  17506. };
  17507. }
  17508. function Ns(e) {
  17509. var t = {
  17510. getSystemInfo: uni.getSystemInfo,
  17511. getPushClientId: uni.getPushClientId
  17512. };
  17513. return function (n) {
  17514. return new Promise(function (s, r) {
  17515. t[e](_objectSpread(_objectSpread({}, n), {}, {
  17516. success: function success(e) {
  17517. s(e);
  17518. },
  17519. fail: function fail(e) {
  17520. r(e);
  17521. }
  17522. }));
  17523. });
  17524. };
  17525. }
  17526. var Ds = /*#__PURE__*/function (_ref62) {
  17527. (0, _inherits2.default)(Ds, _ref62);
  17528. var _super12 = _createSuper(Ds);
  17529. function Ds() {
  17530. var _this23;
  17531. (0, _classCallCheck2.default)(this, Ds);
  17532. _this23 = _super12.call(this), _this23._uniPushMessageCallback = _this23._receivePushMessage.bind((0, _assertThisInitialized2.default)(_this23)), _this23._currentMessageId = -1, _this23._payloadQueue = [];
  17533. return _this23;
  17534. }
  17535. (0, _createClass2.default)(Ds, [{
  17536. key: "init",
  17537. value: function init() {
  17538. var _this24 = this;
  17539. return Promise.all([Ns("getSystemInfo")(), Ns("getPushClientId")()]).then(function () {
  17540. var _ref63 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [],
  17541. _ref64 = (0, _slicedToArray2.default)(_ref63, 2),
  17542. _ref64$ = _ref64[0];
  17543. _ref64$ = _ref64$ === void 0 ? {} : _ref64$;
  17544. var e = _ref64$.appId,
  17545. _ref64$2 = _ref64[1];
  17546. _ref64$2 = _ref64$2 === void 0 ? {} : _ref64$2;
  17547. var t = _ref64$2.cid;
  17548. if (!e) throw new Error("Invalid appId, please check the manifest.json file");
  17549. if (!t) throw new Error("Invalid push client id");
  17550. _this24._appId = e, _this24._pushClientId = t, _this24._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), _this24.emit("open"), _this24._initMessageListener();
  17551. }, function (e) {
  17552. throw _this24.emit("error", e), _this24.close(), e;
  17553. });
  17554. }
  17555. }, {
  17556. key: "open",
  17557. value: function () {
  17558. var _open = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55() {
  17559. return _regenerator.default.wrap(function _callee55$(_context55) {
  17560. while (1) {
  17561. switch (_context55.prev = _context55.next) {
  17562. case 0:
  17563. return _context55.abrupt("return", this.init());
  17564. case 1:
  17565. case "end":
  17566. return _context55.stop();
  17567. }
  17568. }
  17569. }, _callee55, this);
  17570. }));
  17571. function open() {
  17572. return _open.apply(this, arguments);
  17573. }
  17574. return open;
  17575. }()
  17576. }, {
  17577. key: "_isUniCloudSSE",
  17578. value: function _isUniCloudSSE(e) {
  17579. if ("receive" !== e.type) return !1;
  17580. var t = e && e.data && e.data.payload;
  17581. return !(!t || "UNI_CLOUD_SSE" !== t.channel || t.seqId !== this._seqId);
  17582. }
  17583. }, {
  17584. key: "_receivePushMessage",
  17585. value: function _receivePushMessage(e) {
  17586. if (!this._isUniCloudSSE(e)) return;
  17587. var t = e && e.data && e.data.payload,
  17588. n = t.action,
  17589. s = t.messageId,
  17590. r = t.message;
  17591. this._payloadQueue.push({
  17592. action: n,
  17593. messageId: s,
  17594. message: r
  17595. }), this._consumMessage();
  17596. }
  17597. }, {
  17598. key: "_consumMessage",
  17599. value: function _consumMessage() {
  17600. var _this25 = this;
  17601. for (;;) {
  17602. var _e27 = this._payloadQueue.find(function (e) {
  17603. return e.messageId === _this25._currentMessageId + 1;
  17604. });
  17605. if (!_e27) break;
  17606. this._currentMessageId++, this._parseMessagePayload(_e27);
  17607. }
  17608. }
  17609. }, {
  17610. key: "_parseMessagePayload",
  17611. value: function _parseMessagePayload(e) {
  17612. var t = e.action,
  17613. n = e.messageId,
  17614. s = e.message;
  17615. "end" === t ? this._end({
  17616. messageId: n,
  17617. message: s
  17618. }) : "message" === t && this._appendMessage({
  17619. messageId: n,
  17620. message: s
  17621. });
  17622. }
  17623. }, {
  17624. key: "_appendMessage",
  17625. value: function _appendMessage() {
  17626. var _ref65 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17627. e = _ref65.messageId,
  17628. t = _ref65.message;
  17629. this.emit("message", t);
  17630. }
  17631. }, {
  17632. key: "_end",
  17633. value: function _end() {
  17634. var _ref66 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17635. e = _ref66.messageId,
  17636. t = _ref66.message;
  17637. this.emit("end", t), this.close();
  17638. }
  17639. }, {
  17640. key: "_initMessageListener",
  17641. value: function _initMessageListener() {
  17642. uni.onPushMessage(this._uniPushMessageCallback);
  17643. }
  17644. }, {
  17645. key: "_destroy",
  17646. value: function _destroy() {
  17647. uni.offPushMessage(this._uniPushMessageCallback);
  17648. }
  17649. }, {
  17650. key: "toJSON",
  17651. value: function toJSON() {
  17652. return {
  17653. appId: this._appId,
  17654. pushClientId: this._pushClientId,
  17655. seqId: this._seqId
  17656. };
  17657. }
  17658. }, {
  17659. key: "close",
  17660. value: function close() {
  17661. this._destroy(), this.emit("close");
  17662. }
  17663. }]);
  17664. return Ds;
  17665. }( /*#__PURE__*/function () {
  17666. function _class6() {
  17667. (0, _classCallCheck2.default)(this, _class6);
  17668. this._callback = {};
  17669. }
  17670. (0, _createClass2.default)(_class6, [{
  17671. key: "addListener",
  17672. value: function addListener(e, t) {
  17673. this._callback[e] || (this._callback[e] = []), this._callback[e].push(t);
  17674. }
  17675. }, {
  17676. key: "on",
  17677. value: function on(e, t) {
  17678. return this.addListener(e, t);
  17679. }
  17680. }, {
  17681. key: "removeListener",
  17682. value: function removeListener(e, t) {
  17683. if (!t) throw new Error('The "listener" argument must be of type function. Received undefined');
  17684. var n = this._callback[e];
  17685. if (!n) return;
  17686. var s = function (e, t) {
  17687. for (var _n15 = e.length - 1; _n15 >= 0; _n15--) {
  17688. if (e[_n15] === t) return _n15;
  17689. }
  17690. return -1;
  17691. }(n, t);
  17692. n.splice(s, 1);
  17693. }
  17694. }, {
  17695. key: "off",
  17696. value: function off(e, t) {
  17697. return this.removeListener(e, t);
  17698. }
  17699. }, {
  17700. key: "removeAllListener",
  17701. value: function removeAllListener(e) {
  17702. delete this._callback[e];
  17703. }
  17704. }, {
  17705. key: "emit",
  17706. value: function emit(e) {
  17707. var n = this._callback[e];
  17708. for (var _len4 = arguments.length, t = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  17709. t[_key4 - 1] = arguments[_key4];
  17710. }
  17711. if (n) for (var _e28 = 0; _e28 < n.length; _e28++) {
  17712. n[_e28].apply(n, t);
  17713. }
  17714. }
  17715. }]);
  17716. return _class6;
  17717. }());
  17718. function Ms(_x40, _x41) {
  17719. return _Ms.apply(this, arguments);
  17720. }
  17721. function _Ms() {
  17722. _Ms = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59(e, t) {
  17723. var n, _e32, s;
  17724. return _regenerator.default.wrap(function _callee59$(_context59) {
  17725. while (1) {
  17726. switch (_context59.prev = _context59.next) {
  17727. case 0:
  17728. n = "http://".concat(e, ":").concat(t, "/system/ping");
  17729. _context59.prev = 1;
  17730. _context59.next = 4;
  17731. return s = {
  17732. url: n,
  17733. timeout: 500
  17734. }, new Promise(function (e, t) {
  17735. ne.request(_objectSpread(_objectSpread({}, s), {}, {
  17736. success: function success(t) {
  17737. e(t);
  17738. },
  17739. fail: function fail(e) {
  17740. t(e);
  17741. }
  17742. }));
  17743. });
  17744. case 4:
  17745. _e32 = _context59.sent;
  17746. return _context59.abrupt("return", !(!_e32.data || 0 !== _e32.data.code));
  17747. case 8:
  17748. _context59.prev = 8;
  17749. _context59.t0 = _context59["catch"](1);
  17750. return _context59.abrupt("return", !1);
  17751. case 11:
  17752. case "end":
  17753. return _context59.stop();
  17754. }
  17755. }
  17756. }, _callee59, null, [[1, 8]]);
  17757. }));
  17758. return _Ms.apply(this, arguments);
  17759. }
  17760. function qs(_x42) {
  17761. return _qs.apply(this, arguments);
  17762. }
  17763. function _qs() {
  17764. _qs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61(e) {
  17765. var _ae2, _e33, _t22, t, _t$debugInfo, n, s, _yield2, r, i, o;
  17766. return _regenerator.default.wrap(function _callee61$(_context61) {
  17767. while (1) {
  17768. switch (_context61.prev = _context61.next) {
  17769. case 0:
  17770. if (S) {
  17771. _context61.next = 2;
  17772. break;
  17773. }
  17774. return _context61.abrupt("return", Promise.resolve());
  17775. case 2:
  17776. if ("app" === P) {
  17777. _ae2 = ae(), _e33 = _ae2.osName, _t22 = _ae2.osVersion;
  17778. "ios" === _e33 && function (e) {
  17779. if (!e || "string" != typeof e) return 0;
  17780. var t = e.match(/^(\d+)./);
  17781. return t && t[1] ? parseInt(t[1]) : 0;
  17782. }(_t22) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)");
  17783. }
  17784. t = e.__dev__;
  17785. if (t.debugInfo) {
  17786. _context61.next = 6;
  17787. break;
  17788. }
  17789. return _context61.abrupt("return");
  17790. case 6:
  17791. _t$debugInfo = t.debugInfo;
  17792. n = _t$debugInfo.address;
  17793. s = _t$debugInfo.servePort;
  17794. _context61.next = 11;
  17795. return function () {
  17796. var _ref73 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee60(e, t) {
  17797. var n, _s17, _r8;
  17798. return _regenerator.default.wrap(function _callee60$(_context60) {
  17799. while (1) {
  17800. switch (_context60.prev = _context60.next) {
  17801. case 0:
  17802. _s17 = 0;
  17803. case 1:
  17804. if (!(_s17 < e.length)) {
  17805. _context60.next = 11;
  17806. break;
  17807. }
  17808. _r8 = e[_s17];
  17809. _context60.next = 5;
  17810. return Ms(_r8, t);
  17811. case 5:
  17812. if (!_context60.sent) {
  17813. _context60.next = 8;
  17814. break;
  17815. }
  17816. n = _r8;
  17817. return _context60.abrupt("break", 11);
  17818. case 8:
  17819. _s17++;
  17820. _context60.next = 1;
  17821. break;
  17822. case 11:
  17823. return _context60.abrupt("return", {
  17824. address: n,
  17825. port: t
  17826. });
  17827. case 12:
  17828. case "end":
  17829. return _context60.stop();
  17830. }
  17831. }
  17832. }, _callee60);
  17833. }));
  17834. return function (_x43, _x44) {
  17835. return _ref73.apply(this, arguments);
  17836. };
  17837. }()(n, s);
  17838. case 11:
  17839. _yield2 = _context61.sent;
  17840. r = _yield2.address;
  17841. if (!r) {
  17842. _context61.next = 15;
  17843. break;
  17844. }
  17845. return _context61.abrupt("return", (t.localAddress = r, void (t.localPort = s)));
  17846. case 15:
  17847. i = console["app" === P ? "error" : "warn"];
  17848. o = "";
  17849. if (!("remote" === t.debugInfo.initialLaunchType ? (t.debugInfo.forceRemote = !0, o = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。") : o = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。", o += "\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数", "web" === P && (o += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), 0 === P.indexOf("mp-") && (o += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), !t.debugInfo.forceRemote)) {
  17850. _context61.next = 19;
  17851. break;
  17852. }
  17853. throw new Error(o);
  17854. case 19:
  17855. i(o);
  17856. case 20:
  17857. case "end":
  17858. return _context61.stop();
  17859. }
  17860. }
  17861. }, _callee61);
  17862. }));
  17863. return _qs.apply(this, arguments);
  17864. }
  17865. function Fs(e) {
  17866. e._initPromiseHub || (e._initPromiseHub = new v({
  17867. createPromise: function createPromise() {
  17868. var t = Promise.resolve();
  17869. var n;
  17870. n = 1, t = new Promise(function (e) {
  17871. setTimeout(function () {
  17872. e();
  17873. }, n);
  17874. });
  17875. var s = e.auth();
  17876. return t.then(function () {
  17877. return s.getLoginState();
  17878. }).then(function (e) {
  17879. return e ? Promise.resolve() : s.signInAnonymously();
  17880. });
  17881. }
  17882. }));
  17883. }
  17884. var Ks = {
  17885. tcb: It,
  17886. tencent: It,
  17887. aliyun: de,
  17888. private: bt,
  17889. alipay: Ot
  17890. };
  17891. var js = new ( /*#__PURE__*/function () {
  17892. function _class7() {
  17893. (0, _classCallCheck2.default)(this, _class7);
  17894. }
  17895. (0, _createClass2.default)(_class7, [{
  17896. key: "init",
  17897. value: function init(e) {
  17898. var t = {};
  17899. var n = Ks[e.provider];
  17900. if (!n) throw new Error("未提供正确的provider参数");
  17901. t = n.init(e), S && function (e) {
  17902. if (!S) return;
  17903. var t = {};
  17904. e.__dev__ = t, t.debugLog = S && ("web" === P && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === P);
  17905. var n = T;
  17906. n && !n.code && (t.debugInfo = n);
  17907. var s = new v({
  17908. createPromise: function createPromise() {
  17909. return qs(e);
  17910. }
  17911. });
  17912. t.initLocalNetwork = function () {
  17913. return s.exec();
  17914. };
  17915. }(t), Fs(t), qn(t), function (e) {
  17916. var t = e.uploadFile;
  17917. e.uploadFile = function (e) {
  17918. return t.call(this, e);
  17919. };
  17920. }(t), function (e) {
  17921. e.database = function (t) {
  17922. if (t && Object.keys(t).length > 0) return e.init(t).database();
  17923. if (this._database) return this._database;
  17924. var n = Vn(Yn, {
  17925. uniClient: e
  17926. });
  17927. return this._database = n, n;
  17928. }, e.databaseForJQL = function (t) {
  17929. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  17930. if (this._databaseForJQL) return this._databaseForJQL;
  17931. var n = Vn(Yn, {
  17932. uniClient: e,
  17933. isJQL: !0
  17934. });
  17935. return this._databaseForJQL = n, n;
  17936. };
  17937. }(t), function (e) {
  17938. e.getCurrentUserInfo = As, e.chooseAndUploadFile = Ts.initChooseAndUploadFile(e), Object.assign(e, {
  17939. get mixinDatacom() {
  17940. return xs(e);
  17941. }
  17942. }), e.SSEChannel = Ds, e.initSecureNetworkByWeixin = Us(e), e.importObject = Os(e);
  17943. }(t);
  17944. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  17945. if (!t[e]) return;
  17946. var n = t[e];
  17947. t[e] = function () {
  17948. return n.apply(t, Array.from(arguments));
  17949. }, t[e] = function (e, t) {
  17950. return function (n) {
  17951. var _this26 = this;
  17952. var s = !1;
  17953. if ("callFunction" === t) {
  17954. var _e29 = n && n.type || c;
  17955. s = _e29 !== c;
  17956. }
  17957. var r = "callFunction" === t && !s,
  17958. i = this._initPromiseHub.exec();
  17959. n = n || {};
  17960. var _ee2 = ee(n),
  17961. o = _ee2.success,
  17962. a = _ee2.fail,
  17963. u = _ee2.complete,
  17964. h = i.then(function () {
  17965. return s ? Promise.resolve() : M(q(t, "invoke"), n);
  17966. }).then(function () {
  17967. return e.call(_this26, n);
  17968. }).then(function (e) {
  17969. return s ? Promise.resolve(e) : M(q(t, "success"), e).then(function () {
  17970. return M(q(t, "complete"), e);
  17971. }).then(function () {
  17972. return r && Y(j, {
  17973. type: H,
  17974. content: e
  17975. }), Promise.resolve(e);
  17976. });
  17977. }, function (e) {
  17978. return s ? Promise.reject(e) : M(q(t, "fail"), e).then(function () {
  17979. return M(q(t, "complete"), e);
  17980. }).then(function () {
  17981. return Y(j, {
  17982. type: H,
  17983. content: e
  17984. }), Promise.reject(e);
  17985. });
  17986. });
  17987. if (!(o || a || u)) return h;
  17988. h.then(function (e) {
  17989. o && o(e), u && u(e), r && Y(j, {
  17990. type: H,
  17991. content: e
  17992. });
  17993. }, function (e) {
  17994. a && a(e), u && u(e), r && Y(j, {
  17995. type: H,
  17996. content: e
  17997. });
  17998. });
  17999. };
  18000. }(t[e], e).bind(t);
  18001. }), t.init = this.init, t;
  18002. }
  18003. }]);
  18004. return _class7;
  18005. }())();
  18006. (function () {
  18007. var e = C;
  18008. var t = {};
  18009. if (e && 1 === e.length) t = e[0], js = js.init(t), js._isDefault = !0;else {
  18010. var _t21 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];
  18011. var _n16;
  18012. _n16 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : x ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t21.forEach(function (e) {
  18013. js[e] = function () {
  18014. return console.error(_n16), Promise.reject(new te({
  18015. code: "SYS_ERR",
  18016. message: _n16
  18017. }));
  18018. };
  18019. });
  18020. }
  18021. Object.assign(js, {
  18022. get mixinDatacom() {
  18023. return xs(js);
  18024. }
  18025. }), Is(js), js.addInterceptor = N, js.removeInterceptor = D, js.interceptObject = F, S && "web" === P && (window.uniCloud = js);
  18026. })();
  18027. var $s = js;
  18028. exports.default = $s;
  18029. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3), __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"]))
  18030. /***/ }),
  18031. /***/ 29:
  18032. /*!************************************************************************************************!*\
  18033. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  18034. \************************************************************************************************/
  18035. /*! no static exports found */
  18036. /***/ (function(module, exports, __webpack_require__) {
  18037. // TODO(Babel 8): Remove this file.
  18038. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 30)();
  18039. module.exports = runtime;
  18040. /***/ }),
  18041. /***/ 3:
  18042. /*!***********************************!*\
  18043. !*** (webpack)/buildin/global.js ***!
  18044. \***********************************/
  18045. /*! no static exports found */
  18046. /***/ (function(module, exports) {
  18047. var g;
  18048. // This works in non-strict mode
  18049. g = (function() {
  18050. return this;
  18051. })();
  18052. try {
  18053. // This works if eval is allowed (see CSP)
  18054. g = g || new Function("return this")();
  18055. } catch (e) {
  18056. // This works if the window reference is available
  18057. if (typeof window === "object") g = window;
  18058. }
  18059. // g can still be undefined, but nothing to do about it...
  18060. // We return undefined, instead of nothing here, so it's
  18061. // easier to handle this case. if(!global) { ...}
  18062. module.exports = g;
  18063. /***/ }),
  18064. /***/ 30:
  18065. /*!*******************************************************************!*\
  18066. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  18067. \*******************************************************************/
  18068. /*! no static exports found */
  18069. /***/ (function(module, exports, __webpack_require__) {
  18070. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18071. function _regeneratorRuntime() {
  18072. "use strict";
  18073. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  18074. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  18075. return exports;
  18076. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18077. var exports = {},
  18078. Op = Object.prototype,
  18079. hasOwn = Op.hasOwnProperty,
  18080. defineProperty = Object.defineProperty || function (obj, key, desc) {
  18081. obj[key] = desc.value;
  18082. },
  18083. $Symbol = "function" == typeof Symbol ? Symbol : {},
  18084. iteratorSymbol = $Symbol.iterator || "@@iterator",
  18085. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  18086. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  18087. function define(obj, key, value) {
  18088. return Object.defineProperty(obj, key, {
  18089. value: value,
  18090. enumerable: !0,
  18091. configurable: !0,
  18092. writable: !0
  18093. }), obj[key];
  18094. }
  18095. try {
  18096. define({}, "");
  18097. } catch (err) {
  18098. define = function define(obj, key, value) {
  18099. return obj[key] = value;
  18100. };
  18101. }
  18102. function wrap(innerFn, outerFn, self, tryLocsList) {
  18103. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  18104. generator = Object.create(protoGenerator.prototype),
  18105. context = new Context(tryLocsList || []);
  18106. return defineProperty(generator, "_invoke", {
  18107. value: makeInvokeMethod(innerFn, self, context)
  18108. }), generator;
  18109. }
  18110. function tryCatch(fn, obj, arg) {
  18111. try {
  18112. return {
  18113. type: "normal",
  18114. arg: fn.call(obj, arg)
  18115. };
  18116. } catch (err) {
  18117. return {
  18118. type: "throw",
  18119. arg: err
  18120. };
  18121. }
  18122. }
  18123. exports.wrap = wrap;
  18124. var ContinueSentinel = {};
  18125. function Generator() {}
  18126. function GeneratorFunction() {}
  18127. function GeneratorFunctionPrototype() {}
  18128. var IteratorPrototype = {};
  18129. define(IteratorPrototype, iteratorSymbol, function () {
  18130. return this;
  18131. });
  18132. var getProto = Object.getPrototypeOf,
  18133. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  18134. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  18135. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  18136. function defineIteratorMethods(prototype) {
  18137. ["next", "throw", "return"].forEach(function (method) {
  18138. define(prototype, method, function (arg) {
  18139. return this._invoke(method, arg);
  18140. });
  18141. });
  18142. }
  18143. function AsyncIterator(generator, PromiseImpl) {
  18144. function invoke(method, arg, resolve, reject) {
  18145. var record = tryCatch(generator[method], generator, arg);
  18146. if ("throw" !== record.type) {
  18147. var result = record.arg,
  18148. value = result.value;
  18149. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  18150. invoke("next", value, resolve, reject);
  18151. }, function (err) {
  18152. invoke("throw", err, resolve, reject);
  18153. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  18154. result.value = unwrapped, resolve(result);
  18155. }, function (error) {
  18156. return invoke("throw", error, resolve, reject);
  18157. });
  18158. }
  18159. reject(record.arg);
  18160. }
  18161. var previousPromise;
  18162. defineProperty(this, "_invoke", {
  18163. value: function value(method, arg) {
  18164. function callInvokeWithMethodAndArg() {
  18165. return new PromiseImpl(function (resolve, reject) {
  18166. invoke(method, arg, resolve, reject);
  18167. });
  18168. }
  18169. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  18170. }
  18171. });
  18172. }
  18173. function makeInvokeMethod(innerFn, self, context) {
  18174. var state = "suspendedStart";
  18175. return function (method, arg) {
  18176. if ("executing" === state) throw new Error("Generator is already running");
  18177. if ("completed" === state) {
  18178. if ("throw" === method) throw arg;
  18179. return doneResult();
  18180. }
  18181. for (context.method = method, context.arg = arg;;) {
  18182. var delegate = context.delegate;
  18183. if (delegate) {
  18184. var delegateResult = maybeInvokeDelegate(delegate, context);
  18185. if (delegateResult) {
  18186. if (delegateResult === ContinueSentinel) continue;
  18187. return delegateResult;
  18188. }
  18189. }
  18190. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  18191. if ("suspendedStart" === state) throw state = "completed", context.arg;
  18192. context.dispatchException(context.arg);
  18193. } else "return" === context.method && context.abrupt("return", context.arg);
  18194. state = "executing";
  18195. var record = tryCatch(innerFn, self, context);
  18196. if ("normal" === record.type) {
  18197. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  18198. return {
  18199. value: record.arg,
  18200. done: context.done
  18201. };
  18202. }
  18203. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  18204. }
  18205. };
  18206. }
  18207. function maybeInvokeDelegate(delegate, context) {
  18208. var methodName = context.method,
  18209. method = delegate.iterator[methodName];
  18210. 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;
  18211. var record = tryCatch(method, delegate.iterator, context.arg);
  18212. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  18213. var info = record.arg;
  18214. 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);
  18215. }
  18216. function pushTryEntry(locs) {
  18217. var entry = {
  18218. tryLoc: locs[0]
  18219. };
  18220. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  18221. }
  18222. function resetTryEntry(entry) {
  18223. var record = entry.completion || {};
  18224. record.type = "normal", delete record.arg, entry.completion = record;
  18225. }
  18226. function Context(tryLocsList) {
  18227. this.tryEntries = [{
  18228. tryLoc: "root"
  18229. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  18230. }
  18231. function values(iterable) {
  18232. if (iterable) {
  18233. var iteratorMethod = iterable[iteratorSymbol];
  18234. if (iteratorMethod) return iteratorMethod.call(iterable);
  18235. if ("function" == typeof iterable.next) return iterable;
  18236. if (!isNaN(iterable.length)) {
  18237. var i = -1,
  18238. next = function next() {
  18239. for (; ++i < iterable.length;) {
  18240. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  18241. }
  18242. return next.value = undefined, next.done = !0, next;
  18243. };
  18244. return next.next = next;
  18245. }
  18246. }
  18247. return {
  18248. next: doneResult
  18249. };
  18250. }
  18251. function doneResult() {
  18252. return {
  18253. value: undefined,
  18254. done: !0
  18255. };
  18256. }
  18257. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  18258. value: GeneratorFunctionPrototype,
  18259. configurable: !0
  18260. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  18261. value: GeneratorFunction,
  18262. configurable: !0
  18263. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  18264. var ctor = "function" == typeof genFun && genFun.constructor;
  18265. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  18266. }, exports.mark = function (genFun) {
  18267. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  18268. }, exports.awrap = function (arg) {
  18269. return {
  18270. __await: arg
  18271. };
  18272. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  18273. return this;
  18274. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  18275. void 0 === PromiseImpl && (PromiseImpl = Promise);
  18276. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  18277. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  18278. return result.done ? result.value : iter.next();
  18279. });
  18280. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  18281. return this;
  18282. }), define(Gp, "toString", function () {
  18283. return "[object Generator]";
  18284. }), exports.keys = function (val) {
  18285. var object = Object(val),
  18286. keys = [];
  18287. for (var key in object) {
  18288. keys.push(key);
  18289. }
  18290. return keys.reverse(), function next() {
  18291. for (; keys.length;) {
  18292. var key = keys.pop();
  18293. if (key in object) return next.value = key, next.done = !1, next;
  18294. }
  18295. return next.done = !0, next;
  18296. };
  18297. }, exports.values = values, Context.prototype = {
  18298. constructor: Context,
  18299. reset: function reset(skipTempReset) {
  18300. 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) {
  18301. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  18302. }
  18303. },
  18304. stop: function stop() {
  18305. this.done = !0;
  18306. var rootRecord = this.tryEntries[0].completion;
  18307. if ("throw" === rootRecord.type) throw rootRecord.arg;
  18308. return this.rval;
  18309. },
  18310. dispatchException: function dispatchException(exception) {
  18311. if (this.done) throw exception;
  18312. var context = this;
  18313. function handle(loc, caught) {
  18314. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  18315. }
  18316. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  18317. var entry = this.tryEntries[i],
  18318. record = entry.completion;
  18319. if ("root" === entry.tryLoc) return handle("end");
  18320. if (entry.tryLoc <= this.prev) {
  18321. var hasCatch = hasOwn.call(entry, "catchLoc"),
  18322. hasFinally = hasOwn.call(entry, "finallyLoc");
  18323. if (hasCatch && hasFinally) {
  18324. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  18325. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  18326. } else if (hasCatch) {
  18327. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  18328. } else {
  18329. if (!hasFinally) throw new Error("try statement without catch or finally");
  18330. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  18331. }
  18332. }
  18333. }
  18334. },
  18335. abrupt: function abrupt(type, arg) {
  18336. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  18337. var entry = this.tryEntries[i];
  18338. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  18339. var finallyEntry = entry;
  18340. break;
  18341. }
  18342. }
  18343. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  18344. var record = finallyEntry ? finallyEntry.completion : {};
  18345. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  18346. },
  18347. complete: function complete(record, afterLoc) {
  18348. if ("throw" === record.type) throw record.arg;
  18349. 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;
  18350. },
  18351. finish: function finish(finallyLoc) {
  18352. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  18353. var entry = this.tryEntries[i];
  18354. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  18355. }
  18356. },
  18357. "catch": function _catch(tryLoc) {
  18358. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  18359. var entry = this.tryEntries[i];
  18360. if (entry.tryLoc === tryLoc) {
  18361. var record = entry.completion;
  18362. if ("throw" === record.type) {
  18363. var thrown = record.arg;
  18364. resetTryEntry(entry);
  18365. }
  18366. return thrown;
  18367. }
  18368. }
  18369. throw new Error("illegal catch attempt");
  18370. },
  18371. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  18372. return this.delegate = {
  18373. iterator: values(iterable),
  18374. resultName: resultName,
  18375. nextLoc: nextLoc
  18376. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  18377. }
  18378. }, exports;
  18379. }
  18380. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18381. /***/ }),
  18382. /***/ 31:
  18383. /*!**********************************************************************!*\
  18384. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  18385. \**********************************************************************/
  18386. /*! no static exports found */
  18387. /***/ (function(module, exports) {
  18388. function _assertThisInitialized(self) {
  18389. if (self === void 0) {
  18390. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  18391. }
  18392. return self;
  18393. }
  18394. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18395. /***/ }),
  18396. /***/ 32:
  18397. /*!*****************************************************************!*\
  18398. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  18399. \*****************************************************************/
  18400. /*! no static exports found */
  18401. /***/ (function(module, exports) {
  18402. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  18403. try {
  18404. var info = gen[key](arg);
  18405. var value = info.value;
  18406. } catch (error) {
  18407. reject(error);
  18408. return;
  18409. }
  18410. if (info.done) {
  18411. resolve(value);
  18412. } else {
  18413. Promise.resolve(value).then(_next, _throw);
  18414. }
  18415. }
  18416. function _asyncToGenerator(fn) {
  18417. return function () {
  18418. var self = this,
  18419. args = arguments;
  18420. return new Promise(function (resolve, reject) {
  18421. var gen = fn.apply(self, args);
  18422. function _next(value) {
  18423. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  18424. }
  18425. function _throw(err) {
  18426. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  18427. }
  18428. _next(undefined);
  18429. });
  18430. };
  18431. }
  18432. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18433. /***/ }),
  18434. /***/ 33:
  18435. /*!*********************************************************!*\
  18436. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  18437. \*********************************************************/
  18438. /*! no static exports found */
  18439. /***/ (function(module, exports, __webpack_require__) {
  18440. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  18441. function _inherits(subClass, superClass) {
  18442. if (typeof superClass !== "function" && superClass !== null) {
  18443. throw new TypeError("Super expression must either be null or a function");
  18444. }
  18445. subClass.prototype = Object.create(superClass && superClass.prototype, {
  18446. constructor: {
  18447. value: subClass,
  18448. writable: true,
  18449. configurable: true
  18450. }
  18451. });
  18452. Object.defineProperty(subClass, "prototype", {
  18453. writable: false
  18454. });
  18455. if (superClass) setPrototypeOf(subClass, superClass);
  18456. }
  18457. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18458. /***/ }),
  18459. /***/ 34:
  18460. /*!**************************************************************************!*\
  18461. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  18462. \**************************************************************************/
  18463. /*! no static exports found */
  18464. /***/ (function(module, exports, __webpack_require__) {
  18465. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18466. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 31);
  18467. function _possibleConstructorReturn(self, call) {
  18468. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  18469. return call;
  18470. } else if (call !== void 0) {
  18471. throw new TypeError("Derived constructors may only return object or undefined");
  18472. }
  18473. return assertThisInitialized(self);
  18474. }
  18475. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18476. /***/ }),
  18477. /***/ 35:
  18478. /*!***************************************************************!*\
  18479. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  18480. \***************************************************************/
  18481. /*! no static exports found */
  18482. /***/ (function(module, exports) {
  18483. function _getPrototypeOf(o) {
  18484. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  18485. return o.__proto__ || Object.getPrototypeOf(o);
  18486. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18487. return _getPrototypeOf(o);
  18488. }
  18489. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18490. /***/ }),
  18491. /***/ 36:
  18492. /*!****************************************************************!*\
  18493. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  18494. \****************************************************************/
  18495. /*! no static exports found */
  18496. /***/ (function(module, exports, __webpack_require__) {
  18497. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 35);
  18498. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  18499. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 37);
  18500. var construct = __webpack_require__(/*! ./construct.js */ 15);
  18501. function _wrapNativeSuper(Class) {
  18502. var _cache = typeof Map === "function" ? new Map() : undefined;
  18503. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  18504. if (Class === null || !isNativeFunction(Class)) return Class;
  18505. if (typeof Class !== "function") {
  18506. throw new TypeError("Super expression must either be null or a function");
  18507. }
  18508. if (typeof _cache !== "undefined") {
  18509. if (_cache.has(Class)) return _cache.get(Class);
  18510. _cache.set(Class, Wrapper);
  18511. }
  18512. function Wrapper() {
  18513. return construct(Class, arguments, getPrototypeOf(this).constructor);
  18514. }
  18515. Wrapper.prototype = Object.create(Class.prototype, {
  18516. constructor: {
  18517. value: Wrapper,
  18518. enumerable: false,
  18519. writable: true,
  18520. configurable: true
  18521. }
  18522. });
  18523. return setPrototypeOf(Wrapper, Class);
  18524. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18525. return _wrapNativeSuper(Class);
  18526. }
  18527. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18528. /***/ }),
  18529. /***/ 37:
  18530. /*!*****************************************************************!*\
  18531. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  18532. \*****************************************************************/
  18533. /*! no static exports found */
  18534. /***/ (function(module, exports) {
  18535. function _isNativeFunction(fn) {
  18536. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  18537. }
  18538. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18539. /***/ }),
  18540. /***/ 38:
  18541. /*!*********************************************************************!*\
  18542. !*** D:/project/product_wx/pages.json?{"type":"origin-pages-json"} ***!
  18543. \*********************************************************************/
  18544. /*! no static exports found */
  18545. /***/ (function(module, exports, __webpack_require__) {
  18546. "use strict";
  18547. Object.defineProperty(exports, "__esModule", {
  18548. value: true
  18549. });
  18550. exports.default = void 0;
  18551. var _default = {
  18552. "pages": [{
  18553. "path": "pages/login/login",
  18554. "style": {
  18555. "navigationBarTitleText": "登录",
  18556. "app-plus": {
  18557. "titleNView": {
  18558. "buttons": [{
  18559. "text": "",
  18560. "fontSrc": "/static/uni.ttf",
  18561. "fontSize": "22px",
  18562. "color": "#FFFFFF"
  18563. }]
  18564. }
  18565. },
  18566. "usingComponents": {
  18567. "van-button": "/wxcomponents/weapp/dist/button/index",
  18568. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18569. "van-field": "/wxcomponents/weapp/dist/field/index",
  18570. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18571. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18572. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  18573. }
  18574. }
  18575. }, {
  18576. "path": "pages/login2/login",
  18577. "style": {
  18578. "navigationBarTitleText": "登录",
  18579. "app-plus": {
  18580. "titleNView": {
  18581. "buttons": [{
  18582. "text": "",
  18583. "fontSrc": "/static/uni.ttf",
  18584. "fontSize": "22px",
  18585. "color": "#FFFFFF"
  18586. }]
  18587. }
  18588. },
  18589. "usingComponents": {
  18590. "van-button": "/wxcomponents/weapp/dist/button/index",
  18591. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18592. "van-field": "/wxcomponents/weapp/dist/field/index",
  18593. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18594. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18595. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  18596. }
  18597. }
  18598. }, {
  18599. "path": "pages/index/index",
  18600. "style": {
  18601. "navigationBarTitleText": "首页"
  18602. },
  18603. "usingComponents": {
  18604. "van-button": "/wxcomponents/weapp/dist/button/index",
  18605. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18606. "van-field": "/wxcomponents/weapp/dist/field/index",
  18607. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18608. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18609. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  18610. }
  18611. }, {
  18612. "path": "pages/mine/mine",
  18613. "style": {
  18614. "navigationBarTitleText": "我的",
  18615. "app-plus": {
  18616. "bounce": "vertical",
  18617. "titleNView": {
  18618. "buttons": [{
  18619. "text": "",
  18620. "fontSrc": "/static/uni.ttf",
  18621. "fontSize": "22px",
  18622. "color": "#FFFFFF"
  18623. }]
  18624. }
  18625. },
  18626. "usingComponents": {
  18627. "van-button": "/wxcomponents/weapp/dist/button/index",
  18628. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18629. "van-field": "/wxcomponents/weapp/dist/field/index",
  18630. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18631. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18632. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18633. "van-icon": "/wxcomponents/weapp/dist/icon/index"
  18634. }
  18635. }
  18636. }],
  18637. "subPackages": [{
  18638. "root": "pages/subPackages",
  18639. "pages": [{
  18640. "path": "gocompnay/index",
  18641. "style": {
  18642. "navigationBarTitleText": "企业端",
  18643. "enablePullDownRefresh": true,
  18644. "onReachBottomDistance": 100,
  18645. "app-plus": {
  18646. "bounce": "vertical",
  18647. "titleNView": {
  18648. "buttons": [{
  18649. "text": "",
  18650. "fontSrc": "/static/uni.ttf",
  18651. "fontSize": "22px",
  18652. "color": "#FFFFFF"
  18653. }]
  18654. }
  18655. },
  18656. "component": true
  18657. }
  18658. }, {
  18659. "path": "eventRelease/index",
  18660. "style": {
  18661. "navigationBarTitleText": "活动发布",
  18662. "enablePullDownRefresh": true,
  18663. "onReachBottomDistance": 100,
  18664. "app-plus": {
  18665. "bounce": "vertical",
  18666. "titleNView": {
  18667. "buttons": [{
  18668. "text": "",
  18669. "fontSrc": "/static/uni.ttf",
  18670. "fontSize": "22px",
  18671. "color": "#FFFFFF"
  18672. }]
  18673. }
  18674. },
  18675. "component": true,
  18676. "usingComponents": {
  18677. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18678. "van-button": "/wxcomponents/weapp/dist/button/index",
  18679. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18680. "van-field": "/wxcomponents/weapp/dist/field/index",
  18681. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18682. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18683. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18684. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18685. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18686. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18687. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18688. }
  18689. }
  18690. }, {
  18691. "path": "eventRelease/add",
  18692. "style": {
  18693. "navigationBarTitleText": "活动发布",
  18694. "enablePullDownRefresh": true,
  18695. "onReachBottomDistance": 100,
  18696. "app-plus": {
  18697. "bounce": "vertical",
  18698. "titleNView": {
  18699. "buttons": [{
  18700. "text": "",
  18701. "fontSrc": "/static/uni.ttf",
  18702. "fontSize": "22px",
  18703. "color": "#FFFFFF"
  18704. }]
  18705. }
  18706. },
  18707. "component": true,
  18708. "usingComponents": {
  18709. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18710. "van-button": "/wxcomponents/weapp/dist/button/index",
  18711. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18712. "van-field": "/wxcomponents/weapp/dist/field/index",
  18713. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18714. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18715. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18716. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18717. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18718. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18719. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  18720. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18721. }
  18722. }
  18723. }, {
  18724. "path": "venueRoom/meetingroom",
  18725. "style": {
  18726. "navigationBarTitleText": "场馆审核",
  18727. "enablePullDownRefresh": true,
  18728. "onReachBottomDistance": 100,
  18729. "app-plus": {
  18730. "bounce": "vertical",
  18731. "titleNView": {
  18732. "buttons": [{
  18733. "text": "",
  18734. "fontSrc": "/static/uni.ttf",
  18735. "fontSize": "22px",
  18736. "color": "#FFFFFF"
  18737. }]
  18738. }
  18739. },
  18740. "component": true,
  18741. "usingComponents": {
  18742. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18743. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18744. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18745. "van-button": "/wxcomponents/weapp/dist/button/index",
  18746. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18747. "van-field": "/wxcomponents/weapp/dist/field/index",
  18748. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18749. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18750. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18751. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18752. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18753. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18754. }
  18755. }
  18756. }, {
  18757. "path": "activity/index",
  18758. "style": {
  18759. "navigationBarTitleText": "活动核销签到",
  18760. "enablePullDownRefresh": true,
  18761. "onReachBottomDistance": 100,
  18762. "app-plus": {
  18763. "bounce": "vertical",
  18764. "titleNView": {
  18765. "buttons": [{
  18766. "text": "",
  18767. "fontSrc": "/static/uni.ttf",
  18768. "fontSize": "22px",
  18769. "color": "#FFFFFF"
  18770. }]
  18771. }
  18772. },
  18773. "component": true,
  18774. "usingComponents": {
  18775. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18776. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18777. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18778. "van-button": "/wxcomponents/weapp/dist/button/index",
  18779. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18780. "van-field": "/wxcomponents/weapp/dist/field/index",
  18781. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18782. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18783. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18784. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18785. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18786. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18787. }
  18788. }
  18789. }, {
  18790. "path": "activity/code",
  18791. "style": {
  18792. "navigationBarTitleText": "活动核销扫码确认签到",
  18793. "enablePullDownRefresh": true,
  18794. "onReachBottomDistance": 100,
  18795. "app-plus": {
  18796. "bounce": "vertical",
  18797. "titleNView": {
  18798. "buttons": [{
  18799. "text": "",
  18800. "fontSrc": "/static/uni.ttf",
  18801. "fontSize": "22px",
  18802. "color": "#FFFFFF"
  18803. }]
  18804. }
  18805. },
  18806. "component": true,
  18807. "usingComponents": {
  18808. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18809. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18810. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18811. "van-button": "/wxcomponents/weapp/dist/button/index",
  18812. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18813. "van-field": "/wxcomponents/weapp/dist/field/index",
  18814. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18815. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18816. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18817. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18818. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18819. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18820. }
  18821. }
  18822. }, {
  18823. "path": "activityPromulgate/list",
  18824. "style": {
  18825. "navigationBarTitleText": "活动发布",
  18826. "enablePullDownRefresh": true,
  18827. "onReachBottomDistance": 100,
  18828. "app-plus": {
  18829. "bounce": "vertical",
  18830. "titleNView": {
  18831. "buttons": [{
  18832. "text": "",
  18833. "fontSrc": "/static/uni.ttf",
  18834. "fontSize": "22px",
  18835. "color": "#FFFFFF"
  18836. }]
  18837. }
  18838. },
  18839. "component": true,
  18840. "usingComponents": {
  18841. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18842. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18843. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18844. "van-button": "/wxcomponents/weapp/dist/button/index",
  18845. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18846. "van-field": "/wxcomponents/weapp/dist/field/index",
  18847. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18848. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18849. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18850. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18851. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18852. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18853. }
  18854. }
  18855. }, {
  18856. "path": "password/index",
  18857. "style": {
  18858. "navigationBarTitleText": "修改密码",
  18859. "enablePullDownRefresh": true,
  18860. "onReachBottomDistance": 100,
  18861. "app-plus": {
  18862. "bounce": "vertical",
  18863. "titleNView": {
  18864. "buttons": [{
  18865. "text": "",
  18866. "fontSrc": "/static/uni.ttf",
  18867. "fontSize": "22px",
  18868. "color": "#FFFFFF"
  18869. }]
  18870. }
  18871. },
  18872. "component": true,
  18873. "usingComponents": {
  18874. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18875. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18876. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18877. "van-button": "/wxcomponents/weapp/dist/button/index",
  18878. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18879. "van-field": "/wxcomponents/weapp/dist/field/index",
  18880. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18881. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18882. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18883. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18884. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18885. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18886. }
  18887. }
  18888. }, {
  18889. "path": "repairDispatch-app/index",
  18890. "style": {
  18891. "navigationBarTitleText": "报修派单",
  18892. "enablePullDownRefresh": true,
  18893. "onReachBottomDistance": 100,
  18894. "app-plus": {
  18895. "bounce": "vertical",
  18896. "titleNView": {
  18897. "buttons": [{
  18898. "text": "",
  18899. "fontSrc": "/static/uni.ttf",
  18900. "fontSize": "22px",
  18901. "color": "#FFFFFF"
  18902. }]
  18903. }
  18904. },
  18905. "component": true,
  18906. "usingComponents": {
  18907. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18908. "van-button": "/wxcomponents/weapp/dist/button/index",
  18909. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18910. "van-field": "/wxcomponents/weapp/dist/field/index",
  18911. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18912. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18913. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18914. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18915. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18916. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18917. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18918. }
  18919. }
  18920. }, {
  18921. "path": "repairDispatch-app/add",
  18922. "style": {
  18923. "navigationBarTitleText": "新增报修派单",
  18924. "enablePullDownRefresh": true,
  18925. "onReachBottomDistance": 100,
  18926. "app-plus": {
  18927. "bounce": "vertical",
  18928. "titleNView": {
  18929. "buttons": [{
  18930. "text": "",
  18931. "fontSrc": "/static/uni.ttf",
  18932. "fontSize": "22px",
  18933. "color": "#FFFFFF"
  18934. }]
  18935. }
  18936. },
  18937. "component": true,
  18938. "usingComponents": {
  18939. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18940. "van-button": "/wxcomponents/weapp/dist/button/index",
  18941. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18942. "van-field": "/wxcomponents/weapp/dist/field/index",
  18943. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18944. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18945. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18946. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18947. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18948. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18949. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18950. }
  18951. }
  18952. }, {
  18953. "path": "repairprocessing-app/detail",
  18954. "style": {
  18955. "navigationBarTitleText": "报修处理-详情",
  18956. "enablePullDownRefresh": true,
  18957. "onReachBottomDistance": 100,
  18958. "app-plus": {
  18959. "bounce": "vertical",
  18960. "titleNView": {
  18961. "buttons": [{
  18962. "text": "",
  18963. "fontSrc": "/static/uni.ttf",
  18964. "fontSize": "22px",
  18965. "color": "#FFFFFF"
  18966. }]
  18967. }
  18968. },
  18969. "component": true,
  18970. "usingComponents": {
  18971. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  18972. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18973. "van-button": "/wxcomponents/weapp/dist/button/index",
  18974. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18975. "van-field": "/wxcomponents/weapp/dist/field/index",
  18976. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18977. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18978. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18979. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18980. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18981. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18982. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18983. }
  18984. }
  18985. }, {
  18986. "path": "repairprocessing-app/index",
  18987. "style": {
  18988. "navigationBarTitleText": "报修处理",
  18989. "enablePullDownRefresh": true,
  18990. "onReachBottomDistance": 100,
  18991. "app-plus": {
  18992. "bounce": "vertical",
  18993. "titleNView": {
  18994. "buttons": [{
  18995. "text": "",
  18996. "fontSrc": "/static/uni.ttf",
  18997. "fontSize": "22px",
  18998. "color": "#FFFFFF"
  18999. }]
  19000. }
  19001. },
  19002. "component": true,
  19003. "usingComponents": {
  19004. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19005. "van-button": "/wxcomponents/weapp/dist/button/index",
  19006. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19007. "van-field": "/wxcomponents/weapp/dist/field/index",
  19008. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19009. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19010. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19011. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19012. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19013. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19014. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19015. }
  19016. }
  19017. }, {
  19018. "path": "modifySend/index",
  19019. "style": {
  19020. "navigationBarTitleText": "整改派单",
  19021. "enablePullDownRefresh": true,
  19022. "onReachBottomDistance": 100,
  19023. "app-plus": {
  19024. "bounce": "vertical",
  19025. "titleNView": {
  19026. "buttons": [{
  19027. "text": "",
  19028. "fontSrc": "/static/uni.ttf",
  19029. "fontSize": "22px",
  19030. "color": "#FFFFFF"
  19031. }]
  19032. }
  19033. },
  19034. "component": true,
  19035. "usingComponents": {
  19036. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19037. "van-button": "/wxcomponents/weapp/dist/button/index",
  19038. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19039. "van-field": "/wxcomponents/weapp/dist/field/index",
  19040. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19041. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19042. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19043. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19044. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19045. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19046. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19047. }
  19048. }
  19049. }, {
  19050. "path": "modifyReport/index",
  19051. "style": {
  19052. "navigationBarTitleText": "整改填报",
  19053. "enablePullDownRefresh": true,
  19054. "onReachBottomDistance": 100,
  19055. "app-plus": {
  19056. "bounce": "vertical",
  19057. "titleNView": {
  19058. "buttons": [{
  19059. "text": "",
  19060. "fontSrc": "/static/uni.ttf",
  19061. "fontSize": "22px",
  19062. "color": "#FFFFFF"
  19063. }]
  19064. }
  19065. },
  19066. "component": true,
  19067. "usingComponents": {
  19068. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19069. "van-button": "/wxcomponents/weapp/dist/button/index",
  19070. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19071. "van-field": "/wxcomponents/weapp/dist/field/index",
  19072. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19073. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19074. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19075. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19076. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19077. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19078. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19079. }
  19080. }
  19081. }, {
  19082. "path": "modifyReport/detail",
  19083. "style": {
  19084. "navigationBarTitleText": "整改详情",
  19085. "enablePullDownRefresh": true,
  19086. "onReachBottomDistance": 100,
  19087. "app-plus": {
  19088. "bounce": "vertical",
  19089. "titleNView": {
  19090. "buttons": [{
  19091. "text": "",
  19092. "fontSrc": "/static/uni.ttf",
  19093. "fontSize": "22px",
  19094. "color": "#FFFFFF"
  19095. }]
  19096. }
  19097. },
  19098. "component": true,
  19099. "usingComponents": {
  19100. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19101. "van-button": "/wxcomponents/weapp/dist/button/index",
  19102. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19103. "van-field": "/wxcomponents/weapp/dist/field/index",
  19104. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19105. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19106. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19107. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19108. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19109. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19110. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19111. }
  19112. }
  19113. }, {
  19114. "path": "modifyHandle/handle",
  19115. "style": {
  19116. "navigationBarTitleText": "整改处理 ",
  19117. "enablePullDownRefresh": true,
  19118. "onReachBottomDistance": 100,
  19119. "app-plus": {
  19120. "bounce": "vertical",
  19121. "titleNView": {
  19122. "buttons": [{
  19123. "text": "",
  19124. "fontSrc": "/static/uni.ttf",
  19125. "fontSize": "22px",
  19126. "color": "#FFFFFF"
  19127. }]
  19128. }
  19129. },
  19130. "component": true,
  19131. "usingComponents": {
  19132. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19133. "van-button": "/wxcomponents/weapp/dist/button/index",
  19134. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19135. "van-field": "/wxcomponents/weapp/dist/field/index",
  19136. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19137. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19138. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19139. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19140. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19141. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19142. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19143. }
  19144. }
  19145. }, {
  19146. "path": "modifyHandle/index",
  19147. "style": {
  19148. "navigationBarTitleText": "整改处理",
  19149. "enablePullDownRefresh": true,
  19150. "onReachBottomDistance": 100,
  19151. "app-plus": {
  19152. "bounce": "vertical",
  19153. "titleNView": {
  19154. "buttons": [{
  19155. "text": "",
  19156. "fontSrc": "/static/uni.ttf",
  19157. "fontSize": "22px",
  19158. "color": "#FFFFFF"
  19159. }]
  19160. }
  19161. },
  19162. "component": true,
  19163. "usingComponents": {
  19164. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19165. "van-button": "/wxcomponents/weapp/dist/button/index",
  19166. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19167. "van-field": "/wxcomponents/weapp/dist/field/index",
  19168. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19169. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19170. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19171. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19172. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19173. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19174. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19175. }
  19176. }
  19177. }, {
  19178. "path": "modifyReport/add",
  19179. "style": {
  19180. "navigationBarTitleText": "整改新增",
  19181. "enablePullDownRefresh": true,
  19182. "onReachBottomDistance": 100,
  19183. "app-plus": {
  19184. "bounce": "vertical",
  19185. "titleNView": {
  19186. "buttons": [{
  19187. "text": "",
  19188. "fontSrc": "/static/uni.ttf",
  19189. "fontSize": "22px",
  19190. "color": "#FFFFFF"
  19191. }]
  19192. }
  19193. },
  19194. "component": true,
  19195. "usingComponents": {
  19196. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19197. "van-button": "/wxcomponents/weapp/dist/button/index",
  19198. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19199. "van-field": "/wxcomponents/weapp/dist/field/index",
  19200. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19201. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19202. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19203. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19204. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19205. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19206. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19207. }
  19208. }
  19209. }, {
  19210. "path": "toread/index",
  19211. "style": {
  19212. "navigationBarTitleText": "我的待阅",
  19213. "enablePullDownRefresh": true,
  19214. "onReachBottomDistance": 100,
  19215. "app-plus": {
  19216. "bounce": "vertical",
  19217. "titleNView": {
  19218. "buttons": [{
  19219. "text": "",
  19220. "fontSrc": "/static/uni.ttf",
  19221. "fontSize": "22px",
  19222. "color": "#FFFFFF"
  19223. }]
  19224. }
  19225. },
  19226. "component": true,
  19227. "usingComponents": {
  19228. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19229. "van-button": "/wxcomponents/weapp/dist/button/index",
  19230. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19231. "van-field": "/wxcomponents/weapp/dist/field/index",
  19232. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19233. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19234. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19235. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19236. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19237. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19238. }
  19239. }
  19240. }, {
  19241. "path": "todo/index",
  19242. "style": {
  19243. "navigationBarTitleText": "我的待办",
  19244. "enablePullDownRefresh": true,
  19245. "onReachBottomDistance": 100,
  19246. "app-plus": {
  19247. "bounce": "vertical",
  19248. "titleNView": {
  19249. "buttons": [{
  19250. "text": "",
  19251. "fontSrc": "/static/uni.ttf",
  19252. "fontSize": "22px",
  19253. "color": "#FFFFFF"
  19254. }]
  19255. }
  19256. },
  19257. "component": true,
  19258. "usingComponents": {
  19259. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19260. "van-button": "/wxcomponents/weapp/dist/button/index",
  19261. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19262. "van-field": "/wxcomponents/weapp/dist/field/index",
  19263. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19264. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19265. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19266. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19267. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19268. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19269. }
  19270. }
  19271. }, {
  19272. "path": "venueRoom/confirm",
  19273. "style": {
  19274. "navigationBarTitleText": "场馆-审核",
  19275. "enablePullDownRefresh": true,
  19276. "onReachBottomDistance": 100,
  19277. "app-plus": {
  19278. "bounce": "vertical",
  19279. "titleNView": {
  19280. "buttons": [{
  19281. "text": "",
  19282. "fontSrc": "/static/uni.ttf",
  19283. "fontSize": "22px",
  19284. "color": "#FFFFFF"
  19285. }]
  19286. }
  19287. },
  19288. "component": true,
  19289. "usingComponents": {
  19290. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19291. "van-button": "/wxcomponents/weapp/dist/button/index",
  19292. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19293. "van-field": "/wxcomponents/weapp/dist/field/index",
  19294. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19295. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19296. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19297. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19298. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19299. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19300. }
  19301. }
  19302. }, {
  19303. "path": "housedetails/housedetails",
  19304. "style": {
  19305. "navigationBarTitleText": "房源详情",
  19306. "enablePullDownRefresh": true,
  19307. "onReachBottomDistance": 100,
  19308. "app-plus": {
  19309. "bounce": "vertical",
  19310. "titleNView": {
  19311. "buttons": [{
  19312. "text": "",
  19313. "fontSrc": "/static/uni.ttf",
  19314. "fontSize": "22px",
  19315. "color": "#FFFFFF"
  19316. }]
  19317. }
  19318. },
  19319. "component": true,
  19320. "usingComponents": {
  19321. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19322. "van-button": "/wxcomponents/weapp/dist/button/index",
  19323. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19324. "van-field": "/wxcomponents/weapp/dist/field/index",
  19325. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19326. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19327. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19328. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19329. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19330. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19331. }
  19332. }
  19333. }, {
  19334. "path": "addintention/addintention",
  19335. "style": {
  19336. "navigationBarTitleText": "新增意向",
  19337. "enablePullDownRefresh": true,
  19338. "onReachBottomDistance": 100,
  19339. "app-plus": {
  19340. "bounce": "vertical",
  19341. "titleNView": {
  19342. "buttons": [{
  19343. "text": "",
  19344. "fontSrc": "/static/uni.ttf",
  19345. "fontSize": "22px",
  19346. "color": "#FFFFFF"
  19347. }]
  19348. }
  19349. },
  19350. "component": true,
  19351. "usingComponents": {
  19352. "van-button": "/wxcomponents/weapp/dist/button/index",
  19353. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19354. "van-field": "/wxcomponents/weapp/dist/field/index",
  19355. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19356. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19357. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19358. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19359. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19360. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19361. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19362. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19363. }
  19364. }
  19365. }, {
  19366. "path": "chosseHouse/chosseHouse",
  19367. "style": {
  19368. "navigationBarTitleText": "选择房源",
  19369. "enablePullDownRefresh": true,
  19370. "onReachBottomDistance": 100,
  19371. "app-plus": {
  19372. "bounce": "vertical",
  19373. "titleNView": {
  19374. "buttons": [{
  19375. "text": "",
  19376. "fontSrc": "/static/uni.ttf",
  19377. "fontSize": "22px",
  19378. "color": "#FFFFFF"
  19379. }]
  19380. }
  19381. },
  19382. "component": true,
  19383. "usingComponents": {
  19384. "van-button": "/wxcomponents/weapp/dist/button/index",
  19385. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19386. "van-field": "/wxcomponents/weapp/dist/field/index",
  19387. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19388. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19389. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19390. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19391. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19392. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19393. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19394. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19395. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19396. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19397. }
  19398. }
  19399. }, {
  19400. "path": "companyHouse/companyHouse",
  19401. "style": {
  19402. "navigationBarTitleText": "企业库",
  19403. "enablePullDownRefresh": true,
  19404. "onReachBottomDistance": 100,
  19405. "app-plus": {
  19406. "bounce": "vertical",
  19407. "titleNView": {
  19408. "buttons": [{
  19409. "text": "",
  19410. "fontSrc": "/static/uni.ttf",
  19411. "fontSize": "22px",
  19412. "color": "#FFFFFF"
  19413. }]
  19414. }
  19415. },
  19416. "component": true,
  19417. "usingComponents": {
  19418. "van-button": "/wxcomponents/weapp/dist/button/index",
  19419. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19420. "van-field": "/wxcomponents/weapp/dist/field/index",
  19421. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19422. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19423. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19424. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19425. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19426. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19427. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19428. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19429. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19430. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19431. }
  19432. }
  19433. }, {
  19434. "path": "companyreport/components/reportDetails",
  19435. "style": {
  19436. "navigationBarTitleText": "走访上报-详情",
  19437. "enablePullDownRefresh": true,
  19438. "onReachBottomDistance": 100,
  19439. "app-plus": {
  19440. "bounce": "vertical",
  19441. "titleNView": {
  19442. "buttons": [{
  19443. "text": "",
  19444. "fontSrc": "/static/uni.ttf",
  19445. "fontSize": "22px",
  19446. "color": "#FFFFFF"
  19447. }]
  19448. }
  19449. },
  19450. "component": true,
  19451. "usingComponents": {
  19452. "van-button": "/wxcomponents/weapp/dist/button/index",
  19453. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19454. "van-field": "/wxcomponents/weapp/dist/field/index",
  19455. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19456. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19457. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19458. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19459. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19460. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19461. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19462. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19463. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19464. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19465. }
  19466. }
  19467. }, {
  19468. "path": "merchants/merchants",
  19469. "style": {
  19470. "navigationBarTitleText": "我的招商",
  19471. "enablePullDownRefresh": true,
  19472. "onReachBottomDistance": 100,
  19473. "app-plus": {
  19474. "bounce": "vertical",
  19475. "titleNView": {
  19476. "buttons": [{
  19477. "text": "",
  19478. "fontSrc": "/static/uni.ttf",
  19479. "fontSize": "22px",
  19480. "color": "#FFFFFF"
  19481. }]
  19482. }
  19483. },
  19484. "component": true,
  19485. "usingComponents": {
  19486. "van-button": "/wxcomponents/weapp/dist/button/index",
  19487. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19488. "van-field": "/wxcomponents/weapp/dist/field/index",
  19489. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19490. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19491. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19492. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19493. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19494. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19495. }
  19496. }
  19497. }, {
  19498. "path": "merchants/components/mymechantsdetails",
  19499. "style": {
  19500. "navigationBarTitleText": "我的招商-详情",
  19501. "enablePullDownRefresh": true,
  19502. "onReachBottomDistance": 100,
  19503. "app-plus": {
  19504. "bounce": "vertical",
  19505. "titleNView": {
  19506. "buttons": [{
  19507. "text": "",
  19508. "fontSrc": "/static/uni.ttf",
  19509. "fontSize": "22px",
  19510. "color": "#FFFFFF"
  19511. }]
  19512. }
  19513. },
  19514. "component": true,
  19515. "usingComponents": {
  19516. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19517. "van-button": "/wxcomponents/weapp/dist/button/index",
  19518. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19519. "van-field": "/wxcomponents/weapp/dist/field/index",
  19520. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19521. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19522. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19523. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19524. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19525. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19526. }
  19527. }
  19528. }, {
  19529. "path": "reportRepair/index",
  19530. "style": {
  19531. "navigationBarTitleText": "报事报修",
  19532. "enablePullDownRefresh": true,
  19533. "onReachBottomDistance": 100,
  19534. "app-plus": {
  19535. "bounce": "vertical",
  19536. "titleNView": {
  19537. "buttons": [{
  19538. "text": "",
  19539. "fontSrc": "/static/uni.ttf",
  19540. "fontSize": "22px",
  19541. "color": "#FFFFFF"
  19542. }]
  19543. }
  19544. },
  19545. "component": true,
  19546. "usingComponents": {
  19547. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19548. "van-button": "/wxcomponents/weapp/dist/button/index",
  19549. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19550. "van-field": "/wxcomponents/weapp/dist/field/index",
  19551. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19552. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19553. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19554. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19555. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19556. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19557. }
  19558. }
  19559. }, {
  19560. "path": "companyreport/companyreport",
  19561. "style": {
  19562. "navigationBarTitleText": "走访上报",
  19563. "enablePullDownRefresh": true,
  19564. "onReachBottomDistance": 100,
  19565. "app-plus": {
  19566. "bounce": "vertical",
  19567. "titleNView": {
  19568. "buttons": [{
  19569. "text": "",
  19570. "fontSrc": "/static/uni.ttf",
  19571. "fontSize": "22px",
  19572. "color": "#FFFFFF"
  19573. }]
  19574. }
  19575. },
  19576. "component": true,
  19577. "usingComponents": {
  19578. "van-button": "/wxcomponents/weapp/dist/button/index",
  19579. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19580. "van-field": "/wxcomponents/weapp/dist/field/index",
  19581. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19582. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19583. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19584. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19585. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19586. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19587. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19588. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19589. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19590. }
  19591. }
  19592. }, {
  19593. "path": "economicDevelopmentReport/economic",
  19594. "style": {
  19595. "navigationBarTitleText": "经发填报",
  19596. "enablePullDownRefresh": true,
  19597. "onReachBottomDistance": 100,
  19598. "app-plus": {
  19599. "bounce": "vertical",
  19600. "titleNView": {
  19601. "buttons": [{
  19602. "text": "",
  19603. "fontSrc": "/static/uni.ttf",
  19604. "fontSize": "22px",
  19605. "color": "#FFFFFF"
  19606. }]
  19607. }
  19608. },
  19609. "component": true,
  19610. "usingComponents": {
  19611. "van-button": "/wxcomponents/weapp/dist/button/index",
  19612. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19613. "van-field": "/wxcomponents/weapp/dist/field/index",
  19614. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19615. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19616. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19617. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19618. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19619. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19620. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19621. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19622. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19623. }
  19624. }
  19625. }, {
  19626. "path": "enterPriseBill/index",
  19627. "style": {
  19628. "navigationBarTitleText": "企业账单",
  19629. "enablePullDownRefresh": true,
  19630. "onReachBottomDistance": 100,
  19631. "app-plus": {
  19632. "bounce": "vertical",
  19633. "titleNView": {
  19634. "buttons": [{
  19635. "text": "",
  19636. "fontSrc": "/static/uni.ttf",
  19637. "fontSize": "22px",
  19638. "color": "#FFFFFF"
  19639. }]
  19640. }
  19641. },
  19642. "component": true,
  19643. "usingComponents": {
  19644. "van-button": "/wxcomponents/weapp/dist/button/index",
  19645. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19646. "van-field": "/wxcomponents/weapp/dist/field/index",
  19647. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19648. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19649. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19650. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19651. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19652. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19653. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19654. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19655. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19656. }
  19657. }
  19658. }, {
  19659. "path": "enterPriseBill/detail",
  19660. "style": {
  19661. "navigationBarTitleText": "账单详情",
  19662. "enablePullDownRefresh": true,
  19663. "onReachBottomDistance": 100,
  19664. "app-plus": {
  19665. "bounce": "vertical",
  19666. "titleNView": {
  19667. "buttons": [{
  19668. "text": "",
  19669. "fontSrc": "/static/uni.ttf",
  19670. "fontSize": "22px",
  19671. "color": "#FFFFFF"
  19672. }]
  19673. }
  19674. },
  19675. "component": true,
  19676. "usingComponents": {
  19677. "van-button": "/wxcomponents/weapp/dist/button/index",
  19678. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19679. "van-field": "/wxcomponents/weapp/dist/field/index",
  19680. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19681. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19682. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19683. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19684. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19685. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19686. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19687. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19688. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19689. }
  19690. }
  19691. }],
  19692. "network": "all"
  19693. }],
  19694. "globalStyle": {
  19695. "pageOrientation": "portrait",
  19696. "navigationBarTitleText": "Hello uniapp",
  19697. "navigationBarTextStyle": "black",
  19698. "navigationBarBackgroundColor": "#FFFFFF",
  19699. "backgroundColor": "#FFFFFF",
  19700. "backgroundColorTop": "#FFFFFF",
  19701. "backgroundColorBottom": "#F4F5F6",
  19702. "usingComponents": {
  19703. "van-dropdown-menu": "/wxcomponents/weapp/dist/dropdown-menu/index",
  19704. "van-dropdown-item": "/wxcomponents/weapp/dist/dropdown-item/index",
  19705. "van-action-sheet": "/wxcomponents/weapp/dist/action-sheet/index",
  19706. "van-area": "/wxcomponents/weapp/dist/area/index",
  19707. "van-button": "/wxcomponents/weapp/dist/button/index",
  19708. "van-card": "/wxcomponents/weapp/dist/card/index",
  19709. "van-cell": "/wxcomponents/weapp/dist/cell/index",
  19710. "van-cell-group": "/wxcomponents/weapp/dist/cell-group/index",
  19711. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19712. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  19713. "van-col": "/wxcomponents/weapp/dist/col/index",
  19714. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19715. "van-field": "/wxcomponents/weapp/dist/field/index",
  19716. "van-goods-action": "/wxcomponents/weapp/dist/goods-action/index",
  19717. "van-goods-action-icon": "/wxcomponents/weapp/dist/goods-action-icon/index",
  19718. "van-goods-action-button": "/wxcomponents/weapp/dist/goods-action-button/index",
  19719. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19720. "van-loading": "/wxcomponents/weapp/dist/loading/index",
  19721. "van-nav-bar": "/wxcomponents/weapp/dist/nav-bar/index",
  19722. "van-notice-bar": "/wxcomponents/weapp/dist/notice-bar/index",
  19723. "van-notify": "/wxcomponents/weapp/dist/notify/index",
  19724. "van-panel": "/wxcomponents/weapp/dist/panel/index",
  19725. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19726. "van-progress": "/wxcomponents/weapp/dist/progress/index",
  19727. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19728. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19729. "van-row": "/wxcomponents/weapp/dist/row/index",
  19730. "van-search": "/wxcomponents/weapp/dist/search/index",
  19731. "van-slider": "/wxcomponents/weapp/dist/slider/index",
  19732. "van-stepper": "/wxcomponents/weapp/dist/stepper/index",
  19733. "van-sticky": "/wxcomponents/weapp/dist/sticky/index",
  19734. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  19735. "van-submit-bar": "/wxcomponents/weapp/dist/submit-bar/index",
  19736. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index",
  19737. "van-switch": "/wxcomponents/weapp/dist/switch/index",
  19738. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19739. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19740. "van-tabbar": "/wxcomponents/weapp/dist/tabbar/index",
  19741. "van-tabbar-item": "/wxcomponents/weapp/dist/tabbar-item/index",
  19742. "van-tag": "/wxcomponents/weapp/dist/tag/index",
  19743. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19744. "van-transition": "/wxcomponents/weapp/dist/transition/index",
  19745. "van-tree-select": "/wxcomponents/weapp/dist/tree-select/index",
  19746. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19747. "van-rate": "/wxcomponents/weapp/dist/rate/index",
  19748. "van-collapse": "/wxcomponents/weapp/dist/collapse/index",
  19749. "van-collapse-item": "/wxcomponents/weapp/dist/collapse-item/index",
  19750. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19751. "van-share-sheet": "/wxcomponents/weapp/dist/share-sheet/index",
  19752. "van-circle": "/wxcomponents/weapp/dist/circle/index",
  19753. "van-grid": "/wxcomponents/weapp/dist/grid/index",
  19754. "van-calendar": "/wxcomponents/weapp/dist/calendar/index"
  19755. }
  19756. },
  19757. "tabBar": {
  19758. "color": "#7A7E83",
  19759. "selectedColor": "#2527AA",
  19760. "borderStyle": "black",
  19761. "backgroundColor": "#F8F8F8",
  19762. "list": [{
  19763. "pagePath": "pages/index/index",
  19764. "iconPath": "static/home.png",
  19765. "selectedIconPath": "static/homeselect.png",
  19766. "text": "首页"
  19767. }, {
  19768. "pagePath": "pages/mine/mine",
  19769. "iconPath": "static/mine.png",
  19770. "selectedIconPath": "static/mineselect.png",
  19771. "text": "我的"
  19772. }]
  19773. },
  19774. "window": {
  19775. "backgroundTextStyle": "dark",
  19776. "navigationBarBackgroundColor": "#ffffff",
  19777. "navigationBarTitleText": "Demo",
  19778. "navigationBarTextStyle": "black",
  19779. "enablePullDownRefresh": true
  19780. },
  19781. "lazyCodeLoading": "requiredComponents"
  19782. };
  19783. exports.default = _default;
  19784. /***/ }),
  19785. /***/ 39:
  19786. /*!********************************************************!*\
  19787. !*** D:/project/product_wx/pages.json?{"type":"stat"} ***!
  19788. \********************************************************/
  19789. /*! no static exports found */
  19790. /***/ (function(module, exports, __webpack_require__) {
  19791. "use strict";
  19792. Object.defineProperty(exports, "__esModule", {
  19793. value: true
  19794. });
  19795. exports.default = void 0;
  19796. var _default = {
  19797. "appid": "__UNI__E97C301"
  19798. };
  19799. exports.default = _default;
  19800. /***/ }),
  19801. /***/ 4:
  19802. /*!**********************************************************************!*\
  19803. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  19804. \**********************************************************************/
  19805. /*! no static exports found */
  19806. /***/ (function(module, exports) {
  19807. function _interopRequireDefault(obj) {
  19808. return obj && obj.__esModule ? obj : {
  19809. "default": obj
  19810. };
  19811. }
  19812. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  19813. /***/ }),
  19814. /***/ 40:
  19815. /*!*********************************************************!*\
  19816. !*** D:/project/product_wx/pages.json?{"type":"style"} ***!
  19817. \*********************************************************/
  19818. /*! no static exports found */
  19819. /***/ (function(module, exports, __webpack_require__) {
  19820. "use strict";
  19821. Object.defineProperty(exports, "__esModule", {
  19822. value: true
  19823. });
  19824. exports.default = void 0;
  19825. var _default = {
  19826. "pages": {
  19827. "pages/login/login": {
  19828. "navigationBarTitleText": "登录"
  19829. },
  19830. "pages/login2/login": {
  19831. "navigationBarTitleText": "登录"
  19832. },
  19833. "pages/index/index": {
  19834. "navigationBarTitleText": "首页"
  19835. },
  19836. "pages/mine/mine": {
  19837. "navigationBarTitleText": "我的"
  19838. },
  19839. "pages/subPackages/gocompnay/index": {
  19840. "navigationBarTitleText": "企业端",
  19841. "enablePullDownRefresh": true,
  19842. "onReachBottomDistance": 100,
  19843. "component": true
  19844. },
  19845. "pages/subPackages/eventRelease/index": {
  19846. "navigationBarTitleText": "活动发布",
  19847. "enablePullDownRefresh": true,
  19848. "onReachBottomDistance": 100,
  19849. "component": true
  19850. },
  19851. "pages/subPackages/eventRelease/add": {
  19852. "navigationBarTitleText": "活动发布",
  19853. "enablePullDownRefresh": true,
  19854. "onReachBottomDistance": 100,
  19855. "component": true
  19856. },
  19857. "pages/subPackages/venueRoom/meetingroom": {
  19858. "navigationBarTitleText": "场馆审核",
  19859. "enablePullDownRefresh": true,
  19860. "onReachBottomDistance": 100,
  19861. "component": true
  19862. },
  19863. "pages/subPackages/activity/index": {
  19864. "navigationBarTitleText": "活动核销签到",
  19865. "enablePullDownRefresh": true,
  19866. "onReachBottomDistance": 100,
  19867. "component": true
  19868. },
  19869. "pages/subPackages/activity/code": {
  19870. "navigationBarTitleText": "活动核销扫码确认签到",
  19871. "enablePullDownRefresh": true,
  19872. "onReachBottomDistance": 100,
  19873. "component": true
  19874. },
  19875. "pages/subPackages/activityPromulgate/list": {
  19876. "navigationBarTitleText": "活动发布",
  19877. "enablePullDownRefresh": true,
  19878. "onReachBottomDistance": 100,
  19879. "component": true
  19880. },
  19881. "pages/subPackages/password/index": {
  19882. "navigationBarTitleText": "修改密码",
  19883. "enablePullDownRefresh": true,
  19884. "onReachBottomDistance": 100,
  19885. "component": true
  19886. },
  19887. "pages/subPackages/repairDispatch-app/index": {
  19888. "navigationBarTitleText": "报修派单",
  19889. "enablePullDownRefresh": true,
  19890. "onReachBottomDistance": 100,
  19891. "component": true
  19892. },
  19893. "pages/subPackages/repairDispatch-app/add": {
  19894. "navigationBarTitleText": "新增报修派单",
  19895. "enablePullDownRefresh": true,
  19896. "onReachBottomDistance": 100,
  19897. "component": true
  19898. },
  19899. "pages/subPackages/repairprocessing-app/detail": {
  19900. "navigationBarTitleText": "报修处理-详情",
  19901. "enablePullDownRefresh": true,
  19902. "onReachBottomDistance": 100,
  19903. "component": true
  19904. },
  19905. "pages/subPackages/repairprocessing-app/index": {
  19906. "navigationBarTitleText": "报修处理",
  19907. "enablePullDownRefresh": true,
  19908. "onReachBottomDistance": 100,
  19909. "component": true
  19910. },
  19911. "pages/subPackages/modifySend/index": {
  19912. "navigationBarTitleText": "整改派单",
  19913. "enablePullDownRefresh": true,
  19914. "onReachBottomDistance": 100,
  19915. "component": true
  19916. },
  19917. "pages/subPackages/modifyReport/index": {
  19918. "navigationBarTitleText": "整改填报",
  19919. "enablePullDownRefresh": true,
  19920. "onReachBottomDistance": 100,
  19921. "component": true
  19922. },
  19923. "pages/subPackages/modifyReport/detail": {
  19924. "navigationBarTitleText": "整改详情",
  19925. "enablePullDownRefresh": true,
  19926. "onReachBottomDistance": 100,
  19927. "component": true
  19928. },
  19929. "pages/subPackages/modifyHandle/handle": {
  19930. "navigationBarTitleText": "整改处理 ",
  19931. "enablePullDownRefresh": true,
  19932. "onReachBottomDistance": 100,
  19933. "component": true
  19934. },
  19935. "pages/subPackages/modifyHandle/index": {
  19936. "navigationBarTitleText": "整改处理",
  19937. "enablePullDownRefresh": true,
  19938. "onReachBottomDistance": 100,
  19939. "component": true
  19940. },
  19941. "pages/subPackages/modifyReport/add": {
  19942. "navigationBarTitleText": "整改新增",
  19943. "enablePullDownRefresh": true,
  19944. "onReachBottomDistance": 100,
  19945. "component": true
  19946. },
  19947. "pages/subPackages/toread/index": {
  19948. "navigationBarTitleText": "我的待阅",
  19949. "enablePullDownRefresh": true,
  19950. "onReachBottomDistance": 100,
  19951. "component": true
  19952. },
  19953. "pages/subPackages/todo/index": {
  19954. "navigationBarTitleText": "我的待办",
  19955. "enablePullDownRefresh": true,
  19956. "onReachBottomDistance": 100,
  19957. "component": true
  19958. },
  19959. "pages/subPackages/venueRoom/confirm": {
  19960. "navigationBarTitleText": "场馆-审核",
  19961. "enablePullDownRefresh": true,
  19962. "onReachBottomDistance": 100,
  19963. "component": true
  19964. },
  19965. "pages/subPackages/housedetails/housedetails": {
  19966. "navigationBarTitleText": "房源详情",
  19967. "enablePullDownRefresh": true,
  19968. "onReachBottomDistance": 100,
  19969. "component": true
  19970. },
  19971. "pages/subPackages/addintention/addintention": {
  19972. "navigationBarTitleText": "新增意向",
  19973. "enablePullDownRefresh": true,
  19974. "onReachBottomDistance": 100,
  19975. "component": true
  19976. },
  19977. "pages/subPackages/chosseHouse/chosseHouse": {
  19978. "navigationBarTitleText": "选择房源",
  19979. "enablePullDownRefresh": true,
  19980. "onReachBottomDistance": 100,
  19981. "component": true
  19982. },
  19983. "pages/subPackages/companyHouse/companyHouse": {
  19984. "navigationBarTitleText": "企业库",
  19985. "enablePullDownRefresh": true,
  19986. "onReachBottomDistance": 100,
  19987. "component": true
  19988. },
  19989. "pages/subPackages/companyreport/components/reportDetails": {
  19990. "navigationBarTitleText": "走访上报-详情",
  19991. "enablePullDownRefresh": true,
  19992. "onReachBottomDistance": 100,
  19993. "component": true
  19994. },
  19995. "pages/subPackages/merchants/merchants": {
  19996. "navigationBarTitleText": "我的招商",
  19997. "enablePullDownRefresh": true,
  19998. "onReachBottomDistance": 100,
  19999. "component": true
  20000. },
  20001. "pages/subPackages/merchants/components/mymechantsdetails": {
  20002. "navigationBarTitleText": "我的招商-详情",
  20003. "enablePullDownRefresh": true,
  20004. "onReachBottomDistance": 100,
  20005. "component": true
  20006. },
  20007. "pages/subPackages/reportRepair/index": {
  20008. "navigationBarTitleText": "报事报修",
  20009. "enablePullDownRefresh": true,
  20010. "onReachBottomDistance": 100,
  20011. "component": true
  20012. },
  20013. "pages/subPackages/companyreport/companyreport": {
  20014. "navigationBarTitleText": "走访上报",
  20015. "enablePullDownRefresh": true,
  20016. "onReachBottomDistance": 100,
  20017. "component": true
  20018. },
  20019. "pages/subPackages/economicDevelopmentReport/economic": {
  20020. "navigationBarTitleText": "经发填报",
  20021. "enablePullDownRefresh": true,
  20022. "onReachBottomDistance": 100,
  20023. "component": true
  20024. },
  20025. "pages/subPackages/enterPriseBill/index": {
  20026. "navigationBarTitleText": "企业账单",
  20027. "enablePullDownRefresh": true,
  20028. "onReachBottomDistance": 100,
  20029. "component": true
  20030. },
  20031. "pages/subPackages/enterPriseBill/detail": {
  20032. "navigationBarTitleText": "账单详情",
  20033. "enablePullDownRefresh": true,
  20034. "onReachBottomDistance": 100,
  20035. "component": true
  20036. }
  20037. },
  20038. "globalStyle": {
  20039. "pageOrientation": "portrait",
  20040. "navigationBarTitleText": "Hello uniapp",
  20041. "navigationBarTextStyle": "black",
  20042. "navigationBarBackgroundColor": "#FFFFFF",
  20043. "backgroundColor": "#FFFFFF",
  20044. "backgroundColorTop": "#FFFFFF",
  20045. "backgroundColorBottom": "#F4F5F6"
  20046. }
  20047. };
  20048. exports.default = _default;
  20049. /***/ }),
  20050. /***/ 421:
  20051. /*!********************************************************************!*\
  20052. !*** D:/project/product_wx/wxcomponents/weapp/dist/radio/index.js ***!
  20053. \********************************************************************/
  20054. /*! no static exports found */
  20055. /***/ (function(module, exports, __webpack_require__) {
  20056. "use strict";
  20057. var _version = __webpack_require__(/*! ../common/version */ 422);
  20058. var _component = __webpack_require__(/*! ../common/component */ 423);
  20059. var _relation = __webpack_require__(/*! ../common/relation */ 425);
  20060. (0, _component.VantComponent)({
  20061. field: true,
  20062. relation: (0, _relation.useParent)('radio-group', function () {
  20063. this.updateFromParent();
  20064. }),
  20065. classes: ['icon-class', 'label-class'],
  20066. props: {
  20067. name: null,
  20068. value: null,
  20069. disabled: Boolean,
  20070. useIconSlot: Boolean,
  20071. checkedColor: String,
  20072. labelPosition: {
  20073. type: String,
  20074. value: 'right'
  20075. },
  20076. labelDisabled: Boolean,
  20077. shape: {
  20078. type: String,
  20079. value: 'round'
  20080. },
  20081. iconSize: {
  20082. type: null,
  20083. value: 20
  20084. }
  20085. },
  20086. data: {
  20087. direction: '',
  20088. parentDisabled: false
  20089. },
  20090. methods: {
  20091. updateFromParent: function updateFromParent() {
  20092. if (!this.parent) {
  20093. return;
  20094. }
  20095. var _this$parent$data = this.parent.data,
  20096. value = _this$parent$data.value,
  20097. parentDisabled = _this$parent$data.disabled,
  20098. direction = _this$parent$data.direction;
  20099. this.setData({
  20100. value: value,
  20101. direction: direction,
  20102. parentDisabled: parentDisabled
  20103. });
  20104. },
  20105. emitChange: function emitChange(value) {
  20106. var instance = this.parent || this;
  20107. instance.$emit('input', value);
  20108. instance.$emit('change', value);
  20109. if ((0, _version.canIUseModel)()) {
  20110. instance.setData({
  20111. value: value
  20112. });
  20113. }
  20114. },
  20115. onChange: function onChange() {
  20116. if (!this.data.disabled && !this.data.parentDisabled) {
  20117. this.emitChange(this.data.name);
  20118. }
  20119. },
  20120. onClickLabel: function onClickLabel() {
  20121. var _this$data = this.data,
  20122. disabled = _this$data.disabled,
  20123. parentDisabled = _this$data.parentDisabled,
  20124. labelDisabled = _this$data.labelDisabled,
  20125. name = _this$data.name;
  20126. if (!(disabled || parentDisabled) && !labelDisabled) {
  20127. this.emitChange(name);
  20128. }
  20129. }
  20130. }
  20131. });
  20132. /***/ }),
  20133. /***/ 422:
  20134. /*!***********************************************************************!*\
  20135. !*** D:/project/product_wx/wxcomponents/weapp/dist/common/version.js ***!
  20136. \***********************************************************************/
  20137. /*! no static exports found */
  20138. /***/ (function(module, exports, __webpack_require__) {
  20139. "use strict";
  20140. /* WEBPACK VAR INJECTION */(function(wx) {
  20141. Object.defineProperty(exports, "__esModule", {
  20142. value: true
  20143. });
  20144. exports.canIUseAnimate = canIUseAnimate;
  20145. exports.canIUseCanvas2d = canIUseCanvas2d;
  20146. exports.canIUseFormFieldButton = canIUseFormFieldButton;
  20147. exports.canIUseGetUserProfile = canIUseGetUserProfile;
  20148. exports.canIUseGroupSetData = canIUseGroupSetData;
  20149. exports.canIUseModel = canIUseModel;
  20150. exports.canIUseNextTick = canIUseNextTick;
  20151. exports.getSystemInfoSync = getSystemInfoSync;
  20152. var systemInfo;
  20153. function getSystemInfoSync() {
  20154. if (systemInfo == null) {
  20155. systemInfo = wx.getSystemInfoSync();
  20156. }
  20157. return systemInfo;
  20158. }
  20159. function compareVersion(v1, v2) {
  20160. v1 = v1.split('.');
  20161. v2 = v2.split('.');
  20162. var len = Math.max(v1.length, v2.length);
  20163. while (v1.length < len) {
  20164. v1.push('0');
  20165. }
  20166. while (v2.length < len) {
  20167. v2.push('0');
  20168. }
  20169. for (var i = 0; i < len; i++) {
  20170. var num1 = parseInt(v1[i], 10);
  20171. var num2 = parseInt(v2[i], 10);
  20172. if (num1 > num2) {
  20173. return 1;
  20174. }
  20175. if (num1 < num2) {
  20176. return -1;
  20177. }
  20178. }
  20179. return 0;
  20180. }
  20181. function gte(version) {
  20182. var system = getSystemInfoSync();
  20183. return compareVersion(system.SDKVersion, version) >= 0;
  20184. }
  20185. function canIUseModel() {
  20186. return gte('2.9.3');
  20187. }
  20188. function canIUseFormFieldButton() {
  20189. return gte('2.10.3');
  20190. }
  20191. function canIUseAnimate() {
  20192. return gte('2.9.0');
  20193. }
  20194. function canIUseGroupSetData() {
  20195. return gte('2.4.0');
  20196. }
  20197. function canIUseNextTick() {
  20198. try {
  20199. return wx.canIUse('nextTick');
  20200. } catch (e) {
  20201. return gte('2.7.1');
  20202. }
  20203. }
  20204. function canIUseCanvas2d() {
  20205. return gte('2.9.0');
  20206. }
  20207. function canIUseGetUserProfile() {
  20208. return !!wx.getUserProfile;
  20209. }
  20210. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20211. /***/ }),
  20212. /***/ 423:
  20213. /*!*************************************************************************!*\
  20214. !*** D:/project/product_wx/wxcomponents/weapp/dist/common/component.js ***!
  20215. \*************************************************************************/
  20216. /*! no static exports found */
  20217. /***/ (function(module, exports, __webpack_require__) {
  20218. "use strict";
  20219. Object.defineProperty(exports, "__esModule", {
  20220. value: true
  20221. });
  20222. exports.VantComponent = VantComponent;
  20223. var _basic = __webpack_require__(/*! ../mixins/basic */ 424);
  20224. function mapKeys(source, target, map) {
  20225. Object.keys(map).forEach(function (key) {
  20226. if (source[key]) {
  20227. target[map[key]] = source[key];
  20228. }
  20229. });
  20230. }
  20231. function VantComponent(vantOptions) {
  20232. var options = {};
  20233. mapKeys(vantOptions, options, {
  20234. data: 'data',
  20235. props: 'properties',
  20236. watch: 'observers',
  20237. mixins: 'behaviors',
  20238. methods: 'methods',
  20239. beforeCreate: 'created',
  20240. created: 'attached',
  20241. mounted: 'ready',
  20242. destroyed: 'detached',
  20243. classes: 'externalClasses'
  20244. });
  20245. // add default externalClasses
  20246. options.externalClasses = options.externalClasses || [];
  20247. options.externalClasses.push('custom-class');
  20248. // add default behaviors
  20249. options.behaviors = options.behaviors || [];
  20250. options.behaviors.push(_basic.basic);
  20251. // add relations
  20252. var relation = vantOptions.relation;
  20253. if (relation) {
  20254. options.relations = relation.relations;
  20255. options.behaviors.push(relation.mixin);
  20256. }
  20257. // map field to form-field behavior
  20258. if (vantOptions.field) {
  20259. options.behaviors.push('wx://form-field');
  20260. }
  20261. // add default options
  20262. options.options = {
  20263. multipleSlots: true,
  20264. addGlobalClass: true
  20265. };
  20266. Component(options);
  20267. }
  20268. /***/ }),
  20269. /***/ 424:
  20270. /*!*********************************************************************!*\
  20271. !*** D:/project/product_wx/wxcomponents/weapp/dist/mixins/basic.js ***!
  20272. \*********************************************************************/
  20273. /*! no static exports found */
  20274. /***/ (function(module, exports, __webpack_require__) {
  20275. "use strict";
  20276. /* WEBPACK VAR INJECTION */(function(wx) {
  20277. Object.defineProperty(exports, "__esModule", {
  20278. value: true
  20279. });
  20280. exports.basic = void 0;
  20281. var basic = Behavior({
  20282. methods: {
  20283. $emit: function $emit(name, detail, options) {
  20284. this.triggerEvent(name, detail, options);
  20285. },
  20286. set: function set(data) {
  20287. this.setData(data);
  20288. return new Promise(function (resolve) {
  20289. return wx.nextTick(resolve);
  20290. });
  20291. }
  20292. }
  20293. });
  20294. exports.basic = basic;
  20295. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20296. /***/ }),
  20297. /***/ 425:
  20298. /*!************************************************************************!*\
  20299. !*** D:/project/product_wx/wxcomponents/weapp/dist/common/relation.js ***!
  20300. \************************************************************************/
  20301. /*! no static exports found */
  20302. /***/ (function(module, exports, __webpack_require__) {
  20303. "use strict";
  20304. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20305. Object.defineProperty(exports, "__esModule", {
  20306. value: true
  20307. });
  20308. exports.useChildren = useChildren;
  20309. exports.useParent = useParent;
  20310. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  20311. function useParent(name, onEffect) {
  20312. var path = "../".concat(name, "/index");
  20313. return {
  20314. relations: (0, _defineProperty2.default)({}, path, {
  20315. type: 'ancestor',
  20316. linked: function linked() {
  20317. onEffect && onEffect.call(this);
  20318. },
  20319. linkChanged: function linkChanged() {
  20320. onEffect && onEffect.call(this);
  20321. },
  20322. unlinked: function unlinked() {
  20323. onEffect && onEffect.call(this);
  20324. }
  20325. }),
  20326. mixin: Behavior({
  20327. created: function created() {
  20328. var _this = this;
  20329. Object.defineProperty(this, 'parent', {
  20330. get: function get() {
  20331. return _this.getRelationNodes(path)[0];
  20332. }
  20333. });
  20334. Object.defineProperty(this, 'index', {
  20335. // @ts-ignore
  20336. get: function get() {
  20337. var _a, _b;
  20338. return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this);
  20339. }
  20340. });
  20341. }
  20342. })
  20343. };
  20344. }
  20345. function useChildren(name, onEffect) {
  20346. var path = "../".concat(name, "/index");
  20347. return {
  20348. relations: (0, _defineProperty2.default)({}, path, {
  20349. type: 'descendant',
  20350. linked: function linked(target) {
  20351. onEffect && onEffect.call(this, target);
  20352. },
  20353. linkChanged: function linkChanged(target) {
  20354. onEffect && onEffect.call(this, target);
  20355. },
  20356. unlinked: function unlinked(target) {
  20357. onEffect && onEffect.call(this, target);
  20358. }
  20359. }),
  20360. mixin: Behavior({
  20361. created: function created() {
  20362. var _this2 = this;
  20363. Object.defineProperty(this, 'children', {
  20364. get: function get() {
  20365. return _this2.getRelationNodes(path) || [];
  20366. }
  20367. });
  20368. }
  20369. })
  20370. };
  20371. }
  20372. /***/ }),
  20373. /***/ 426:
  20374. /*!**************************************************************************!*\
  20375. !*** D:/project/product_wx/wxcomponents/weapp/dist/radio-group/index.js ***!
  20376. \**************************************************************************/
  20377. /*! no static exports found */
  20378. /***/ (function(module, exports, __webpack_require__) {
  20379. "use strict";
  20380. var _component = __webpack_require__(/*! ../common/component */ 423);
  20381. var _relation = __webpack_require__(/*! ../common/relation */ 425);
  20382. (0, _component.VantComponent)({
  20383. field: true,
  20384. relation: (0, _relation.useChildren)('radio'),
  20385. props: {
  20386. value: {
  20387. type: null,
  20388. observer: 'updateChildren'
  20389. },
  20390. direction: String,
  20391. disabled: {
  20392. type: Boolean,
  20393. observer: 'updateChildren'
  20394. }
  20395. },
  20396. methods: {
  20397. updateChildren: function updateChildren() {
  20398. this.children.forEach(function (child) {
  20399. return child.updateFromParent();
  20400. });
  20401. }
  20402. }
  20403. });
  20404. /***/ }),
  20405. /***/ 427:
  20406. /*!*******************************************************************!*\
  20407. !*** D:/project/product_wx/wxcomponents/weapp/dist/rate/index.js ***!
  20408. \*******************************************************************/
  20409. /*! no static exports found */
  20410. /***/ (function(module, exports, __webpack_require__) {
  20411. "use strict";
  20412. /* WEBPACK VAR INJECTION */(function(wx) {
  20413. var _utils = __webpack_require__(/*! ../common/utils */ 428);
  20414. var _component = __webpack_require__(/*! ../common/component */ 423);
  20415. var _version = __webpack_require__(/*! ../common/version */ 422);
  20416. (0, _component.VantComponent)({
  20417. field: true,
  20418. classes: ['icon-class'],
  20419. props: {
  20420. value: {
  20421. type: Number,
  20422. observer: function observer(value) {
  20423. if (value !== this.data.innerValue) {
  20424. this.setData({
  20425. innerValue: value
  20426. });
  20427. }
  20428. }
  20429. },
  20430. readonly: Boolean,
  20431. disabled: Boolean,
  20432. allowHalf: Boolean,
  20433. size: null,
  20434. icon: {
  20435. type: String,
  20436. value: 'star'
  20437. },
  20438. voidIcon: {
  20439. type: String,
  20440. value: 'star-o'
  20441. },
  20442. color: String,
  20443. voidColor: String,
  20444. disabledColor: String,
  20445. count: {
  20446. type: Number,
  20447. value: 5,
  20448. observer: function observer(value) {
  20449. this.setData({
  20450. innerCountArray: Array.from({
  20451. length: value
  20452. })
  20453. });
  20454. }
  20455. },
  20456. gutter: null,
  20457. touchable: {
  20458. type: Boolean,
  20459. value: true
  20460. }
  20461. },
  20462. data: {
  20463. innerValue: 0,
  20464. innerCountArray: Array.from({
  20465. length: 5
  20466. })
  20467. },
  20468. methods: {
  20469. onSelect: function onSelect(event) {
  20470. var _this = this;
  20471. var data = this.data;
  20472. var score = event.currentTarget.dataset.score;
  20473. if (!data.disabled && !data.readonly) {
  20474. this.setData({
  20475. innerValue: score + 1
  20476. });
  20477. if ((0, _version.canIUseModel)()) {
  20478. this.setData({
  20479. value: score + 1
  20480. });
  20481. }
  20482. wx.nextTick(function () {
  20483. _this.$emit('input', score + 1);
  20484. _this.$emit('change', score + 1);
  20485. });
  20486. }
  20487. },
  20488. onTouchMove: function onTouchMove(event) {
  20489. var _this2 = this;
  20490. var touchable = this.data.touchable;
  20491. if (!touchable) return;
  20492. var clientX = event.touches[0].clientX;
  20493. (0, _utils.getAllRect)(this, '.van-rate__icon').then(function (list) {
  20494. var target = list.sort(function (cur, next) {
  20495. return cur.dataset.score - next.dataset.score;
  20496. }).find(function (item) {
  20497. return clientX >= item.left && clientX <= item.right;
  20498. });
  20499. if (target != null) {
  20500. _this2.onSelect(Object.assign(Object.assign({}, event), {
  20501. currentTarget: target
  20502. }));
  20503. }
  20504. });
  20505. }
  20506. }
  20507. });
  20508. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20509. /***/ }),
  20510. /***/ 428:
  20511. /*!*********************************************************************!*\
  20512. !*** D:/project/product_wx/wxcomponents/weapp/dist/common/utils.js ***!
  20513. \*********************************************************************/
  20514. /*! no static exports found */
  20515. /***/ (function(module, exports, __webpack_require__) {
  20516. "use strict";
  20517. /* WEBPACK VAR INJECTION */(function(wx) {
  20518. Object.defineProperty(exports, "__esModule", {
  20519. value: true
  20520. });
  20521. exports.addUnit = addUnit;
  20522. exports.getAllRect = getAllRect;
  20523. exports.getCurrentPage = getCurrentPage;
  20524. exports.getRect = getRect;
  20525. Object.defineProperty(exports, "getSystemInfoSync", {
  20526. enumerable: true,
  20527. get: function get() {
  20528. return _version.getSystemInfoSync;
  20529. }
  20530. });
  20531. exports.groupSetData = groupSetData;
  20532. Object.defineProperty(exports, "isDef", {
  20533. enumerable: true,
  20534. get: function get() {
  20535. return _validator.isDef;
  20536. }
  20537. });
  20538. exports.nextTick = nextTick;
  20539. exports.pickExclude = pickExclude;
  20540. exports.range = range;
  20541. exports.requestAnimationFrame = requestAnimationFrame;
  20542. exports.toPromise = toPromise;
  20543. var _validator = __webpack_require__(/*! ./validator */ 429);
  20544. var _version = __webpack_require__(/*! ./version */ 422);
  20545. function range(num, min, max) {
  20546. return Math.min(Math.max(num, min), max);
  20547. }
  20548. function nextTick(cb) {
  20549. if ((0, _version.canIUseNextTick)()) {
  20550. wx.nextTick(cb);
  20551. } else {
  20552. setTimeout(function () {
  20553. cb();
  20554. }, 1000 / 30);
  20555. }
  20556. }
  20557. function addUnit(value) {
  20558. if (!(0, _validator.isDef)(value)) {
  20559. return undefined;
  20560. }
  20561. value = String(value);
  20562. return (0, _validator.isNumber)(value) ? "".concat(value, "px") : value;
  20563. }
  20564. function requestAnimationFrame(cb) {
  20565. return setTimeout(function () {
  20566. cb();
  20567. }, 1000 / 30);
  20568. }
  20569. function pickExclude(obj, keys) {
  20570. if (!(0, _validator.isPlainObject)(obj)) {
  20571. return {};
  20572. }
  20573. return Object.keys(obj).reduce(function (prev, key) {
  20574. if (!keys.includes(key)) {
  20575. prev[key] = obj[key];
  20576. }
  20577. return prev;
  20578. }, {});
  20579. }
  20580. function getRect(context, selector) {
  20581. return new Promise(function (resolve) {
  20582. wx.createSelectorQuery().in(context).select(selector).boundingClientRect().exec(function () {
  20583. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  20584. return resolve(rect[0]);
  20585. });
  20586. });
  20587. }
  20588. function getAllRect(context, selector) {
  20589. return new Promise(function (resolve) {
  20590. wx.createSelectorQuery().in(context).selectAll(selector).boundingClientRect().exec(function () {
  20591. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  20592. return resolve(rect[0]);
  20593. });
  20594. });
  20595. }
  20596. function groupSetData(context, cb) {
  20597. if ((0, _version.canIUseGroupSetData)()) {
  20598. context.groupSetData(cb);
  20599. } else {
  20600. cb();
  20601. }
  20602. }
  20603. function toPromise(promiseLike) {
  20604. if ((0, _validator.isPromise)(promiseLike)) {
  20605. return promiseLike;
  20606. }
  20607. return Promise.resolve(promiseLike);
  20608. }
  20609. function getCurrentPage() {
  20610. var pages = getCurrentPages();
  20611. return pages[pages.length - 1];
  20612. }
  20613. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20614. /***/ }),
  20615. /***/ 429:
  20616. /*!*************************************************************************!*\
  20617. !*** D:/project/product_wx/wxcomponents/weapp/dist/common/validator.js ***!
  20618. \*************************************************************************/
  20619. /*! no static exports found */
  20620. /***/ (function(module, exports, __webpack_require__) {
  20621. "use strict";
  20622. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20623. Object.defineProperty(exports, "__esModule", {
  20624. value: true
  20625. });
  20626. exports.isBoolean = isBoolean;
  20627. exports.isDef = isDef;
  20628. exports.isFunction = isFunction;
  20629. exports.isImageUrl = isImageUrl;
  20630. exports.isNumber = isNumber;
  20631. exports.isObj = isObj;
  20632. exports.isPlainObject = isPlainObject;
  20633. exports.isPromise = isPromise;
  20634. exports.isVideoUrl = isVideoUrl;
  20635. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  20636. // eslint-disable-next-line @typescript-eslint/ban-types
  20637. function isFunction(val) {
  20638. return typeof val === 'function';
  20639. }
  20640. function isPlainObject(val) {
  20641. return val !== null && (0, _typeof2.default)(val) === 'object' && !Array.isArray(val);
  20642. }
  20643. function isPromise(val) {
  20644. return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
  20645. }
  20646. function isDef(value) {
  20647. return value !== undefined && value !== null;
  20648. }
  20649. function isObj(x) {
  20650. var type = (0, _typeof2.default)(x);
  20651. return x !== null && (type === 'object' || type === 'function');
  20652. }
  20653. function isNumber(value) {
  20654. return /^\d+(\.\d+)?$/.test(value);
  20655. }
  20656. function isBoolean(value) {
  20657. return typeof value === 'boolean';
  20658. }
  20659. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  20660. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
  20661. function isImageUrl(url) {
  20662. return IMAGE_REGEXP.test(url);
  20663. }
  20664. function isVideoUrl(url) {
  20665. return VIDEO_REGEXP.test(url);
  20666. }
  20667. /***/ }),
  20668. /***/ 449:
  20669. /*!**********************************************************************************************************!*\
  20670. !*** D:/project/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js ***!
  20671. \**********************************************************************************************************/
  20672. /*! no static exports found */
  20673. /***/ (function(module, exports, __webpack_require__) {
  20674. "use strict";
  20675. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20676. Object.defineProperty(exports, "__esModule", {
  20677. value: true
  20678. });
  20679. exports.default = void 0;
  20680. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 450));
  20681. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 451));
  20682. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 452));
  20683. var _default = {
  20684. en: _en.default,
  20685. 'zh-Hans': _zhHans.default,
  20686. 'zh-Hant': _zhHant.default
  20687. };
  20688. exports.default = _default;
  20689. /***/ }),
  20690. /***/ 450:
  20691. /*!*********************************************************************************************************!*\
  20692. !*** D:/project/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json ***!
  20693. \*********************************************************************************************************/
  20694. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.SUN, uni-calender.confirm, default */
  20695. /***/ (function(module) {
  20696. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"select date\",\"uni-datetime-picker.selectTime\":\"select time\",\"uni-datetime-picker.selectDateTime\":\"select date and time\",\"uni-datetime-picker.startDate\":\"start date\",\"uni-datetime-picker.endDate\":\"end date\",\"uni-datetime-picker.startTime\":\"start time\",\"uni-datetime-picker.endTime\":\"end time\",\"uni-datetime-picker.ok\":\"ok\",\"uni-datetime-picker.clear\":\"clear\",\"uni-datetime-picker.cancel\":\"cancel\",\"uni-datetime-picker.year\":\"-\",\"uni-datetime-picker.month\":\"\",\"uni-calender.MON\":\"MON\",\"uni-calender.TUE\":\"TUE\",\"uni-calender.WED\":\"WED\",\"uni-calender.THU\":\"THU\",\"uni-calender.FRI\":\"FRI\",\"uni-calender.SAT\":\"SAT\",\"uni-calender.SUN\":\"SUN\",\"uni-calender.confirm\":\"confirm\"}");
  20697. /***/ }),
  20698. /***/ 451:
  20699. /*!**************************************************************************************************************!*\
  20700. !*** D:/project/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json ***!
  20701. \**************************************************************************************************************/
  20702. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  20703. /***/ (function(module) {
  20704. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"选择日期\",\"uni-datetime-picker.selectTime\":\"选择时间\",\"uni-datetime-picker.selectDateTime\":\"选择日期时间\",\"uni-datetime-picker.startDate\":\"开始日期\",\"uni-datetime-picker.endDate\":\"结束日期\",\"uni-datetime-picker.startTime\":\"开始时间\",\"uni-datetime-picker.endTime\":\"结束时间\",\"uni-datetime-picker.ok\":\"确定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"确认\"}");
  20705. /***/ }),
  20706. /***/ 452:
  20707. /*!**************************************************************************************************************!*\
  20708. !*** D:/project/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json ***!
  20709. \**************************************************************************************************************/
  20710. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  20711. /***/ (function(module) {
  20712. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"選擇日期\",\"uni-datetime-picker.selectTime\":\"選擇時間\",\"uni-datetime-picker.selectDateTime\":\"選擇日期時間\",\"uni-datetime-picker.startDate\":\"開始日期\",\"uni-datetime-picker.endDate\":\"結束日期\",\"uni-datetime-picker.startTime\":\"開始时间\",\"uni-datetime-picker.endTime\":\"結束时间\",\"uni-datetime-picker.ok\":\"確定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"確認\"}");
  20713. /***/ }),
  20714. /***/ 453:
  20715. /*!****************************************************************************************************!*\
  20716. !*** D:/project/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js ***!
  20717. \****************************************************************************************************/
  20718. /*! no static exports found */
  20719. /***/ (function(module, exports, __webpack_require__) {
  20720. "use strict";
  20721. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20722. Object.defineProperty(exports, "__esModule", {
  20723. value: true
  20724. });
  20725. exports.Calendar = void 0;
  20726. exports.addZero = addZero;
  20727. exports.checkDate = checkDate;
  20728. exports.dateCompare = dateCompare;
  20729. exports.fixIosDateFormat = fixIosDateFormat;
  20730. exports.getDate = getDate;
  20731. exports.getDateTime = getDateTime;
  20732. exports.getDefaultSecond = getDefaultSecond;
  20733. exports.getTime = getTime;
  20734. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  20735. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  20736. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  20737. var Calendar = /*#__PURE__*/function () {
  20738. function Calendar() {
  20739. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  20740. selected = _ref.selected,
  20741. startDate = _ref.startDate,
  20742. endDate = _ref.endDate,
  20743. range = _ref.range;
  20744. (0, _classCallCheck2.default)(this, Calendar);
  20745. // 当前日期
  20746. this.date = this.getDateObj(new Date()); // 当前初入日期
  20747. // 打点信息
  20748. this.selected = selected || [];
  20749. // 起始时间
  20750. this.startDate = startDate;
  20751. // 终止时间
  20752. this.endDate = endDate;
  20753. // 是否范围选择
  20754. this.range = range;
  20755. // 多选状态
  20756. this.cleanMultipleStatus();
  20757. // 每周日期
  20758. this.weeks = {};
  20759. this.lastHover = false;
  20760. }
  20761. /**
  20762. * 设置日期
  20763. * @param {Object} date
  20764. */
  20765. (0, _createClass2.default)(Calendar, [{
  20766. key: "setDate",
  20767. value: function setDate(date) {
  20768. var selectDate = this.getDateObj(date);
  20769. this.getWeeks(selectDate.fullDate);
  20770. }
  20771. /**
  20772. * 清理多选状态
  20773. */
  20774. }, {
  20775. key: "cleanMultipleStatus",
  20776. value: function cleanMultipleStatus() {
  20777. this.multipleStatus = {
  20778. before: '',
  20779. after: '',
  20780. data: []
  20781. };
  20782. }
  20783. }, {
  20784. key: "setStartDate",
  20785. value: function setStartDate(startDate) {
  20786. this.startDate = startDate;
  20787. }
  20788. }, {
  20789. key: "setEndDate",
  20790. value: function setEndDate(endDate) {
  20791. this.endDate = endDate;
  20792. }
  20793. }, {
  20794. key: "getPreMonthObj",
  20795. value: function getPreMonthObj(date) {
  20796. date = fixIosDateFormat(date);
  20797. date = new Date(date);
  20798. var oldMonth = date.getMonth();
  20799. date.setMonth(oldMonth - 1);
  20800. var newMonth = date.getMonth();
  20801. if (oldMonth !== 0 && newMonth - oldMonth === 0) {
  20802. date.setMonth(newMonth - 1);
  20803. }
  20804. return this.getDateObj(date);
  20805. }
  20806. }, {
  20807. key: "getNextMonthObj",
  20808. value: function getNextMonthObj(date) {
  20809. date = fixIosDateFormat(date);
  20810. date = new Date(date);
  20811. var oldMonth = date.getMonth();
  20812. date.setMonth(oldMonth + 1);
  20813. var newMonth = date.getMonth();
  20814. if (newMonth - oldMonth > 1) {
  20815. date.setMonth(newMonth - 1);
  20816. }
  20817. return this.getDateObj(date);
  20818. }
  20819. /**
  20820. * 获取指定格式Date对象
  20821. */
  20822. }, {
  20823. key: "getDateObj",
  20824. value: function getDateObj(date) {
  20825. date = fixIosDateFormat(date);
  20826. date = new Date(date);
  20827. return {
  20828. fullDate: getDate(date),
  20829. year: date.getFullYear(),
  20830. month: addZero(date.getMonth() + 1),
  20831. date: addZero(date.getDate()),
  20832. day: date.getDay()
  20833. };
  20834. }
  20835. /**
  20836. * 获取上一个月日期集合
  20837. */
  20838. }, {
  20839. key: "getPreMonthDays",
  20840. value: function getPreMonthDays(amount, dateObj) {
  20841. var result = [];
  20842. for (var i = amount - 1; i >= 0; i--) {
  20843. var month = dateObj.month - 1;
  20844. result.push({
  20845. date: new Date(dateObj.year, month, -i).getDate(),
  20846. month: month,
  20847. disable: true
  20848. });
  20849. }
  20850. return result;
  20851. }
  20852. /**
  20853. * 获取本月日期集合
  20854. */
  20855. }, {
  20856. key: "getCurrentMonthDays",
  20857. value: function getCurrentMonthDays(amount, dateObj) {
  20858. var _this = this;
  20859. var result = [];
  20860. var fullDate = this.date.fullDate;
  20861. var _loop = function _loop(i) {
  20862. var currentDate = "".concat(dateObj.year, "-").concat(dateObj.month, "-").concat(addZero(i));
  20863. var isToday = fullDate === currentDate;
  20864. // 获取打点信息
  20865. var info = _this.selected && _this.selected.find(function (item) {
  20866. if (_this.dateEqual(currentDate, item.date)) {
  20867. return item;
  20868. }
  20869. });
  20870. // 日期禁用
  20871. var disableBefore = true;
  20872. var disableAfter = true;
  20873. if (_this.startDate) {
  20874. disableBefore = dateCompare(_this.startDate, currentDate);
  20875. }
  20876. if (_this.endDate) {
  20877. disableAfter = dateCompare(currentDate, _this.endDate);
  20878. }
  20879. var multiples = _this.multipleStatus.data;
  20880. var multiplesStatus = -1;
  20881. if (_this.range && multiples) {
  20882. multiplesStatus = multiples.findIndex(function (item) {
  20883. return _this.dateEqual(item, currentDate);
  20884. });
  20885. }
  20886. var checked = multiplesStatus !== -1;
  20887. result.push({
  20888. fullDate: currentDate,
  20889. year: dateObj.year,
  20890. date: i,
  20891. multiple: _this.range ? checked : false,
  20892. beforeMultiple: _this.isLogicBefore(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  20893. afterMultiple: _this.isLogicAfter(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  20894. month: dateObj.month,
  20895. disable: _this.startDate && !dateCompare(_this.startDate, currentDate) || _this.endDate && !dateCompare(currentDate, _this.endDate),
  20896. isToday: isToday,
  20897. userChecked: false,
  20898. extraInfo: info
  20899. });
  20900. };
  20901. for (var i = 1; i <= amount; i++) {
  20902. _loop(i);
  20903. }
  20904. return result;
  20905. }
  20906. /**
  20907. * 获取下一个月日期集合
  20908. */
  20909. }, {
  20910. key: "_getNextMonthDays",
  20911. value: function _getNextMonthDays(amount, dateObj) {
  20912. var result = [];
  20913. var month = dateObj.month + 1;
  20914. for (var i = 1; i <= amount; i++) {
  20915. result.push({
  20916. date: i,
  20917. month: month,
  20918. disable: true
  20919. });
  20920. }
  20921. return result;
  20922. }
  20923. /**
  20924. * 获取当前日期详情
  20925. * @param {Object} date
  20926. */
  20927. }, {
  20928. key: "getInfo",
  20929. value: function getInfo(date) {
  20930. var _this2 = this;
  20931. if (!date) {
  20932. date = new Date();
  20933. }
  20934. return this.calendar.find(function (item) {
  20935. return item.fullDate === _this2.getDateObj(date).fullDate;
  20936. });
  20937. }
  20938. /**
  20939. * 比较时间是否相等
  20940. */
  20941. }, {
  20942. key: "dateEqual",
  20943. value: function dateEqual(before, after) {
  20944. before = new Date(fixIosDateFormat(before));
  20945. after = new Date(fixIosDateFormat(after));
  20946. return before.valueOf() === after.valueOf();
  20947. }
  20948. /**
  20949. * 比较真实起始日期
  20950. */
  20951. }, {
  20952. key: "isLogicBefore",
  20953. value: function isLogicBefore(currentDate, before, after) {
  20954. var logicBefore = before;
  20955. if (before && after) {
  20956. logicBefore = dateCompare(before, after) ? before : after;
  20957. }
  20958. return this.dateEqual(logicBefore, currentDate);
  20959. }
  20960. }, {
  20961. key: "isLogicAfter",
  20962. value: function isLogicAfter(currentDate, before, after) {
  20963. var logicAfter = after;
  20964. if (before && after) {
  20965. logicAfter = dateCompare(before, after) ? after : before;
  20966. }
  20967. return this.dateEqual(logicAfter, currentDate);
  20968. }
  20969. /**
  20970. * 获取日期范围内所有日期
  20971. * @param {Object} begin
  20972. * @param {Object} end
  20973. */
  20974. }, {
  20975. key: "geDateAll",
  20976. value: function geDateAll(begin, end) {
  20977. var arr = [];
  20978. var ab = begin.split('-');
  20979. var ae = end.split('-');
  20980. var db = new Date();
  20981. db.setFullYear(ab[0], ab[1] - 1, ab[2]);
  20982. var de = new Date();
  20983. de.setFullYear(ae[0], ae[1] - 1, ae[2]);
  20984. var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
  20985. var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
  20986. for (var k = unixDb; k <= unixDe;) {
  20987. k = k + 24 * 60 * 60 * 1000;
  20988. arr.push(this.getDateObj(new Date(parseInt(k))).fullDate);
  20989. }
  20990. return arr;
  20991. }
  20992. /**
  20993. * 获取多选状态
  20994. */
  20995. }, {
  20996. key: "setMultiple",
  20997. value: function setMultiple(fullDate) {
  20998. if (!this.range) return;
  20999. var _this$multipleStatus = this.multipleStatus,
  21000. before = _this$multipleStatus.before,
  21001. after = _this$multipleStatus.after;
  21002. if (before && after) {
  21003. if (!this.lastHover) {
  21004. this.lastHover = true;
  21005. return;
  21006. }
  21007. this.multipleStatus.before = fullDate;
  21008. this.multipleStatus.after = '';
  21009. this.multipleStatus.data = [];
  21010. this.multipleStatus.fulldate = '';
  21011. this.lastHover = false;
  21012. } else {
  21013. if (!before) {
  21014. this.multipleStatus.before = fullDate;
  21015. this.lastHover = false;
  21016. } else {
  21017. this.multipleStatus.after = fullDate;
  21018. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  21019. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  21020. } else {
  21021. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  21022. }
  21023. this.lastHover = true;
  21024. }
  21025. }
  21026. this.getWeeks(fullDate);
  21027. }
  21028. /**
  21029. * 鼠标 hover 更新多选状态
  21030. */
  21031. }, {
  21032. key: "setHoverMultiple",
  21033. value: function setHoverMultiple(fullDate) {
  21034. if (!this.range || this.lastHover) return;
  21035. var before = this.multipleStatus.before;
  21036. if (!before) {
  21037. this.multipleStatus.before = fullDate;
  21038. } else {
  21039. this.multipleStatus.after = fullDate;
  21040. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  21041. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  21042. } else {
  21043. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  21044. }
  21045. }
  21046. this.getWeeks(fullDate);
  21047. }
  21048. /**
  21049. * 更新默认值多选状态
  21050. */
  21051. }, {
  21052. key: "setDefaultMultiple",
  21053. value: function setDefaultMultiple(before, after) {
  21054. this.multipleStatus.before = before;
  21055. this.multipleStatus.after = after;
  21056. if (before && after) {
  21057. if (dateCompare(before, after)) {
  21058. this.multipleStatus.data = this.geDateAll(before, after);
  21059. this.getWeeks(after);
  21060. } else {
  21061. this.multipleStatus.data = this.geDateAll(after, before);
  21062. this.getWeeks(before);
  21063. }
  21064. }
  21065. }
  21066. /**
  21067. * 获取每周数据
  21068. * @param {Object} dateData
  21069. */
  21070. }, {
  21071. key: "getWeeks",
  21072. value: function getWeeks(dateData) {
  21073. var _this$getDateObj = this.getDateObj(dateData),
  21074. year = _this$getDateObj.year,
  21075. month = _this$getDateObj.month;
  21076. var preMonthDayAmount = new Date(year, month - 1, 1).getDay();
  21077. var preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData));
  21078. var currentMonthDayAmount = new Date(year, month, 0).getDate();
  21079. var currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData));
  21080. var nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount;
  21081. var nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData));
  21082. var calendarDays = [].concat((0, _toConsumableArray2.default)(preMonthDays), (0, _toConsumableArray2.default)(currentMonthDays), (0, _toConsumableArray2.default)(nextMonthDays));
  21083. var weeks = new Array(6);
  21084. for (var i = 0; i < calendarDays.length; i++) {
  21085. var index = Math.floor(i / 7);
  21086. if (!weeks[index]) {
  21087. weeks[index] = new Array(7);
  21088. }
  21089. weeks[index][i % 7] = calendarDays[i];
  21090. }
  21091. this.calendar = calendarDays;
  21092. this.weeks = weeks;
  21093. }
  21094. }]);
  21095. return Calendar;
  21096. }();
  21097. exports.Calendar = Calendar;
  21098. function getDateTime(date, hideSecond) {
  21099. return "".concat(getDate(date), " ").concat(getTime(date, hideSecond));
  21100. }
  21101. function getDate(date) {
  21102. date = fixIosDateFormat(date);
  21103. date = new Date(date);
  21104. var year = date.getFullYear();
  21105. var month = date.getMonth() + 1;
  21106. var day = date.getDate();
  21107. return "".concat(year, "-").concat(addZero(month), "-").concat(addZero(day));
  21108. }
  21109. function getTime(date, hideSecond) {
  21110. date = fixIosDateFormat(date);
  21111. date = new Date(date);
  21112. var hour = date.getHours();
  21113. var minute = date.getMinutes();
  21114. var second = date.getSeconds();
  21115. return hideSecond ? "".concat(addZero(hour), ":").concat(addZero(minute)) : "".concat(addZero(hour), ":").concat(addZero(minute), ":").concat(addZero(second));
  21116. }
  21117. function addZero(num) {
  21118. if (num < 10) {
  21119. num = "0".concat(num);
  21120. }
  21121. return num;
  21122. }
  21123. function getDefaultSecond(hideSecond) {
  21124. return hideSecond ? '00:00' : '00:00:00';
  21125. }
  21126. function dateCompare(startDate, endDate) {
  21127. startDate = new Date(fixIosDateFormat(startDate));
  21128. endDate = new Date(fixIosDateFormat(endDate));
  21129. return startDate <= endDate;
  21130. }
  21131. function checkDate(date) {
  21132. var dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g;
  21133. return date.match(dateReg);
  21134. }
  21135. var dateTimeReg = /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])?$/;
  21136. function fixIosDateFormat(value) {
  21137. if (typeof value === 'string' && dateTimeReg.test(value)) {
  21138. value = value.replace(/-/g, '/');
  21139. }
  21140. return value;
  21141. }
  21142. /***/ }),
  21143. /***/ 46:
  21144. /*!**********************************************************************************************************!*\
  21145. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  21146. \**********************************************************************************************************/
  21147. /*! exports provided: default */
  21148. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21149. "use strict";
  21150. __webpack_require__.r(__webpack_exports__);
  21151. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  21152. /* globals __VUE_SSR_CONTEXT__ */
  21153. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  21154. // This module is a runtime utility for cleaner component module output and will
  21155. // be included in the final webpack user bundle.
  21156. function normalizeComponent (
  21157. scriptExports,
  21158. render,
  21159. staticRenderFns,
  21160. functionalTemplate,
  21161. injectStyles,
  21162. scopeId,
  21163. moduleIdentifier, /* server only */
  21164. shadowMode, /* vue-cli only */
  21165. components, // fixed by xxxxxx auto components
  21166. renderjs // fixed by xxxxxx renderjs
  21167. ) {
  21168. // Vue.extend constructor export interop
  21169. var options = typeof scriptExports === 'function'
  21170. ? scriptExports.options
  21171. : scriptExports
  21172. // fixed by xxxxxx auto components
  21173. if (components) {
  21174. if (!options.components) {
  21175. options.components = {}
  21176. }
  21177. var hasOwn = Object.prototype.hasOwnProperty
  21178. for (var name in components) {
  21179. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  21180. options.components[name] = components[name]
  21181. }
  21182. }
  21183. }
  21184. // fixed by xxxxxx renderjs
  21185. if (renderjs) {
  21186. if(typeof renderjs.beforeCreate === 'function'){
  21187. renderjs.beforeCreate = [renderjs.beforeCreate]
  21188. }
  21189. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  21190. this[renderjs.__module] = this
  21191. });
  21192. (options.mixins || (options.mixins = [])).push(renderjs)
  21193. }
  21194. // render functions
  21195. if (render) {
  21196. options.render = render
  21197. options.staticRenderFns = staticRenderFns
  21198. options._compiled = true
  21199. }
  21200. // functional template
  21201. if (functionalTemplate) {
  21202. options.functional = true
  21203. }
  21204. // scopedId
  21205. if (scopeId) {
  21206. options._scopeId = 'data-v-' + scopeId
  21207. }
  21208. var hook
  21209. if (moduleIdentifier) { // server build
  21210. hook = function (context) {
  21211. // 2.3 injection
  21212. context =
  21213. context || // cached call
  21214. (this.$vnode && this.$vnode.ssrContext) || // stateful
  21215. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  21216. // 2.2 with runInNewContext: true
  21217. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  21218. context = __VUE_SSR_CONTEXT__
  21219. }
  21220. // inject component styles
  21221. if (injectStyles) {
  21222. injectStyles.call(this, context)
  21223. }
  21224. // register component module identifier for async chunk inferrence
  21225. if (context && context._registeredComponents) {
  21226. context._registeredComponents.add(moduleIdentifier)
  21227. }
  21228. }
  21229. // used by ssr in case component is cached and beforeCreate
  21230. // never gets called
  21231. options._ssrRegister = hook
  21232. } else if (injectStyles) {
  21233. hook = shadowMode
  21234. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  21235. : injectStyles
  21236. }
  21237. if (hook) {
  21238. if (options.functional) {
  21239. // for template-only hot-reload because in that case the render fn doesn't
  21240. // go through the normalizer
  21241. options._injectStyles = hook
  21242. // register for functioal component in vue file
  21243. var originalRender = options.render
  21244. options.render = function renderWithStyleInjection (h, context) {
  21245. hook.call(context)
  21246. return originalRender(h, context)
  21247. }
  21248. } else {
  21249. // inject component registration as beforeCreate hook
  21250. var existing = options.beforeCreate
  21251. options.beforeCreate = existing
  21252. ? [].concat(existing, hook)
  21253. : [hook]
  21254. }
  21255. }
  21256. return {
  21257. exports: scriptExports,
  21258. options: options
  21259. }
  21260. }
  21261. /***/ }),
  21262. /***/ 47:
  21263. /*!********************************************!*\
  21264. !*** D:/project/product_wx/store/index.js ***!
  21265. \********************************************/
  21266. /*! no static exports found */
  21267. /***/ (function(module, exports, __webpack_require__) {
  21268. "use strict";
  21269. /* WEBPACK VAR INJECTION */(function(uni) {
  21270. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21271. Object.defineProperty(exports, "__esModule", {
  21272. value: true
  21273. });
  21274. exports.default = void 0;
  21275. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  21276. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 48));
  21277. _vue.default.use(_vuex.default);
  21278. var store = new _vuex.default.Store({
  21279. state: {
  21280. userInfo: null,
  21281. token: null,
  21282. isRefresh: true,
  21283. kickbackData: []
  21284. },
  21285. getters: {
  21286. kickbackDataLen: function kickbackDataLen(state) {
  21287. return state.kickbackData.length;
  21288. }
  21289. },
  21290. mutations: {
  21291. setData: function setData(state, _ref) {
  21292. var payload = _ref.payload;
  21293. for (var v in payload) {
  21294. state[v] = payload[v];
  21295. uni.setStorageSync(v, payload[v]);
  21296. }
  21297. }
  21298. },
  21299. actions: {}
  21300. });
  21301. var _default = store;
  21302. exports.default = _default;
  21303. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21304. /***/ }),
  21305. /***/ 476:
  21306. /*!**************************************************************************************************************!*\
  21307. !*** D:/project/product_wx/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js ***!
  21308. \**************************************************************************************************************/
  21309. /*! no static exports found */
  21310. /***/ (function(module, exports, __webpack_require__) {
  21311. "use strict";
  21312. /* WEBPACK VAR INJECTION */(function(uni, wx, uniCloud) {
  21313. Object.defineProperty(exports, "__esModule", {
  21314. value: true
  21315. });
  21316. exports.chooseAndUploadFile = chooseAndUploadFile;
  21317. exports.uploadCloudFiles = uploadCloudFiles;
  21318. var ERR_MSG_OK = 'chooseAndUploadFile:ok';
  21319. var ERR_MSG_FAIL = 'chooseAndUploadFile:fail';
  21320. function chooseImage(opts) {
  21321. var count = opts.count,
  21322. _opts$sizeType = opts.sizeType,
  21323. sizeType = _opts$sizeType === void 0 ? ['original', 'compressed'] : _opts$sizeType,
  21324. sourceType = opts.sourceType,
  21325. extension = opts.extension;
  21326. return new Promise(function (resolve, reject) {
  21327. uni.chooseImage({
  21328. count: count,
  21329. sizeType: sizeType,
  21330. sourceType: sourceType,
  21331. extension: extension,
  21332. success: function success(res) {
  21333. resolve(normalizeChooseAndUploadFileRes(res, 'image'));
  21334. },
  21335. fail: function fail(res) {
  21336. reject({
  21337. errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL)
  21338. });
  21339. }
  21340. });
  21341. });
  21342. }
  21343. function chooseVideo(opts) {
  21344. var camera = opts.camera,
  21345. compressed = opts.compressed,
  21346. maxDuration = opts.maxDuration,
  21347. sourceType = opts.sourceType,
  21348. extension = opts.extension;
  21349. return new Promise(function (resolve, reject) {
  21350. uni.chooseVideo({
  21351. camera: camera,
  21352. compressed: compressed,
  21353. maxDuration: maxDuration,
  21354. sourceType: sourceType,
  21355. extension: extension,
  21356. success: function success(res) {
  21357. var tempFilePath = res.tempFilePath,
  21358. duration = res.duration,
  21359. size = res.size,
  21360. height = res.height,
  21361. width = res.width;
  21362. resolve(normalizeChooseAndUploadFileRes({
  21363. errMsg: 'chooseVideo:ok',
  21364. tempFilePaths: [tempFilePath],
  21365. tempFiles: [{
  21366. name: res.tempFile && res.tempFile.name || '',
  21367. path: tempFilePath,
  21368. size: size,
  21369. type: res.tempFile && res.tempFile.type || '',
  21370. width: width,
  21371. height: height,
  21372. duration: duration,
  21373. fileType: 'video',
  21374. cloudPath: ''
  21375. }]
  21376. }, 'video'));
  21377. },
  21378. fail: function fail(res) {
  21379. reject({
  21380. errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL)
  21381. });
  21382. }
  21383. });
  21384. });
  21385. }
  21386. function chooseAll(opts) {
  21387. var count = opts.count,
  21388. extension = opts.extension;
  21389. return new Promise(function (resolve, reject) {
  21390. var chooseFile = uni.chooseFile;
  21391. if (typeof wx !== 'undefined' && typeof wx.chooseMessageFile === 'function') {
  21392. chooseFile = wx.chooseMessageFile;
  21393. }
  21394. if (typeof chooseFile !== 'function') {
  21395. return reject({
  21396. errMsg: ERR_MSG_FAIL + ' 请指定 type 类型,该平台仅支持选择 image 或 video。'
  21397. });
  21398. }
  21399. chooseFile({
  21400. type: 'all',
  21401. count: count,
  21402. extension: extension,
  21403. success: function success(res) {
  21404. resolve(normalizeChooseAndUploadFileRes(res));
  21405. },
  21406. fail: function fail(res) {
  21407. reject({
  21408. errMsg: res.errMsg.replace('chooseFile:fail', ERR_MSG_FAIL)
  21409. });
  21410. }
  21411. });
  21412. });
  21413. }
  21414. function normalizeChooseAndUploadFileRes(res, fileType) {
  21415. res.tempFiles.forEach(function (item, index) {
  21416. if (!item.name) {
  21417. item.name = item.path.substring(item.path.lastIndexOf('/') + 1);
  21418. }
  21419. if (fileType) {
  21420. item.fileType = fileType;
  21421. }
  21422. item.cloudPath = Date.now() + '_' + index + item.name.substring(item.name.lastIndexOf('.'));
  21423. });
  21424. if (!res.tempFilePaths) {
  21425. res.tempFilePaths = res.tempFiles.map(function (file) {
  21426. return file.path;
  21427. });
  21428. }
  21429. return res;
  21430. }
  21431. function uploadCloudFiles(files) {
  21432. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
  21433. var _onUploadProgress = arguments.length > 2 ? arguments[2] : undefined;
  21434. files = JSON.parse(JSON.stringify(files));
  21435. var len = files.length;
  21436. var count = 0;
  21437. var self = this;
  21438. return new Promise(function (resolve) {
  21439. while (count < max) {
  21440. next();
  21441. }
  21442. function next() {
  21443. var cur = count++;
  21444. if (cur >= len) {
  21445. !files.find(function (item) {
  21446. return !item.url && !item.errMsg;
  21447. }) && resolve(files);
  21448. return;
  21449. }
  21450. var fileItem = files[cur];
  21451. var index = self.files.findIndex(function (v) {
  21452. return v.uuid === fileItem.uuid;
  21453. });
  21454. fileItem.url = '';
  21455. delete fileItem.errMsg;
  21456. uniCloud.uploadFile({
  21457. filePath: fileItem.path,
  21458. cloudPath: fileItem.cloudPath,
  21459. fileType: fileItem.fileType,
  21460. onUploadProgress: function onUploadProgress(res) {
  21461. res.index = index;
  21462. _onUploadProgress && _onUploadProgress(res);
  21463. }
  21464. }).then(function (res) {
  21465. fileItem.url = res.fileID;
  21466. fileItem.index = index;
  21467. if (cur < len) {
  21468. next();
  21469. }
  21470. }).catch(function (res) {
  21471. fileItem.errMsg = res.errMsg || res.message;
  21472. fileItem.index = index;
  21473. if (cur < len) {
  21474. next();
  21475. }
  21476. });
  21477. }
  21478. });
  21479. }
  21480. function uploadFiles(choosePromise, _ref) {
  21481. var onChooseFile = _ref.onChooseFile,
  21482. onUploadProgress = _ref.onUploadProgress;
  21483. return choosePromise.then(function (res) {
  21484. if (onChooseFile) {
  21485. var customChooseRes = onChooseFile(res);
  21486. if (typeof customChooseRes !== 'undefined') {
  21487. return Promise.resolve(customChooseRes).then(function (chooseRes) {
  21488. return typeof chooseRes === 'undefined' ? res : chooseRes;
  21489. });
  21490. }
  21491. }
  21492. return res;
  21493. }).then(function (res) {
  21494. if (res === false) {
  21495. return {
  21496. errMsg: ERR_MSG_OK,
  21497. tempFilePaths: [],
  21498. tempFiles: []
  21499. };
  21500. }
  21501. return res;
  21502. });
  21503. }
  21504. function chooseAndUploadFile() {
  21505. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  21506. type: 'all'
  21507. };
  21508. if (opts.type === 'image') {
  21509. return uploadFiles(chooseImage(opts), opts);
  21510. } else if (opts.type === 'video') {
  21511. return uploadFiles(chooseVideo(opts), opts);
  21512. }
  21513. return uploadFiles(chooseAll(opts), opts);
  21514. }
  21515. /* 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"], __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js */ 28)["default"]))
  21516. /***/ }),
  21517. /***/ 477:
  21518. /*!*********************************************************************************************!*\
  21519. !*** D:/project/product_wx/uni_modules/uni-file-picker/components/uni-file-picker/utils.js ***!
  21520. \*********************************************************************************************/
  21521. /*! no static exports found */
  21522. /***/ (function(module, exports, __webpack_require__) {
  21523. "use strict";
  21524. /* WEBPACK VAR INJECTION */(function(uni) {
  21525. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21526. Object.defineProperty(exports, "__esModule", {
  21527. value: true
  21528. });
  21529. exports.get_files_and_is_max = exports.get_file_info = exports.get_file_ext = exports.get_file_data = exports.get_extname = void 0;
  21530. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  21531. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  21532. /**
  21533. * 获取文件名和后缀
  21534. * @param {String} name
  21535. */
  21536. var get_file_ext = function get_file_ext(name) {
  21537. var last_len = name.lastIndexOf('.');
  21538. var len = name.length;
  21539. return {
  21540. name: name.substring(0, last_len),
  21541. ext: name.substring(last_len + 1, len)
  21542. };
  21543. };
  21544. /**
  21545. * 获取扩展名
  21546. * @param {Array} fileExtname
  21547. */
  21548. exports.get_file_ext = get_file_ext;
  21549. var get_extname = function get_extname(fileExtname) {
  21550. if (!Array.isArray(fileExtname)) {
  21551. var extname = fileExtname.replace(/(\[|\])/g, '');
  21552. return extname.split(',');
  21553. } else {
  21554. return fileExtname;
  21555. }
  21556. return [];
  21557. };
  21558. /**
  21559. * 获取文件和检测是否可选
  21560. */
  21561. exports.get_extname = get_extname;
  21562. var get_files_and_is_max = function get_files_and_is_max(res, _extname) {
  21563. var filePaths = [];
  21564. var files = [];
  21565. if (!_extname || _extname.length === 0) {
  21566. return {
  21567. filePaths: filePaths,
  21568. files: files
  21569. };
  21570. }
  21571. res.tempFiles.forEach(function (v) {
  21572. var fileFullName = get_file_ext(v.name);
  21573. var extname = fileFullName.ext.toLowerCase();
  21574. if (_extname.indexOf(extname) !== -1) {
  21575. files.push(v);
  21576. filePaths.push(v.path);
  21577. }
  21578. });
  21579. if (files.length !== res.tempFiles.length) {
  21580. uni.showToast({
  21581. title: "\u5F53\u524D\u9009\u62E9\u4E86".concat(res.tempFiles.length, "\u4E2A\u6587\u4EF6 \uFF0C").concat(res.tempFiles.length - files.length, " \u4E2A\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),
  21582. icon: 'none',
  21583. duration: 5000
  21584. });
  21585. }
  21586. return {
  21587. filePaths: filePaths,
  21588. files: files
  21589. };
  21590. };
  21591. /**
  21592. * 获取图片信息
  21593. * @param {Object} filepath
  21594. */
  21595. exports.get_files_and_is_max = get_files_and_is_max;
  21596. var get_file_info = function get_file_info(filepath) {
  21597. return new Promise(function (resolve, reject) {
  21598. uni.getImageInfo({
  21599. src: filepath,
  21600. success: function success(res) {
  21601. resolve(res);
  21602. },
  21603. fail: function fail(err) {
  21604. reject(err);
  21605. }
  21606. });
  21607. });
  21608. };
  21609. /**
  21610. * 获取封装数据
  21611. */
  21612. exports.get_file_info = get_file_info;
  21613. var get_file_data = /*#__PURE__*/function () {
  21614. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(files) {
  21615. var type,
  21616. fileFullName,
  21617. extname,
  21618. filedata,
  21619. imageinfo,
  21620. _args = arguments;
  21621. return _regenerator.default.wrap(function _callee$(_context) {
  21622. while (1) {
  21623. switch (_context.prev = _context.next) {
  21624. case 0:
  21625. type = _args.length > 1 && _args[1] !== undefined ? _args[1] : 'image';
  21626. // 最终需要上传数据库的数据
  21627. fileFullName = get_file_ext(files.name);
  21628. extname = fileFullName.ext.toLowerCase();
  21629. filedata = {
  21630. name: files.name,
  21631. uuid: files.uuid,
  21632. extname: extname || '',
  21633. cloudPath: files.cloudPath,
  21634. fileType: files.fileType,
  21635. url: files.path || files.path,
  21636. size: files.size,
  21637. //单位是字节
  21638. image: {},
  21639. path: files.path,
  21640. video: {}
  21641. };
  21642. if (!(type === 'image')) {
  21643. _context.next = 14;
  21644. break;
  21645. }
  21646. _context.next = 7;
  21647. return get_file_info(files.path);
  21648. case 7:
  21649. imageinfo = _context.sent;
  21650. delete filedata.video;
  21651. filedata.image.width = imageinfo.width;
  21652. filedata.image.height = imageinfo.height;
  21653. filedata.image.location = imageinfo.path;
  21654. _context.next = 15;
  21655. break;
  21656. case 14:
  21657. delete filedata.image;
  21658. case 15:
  21659. return _context.abrupt("return", filedata);
  21660. case 16:
  21661. case "end":
  21662. return _context.stop();
  21663. }
  21664. }
  21665. }, _callee);
  21666. }));
  21667. return function get_file_data(_x) {
  21668. return _ref.apply(this, arguments);
  21669. };
  21670. }();
  21671. exports.get_file_data = get_file_data;
  21672. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21673. /***/ }),
  21674. /***/ 48:
  21675. /*!**************************************************************************************!*\
  21676. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  21677. \**************************************************************************************/
  21678. /*! no static exports found */
  21679. /***/ (function(module, exports, __webpack_require__) {
  21680. "use strict";
  21681. /* WEBPACK VAR INJECTION */(function(global) {/*!
  21682. * vuex v3.6.2
  21683. * (c) 2021 Evan You
  21684. * @license MIT
  21685. */
  21686. function applyMixin (Vue) {
  21687. var version = Number(Vue.version.split('.')[0]);
  21688. if (version >= 2) {
  21689. Vue.mixin({ beforeCreate: vuexInit });
  21690. } else {
  21691. // override init and inject vuex init procedure
  21692. // for 1.x backwards compatibility.
  21693. var _init = Vue.prototype._init;
  21694. Vue.prototype._init = function (options) {
  21695. if ( options === void 0 ) options = {};
  21696. options.init = options.init
  21697. ? [vuexInit].concat(options.init)
  21698. : vuexInit;
  21699. _init.call(this, options);
  21700. };
  21701. }
  21702. /**
  21703. * Vuex init hook, injected into each instances init hooks list.
  21704. */
  21705. function vuexInit () {
  21706. var options = this.$options;
  21707. // store injection
  21708. if (options.store) {
  21709. this.$store = typeof options.store === 'function'
  21710. ? options.store()
  21711. : options.store;
  21712. } else if (options.parent && options.parent.$store) {
  21713. this.$store = options.parent.$store;
  21714. }
  21715. }
  21716. }
  21717. var target = typeof window !== 'undefined'
  21718. ? window
  21719. : typeof global !== 'undefined'
  21720. ? global
  21721. : {};
  21722. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  21723. function devtoolPlugin (store) {
  21724. if (!devtoolHook) { return }
  21725. store._devtoolHook = devtoolHook;
  21726. devtoolHook.emit('vuex:init', store);
  21727. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  21728. store.replaceState(targetState);
  21729. });
  21730. store.subscribe(function (mutation, state) {
  21731. devtoolHook.emit('vuex:mutation', mutation, state);
  21732. }, { prepend: true });
  21733. store.subscribeAction(function (action, state) {
  21734. devtoolHook.emit('vuex:action', action, state);
  21735. }, { prepend: true });
  21736. }
  21737. /**
  21738. * Get the first item that pass the test
  21739. * by second argument function
  21740. *
  21741. * @param {Array} list
  21742. * @param {Function} f
  21743. * @return {*}
  21744. */
  21745. function find (list, f) {
  21746. return list.filter(f)[0]
  21747. }
  21748. /**
  21749. * Deep copy the given object considering circular structure.
  21750. * This function caches all nested objects and its copies.
  21751. * If it detects circular structure, use cached copy to avoid infinite loop.
  21752. *
  21753. * @param {*} obj
  21754. * @param {Array<Object>} cache
  21755. * @return {*}
  21756. */
  21757. function deepCopy (obj, cache) {
  21758. if ( cache === void 0 ) cache = [];
  21759. // just return if obj is immutable value
  21760. if (obj === null || typeof obj !== 'object') {
  21761. return obj
  21762. }
  21763. // if obj is hit, it is in circular structure
  21764. var hit = find(cache, function (c) { return c.original === obj; });
  21765. if (hit) {
  21766. return hit.copy
  21767. }
  21768. var copy = Array.isArray(obj) ? [] : {};
  21769. // put the copy into cache at first
  21770. // because we want to refer it in recursive deepCopy
  21771. cache.push({
  21772. original: obj,
  21773. copy: copy
  21774. });
  21775. Object.keys(obj).forEach(function (key) {
  21776. copy[key] = deepCopy(obj[key], cache);
  21777. });
  21778. return copy
  21779. }
  21780. /**
  21781. * forEach for object
  21782. */
  21783. function forEachValue (obj, fn) {
  21784. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  21785. }
  21786. function isObject (obj) {
  21787. return obj !== null && typeof obj === 'object'
  21788. }
  21789. function isPromise (val) {
  21790. return val && typeof val.then === 'function'
  21791. }
  21792. function assert (condition, msg) {
  21793. if (!condition) { throw new Error(("[vuex] " + msg)) }
  21794. }
  21795. function partial (fn, arg) {
  21796. return function () {
  21797. return fn(arg)
  21798. }
  21799. }
  21800. // Base data struct for store's module, package with some attribute and method
  21801. var Module = function Module (rawModule, runtime) {
  21802. this.runtime = runtime;
  21803. // Store some children item
  21804. this._children = Object.create(null);
  21805. // Store the origin module object which passed by programmer
  21806. this._rawModule = rawModule;
  21807. var rawState = rawModule.state;
  21808. // Store the origin module's state
  21809. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  21810. };
  21811. var prototypeAccessors = { namespaced: { configurable: true } };
  21812. prototypeAccessors.namespaced.get = function () {
  21813. return !!this._rawModule.namespaced
  21814. };
  21815. Module.prototype.addChild = function addChild (key, module) {
  21816. this._children[key] = module;
  21817. };
  21818. Module.prototype.removeChild = function removeChild (key) {
  21819. delete this._children[key];
  21820. };
  21821. Module.prototype.getChild = function getChild (key) {
  21822. return this._children[key]
  21823. };
  21824. Module.prototype.hasChild = function hasChild (key) {
  21825. return key in this._children
  21826. };
  21827. Module.prototype.update = function update (rawModule) {
  21828. this._rawModule.namespaced = rawModule.namespaced;
  21829. if (rawModule.actions) {
  21830. this._rawModule.actions = rawModule.actions;
  21831. }
  21832. if (rawModule.mutations) {
  21833. this._rawModule.mutations = rawModule.mutations;
  21834. }
  21835. if (rawModule.getters) {
  21836. this._rawModule.getters = rawModule.getters;
  21837. }
  21838. };
  21839. Module.prototype.forEachChild = function forEachChild (fn) {
  21840. forEachValue(this._children, fn);
  21841. };
  21842. Module.prototype.forEachGetter = function forEachGetter (fn) {
  21843. if (this._rawModule.getters) {
  21844. forEachValue(this._rawModule.getters, fn);
  21845. }
  21846. };
  21847. Module.prototype.forEachAction = function forEachAction (fn) {
  21848. if (this._rawModule.actions) {
  21849. forEachValue(this._rawModule.actions, fn);
  21850. }
  21851. };
  21852. Module.prototype.forEachMutation = function forEachMutation (fn) {
  21853. if (this._rawModule.mutations) {
  21854. forEachValue(this._rawModule.mutations, fn);
  21855. }
  21856. };
  21857. Object.defineProperties( Module.prototype, prototypeAccessors );
  21858. var ModuleCollection = function ModuleCollection (rawRootModule) {
  21859. // register root module (Vuex.Store options)
  21860. this.register([], rawRootModule, false);
  21861. };
  21862. ModuleCollection.prototype.get = function get (path) {
  21863. return path.reduce(function (module, key) {
  21864. return module.getChild(key)
  21865. }, this.root)
  21866. };
  21867. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  21868. var module = this.root;
  21869. return path.reduce(function (namespace, key) {
  21870. module = module.getChild(key);
  21871. return namespace + (module.namespaced ? key + '/' : '')
  21872. }, '')
  21873. };
  21874. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  21875. update([], this.root, rawRootModule);
  21876. };
  21877. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  21878. var this$1 = this;
  21879. if ( runtime === void 0 ) runtime = true;
  21880. if ((true)) {
  21881. assertRawModule(path, rawModule);
  21882. }
  21883. var newModule = new Module(rawModule, runtime);
  21884. if (path.length === 0) {
  21885. this.root = newModule;
  21886. } else {
  21887. var parent = this.get(path.slice(0, -1));
  21888. parent.addChild(path[path.length - 1], newModule);
  21889. }
  21890. // register nested modules
  21891. if (rawModule.modules) {
  21892. forEachValue(rawModule.modules, function (rawChildModule, key) {
  21893. this$1.register(path.concat(key), rawChildModule, runtime);
  21894. });
  21895. }
  21896. };
  21897. ModuleCollection.prototype.unregister = function unregister (path) {
  21898. var parent = this.get(path.slice(0, -1));
  21899. var key = path[path.length - 1];
  21900. var child = parent.getChild(key);
  21901. if (!child) {
  21902. if ((true)) {
  21903. console.warn(
  21904. "[vuex] trying to unregister module '" + key + "', which is " +
  21905. "not registered"
  21906. );
  21907. }
  21908. return
  21909. }
  21910. if (!child.runtime) {
  21911. return
  21912. }
  21913. parent.removeChild(key);
  21914. };
  21915. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  21916. var parent = this.get(path.slice(0, -1));
  21917. var key = path[path.length - 1];
  21918. if (parent) {
  21919. return parent.hasChild(key)
  21920. }
  21921. return false
  21922. };
  21923. function update (path, targetModule, newModule) {
  21924. if ((true)) {
  21925. assertRawModule(path, newModule);
  21926. }
  21927. // update target module
  21928. targetModule.update(newModule);
  21929. // update nested modules
  21930. if (newModule.modules) {
  21931. for (var key in newModule.modules) {
  21932. if (!targetModule.getChild(key)) {
  21933. if ((true)) {
  21934. console.warn(
  21935. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  21936. 'manual reload is needed'
  21937. );
  21938. }
  21939. return
  21940. }
  21941. update(
  21942. path.concat(key),
  21943. targetModule.getChild(key),
  21944. newModule.modules[key]
  21945. );
  21946. }
  21947. }
  21948. }
  21949. var functionAssert = {
  21950. assert: function (value) { return typeof value === 'function'; },
  21951. expected: 'function'
  21952. };
  21953. var objectAssert = {
  21954. assert: function (value) { return typeof value === 'function' ||
  21955. (typeof value === 'object' && typeof value.handler === 'function'); },
  21956. expected: 'function or object with "handler" function'
  21957. };
  21958. var assertTypes = {
  21959. getters: functionAssert,
  21960. mutations: functionAssert,
  21961. actions: objectAssert
  21962. };
  21963. function assertRawModule (path, rawModule) {
  21964. Object.keys(assertTypes).forEach(function (key) {
  21965. if (!rawModule[key]) { return }
  21966. var assertOptions = assertTypes[key];
  21967. forEachValue(rawModule[key], function (value, type) {
  21968. assert(
  21969. assertOptions.assert(value),
  21970. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  21971. );
  21972. });
  21973. });
  21974. }
  21975. function makeAssertionMessage (path, key, type, value, expected) {
  21976. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  21977. if (path.length > 0) {
  21978. buf += " in module \"" + (path.join('.')) + "\"";
  21979. }
  21980. buf += " is " + (JSON.stringify(value)) + ".";
  21981. return buf
  21982. }
  21983. var Vue; // bind on install
  21984. var Store = function Store (options) {
  21985. var this$1 = this;
  21986. if ( options === void 0 ) options = {};
  21987. // Auto install if it is not done yet and `window` has `Vue`.
  21988. // To allow users to avoid auto-installation in some cases,
  21989. // this code should be placed here. See #731
  21990. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  21991. install(window.Vue);
  21992. }
  21993. if ((true)) {
  21994. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  21995. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  21996. assert(this instanceof Store, "store must be called with the new operator.");
  21997. }
  21998. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  21999. var strict = options.strict; if ( strict === void 0 ) strict = false;
  22000. // store internal state
  22001. this._committing = false;
  22002. this._actions = Object.create(null);
  22003. this._actionSubscribers = [];
  22004. this._mutations = Object.create(null);
  22005. this._wrappedGetters = Object.create(null);
  22006. this._modules = new ModuleCollection(options);
  22007. this._modulesNamespaceMap = Object.create(null);
  22008. this._subscribers = [];
  22009. this._watcherVM = new Vue();
  22010. this._makeLocalGettersCache = Object.create(null);
  22011. // bind commit and dispatch to self
  22012. var store = this;
  22013. var ref = this;
  22014. var dispatch = ref.dispatch;
  22015. var commit = ref.commit;
  22016. this.dispatch = function boundDispatch (type, payload) {
  22017. return dispatch.call(store, type, payload)
  22018. };
  22019. this.commit = function boundCommit (type, payload, options) {
  22020. return commit.call(store, type, payload, options)
  22021. };
  22022. // strict mode
  22023. this.strict = strict;
  22024. var state = this._modules.root.state;
  22025. // init root module.
  22026. // this also recursively registers all sub-modules
  22027. // and collects all module getters inside this._wrappedGetters
  22028. installModule(this, state, [], this._modules.root);
  22029. // initialize the store vm, which is responsible for the reactivity
  22030. // (also registers _wrappedGetters as computed properties)
  22031. resetStoreVM(this, state);
  22032. // apply plugins
  22033. plugins.forEach(function (plugin) { return plugin(this$1); });
  22034. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  22035. if (useDevtools) {
  22036. devtoolPlugin(this);
  22037. }
  22038. };
  22039. var prototypeAccessors$1 = { state: { configurable: true } };
  22040. prototypeAccessors$1.state.get = function () {
  22041. return this._vm._data.$$state
  22042. };
  22043. prototypeAccessors$1.state.set = function (v) {
  22044. if ((true)) {
  22045. assert(false, "use store.replaceState() to explicit replace store state.");
  22046. }
  22047. };
  22048. Store.prototype.commit = function commit (_type, _payload, _options) {
  22049. var this$1 = this;
  22050. // check object-style commit
  22051. var ref = unifyObjectStyle(_type, _payload, _options);
  22052. var type = ref.type;
  22053. var payload = ref.payload;
  22054. var options = ref.options;
  22055. var mutation = { type: type, payload: payload };
  22056. var entry = this._mutations[type];
  22057. if (!entry) {
  22058. if ((true)) {
  22059. console.error(("[vuex] unknown mutation type: " + type));
  22060. }
  22061. return
  22062. }
  22063. this._withCommit(function () {
  22064. entry.forEach(function commitIterator (handler) {
  22065. handler(payload);
  22066. });
  22067. });
  22068. this._subscribers
  22069. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  22070. .forEach(function (sub) { return sub(mutation, this$1.state); });
  22071. if (
  22072. ( true) &&
  22073. options && options.silent
  22074. ) {
  22075. console.warn(
  22076. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  22077. 'Use the filter functionality in the vue-devtools'
  22078. );
  22079. }
  22080. };
  22081. Store.prototype.dispatch = function dispatch (_type, _payload) {
  22082. var this$1 = this;
  22083. // check object-style dispatch
  22084. var ref = unifyObjectStyle(_type, _payload);
  22085. var type = ref.type;
  22086. var payload = ref.payload;
  22087. var action = { type: type, payload: payload };
  22088. var entry = this._actions[type];
  22089. if (!entry) {
  22090. if ((true)) {
  22091. console.error(("[vuex] unknown action type: " + type));
  22092. }
  22093. return
  22094. }
  22095. try {
  22096. this._actionSubscribers
  22097. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  22098. .filter(function (sub) { return sub.before; })
  22099. .forEach(function (sub) { return sub.before(action, this$1.state); });
  22100. } catch (e) {
  22101. if ((true)) {
  22102. console.warn("[vuex] error in before action subscribers: ");
  22103. console.error(e);
  22104. }
  22105. }
  22106. var result = entry.length > 1
  22107. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  22108. : entry[0](payload);
  22109. return new Promise(function (resolve, reject) {
  22110. result.then(function (res) {
  22111. try {
  22112. this$1._actionSubscribers
  22113. .filter(function (sub) { return sub.after; })
  22114. .forEach(function (sub) { return sub.after(action, this$1.state); });
  22115. } catch (e) {
  22116. if ((true)) {
  22117. console.warn("[vuex] error in after action subscribers: ");
  22118. console.error(e);
  22119. }
  22120. }
  22121. resolve(res);
  22122. }, function (error) {
  22123. try {
  22124. this$1._actionSubscribers
  22125. .filter(function (sub) { return sub.error; })
  22126. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  22127. } catch (e) {
  22128. if ((true)) {
  22129. console.warn("[vuex] error in error action subscribers: ");
  22130. console.error(e);
  22131. }
  22132. }
  22133. reject(error);
  22134. });
  22135. })
  22136. };
  22137. Store.prototype.subscribe = function subscribe (fn, options) {
  22138. return genericSubscribe(fn, this._subscribers, options)
  22139. };
  22140. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  22141. var subs = typeof fn === 'function' ? { before: fn } : fn;
  22142. return genericSubscribe(subs, this._actionSubscribers, options)
  22143. };
  22144. Store.prototype.watch = function watch (getter, cb, options) {
  22145. var this$1 = this;
  22146. if ((true)) {
  22147. assert(typeof getter === 'function', "store.watch only accepts a function.");
  22148. }
  22149. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  22150. };
  22151. Store.prototype.replaceState = function replaceState (state) {
  22152. var this$1 = this;
  22153. this._withCommit(function () {
  22154. this$1._vm._data.$$state = state;
  22155. });
  22156. };
  22157. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  22158. if ( options === void 0 ) options = {};
  22159. if (typeof path === 'string') { path = [path]; }
  22160. if ((true)) {
  22161. assert(Array.isArray(path), "module path must be a string or an Array.");
  22162. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  22163. }
  22164. this._modules.register(path, rawModule);
  22165. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  22166. // reset store to update getters...
  22167. resetStoreVM(this, this.state);
  22168. };
  22169. Store.prototype.unregisterModule = function unregisterModule (path) {
  22170. var this$1 = this;
  22171. if (typeof path === 'string') { path = [path]; }
  22172. if ((true)) {
  22173. assert(Array.isArray(path), "module path must be a string or an Array.");
  22174. }
  22175. this._modules.unregister(path);
  22176. this._withCommit(function () {
  22177. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  22178. Vue.delete(parentState, path[path.length - 1]);
  22179. });
  22180. resetStore(this);
  22181. };
  22182. Store.prototype.hasModule = function hasModule (path) {
  22183. if (typeof path === 'string') { path = [path]; }
  22184. if ((true)) {
  22185. assert(Array.isArray(path), "module path must be a string or an Array.");
  22186. }
  22187. return this._modules.isRegistered(path)
  22188. };
  22189. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  22190. this._modules.update(newOptions);
  22191. resetStore(this, true);
  22192. };
  22193. Store.prototype._withCommit = function _withCommit (fn) {
  22194. var committing = this._committing;
  22195. this._committing = true;
  22196. fn();
  22197. this._committing = committing;
  22198. };
  22199. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  22200. function genericSubscribe (fn, subs, options) {
  22201. if (subs.indexOf(fn) < 0) {
  22202. options && options.prepend
  22203. ? subs.unshift(fn)
  22204. : subs.push(fn);
  22205. }
  22206. return function () {
  22207. var i = subs.indexOf(fn);
  22208. if (i > -1) {
  22209. subs.splice(i, 1);
  22210. }
  22211. }
  22212. }
  22213. function resetStore (store, hot) {
  22214. store._actions = Object.create(null);
  22215. store._mutations = Object.create(null);
  22216. store._wrappedGetters = Object.create(null);
  22217. store._modulesNamespaceMap = Object.create(null);
  22218. var state = store.state;
  22219. // init all modules
  22220. installModule(store, state, [], store._modules.root, true);
  22221. // reset vm
  22222. resetStoreVM(store, state, hot);
  22223. }
  22224. function resetStoreVM (store, state, hot) {
  22225. var oldVm = store._vm;
  22226. // bind store public getters
  22227. store.getters = {};
  22228. // reset local getters cache
  22229. store._makeLocalGettersCache = Object.create(null);
  22230. var wrappedGetters = store._wrappedGetters;
  22231. var computed = {};
  22232. forEachValue(wrappedGetters, function (fn, key) {
  22233. // use computed to leverage its lazy-caching mechanism
  22234. // direct inline function use will lead to closure preserving oldVm.
  22235. // using partial to return function with only arguments preserved in closure environment.
  22236. computed[key] = partial(fn, store);
  22237. Object.defineProperty(store.getters, key, {
  22238. get: function () { return store._vm[key]; },
  22239. enumerable: true // for local getters
  22240. });
  22241. });
  22242. // use a Vue instance to store the state tree
  22243. // suppress warnings just in case the user has added
  22244. // some funky global mixins
  22245. var silent = Vue.config.silent;
  22246. Vue.config.silent = true;
  22247. store._vm = new Vue({
  22248. data: {
  22249. $$state: state
  22250. },
  22251. computed: computed
  22252. });
  22253. Vue.config.silent = silent;
  22254. // enable strict mode for new vm
  22255. if (store.strict) {
  22256. enableStrictMode(store);
  22257. }
  22258. if (oldVm) {
  22259. if (hot) {
  22260. // dispatch changes in all subscribed watchers
  22261. // to force getter re-evaluation for hot reloading.
  22262. store._withCommit(function () {
  22263. oldVm._data.$$state = null;
  22264. });
  22265. }
  22266. Vue.nextTick(function () { return oldVm.$destroy(); });
  22267. }
  22268. }
  22269. function installModule (store, rootState, path, module, hot) {
  22270. var isRoot = !path.length;
  22271. var namespace = store._modules.getNamespace(path);
  22272. // register in namespace map
  22273. if (module.namespaced) {
  22274. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  22275. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  22276. }
  22277. store._modulesNamespaceMap[namespace] = module;
  22278. }
  22279. // set state
  22280. if (!isRoot && !hot) {
  22281. var parentState = getNestedState(rootState, path.slice(0, -1));
  22282. var moduleName = path[path.length - 1];
  22283. store._withCommit(function () {
  22284. if ((true)) {
  22285. if (moduleName in parentState) {
  22286. console.warn(
  22287. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  22288. );
  22289. }
  22290. }
  22291. Vue.set(parentState, moduleName, module.state);
  22292. });
  22293. }
  22294. var local = module.context = makeLocalContext(store, namespace, path);
  22295. module.forEachMutation(function (mutation, key) {
  22296. var namespacedType = namespace + key;
  22297. registerMutation(store, namespacedType, mutation, local);
  22298. });
  22299. module.forEachAction(function (action, key) {
  22300. var type = action.root ? key : namespace + key;
  22301. var handler = action.handler || action;
  22302. registerAction(store, type, handler, local);
  22303. });
  22304. module.forEachGetter(function (getter, key) {
  22305. var namespacedType = namespace + key;
  22306. registerGetter(store, namespacedType, getter, local);
  22307. });
  22308. module.forEachChild(function (child, key) {
  22309. installModule(store, rootState, path.concat(key), child, hot);
  22310. });
  22311. }
  22312. /**
  22313. * make localized dispatch, commit, getters and state
  22314. * if there is no namespace, just use root ones
  22315. */
  22316. function makeLocalContext (store, namespace, path) {
  22317. var noNamespace = namespace === '';
  22318. var local = {
  22319. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  22320. var args = unifyObjectStyle(_type, _payload, _options);
  22321. var payload = args.payload;
  22322. var options = args.options;
  22323. var type = args.type;
  22324. if (!options || !options.root) {
  22325. type = namespace + type;
  22326. if (( true) && !store._actions[type]) {
  22327. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  22328. return
  22329. }
  22330. }
  22331. return store.dispatch(type, payload)
  22332. },
  22333. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  22334. var args = unifyObjectStyle(_type, _payload, _options);
  22335. var payload = args.payload;
  22336. var options = args.options;
  22337. var type = args.type;
  22338. if (!options || !options.root) {
  22339. type = namespace + type;
  22340. if (( true) && !store._mutations[type]) {
  22341. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  22342. return
  22343. }
  22344. }
  22345. store.commit(type, payload, options);
  22346. }
  22347. };
  22348. // getters and state object must be gotten lazily
  22349. // because they will be changed by vm update
  22350. Object.defineProperties(local, {
  22351. getters: {
  22352. get: noNamespace
  22353. ? function () { return store.getters; }
  22354. : function () { return makeLocalGetters(store, namespace); }
  22355. },
  22356. state: {
  22357. get: function () { return getNestedState(store.state, path); }
  22358. }
  22359. });
  22360. return local
  22361. }
  22362. function makeLocalGetters (store, namespace) {
  22363. if (!store._makeLocalGettersCache[namespace]) {
  22364. var gettersProxy = {};
  22365. var splitPos = namespace.length;
  22366. Object.keys(store.getters).forEach(function (type) {
  22367. // skip if the target getter is not match this namespace
  22368. if (type.slice(0, splitPos) !== namespace) { return }
  22369. // extract local getter type
  22370. var localType = type.slice(splitPos);
  22371. // Add a port to the getters proxy.
  22372. // Define as getter property because
  22373. // we do not want to evaluate the getters in this time.
  22374. Object.defineProperty(gettersProxy, localType, {
  22375. get: function () { return store.getters[type]; },
  22376. enumerable: true
  22377. });
  22378. });
  22379. store._makeLocalGettersCache[namespace] = gettersProxy;
  22380. }
  22381. return store._makeLocalGettersCache[namespace]
  22382. }
  22383. function registerMutation (store, type, handler, local) {
  22384. var entry = store._mutations[type] || (store._mutations[type] = []);
  22385. entry.push(function wrappedMutationHandler (payload) {
  22386. handler.call(store, local.state, payload);
  22387. });
  22388. }
  22389. function registerAction (store, type, handler, local) {
  22390. var entry = store._actions[type] || (store._actions[type] = []);
  22391. entry.push(function wrappedActionHandler (payload) {
  22392. var res = handler.call(store, {
  22393. dispatch: local.dispatch,
  22394. commit: local.commit,
  22395. getters: local.getters,
  22396. state: local.state,
  22397. rootGetters: store.getters,
  22398. rootState: store.state
  22399. }, payload);
  22400. if (!isPromise(res)) {
  22401. res = Promise.resolve(res);
  22402. }
  22403. if (store._devtoolHook) {
  22404. return res.catch(function (err) {
  22405. store._devtoolHook.emit('vuex:error', err);
  22406. throw err
  22407. })
  22408. } else {
  22409. return res
  22410. }
  22411. });
  22412. }
  22413. function registerGetter (store, type, rawGetter, local) {
  22414. if (store._wrappedGetters[type]) {
  22415. if ((true)) {
  22416. console.error(("[vuex] duplicate getter key: " + type));
  22417. }
  22418. return
  22419. }
  22420. store._wrappedGetters[type] = function wrappedGetter (store) {
  22421. return rawGetter(
  22422. local.state, // local state
  22423. local.getters, // local getters
  22424. store.state, // root state
  22425. store.getters // root getters
  22426. )
  22427. };
  22428. }
  22429. function enableStrictMode (store) {
  22430. store._vm.$watch(function () { return this._data.$$state }, function () {
  22431. if ((true)) {
  22432. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  22433. }
  22434. }, { deep: true, sync: true });
  22435. }
  22436. function getNestedState (state, path) {
  22437. return path.reduce(function (state, key) { return state[key]; }, state)
  22438. }
  22439. function unifyObjectStyle (type, payload, options) {
  22440. if (isObject(type) && type.type) {
  22441. options = payload;
  22442. payload = type;
  22443. type = type.type;
  22444. }
  22445. if ((true)) {
  22446. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  22447. }
  22448. return { type: type, payload: payload, options: options }
  22449. }
  22450. function install (_Vue) {
  22451. if (Vue && _Vue === Vue) {
  22452. if ((true)) {
  22453. console.error(
  22454. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  22455. );
  22456. }
  22457. return
  22458. }
  22459. Vue = _Vue;
  22460. applyMixin(Vue);
  22461. }
  22462. /**
  22463. * Reduce the code which written in Vue.js for getting the state.
  22464. * @param {String} [namespace] - Module's namespace
  22465. * @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.
  22466. * @param {Object}
  22467. */
  22468. var mapState = normalizeNamespace(function (namespace, states) {
  22469. var res = {};
  22470. if (( true) && !isValidMap(states)) {
  22471. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  22472. }
  22473. normalizeMap(states).forEach(function (ref) {
  22474. var key = ref.key;
  22475. var val = ref.val;
  22476. res[key] = function mappedState () {
  22477. var state = this.$store.state;
  22478. var getters = this.$store.getters;
  22479. if (namespace) {
  22480. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  22481. if (!module) {
  22482. return
  22483. }
  22484. state = module.context.state;
  22485. getters = module.context.getters;
  22486. }
  22487. return typeof val === 'function'
  22488. ? val.call(this, state, getters)
  22489. : state[val]
  22490. };
  22491. // mark vuex getter for devtools
  22492. res[key].vuex = true;
  22493. });
  22494. return res
  22495. });
  22496. /**
  22497. * Reduce the code which written in Vue.js for committing the mutation
  22498. * @param {String} [namespace] - Module's namespace
  22499. * @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.
  22500. * @return {Object}
  22501. */
  22502. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  22503. var res = {};
  22504. if (( true) && !isValidMap(mutations)) {
  22505. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  22506. }
  22507. normalizeMap(mutations).forEach(function (ref) {
  22508. var key = ref.key;
  22509. var val = ref.val;
  22510. res[key] = function mappedMutation () {
  22511. var args = [], len = arguments.length;
  22512. while ( len-- ) args[ len ] = arguments[ len ];
  22513. // Get the commit method from store
  22514. var commit = this.$store.commit;
  22515. if (namespace) {
  22516. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  22517. if (!module) {
  22518. return
  22519. }
  22520. commit = module.context.commit;
  22521. }
  22522. return typeof val === 'function'
  22523. ? val.apply(this, [commit].concat(args))
  22524. : commit.apply(this.$store, [val].concat(args))
  22525. };
  22526. });
  22527. return res
  22528. });
  22529. /**
  22530. * Reduce the code which written in Vue.js for getting the getters
  22531. * @param {String} [namespace] - Module's namespace
  22532. * @param {Object|Array} getters
  22533. * @return {Object}
  22534. */
  22535. var mapGetters = normalizeNamespace(function (namespace, getters) {
  22536. var res = {};
  22537. if (( true) && !isValidMap(getters)) {
  22538. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  22539. }
  22540. normalizeMap(getters).forEach(function (ref) {
  22541. var key = ref.key;
  22542. var val = ref.val;
  22543. // The namespace has been mutated by normalizeNamespace
  22544. val = namespace + val;
  22545. res[key] = function mappedGetter () {
  22546. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  22547. return
  22548. }
  22549. if (( true) && !(val in this.$store.getters)) {
  22550. console.error(("[vuex] unknown getter: " + val));
  22551. return
  22552. }
  22553. return this.$store.getters[val]
  22554. };
  22555. // mark vuex getter for devtools
  22556. res[key].vuex = true;
  22557. });
  22558. return res
  22559. });
  22560. /**
  22561. * Reduce the code which written in Vue.js for dispatch the action
  22562. * @param {String} [namespace] - Module's namespace
  22563. * @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.
  22564. * @return {Object}
  22565. */
  22566. var mapActions = normalizeNamespace(function (namespace, actions) {
  22567. var res = {};
  22568. if (( true) && !isValidMap(actions)) {
  22569. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  22570. }
  22571. normalizeMap(actions).forEach(function (ref) {
  22572. var key = ref.key;
  22573. var val = ref.val;
  22574. res[key] = function mappedAction () {
  22575. var args = [], len = arguments.length;
  22576. while ( len-- ) args[ len ] = arguments[ len ];
  22577. // get dispatch function from store
  22578. var dispatch = this.$store.dispatch;
  22579. if (namespace) {
  22580. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  22581. if (!module) {
  22582. return
  22583. }
  22584. dispatch = module.context.dispatch;
  22585. }
  22586. return typeof val === 'function'
  22587. ? val.apply(this, [dispatch].concat(args))
  22588. : dispatch.apply(this.$store, [val].concat(args))
  22589. };
  22590. });
  22591. return res
  22592. });
  22593. /**
  22594. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  22595. * @param {String} namespace
  22596. * @return {Object}
  22597. */
  22598. var createNamespacedHelpers = function (namespace) { return ({
  22599. mapState: mapState.bind(null, namespace),
  22600. mapGetters: mapGetters.bind(null, namespace),
  22601. mapMutations: mapMutations.bind(null, namespace),
  22602. mapActions: mapActions.bind(null, namespace)
  22603. }); };
  22604. /**
  22605. * Normalize the map
  22606. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  22607. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  22608. * @param {Array|Object} map
  22609. * @return {Object}
  22610. */
  22611. function normalizeMap (map) {
  22612. if (!isValidMap(map)) {
  22613. return []
  22614. }
  22615. return Array.isArray(map)
  22616. ? map.map(function (key) { return ({ key: key, val: key }); })
  22617. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  22618. }
  22619. /**
  22620. * Validate whether given map is valid or not
  22621. * @param {*} map
  22622. * @return {Boolean}
  22623. */
  22624. function isValidMap (map) {
  22625. return Array.isArray(map) || isObject(map)
  22626. }
  22627. /**
  22628. * 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.
  22629. * @param {Function} fn
  22630. * @return {Function}
  22631. */
  22632. function normalizeNamespace (fn) {
  22633. return function (namespace, map) {
  22634. if (typeof namespace !== 'string') {
  22635. map = namespace;
  22636. namespace = '';
  22637. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  22638. namespace += '/';
  22639. }
  22640. return fn(namespace, map)
  22641. }
  22642. }
  22643. /**
  22644. * Search a special module from store by namespace. if module not exist, print error message.
  22645. * @param {Object} store
  22646. * @param {String} helper
  22647. * @param {String} namespace
  22648. * @return {Object}
  22649. */
  22650. function getModuleByNamespace (store, helper, namespace) {
  22651. var module = store._modulesNamespaceMap[namespace];
  22652. if (( true) && !module) {
  22653. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  22654. }
  22655. return module
  22656. }
  22657. // Credits: borrowed code from fcomb/redux-logger
  22658. function createLogger (ref) {
  22659. if ( ref === void 0 ) ref = {};
  22660. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  22661. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  22662. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  22663. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  22664. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  22665. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  22666. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  22667. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  22668. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  22669. return function (store) {
  22670. var prevState = deepCopy(store.state);
  22671. if (typeof logger === 'undefined') {
  22672. return
  22673. }
  22674. if (logMutations) {
  22675. store.subscribe(function (mutation, state) {
  22676. var nextState = deepCopy(state);
  22677. if (filter(mutation, prevState, nextState)) {
  22678. var formattedTime = getFormattedTime();
  22679. var formattedMutation = mutationTransformer(mutation);
  22680. var message = "mutation " + (mutation.type) + formattedTime;
  22681. startMessage(logger, message, collapsed);
  22682. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  22683. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  22684. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  22685. endMessage(logger);
  22686. }
  22687. prevState = nextState;
  22688. });
  22689. }
  22690. if (logActions) {
  22691. store.subscribeAction(function (action, state) {
  22692. if (actionFilter(action, state)) {
  22693. var formattedTime = getFormattedTime();
  22694. var formattedAction = actionTransformer(action);
  22695. var message = "action " + (action.type) + formattedTime;
  22696. startMessage(logger, message, collapsed);
  22697. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  22698. endMessage(logger);
  22699. }
  22700. });
  22701. }
  22702. }
  22703. }
  22704. function startMessage (logger, message, collapsed) {
  22705. var startMessage = collapsed
  22706. ? logger.groupCollapsed
  22707. : logger.group;
  22708. // render
  22709. try {
  22710. startMessage.call(logger, message);
  22711. } catch (e) {
  22712. logger.log(message);
  22713. }
  22714. }
  22715. function endMessage (logger) {
  22716. try {
  22717. logger.groupEnd();
  22718. } catch (e) {
  22719. logger.log('—— log end ——');
  22720. }
  22721. }
  22722. function getFormattedTime () {
  22723. var time = new Date();
  22724. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  22725. }
  22726. function repeat (str, times) {
  22727. return (new Array(times + 1)).join(str)
  22728. }
  22729. function pad (num, maxLength) {
  22730. return repeat('0', maxLength - num.toString().length) + num
  22731. }
  22732. var index_cjs = {
  22733. Store: Store,
  22734. install: install,
  22735. version: '3.6.2',
  22736. mapState: mapState,
  22737. mapMutations: mapMutations,
  22738. mapGetters: mapGetters,
  22739. mapActions: mapActions,
  22740. createNamespacedHelpers: createNamespacedHelpers,
  22741. createLogger: createLogger
  22742. };
  22743. module.exports = index_cjs;
  22744. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  22745. /***/ }),
  22746. /***/ 480:
  22747. /*!********************************************************************!*\
  22748. !*** D:/project/product_wx/wxcomponents/weapp/dist/empty/index.js ***!
  22749. \********************************************************************/
  22750. /*! no static exports found */
  22751. /***/ (function(module, exports, __webpack_require__) {
  22752. "use strict";
  22753. var _component = __webpack_require__(/*! ../common/component */ 423);
  22754. (0, _component.VantComponent)({
  22755. props: {
  22756. description: String,
  22757. image: {
  22758. type: String,
  22759. value: 'default'
  22760. }
  22761. }
  22762. });
  22763. /***/ }),
  22764. /***/ 49:
  22765. /*!***************************************************!*\
  22766. !*** D:/project/product_wx/pages/utils/common.js ***!
  22767. \***************************************************/
  22768. /*! no static exports found */
  22769. /***/ (function(module, exports, __webpack_require__) {
  22770. "use strict";
  22771. Object.defineProperty(exports, "__esModule", {
  22772. value: true
  22773. });
  22774. exports.default = void 0;
  22775. exports.getUrlParameter = getUrlParameter;
  22776. /**
  22777. * 获取url参数值
  22778. * @param {*} url
  22779. * @param {*} name
  22780. */
  22781. function getUrlParameter(url, name) {
  22782. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  22783. var regex = new RegExp(regexSearch);
  22784. var results = regex.exec(url);
  22785. console.log(results, 'results');
  22786. return results ? window.decodeURIComponent(results[1]) : '';
  22787. }
  22788. var _default = {
  22789. transDate: function transDate(val, pattern) {
  22790. if (val) {
  22791. var time = new Date();
  22792. time.setTime(val);
  22793. if (Date.parse(val)) {
  22794. time = new Date(val);
  22795. }
  22796. if (time instanceof Date) {
  22797. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  22798. }
  22799. }
  22800. return '';
  22801. },
  22802. transBaseDateTime: function transBaseDateTime(val, pattern) {
  22803. if (val) {
  22804. var time = new Date();
  22805. time.setTime(val);
  22806. if (Date.parse(val)) {
  22807. time = new Date(val);
  22808. }
  22809. if (time instanceof Date) {
  22810. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  22811. }
  22812. }
  22813. return '';
  22814. },
  22815. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  22816. if (val) {
  22817. var time = new Date();
  22818. time.setTime(val);
  22819. if (Date.parse(val)) {
  22820. time = new Date(val);
  22821. }
  22822. if (time instanceof Date) {
  22823. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  22824. }
  22825. }
  22826. return '';
  22827. },
  22828. transServDate: function transServDate(val) {
  22829. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  22830. },
  22831. transServDay: function transServDay(val) {
  22832. return this.transDate(val, 'yyyy-MM-dd');
  22833. },
  22834. isArrayFn: function isArrayFn(value) {
  22835. if (typeof Array.isArray === 'function') {
  22836. return Array.isArray(value);
  22837. } else {
  22838. return Object.prototype.toString.call(value) === '[object Array]';
  22839. }
  22840. },
  22841. transDcMap: function transDcMap(arr) {
  22842. var tMap = {};
  22843. arr.forEach(function (item) {
  22844. tMap[item.value] = item.label;
  22845. });
  22846. return tMap;
  22847. },
  22848. castEval: function castEval(val) {
  22849. // return JSON.parse(val)
  22850. if (val) {
  22851. return eval('(' + val + ')');
  22852. } else {
  22853. return '';
  22854. }
  22855. },
  22856. castString: function castString(val) {
  22857. return JSON.stringify(val);
  22858. },
  22859. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  22860. formatMoney: function formatMoney(amt) {
  22861. if (!amt) return '';
  22862. if (amt.length <= 3) {
  22863. return amt;
  22864. }
  22865. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  22866. return amt;
  22867. }
  22868. var a = RegExp.$1;
  22869. var b = RegExp.$2;
  22870. var c = RegExp.$3;
  22871. var re = new RegExp();
  22872. re.compile('(\\d)(\\d{3})(,|$)');
  22873. while (re.test(b)) {
  22874. b = b.replace(re, '$1,$2$3');
  22875. }
  22876. return a + '' + b + '' + c;
  22877. },
  22878. formatDate: function formatDate(fmt, date) {
  22879. // author: meizz
  22880. var o = {
  22881. 'M+': date.getMonth() + 1,
  22882. // 月份
  22883. 'd+': date.getDate(),
  22884. // 日
  22885. 'h+': date.getHours(),
  22886. // 小时
  22887. 'm+': date.getMinutes(),
  22888. // 分
  22889. 's+': date.getSeconds(),
  22890. // 秒
  22891. 'q+': Math.floor((date.getMonth() + 3) / 3),
  22892. // 季度
  22893. 'S': date.getMilliseconds() // 毫秒
  22894. };
  22895. if (/(y+)/.test(fmt)) {
  22896. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  22897. }
  22898. for (var k in o) {
  22899. if (new RegExp('(' + k + ')').test(fmt)) {
  22900. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  22901. }
  22902. }
  22903. return fmt;
  22904. },
  22905. replaceThumbnail: function replaceThumbnail(urlPath) {
  22906. if (urlPath != null) {
  22907. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  22908. }
  22909. if (urlPath != null) {
  22910. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  22911. }
  22912. return urlPath;
  22913. },
  22914. goBack: function goBack() {
  22915. // window.history.go(-1)
  22916. // self.location = document.referrer
  22917. history.back();
  22918. },
  22919. uuid: function uuid(len, radix) {
  22920. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  22921. var uuid = [];
  22922. var i;
  22923. radix = radix || chars.length;
  22924. if (len) {
  22925. // Compact form
  22926. for (i = 0; i < len; i++) {
  22927. uuid[i] = chars[0 | Math.random() * radix];
  22928. }
  22929. } else {
  22930. // rfc4122, version 4 form
  22931. var r;
  22932. // rfc4122 requires these characters
  22933. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  22934. uuid[14] = '4';
  22935. // Fill in random data. At i==19 set the high bits of clock sequence as
  22936. // per rfc4122, sec. 4.1.5
  22937. for (i = 0; i < 36; i++) {
  22938. if (!uuid[i]) {
  22939. r = 0 | Math.random() * 16;
  22940. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  22941. }
  22942. }
  22943. }
  22944. return uuid.join('');
  22945. },
  22946. handleDicList: function handleDicList(params) {
  22947. // 处理字典值数组
  22948. var obj = {};
  22949. for (var key in params) {
  22950. if (JSON.parse(params[key].dictValue)) {
  22951. obj[key] = JSON.parse(params[key].dictValue);
  22952. } else {
  22953. obj[key] = [];
  22954. }
  22955. }
  22956. return obj;
  22957. }
  22958. };
  22959. exports.default = _default;
  22960. /***/ }),
  22961. /***/ 493:
  22962. /*!************************************************************************************!*\
  22963. !*** D:/project/product_wx/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  22964. \************************************************************************************/
  22965. /*! no static exports found */
  22966. /***/ (function(module, exports, __webpack_require__) {
  22967. "use strict";
  22968. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22969. Object.defineProperty(exports, "__esModule", {
  22970. value: true
  22971. });
  22972. exports.default = void 0;
  22973. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  22974. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  22975. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  22976. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  22977. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  22978. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  22979. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  22980. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  22981. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  22982. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  22983. var pattern = {
  22984. email: /^\S+?@\S+?\.\S+?$/,
  22985. idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
  22986. 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')
  22987. };
  22988. var FORMAT_MAPPING = {
  22989. "int": 'integer',
  22990. "bool": 'boolean',
  22991. "double": 'number',
  22992. "long": 'number',
  22993. "password": 'string'
  22994. // "fileurls": 'array'
  22995. };
  22996. function formatMessage(args) {
  22997. var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  22998. var defaultMessage = ['label'];
  22999. defaultMessage.forEach(function (item) {
  23000. if (args[item] === undefined) {
  23001. args[item] = '';
  23002. }
  23003. });
  23004. var str = resources;
  23005. for (var key in args) {
  23006. var reg = new RegExp('{' + key + '}');
  23007. str = str.replace(reg, args[key]);
  23008. }
  23009. return str;
  23010. }
  23011. function isEmptyValue(value, type) {
  23012. if (value === undefined || value === null) {
  23013. return true;
  23014. }
  23015. if (typeof value === 'string' && !value) {
  23016. return true;
  23017. }
  23018. if (Array.isArray(value) && !value.length) {
  23019. return true;
  23020. }
  23021. if (type === 'object' && !Object.keys(value).length) {
  23022. return true;
  23023. }
  23024. return false;
  23025. }
  23026. var types = {
  23027. integer: function integer(value) {
  23028. return types.number(value) && parseInt(value, 10) === value;
  23029. },
  23030. string: function string(value) {
  23031. return typeof value === 'string';
  23032. },
  23033. number: function number(value) {
  23034. if (isNaN(value)) {
  23035. return false;
  23036. }
  23037. return typeof value === 'number';
  23038. },
  23039. "boolean": function boolean(value) {
  23040. return typeof value === 'boolean';
  23041. },
  23042. "float": function float(value) {
  23043. return types.number(value) && !types.integer(value);
  23044. },
  23045. array: function array(value) {
  23046. return Array.isArray(value);
  23047. },
  23048. object: function object(value) {
  23049. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  23050. },
  23051. date: function date(value) {
  23052. return value instanceof Date;
  23053. },
  23054. timestamp: function timestamp(value) {
  23055. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  23056. return false;
  23057. }
  23058. return true;
  23059. },
  23060. file: function file(value) {
  23061. return typeof value.url === 'string';
  23062. },
  23063. email: function email(value) {
  23064. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  23065. },
  23066. url: function url(value) {
  23067. return typeof value === 'string' && !!value.match(pattern.url);
  23068. },
  23069. pattern: function pattern(reg, value) {
  23070. try {
  23071. return new RegExp(reg).test(value);
  23072. } catch (e) {
  23073. return false;
  23074. }
  23075. },
  23076. method: function method(value) {
  23077. return typeof value === 'function';
  23078. },
  23079. idcard: function idcard(value) {
  23080. return typeof value === 'string' && !!value.match(pattern.idcard);
  23081. },
  23082. 'url-https': function urlHttps(value) {
  23083. return this.url(value) && value.startsWith('https://');
  23084. },
  23085. 'url-scheme': function urlScheme(value) {
  23086. return value.startsWith('://');
  23087. },
  23088. 'url-web': function urlWeb(value) {
  23089. return false;
  23090. }
  23091. };
  23092. var RuleValidator = /*#__PURE__*/function () {
  23093. function RuleValidator(message) {
  23094. (0, _classCallCheck2.default)(this, RuleValidator);
  23095. this._message = message;
  23096. }
  23097. (0, _createClass2.default)(RuleValidator, [{
  23098. key: "validateRule",
  23099. value: function () {
  23100. var _validateRule = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fieldKey, fieldValue, value, data, allData) {
  23101. var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;
  23102. return _regenerator.default.wrap(function _callee$(_context) {
  23103. while (1) {
  23104. switch (_context.prev = _context.next) {
  23105. case 0:
  23106. result = null;
  23107. rules = fieldValue.rules;
  23108. hasRequired = rules.findIndex(function (item) {
  23109. return item.required;
  23110. });
  23111. if (!(hasRequired < 0)) {
  23112. _context.next = 8;
  23113. break;
  23114. }
  23115. if (!(value === null || value === undefined)) {
  23116. _context.next = 6;
  23117. break;
  23118. }
  23119. return _context.abrupt("return", result);
  23120. case 6:
  23121. if (!(typeof value === 'string' && !value.length)) {
  23122. _context.next = 8;
  23123. break;
  23124. }
  23125. return _context.abrupt("return", result);
  23126. case 8:
  23127. message = this._message;
  23128. if (!(rules === undefined)) {
  23129. _context.next = 11;
  23130. break;
  23131. }
  23132. return _context.abrupt("return", message['default']);
  23133. case 11:
  23134. i = 0;
  23135. case 12:
  23136. if (!(i < rules.length)) {
  23137. _context.next = 35;
  23138. break;
  23139. }
  23140. rule = rules[i];
  23141. vt = this._getValidateType(rule);
  23142. Object.assign(rule, {
  23143. label: fieldValue.label || "[\"".concat(fieldKey, "\"]")
  23144. });
  23145. if (!RuleValidatorHelper[vt]) {
  23146. _context.next = 20;
  23147. break;
  23148. }
  23149. result = RuleValidatorHelper[vt](rule, value, message);
  23150. if (!(result != null)) {
  23151. _context.next = 20;
  23152. break;
  23153. }
  23154. return _context.abrupt("break", 35);
  23155. case 20:
  23156. if (!rule.validateExpr) {
  23157. _context.next = 26;
  23158. break;
  23159. }
  23160. now = Date.now();
  23161. resultExpr = rule.validateExpr(value, allData, now);
  23162. if (!(resultExpr === false)) {
  23163. _context.next = 26;
  23164. break;
  23165. }
  23166. result = this._getMessage(rule, rule.errorMessage || this._message['default']);
  23167. return _context.abrupt("break", 35);
  23168. case 26:
  23169. if (!rule.validateFunction) {
  23170. _context.next = 32;
  23171. break;
  23172. }
  23173. _context.next = 29;
  23174. return this.validateFunction(rule, value, data, allData, vt);
  23175. case 29:
  23176. result = _context.sent;
  23177. if (!(result !== null)) {
  23178. _context.next = 32;
  23179. break;
  23180. }
  23181. return _context.abrupt("break", 35);
  23182. case 32:
  23183. i++;
  23184. _context.next = 12;
  23185. break;
  23186. case 35:
  23187. if (result !== null) {
  23188. result = message.TAG + result;
  23189. }
  23190. return _context.abrupt("return", result);
  23191. case 37:
  23192. case "end":
  23193. return _context.stop();
  23194. }
  23195. }
  23196. }, _callee, this);
  23197. }));
  23198. function validateRule(_x, _x2, _x3, _x4, _x5) {
  23199. return _validateRule.apply(this, arguments);
  23200. }
  23201. return validateRule;
  23202. }()
  23203. }, {
  23204. key: "validateFunction",
  23205. value: function () {
  23206. var _validateFunction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rule, value, data, allData, vt) {
  23207. var result, callbackMessage, res;
  23208. return _regenerator.default.wrap(function _callee2$(_context2) {
  23209. while (1) {
  23210. switch (_context2.prev = _context2.next) {
  23211. case 0:
  23212. result = null;
  23213. _context2.prev = 1;
  23214. callbackMessage = null;
  23215. _context2.next = 5;
  23216. return rule.validateFunction(rule, value, allData || data, function (message) {
  23217. callbackMessage = message;
  23218. });
  23219. case 5:
  23220. res = _context2.sent;
  23221. if (callbackMessage || typeof res === 'string' && res || res === false) {
  23222. result = this._getMessage(rule, callbackMessage || res, vt);
  23223. }
  23224. _context2.next = 12;
  23225. break;
  23226. case 9:
  23227. _context2.prev = 9;
  23228. _context2.t0 = _context2["catch"](1);
  23229. result = this._getMessage(rule, _context2.t0.message, vt);
  23230. case 12:
  23231. return _context2.abrupt("return", result);
  23232. case 13:
  23233. case "end":
  23234. return _context2.stop();
  23235. }
  23236. }
  23237. }, _callee2, this, [[1, 9]]);
  23238. }));
  23239. function validateFunction(_x6, _x7, _x8, _x9, _x10) {
  23240. return _validateFunction.apply(this, arguments);
  23241. }
  23242. return validateFunction;
  23243. }()
  23244. }, {
  23245. key: "_getMessage",
  23246. value: function _getMessage(rule, message, vt) {
  23247. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  23248. }
  23249. }, {
  23250. key: "_getValidateType",
  23251. value: function _getValidateType(rule) {
  23252. var result = '';
  23253. if (rule.required) {
  23254. result = 'required';
  23255. } else if (rule.format) {
  23256. result = 'format';
  23257. } else if (rule.arrayType) {
  23258. result = 'arrayTypeFormat';
  23259. } else if (rule.range) {
  23260. result = 'range';
  23261. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  23262. result = 'rangeNumber';
  23263. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  23264. result = 'rangeLength';
  23265. } else if (rule.pattern) {
  23266. result = 'pattern';
  23267. } else if (rule.validateFunction) {
  23268. result = 'validateFunction';
  23269. }
  23270. return result;
  23271. }
  23272. }]);
  23273. return RuleValidator;
  23274. }();
  23275. var RuleValidatorHelper = {
  23276. required: function required(rule, value, message) {
  23277. if (rule.required && isEmptyValue(value, rule.format || (0, _typeof2.default)(value))) {
  23278. return formatMessage(rule, rule.errorMessage || message.required);
  23279. }
  23280. return null;
  23281. },
  23282. range: function range(rule, value, message) {
  23283. var range = rule.range,
  23284. errorMessage = rule.errorMessage;
  23285. var list = new Array(range.length);
  23286. for (var i = 0; i < range.length; i++) {
  23287. var item = range[i];
  23288. if (types.object(item) && item.value !== undefined) {
  23289. list[i] = item.value;
  23290. } else {
  23291. list[i] = item;
  23292. }
  23293. }
  23294. var result = false;
  23295. if (Array.isArray(value)) {
  23296. result = new Set(value.concat(list)).size === list.length;
  23297. } else {
  23298. if (list.indexOf(value) > -1) {
  23299. result = true;
  23300. }
  23301. }
  23302. if (!result) {
  23303. return formatMessage(rule, errorMessage || message['enum']);
  23304. }
  23305. return null;
  23306. },
  23307. rangeNumber: function rangeNumber(rule, value, message) {
  23308. if (!types.number(value)) {
  23309. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  23310. }
  23311. var minimum = rule.minimum,
  23312. maximum = rule.maximum,
  23313. exclusiveMinimum = rule.exclusiveMinimum,
  23314. exclusiveMaximum = rule.exclusiveMaximum;
  23315. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  23316. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  23317. if (minimum !== undefined && min) {
  23318. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? 'exclusiveMinimum' : 'minimum']);
  23319. } else if (maximum !== undefined && max) {
  23320. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? 'exclusiveMaximum' : 'maximum']);
  23321. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  23322. return formatMessage(rule, rule.errorMessage || message['number'].range);
  23323. }
  23324. return null;
  23325. },
  23326. rangeLength: function rangeLength(rule, value, message) {
  23327. if (!types.string(value) && !types.array(value)) {
  23328. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  23329. }
  23330. var min = rule.minLength;
  23331. var max = rule.maxLength;
  23332. var val = value.length;
  23333. if (min !== undefined && val < min) {
  23334. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  23335. } else if (max !== undefined && val > max) {
  23336. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  23337. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  23338. return formatMessage(rule, rule.errorMessage || message['length'].range);
  23339. }
  23340. return null;
  23341. },
  23342. pattern: function pattern(rule, value, message) {
  23343. if (!types['pattern'](rule.pattern, value)) {
  23344. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  23345. }
  23346. return null;
  23347. },
  23348. format: function format(rule, value, message) {
  23349. var customTypes = Object.keys(types);
  23350. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  23351. if (customTypes.indexOf(format) > -1) {
  23352. if (!types[format](value)) {
  23353. return formatMessage(rule, rule.errorMessage || message.typeError);
  23354. }
  23355. }
  23356. return null;
  23357. },
  23358. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  23359. if (!Array.isArray(value)) {
  23360. return formatMessage(rule, rule.errorMessage || message.typeError);
  23361. }
  23362. for (var i = 0; i < value.length; i++) {
  23363. var element = value[i];
  23364. var formatResult = this.format(rule, element, message);
  23365. if (formatResult !== null) {
  23366. return formatResult;
  23367. }
  23368. }
  23369. return null;
  23370. }
  23371. };
  23372. var SchemaValidator = /*#__PURE__*/function (_RuleValidator) {
  23373. (0, _inherits2.default)(SchemaValidator, _RuleValidator);
  23374. var _super = _createSuper(SchemaValidator);
  23375. function SchemaValidator(schema, options) {
  23376. var _this;
  23377. (0, _classCallCheck2.default)(this, SchemaValidator);
  23378. _this = _super.call(this, SchemaValidator.message);
  23379. _this._schema = schema;
  23380. _this._options = options || null;
  23381. return _this;
  23382. }
  23383. (0, _createClass2.default)(SchemaValidator, [{
  23384. key: "updateSchema",
  23385. value: function updateSchema(schema) {
  23386. this._schema = schema;
  23387. }
  23388. }, {
  23389. key: "validate",
  23390. value: function () {
  23391. var _validate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data, allData) {
  23392. var result;
  23393. return _regenerator.default.wrap(function _callee3$(_context3) {
  23394. while (1) {
  23395. switch (_context3.prev = _context3.next) {
  23396. case 0:
  23397. result = this._checkFieldInSchema(data);
  23398. if (result) {
  23399. _context3.next = 5;
  23400. break;
  23401. }
  23402. _context3.next = 4;
  23403. return this.invokeValidate(data, false, allData);
  23404. case 4:
  23405. result = _context3.sent;
  23406. case 5:
  23407. return _context3.abrupt("return", result.length ? result[0] : null);
  23408. case 6:
  23409. case "end":
  23410. return _context3.stop();
  23411. }
  23412. }
  23413. }, _callee3, this);
  23414. }));
  23415. function validate(_x11, _x12) {
  23416. return _validate.apply(this, arguments);
  23417. }
  23418. return validate;
  23419. }()
  23420. }, {
  23421. key: "validateAll",
  23422. value: function () {
  23423. var _validateAll = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data, allData) {
  23424. var result;
  23425. return _regenerator.default.wrap(function _callee4$(_context4) {
  23426. while (1) {
  23427. switch (_context4.prev = _context4.next) {
  23428. case 0:
  23429. result = this._checkFieldInSchema(data);
  23430. if (result) {
  23431. _context4.next = 5;
  23432. break;
  23433. }
  23434. _context4.next = 4;
  23435. return this.invokeValidate(data, true, allData);
  23436. case 4:
  23437. result = _context4.sent;
  23438. case 5:
  23439. return _context4.abrupt("return", result);
  23440. case 6:
  23441. case "end":
  23442. return _context4.stop();
  23443. }
  23444. }
  23445. }, _callee4, this);
  23446. }));
  23447. function validateAll(_x13, _x14) {
  23448. return _validateAll.apply(this, arguments);
  23449. }
  23450. return validateAll;
  23451. }()
  23452. }, {
  23453. key: "validateUpdate",
  23454. value: function () {
  23455. var _validateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(data, allData) {
  23456. var result;
  23457. return _regenerator.default.wrap(function _callee5$(_context5) {
  23458. while (1) {
  23459. switch (_context5.prev = _context5.next) {
  23460. case 0:
  23461. result = this._checkFieldInSchema(data);
  23462. if (result) {
  23463. _context5.next = 5;
  23464. break;
  23465. }
  23466. _context5.next = 4;
  23467. return this.invokeValidateUpdate(data, false, allData);
  23468. case 4:
  23469. result = _context5.sent;
  23470. case 5:
  23471. return _context5.abrupt("return", result.length ? result[0] : null);
  23472. case 6:
  23473. case "end":
  23474. return _context5.stop();
  23475. }
  23476. }
  23477. }, _callee5, this);
  23478. }));
  23479. function validateUpdate(_x15, _x16) {
  23480. return _validateUpdate.apply(this, arguments);
  23481. }
  23482. return validateUpdate;
  23483. }()
  23484. }, {
  23485. key: "invokeValidate",
  23486. value: function () {
  23487. var _invokeValidate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(data, all, allData) {
  23488. var result, schema, key, value, errorMessage;
  23489. return _regenerator.default.wrap(function _callee6$(_context6) {
  23490. while (1) {
  23491. switch (_context6.prev = _context6.next) {
  23492. case 0:
  23493. result = [];
  23494. schema = this._schema;
  23495. _context6.t0 = _regenerator.default.keys(schema);
  23496. case 3:
  23497. if ((_context6.t1 = _context6.t0()).done) {
  23498. _context6.next = 15;
  23499. break;
  23500. }
  23501. key = _context6.t1.value;
  23502. value = schema[key];
  23503. _context6.next = 8;
  23504. return this.validateRule(key, value, data[key], data, allData);
  23505. case 8:
  23506. errorMessage = _context6.sent;
  23507. if (!(errorMessage != null)) {
  23508. _context6.next = 13;
  23509. break;
  23510. }
  23511. result.push({
  23512. key: key,
  23513. errorMessage: errorMessage
  23514. });
  23515. if (all) {
  23516. _context6.next = 13;
  23517. break;
  23518. }
  23519. return _context6.abrupt("break", 15);
  23520. case 13:
  23521. _context6.next = 3;
  23522. break;
  23523. case 15:
  23524. return _context6.abrupt("return", result);
  23525. case 16:
  23526. case "end":
  23527. return _context6.stop();
  23528. }
  23529. }
  23530. }, _callee6, this);
  23531. }));
  23532. function invokeValidate(_x17, _x18, _x19) {
  23533. return _invokeValidate.apply(this, arguments);
  23534. }
  23535. return invokeValidate;
  23536. }()
  23537. }, {
  23538. key: "invokeValidateUpdate",
  23539. value: function () {
  23540. var _invokeValidateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(data, all, allData) {
  23541. var result, key, errorMessage;
  23542. return _regenerator.default.wrap(function _callee7$(_context7) {
  23543. while (1) {
  23544. switch (_context7.prev = _context7.next) {
  23545. case 0:
  23546. result = [];
  23547. _context7.t0 = _regenerator.default.keys(data);
  23548. case 2:
  23549. if ((_context7.t1 = _context7.t0()).done) {
  23550. _context7.next = 13;
  23551. break;
  23552. }
  23553. key = _context7.t1.value;
  23554. _context7.next = 6;
  23555. return this.validateRule(key, this._schema[key], data[key], data, allData);
  23556. case 6:
  23557. errorMessage = _context7.sent;
  23558. if (!(errorMessage != null)) {
  23559. _context7.next = 11;
  23560. break;
  23561. }
  23562. result.push({
  23563. key: key,
  23564. errorMessage: errorMessage
  23565. });
  23566. if (all) {
  23567. _context7.next = 11;
  23568. break;
  23569. }
  23570. return _context7.abrupt("break", 13);
  23571. case 11:
  23572. _context7.next = 2;
  23573. break;
  23574. case 13:
  23575. return _context7.abrupt("return", result);
  23576. case 14:
  23577. case "end":
  23578. return _context7.stop();
  23579. }
  23580. }
  23581. }, _callee7, this);
  23582. }));
  23583. function invokeValidateUpdate(_x20, _x21, _x22) {
  23584. return _invokeValidateUpdate.apply(this, arguments);
  23585. }
  23586. return invokeValidateUpdate;
  23587. }()
  23588. }, {
  23589. key: "_checkFieldInSchema",
  23590. value: function _checkFieldInSchema(data) {
  23591. var keys = Object.keys(data);
  23592. var keys2 = Object.keys(this._schema);
  23593. if (new Set(keys.concat(keys2)).size === keys2.length) {
  23594. return '';
  23595. }
  23596. var noExistFields = keys.filter(function (key) {
  23597. return keys2.indexOf(key) < 0;
  23598. });
  23599. var errorMessage = formatMessage({
  23600. field: JSON.stringify(noExistFields)
  23601. }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  23602. return [{
  23603. key: 'invalid',
  23604. errorMessage: errorMessage
  23605. }];
  23606. }
  23607. }]);
  23608. return SchemaValidator;
  23609. }(RuleValidator);
  23610. function Message() {
  23611. return {
  23612. TAG: "",
  23613. default: '验证错误',
  23614. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  23615. validateFunction: '验证无效',
  23616. required: '{label}必填',
  23617. 'enum': '{label}超出范围',
  23618. timestamp: '{label}格式无效',
  23619. whitespace: '{label}不能为空',
  23620. typeError: '{label}类型无效',
  23621. date: {
  23622. format: '{label}日期{value}格式无效',
  23623. parse: '{label}日期无法解析,{value}无效',
  23624. invalid: '{label}日期{value}无效'
  23625. },
  23626. length: {
  23627. minLength: '{label}长度不能少于{minLength}',
  23628. maxLength: '{label}长度不能超过{maxLength}',
  23629. range: '{label}必须介于{minLength}和{maxLength}之间'
  23630. },
  23631. number: {
  23632. minimum: '{label}不能小于{minimum}',
  23633. maximum: '{label}不能大于{maximum}',
  23634. exclusiveMinimum: '{label}不能小于等于{minimum}',
  23635. exclusiveMaximum: '{label}不能大于等于{maximum}',
  23636. range: '{label}必须介于{minimum}and{maximum}之间'
  23637. },
  23638. pattern: {
  23639. mismatch: '{label}格式不匹配'
  23640. }
  23641. };
  23642. }
  23643. SchemaValidator.message = new Message();
  23644. var _default = SchemaValidator;
  23645. exports.default = _default;
  23646. /***/ }),
  23647. /***/ 494:
  23648. /*!*********************************************************************************!*\
  23649. !*** D:/project/product_wx/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  23650. \*********************************************************************************/
  23651. /*! no static exports found */
  23652. /***/ (function(module, exports, __webpack_require__) {
  23653. "use strict";
  23654. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  23655. Object.defineProperty(exports, "__esModule", {
  23656. value: true
  23657. });
  23658. exports.typeFilter = exports.type = exports.setDataValue = exports.realName = exports.rawData = exports.objSet = exports.objGet = exports.name2arr = exports.isRequiredField = exports.isRealName = exports.isNumber = exports.isEqual = exports.isBoolean = exports.getValue = exports.getDataValueType = exports.getDataValue = exports.deepCopy = void 0;
  23659. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  23660. /**
  23661. * 简单处理对象拷贝
  23662. * @param {Obejct} 被拷贝对象
  23663. * @@return {Object} 拷贝对象
  23664. */
  23665. var deepCopy = function deepCopy(val) {
  23666. return JSON.parse(JSON.stringify(val));
  23667. };
  23668. /**
  23669. * 过滤数字类型
  23670. * @param {String} format 数字类型
  23671. * @@return {Boolean} 返回是否为数字类型
  23672. */
  23673. exports.deepCopy = deepCopy;
  23674. var typeFilter = function typeFilter(format) {
  23675. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  23676. };
  23677. /**
  23678. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  23679. * @param {String} key 字段名
  23680. * @param {any} value 字段值
  23681. * @param {Object} rules 表单校验规则
  23682. */
  23683. exports.typeFilter = typeFilter;
  23684. var getValue = function getValue(key, value, rules) {
  23685. var isRuleNumType = rules.find(function (val) {
  23686. return val.format && typeFilter(val.format);
  23687. });
  23688. var isRuleBoolType = rules.find(function (val) {
  23689. return val.format && val.format === 'boolean' || val.format === 'bool';
  23690. });
  23691. // 输入类型为 number
  23692. if (!!isRuleNumType) {
  23693. if (!value && value !== 0) {
  23694. value = null;
  23695. } else {
  23696. value = isNumber(Number(value)) ? Number(value) : value;
  23697. }
  23698. }
  23699. // 输入类型为 boolean
  23700. if (!!isRuleBoolType) {
  23701. value = isBoolean(value) ? value : false;
  23702. }
  23703. return value;
  23704. };
  23705. /**
  23706. * 获取表单数据
  23707. * @param {String|Array} name 真实名称,需要使用 realName 获取
  23708. * @param {Object} data 原始数据
  23709. * @param {any} value 需要设置的值
  23710. */
  23711. exports.getValue = getValue;
  23712. var setDataValue = function setDataValue(field, formdata, value) {
  23713. formdata[field] = value;
  23714. return value || '';
  23715. };
  23716. /**
  23717. * 获取表单数据
  23718. * @param {String|Array} field 真实名称,需要使用 realName 获取
  23719. * @param {Object} data 原始数据
  23720. */
  23721. exports.setDataValue = setDataValue;
  23722. var getDataValue = function getDataValue(field, data) {
  23723. return objGet(data, field);
  23724. };
  23725. /**
  23726. * 获取表单类型
  23727. * @param {String|Array} field 真实名称,需要使用 realName 获取
  23728. */
  23729. exports.getDataValue = getDataValue;
  23730. var getDataValueType = function getDataValueType(field, data) {
  23731. var value = getDataValue(field, data);
  23732. return {
  23733. type: type(value),
  23734. value: value
  23735. };
  23736. };
  23737. /**
  23738. * 获取表单可用的真实name
  23739. * @param {String|Array} name 表单name
  23740. * @@return {String} 表单可用的真实name
  23741. */
  23742. exports.getDataValueType = getDataValueType;
  23743. var realName = function realName(name) {
  23744. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  23745. var base_name = _basePath(name);
  23746. if ((0, _typeof2.default)(base_name) === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  23747. var realname = base_name.reduce(function (a, b) {
  23748. return a += "#".concat(b);
  23749. }, '_formdata_');
  23750. return realname;
  23751. }
  23752. return base_name[0] || name;
  23753. };
  23754. /**
  23755. * 判断是否表单可用的真实name
  23756. * @param {String|Array} name 表单name
  23757. * @@return {String} 表单可用的真实name
  23758. */
  23759. exports.realName = realName;
  23760. var isRealName = function isRealName(name) {
  23761. var reg = /^_formdata_#*/;
  23762. return reg.test(name);
  23763. };
  23764. /**
  23765. * 获取表单数据的原始格式
  23766. * @@return {Object|Array} object 需要解析的数据
  23767. */
  23768. exports.isRealName = isRealName;
  23769. var rawData = function rawData() {
  23770. var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  23771. var name = arguments.length > 1 ? arguments[1] : undefined;
  23772. var newData = JSON.parse(JSON.stringify(object));
  23773. var formData = {};
  23774. for (var i in newData) {
  23775. var path = name2arr(i);
  23776. objSet(formData, path, newData[i]);
  23777. }
  23778. return formData;
  23779. };
  23780. /**
  23781. * 真实name还原为 array
  23782. * @param {*} name
  23783. */
  23784. exports.rawData = rawData;
  23785. var name2arr = function name2arr(name) {
  23786. var field = name.replace('_formdata_#', '');
  23787. field = field.split('#').map(function (v) {
  23788. return isNumber(v) ? Number(v) : v;
  23789. });
  23790. return field;
  23791. };
  23792. /**
  23793. * 对象中设置值
  23794. * @param {Object|Array} object 源数据
  23795. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  23796. * @param {String} value 需要设置的值
  23797. */
  23798. exports.name2arr = name2arr;
  23799. var objSet = function objSet(object, path, value) {
  23800. if ((0, _typeof2.default)(object) !== 'object') return object;
  23801. _basePath(path).reduce(function (o, k, i, _) {
  23802. if (i === _.length - 1) {
  23803. // 若遍历结束直接赋值
  23804. o[k] = value;
  23805. return null;
  23806. } else if (k in o) {
  23807. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  23808. return o[k];
  23809. } else {
  23810. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  23811. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  23812. return o[k];
  23813. }
  23814. }, object);
  23815. // 返回object
  23816. return object;
  23817. };
  23818. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  23819. exports.objSet = objSet;
  23820. function _basePath(path) {
  23821. // 若是数组,则直接返回
  23822. if (Array.isArray(path)) return path;
  23823. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  23824. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  23825. }
  23826. /**
  23827. * 从对象中获取值
  23828. * @param {Object|Array} object 源数据
  23829. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  23830. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  23831. */
  23832. var objGet = function objGet(object, path) {
  23833. var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  23834. // 先将path处理成统一格式
  23835. var newPath = _basePath(path);
  23836. // 递归处理,返回最后结果
  23837. var val = newPath.reduce(function (o, k) {
  23838. return (o || {})[k];
  23839. }, object);
  23840. return !val || val !== undefined ? val : defaultVal;
  23841. };
  23842. /**
  23843. * 是否为 number 类型
  23844. * @param {any} num 需要判断的值
  23845. * @return {Boolean} 是否为 number
  23846. */
  23847. exports.objGet = objGet;
  23848. var isNumber = function isNumber(num) {
  23849. return !isNaN(Number(num));
  23850. };
  23851. /**
  23852. * 是否为 boolean 类型
  23853. * @param {any} bool 需要判断的值
  23854. * @return {Boolean} 是否为 boolean
  23855. */
  23856. exports.isNumber = isNumber;
  23857. var isBoolean = function isBoolean(bool) {
  23858. return typeof bool === 'boolean';
  23859. };
  23860. /**
  23861. * 是否有必填字段
  23862. * @param {Object} rules 规则
  23863. * @return {Boolean} 是否有必填字段
  23864. */
  23865. exports.isBoolean = isBoolean;
  23866. var isRequiredField = function isRequiredField(rules) {
  23867. var isNoField = false;
  23868. for (var i = 0; i < rules.length; i++) {
  23869. var ruleData = rules[i];
  23870. if (ruleData.required) {
  23871. isNoField = true;
  23872. break;
  23873. }
  23874. }
  23875. return isNoField;
  23876. };
  23877. /**
  23878. * 获取数据类型
  23879. * @param {Any} obj 需要获取数据类型的值
  23880. */
  23881. exports.isRequiredField = isRequiredField;
  23882. var type = function type(obj) {
  23883. var class2type = {};
  23884. // 生成class2type映射
  23885. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  23886. class2type["[object " + item + "]"] = item.toLowerCase();
  23887. });
  23888. if (obj == null) {
  23889. return obj + "";
  23890. }
  23891. return (0, _typeof2.default)(obj) === "object" || typeof obj === "function" ? class2type[Object.prototype.toString.call(obj)] || "object" : (0, _typeof2.default)(obj);
  23892. };
  23893. /**
  23894. * 判断两个值是否相等
  23895. * @param {any} a 值
  23896. * @param {any} b 值
  23897. * @return {Boolean} 是否相等
  23898. */
  23899. exports.type = type;
  23900. var isEqual = function isEqual(a, b) {
  23901. //如果a和b本来就全等
  23902. if (a === b) {
  23903. //判断是否为0和-0
  23904. return a !== 0 || 1 / a === 1 / b;
  23905. }
  23906. //判断是否为null和undefined
  23907. if (a == null || b == null) {
  23908. return a === b;
  23909. }
  23910. //接下来判断a和b的数据类型
  23911. var classNameA = toString.call(a),
  23912. classNameB = toString.call(b);
  23913. //如果数据类型不相等,则返回false
  23914. if (classNameA !== classNameB) {
  23915. return false;
  23916. }
  23917. //如果数据类型相等,再根据不同数据类型分别判断
  23918. switch (classNameA) {
  23919. case '[object RegExp]':
  23920. case '[object String]':
  23921. //进行字符串转换比较
  23922. return '' + a === '' + b;
  23923. case '[object Number]':
  23924. //进行数字转换比较,判断是否为NaN
  23925. if (+a !== +a) {
  23926. return +b !== +b;
  23927. }
  23928. //判断是否为0或-0
  23929. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  23930. case '[object Date]':
  23931. case '[object Boolean]':
  23932. return +a === +b;
  23933. }
  23934. //如果是对象类型
  23935. if (classNameA == '[object Object]') {
  23936. //获取a和b的属性长度
  23937. var propsA = Object.getOwnPropertyNames(a),
  23938. propsB = Object.getOwnPropertyNames(b);
  23939. if (propsA.length != propsB.length) {
  23940. return false;
  23941. }
  23942. for (var i = 0; i < propsA.length; i++) {
  23943. var propName = propsA[i];
  23944. //如果对应属性对应值不相等,则返回false
  23945. if (a[propName] !== b[propName]) {
  23946. return false;
  23947. }
  23948. }
  23949. return true;
  23950. }
  23951. //如果是数组类型
  23952. if (classNameA == '[object Array]') {
  23953. if (a.toString() == b.toString()) {
  23954. return true;
  23955. }
  23956. return false;
  23957. }
  23958. };
  23959. exports.isEqual = isEqual;
  23960. /***/ }),
  23961. /***/ 5:
  23962. /*!**************************************************************!*\
  23963. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  23964. \**************************************************************/
  23965. /*! no static exports found */
  23966. /***/ (function(module, exports, __webpack_require__) {
  23967. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  23968. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  23969. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  23970. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  23971. function _slicedToArray(arr, i) {
  23972. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  23973. }
  23974. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  23975. /***/ }),
  23976. /***/ 50:
  23977. /*!*****************************************************!*\
  23978. !*** D:/project/product_wx/pages/utils/constant.js ***!
  23979. \*****************************************************/
  23980. /*! no static exports found */
  23981. /***/ (function(module, exports, __webpack_require__) {
  23982. "use strict";
  23983. Object.defineProperty(exports, "__esModule", {
  23984. value: true
  23985. });
  23986. exports.default = exports.BASE_URI = void 0;
  23987. // 系统常量
  23988. // export const BASE_URI = "http://192.168.2.111:9011"; // 正式
  23989. var BASE_URI = 'https://www.idea-co-sf.com/gardenProductApi';
  23990. // export const BASE_URI = "http://192.168.3.94:9010"; // 老潘本地
  23991. // export const BASE_URI = "http://192.168.2.107:9011"; // 洮洮本地
  23992. // export const BASE_URI = "http://192.168.2.103:9010"; // 老崔本地
  23993. // export const BASE_URI = "http://192.168.2.107:9015"; // 许峰本地
  23994. // export const BASE_URI = "http://192.168.2.112:9010"; // 陈凡本地
  23995. exports.BASE_URI = BASE_URI;
  23996. var _default = {
  23997. /* 系统常量*/
  23998. // 基础地址
  23999. BASE_URI: BASE_URI
  24000. };
  24001. exports.default = _default;
  24002. /***/ }),
  24003. /***/ 51:
  24004. /*!**********************************************!*\
  24005. !*** D:/project/product_wx/js_sdk/common.js ***!
  24006. \**********************************************/
  24007. /*! no static exports found */
  24008. /***/ (function(module, exports, __webpack_require__) {
  24009. "use strict";
  24010. /* WEBPACK VAR INJECTION */(function(uni) {
  24011. Object.defineProperty(exports, "__esModule", {
  24012. value: true
  24013. });
  24014. exports.default = void 0;
  24015. exports.getUrlParameter = getUrlParameter;
  24016. exports.showToast = showToast;
  24017. /**
  24018. * 获取url参数值
  24019. * @param {*} url
  24020. * @param {*} name
  24021. */
  24022. function getUrlParameter(url, name) {
  24023. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  24024. var regex = new RegExp(regexSearch);
  24025. var results = regex.exec(url);
  24026. return results ? window.decodeURIComponent(results[1]) : '';
  24027. }
  24028. function showToast(e) {
  24029. uni.showToast({
  24030. title: e,
  24031. icon: 'none',
  24032. mask: true,
  24033. duration: 1000
  24034. });
  24035. }
  24036. var _default = {
  24037. transDate: function transDate(val, pattern) {
  24038. if (val) {
  24039. var time = new Date();
  24040. time.setTime(val);
  24041. if (Date.parse(val)) {
  24042. time = new Date(val);
  24043. }
  24044. if (time instanceof Date) {
  24045. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  24046. }
  24047. }
  24048. return '';
  24049. },
  24050. transBaseDateTime: function transBaseDateTime(val, pattern) {
  24051. if (val) {
  24052. var time = new Date();
  24053. time.setTime(val);
  24054. if (Date.parse(val)) {
  24055. time = new Date(val);
  24056. }
  24057. if (time instanceof Date) {
  24058. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  24059. }
  24060. }
  24061. return '';
  24062. },
  24063. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  24064. if (val) {
  24065. var time = new Date();
  24066. time.setTime(val);
  24067. if (Date.parse(val)) {
  24068. time = new Date(val);
  24069. }
  24070. if (time instanceof Date) {
  24071. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  24072. }
  24073. }
  24074. return '';
  24075. },
  24076. transServDate: function transServDate(val) {
  24077. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  24078. },
  24079. transServDay: function transServDay(val) {
  24080. return this.transDate(val, 'yyyy-MM-dd');
  24081. },
  24082. isArrayFn: function isArrayFn(value) {
  24083. if (typeof Array.isArray === 'function') {
  24084. return Array.isArray(value);
  24085. } else {
  24086. return Object.prototype.toString.call(value) === '[object Array]';
  24087. }
  24088. },
  24089. transDcMap: function transDcMap(arr) {
  24090. var tMap = {};
  24091. arr.forEach(function (item) {
  24092. tMap[item.value] = item.label;
  24093. });
  24094. return tMap;
  24095. },
  24096. castEval: function castEval(val) {
  24097. // return JSON.parse(val)
  24098. if (val) {
  24099. return eval('(' + val + ')');
  24100. } else {
  24101. return '';
  24102. }
  24103. },
  24104. castString: function castString(val) {
  24105. return JSON.stringify(val);
  24106. },
  24107. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  24108. formatMoney: function formatMoney(amt) {
  24109. if (!amt) return '';
  24110. if (amt.length <= 3) {
  24111. return amt;
  24112. }
  24113. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  24114. return amt;
  24115. }
  24116. var a = RegExp.$1;
  24117. var b = RegExp.$2;
  24118. var c = RegExp.$3;
  24119. var re = new RegExp();
  24120. re.compile('(\\d)(\\d{3})(,|$)');
  24121. while (re.test(b)) {
  24122. b = b.replace(re, '$1,$2$3');
  24123. }
  24124. return a + '' + b + '' + c;
  24125. },
  24126. formatDate: function formatDate(fmt, date) {
  24127. // author: meizz
  24128. var o = {
  24129. 'M+': date.getMonth() + 1,
  24130. // 月份
  24131. 'd+': date.getDate(),
  24132. // 日
  24133. 'h+': date.getHours(),
  24134. // 小时
  24135. 'm+': date.getMinutes(),
  24136. // 分
  24137. 's+': date.getSeconds(),
  24138. // 秒
  24139. 'q+': Math.floor((date.getMonth() + 3) / 3),
  24140. // 季度
  24141. 'S': date.getMilliseconds() // 毫秒
  24142. };
  24143. if (/(y+)/.test(fmt)) {
  24144. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  24145. }
  24146. for (var k in o) {
  24147. if (new RegExp('(' + k + ')').test(fmt)) {
  24148. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  24149. }
  24150. }
  24151. return fmt;
  24152. },
  24153. replaceThumbnail: function replaceThumbnail(urlPath) {
  24154. if (urlPath != null) {
  24155. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  24156. }
  24157. if (urlPath != null) {
  24158. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  24159. }
  24160. return urlPath;
  24161. },
  24162. goBack: function goBack() {
  24163. // window.history.go(-1)
  24164. // self.location = document.referrer
  24165. history.back();
  24166. },
  24167. uuid: function uuid(len, radix) {
  24168. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  24169. var uuid = [];
  24170. var i;
  24171. radix = radix || chars.length;
  24172. if (len) {
  24173. // Compact form
  24174. for (i = 0; i < len; i++) {
  24175. uuid[i] = chars[0 | Math.random() * radix];
  24176. }
  24177. } else {
  24178. // rfc4122, version 4 form
  24179. var r;
  24180. // rfc4122 requires these characters
  24181. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  24182. uuid[14] = '4';
  24183. // Fill in random data. At i==19 set the high bits of clock sequence as
  24184. // per rfc4122, sec. 4.1.5
  24185. for (i = 0; i < 36; i++) {
  24186. if (!uuid[i]) {
  24187. r = 0 | Math.random() * 16;
  24188. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  24189. }
  24190. }
  24191. }
  24192. return uuid.join('');
  24193. }
  24194. };
  24195. exports.default = _default;
  24196. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24197. /***/ }),
  24198. /***/ 518:
  24199. /*!***********************************************************************!*\
  24200. !*** D:/project/product_wx/wxcomponents/weapp/dist/uploader/index.js ***!
  24201. \***********************************************************************/
  24202. /*! no static exports found */
  24203. /***/ (function(module, exports, __webpack_require__) {
  24204. "use strict";
  24205. /* WEBPACK VAR INJECTION */(function(wx) {
  24206. var _component = __webpack_require__(/*! ../common/component */ 423);
  24207. var _utils = __webpack_require__(/*! ./utils */ 519);
  24208. var _shared = __webpack_require__(/*! ./shared */ 520);
  24209. var _validator = __webpack_require__(/*! ../common/validator */ 429);
  24210. (0, _component.VantComponent)({
  24211. props: Object.assign(Object.assign(Object.assign(Object.assign({
  24212. disabled: Boolean,
  24213. multiple: Boolean,
  24214. uploadText: String,
  24215. useBeforeRead: Boolean,
  24216. afterRead: null,
  24217. beforeRead: null,
  24218. previewSize: {
  24219. type: null,
  24220. value: 80
  24221. },
  24222. name: {
  24223. type: null,
  24224. value: ''
  24225. },
  24226. accept: {
  24227. type: String,
  24228. value: 'image'
  24229. },
  24230. fileList: {
  24231. type: Array,
  24232. value: [],
  24233. observer: 'formatFileList'
  24234. },
  24235. maxSize: {
  24236. type: Number,
  24237. value: Number.MAX_VALUE
  24238. },
  24239. maxCount: {
  24240. type: Number,
  24241. value: 100
  24242. },
  24243. deletable: {
  24244. type: Boolean,
  24245. value: true
  24246. },
  24247. showUpload: {
  24248. type: Boolean,
  24249. value: true
  24250. },
  24251. previewImage: {
  24252. type: Boolean,
  24253. value: true
  24254. },
  24255. previewFullImage: {
  24256. type: Boolean,
  24257. value: true
  24258. },
  24259. imageFit: {
  24260. type: String,
  24261. value: 'scaleToFill'
  24262. },
  24263. uploadIcon: {
  24264. type: String,
  24265. value: 'photograph'
  24266. }
  24267. }, _shared.imageProps), _shared.videoProps), _shared.mediaProps), _shared.messageFileProps),
  24268. data: {
  24269. lists: [],
  24270. isInCount: true
  24271. },
  24272. methods: {
  24273. formatFileList: function formatFileList() {
  24274. var _this$data = this.data,
  24275. _this$data$fileList = _this$data.fileList,
  24276. fileList = _this$data$fileList === void 0 ? [] : _this$data$fileList,
  24277. maxCount = _this$data.maxCount;
  24278. var lists = fileList.map(function (item) {
  24279. return Object.assign(Object.assign({}, item), {
  24280. isImage: (0, _utils.isImageFile)(item),
  24281. isVideo: (0, _utils.isVideoFile)(item),
  24282. deletable: (0, _validator.isBoolean)(item.deletable) ? item.deletable : true
  24283. });
  24284. });
  24285. this.setData({
  24286. lists: lists,
  24287. isInCount: lists.length < maxCount
  24288. });
  24289. },
  24290. getDetail: function getDetail(index) {
  24291. return {
  24292. name: this.data.name,
  24293. index: index == null ? this.data.fileList.length : index
  24294. };
  24295. },
  24296. startUpload: function startUpload() {
  24297. var _this = this;
  24298. var _this$data2 = this.data,
  24299. maxCount = _this$data2.maxCount,
  24300. multiple = _this$data2.multiple,
  24301. lists = _this$data2.lists,
  24302. disabled = _this$data2.disabled;
  24303. if (disabled) return;
  24304. (0, _utils.chooseFile)(Object.assign(Object.assign({}, this.data), {
  24305. maxCount: maxCount - lists.length
  24306. })).then(function (res) {
  24307. _this.onBeforeRead(multiple ? res : res[0]);
  24308. }).catch(function (error) {
  24309. _this.$emit('error', error);
  24310. });
  24311. },
  24312. onBeforeRead: function onBeforeRead(file) {
  24313. var _this2 = this;
  24314. var _this$data3 = this.data,
  24315. beforeRead = _this$data3.beforeRead,
  24316. useBeforeRead = _this$data3.useBeforeRead;
  24317. var res = true;
  24318. if (typeof beforeRead === 'function') {
  24319. res = beforeRead(file, this.getDetail());
  24320. }
  24321. if (useBeforeRead) {
  24322. res = new Promise(function (resolve, reject) {
  24323. _this2.$emit('before-read', Object.assign(Object.assign({
  24324. file: file
  24325. }, _this2.getDetail()), {
  24326. callback: function callback(ok) {
  24327. ok ? resolve() : reject();
  24328. }
  24329. }));
  24330. });
  24331. }
  24332. if (!res) {
  24333. return;
  24334. }
  24335. if ((0, _validator.isPromise)(res)) {
  24336. res.then(function (data) {
  24337. return _this2.onAfterRead(data || file);
  24338. });
  24339. } else {
  24340. this.onAfterRead(file);
  24341. }
  24342. },
  24343. onAfterRead: function onAfterRead(file) {
  24344. var _this$data4 = this.data,
  24345. maxSize = _this$data4.maxSize,
  24346. afterRead = _this$data4.afterRead;
  24347. var oversize = Array.isArray(file) ? file.some(function (item) {
  24348. return item.size > maxSize;
  24349. }) : file.size > maxSize;
  24350. if (oversize) {
  24351. this.$emit('oversize', Object.assign({
  24352. file: file
  24353. }, this.getDetail()));
  24354. return;
  24355. }
  24356. if (typeof afterRead === 'function') {
  24357. afterRead(file, this.getDetail());
  24358. }
  24359. this.$emit('after-read', Object.assign({
  24360. file: file
  24361. }, this.getDetail()));
  24362. },
  24363. deleteItem: function deleteItem(event) {
  24364. var index = event.currentTarget.dataset.index;
  24365. this.$emit('delete', Object.assign(Object.assign({}, this.getDetail(index)), {
  24366. file: this.data.fileList[index]
  24367. }));
  24368. },
  24369. onPreviewImage: function onPreviewImage(event) {
  24370. if (!this.data.previewFullImage) return;
  24371. var index = event.currentTarget.dataset.index;
  24372. var _this$data5 = this.data,
  24373. lists = _this$data5.lists,
  24374. showmenu = _this$data5.showmenu;
  24375. var item = lists[index];
  24376. wx.previewImage({
  24377. urls: lists.filter(function (item) {
  24378. return (0, _utils.isImageFile)(item);
  24379. }).map(function (item) {
  24380. return item.url;
  24381. }),
  24382. current: item.url,
  24383. showmenu: showmenu,
  24384. fail: function fail() {
  24385. wx.showToast({
  24386. title: '预览图片失败',
  24387. icon: 'none'
  24388. });
  24389. }
  24390. });
  24391. },
  24392. onPreviewVideo: function onPreviewVideo(event) {
  24393. if (!this.data.previewFullImage) return;
  24394. var index = event.currentTarget.dataset.index;
  24395. var lists = this.data.lists;
  24396. var sources = [];
  24397. var current = lists.reduce(function (sum, cur, curIndex) {
  24398. if (!(0, _utils.isVideoFile)(cur)) {
  24399. return sum;
  24400. }
  24401. sources.push(Object.assign(Object.assign({}, cur), {
  24402. type: 'video'
  24403. }));
  24404. if (curIndex < index) {
  24405. sum++;
  24406. }
  24407. return sum;
  24408. }, 0);
  24409. wx.previewMedia({
  24410. sources: sources,
  24411. current: current,
  24412. fail: function fail() {
  24413. wx.showToast({
  24414. title: '预览视频失败',
  24415. icon: 'none'
  24416. });
  24417. }
  24418. });
  24419. },
  24420. onPreviewFile: function onPreviewFile(event) {
  24421. var index = event.currentTarget.dataset.index;
  24422. wx.openDocument({
  24423. filePath: this.data.lists[index].url,
  24424. showMenu: true
  24425. });
  24426. },
  24427. onClickPreview: function onClickPreview(event) {
  24428. var index = event.currentTarget.dataset.index;
  24429. var item = this.data.lists[index];
  24430. this.$emit('click-preview', Object.assign(Object.assign({}, item), this.getDetail(index)));
  24431. }
  24432. }
  24433. });
  24434. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  24435. /***/ }),
  24436. /***/ 519:
  24437. /*!***********************************************************************!*\
  24438. !*** D:/project/product_wx/wxcomponents/weapp/dist/uploader/utils.js ***!
  24439. \***********************************************************************/
  24440. /*! no static exports found */
  24441. /***/ (function(module, exports, __webpack_require__) {
  24442. "use strict";
  24443. /* WEBPACK VAR INJECTION */(function(wx) {
  24444. Object.defineProperty(exports, "__esModule", {
  24445. value: true
  24446. });
  24447. exports.chooseFile = chooseFile;
  24448. exports.isImageFile = isImageFile;
  24449. exports.isVideoFile = isVideoFile;
  24450. var _utils = __webpack_require__(/*! ../common/utils */ 428);
  24451. var _validator = __webpack_require__(/*! ../common/validator */ 429);
  24452. function isImageFile(item) {
  24453. if (item.isImage != null) {
  24454. return item.isImage;
  24455. }
  24456. if (item.type) {
  24457. return item.type === 'image';
  24458. }
  24459. if (item.url) {
  24460. return (0, _validator.isImageUrl)(item.url);
  24461. }
  24462. return false;
  24463. }
  24464. function isVideoFile(item) {
  24465. if (item.isVideo != null) {
  24466. return item.isVideo;
  24467. }
  24468. if (item.type) {
  24469. return item.type === 'video';
  24470. }
  24471. if (item.url) {
  24472. return (0, _validator.isVideoUrl)(item.url);
  24473. }
  24474. return false;
  24475. }
  24476. function formatImage(res) {
  24477. return res.tempFiles.map(function (item) {
  24478. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  24479. type: 'image',
  24480. url: item.tempFilePath,
  24481. thumb: item.tempFilePath
  24482. });
  24483. });
  24484. }
  24485. function formatVideo(res) {
  24486. return [Object.assign(Object.assign({}, (0, _utils.pickExclude)(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {
  24487. type: 'video',
  24488. url: res.tempFilePath,
  24489. thumb: res.thumbTempFilePath
  24490. })];
  24491. }
  24492. function formatMedia(res) {
  24493. return res.tempFiles.map(function (item) {
  24494. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {
  24495. type: res.type,
  24496. url: item.tempFilePath,
  24497. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath
  24498. });
  24499. });
  24500. }
  24501. function formatFile(res) {
  24502. return res.tempFiles.map(function (item) {
  24503. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  24504. url: item.path
  24505. });
  24506. });
  24507. }
  24508. function chooseFile(_ref) {
  24509. var accept = _ref.accept,
  24510. multiple = _ref.multiple,
  24511. capture = _ref.capture,
  24512. compressed = _ref.compressed,
  24513. maxDuration = _ref.maxDuration,
  24514. sizeType = _ref.sizeType,
  24515. camera = _ref.camera,
  24516. maxCount = _ref.maxCount,
  24517. mediaType = _ref.mediaType,
  24518. extension = _ref.extension;
  24519. return new Promise(function (resolve, reject) {
  24520. switch (accept) {
  24521. case 'image':
  24522. wx.chooseMedia({
  24523. count: multiple ? Math.min(maxCount, 9) : 1,
  24524. mediaType: ['image'],
  24525. sourceType: capture,
  24526. maxDuration: maxDuration,
  24527. sizeType: sizeType,
  24528. camera: camera,
  24529. success: function success(res) {
  24530. return resolve(formatImage(res));
  24531. },
  24532. fail: reject
  24533. });
  24534. break;
  24535. case 'media':
  24536. wx.chooseMedia({
  24537. count: multiple ? Math.min(maxCount, 9) : 1,
  24538. mediaType: mediaType,
  24539. sourceType: capture,
  24540. maxDuration: maxDuration,
  24541. sizeType: sizeType,
  24542. camera: camera,
  24543. success: function success(res) {
  24544. return resolve(formatMedia(res));
  24545. },
  24546. fail: reject
  24547. });
  24548. break;
  24549. case 'video':
  24550. wx.chooseVideo({
  24551. sourceType: capture,
  24552. compressed: compressed,
  24553. maxDuration: maxDuration,
  24554. camera: camera,
  24555. success: function success(res) {
  24556. return resolve(formatVideo(res));
  24557. },
  24558. fail: reject
  24559. });
  24560. break;
  24561. default:
  24562. wx.chooseMessageFile(Object.assign(Object.assign({
  24563. count: multiple ? maxCount : 1,
  24564. type: accept
  24565. }, extension ? {
  24566. extension: extension
  24567. } : {}), {
  24568. success: function success(res) {
  24569. return resolve(formatFile(res));
  24570. },
  24571. fail: reject
  24572. }));
  24573. break;
  24574. }
  24575. });
  24576. }
  24577. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  24578. /***/ }),
  24579. /***/ 52:
  24580. /*!********************************************!*\
  24581. !*** D:/project/product_wx/js_sdk/auth.js ***!
  24582. \********************************************/
  24583. /*! no static exports found */
  24584. /***/ (function(module, exports, __webpack_require__) {
  24585. "use strict";
  24586. /* WEBPACK VAR INJECTION */(function(uni) {
  24587. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24588. Object.defineProperty(exports, "__esModule", {
  24589. value: true
  24590. });
  24591. exports.default = void 0;
  24592. var _common = _interopRequireDefault(__webpack_require__(/*! ./common.js */ 51));
  24593. var _default = {
  24594. TYPE_FRAME: 'FRAME',
  24595. TYPE_BIZ: 'BIZ',
  24596. TYPE_USER: 'USER',
  24597. TYPE_PERSON_BIZ: 'BIZ_PERSON',
  24598. // ------------------------------ User -----------------------------------
  24599. uid: function uid() {
  24600. return this.currUser() ? this.currUser().id : null;
  24601. },
  24602. setUser: function setUser(value) {
  24603. uni.setStorage({
  24604. key: 'laocui_user_token',
  24605. data: value,
  24606. success: function success() {}
  24607. });
  24608. },
  24609. setUserInfo: function setUserInfo(value) {
  24610. uni.setStorage({
  24611. key: 'laocui_user_info',
  24612. data: JSON.stringify(value),
  24613. success: function success() {}
  24614. });
  24615. },
  24616. currUser: function currUser() {
  24617. return _common.default.castEval(localStorage.getItem(this.userKey()) || '');
  24618. },
  24619. removeUser: function removeUser() {
  24620. uni.removeStorage(this.userKey());
  24621. },
  24622. // ------------------------------ Biz -----------------------------------
  24623. bid: function bid() {
  24624. return this.currBiz() ? this.currBiz().id : null;
  24625. },
  24626. setBiz: function setBiz(value) {
  24627. sessionStorage.setItem(this.bizKey(), JSON.stringify(value));
  24628. },
  24629. removeBiz: function removeBiz() {
  24630. sessionStorage.removeItem(this.bizKey());
  24631. },
  24632. currBiz: function currBiz() {
  24633. return _common.default.castEval(sessionStorage.getItem(this.bizKey()) || null);
  24634. },
  24635. // ------------------------------ Token -----------------------------------
  24636. setToken: function setToken(token) {
  24637. localStorage.setItem(this.tokenKey(), token);
  24638. },
  24639. getToken: function getToken() {
  24640. return localStorage.getItem(this.tokenKey()) || null;
  24641. },
  24642. removeToken: function removeToken() {
  24643. localStorage.removeItem(this.tokenKey());
  24644. },
  24645. // ------------------------------ key -----------------------------------
  24646. // bizKey: function() {
  24647. // const key = this.hashCode(window.location.host + '_biz_' + this.getUserType())
  24648. // return key
  24649. // },
  24650. //
  24651. // userKey: function() {
  24652. // const key = this.hashCode(window.location.host + '_user_' + this.getUserType())
  24653. // return key
  24654. // },
  24655. //
  24656. // tokenKey: function() {
  24657. // const key = this.hashCode(window.location.host + '_token_' + this.getUserType())
  24658. // return key
  24659. // },
  24660. // Frame
  24661. setLoginInfo: function setLoginInfo(value) {
  24662. localStorage.setItem('KEY_ADMIN_USER_LOGIN_INFO', JSON.stringify(value));
  24663. },
  24664. getLoginInfo: function getLoginInfo() {
  24665. return _common.default.castEval(localStorage.getItem('KEY_ADMIN_USER_LOGIN_INFO') || null);
  24666. },
  24667. removeLoginInfo: function removeLoginInfo() {
  24668. localStorage.removeItem('KEY_ADMIN_USER_LOGIN_INFO');
  24669. },
  24670. // Biz
  24671. setBizLoginInfo: function setBizLoginInfo(value) {
  24672. localStorage.setItem('KEY_BIZ_USER_LOGIN_INFO', JSON.stringify(value));
  24673. },
  24674. getBizLoginInfo: function getBizLoginInfo() {
  24675. return _common.default.castEval(localStorage.getItem('KEY_BIZ_USER_LOGIN_INFO') || null);
  24676. },
  24677. removeBizLoginInfo: function removeBizLoginInfo() {
  24678. localStorage.removeItem('KEY_BIZ_USER_LOGIN_INFO');
  24679. },
  24680. setUserType: function setUserType(value) {
  24681. localStorage.setItem('KEY_USER_TYPE', value);
  24682. },
  24683. getUserType: function getUserType() {
  24684. return localStorage.getItem('KEY_USER_TYPE') || 'TYPE_FRAME';
  24685. },
  24686. hashCode: function hashCode(str) {
  24687. var hash = 0;
  24688. if (str.length === 0) return hash;
  24689. for (var i = 0; i < str.length; i++) {
  24690. var char = str.charCodeAt(i);
  24691. hash = (hash << 5) - hash + char;
  24692. hash = hash & hash; // Convert to 32bit integer
  24693. }
  24694. return hash;
  24695. },
  24696. /*
  24697. 定时缓存
  24698. */
  24699. setTimingLocalStorage: function setTimingLocalStorage(key, value, ttl_ms) {
  24700. var data = {
  24701. value: value,
  24702. expirse: new Date(ttl_ms).getTime()
  24703. };
  24704. localStorage.setItem(key, JSON.stringify(data));
  24705. },
  24706. getTimingLocalStorage: function getTimingLocalStorage(key) {
  24707. var data = JSON.parse(localStorage.getItem(key));
  24708. if (data !== null) {
  24709. if (data.expirse == null || data.expirse != null && data.expirse < new Date().getTime()) {
  24710. localStorage.removeItem(key);
  24711. } else {
  24712. return JSON.parse(data.value);
  24713. }
  24714. }
  24715. return null;
  24716. }
  24717. };
  24718. exports.default = _default;
  24719. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24720. /***/ }),
  24721. /***/ 520:
  24722. /*!************************************************************************!*\
  24723. !*** D:/project/product_wx/wxcomponents/weapp/dist/uploader/shared.js ***!
  24724. \************************************************************************/
  24725. /*! no static exports found */
  24726. /***/ (function(module, exports, __webpack_require__) {
  24727. "use strict";
  24728. Object.defineProperty(exports, "__esModule", {
  24729. value: true
  24730. });
  24731. exports.videoProps = exports.messageFileProps = exports.mediaProps = exports.imageProps = void 0;
  24732. // props for image
  24733. var imageProps = {
  24734. sizeType: {
  24735. type: Array,
  24736. value: ['original', 'compressed']
  24737. },
  24738. capture: {
  24739. type: Array,
  24740. value: ['album', 'camera']
  24741. },
  24742. showmenu: {
  24743. type: Boolean,
  24744. value: true
  24745. }
  24746. };
  24747. // props for video
  24748. exports.imageProps = imageProps;
  24749. var videoProps = {
  24750. capture: {
  24751. type: Array,
  24752. value: ['album', 'camera']
  24753. },
  24754. compressed: {
  24755. type: Boolean,
  24756. value: true
  24757. },
  24758. maxDuration: {
  24759. type: Number,
  24760. value: 60
  24761. },
  24762. camera: {
  24763. type: String,
  24764. value: 'back'
  24765. }
  24766. };
  24767. // props for media
  24768. exports.videoProps = videoProps;
  24769. var mediaProps = {
  24770. capture: {
  24771. type: Array,
  24772. value: ['album', 'camera']
  24773. },
  24774. mediaType: {
  24775. type: Array,
  24776. value: ['image', 'video']
  24777. },
  24778. maxDuration: {
  24779. type: Number,
  24780. value: 60
  24781. },
  24782. camera: {
  24783. type: String,
  24784. value: 'back'
  24785. }
  24786. };
  24787. // props for file
  24788. exports.mediaProps = mediaProps;
  24789. var messageFileProps = {
  24790. extension: null
  24791. };
  24792. exports.messageFileProps = messageFileProps;
  24793. /***/ }),
  24794. /***/ 526:
  24795. /*!******************************************************************!*\
  24796. !*** D:/project/product_wx/wxcomponents/weapp/dist/tab/index.js ***!
  24797. \******************************************************************/
  24798. /*! no static exports found */
  24799. /***/ (function(module, exports, __webpack_require__) {
  24800. "use strict";
  24801. var _relation = __webpack_require__(/*! ../common/relation */ 425);
  24802. var _component = __webpack_require__(/*! ../common/component */ 423);
  24803. (0, _component.VantComponent)({
  24804. relation: (0, _relation.useParent)('tabs'),
  24805. props: {
  24806. dot: {
  24807. type: Boolean,
  24808. observer: 'update'
  24809. },
  24810. info: {
  24811. type: null,
  24812. observer: 'update'
  24813. },
  24814. title: {
  24815. type: String,
  24816. observer: 'update'
  24817. },
  24818. disabled: {
  24819. type: Boolean,
  24820. observer: 'update'
  24821. },
  24822. titleStyle: {
  24823. type: String,
  24824. observer: 'update'
  24825. },
  24826. name: {
  24827. type: null,
  24828. value: ''
  24829. }
  24830. },
  24831. data: {
  24832. active: false
  24833. },
  24834. methods: {
  24835. getComputedName: function getComputedName() {
  24836. if (this.data.name !== '') {
  24837. return this.data.name;
  24838. }
  24839. return this.index;
  24840. },
  24841. updateRender: function updateRender(active, parent) {
  24842. var parentData = parent.data;
  24843. this.inited = this.inited || active;
  24844. this.setData({
  24845. active: active,
  24846. shouldRender: this.inited || !parentData.lazyRender,
  24847. shouldShow: active || parentData.animated
  24848. });
  24849. },
  24850. update: function update() {
  24851. if (this.parent) {
  24852. this.parent.updateTabs();
  24853. }
  24854. }
  24855. }
  24856. });
  24857. /***/ }),
  24858. /***/ 527:
  24859. /*!*******************************************************************!*\
  24860. !*** D:/project/product_wx/wxcomponents/weapp/dist/tabs/index.js ***!
  24861. \*******************************************************************/
  24862. /*! no static exports found */
  24863. /***/ (function(module, exports, __webpack_require__) {
  24864. "use strict";
  24865. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24866. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  24867. var _component = __webpack_require__(/*! ../common/component */ 423);
  24868. var _touch = __webpack_require__(/*! ../mixins/touch */ 528);
  24869. var _utils = __webpack_require__(/*! ../common/utils */ 428);
  24870. var _validator = __webpack_require__(/*! ../common/validator */ 429);
  24871. var _relation = __webpack_require__(/*! ../common/relation */ 425);
  24872. (0, _component.VantComponent)({
  24873. mixins: [_touch.touch],
  24874. classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class', 'wrap-class'],
  24875. relation: (0, _relation.useChildren)('tab', function () {
  24876. this.updateTabs();
  24877. }),
  24878. props: {
  24879. sticky: Boolean,
  24880. border: Boolean,
  24881. swipeable: Boolean,
  24882. titleActiveColor: String,
  24883. titleInactiveColor: String,
  24884. color: String,
  24885. animated: {
  24886. type: Boolean,
  24887. observer: function observer() {
  24888. var _this = this;
  24889. this.children.forEach(function (child, index) {
  24890. return child.updateRender(index === _this.data.currentIndex, _this);
  24891. });
  24892. }
  24893. },
  24894. lineWidth: {
  24895. type: null,
  24896. value: 40,
  24897. observer: 'resize'
  24898. },
  24899. lineHeight: {
  24900. type: null,
  24901. value: -1
  24902. },
  24903. active: {
  24904. type: null,
  24905. value: 0,
  24906. observer: function observer(name) {
  24907. if (name !== this.getCurrentName()) {
  24908. this.setCurrentIndexByName(name);
  24909. }
  24910. }
  24911. },
  24912. type: {
  24913. type: String,
  24914. value: 'line'
  24915. },
  24916. ellipsis: {
  24917. type: Boolean,
  24918. value: true
  24919. },
  24920. duration: {
  24921. type: Number,
  24922. value: 0.3
  24923. },
  24924. zIndex: {
  24925. type: Number,
  24926. value: 1
  24927. },
  24928. swipeThreshold: {
  24929. type: Number,
  24930. value: 5,
  24931. observer: function observer(value) {
  24932. this.setData({
  24933. scrollable: this.children.length > value || !this.data.ellipsis
  24934. });
  24935. }
  24936. },
  24937. offsetTop: {
  24938. type: Number,
  24939. value: 0
  24940. },
  24941. lazyRender: {
  24942. type: Boolean,
  24943. value: true
  24944. },
  24945. useBeforeChange: {
  24946. type: Boolean,
  24947. value: false
  24948. }
  24949. },
  24950. data: {
  24951. tabs: [],
  24952. scrollLeft: 0,
  24953. scrollable: false,
  24954. currentIndex: 0,
  24955. container: null,
  24956. skipTransition: true,
  24957. scrollWithAnimation: false,
  24958. lineOffsetLeft: 0,
  24959. inited: false
  24960. },
  24961. mounted: function mounted() {
  24962. var _this2 = this;
  24963. (0, _utils.requestAnimationFrame)(function () {
  24964. _this2.swiping = true;
  24965. _this2.setData({
  24966. container: function container() {
  24967. return _this2.createSelectorQuery().select('.van-tabs');
  24968. }
  24969. });
  24970. _this2.resize();
  24971. _this2.scrollIntoView();
  24972. });
  24973. },
  24974. methods: {
  24975. updateTabs: function updateTabs() {
  24976. var _this$children = this.children,
  24977. children = _this$children === void 0 ? [] : _this$children,
  24978. data = this.data;
  24979. this.setData({
  24980. tabs: children.map(function (child) {
  24981. return child.data;
  24982. }),
  24983. scrollable: this.children.length > data.swipeThreshold || !data.ellipsis
  24984. });
  24985. this.setCurrentIndexByName(data.active || this.getCurrentName());
  24986. },
  24987. trigger: function trigger(eventName, child) {
  24988. var currentIndex = this.data.currentIndex;
  24989. var data = this.getChildData(currentIndex, child);
  24990. if (!(0, _validator.isDef)(data)) {
  24991. return;
  24992. }
  24993. this.$emit(eventName, data);
  24994. },
  24995. onTap: function onTap(event) {
  24996. var _this3 = this;
  24997. var index = event.currentTarget.dataset.index;
  24998. var child = this.children[index];
  24999. if (child.data.disabled) {
  25000. this.trigger('disabled', child);
  25001. return;
  25002. }
  25003. this.onBeforeChange(index).then(function () {
  25004. _this3.setCurrentIndex(index);
  25005. (0, _utils.nextTick)(function () {
  25006. _this3.trigger('click');
  25007. });
  25008. });
  25009. },
  25010. // correct the index of active tab
  25011. setCurrentIndexByName: function setCurrentIndexByName(name) {
  25012. var _this$children2 = this.children,
  25013. children = _this$children2 === void 0 ? [] : _this$children2;
  25014. var matched = children.filter(function (child) {
  25015. return child.getComputedName() === name;
  25016. });
  25017. if (matched.length) {
  25018. this.setCurrentIndex(matched[0].index);
  25019. }
  25020. },
  25021. setCurrentIndex: function setCurrentIndex(currentIndex) {
  25022. var _this4 = this;
  25023. var data = this.data,
  25024. _this$children3 = this.children,
  25025. children = _this$children3 === void 0 ? [] : _this$children3;
  25026. if (!(0, _validator.isDef)(currentIndex) || currentIndex >= children.length || currentIndex < 0) {
  25027. return;
  25028. }
  25029. (0, _utils.groupSetData)(this, function () {
  25030. children.forEach(function (item, index) {
  25031. var active = index === currentIndex;
  25032. if (active !== item.data.active || !item.inited) {
  25033. item.updateRender(active, _this4);
  25034. }
  25035. });
  25036. });
  25037. if (currentIndex === data.currentIndex) {
  25038. return;
  25039. }
  25040. var shouldEmitChange = data.currentIndex !== null;
  25041. this.setData({
  25042. currentIndex: currentIndex
  25043. });
  25044. (0, _utils.requestAnimationFrame)(function () {
  25045. _this4.resize();
  25046. _this4.scrollIntoView();
  25047. });
  25048. (0, _utils.nextTick)(function () {
  25049. _this4.trigger('input');
  25050. if (shouldEmitChange) {
  25051. _this4.trigger('change');
  25052. }
  25053. });
  25054. },
  25055. getCurrentName: function getCurrentName() {
  25056. var activeTab = this.children[this.data.currentIndex];
  25057. if (activeTab) {
  25058. return activeTab.getComputedName();
  25059. }
  25060. },
  25061. resize: function resize() {
  25062. var _this5 = this;
  25063. if (this.data.type !== 'line') {
  25064. return;
  25065. }
  25066. var _this$data = this.data,
  25067. currentIndex = _this$data.currentIndex,
  25068. ellipsis = _this$data.ellipsis,
  25069. skipTransition = _this$data.skipTransition;
  25070. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__line')]).then(function (_ref) {
  25071. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  25072. _ref2$ = _ref2[0],
  25073. rects = _ref2$ === void 0 ? [] : _ref2$,
  25074. lineRect = _ref2[1];
  25075. var rect = rects[currentIndex];
  25076. if (rect == null) {
  25077. return;
  25078. }
  25079. var lineOffsetLeft = rects.slice(0, currentIndex).reduce(function (prev, curr) {
  25080. return prev + curr.width;
  25081. }, 0);
  25082. lineOffsetLeft += (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
  25083. _this5.setData({
  25084. lineOffsetLeft: lineOffsetLeft,
  25085. inited: true
  25086. });
  25087. _this5.swiping = true;
  25088. if (skipTransition) {
  25089. // waiting transition end
  25090. setTimeout(function () {
  25091. _this5.setData({
  25092. skipTransition: false
  25093. });
  25094. }, _this5.data.duration);
  25095. }
  25096. });
  25097. },
  25098. // scroll active tab into view
  25099. scrollIntoView: function scrollIntoView() {
  25100. var _this6 = this;
  25101. var _this$data2 = this.data,
  25102. currentIndex = _this$data2.currentIndex,
  25103. scrollable = _this$data2.scrollable,
  25104. scrollWithAnimation = _this$data2.scrollWithAnimation;
  25105. if (!scrollable) {
  25106. return;
  25107. }
  25108. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__nav')]).then(function (_ref3) {
  25109. var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
  25110. tabRects = _ref4[0],
  25111. navRect = _ref4[1];
  25112. var tabRect = tabRects[currentIndex];
  25113. var offsetLeft = tabRects.slice(0, currentIndex).reduce(function (prev, curr) {
  25114. return prev + curr.width;
  25115. }, 0);
  25116. _this6.setData({
  25117. scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2
  25118. });
  25119. if (!scrollWithAnimation) {
  25120. (0, _utils.nextTick)(function () {
  25121. _this6.setData({
  25122. scrollWithAnimation: true
  25123. });
  25124. });
  25125. }
  25126. });
  25127. },
  25128. onTouchScroll: function onTouchScroll(event) {
  25129. this.$emit('scroll', event.detail);
  25130. },
  25131. onTouchStart: function onTouchStart(event) {
  25132. if (!this.data.swipeable) return;
  25133. this.swiping = true;
  25134. this.touchStart(event);
  25135. },
  25136. onTouchMove: function onTouchMove(event) {
  25137. if (!this.data.swipeable || !this.swiping) return;
  25138. this.touchMove(event);
  25139. },
  25140. // watch swipe touch end
  25141. onTouchEnd: function onTouchEnd() {
  25142. var _this7 = this;
  25143. if (!this.data.swipeable || !this.swiping) return;
  25144. var direction = this.direction,
  25145. deltaX = this.deltaX,
  25146. offsetX = this.offsetX;
  25147. var minSwipeDistance = 50;
  25148. if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
  25149. var index = this.getAvaiableTab(deltaX);
  25150. if (index !== -1) {
  25151. this.onBeforeChange(index).then(function () {
  25152. return _this7.setCurrentIndex(index);
  25153. });
  25154. }
  25155. }
  25156. this.swiping = false;
  25157. },
  25158. getAvaiableTab: function getAvaiableTab(direction) {
  25159. var _this$data3 = this.data,
  25160. tabs = _this$data3.tabs,
  25161. currentIndex = _this$data3.currentIndex;
  25162. var step = direction > 0 ? -1 : 1;
  25163. for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
  25164. var index = currentIndex + i;
  25165. if (index >= 0 && index < tabs.length && tabs[index] && !tabs[index].disabled) {
  25166. return index;
  25167. }
  25168. }
  25169. return -1;
  25170. },
  25171. onBeforeChange: function onBeforeChange(index) {
  25172. var _this8 = this;
  25173. var useBeforeChange = this.data.useBeforeChange;
  25174. if (!useBeforeChange) {
  25175. return Promise.resolve();
  25176. }
  25177. return new Promise(function (resolve, reject) {
  25178. _this8.$emit('before-change', Object.assign(Object.assign({}, _this8.getChildData(index)), {
  25179. callback: function callback(status) {
  25180. return status ? resolve() : reject();
  25181. }
  25182. }));
  25183. });
  25184. },
  25185. getChildData: function getChildData(index, child) {
  25186. var currentChild = child || this.children[index];
  25187. if (!(0, _validator.isDef)(currentChild)) {
  25188. return;
  25189. }
  25190. return {
  25191. index: currentChild.index,
  25192. name: currentChild.getComputedName(),
  25193. title: currentChild.data.title
  25194. };
  25195. }
  25196. }
  25197. });
  25198. /***/ }),
  25199. /***/ 528:
  25200. /*!*********************************************************************!*\
  25201. !*** D:/project/product_wx/wxcomponents/weapp/dist/mixins/touch.js ***!
  25202. \*********************************************************************/
  25203. /*! no static exports found */
  25204. /***/ (function(module, exports, __webpack_require__) {
  25205. "use strict";
  25206. Object.defineProperty(exports, "__esModule", {
  25207. value: true
  25208. });
  25209. exports.touch = void 0;
  25210. // @ts-nocheck
  25211. var MIN_DISTANCE = 10;
  25212. function getDirection(x, y) {
  25213. if (x > y && x > MIN_DISTANCE) {
  25214. return 'horizontal';
  25215. }
  25216. if (y > x && y > MIN_DISTANCE) {
  25217. return 'vertical';
  25218. }
  25219. return '';
  25220. }
  25221. var touch = Behavior({
  25222. methods: {
  25223. resetTouchStatus: function resetTouchStatus() {
  25224. this.direction = '';
  25225. this.deltaX = 0;
  25226. this.deltaY = 0;
  25227. this.offsetX = 0;
  25228. this.offsetY = 0;
  25229. },
  25230. touchStart: function touchStart(event) {
  25231. this.resetTouchStatus();
  25232. var touch = event.touches[0];
  25233. this.startX = touch.clientX;
  25234. this.startY = touch.clientY;
  25235. },
  25236. touchMove: function touchMove(event) {
  25237. var touch = event.touches[0];
  25238. this.deltaX = touch.clientX - this.startX;
  25239. this.deltaY = touch.clientY - this.startY;
  25240. this.offsetX = Math.abs(this.deltaX);
  25241. this.offsetY = Math.abs(this.deltaY);
  25242. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  25243. }
  25244. }
  25245. });
  25246. exports.touch = touch;
  25247. /***/ }),
  25248. /***/ 53:
  25249. /*!*************************************************************!*\
  25250. !*** D:/project/product_wx/js_sdk/request/requestConfig.js ***!
  25251. \*************************************************************/
  25252. /*! no static exports found */
  25253. /***/ (function(module, exports, __webpack_require__) {
  25254. "use strict";
  25255. /* WEBPACK VAR INJECTION */(function(uni) {
  25256. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25257. Object.defineProperty(exports, "__esModule", {
  25258. value: true
  25259. });
  25260. exports.default = void 0;
  25261. var _request = _interopRequireDefault(__webpack_require__(/*! ./request */ 54));
  25262. var _config = _interopRequireDefault(__webpack_require__(/*! config */ 55));
  25263. // import store from "../../store/index.js";
  25264. uni.getStorage({
  25265. key: 'storage_key',
  25266. success: function success(res) {
  25267. console.log(res.data);
  25268. }
  25269. });
  25270. //可以new多个request来支持多个域名请求
  25271. var $http = new _request.default({
  25272. //接口请求地址
  25273. baseUrl: _config.default.baseUrl,
  25274. //服务器本地上传文件地址
  25275. fileUrl: _config.default.baseUrl,
  25276. //设置请求头
  25277. headers: {
  25278. 'Content-Type': 'application/x-www-form-urlencoded;',
  25279. 'ApiVersion': _config.default.version,
  25280. 'Device': _config.default.device,
  25281. 'Platform': _config.default.platform,
  25282. "Authorization": 'Bearer ' + uni.getStorageSync('laocui_user_token')
  25283. },
  25284. //以下是默认值可不写
  25285. //是否提示--默认提示
  25286. isPrompt: true,
  25287. //是否显示请求动画
  25288. load: true,
  25289. //是否使用处理数据模板
  25290. isFactory: true,
  25291. //列表接口是否有加载判断
  25292. loadMore: true
  25293. });
  25294. //当前接口请求数
  25295. var requestNum = 0;
  25296. //请求开始拦截器
  25297. $http.requestStart = function (options) {
  25298. for (var key in options.data) {
  25299. if (options.data[key] == null) {
  25300. delete options.data[key];
  25301. }
  25302. }
  25303. if (requestNum <= 0) {
  25304. uni.showNavigationBarLoading();
  25305. if (options.load) {
  25306. //打开加载动画
  25307. uni.showLoading({
  25308. title: '加载中',
  25309. mask: true
  25310. });
  25311. }
  25312. }
  25313. requestNum += 1;
  25314. //请求前加入token
  25315. options.headers['Authorization'] = 'Bearer ' + uni.getStorageSync('laocui_user_token');
  25316. console.log(uni.getStorageSync('USERINFO'));
  25317. options.headers['requestHanderAuth'] = uni.getStorageSync('USERINFO') ? JSON.parse(uni.getStorageSync('USERINFO')).requestHanderAuth : '';
  25318. // console.log("请求开始前", options);
  25319. return options;
  25320. };
  25321. //请求结束
  25322. $http.requestEnd = function (options, resolve) {
  25323. //判断当前接口是否需要加载动画
  25324. requestNum = requestNum - 1;
  25325. if (requestNum <= 0) {
  25326. uni.hideLoading();
  25327. uni.hideNavigationBarLoading();
  25328. }
  25329. if (resolve.errMsg && (resolve.errMsg != "request:ok" || resolve.statusCode && resolve.statusCode != 200)) {
  25330. uni.showToast({
  25331. title: "网络错误,请检查一下网络",
  25332. mask: true,
  25333. icon: "none"
  25334. });
  25335. }
  25336. };
  25337. //登录弹窗次数
  25338. var loginPopupNum = 0;
  25339. //所有接口数据处理(可在接口里设置不调用此方法)
  25340. $http.dataFactory = function (options, resolve) {
  25341. //设置回调默认值
  25342. var callback = {
  25343. //success数据是否请求成功状态
  25344. success: false,
  25345. //这里返回的数据就是调用请求方法收到的数据
  25346. result: ""
  25347. };
  25348. // 特殊接口处理 接口报请先登录 跳转登录
  25349. if (resolve.data.code === 101) {
  25350. uni.showModal({
  25351. title: '提示',
  25352. content: resolve.data.msg,
  25353. showCancel: false,
  25354. success: function success() {
  25355. uni.setStorageSync('token', null);
  25356. uni.navigateTo({
  25357. url: '/pages/login/login'
  25358. });
  25359. }
  25360. });
  25361. return false;
  25362. }
  25363. //判断数据是否请求成功
  25364. if (resolve.data.errmsg == "成功") {
  25365. callback.success = true;
  25366. callback.result = resolve.data;
  25367. } else if (resolve.data.errno == 303) {
  25368. uni.redirectTo({
  25369. url: '/pages/subPackages/pages/login/login'
  25370. });
  25371. this.$showToast('令牌过期,请重新登陆');
  25372. } else {
  25373. uni.showToast({
  25374. title: resolve.data.errmsg,
  25375. icon: "none",
  25376. mask: true,
  25377. duration: 2000
  25378. });
  25379. //设置可以提示的时候
  25380. // if (options.isPrompt) {
  25381. // setTimeout(function () {
  25382. //提示后台接口抛出的错误信息
  25383. // uni.showToast({
  25384. // title: resolve.data.msg,
  25385. // icon: "none",
  25386. // duration: 3000
  25387. // });
  25388. // }, 500);
  25389. // }
  25390. callback.result = resolve.data;
  25391. }
  25392. uni.stopPullDownRefresh();
  25393. return callback;
  25394. };
  25395. var _default = $http;
  25396. exports.default = _default;
  25397. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25398. /***/ }),
  25399. /***/ 534:
  25400. /*!************************************************************************************************!*\
  25401. !*** D:/project/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js ***!
  25402. \************************************************************************************************/
  25403. /*! no static exports found */
  25404. /***/ (function(module, exports, __webpack_require__) {
  25405. "use strict";
  25406. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25407. Object.defineProperty(exports, "__esModule", {
  25408. value: true
  25409. });
  25410. exports.default = void 0;
  25411. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 535));
  25412. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 536));
  25413. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 537));
  25414. var _default = {
  25415. en: _en.default,
  25416. 'zh-Hans': _zhHans.default,
  25417. 'zh-Hant': _zhHant.default
  25418. };
  25419. exports.default = _default;
  25420. /***/ }),
  25421. /***/ 535:
  25422. /*!***********************************************************************************************!*\
  25423. !*** D:/project/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json ***!
  25424. \***********************************************************************************************/
  25425. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  25426. /***/ (function(module) {
  25427. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"Search enter content\"}");
  25428. /***/ }),
  25429. /***/ 536:
  25430. /*!****************************************************************************************************!*\
  25431. !*** D:/project/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json ***!
  25432. \****************************************************************************************************/
  25433. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  25434. /***/ (function(module) {
  25435. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"请输入搜索内容\"}");
  25436. /***/ }),
  25437. /***/ 537:
  25438. /*!****************************************************************************************************!*\
  25439. !*** D:/project/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json ***!
  25440. \****************************************************************************************************/
  25441. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  25442. /***/ (function(module) {
  25443. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"請輸入搜索內容\"}");
  25444. /***/ }),
  25445. /***/ 54:
  25446. /*!*******************************************************!*\
  25447. !*** D:/project/product_wx/js_sdk/request/request.js ***!
  25448. \*******************************************************/
  25449. /*! no static exports found */
  25450. /***/ (function(module, exports, __webpack_require__) {
  25451. "use strict";
  25452. /* WEBPACK VAR INJECTION */(function(uni) {
  25453. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25454. Object.defineProperty(exports, "__esModule", {
  25455. value: true
  25456. });
  25457. exports.default = void 0;
  25458. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  25459. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  25460. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  25461. var request = /*#__PURE__*/function () {
  25462. function request(options) {
  25463. (0, _classCallCheck2.default)(this, request);
  25464. //请求公共地址
  25465. this.baseUrl = options.baseUrl || "";
  25466. //公共文件上传请求地址
  25467. this.fileUrl = options.fileUrl || "";
  25468. //默认请求头
  25469. this.headers = options.headers || {};
  25470. //默认配置
  25471. this.config = {
  25472. isPrompt: options.isPrompt === false ? false : true,
  25473. load: options.load === false ? false : true,
  25474. isFactory: options.isFactory === false ? false : true,
  25475. loadMore: options.loadMore === false ? false : true
  25476. };
  25477. }
  25478. // 获取默认信息
  25479. (0, _createClass2.default)(request, [{
  25480. key: "getDefault",
  25481. value: function getDefault(url, options, type) {
  25482. //判断url是不是链接
  25483. var urlType = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~/])+$/.test(url);
  25484. var httpUrl;
  25485. if (type == "file") {
  25486. httpUrl = urlType ? url : this.fileUrl + url;
  25487. } else {
  25488. httpUrl = urlType ? url : this.baseUrl + url;
  25489. }
  25490. var config = Object.assign({}, this.config, options);
  25491. //请求地址
  25492. config.httpUrl = httpUrl;
  25493. //请求头
  25494. config.headers = Object.assign(this.headers, options.headers);
  25495. return config;
  25496. }
  25497. //post请求
  25498. }, {
  25499. key: "post",
  25500. value: function post() {
  25501. var _this2 = this;
  25502. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25503. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25504. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25505. var requestInfo = this.getDefault(url, options, "data");
  25506. requestInfo.data = data;
  25507. return new Promise(function (resolve, reject) {
  25508. _this2.getRequest("POST", requestInfo, function (state, response) {
  25509. //是否用外部的数据处理方法
  25510. if (state && requestInfo.isFactory && _this2.dataFactory) {
  25511. //数据处理
  25512. var factoryInfo = _this2.dataFactory(requestInfo, response);
  25513. // console.log(factoryInfo)
  25514. return resolve(factoryInfo.result);
  25515. // factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  25516. } else {
  25517. // console.log(response, response)
  25518. state ? resolve(response) : reject(response);
  25519. }
  25520. });
  25521. });
  25522. }
  25523. //get请求
  25524. }, {
  25525. key: "get",
  25526. value: function get() {
  25527. var _this3 = this;
  25528. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25529. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25530. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25531. var requestInfo = this.getDefault(url, options, "data");
  25532. requestInfo.data = data;
  25533. return new Promise(function (resolve, reject) {
  25534. _this3.getRequest("GET", requestInfo, function (state, response) {
  25535. //是否用外部的数据处理方法
  25536. if (state && requestInfo.isFactory && _this3.dataFactory) {
  25537. //数据处理
  25538. var factoryInfo = _this3.dataFactory(requestInfo, response);
  25539. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  25540. } else {
  25541. state ? resolve(response) : reject(response);
  25542. }
  25543. });
  25544. });
  25545. }
  25546. //put请求
  25547. }, {
  25548. key: "put",
  25549. value: function put() {
  25550. var _this4 = this;
  25551. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25552. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25553. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25554. var requestInfo = this.getDefault(url, options, "data");
  25555. requestInfo.data = data;
  25556. return new Promise(function (resolve, reject) {
  25557. _this4.getRequest("PUT", requestInfo, function (state, response) {
  25558. //是否用外部的数据处理方法
  25559. if (state && requestInfo.isFactory && _this4.dataFactory) {
  25560. //数据处理
  25561. var factoryInfo = _this4.dataFactory(requestInfo, response);
  25562. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  25563. } else {
  25564. state ? resolve(response) : reject(response);
  25565. }
  25566. });
  25567. });
  25568. }
  25569. //delete请求
  25570. }, {
  25571. key: "delete",
  25572. value: function _delete() {
  25573. var _this5 = this;
  25574. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25575. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25576. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25577. var requestInfo = this.getDefault(url, options, "data");
  25578. requestInfo.data = data;
  25579. return new Promise(function (resolve, reject) {
  25580. _this5.getRequest("DELETE", requestInfo, function (state, response) {
  25581. //是否用外部的数据处理方法
  25582. if (state && requestInfo.isFactory && _this5.dataFactory) {
  25583. //数据处理
  25584. var factoryInfo = _this5.dataFactory(requestInfo, response);
  25585. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  25586. } else {
  25587. state ? resolve(response) : reject(response);
  25588. }
  25589. });
  25590. });
  25591. }
  25592. //接口请求方法
  25593. }, {
  25594. key: "getRequest",
  25595. value: function getRequest(ajaxType, options, callback) {
  25596. var _this6 = this;
  25597. //请求前回调
  25598. if (this.requestStart) {
  25599. options.method = ajaxType;
  25600. var requestStart = this.requestStart(options);
  25601. if ((0, _typeof2.default)(requestStart) == "object") {
  25602. options.data = requestStart.data;
  25603. options.headers = requestStart.headers;
  25604. options.isPrompt = requestStart.isPrompt;
  25605. options.load = requestStart.load;
  25606. options.isFactory = requestStart.isFactory;
  25607. } else {
  25608. callback(false, "请求开始拦截器未通过");
  25609. return;
  25610. }
  25611. }
  25612. // console.log(options.data)
  25613. uni.request({
  25614. url: options.httpUrl,
  25615. data: options.data,
  25616. method: ajaxType,
  25617. //请求类型
  25618. header: options.headers,
  25619. //加入请求头
  25620. success: function success(res) {
  25621. // ;
  25622. //请求完成回调
  25623. _this6.requestEnd && _this6.requestEnd(options, res);
  25624. callback(true, res);
  25625. },
  25626. fail: function fail(err) {
  25627. // console.log(err);
  25628. //请求完成回调
  25629. _this6.requestEnd && _this6.requestEnd(options, err);
  25630. callback(false, err);
  25631. }
  25632. });
  25633. }
  25634. //jsonp请求(只限于H5使用)
  25635. }, {
  25636. key: "jsonp",
  25637. value: function jsonp() {
  25638. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25639. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25640. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25641. var requestInfo = this.getDefault(url, options, "data");
  25642. var dataStr = '';
  25643. Object.keys(data).forEach(function (key) {
  25644. dataStr += key + '=' + data[key] + '&';
  25645. });
  25646. //匹配最后一个&并去除
  25647. if (dataStr !== '') {
  25648. dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
  25649. }
  25650. requestInfo.httpUrl = requestInfo.httpUrl + '?' + dataStr;
  25651. var _this = this;
  25652. return new Promise(function (resolve, reject) {
  25653. var callbackName = "callback" + Math.ceil(Math.random() * 1000000);
  25654. if (_this.requestStart) {
  25655. requestInfo.data = data;
  25656. var requestStart = _this.requestStart(requestInfo);
  25657. if ((0, _typeof2.default)(requestStart) == "object") {
  25658. requestInfo.data = requestStart.data;
  25659. requestInfo.headers = requestStart.headers;
  25660. requestInfo.isPrompt = requestStart.isPrompt;
  25661. requestInfo.load = requestStart.load;
  25662. requestInfo.isFactory = requestStart.isFactory;
  25663. } else {
  25664. reject("请求开始拦截器未通过");
  25665. return;
  25666. }
  25667. }
  25668. window[callbackName] = function (data) {
  25669. resolve(data);
  25670. };
  25671. var script = document.createElement("script");
  25672. script.src = requestInfo.httpUrl + "&callback=" + callbackName;
  25673. document.head.appendChild(script);
  25674. // 及时删除,防止加载过多的JS
  25675. document.head.removeChild(script);
  25676. //请求完成回调
  25677. _this.requestEnd && _this.requestEnd(requestInfo, {});
  25678. });
  25679. }
  25680. //本地服务器图片上传
  25681. }, {
  25682. key: "urlImgUpload",
  25683. value: function urlImgUpload() {
  25684. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25685. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25686. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25687. var requestInfo = this.getDefault(url, options, "file");
  25688. requestInfo.data = data;
  25689. var _this = this;
  25690. return new Promise(function (resolve, reject) {
  25691. uni.chooseImage({
  25692. count: data.count || 9,
  25693. //默认9
  25694. sizeType: data.sizeType || ['original', 'compressed'],
  25695. //可以指定是原图还是压缩图,默认二者都有
  25696. sourceType: data.sourceType || ['album', 'camera'],
  25697. //从相册选择
  25698. success: function success(res) {
  25699. _this.urlFileUpload(requestInfo, res.tempFiles, function (state, response) {
  25700. state ? resolve(response) : reject(response);
  25701. });
  25702. }
  25703. });
  25704. });
  25705. }
  25706. //本地服务器文件上传方法
  25707. }, {
  25708. key: "urlFileUpload",
  25709. value: function urlFileUpload(options, files, callback) {
  25710. var _this = this;
  25711. //请求前回调
  25712. if (this.requestStart) {
  25713. options.method = "FILE";
  25714. var requestStart = this.requestStart(options);
  25715. if ((0, _typeof2.default)(requestStart) == "object") {
  25716. if ((0, _typeof2.default)(requestStart) == "object") {
  25717. options.data = requestStart.data;
  25718. options.headers = requestStart.headers;
  25719. options.isPrompt = requestStart.isPrompt;
  25720. options.load = requestStart.load;
  25721. options.isFactory = requestStart.isFactory;
  25722. } else {
  25723. callback(false, "请求开始拦截器未通过");
  25724. return;
  25725. }
  25726. }
  25727. }
  25728. var len = files.length - 1;
  25729. var fileList = new Array();
  25730. fileUpload(0);
  25731. function fileUpload(i) {
  25732. var config = {
  25733. url: options.httpUrl,
  25734. filePath: files[i].path,
  25735. header: options.headers,
  25736. //加入请求头
  25737. name: options.name || "file",
  25738. success: function success(response) {
  25739. response.data = JSON.parse(response.data);
  25740. //请求完成回调
  25741. _this.requestEnd && _this.requestEnd(options, response);
  25742. //是否用外部的数据处理方法
  25743. if (options.isFactory && _this.dataFactory) {
  25744. //数据处理
  25745. var factoryInfo = _this.dataFactory(options, response);
  25746. if (factoryInfo.success) {
  25747. fileList.push(factoryInfo.result);
  25748. if (len <= i) {
  25749. callback(true, fileList);
  25750. } else {
  25751. fileUpload(i + 1);
  25752. }
  25753. } else {
  25754. callback(false, factoryInfo.result);
  25755. }
  25756. } else {
  25757. fileList.push(response.data);
  25758. if (len <= i) {
  25759. callback(true, fileList);
  25760. } else {
  25761. fileUpload(i + 1);
  25762. }
  25763. }
  25764. },
  25765. fail: function fail(err) {
  25766. //请求完成回调
  25767. _this.requestEnd && _this.requestEnd(options, err);
  25768. callback(false, err);
  25769. }
  25770. };
  25771. if (options.data) {
  25772. config.formData = options.data;
  25773. }
  25774. uni.uploadFile(config);
  25775. }
  25776. }
  25777. }]);
  25778. return request;
  25779. }();
  25780. exports.default = request;
  25781. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25782. /***/ }),
  25783. /***/ 540:
  25784. /*!******************************************************************!*\
  25785. !*** D:/project/product_wx/wxcomponents/weapp/dist/row/index.js ***!
  25786. \******************************************************************/
  25787. /*! no static exports found */
  25788. /***/ (function(module, exports, __webpack_require__) {
  25789. "use strict";
  25790. var _component = __webpack_require__(/*! ../common/component */ 423);
  25791. var _relation = __webpack_require__(/*! ../common/relation */ 425);
  25792. (0, _component.VantComponent)({
  25793. relation: (0, _relation.useChildren)('col', function (target) {
  25794. var gutter = this.data.gutter;
  25795. if (gutter) {
  25796. target.setData({
  25797. gutter: gutter
  25798. });
  25799. }
  25800. }),
  25801. props: {
  25802. gutter: {
  25803. type: Number,
  25804. observer: 'setGutter'
  25805. }
  25806. },
  25807. methods: {
  25808. setGutter: function setGutter() {
  25809. var _this = this;
  25810. this.children.forEach(function (col) {
  25811. col.setData(_this.data);
  25812. });
  25813. }
  25814. }
  25815. });
  25816. /***/ }),
  25817. /***/ 541:
  25818. /*!******************************************************************!*\
  25819. !*** D:/project/product_wx/wxcomponents/weapp/dist/col/index.js ***!
  25820. \******************************************************************/
  25821. /*! no static exports found */
  25822. /***/ (function(module, exports, __webpack_require__) {
  25823. "use strict";
  25824. var _relation = __webpack_require__(/*! ../common/relation */ 425);
  25825. var _component = __webpack_require__(/*! ../common/component */ 423);
  25826. (0, _component.VantComponent)({
  25827. relation: (0, _relation.useParent)('row'),
  25828. props: {
  25829. span: Number,
  25830. offset: Number
  25831. }
  25832. });
  25833. /***/ }),
  25834. /***/ 55:
  25835. /*!***************************************!*\
  25836. !*** D:/project/product_wx/config.js ***!
  25837. \***************************************/
  25838. /*! no static exports found */
  25839. /***/ (function(module, exports, __webpack_require__) {
  25840. "use strict";
  25841. /* WEBPACK VAR INJECTION */(function(uni) {
  25842. Object.defineProperty(exports, "__esModule", {
  25843. value: true
  25844. });
  25845. exports.default = void 0;
  25846. var _constant = __webpack_require__(/*! ./pages/utils/constant.js */ 50);
  25847. // console.log(BASE_URI)
  25848. var baseUrl = _constant.BASE_URI;
  25849. var device, platform;
  25850. device = uni.getSystemInfoSync().brand + ' ' + uni.getSystemInfoSync().model;
  25851. platform = 'wxmini';
  25852. // app版本
  25853. var version = "1.0";
  25854. // 高德地图 key
  25855. var key = "53ea64b17287b1f7323e9f29870af813";
  25856. var _default = {
  25857. device: device,
  25858. version: version,
  25859. platform: platform,
  25860. key: key,
  25861. baseUrl: baseUrl
  25862. };
  25863. exports.default = _default;
  25864. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25865. /***/ }),
  25866. /***/ 592:
  25867. /*!*********************************************************************!*\
  25868. !*** D:/project/product_wx/wxcomponents/weapp/dist/picker/index.js ***!
  25869. \*********************************************************************/
  25870. /*! no static exports found */
  25871. /***/ (function(module, exports, __webpack_require__) {
  25872. "use strict";
  25873. var _component = __webpack_require__(/*! ../common/component */ 423);
  25874. var _shared = __webpack_require__(/*! ./shared */ 593);
  25875. (0, _component.VantComponent)({
  25876. classes: ['active-class', 'toolbar-class', 'column-class'],
  25877. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  25878. valueKey: {
  25879. type: String,
  25880. value: 'text'
  25881. },
  25882. toolbarPosition: {
  25883. type: String,
  25884. value: 'top'
  25885. },
  25886. defaultIndex: {
  25887. type: Number,
  25888. value: 0
  25889. },
  25890. columns: {
  25891. type: Array,
  25892. value: [],
  25893. observer: function observer() {
  25894. var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  25895. this.simple = columns.length && !columns[0].values;
  25896. if (Array.isArray(this.children) && this.children.length) {
  25897. this.setColumns().catch(function () {});
  25898. }
  25899. }
  25900. }
  25901. }),
  25902. beforeCreate: function beforeCreate() {
  25903. var _this = this;
  25904. Object.defineProperty(this, 'children', {
  25905. get: function get() {
  25906. return _this.selectAllComponents('.van-picker__column') || [];
  25907. }
  25908. });
  25909. },
  25910. methods: {
  25911. noop: function noop() {},
  25912. setColumns: function setColumns() {
  25913. var _this2 = this;
  25914. var data = this.data;
  25915. var columns = this.simple ? [{
  25916. values: data.columns
  25917. }] : data.columns;
  25918. var stack = columns.map(function (column, index) {
  25919. return _this2.setColumnValues(index, column.values);
  25920. });
  25921. return Promise.all(stack);
  25922. },
  25923. emit: function emit(event) {
  25924. var type = event.currentTarget.dataset.type;
  25925. if (this.simple) {
  25926. this.$emit(type, {
  25927. value: this.getColumnValue(0),
  25928. index: this.getColumnIndex(0)
  25929. });
  25930. } else {
  25931. this.$emit(type, {
  25932. value: this.getValues(),
  25933. index: this.getIndexes()
  25934. });
  25935. }
  25936. },
  25937. onChange: function onChange(event) {
  25938. if (this.simple) {
  25939. this.$emit('change', {
  25940. picker: this,
  25941. value: this.getColumnValue(0),
  25942. index: this.getColumnIndex(0)
  25943. });
  25944. } else {
  25945. this.$emit('change', {
  25946. picker: this,
  25947. value: this.getValues(),
  25948. index: event.currentTarget.dataset.index
  25949. });
  25950. }
  25951. },
  25952. // get column instance by index
  25953. getColumn: function getColumn(index) {
  25954. return this.children[index];
  25955. },
  25956. // get column value by index
  25957. getColumnValue: function getColumnValue(index) {
  25958. var column = this.getColumn(index);
  25959. return column && column.getValue();
  25960. },
  25961. // set column value by index
  25962. setColumnValue: function setColumnValue(index, value) {
  25963. var column = this.getColumn(index);
  25964. if (column == null) {
  25965. return Promise.reject(new Error('setColumnValue: 对应列不存在'));
  25966. }
  25967. return column.setValue(value);
  25968. },
  25969. // get column option index by column index
  25970. getColumnIndex: function getColumnIndex(columnIndex) {
  25971. return (this.getColumn(columnIndex) || {}).data.currentIndex;
  25972. },
  25973. // set column option index by column index
  25974. setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {
  25975. var column = this.getColumn(columnIndex);
  25976. if (column == null) {
  25977. return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
  25978. }
  25979. return column.setIndex(optionIndex);
  25980. },
  25981. // get options of column by index
  25982. getColumnValues: function getColumnValues(index) {
  25983. return (this.children[index] || {}).data.options;
  25984. },
  25985. // set options of column by index
  25986. setColumnValues: function setColumnValues(index, options) {
  25987. var needReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  25988. var column = this.children[index];
  25989. if (column == null) {
  25990. return Promise.reject(new Error('setColumnValues: 对应列不存在'));
  25991. }
  25992. var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
  25993. if (isSame) {
  25994. return Promise.resolve();
  25995. }
  25996. return column.set({
  25997. options: options
  25998. }).then(function () {
  25999. if (needReset) {
  26000. column.setIndex(0);
  26001. }
  26002. });
  26003. },
  26004. // get values of all columns
  26005. getValues: function getValues() {
  26006. return this.children.map(function (child) {
  26007. return child.getValue();
  26008. });
  26009. },
  26010. // set values of all columns
  26011. setValues: function setValues(values) {
  26012. var _this3 = this;
  26013. var stack = values.map(function (value, index) {
  26014. return _this3.setColumnValue(index, value);
  26015. });
  26016. return Promise.all(stack);
  26017. },
  26018. // get indexes of all columns
  26019. getIndexes: function getIndexes() {
  26020. return this.children.map(function (child) {
  26021. return child.data.currentIndex;
  26022. });
  26023. },
  26024. // set indexes of all columns
  26025. setIndexes: function setIndexes(indexes) {
  26026. var _this4 = this;
  26027. var stack = indexes.map(function (optionIndex, columnIndex) {
  26028. return _this4.setColumnIndex(columnIndex, optionIndex);
  26029. });
  26030. return Promise.all(stack);
  26031. }
  26032. }
  26033. });
  26034. /***/ }),
  26035. /***/ 593:
  26036. /*!**********************************************************************!*\
  26037. !*** D:/project/product_wx/wxcomponents/weapp/dist/picker/shared.js ***!
  26038. \**********************************************************************/
  26039. /*! no static exports found */
  26040. /***/ (function(module, exports, __webpack_require__) {
  26041. "use strict";
  26042. Object.defineProperty(exports, "__esModule", {
  26043. value: true
  26044. });
  26045. exports.pickerProps = void 0;
  26046. var pickerProps = {
  26047. title: String,
  26048. loading: Boolean,
  26049. showToolbar: Boolean,
  26050. cancelButtonText: {
  26051. type: String,
  26052. value: '取消'
  26053. },
  26054. confirmButtonText: {
  26055. type: String,
  26056. value: '确认'
  26057. },
  26058. visibleItemCount: {
  26059. type: Number,
  26060. value: 6
  26061. },
  26062. itemHeight: {
  26063. type: Number,
  26064. value: 44
  26065. }
  26066. };
  26067. exports.pickerProps = pickerProps;
  26068. /***/ }),
  26069. /***/ 6:
  26070. /*!***************************************************************!*\
  26071. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  26072. \***************************************************************/
  26073. /*! no static exports found */
  26074. /***/ (function(module, exports) {
  26075. function _arrayWithHoles(arr) {
  26076. if (Array.isArray(arr)) return arr;
  26077. }
  26078. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  26079. /***/ }),
  26080. /***/ 62:
  26081. /*!**********************************************************************!*\
  26082. !*** D:/project/product_wx/wxcomponents/weapp/dist/dialog/dialog.js ***!
  26083. \**********************************************************************/
  26084. /*! no static exports found */
  26085. /***/ (function(module, exports, __webpack_require__) {
  26086. "use strict";
  26087. /* WEBPACK VAR INJECTION */(function(wx) {
  26088. Object.defineProperty(exports, "__esModule", {
  26089. value: true
  26090. });
  26091. exports.default = void 0;
  26092. var queue = [];
  26093. var defaultOptions = {
  26094. show: false,
  26095. title: '',
  26096. width: null,
  26097. theme: 'default',
  26098. message: '',
  26099. zIndex: 100,
  26100. overlay: true,
  26101. selector: '#van-dialog',
  26102. className: '',
  26103. asyncClose: false,
  26104. beforeClose: null,
  26105. transition: 'scale',
  26106. customStyle: '',
  26107. messageAlign: '',
  26108. overlayStyle: '',
  26109. confirmButtonText: '确认',
  26110. cancelButtonText: '取消',
  26111. showConfirmButton: true,
  26112. showCancelButton: false,
  26113. closeOnClickOverlay: false,
  26114. confirmButtonOpenType: ''
  26115. };
  26116. var currentOptions = Object.assign({}, defaultOptions);
  26117. function getContext() {
  26118. var pages = getCurrentPages();
  26119. return pages[pages.length - 1];
  26120. }
  26121. var Dialog = function Dialog(options) {
  26122. options = Object.assign(Object.assign({}, currentOptions), options);
  26123. return new Promise(function (resolve, reject) {
  26124. var context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
  26125. var dialog = context.selectComponent(options.selector);
  26126. delete options.context;
  26127. delete options.selector;
  26128. if (dialog) {
  26129. dialog.setData(Object.assign({
  26130. callback: function callback(action, instance) {
  26131. action === 'confirm' ? resolve(instance) : reject(instance);
  26132. }
  26133. }, options));
  26134. wx.nextTick(function () {
  26135. dialog.setData({
  26136. show: true
  26137. });
  26138. });
  26139. queue.push(dialog);
  26140. } else {
  26141. console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
  26142. }
  26143. });
  26144. };
  26145. Dialog.alert = function (options) {
  26146. return Dialog(options);
  26147. };
  26148. Dialog.confirm = function (options) {
  26149. return Dialog(Object.assign({
  26150. showCancelButton: true
  26151. }, options));
  26152. };
  26153. Dialog.close = function () {
  26154. queue.forEach(function (dialog) {
  26155. dialog.close();
  26156. });
  26157. queue = [];
  26158. };
  26159. Dialog.stopLoading = function () {
  26160. queue.forEach(function (dialog) {
  26161. dialog.stopLoading();
  26162. });
  26163. };
  26164. Dialog.currentOptions = currentOptions;
  26165. Dialog.defaultOptions = defaultOptions;
  26166. Dialog.setDefaultOptions = function (options) {
  26167. currentOptions = Object.assign(Object.assign({}, currentOptions), options);
  26168. Dialog.currentOptions = currentOptions;
  26169. };
  26170. Dialog.resetDefaultOptions = function () {
  26171. currentOptions = Object.assign({}, defaultOptions);
  26172. Dialog.currentOptions = currentOptions;
  26173. };
  26174. Dialog.resetDefaultOptions();
  26175. var _default = Dialog;
  26176. exports.default = _default;
  26177. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  26178. /***/ }),
  26179. /***/ 622:
  26180. /*!********************************************************************!*\
  26181. !*** D:/project/product_wx/wxcomponents/weapp/dist/popup/index.js ***!
  26182. \********************************************************************/
  26183. /*! no static exports found */
  26184. /***/ (function(module, exports, __webpack_require__) {
  26185. "use strict";
  26186. var _component = __webpack_require__(/*! ../common/component */ 423);
  26187. var _transition = __webpack_require__(/*! ../mixins/transition */ 623);
  26188. (0, _component.VantComponent)({
  26189. classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class', 'close-icon-class'],
  26190. mixins: [(0, _transition.transition)(false)],
  26191. props: {
  26192. round: Boolean,
  26193. closeable: Boolean,
  26194. customStyle: String,
  26195. overlayStyle: String,
  26196. transition: {
  26197. type: String,
  26198. observer: 'observeClass'
  26199. },
  26200. zIndex: {
  26201. type: Number,
  26202. value: 100
  26203. },
  26204. overlay: {
  26205. type: Boolean,
  26206. value: true
  26207. },
  26208. closeIcon: {
  26209. type: String,
  26210. value: 'cross'
  26211. },
  26212. closeIconPosition: {
  26213. type: String,
  26214. value: 'top-right'
  26215. },
  26216. closeOnClickOverlay: {
  26217. type: Boolean,
  26218. value: true
  26219. },
  26220. position: {
  26221. type: String,
  26222. value: 'center',
  26223. observer: 'observeClass'
  26224. },
  26225. safeAreaInsetBottom: {
  26226. type: Boolean,
  26227. value: true
  26228. },
  26229. safeAreaInsetTop: {
  26230. type: Boolean,
  26231. value: false
  26232. },
  26233. safeAreaTabBar: {
  26234. type: Boolean,
  26235. value: false
  26236. },
  26237. lockScroll: {
  26238. type: Boolean,
  26239. value: true
  26240. },
  26241. rootPortal: {
  26242. type: Boolean,
  26243. value: false
  26244. }
  26245. },
  26246. created: function created() {
  26247. this.observeClass();
  26248. },
  26249. methods: {
  26250. onClickCloseIcon: function onClickCloseIcon() {
  26251. this.$emit('close');
  26252. },
  26253. onClickOverlay: function onClickOverlay() {
  26254. this.$emit('click-overlay');
  26255. if (this.data.closeOnClickOverlay) {
  26256. this.$emit('close');
  26257. }
  26258. },
  26259. observeClass: function observeClass() {
  26260. var _this$data = this.data,
  26261. transition = _this$data.transition,
  26262. position = _this$data.position,
  26263. duration = _this$data.duration;
  26264. var updateData = {
  26265. name: transition || position
  26266. };
  26267. if (transition === 'none') {
  26268. updateData.duration = 0;
  26269. this.originDuration = duration;
  26270. } else if (this.originDuration != null) {
  26271. updateData.duration = this.originDuration;
  26272. }
  26273. this.setData(updateData);
  26274. }
  26275. }
  26276. });
  26277. /***/ }),
  26278. /***/ 623:
  26279. /*!**************************************************************************!*\
  26280. !*** D:/project/product_wx/wxcomponents/weapp/dist/mixins/transition.js ***!
  26281. \**************************************************************************/
  26282. /*! no static exports found */
  26283. /***/ (function(module, exports, __webpack_require__) {
  26284. "use strict";
  26285. Object.defineProperty(exports, "__esModule", {
  26286. value: true
  26287. });
  26288. exports.transition = transition;
  26289. var _utils = __webpack_require__(/*! ../common/utils */ 428);
  26290. var _validator = __webpack_require__(/*! ../common/validator */ 429);
  26291. // @ts-nocheck
  26292. var getClassNames = function getClassNames(name) {
  26293. return {
  26294. enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
  26295. 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
  26296. leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
  26297. 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class")
  26298. };
  26299. };
  26300. function transition(showDefaultValue) {
  26301. return Behavior({
  26302. properties: {
  26303. customStyle: String,
  26304. // @ts-ignore
  26305. show: {
  26306. type: Boolean,
  26307. value: showDefaultValue,
  26308. observer: 'observeShow'
  26309. },
  26310. // @ts-ignore
  26311. duration: {
  26312. type: null,
  26313. value: 300,
  26314. observer: 'observeDuration'
  26315. },
  26316. name: {
  26317. type: String,
  26318. value: 'fade'
  26319. }
  26320. },
  26321. data: {
  26322. type: '',
  26323. inited: false,
  26324. display: false
  26325. },
  26326. ready: function ready() {
  26327. if (this.data.show === true) {
  26328. this.observeShow(true, false);
  26329. }
  26330. },
  26331. methods: {
  26332. observeShow: function observeShow(value, old) {
  26333. if (value === old) {
  26334. return;
  26335. }
  26336. value ? this.enter() : this.leave();
  26337. },
  26338. enter: function enter() {
  26339. var _this = this;
  26340. var _this$data = this.data,
  26341. duration = _this$data.duration,
  26342. name = _this$data.name;
  26343. var classNames = getClassNames(name);
  26344. var currentDuration = (0, _validator.isObj)(duration) ? duration.enter : duration;
  26345. if (this.status === 'enter') {
  26346. return;
  26347. }
  26348. this.status = 'enter';
  26349. this.$emit('before-enter');
  26350. (0, _utils.requestAnimationFrame)(function () {
  26351. if (_this.status !== 'enter') {
  26352. return;
  26353. }
  26354. _this.$emit('enter');
  26355. _this.setData({
  26356. inited: true,
  26357. display: true,
  26358. classes: classNames.enter,
  26359. currentDuration: currentDuration
  26360. });
  26361. (0, _utils.requestAnimationFrame)(function () {
  26362. if (_this.status !== 'enter') {
  26363. return;
  26364. }
  26365. _this.transitionEnded = false;
  26366. _this.setData({
  26367. classes: classNames['enter-to']
  26368. });
  26369. });
  26370. });
  26371. },
  26372. leave: function leave() {
  26373. var _this2 = this;
  26374. if (!this.data.display) {
  26375. return;
  26376. }
  26377. var _this$data2 = this.data,
  26378. duration = _this$data2.duration,
  26379. name = _this$data2.name;
  26380. var classNames = getClassNames(name);
  26381. var currentDuration = (0, _validator.isObj)(duration) ? duration.leave : duration;
  26382. this.status = 'leave';
  26383. this.$emit('before-leave');
  26384. (0, _utils.requestAnimationFrame)(function () {
  26385. if (_this2.status !== 'leave') {
  26386. return;
  26387. }
  26388. _this2.$emit('leave');
  26389. _this2.setData({
  26390. classes: classNames.leave,
  26391. currentDuration: currentDuration
  26392. });
  26393. (0, _utils.requestAnimationFrame)(function () {
  26394. if (_this2.status !== 'leave') {
  26395. return;
  26396. }
  26397. _this2.transitionEnded = false;
  26398. setTimeout(function () {
  26399. return _this2.onTransitionEnd();
  26400. }, currentDuration);
  26401. _this2.setData({
  26402. classes: classNames['leave-to']
  26403. });
  26404. });
  26405. });
  26406. },
  26407. onTransitionEnd: function onTransitionEnd() {
  26408. if (this.transitionEnded) {
  26409. return;
  26410. }
  26411. this.transitionEnded = true;
  26412. this.$emit("after-".concat(this.status));
  26413. var _this$data3 = this.data,
  26414. show = _this$data3.show,
  26415. display = _this$data3.display;
  26416. if (!show && display) {
  26417. this.setData({
  26418. display: false
  26419. });
  26420. }
  26421. }
  26422. }
  26423. });
  26424. }
  26425. /***/ }),
  26426. /***/ 624:
  26427. /*!********************************************************************!*\
  26428. !*** D:/project/product_wx/wxcomponents/weapp/dist/field/index.js ***!
  26429. \********************************************************************/
  26430. /*! no static exports found */
  26431. /***/ (function(module, exports, __webpack_require__) {
  26432. "use strict";
  26433. var _utils = __webpack_require__(/*! ../common/utils */ 428);
  26434. var _component = __webpack_require__(/*! ../common/component */ 423);
  26435. var _props = __webpack_require__(/*! ./props */ 625);
  26436. (0, _component.VantComponent)({
  26437. field: true,
  26438. classes: ['input-class', 'right-icon-class', 'label-class'],
  26439. props: Object.assign(Object.assign(Object.assign(Object.assign({}, _props.commonProps), _props.inputProps), _props.textareaProps), {
  26440. size: String,
  26441. icon: String,
  26442. label: String,
  26443. error: Boolean,
  26444. center: Boolean,
  26445. isLink: Boolean,
  26446. leftIcon: String,
  26447. rightIcon: String,
  26448. autosize: null,
  26449. required: Boolean,
  26450. iconClass: String,
  26451. clickable: Boolean,
  26452. inputAlign: String,
  26453. customStyle: String,
  26454. errorMessage: String,
  26455. arrowDirection: String,
  26456. showWordLimit: Boolean,
  26457. errorMessageAlign: String,
  26458. readonly: {
  26459. type: Boolean,
  26460. observer: 'setShowClear'
  26461. },
  26462. clearable: {
  26463. type: Boolean,
  26464. observer: 'setShowClear'
  26465. },
  26466. clearTrigger: {
  26467. type: String,
  26468. value: 'focus'
  26469. },
  26470. border: {
  26471. type: Boolean,
  26472. value: true
  26473. },
  26474. titleWidth: {
  26475. type: String,
  26476. value: '6.2em'
  26477. },
  26478. clearIcon: {
  26479. type: String,
  26480. value: 'clear'
  26481. },
  26482. extraEventParams: {
  26483. type: Boolean,
  26484. value: false
  26485. }
  26486. }),
  26487. data: {
  26488. focused: false,
  26489. innerValue: '',
  26490. showClear: false
  26491. },
  26492. created: function created() {
  26493. this.value = this.data.value;
  26494. this.setData({
  26495. innerValue: this.value
  26496. });
  26497. },
  26498. methods: {
  26499. formatValue: function formatValue(value) {
  26500. var maxlength = this.data.maxlength;
  26501. if (maxlength !== -1 && value.length > maxlength) {
  26502. return value.slice(0, maxlength);
  26503. }
  26504. return value;
  26505. },
  26506. onInput: function onInput(event) {
  26507. var _ref = event.detail || {},
  26508. _ref$value = _ref.value,
  26509. value = _ref$value === void 0 ? '' : _ref$value;
  26510. var formatValue = this.formatValue(value);
  26511. this.value = formatValue;
  26512. this.setShowClear();
  26513. return this.emitChange(Object.assign(Object.assign({}, event.detail), {
  26514. value: formatValue
  26515. }));
  26516. },
  26517. onFocus: function onFocus(event) {
  26518. this.focused = true;
  26519. this.setShowClear();
  26520. this.$emit('focus', event.detail);
  26521. },
  26522. onBlur: function onBlur(event) {
  26523. this.focused = false;
  26524. this.setShowClear();
  26525. this.$emit('blur', event.detail);
  26526. },
  26527. onClickIcon: function onClickIcon() {
  26528. this.$emit('click-icon');
  26529. },
  26530. onClickInput: function onClickInput(event) {
  26531. this.$emit('click-input', event.detail);
  26532. },
  26533. onClear: function onClear() {
  26534. var _this = this;
  26535. this.setData({
  26536. innerValue: ''
  26537. });
  26538. this.value = '';
  26539. this.setShowClear();
  26540. (0, _utils.nextTick)(function () {
  26541. _this.emitChange({
  26542. value: ''
  26543. });
  26544. _this.$emit('clear', '');
  26545. });
  26546. },
  26547. onConfirm: function onConfirm(event) {
  26548. var _ref2 = event.detail || {},
  26549. _ref2$value = _ref2.value,
  26550. value = _ref2$value === void 0 ? '' : _ref2$value;
  26551. this.value = value;
  26552. this.setShowClear();
  26553. this.$emit('confirm', value);
  26554. },
  26555. setValue: function setValue(value) {
  26556. this.value = value;
  26557. this.setShowClear();
  26558. if (value === '') {
  26559. this.setData({
  26560. innerValue: ''
  26561. });
  26562. }
  26563. this.emitChange({
  26564. value: value
  26565. });
  26566. },
  26567. onLineChange: function onLineChange(event) {
  26568. this.$emit('linechange', event.detail);
  26569. },
  26570. onKeyboardHeightChange: function onKeyboardHeightChange(event) {
  26571. this.$emit('keyboardheightchange', event.detail);
  26572. },
  26573. emitChange: function emitChange(detail) {
  26574. var extraEventParams = this.data.extraEventParams;
  26575. this.setData({
  26576. value: detail.value
  26577. });
  26578. var result;
  26579. var data = extraEventParams ? Object.assign(Object.assign({}, detail), {
  26580. callback: function callback(data) {
  26581. result = data;
  26582. }
  26583. }) : detail.value;
  26584. this.$emit('input', data);
  26585. this.$emit('change', data);
  26586. return result;
  26587. },
  26588. setShowClear: function setShowClear() {
  26589. var _this$data = this.data,
  26590. clearable = _this$data.clearable,
  26591. readonly = _this$data.readonly,
  26592. clearTrigger = _this$data.clearTrigger;
  26593. var focused = this.focused,
  26594. value = this.value;
  26595. var showClear = false;
  26596. if (clearable && !readonly) {
  26597. var hasValue = !!value;
  26598. var trigger = clearTrigger === 'always' || clearTrigger === 'focus' && focused;
  26599. showClear = hasValue && trigger;
  26600. }
  26601. this.setData({
  26602. showClear: showClear
  26603. });
  26604. },
  26605. noop: function noop() {}
  26606. }
  26607. });
  26608. /***/ }),
  26609. /***/ 625:
  26610. /*!********************************************************************!*\
  26611. !*** D:/project/product_wx/wxcomponents/weapp/dist/field/props.js ***!
  26612. \********************************************************************/
  26613. /*! no static exports found */
  26614. /***/ (function(module, exports, __webpack_require__) {
  26615. "use strict";
  26616. Object.defineProperty(exports, "__esModule", {
  26617. value: true
  26618. });
  26619. exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
  26620. var commonProps = {
  26621. value: {
  26622. type: String,
  26623. observer: function observer(value) {
  26624. if (value !== this.value) {
  26625. this.setData({
  26626. innerValue: value
  26627. });
  26628. this.value = value;
  26629. }
  26630. }
  26631. },
  26632. placeholder: String,
  26633. placeholderStyle: String,
  26634. placeholderClass: String,
  26635. disabled: Boolean,
  26636. maxlength: {
  26637. type: Number,
  26638. value: -1
  26639. },
  26640. cursorSpacing: {
  26641. type: Number,
  26642. value: 50
  26643. },
  26644. autoFocus: Boolean,
  26645. focus: Boolean,
  26646. cursor: {
  26647. type: Number,
  26648. value: -1
  26649. },
  26650. selectionStart: {
  26651. type: Number,
  26652. value: -1
  26653. },
  26654. selectionEnd: {
  26655. type: Number,
  26656. value: -1
  26657. },
  26658. adjustPosition: {
  26659. type: Boolean,
  26660. value: true
  26661. },
  26662. holdKeyboard: Boolean
  26663. };
  26664. exports.commonProps = commonProps;
  26665. var inputProps = {
  26666. type: {
  26667. type: String,
  26668. value: 'text'
  26669. },
  26670. password: Boolean,
  26671. confirmType: String,
  26672. confirmHold: Boolean,
  26673. alwaysEmbed: Boolean
  26674. };
  26675. exports.inputProps = inputProps;
  26676. var textareaProps = {
  26677. autoHeight: Boolean,
  26678. fixed: Boolean,
  26679. showConfirmBar: {
  26680. type: Boolean,
  26681. value: true
  26682. },
  26683. disableDefaultPadding: {
  26684. type: Boolean,
  26685. value: true
  26686. }
  26687. };
  26688. exports.textareaProps = textareaProps;
  26689. /***/ }),
  26690. /***/ 63:
  26691. /*!********************************************!*\
  26692. !*** D:/project/product_wx/js_sdk/http.js ***!
  26693. \********************************************/
  26694. /*! no static exports found */
  26695. /***/ (function(module, exports, __webpack_require__) {
  26696. "use strict";
  26697. /* WEBPACK VAR INJECTION */(function(uni) {
  26698. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26699. Object.defineProperty(exports, "__esModule", {
  26700. value: true
  26701. });
  26702. exports.add = add;
  26703. exports.addInterview = addInterview;
  26704. exports.addRectificationManagement = addRectificationManagement;
  26705. exports.addRepair = addRepair;
  26706. exports.addSafetySelfCheckingManage = addSafetySelfCheckingManage;
  26707. exports.addSafetySelfCheckingPlan = addSafetySelfCheckingPlan;
  26708. exports.addZaiti = addZaiti;
  26709. exports.addyixiang = addyixiang;
  26710. exports.cancelAppoint = cancelAppoint;
  26711. exports.clickCollect = clickCollect;
  26712. exports.companyECdit = companyECdit;
  26713. exports.companyExamineAdd = companyExamineAdd;
  26714. exports.confirmAudit = confirmAudit;
  26715. exports.editHomeCommunityActivity = editHomeCommunityActivity;
  26716. exports.editInterview = editInterview;
  26717. exports.editPassword = editPassword;
  26718. exports.editRepair = editRepair;
  26719. exports.editSave = editSave;
  26720. exports.findAllSimpleCompanies = findAllSimpleCompanies;
  26721. exports.findCompanyInfoList = findCompanyInfoList;
  26722. exports.findCompanyList = findCompanyList;
  26723. exports.findCompanyTags = findCompanyTags;
  26724. exports.findDeptList = findDeptList;
  26725. exports.findLongPanList = findLongPanList;
  26726. exports.findLouDongList = findLouDongList;
  26727. exports.findRectificationManagementInOutById = findRectificationManagementInOutById;
  26728. exports.findRectificationManagementInOutList = findRectificationManagementInOutList;
  26729. exports.findRoomByCondition = findRoomByCondition;
  26730. exports.findRoomInfoListByIds = findRoomInfoListByIds;
  26731. exports.findSafetySelfCheckingManageList = findSafetySelfCheckingManageList;
  26732. exports.findSafetySelfCheckingManagetById = findSafetySelfCheckingManagetById;
  26733. exports.findSafetySelfCheckingPlanById = findSafetySelfCheckingPlanById;
  26734. exports.findSafetySelfCheckingPlanList = findSafetySelfCheckingPlanList;
  26735. exports.findTrackUserList = findTrackUserList;
  26736. exports.findUserListByRoleWuye = findUserListByRoleWuye;
  26737. exports.findYuanQuList = findYuanQuList;
  26738. exports.getActivationRanking = getActivationRanking;
  26739. exports.getActivityById = getActivityById;
  26740. exports.getAppUserMain = getAppUserMain;
  26741. exports.getBuildDetails = getBuildDetails;
  26742. exports.getByCodes = getByCodes;
  26743. exports.getBySaveStatus = getBySaveStatus;
  26744. exports.getCompanyAll = getCompanyAll;
  26745. exports.getCompanyById = getCompanyById;
  26746. exports.getCompanyById2 = getCompanyById2;
  26747. exports.getCompanyHouseDetails = getCompanyHouseDetails;
  26748. exports.getCompanyTags = getCompanyTags;
  26749. exports.getCompanyTagsByQybq = getCompanyTagsByQybq;
  26750. exports.getDetial = getDetial;
  26751. exports.getDispatchToPerson = getDispatchToPerson;
  26752. exports.getInterviewDetails = getInterviewDetails;
  26753. exports.getInterviewList = getInterviewList;
  26754. exports.getPartyBranchList = getPartyBranchList;
  26755. exports.getRepairDispatchById = getRepairDispatchById;
  26756. exports.getRepairList = getRepairList;
  26757. exports.getRoomInfo = getRoomInfo;
  26758. exports.getSelectDeptTwo = getSelectDeptTwo;
  26759. exports.getSelectUserTwo = getSelectUserTwo;
  26760. exports.getTreeData2 = getTreeData2;
  26761. exports.getTreeData6 = getTreeData6;
  26762. exports.getUserInfo = getUserInfo;
  26763. exports.getUserLocalStorageInfo = getUserLocalStorageInfo;
  26764. exports.getUserPower = getUserPower;
  26765. exports.getWxCompanyTags = getWxCompanyTags;
  26766. exports.handleList = handleList;
  26767. exports.insertRegisSignInfo = insertRegisSignInfo;
  26768. exports.interviewEscalationListAll = interviewEscalationListAll;
  26769. exports.list = list;
  26770. exports.listAllUserMain = listAllUserMain;
  26771. exports.listApp = listApp;
  26772. exports.listByModel = listByModel;
  26773. exports.listHomeCommunityActivity = listHomeCommunityActivity;
  26774. exports.listVo = listVo;
  26775. exports.login = login;
  26776. exports.loginByCompany = loginByCompany;
  26777. exports.loginByWeixin2 = loginByWeixin2;
  26778. exports.readList = readList;
  26779. exports.removeTagsBind = removeTagsBind;
  26780. exports.repairList = repairList;
  26781. exports.richScan = richScan;
  26782. exports.saleControllerGetById = saleControllerGetById;
  26783. exports.selectByCompanyId = selectByCompanyId;
  26784. exports.tagCategoryList = tagCategoryList;
  26785. exports.tagInfoList = tagInfoList;
  26786. exports.tagsBind = tagsBind;
  26787. exports.updateListRectificationManagement = updateListRectificationManagement;
  26788. exports.updateSafetySelfCheckingManage = updateSafetySelfCheckingManage;
  26789. exports.uploadPDF = uploadPDF;
  26790. exports.userList = userList;
  26791. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  26792. var _requestConfig = _interopRequireDefault(__webpack_require__(/*! ./request/requestConfig */ 53));
  26793. var _constant = __webpack_require__(/*! ../pages/utils/constant.js */ 50);
  26794. var _qs = _interopRequireDefault(__webpack_require__(/*! qs */ 64));
  26795. 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; }
  26796. 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; }
  26797. var baseUri = '/smartParkH5Server';
  26798. var parkActivity = '/wx/meetingAppoint';
  26799. function login(data) {
  26800. return _requestConfig.default.post('/wx/auth/login_by_app_main?' + _qs.default.stringify(data), {}, {});
  26801. }
  26802. function loginByCompany(data) {
  26803. return _requestConfig.default.post('/wx/auth/loginByCompany', data, {});
  26804. }
  26805. function addRectificationManagement(data) {
  26806. return _requestConfig.default.post('/wx/RectificationController/addRectificationManagement', data, {});
  26807. }
  26808. function loginByWeixin2(code) {
  26809. return _requestConfig.default.post('/wx/auth/login_by_weixin2', code, {});
  26810. }
  26811. function getUserLocalStorageInfo() {
  26812. var userInfo = JSON.parse(uni.getStorageSync("USERINFO"));
  26813. return userInfo;
  26814. }
  26815. function uploadPDF() {
  26816. uni.showLoading({
  26817. title: '加载中',
  26818. mask: true
  26819. });
  26820. return new Promise(function (resolve, reject) {
  26821. uni.chooseMessageFile({
  26822. count: 1,
  26823. //默认100
  26824. type: 'file',
  26825. success: function success(res) {
  26826. uni.uploadFile({
  26827. url: _constant.BASE_URI + "/wx/fileController/upload",
  26828. filePath: res.tempFiles[0].path,
  26829. name: "file",
  26830. formData: {
  26831. user: "test"
  26832. },
  26833. success: function success(successRes) {
  26834. // 上传完成需要更新 fileList
  26835. var data = JSON.parse(successRes.data);
  26836. uni.showToast({
  26837. title: '提交成功',
  26838. duration: 500
  26839. });
  26840. resolve({
  26841. url: data.data[0],
  26842. name: res.tempFiles[0].name
  26843. });
  26844. },
  26845. fail: function fail(res) {}
  26846. });
  26847. },
  26848. fail: function fail(e) {
  26849. uni.showToast({
  26850. title: '提交成功',
  26851. duration: 0
  26852. });
  26853. }
  26854. });
  26855. });
  26856. }
  26857. function getBuildDetails(data) {
  26858. return _requestConfig.default.post('/wx/MnpBuildingController/getById', data, {});
  26859. }
  26860. function addZaiti(data) {
  26861. return _requestConfig.default.post('/wx/ParkRoomController/add', data, {});
  26862. }
  26863. function getCompanyById2(data) {
  26864. return _requestConfig.default.post('/wx/roadShow/getCompanyById', data, {});
  26865. }
  26866. function add(data) {
  26867. return _requestConfig.default.post('/wx/repair/add', data, {});
  26868. }
  26869. function getPartyBranchList(data) {
  26870. return _requestConfig.default.post('/wx/partyBranch/getPartyBranchList', data, {});
  26871. }
  26872. function selectByCompanyId(data) {
  26873. return _requestConfig.default.post('/wx/SocialCarrierController/selectByCompanyId', data, {});
  26874. }
  26875. function getTreeData2(data) {
  26876. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData2', data, {});
  26877. }
  26878. function getTreeData6(data) {
  26879. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData6', data, {});
  26880. }
  26881. function getActivationRanking(data) {
  26882. return _requestConfig.default.post('/wx/partyBranch/getActivationRanking', data, {});
  26883. }
  26884. function findRectificationManagementInOutList(data) {
  26885. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutList', data, {});
  26886. }
  26887. function findRectificationManagementInOutById(e) {
  26888. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutById', {
  26889. id: e
  26890. }, {});
  26891. }
  26892. function repairList(data) {
  26893. return _requestConfig.default.post('/wx/repair/list', data, {});
  26894. }
  26895. function addSafetySelfCheckingManage(data) {
  26896. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingManage', data, {});
  26897. }
  26898. function updateSafetySelfCheckingManage(data) {
  26899. return _requestConfig.default.post('/wx/SafetyController/updateSafetySelfCheckingManage', data, {});
  26900. }
  26901. function editRepair(data) {
  26902. return _requestConfig.default.post('/wx/repair/edit', data, {});
  26903. }
  26904. function addRepair(data) {
  26905. return _requestConfig.default.post('/wx/repair/add', data, {});
  26906. }
  26907. function getRepairDispatchById(id) {
  26908. return _requestConfig.default.post('/wx/repair/getById', {
  26909. id: id
  26910. }, {});
  26911. }
  26912. function getDispatchToPerson(data) {
  26913. return _requestConfig.default.post('/wx/repair/getDispatchToPerson', data, {});
  26914. }
  26915. function getCompanyById(data) {
  26916. return _requestConfig.default.post('/wx/repair/getCompanyById', data, {});
  26917. }
  26918. function getWxCompanyTags(e) {
  26919. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  26920. }
  26921. function tagsBind(e) {
  26922. return _requestConfig.default.post('/wx/MnpTagInfoController/bind', e, {});
  26923. }
  26924. function getDetial(e) {
  26925. return _requestConfig.default.post('/wx/meetingAppoint/meetingAppointDetail', e, {});
  26926. }
  26927. function saleControllerGetById(e) {
  26928. return _requestConfig.default.post('/wx/SaleController/getById', {
  26929. id: e
  26930. }, {});
  26931. }
  26932. function getAppUserMain(data) {
  26933. return _requestConfig.default.post('/wx/company/getById', data, {});
  26934. }
  26935. function confirmAudit(data) {
  26936. return _requestConfig.default.post('/wx/meetingAppoint/confirmAudit', data, {});
  26937. }
  26938. function getCompanyTags(e) {
  26939. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags', e, {});
  26940. }
  26941. function getCompanyTagsByQybq(qybq) {
  26942. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTagsByQybq', {
  26943. qybq: qybq
  26944. }, {});
  26945. }
  26946. function companyECdit(data) {
  26947. return _requestConfig.default.post('/wx/company/edit', data, {});
  26948. }
  26949. function tagInfoList(e) {
  26950. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  26951. }
  26952. function findDeptList() {
  26953. return _requestConfig.default.post('/wx/SaleController/findDeptList', {}, {});
  26954. }
  26955. function tagCategoryList() {
  26956. return _requestConfig.default.post('/wx/MnpTagController/tagCategoryList', {}, {});
  26957. }
  26958. function interviewEscalationListAll(id) {
  26959. return _requestConfig.default.post('/wx/interviewEscalation/listAll', {
  26960. companyId: id
  26961. }, {});
  26962. }
  26963. function getUserInfo(data) {
  26964. var laocui_user_info = JSON.parse(uni.getStorageSync('laocui_user_info'));
  26965. return _requestConfig.default.post('/wx/frameUser/getMyInfo?userId=' + laocui_user_info.user.id, {}, {});
  26966. }
  26967. function getRoomInfo(e) {
  26968. return _requestConfig.default.post('/wx/ParkRoomController/getById', {
  26969. id: e
  26970. }, {});
  26971. }
  26972. function getCompanyHouseDetails(e) {
  26973. return _requestConfig.default.post('/wx/company/getById', {
  26974. id: e
  26975. }, {});
  26976. }
  26977. function handleList(e) {
  26978. return _requestConfig.default.post('/wx/workPaneController/handleList', e, {});
  26979. }
  26980. function readList(e) {
  26981. return _requestConfig.default.post('/wx/workPaneController/readList', e, {});
  26982. }
  26983. // handleList?
  26984. function findCompanyTags(e) {
  26985. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags/' + e, {}, {});
  26986. }
  26987. function removeTagsBind(e) {
  26988. return _requestConfig.default.post('/wx/MnpTagInfoController/removeBind', e, {});
  26989. }
  26990. function addInterview(e) {
  26991. return _requestConfig.default.post("/wx/interviewEscalation/add", e, {});
  26992. }
  26993. function editInterview(e) {
  26994. return _requestConfig.default.post("/wx/interviewEscalation/edit", e, {});
  26995. }
  26996. function getInterviewList(e) {
  26997. return _requestConfig.default.post("/wx/interviewEscalation/list", e, {});
  26998. }
  26999. function getInterviewDetails(e) {
  27000. return _requestConfig.default.post("/wx/interviewEscalation/getById", {
  27001. id: e
  27002. }, {});
  27003. }
  27004. function findSafetySelfCheckingPlanById(e) {
  27005. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanById", {
  27006. id: e
  27007. }, {});
  27008. }
  27009. //
  27010. function findSafetySelfCheckingPlanList(e) {
  27011. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanList", e, {});
  27012. }
  27013. function getBySaveStatus(e) {
  27014. return _requestConfig.default.post("/wx/interviewEscalation/getBySaveStatus", {
  27015. createdBy: e
  27016. }, {});
  27017. }
  27018. function companyExamineAdd(e) {
  27019. return _requestConfig.default.post("/wx/company/add", e, {});
  27020. }
  27021. function listByModel(e) {
  27022. return _requestConfig.default.post('/wx/SaleController/findSaleManagementListByRoomId', e, {});
  27023. }
  27024. function listVo(e) {
  27025. // 查询园区列表,不需要参数
  27026. return _requestConfig.default.post('/wx/company/listVo', e, {});
  27027. }
  27028. // /wx/SafetyController/addSafetySelfCheckingPlan
  27029. function addSafetySelfCheckingPlan(e) {
  27030. // 查询园区列表,不需要参数
  27031. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingPlan', _objectSpread({}, e), {});
  27032. }
  27033. function findSafetySelfCheckingManagetById(e) {
  27034. // 查询园区列表,不需要参数
  27035. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManagetById', {
  27036. id: e
  27037. }, {});
  27038. }
  27039. function findSafetySelfCheckingManageList(e) {
  27040. // 查询园区列表,不需要参数
  27041. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManageList', e, {});
  27042. }
  27043. function findYuanQuList() {
  27044. // 查询园区列表,不需要参数
  27045. return _requestConfig.default.post('/wx/SaleController/findYuanQuList', {}, {});
  27046. }
  27047. function findLongPanList(id) {
  27048. // 用园区ID查询楼盘列表
  27049. return _requestConfig.default.post('/wx/SaleController/findLouPanList', {
  27050. id: id
  27051. }, {});
  27052. }
  27053. function findLouDongList(id) {
  27054. // 用园区ID查询楼盘列表
  27055. return _requestConfig.default.post('/wx/SaleController/findLouDongList', {
  27056. id: id
  27057. }, {});
  27058. }
  27059. function clickCollect(e) {
  27060. return _requestConfig.default.post('/wx/parkActivity/clickCollect', e, {});
  27061. }
  27062. function insertRegisSignInfo(e) {
  27063. return _requestConfig.default.post('/wx/parkActivity/insertRegisSignInfo', e, {});
  27064. }
  27065. function richScan(e) {
  27066. return _requestConfig.default.post('/wx/parkActivity/richScan', e, {});
  27067. }
  27068. function getActivityById(id, signInCode, userId) {
  27069. return _requestConfig.default.get('/wx/parkActivity/getBySignInCode?id=' + id + '&userId=' + userId + "&signInCode=" + signInCode, {}, {});
  27070. }
  27071. // /wx/userPower/getUserPower?userId=1088765543780974592
  27072. function getUserPower(e) {
  27073. return _requestConfig.default.post('/wx/userPower/getUserPower', {
  27074. userId: e
  27075. }, {});
  27076. }
  27077. function editPassword(e) {
  27078. return _requestConfig.default.post('/wx/frameUser/editPassword', e, {});
  27079. }
  27080. function updateListRectificationManagement(e) {
  27081. return _requestConfig.default.post('/wx/RectificationController/updateListRectificationManagement', e, {});
  27082. }
  27083. // /wx/RectificationController/findUserListByRoleWuye
  27084. function findUserListByRoleWuye() {
  27085. // 用园区ID查询楼盘列表
  27086. return _requestConfig.default.post('/wx/RectificationController/findUserListByRoleWuye', {}, {});
  27087. }
  27088. function listAllUserMain() {
  27089. // 用园区ID查询楼盘列表
  27090. return _requestConfig.default.post('/wx/UserMainExpandController/listAllUserMain', {}, {});
  27091. }
  27092. function userList(e) {
  27093. // http://192.168.2.112:9011/wx/frameUser/userList
  27094. return _requestConfig.default.post('/wx/frameUser/userList', e, {});
  27095. }
  27096. function findAllSimpleCompanies(e) {
  27097. // http://192.168.2.112:9011/wx/frameUser/userList
  27098. return _requestConfig.default.post('/wx/company/findAllSimpleCompanies', {
  27099. searchInfo: e.qymc,
  27100. pageNum: 1,
  27101. pageSize: 10000
  27102. }, {});
  27103. }
  27104. function findTrackUserList() {
  27105. // http://192.168.2.112:9011/wx/frameUser/userList
  27106. return _requestConfig.default.post('/wx/SaleController/findTrackUserList', {}, {});
  27107. }
  27108. function getSelectUserTwo(e) {
  27109. // 用园区ID查询楼盘列表
  27110. return _requestConfig.default.post('/wx/frameUser/getSelectUserTwo', {
  27111. searchName: e
  27112. }, {});
  27113. }
  27114. function getSelectDeptTwo(e) {
  27115. // 用园区ID查询楼盘列表
  27116. return _requestConfig.default.post('/wx/frameUser/getSelectDeptTwo', {
  27117. searchName: e
  27118. }, {});
  27119. }
  27120. function findRoomInfoListByIds(e) {
  27121. // 用园区ID查询楼盘列表
  27122. return _requestConfig.default.post('/wx/SaleController/findRoomInfoListByIds', {
  27123. ids: e
  27124. }, {});
  27125. }
  27126. function findCompanyList() {
  27127. // 用园区ID查询楼盘列表
  27128. return _requestConfig.default.post('/wx/SaleController/findCompanyList', {}, {});
  27129. }
  27130. function addyixiang(e) {
  27131. return _requestConfig.default.post('/wx/SaleController/add', e, {});
  27132. }
  27133. function editSave(e) {
  27134. return _requestConfig.default.post('/wx/SaleController/editSave', e, {});
  27135. }
  27136. function findCompanyInfoList(data) {
  27137. return _requestConfig.default.post("/wx/SaleController/findCompanyInfoList", data, {});
  27138. }
  27139. function findRoomByCondition(params) {
  27140. // 用园区ID查询楼盘列表
  27141. return _requestConfig.default.post('/wx/SaleController/findRoomByCondition', params, {});
  27142. }
  27143. function getCompanyAll(qymc) {
  27144. return _requestConfig.default.post('/wx/company/listAll', {
  27145. qymc: qymc ? qymc : ""
  27146. }, {});
  27147. }
  27148. function getByCodes(params) {
  27149. // 用园区ID查询楼盘列表
  27150. return _requestConfig.default.post('/wx/sysDict/getByCodes', {
  27151. codes: params
  27152. }, {});
  27153. }
  27154. function list(data) {
  27155. return _requestConfig.default.post(parkActivity + '/getMeetingAppointList', data, {});
  27156. }
  27157. function listApp(data) {
  27158. return _requestConfig.default.post(parkActivity + '/getMeetingAppointListApp', data, {});
  27159. }
  27160. function cancelAppoint(data) {
  27161. return _requestConfig.default.post(parkActivity + '/cancelAppoint', data, {});
  27162. }
  27163. // /wx/SaleController/
  27164. function getRepairList(data) {
  27165. return _requestConfig.default.post('/wx/repair/list', data, {});
  27166. }
  27167. function editHomeCommunityActivity(data) {
  27168. return _requestConfig.default.post('/wx/homeActivity/editHomeCommunityActivity', data, {});
  27169. }
  27170. function listHomeCommunityActivity(data) {
  27171. return _requestConfig.default.post('/wx/homeActivity/listHomeCommunityActivity', data, {});
  27172. }
  27173. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27174. /***/ }),
  27175. /***/ 631:
  27176. /*!*********************************************************************************!*\
  27177. !*** D:/project/product_wx/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  27178. \*********************************************************************************/
  27179. /*! no static exports found */
  27180. /***/ (function(module, exports, __webpack_require__) {
  27181. "use strict";
  27182. Object.defineProperty(exports, "__esModule", {
  27183. value: true
  27184. });
  27185. exports.default = void 0;
  27186. var _default = {
  27187. "id": "2852637",
  27188. "name": "uniui图标库",
  27189. "font_family": "uniicons",
  27190. "css_prefix_text": "uniui-",
  27191. "description": "",
  27192. "glyphs": [{
  27193. "icon_id": "25027049",
  27194. "name": "yanse",
  27195. "font_class": "color",
  27196. "unicode": "e6cf",
  27197. "unicode_decimal": 59087
  27198. }, {
  27199. "icon_id": "25027048",
  27200. "name": "wallet",
  27201. "font_class": "wallet",
  27202. "unicode": "e6b1",
  27203. "unicode_decimal": 59057
  27204. }, {
  27205. "icon_id": "25015720",
  27206. "name": "settings-filled",
  27207. "font_class": "settings-filled",
  27208. "unicode": "e6ce",
  27209. "unicode_decimal": 59086
  27210. }, {
  27211. "icon_id": "25015434",
  27212. "name": "shimingrenzheng-filled",
  27213. "font_class": "auth-filled",
  27214. "unicode": "e6cc",
  27215. "unicode_decimal": 59084
  27216. }, {
  27217. "icon_id": "24934246",
  27218. "name": "shop-filled",
  27219. "font_class": "shop-filled",
  27220. "unicode": "e6cd",
  27221. "unicode_decimal": 59085
  27222. }, {
  27223. "icon_id": "24934159",
  27224. "name": "staff-filled-01",
  27225. "font_class": "staff-filled",
  27226. "unicode": "e6cb",
  27227. "unicode_decimal": 59083
  27228. }, {
  27229. "icon_id": "24932461",
  27230. "name": "VIP-filled",
  27231. "font_class": "vip-filled",
  27232. "unicode": "e6c6",
  27233. "unicode_decimal": 59078
  27234. }, {
  27235. "icon_id": "24932462",
  27236. "name": "plus_circle_fill",
  27237. "font_class": "plus-filled",
  27238. "unicode": "e6c7",
  27239. "unicode_decimal": 59079
  27240. }, {
  27241. "icon_id": "24932463",
  27242. "name": "folder_add-filled",
  27243. "font_class": "folder-add-filled",
  27244. "unicode": "e6c8",
  27245. "unicode_decimal": 59080
  27246. }, {
  27247. "icon_id": "24932464",
  27248. "name": "yanse-filled",
  27249. "font_class": "color-filled",
  27250. "unicode": "e6c9",
  27251. "unicode_decimal": 59081
  27252. }, {
  27253. "icon_id": "24932465",
  27254. "name": "tune-filled",
  27255. "font_class": "tune-filled",
  27256. "unicode": "e6ca",
  27257. "unicode_decimal": 59082
  27258. }, {
  27259. "icon_id": "24932455",
  27260. "name": "a-rilidaka-filled",
  27261. "font_class": "calendar-filled",
  27262. "unicode": "e6c0",
  27263. "unicode_decimal": 59072
  27264. }, {
  27265. "icon_id": "24932456",
  27266. "name": "notification-filled",
  27267. "font_class": "notification-filled",
  27268. "unicode": "e6c1",
  27269. "unicode_decimal": 59073
  27270. }, {
  27271. "icon_id": "24932457",
  27272. "name": "wallet-filled",
  27273. "font_class": "wallet-filled",
  27274. "unicode": "e6c2",
  27275. "unicode_decimal": 59074
  27276. }, {
  27277. "icon_id": "24932458",
  27278. "name": "paihangbang-filled",
  27279. "font_class": "medal-filled",
  27280. "unicode": "e6c3",
  27281. "unicode_decimal": 59075
  27282. }, {
  27283. "icon_id": "24932459",
  27284. "name": "gift-filled",
  27285. "font_class": "gift-filled",
  27286. "unicode": "e6c4",
  27287. "unicode_decimal": 59076
  27288. }, {
  27289. "icon_id": "24932460",
  27290. "name": "fire-filled",
  27291. "font_class": "fire-filled",
  27292. "unicode": "e6c5",
  27293. "unicode_decimal": 59077
  27294. }, {
  27295. "icon_id": "24928001",
  27296. "name": "refreshempty",
  27297. "font_class": "refreshempty",
  27298. "unicode": "e6bf",
  27299. "unicode_decimal": 59071
  27300. }, {
  27301. "icon_id": "24926853",
  27302. "name": "location-ellipse",
  27303. "font_class": "location-filled",
  27304. "unicode": "e6af",
  27305. "unicode_decimal": 59055
  27306. }, {
  27307. "icon_id": "24926735",
  27308. "name": "person-filled",
  27309. "font_class": "person-filled",
  27310. "unicode": "e69d",
  27311. "unicode_decimal": 59037
  27312. }, {
  27313. "icon_id": "24926703",
  27314. "name": "personadd-filled",
  27315. "font_class": "personadd-filled",
  27316. "unicode": "e698",
  27317. "unicode_decimal": 59032
  27318. }, {
  27319. "icon_id": "24923351",
  27320. "name": "back",
  27321. "font_class": "back",
  27322. "unicode": "e6b9",
  27323. "unicode_decimal": 59065
  27324. }, {
  27325. "icon_id": "24923352",
  27326. "name": "forward",
  27327. "font_class": "forward",
  27328. "unicode": "e6ba",
  27329. "unicode_decimal": 59066
  27330. }, {
  27331. "icon_id": "24923353",
  27332. "name": "arrowthinright",
  27333. "font_class": "arrow-right",
  27334. "unicode": "e6bb",
  27335. "unicode_decimal": 59067
  27336. }, {
  27337. "icon_id": "24923353",
  27338. "name": "arrowthinright",
  27339. "font_class": "arrowthinright",
  27340. "unicode": "e6bb",
  27341. "unicode_decimal": 59067
  27342. }, {
  27343. "icon_id": "24923354",
  27344. "name": "arrowthinleft",
  27345. "font_class": "arrow-left",
  27346. "unicode": "e6bc",
  27347. "unicode_decimal": 59068
  27348. }, {
  27349. "icon_id": "24923354",
  27350. "name": "arrowthinleft",
  27351. "font_class": "arrowthinleft",
  27352. "unicode": "e6bc",
  27353. "unicode_decimal": 59068
  27354. }, {
  27355. "icon_id": "24923355",
  27356. "name": "arrowthinup",
  27357. "font_class": "arrow-up",
  27358. "unicode": "e6bd",
  27359. "unicode_decimal": 59069
  27360. }, {
  27361. "icon_id": "24923355",
  27362. "name": "arrowthinup",
  27363. "font_class": "arrowthinup",
  27364. "unicode": "e6bd",
  27365. "unicode_decimal": 59069
  27366. }, {
  27367. "icon_id": "24923356",
  27368. "name": "arrowthindown",
  27369. "font_class": "arrow-down",
  27370. "unicode": "e6be",
  27371. "unicode_decimal": 59070
  27372. }, {
  27373. "icon_id": "24923356",
  27374. "name": "arrowthindown",
  27375. "font_class": "arrowthindown",
  27376. "unicode": "e6be",
  27377. "unicode_decimal": 59070
  27378. }, {
  27379. "icon_id": "24923349",
  27380. "name": "arrowdown",
  27381. "font_class": "bottom",
  27382. "unicode": "e6b8",
  27383. "unicode_decimal": 59064
  27384. }, {
  27385. "icon_id": "24923349",
  27386. "name": "arrowdown",
  27387. "font_class": "arrowdown",
  27388. "unicode": "e6b8",
  27389. "unicode_decimal": 59064
  27390. }, {
  27391. "icon_id": "24923346",
  27392. "name": "arrowright",
  27393. "font_class": "right",
  27394. "unicode": "e6b5",
  27395. "unicode_decimal": 59061
  27396. }, {
  27397. "icon_id": "24923346",
  27398. "name": "arrowright",
  27399. "font_class": "arrowright",
  27400. "unicode": "e6b5",
  27401. "unicode_decimal": 59061
  27402. }, {
  27403. "icon_id": "24923347",
  27404. "name": "arrowup",
  27405. "font_class": "top",
  27406. "unicode": "e6b6",
  27407. "unicode_decimal": 59062
  27408. }, {
  27409. "icon_id": "24923347",
  27410. "name": "arrowup",
  27411. "font_class": "arrowup",
  27412. "unicode": "e6b6",
  27413. "unicode_decimal": 59062
  27414. }, {
  27415. "icon_id": "24923348",
  27416. "name": "arrowleft",
  27417. "font_class": "left",
  27418. "unicode": "e6b7",
  27419. "unicode_decimal": 59063
  27420. }, {
  27421. "icon_id": "24923348",
  27422. "name": "arrowleft",
  27423. "font_class": "arrowleft",
  27424. "unicode": "e6b7",
  27425. "unicode_decimal": 59063
  27426. }, {
  27427. "icon_id": "24923334",
  27428. "name": "eye",
  27429. "font_class": "eye",
  27430. "unicode": "e651",
  27431. "unicode_decimal": 58961
  27432. }, {
  27433. "icon_id": "24923335",
  27434. "name": "eye-filled",
  27435. "font_class": "eye-filled",
  27436. "unicode": "e66a",
  27437. "unicode_decimal": 58986
  27438. }, {
  27439. "icon_id": "24923336",
  27440. "name": "eye-slash",
  27441. "font_class": "eye-slash",
  27442. "unicode": "e6b3",
  27443. "unicode_decimal": 59059
  27444. }, {
  27445. "icon_id": "24923337",
  27446. "name": "eye-slash-filled",
  27447. "font_class": "eye-slash-filled",
  27448. "unicode": "e6b4",
  27449. "unicode_decimal": 59060
  27450. }, {
  27451. "icon_id": "24923305",
  27452. "name": "info-filled",
  27453. "font_class": "info-filled",
  27454. "unicode": "e649",
  27455. "unicode_decimal": 58953
  27456. }, {
  27457. "icon_id": "24923299",
  27458. "name": "reload-01",
  27459. "font_class": "reload",
  27460. "unicode": "e6b2",
  27461. "unicode_decimal": 59058
  27462. }, {
  27463. "icon_id": "24923195",
  27464. "name": "mic_slash_fill",
  27465. "font_class": "micoff-filled",
  27466. "unicode": "e6b0",
  27467. "unicode_decimal": 59056
  27468. }, {
  27469. "icon_id": "24923165",
  27470. "name": "map-pin-ellipse",
  27471. "font_class": "map-pin-ellipse",
  27472. "unicode": "e6ac",
  27473. "unicode_decimal": 59052
  27474. }, {
  27475. "icon_id": "24923166",
  27476. "name": "map-pin",
  27477. "font_class": "map-pin",
  27478. "unicode": "e6ad",
  27479. "unicode_decimal": 59053
  27480. }, {
  27481. "icon_id": "24923167",
  27482. "name": "location",
  27483. "font_class": "location",
  27484. "unicode": "e6ae",
  27485. "unicode_decimal": 59054
  27486. }, {
  27487. "icon_id": "24923064",
  27488. "name": "starhalf",
  27489. "font_class": "starhalf",
  27490. "unicode": "e683",
  27491. "unicode_decimal": 59011
  27492. }, {
  27493. "icon_id": "24923065",
  27494. "name": "star",
  27495. "font_class": "star",
  27496. "unicode": "e688",
  27497. "unicode_decimal": 59016
  27498. }, {
  27499. "icon_id": "24923066",
  27500. "name": "star-filled",
  27501. "font_class": "star-filled",
  27502. "unicode": "e68f",
  27503. "unicode_decimal": 59023
  27504. }, {
  27505. "icon_id": "24899646",
  27506. "name": "a-rilidaka",
  27507. "font_class": "calendar",
  27508. "unicode": "e6a0",
  27509. "unicode_decimal": 59040
  27510. }, {
  27511. "icon_id": "24899647",
  27512. "name": "fire",
  27513. "font_class": "fire",
  27514. "unicode": "e6a1",
  27515. "unicode_decimal": 59041
  27516. }, {
  27517. "icon_id": "24899648",
  27518. "name": "paihangbang",
  27519. "font_class": "medal",
  27520. "unicode": "e6a2",
  27521. "unicode_decimal": 59042
  27522. }, {
  27523. "icon_id": "24899649",
  27524. "name": "font",
  27525. "font_class": "font",
  27526. "unicode": "e6a3",
  27527. "unicode_decimal": 59043
  27528. }, {
  27529. "icon_id": "24899650",
  27530. "name": "gift",
  27531. "font_class": "gift",
  27532. "unicode": "e6a4",
  27533. "unicode_decimal": 59044
  27534. }, {
  27535. "icon_id": "24899651",
  27536. "name": "link",
  27537. "font_class": "link",
  27538. "unicode": "e6a5",
  27539. "unicode_decimal": 59045
  27540. }, {
  27541. "icon_id": "24899652",
  27542. "name": "notification",
  27543. "font_class": "notification",
  27544. "unicode": "e6a6",
  27545. "unicode_decimal": 59046
  27546. }, {
  27547. "icon_id": "24899653",
  27548. "name": "staff",
  27549. "font_class": "staff",
  27550. "unicode": "e6a7",
  27551. "unicode_decimal": 59047
  27552. }, {
  27553. "icon_id": "24899654",
  27554. "name": "VIP",
  27555. "font_class": "vip",
  27556. "unicode": "e6a8",
  27557. "unicode_decimal": 59048
  27558. }, {
  27559. "icon_id": "24899655",
  27560. "name": "folder_add",
  27561. "font_class": "folder-add",
  27562. "unicode": "e6a9",
  27563. "unicode_decimal": 59049
  27564. }, {
  27565. "icon_id": "24899656",
  27566. "name": "tune",
  27567. "font_class": "tune",
  27568. "unicode": "e6aa",
  27569. "unicode_decimal": 59050
  27570. }, {
  27571. "icon_id": "24899657",
  27572. "name": "shimingrenzheng",
  27573. "font_class": "auth",
  27574. "unicode": "e6ab",
  27575. "unicode_decimal": 59051
  27576. }, {
  27577. "icon_id": "24899565",
  27578. "name": "person",
  27579. "font_class": "person",
  27580. "unicode": "e699",
  27581. "unicode_decimal": 59033
  27582. }, {
  27583. "icon_id": "24899566",
  27584. "name": "email-filled",
  27585. "font_class": "email-filled",
  27586. "unicode": "e69a",
  27587. "unicode_decimal": 59034
  27588. }, {
  27589. "icon_id": "24899567",
  27590. "name": "phone-filled",
  27591. "font_class": "phone-filled",
  27592. "unicode": "e69b",
  27593. "unicode_decimal": 59035
  27594. }, {
  27595. "icon_id": "24899568",
  27596. "name": "phone",
  27597. "font_class": "phone",
  27598. "unicode": "e69c",
  27599. "unicode_decimal": 59036
  27600. }, {
  27601. "icon_id": "24899570",
  27602. "name": "email",
  27603. "font_class": "email",
  27604. "unicode": "e69e",
  27605. "unicode_decimal": 59038
  27606. }, {
  27607. "icon_id": "24899571",
  27608. "name": "personadd",
  27609. "font_class": "personadd",
  27610. "unicode": "e69f",
  27611. "unicode_decimal": 59039
  27612. }, {
  27613. "icon_id": "24899558",
  27614. "name": "chatboxes-filled",
  27615. "font_class": "chatboxes-filled",
  27616. "unicode": "e692",
  27617. "unicode_decimal": 59026
  27618. }, {
  27619. "icon_id": "24899559",
  27620. "name": "contact",
  27621. "font_class": "contact",
  27622. "unicode": "e693",
  27623. "unicode_decimal": 59027
  27624. }, {
  27625. "icon_id": "24899560",
  27626. "name": "chatbubble-filled",
  27627. "font_class": "chatbubble-filled",
  27628. "unicode": "e694",
  27629. "unicode_decimal": 59028
  27630. }, {
  27631. "icon_id": "24899561",
  27632. "name": "contact-filled",
  27633. "font_class": "contact-filled",
  27634. "unicode": "e695",
  27635. "unicode_decimal": 59029
  27636. }, {
  27637. "icon_id": "24899562",
  27638. "name": "chatboxes",
  27639. "font_class": "chatboxes",
  27640. "unicode": "e696",
  27641. "unicode_decimal": 59030
  27642. }, {
  27643. "icon_id": "24899563",
  27644. "name": "chatbubble",
  27645. "font_class": "chatbubble",
  27646. "unicode": "e697",
  27647. "unicode_decimal": 59031
  27648. }, {
  27649. "icon_id": "24881290",
  27650. "name": "upload-filled",
  27651. "font_class": "upload-filled",
  27652. "unicode": "e68e",
  27653. "unicode_decimal": 59022
  27654. }, {
  27655. "icon_id": "24881292",
  27656. "name": "upload",
  27657. "font_class": "upload",
  27658. "unicode": "e690",
  27659. "unicode_decimal": 59024
  27660. }, {
  27661. "icon_id": "24881293",
  27662. "name": "weixin",
  27663. "font_class": "weixin",
  27664. "unicode": "e691",
  27665. "unicode_decimal": 59025
  27666. }, {
  27667. "icon_id": "24881274",
  27668. "name": "compose",
  27669. "font_class": "compose",
  27670. "unicode": "e67f",
  27671. "unicode_decimal": 59007
  27672. }, {
  27673. "icon_id": "24881275",
  27674. "name": "qq",
  27675. "font_class": "qq",
  27676. "unicode": "e680",
  27677. "unicode_decimal": 59008
  27678. }, {
  27679. "icon_id": "24881276",
  27680. "name": "download-filled",
  27681. "font_class": "download-filled",
  27682. "unicode": "e681",
  27683. "unicode_decimal": 59009
  27684. }, {
  27685. "icon_id": "24881277",
  27686. "name": "pengyouquan",
  27687. "font_class": "pyq",
  27688. "unicode": "e682",
  27689. "unicode_decimal": 59010
  27690. }, {
  27691. "icon_id": "24881279",
  27692. "name": "sound",
  27693. "font_class": "sound",
  27694. "unicode": "e684",
  27695. "unicode_decimal": 59012
  27696. }, {
  27697. "icon_id": "24881280",
  27698. "name": "trash-filled",
  27699. "font_class": "trash-filled",
  27700. "unicode": "e685",
  27701. "unicode_decimal": 59013
  27702. }, {
  27703. "icon_id": "24881281",
  27704. "name": "sound-filled",
  27705. "font_class": "sound-filled",
  27706. "unicode": "e686",
  27707. "unicode_decimal": 59014
  27708. }, {
  27709. "icon_id": "24881282",
  27710. "name": "trash",
  27711. "font_class": "trash",
  27712. "unicode": "e687",
  27713. "unicode_decimal": 59015
  27714. }, {
  27715. "icon_id": "24881284",
  27716. "name": "videocam-filled",
  27717. "font_class": "videocam-filled",
  27718. "unicode": "e689",
  27719. "unicode_decimal": 59017
  27720. }, {
  27721. "icon_id": "24881285",
  27722. "name": "spinner-cycle",
  27723. "font_class": "spinner-cycle",
  27724. "unicode": "e68a",
  27725. "unicode_decimal": 59018
  27726. }, {
  27727. "icon_id": "24881286",
  27728. "name": "weibo",
  27729. "font_class": "weibo",
  27730. "unicode": "e68b",
  27731. "unicode_decimal": 59019
  27732. }, {
  27733. "icon_id": "24881288",
  27734. "name": "videocam",
  27735. "font_class": "videocam",
  27736. "unicode": "e68c",
  27737. "unicode_decimal": 59020
  27738. }, {
  27739. "icon_id": "24881289",
  27740. "name": "download",
  27741. "font_class": "download",
  27742. "unicode": "e68d",
  27743. "unicode_decimal": 59021
  27744. }, {
  27745. "icon_id": "24879601",
  27746. "name": "help",
  27747. "font_class": "help",
  27748. "unicode": "e679",
  27749. "unicode_decimal": 59001
  27750. }, {
  27751. "icon_id": "24879602",
  27752. "name": "navigate-filled",
  27753. "font_class": "navigate-filled",
  27754. "unicode": "e67a",
  27755. "unicode_decimal": 59002
  27756. }, {
  27757. "icon_id": "24879603",
  27758. "name": "plusempty",
  27759. "font_class": "plusempty",
  27760. "unicode": "e67b",
  27761. "unicode_decimal": 59003
  27762. }, {
  27763. "icon_id": "24879604",
  27764. "name": "smallcircle",
  27765. "font_class": "smallcircle",
  27766. "unicode": "e67c",
  27767. "unicode_decimal": 59004
  27768. }, {
  27769. "icon_id": "24879605",
  27770. "name": "minus-filled",
  27771. "font_class": "minus-filled",
  27772. "unicode": "e67d",
  27773. "unicode_decimal": 59005
  27774. }, {
  27775. "icon_id": "24879606",
  27776. "name": "micoff",
  27777. "font_class": "micoff",
  27778. "unicode": "e67e",
  27779. "unicode_decimal": 59006
  27780. }, {
  27781. "icon_id": "24879588",
  27782. "name": "closeempty",
  27783. "font_class": "closeempty",
  27784. "unicode": "e66c",
  27785. "unicode_decimal": 58988
  27786. }, {
  27787. "icon_id": "24879589",
  27788. "name": "clear",
  27789. "font_class": "clear",
  27790. "unicode": "e66d",
  27791. "unicode_decimal": 58989
  27792. }, {
  27793. "icon_id": "24879590",
  27794. "name": "navigate",
  27795. "font_class": "navigate",
  27796. "unicode": "e66e",
  27797. "unicode_decimal": 58990
  27798. }, {
  27799. "icon_id": "24879591",
  27800. "name": "minus",
  27801. "font_class": "minus",
  27802. "unicode": "e66f",
  27803. "unicode_decimal": 58991
  27804. }, {
  27805. "icon_id": "24879592",
  27806. "name": "image",
  27807. "font_class": "image",
  27808. "unicode": "e670",
  27809. "unicode_decimal": 58992
  27810. }, {
  27811. "icon_id": "24879593",
  27812. "name": "mic",
  27813. "font_class": "mic",
  27814. "unicode": "e671",
  27815. "unicode_decimal": 58993
  27816. }, {
  27817. "icon_id": "24879594",
  27818. "name": "paperplane",
  27819. "font_class": "paperplane",
  27820. "unicode": "e672",
  27821. "unicode_decimal": 58994
  27822. }, {
  27823. "icon_id": "24879595",
  27824. "name": "close",
  27825. "font_class": "close",
  27826. "unicode": "e673",
  27827. "unicode_decimal": 58995
  27828. }, {
  27829. "icon_id": "24879596",
  27830. "name": "help-filled",
  27831. "font_class": "help-filled",
  27832. "unicode": "e674",
  27833. "unicode_decimal": 58996
  27834. }, {
  27835. "icon_id": "24879597",
  27836. "name": "plus-filled",
  27837. "font_class": "paperplane-filled",
  27838. "unicode": "e675",
  27839. "unicode_decimal": 58997
  27840. }, {
  27841. "icon_id": "24879598",
  27842. "name": "plus",
  27843. "font_class": "plus",
  27844. "unicode": "e676",
  27845. "unicode_decimal": 58998
  27846. }, {
  27847. "icon_id": "24879599",
  27848. "name": "mic-filled",
  27849. "font_class": "mic-filled",
  27850. "unicode": "e677",
  27851. "unicode_decimal": 58999
  27852. }, {
  27853. "icon_id": "24879600",
  27854. "name": "image-filled",
  27855. "font_class": "image-filled",
  27856. "unicode": "e678",
  27857. "unicode_decimal": 59000
  27858. }, {
  27859. "icon_id": "24855900",
  27860. "name": "locked-filled",
  27861. "font_class": "locked-filled",
  27862. "unicode": "e668",
  27863. "unicode_decimal": 58984
  27864. }, {
  27865. "icon_id": "24855901",
  27866. "name": "info",
  27867. "font_class": "info",
  27868. "unicode": "e669",
  27869. "unicode_decimal": 58985
  27870. }, {
  27871. "icon_id": "24855903",
  27872. "name": "locked",
  27873. "font_class": "locked",
  27874. "unicode": "e66b",
  27875. "unicode_decimal": 58987
  27876. }, {
  27877. "icon_id": "24855884",
  27878. "name": "camera-filled",
  27879. "font_class": "camera-filled",
  27880. "unicode": "e658",
  27881. "unicode_decimal": 58968
  27882. }, {
  27883. "icon_id": "24855885",
  27884. "name": "chat-filled",
  27885. "font_class": "chat-filled",
  27886. "unicode": "e659",
  27887. "unicode_decimal": 58969
  27888. }, {
  27889. "icon_id": "24855886",
  27890. "name": "camera",
  27891. "font_class": "camera",
  27892. "unicode": "e65a",
  27893. "unicode_decimal": 58970
  27894. }, {
  27895. "icon_id": "24855887",
  27896. "name": "circle",
  27897. "font_class": "circle",
  27898. "unicode": "e65b",
  27899. "unicode_decimal": 58971
  27900. }, {
  27901. "icon_id": "24855888",
  27902. "name": "checkmarkempty",
  27903. "font_class": "checkmarkempty",
  27904. "unicode": "e65c",
  27905. "unicode_decimal": 58972
  27906. }, {
  27907. "icon_id": "24855889",
  27908. "name": "chat",
  27909. "font_class": "chat",
  27910. "unicode": "e65d",
  27911. "unicode_decimal": 58973
  27912. }, {
  27913. "icon_id": "24855890",
  27914. "name": "circle-filled",
  27915. "font_class": "circle-filled",
  27916. "unicode": "e65e",
  27917. "unicode_decimal": 58974
  27918. }, {
  27919. "icon_id": "24855891",
  27920. "name": "flag",
  27921. "font_class": "flag",
  27922. "unicode": "e65f",
  27923. "unicode_decimal": 58975
  27924. }, {
  27925. "icon_id": "24855892",
  27926. "name": "flag-filled",
  27927. "font_class": "flag-filled",
  27928. "unicode": "e660",
  27929. "unicode_decimal": 58976
  27930. }, {
  27931. "icon_id": "24855893",
  27932. "name": "gear-filled",
  27933. "font_class": "gear-filled",
  27934. "unicode": "e661",
  27935. "unicode_decimal": 58977
  27936. }, {
  27937. "icon_id": "24855894",
  27938. "name": "home",
  27939. "font_class": "home",
  27940. "unicode": "e662",
  27941. "unicode_decimal": 58978
  27942. }, {
  27943. "icon_id": "24855895",
  27944. "name": "home-filled",
  27945. "font_class": "home-filled",
  27946. "unicode": "e663",
  27947. "unicode_decimal": 58979
  27948. }, {
  27949. "icon_id": "24855896",
  27950. "name": "gear",
  27951. "font_class": "gear",
  27952. "unicode": "e664",
  27953. "unicode_decimal": 58980
  27954. }, {
  27955. "icon_id": "24855897",
  27956. "name": "smallcircle-filled",
  27957. "font_class": "smallcircle-filled",
  27958. "unicode": "e665",
  27959. "unicode_decimal": 58981
  27960. }, {
  27961. "icon_id": "24855898",
  27962. "name": "map-filled",
  27963. "font_class": "map-filled",
  27964. "unicode": "e666",
  27965. "unicode_decimal": 58982
  27966. }, {
  27967. "icon_id": "24855899",
  27968. "name": "map",
  27969. "font_class": "map",
  27970. "unicode": "e667",
  27971. "unicode_decimal": 58983
  27972. }, {
  27973. "icon_id": "24855825",
  27974. "name": "refresh-filled",
  27975. "font_class": "refresh-filled",
  27976. "unicode": "e656",
  27977. "unicode_decimal": 58966
  27978. }, {
  27979. "icon_id": "24855826",
  27980. "name": "refresh",
  27981. "font_class": "refresh",
  27982. "unicode": "e657",
  27983. "unicode_decimal": 58967
  27984. }, {
  27985. "icon_id": "24855808",
  27986. "name": "cloud-upload",
  27987. "font_class": "cloud-upload",
  27988. "unicode": "e645",
  27989. "unicode_decimal": 58949
  27990. }, {
  27991. "icon_id": "24855809",
  27992. "name": "cloud-download-filled",
  27993. "font_class": "cloud-download-filled",
  27994. "unicode": "e646",
  27995. "unicode_decimal": 58950
  27996. }, {
  27997. "icon_id": "24855810",
  27998. "name": "cloud-download",
  27999. "font_class": "cloud-download",
  28000. "unicode": "e647",
  28001. "unicode_decimal": 58951
  28002. }, {
  28003. "icon_id": "24855811",
  28004. "name": "cloud-upload-filled",
  28005. "font_class": "cloud-upload-filled",
  28006. "unicode": "e648",
  28007. "unicode_decimal": 58952
  28008. }, {
  28009. "icon_id": "24855813",
  28010. "name": "redo",
  28011. "font_class": "redo",
  28012. "unicode": "e64a",
  28013. "unicode_decimal": 58954
  28014. }, {
  28015. "icon_id": "24855814",
  28016. "name": "images-filled",
  28017. "font_class": "images-filled",
  28018. "unicode": "e64b",
  28019. "unicode_decimal": 58955
  28020. }, {
  28021. "icon_id": "24855815",
  28022. "name": "undo-filled",
  28023. "font_class": "undo-filled",
  28024. "unicode": "e64c",
  28025. "unicode_decimal": 58956
  28026. }, {
  28027. "icon_id": "24855816",
  28028. "name": "more",
  28029. "font_class": "more",
  28030. "unicode": "e64d",
  28031. "unicode_decimal": 58957
  28032. }, {
  28033. "icon_id": "24855817",
  28034. "name": "more-filled",
  28035. "font_class": "more-filled",
  28036. "unicode": "e64e",
  28037. "unicode_decimal": 58958
  28038. }, {
  28039. "icon_id": "24855818",
  28040. "name": "undo",
  28041. "font_class": "undo",
  28042. "unicode": "e64f",
  28043. "unicode_decimal": 58959
  28044. }, {
  28045. "icon_id": "24855819",
  28046. "name": "images",
  28047. "font_class": "images",
  28048. "unicode": "e650",
  28049. "unicode_decimal": 58960
  28050. }, {
  28051. "icon_id": "24855821",
  28052. "name": "paperclip",
  28053. "font_class": "paperclip",
  28054. "unicode": "e652",
  28055. "unicode_decimal": 58962
  28056. }, {
  28057. "icon_id": "24855822",
  28058. "name": "settings",
  28059. "font_class": "settings",
  28060. "unicode": "e653",
  28061. "unicode_decimal": 58963
  28062. }, {
  28063. "icon_id": "24855823",
  28064. "name": "search",
  28065. "font_class": "search",
  28066. "unicode": "e654",
  28067. "unicode_decimal": 58964
  28068. }, {
  28069. "icon_id": "24855824",
  28070. "name": "redo-filled",
  28071. "font_class": "redo-filled",
  28072. "unicode": "e655",
  28073. "unicode_decimal": 58965
  28074. }, {
  28075. "icon_id": "24841702",
  28076. "name": "list",
  28077. "font_class": "list",
  28078. "unicode": "e644",
  28079. "unicode_decimal": 58948
  28080. }, {
  28081. "icon_id": "24841489",
  28082. "name": "mail-open-filled",
  28083. "font_class": "mail-open-filled",
  28084. "unicode": "e63a",
  28085. "unicode_decimal": 58938
  28086. }, {
  28087. "icon_id": "24841491",
  28088. "name": "hand-thumbsdown-filled",
  28089. "font_class": "hand-down-filled",
  28090. "unicode": "e63c",
  28091. "unicode_decimal": 58940
  28092. }, {
  28093. "icon_id": "24841492",
  28094. "name": "hand-thumbsdown",
  28095. "font_class": "hand-down",
  28096. "unicode": "e63d",
  28097. "unicode_decimal": 58941
  28098. }, {
  28099. "icon_id": "24841493",
  28100. "name": "hand-thumbsup-filled",
  28101. "font_class": "hand-up-filled",
  28102. "unicode": "e63e",
  28103. "unicode_decimal": 58942
  28104. }, {
  28105. "icon_id": "24841494",
  28106. "name": "hand-thumbsup",
  28107. "font_class": "hand-up",
  28108. "unicode": "e63f",
  28109. "unicode_decimal": 58943
  28110. }, {
  28111. "icon_id": "24841496",
  28112. "name": "heart-filled",
  28113. "font_class": "heart-filled",
  28114. "unicode": "e641",
  28115. "unicode_decimal": 58945
  28116. }, {
  28117. "icon_id": "24841498",
  28118. "name": "mail-open",
  28119. "font_class": "mail-open",
  28120. "unicode": "e643",
  28121. "unicode_decimal": 58947
  28122. }, {
  28123. "icon_id": "24841488",
  28124. "name": "heart",
  28125. "font_class": "heart",
  28126. "unicode": "e639",
  28127. "unicode_decimal": 58937
  28128. }, {
  28129. "icon_id": "24839963",
  28130. "name": "loop",
  28131. "font_class": "loop",
  28132. "unicode": "e633",
  28133. "unicode_decimal": 58931
  28134. }, {
  28135. "icon_id": "24839866",
  28136. "name": "pulldown",
  28137. "font_class": "pulldown",
  28138. "unicode": "e632",
  28139. "unicode_decimal": 58930
  28140. }, {
  28141. "icon_id": "24813798",
  28142. "name": "scan",
  28143. "font_class": "scan",
  28144. "unicode": "e62a",
  28145. "unicode_decimal": 58922
  28146. }, {
  28147. "icon_id": "24813786",
  28148. "name": "bars",
  28149. "font_class": "bars",
  28150. "unicode": "e627",
  28151. "unicode_decimal": 58919
  28152. }, {
  28153. "icon_id": "24813788",
  28154. "name": "cart-filled",
  28155. "font_class": "cart-filled",
  28156. "unicode": "e629",
  28157. "unicode_decimal": 58921
  28158. }, {
  28159. "icon_id": "24813790",
  28160. "name": "checkbox",
  28161. "font_class": "checkbox",
  28162. "unicode": "e62b",
  28163. "unicode_decimal": 58923
  28164. }, {
  28165. "icon_id": "24813791",
  28166. "name": "checkbox-filled",
  28167. "font_class": "checkbox-filled",
  28168. "unicode": "e62c",
  28169. "unicode_decimal": 58924
  28170. }, {
  28171. "icon_id": "24813794",
  28172. "name": "shop",
  28173. "font_class": "shop",
  28174. "unicode": "e62f",
  28175. "unicode_decimal": 58927
  28176. }, {
  28177. "icon_id": "24813795",
  28178. "name": "headphones",
  28179. "font_class": "headphones",
  28180. "unicode": "e630",
  28181. "unicode_decimal": 58928
  28182. }, {
  28183. "icon_id": "24813796",
  28184. "name": "cart",
  28185. "font_class": "cart",
  28186. "unicode": "e631",
  28187. "unicode_decimal": 58929
  28188. }]
  28189. };
  28190. exports.default = _default;
  28191. /***/ }),
  28192. /***/ 64:
  28193. /*!**************************************!*\
  28194. !*** ./node_modules/qs/lib/index.js ***!
  28195. \**************************************/
  28196. /*! no static exports found */
  28197. /***/ (function(module, exports, __webpack_require__) {
  28198. "use strict";
  28199. var stringify = __webpack_require__(/*! ./stringify */ 65);
  28200. var parse = __webpack_require__(/*! ./parse */ 79);
  28201. var formats = __webpack_require__(/*! ./formats */ 78);
  28202. module.exports = {
  28203. formats: formats,
  28204. parse: parse,
  28205. stringify: stringify
  28206. };
  28207. /***/ }),
  28208. /***/ 65:
  28209. /*!******************************************!*\
  28210. !*** ./node_modules/qs/lib/stringify.js ***!
  28211. \******************************************/
  28212. /*! no static exports found */
  28213. /***/ (function(module, exports, __webpack_require__) {
  28214. "use strict";
  28215. var getSideChannel = __webpack_require__(/*! side-channel */ 66);
  28216. var utils = __webpack_require__(/*! ./utils */ 77);
  28217. var formats = __webpack_require__(/*! ./formats */ 78);
  28218. var has = Object.prototype.hasOwnProperty;
  28219. var arrayPrefixGenerators = {
  28220. brackets: function brackets(prefix) {
  28221. return prefix + '[]';
  28222. },
  28223. comma: 'comma',
  28224. indices: function indices(prefix, key) {
  28225. return prefix + '[' + key + ']';
  28226. },
  28227. repeat: function repeat(prefix) {
  28228. return prefix;
  28229. }
  28230. };
  28231. var isArray = Array.isArray;
  28232. var split = String.prototype.split;
  28233. var push = Array.prototype.push;
  28234. var pushToArray = function (arr, valueOrArray) {
  28235. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  28236. };
  28237. var toISO = Date.prototype.toISOString;
  28238. var defaultFormat = formats['default'];
  28239. var defaults = {
  28240. addQueryPrefix: false,
  28241. allowDots: false,
  28242. charset: 'utf-8',
  28243. charsetSentinel: false,
  28244. delimiter: '&',
  28245. encode: true,
  28246. encoder: utils.encode,
  28247. encodeValuesOnly: false,
  28248. format: defaultFormat,
  28249. formatter: formats.formatters[defaultFormat],
  28250. // deprecated
  28251. indices: false,
  28252. serializeDate: function serializeDate(date) {
  28253. return toISO.call(date);
  28254. },
  28255. skipNulls: false,
  28256. strictNullHandling: false
  28257. };
  28258. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  28259. return typeof v === 'string'
  28260. || typeof v === 'number'
  28261. || typeof v === 'boolean'
  28262. || typeof v === 'symbol'
  28263. || typeof v === 'bigint';
  28264. };
  28265. var sentinel = {};
  28266. var stringify = function stringify(
  28267. object,
  28268. prefix,
  28269. generateArrayPrefix,
  28270. commaRoundTrip,
  28271. strictNullHandling,
  28272. skipNulls,
  28273. encoder,
  28274. filter,
  28275. sort,
  28276. allowDots,
  28277. serializeDate,
  28278. format,
  28279. formatter,
  28280. encodeValuesOnly,
  28281. charset,
  28282. sideChannel
  28283. ) {
  28284. var obj = object;
  28285. var tmpSc = sideChannel;
  28286. var step = 0;
  28287. var findFlag = false;
  28288. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  28289. // Where object last appeared in the ref tree
  28290. var pos = tmpSc.get(object);
  28291. step += 1;
  28292. if (typeof pos !== 'undefined') {
  28293. if (pos === step) {
  28294. throw new RangeError('Cyclic object value');
  28295. } else {
  28296. findFlag = true; // Break while
  28297. }
  28298. }
  28299. if (typeof tmpSc.get(sentinel) === 'undefined') {
  28300. step = 0;
  28301. }
  28302. }
  28303. if (typeof filter === 'function') {
  28304. obj = filter(prefix, obj);
  28305. } else if (obj instanceof Date) {
  28306. obj = serializeDate(obj);
  28307. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  28308. obj = utils.maybeMap(obj, function (value) {
  28309. if (value instanceof Date) {
  28310. return serializeDate(value);
  28311. }
  28312. return value;
  28313. });
  28314. }
  28315. if (obj === null) {
  28316. if (strictNullHandling) {
  28317. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  28318. }
  28319. obj = '';
  28320. }
  28321. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  28322. if (encoder) {
  28323. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  28324. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  28325. var valuesArray = split.call(String(obj), ',');
  28326. var valuesJoined = '';
  28327. for (var i = 0; i < valuesArray.length; ++i) {
  28328. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  28329. }
  28330. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
  28331. }
  28332. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  28333. }
  28334. return [formatter(prefix) + '=' + formatter(String(obj))];
  28335. }
  28336. var values = [];
  28337. if (typeof obj === 'undefined') {
  28338. return values;
  28339. }
  28340. var objKeys;
  28341. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  28342. // we need to join elements in
  28343. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  28344. } else if (isArray(filter)) {
  28345. objKeys = filter;
  28346. } else {
  28347. var keys = Object.keys(obj);
  28348. objKeys = sort ? keys.sort(sort) : keys;
  28349. }
  28350. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
  28351. for (var j = 0; j < objKeys.length; ++j) {
  28352. var key = objKeys[j];
  28353. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  28354. if (skipNulls && value === null) {
  28355. continue;
  28356. }
  28357. var keyPrefix = isArray(obj)
  28358. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
  28359. : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
  28360. sideChannel.set(object, step);
  28361. var valueSideChannel = getSideChannel();
  28362. valueSideChannel.set(sentinel, sideChannel);
  28363. pushToArray(values, stringify(
  28364. value,
  28365. keyPrefix,
  28366. generateArrayPrefix,
  28367. commaRoundTrip,
  28368. strictNullHandling,
  28369. skipNulls,
  28370. encoder,
  28371. filter,
  28372. sort,
  28373. allowDots,
  28374. serializeDate,
  28375. format,
  28376. formatter,
  28377. encodeValuesOnly,
  28378. charset,
  28379. valueSideChannel
  28380. ));
  28381. }
  28382. return values;
  28383. };
  28384. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  28385. if (!opts) {
  28386. return defaults;
  28387. }
  28388. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  28389. throw new TypeError('Encoder has to be a function.');
  28390. }
  28391. var charset = opts.charset || defaults.charset;
  28392. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  28393. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  28394. }
  28395. var format = formats['default'];
  28396. if (typeof opts.format !== 'undefined') {
  28397. if (!has.call(formats.formatters, opts.format)) {
  28398. throw new TypeError('Unknown format option provided.');
  28399. }
  28400. format = opts.format;
  28401. }
  28402. var formatter = formats.formatters[format];
  28403. var filter = defaults.filter;
  28404. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  28405. filter = opts.filter;
  28406. }
  28407. return {
  28408. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  28409. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  28410. charset: charset,
  28411. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  28412. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  28413. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  28414. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  28415. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  28416. filter: filter,
  28417. format: format,
  28418. formatter: formatter,
  28419. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  28420. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  28421. sort: typeof opts.sort === 'function' ? opts.sort : null,
  28422. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  28423. };
  28424. };
  28425. module.exports = function (object, opts) {
  28426. var obj = object;
  28427. var options = normalizeStringifyOptions(opts);
  28428. var objKeys;
  28429. var filter;
  28430. if (typeof options.filter === 'function') {
  28431. filter = options.filter;
  28432. obj = filter('', obj);
  28433. } else if (isArray(options.filter)) {
  28434. filter = options.filter;
  28435. objKeys = filter;
  28436. }
  28437. var keys = [];
  28438. if (typeof obj !== 'object' || obj === null) {
  28439. return '';
  28440. }
  28441. var arrayFormat;
  28442. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  28443. arrayFormat = opts.arrayFormat;
  28444. } else if (opts && 'indices' in opts) {
  28445. arrayFormat = opts.indices ? 'indices' : 'repeat';
  28446. } else {
  28447. arrayFormat = 'indices';
  28448. }
  28449. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  28450. if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
  28451. throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
  28452. }
  28453. var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
  28454. if (!objKeys) {
  28455. objKeys = Object.keys(obj);
  28456. }
  28457. if (options.sort) {
  28458. objKeys.sort(options.sort);
  28459. }
  28460. var sideChannel = getSideChannel();
  28461. for (var i = 0; i < objKeys.length; ++i) {
  28462. var key = objKeys[i];
  28463. if (options.skipNulls && obj[key] === null) {
  28464. continue;
  28465. }
  28466. pushToArray(keys, stringify(
  28467. obj[key],
  28468. key,
  28469. generateArrayPrefix,
  28470. commaRoundTrip,
  28471. options.strictNullHandling,
  28472. options.skipNulls,
  28473. options.encode ? options.encoder : null,
  28474. options.filter,
  28475. options.sort,
  28476. options.allowDots,
  28477. options.serializeDate,
  28478. options.format,
  28479. options.formatter,
  28480. options.encodeValuesOnly,
  28481. options.charset,
  28482. sideChannel
  28483. ));
  28484. }
  28485. var joined = keys.join(options.delimiter);
  28486. var prefix = options.addQueryPrefix === true ? '?' : '';
  28487. if (options.charsetSentinel) {
  28488. if (options.charset === 'iso-8859-1') {
  28489. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  28490. prefix += 'utf8=%26%2310003%3B&';
  28491. } else {
  28492. // encodeURIComponent('✓')
  28493. prefix += 'utf8=%E2%9C%93&';
  28494. }
  28495. }
  28496. return joined.length > 0 ? prefix + joined : '';
  28497. };
  28498. /***/ }),
  28499. /***/ 66:
  28500. /*!********************************************!*\
  28501. !*** ./node_modules/side-channel/index.js ***!
  28502. \********************************************/
  28503. /*! no static exports found */
  28504. /***/ (function(module, exports, __webpack_require__) {
  28505. "use strict";
  28506. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 67);
  28507. var callBound = __webpack_require__(/*! call-bind/callBound */ 73);
  28508. var inspect = __webpack_require__(/*! object-inspect */ 75);
  28509. var $TypeError = GetIntrinsic('%TypeError%');
  28510. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  28511. var $Map = GetIntrinsic('%Map%', true);
  28512. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  28513. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  28514. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  28515. var $mapGet = callBound('Map.prototype.get', true);
  28516. var $mapSet = callBound('Map.prototype.set', true);
  28517. var $mapHas = callBound('Map.prototype.has', true);
  28518. /*
  28519. * This function traverses the list returning the node corresponding to the
  28520. * given key.
  28521. *
  28522. * That node is also moved to the head of the list, so that if it's accessed
  28523. * again we don't need to traverse the whole list. By doing so, all the recently
  28524. * used nodes can be accessed relatively quickly.
  28525. */
  28526. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  28527. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  28528. if (curr.key === key) {
  28529. prev.next = curr.next;
  28530. curr.next = list.next;
  28531. list.next = curr; // eslint-disable-line no-param-reassign
  28532. return curr;
  28533. }
  28534. }
  28535. };
  28536. var listGet = function (objects, key) {
  28537. var node = listGetNode(objects, key);
  28538. return node && node.value;
  28539. };
  28540. var listSet = function (objects, key, value) {
  28541. var node = listGetNode(objects, key);
  28542. if (node) {
  28543. node.value = value;
  28544. } else {
  28545. // Prepend the new node to the beginning of the list
  28546. objects.next = { // eslint-disable-line no-param-reassign
  28547. key: key,
  28548. next: objects.next,
  28549. value: value
  28550. };
  28551. }
  28552. };
  28553. var listHas = function (objects, key) {
  28554. return !!listGetNode(objects, key);
  28555. };
  28556. module.exports = function getSideChannel() {
  28557. var $wm;
  28558. var $m;
  28559. var $o;
  28560. var channel = {
  28561. assert: function (key) {
  28562. if (!channel.has(key)) {
  28563. throw new $TypeError('Side channel does not contain ' + inspect(key));
  28564. }
  28565. },
  28566. get: function (key) { // eslint-disable-line consistent-return
  28567. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  28568. if ($wm) {
  28569. return $weakMapGet($wm, key);
  28570. }
  28571. } else if ($Map) {
  28572. if ($m) {
  28573. return $mapGet($m, key);
  28574. }
  28575. } else {
  28576. if ($o) { // eslint-disable-line no-lonely-if
  28577. return listGet($o, key);
  28578. }
  28579. }
  28580. },
  28581. has: function (key) {
  28582. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  28583. if ($wm) {
  28584. return $weakMapHas($wm, key);
  28585. }
  28586. } else if ($Map) {
  28587. if ($m) {
  28588. return $mapHas($m, key);
  28589. }
  28590. } else {
  28591. if ($o) { // eslint-disable-line no-lonely-if
  28592. return listHas($o, key);
  28593. }
  28594. }
  28595. return false;
  28596. },
  28597. set: function (key, value) {
  28598. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  28599. if (!$wm) {
  28600. $wm = new $WeakMap();
  28601. }
  28602. $weakMapSet($wm, key, value);
  28603. } else if ($Map) {
  28604. if (!$m) {
  28605. $m = new $Map();
  28606. }
  28607. $mapSet($m, key, value);
  28608. } else {
  28609. if (!$o) {
  28610. /*
  28611. * Initialize the linked list as an empty node, so that we don't have
  28612. * to special-case handling of the first node: we can always refer to
  28613. * it as (previous node).next, instead of something like (list).head
  28614. */
  28615. $o = { key: {}, next: null };
  28616. }
  28617. listSet($o, key, value);
  28618. }
  28619. }
  28620. };
  28621. return channel;
  28622. };
  28623. /***/ }),
  28624. /***/ 667:
  28625. /*!**********************************************************************************************!*\
  28626. !*** D:/project/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js ***!
  28627. \**********************************************************************************************/
  28628. /*! no static exports found */
  28629. /***/ (function(module, exports, __webpack_require__) {
  28630. "use strict";
  28631. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28632. Object.defineProperty(exports, "__esModule", {
  28633. value: true
  28634. });
  28635. exports.default = void 0;
  28636. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 668));
  28637. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 669));
  28638. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 670));
  28639. var _default = {
  28640. en: _en.default,
  28641. 'zh-Hans': _zhHans.default,
  28642. 'zh-Hant': _zhHant.default
  28643. };
  28644. exports.default = _default;
  28645. /***/ }),
  28646. /***/ 668:
  28647. /*!*********************************************************************************************!*\
  28648. !*** D:/project/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json ***!
  28649. \*********************************************************************************************/
  28650. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  28651. /***/ (function(module) {
  28652. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"Pull up to show more\",\"uni-load-more.contentrefresh\":\"loading...\",\"uni-load-more.contentnomore\":\"No more data\"}");
  28653. /***/ }),
  28654. /***/ 669:
  28655. /*!**************************************************************************************************!*\
  28656. !*** D:/project/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json ***!
  28657. \**************************************************************************************************/
  28658. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  28659. /***/ (function(module) {
  28660. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉显示更多\",\"uni-load-more.contentrefresh\":\"正在加载...\",\"uni-load-more.contentnomore\":\"没有更多数据了\"}");
  28661. /***/ }),
  28662. /***/ 67:
  28663. /*!*********************************************!*\
  28664. !*** ./node_modules/get-intrinsic/index.js ***!
  28665. \*********************************************/
  28666. /*! no static exports found */
  28667. /***/ (function(module, exports, __webpack_require__) {
  28668. "use strict";
  28669. var undefined;
  28670. var $SyntaxError = SyntaxError;
  28671. var $Function = Function;
  28672. var $TypeError = TypeError;
  28673. // eslint-disable-next-line consistent-return
  28674. var getEvalledConstructor = function (expressionSyntax) {
  28675. try {
  28676. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  28677. } catch (e) {}
  28678. };
  28679. var $gOPD = Object.getOwnPropertyDescriptor;
  28680. if ($gOPD) {
  28681. try {
  28682. $gOPD({}, '');
  28683. } catch (e) {
  28684. $gOPD = null; // this is IE 8, which has a broken gOPD
  28685. }
  28686. }
  28687. var throwTypeError = function () {
  28688. throw new $TypeError();
  28689. };
  28690. var ThrowTypeError = $gOPD
  28691. ? (function () {
  28692. try {
  28693. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  28694. arguments.callee; // IE 8 does not throw here
  28695. return throwTypeError;
  28696. } catch (calleeThrows) {
  28697. try {
  28698. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  28699. return $gOPD(arguments, 'callee').get;
  28700. } catch (gOPDthrows) {
  28701. return throwTypeError;
  28702. }
  28703. }
  28704. }())
  28705. : throwTypeError;
  28706. var hasSymbols = __webpack_require__(/*! has-symbols */ 68)();
  28707. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  28708. var needsEval = {};
  28709. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  28710. var INTRINSICS = {
  28711. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  28712. '%Array%': Array,
  28713. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  28714. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  28715. '%AsyncFromSyncIteratorPrototype%': undefined,
  28716. '%AsyncFunction%': needsEval,
  28717. '%AsyncGenerator%': needsEval,
  28718. '%AsyncGeneratorFunction%': needsEval,
  28719. '%AsyncIteratorPrototype%': needsEval,
  28720. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  28721. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  28722. '%Boolean%': Boolean,
  28723. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  28724. '%Date%': Date,
  28725. '%decodeURI%': decodeURI,
  28726. '%decodeURIComponent%': decodeURIComponent,
  28727. '%encodeURI%': encodeURI,
  28728. '%encodeURIComponent%': encodeURIComponent,
  28729. '%Error%': Error,
  28730. '%eval%': eval, // eslint-disable-line no-eval
  28731. '%EvalError%': EvalError,
  28732. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  28733. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  28734. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  28735. '%Function%': $Function,
  28736. '%GeneratorFunction%': needsEval,
  28737. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  28738. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  28739. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  28740. '%isFinite%': isFinite,
  28741. '%isNaN%': isNaN,
  28742. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  28743. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  28744. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  28745. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  28746. '%Math%': Math,
  28747. '%Number%': Number,
  28748. '%Object%': Object,
  28749. '%parseFloat%': parseFloat,
  28750. '%parseInt%': parseInt,
  28751. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  28752. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  28753. '%RangeError%': RangeError,
  28754. '%ReferenceError%': ReferenceError,
  28755. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  28756. '%RegExp%': RegExp,
  28757. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  28758. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  28759. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  28760. '%String%': String,
  28761. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  28762. '%Symbol%': hasSymbols ? Symbol : undefined,
  28763. '%SyntaxError%': $SyntaxError,
  28764. '%ThrowTypeError%': ThrowTypeError,
  28765. '%TypedArray%': TypedArray,
  28766. '%TypeError%': $TypeError,
  28767. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  28768. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  28769. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  28770. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  28771. '%URIError%': URIError,
  28772. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  28773. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  28774. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  28775. };
  28776. var doEval = function doEval(name) {
  28777. var value;
  28778. if (name === '%AsyncFunction%') {
  28779. value = getEvalledConstructor('async function () {}');
  28780. } else if (name === '%GeneratorFunction%') {
  28781. value = getEvalledConstructor('function* () {}');
  28782. } else if (name === '%AsyncGeneratorFunction%') {
  28783. value = getEvalledConstructor('async function* () {}');
  28784. } else if (name === '%AsyncGenerator%') {
  28785. var fn = doEval('%AsyncGeneratorFunction%');
  28786. if (fn) {
  28787. value = fn.prototype;
  28788. }
  28789. } else if (name === '%AsyncIteratorPrototype%') {
  28790. var gen = doEval('%AsyncGenerator%');
  28791. if (gen) {
  28792. value = getProto(gen.prototype);
  28793. }
  28794. }
  28795. INTRINSICS[name] = value;
  28796. return value;
  28797. };
  28798. var LEGACY_ALIASES = {
  28799. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  28800. '%ArrayPrototype%': ['Array', 'prototype'],
  28801. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  28802. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  28803. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  28804. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  28805. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  28806. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  28807. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  28808. '%BooleanPrototype%': ['Boolean', 'prototype'],
  28809. '%DataViewPrototype%': ['DataView', 'prototype'],
  28810. '%DatePrototype%': ['Date', 'prototype'],
  28811. '%ErrorPrototype%': ['Error', 'prototype'],
  28812. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  28813. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  28814. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  28815. '%FunctionPrototype%': ['Function', 'prototype'],
  28816. '%Generator%': ['GeneratorFunction', 'prototype'],
  28817. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  28818. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  28819. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  28820. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  28821. '%JSONParse%': ['JSON', 'parse'],
  28822. '%JSONStringify%': ['JSON', 'stringify'],
  28823. '%MapPrototype%': ['Map', 'prototype'],
  28824. '%NumberPrototype%': ['Number', 'prototype'],
  28825. '%ObjectPrototype%': ['Object', 'prototype'],
  28826. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  28827. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  28828. '%PromisePrototype%': ['Promise', 'prototype'],
  28829. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  28830. '%Promise_all%': ['Promise', 'all'],
  28831. '%Promise_reject%': ['Promise', 'reject'],
  28832. '%Promise_resolve%': ['Promise', 'resolve'],
  28833. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  28834. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  28835. '%RegExpPrototype%': ['RegExp', 'prototype'],
  28836. '%SetPrototype%': ['Set', 'prototype'],
  28837. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  28838. '%StringPrototype%': ['String', 'prototype'],
  28839. '%SymbolPrototype%': ['Symbol', 'prototype'],
  28840. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  28841. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  28842. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  28843. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  28844. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  28845. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  28846. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  28847. '%URIErrorPrototype%': ['URIError', 'prototype'],
  28848. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  28849. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  28850. };
  28851. var bind = __webpack_require__(/*! function-bind */ 70);
  28852. var hasOwn = __webpack_require__(/*! has */ 72);
  28853. var $concat = bind.call(Function.call, Array.prototype.concat);
  28854. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  28855. var $replace = bind.call(Function.call, String.prototype.replace);
  28856. var $strSlice = bind.call(Function.call, String.prototype.slice);
  28857. var $exec = bind.call(Function.call, RegExp.prototype.exec);
  28858. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  28859. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  28860. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  28861. var stringToPath = function stringToPath(string) {
  28862. var first = $strSlice(string, 0, 1);
  28863. var last = $strSlice(string, -1);
  28864. if (first === '%' && last !== '%') {
  28865. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  28866. } else if (last === '%' && first !== '%') {
  28867. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  28868. }
  28869. var result = [];
  28870. $replace(string, rePropName, function (match, number, quote, subString) {
  28871. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  28872. });
  28873. return result;
  28874. };
  28875. /* end adaptation */
  28876. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  28877. var intrinsicName = name;
  28878. var alias;
  28879. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  28880. alias = LEGACY_ALIASES[intrinsicName];
  28881. intrinsicName = '%' + alias[0] + '%';
  28882. }
  28883. if (hasOwn(INTRINSICS, intrinsicName)) {
  28884. var value = INTRINSICS[intrinsicName];
  28885. if (value === needsEval) {
  28886. value = doEval(intrinsicName);
  28887. }
  28888. if (typeof value === 'undefined' && !allowMissing) {
  28889. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  28890. }
  28891. return {
  28892. alias: alias,
  28893. name: intrinsicName,
  28894. value: value
  28895. };
  28896. }
  28897. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  28898. };
  28899. module.exports = function GetIntrinsic(name, allowMissing) {
  28900. if (typeof name !== 'string' || name.length === 0) {
  28901. throw new $TypeError('intrinsic name must be a non-empty string');
  28902. }
  28903. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  28904. throw new $TypeError('"allowMissing" argument must be a boolean');
  28905. }
  28906. if ($exec(/^%?[^%]*%?$/, name) === null) {
  28907. throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
  28908. }
  28909. var parts = stringToPath(name);
  28910. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  28911. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  28912. var intrinsicRealName = intrinsic.name;
  28913. var value = intrinsic.value;
  28914. var skipFurtherCaching = false;
  28915. var alias = intrinsic.alias;
  28916. if (alias) {
  28917. intrinsicBaseName = alias[0];
  28918. $spliceApply(parts, $concat([0, 1], alias));
  28919. }
  28920. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  28921. var part = parts[i];
  28922. var first = $strSlice(part, 0, 1);
  28923. var last = $strSlice(part, -1);
  28924. if (
  28925. (
  28926. (first === '"' || first === "'" || first === '`')
  28927. || (last === '"' || last === "'" || last === '`')
  28928. )
  28929. && first !== last
  28930. ) {
  28931. throw new $SyntaxError('property names with quotes must have matching quotes');
  28932. }
  28933. if (part === 'constructor' || !isOwn) {
  28934. skipFurtherCaching = true;
  28935. }
  28936. intrinsicBaseName += '.' + part;
  28937. intrinsicRealName = '%' + intrinsicBaseName + '%';
  28938. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  28939. value = INTRINSICS[intrinsicRealName];
  28940. } else if (value != null) {
  28941. if (!(part in value)) {
  28942. if (!allowMissing) {
  28943. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  28944. }
  28945. return void undefined;
  28946. }
  28947. if ($gOPD && (i + 1) >= parts.length) {
  28948. var desc = $gOPD(value, part);
  28949. isOwn = !!desc;
  28950. // By convention, when a data property is converted to an accessor
  28951. // property to emulate a data property that does not suffer from
  28952. // the override mistake, that accessor's getter is marked with
  28953. // an `originalValue` property. Here, when we detect this, we
  28954. // uphold the illusion by pretending to see that original data
  28955. // property, i.e., returning the value rather than the getter
  28956. // itself.
  28957. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  28958. value = desc.get;
  28959. } else {
  28960. value = value[part];
  28961. }
  28962. } else {
  28963. isOwn = hasOwn(value, part);
  28964. value = value[part];
  28965. }
  28966. if (isOwn && !skipFurtherCaching) {
  28967. INTRINSICS[intrinsicRealName] = value;
  28968. }
  28969. }
  28970. }
  28971. return value;
  28972. };
  28973. /***/ }),
  28974. /***/ 670:
  28975. /*!**************************************************************************************************!*\
  28976. !*** D:/project/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json ***!
  28977. \**************************************************************************************************/
  28978. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  28979. /***/ (function(module) {
  28980. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉顯示更多\",\"uni-load-more.contentrefresh\":\"正在加載...\",\"uni-load-more.contentnomore\":\"沒有更多數據了\"}");
  28981. /***/ }),
  28982. /***/ 673:
  28983. /*!******************************************************************************!*\
  28984. !*** D:/project/product_wx/wxcomponents/weapp/dist/datetime-picker/index.js ***!
  28985. \******************************************************************************/
  28986. /*! no static exports found */
  28987. /***/ (function(module, exports, __webpack_require__) {
  28988. "use strict";
  28989. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28990. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  28991. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  28992. var _component = __webpack_require__(/*! ../common/component */ 423);
  28993. var _validator = __webpack_require__(/*! ../common/validator */ 429);
  28994. var _shared = __webpack_require__(/*! ../picker/shared */ 593);
  28995. var currentYear = new Date().getFullYear();
  28996. function isValidDate(date) {
  28997. return (0, _validator.isDef)(date) && !isNaN(new Date(date).getTime());
  28998. }
  28999. function range(num, min, max) {
  29000. return Math.min(Math.max(num, min), max);
  29001. }
  29002. function padZero(val) {
  29003. return "00".concat(val).slice(-2);
  29004. }
  29005. function times(n, iteratee) {
  29006. var index = -1;
  29007. var result = Array(n < 0 ? 0 : n);
  29008. while (++index < n) {
  29009. result[index] = iteratee(index);
  29010. }
  29011. return result;
  29012. }
  29013. function getTrueValue(formattedValue) {
  29014. if (formattedValue === undefined) {
  29015. formattedValue = '1';
  29016. }
  29017. while (isNaN(parseInt(formattedValue, 10))) {
  29018. formattedValue = formattedValue.slice(1);
  29019. }
  29020. return parseInt(formattedValue, 10);
  29021. }
  29022. function getMonthEndDay(year, month) {
  29023. return 32 - new Date(year, month - 1, 32).getDate();
  29024. }
  29025. var defaultFormatter = function defaultFormatter(type, value) {
  29026. return value;
  29027. };
  29028. (0, _component.VantComponent)({
  29029. classes: ['active-class', 'toolbar-class', 'column-class'],
  29030. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  29031. value: {
  29032. type: null,
  29033. observer: 'updateValue'
  29034. },
  29035. filter: null,
  29036. type: {
  29037. type: String,
  29038. value: 'datetime',
  29039. observer: 'updateValue'
  29040. },
  29041. showToolbar: {
  29042. type: Boolean,
  29043. value: true
  29044. },
  29045. formatter: {
  29046. type: null,
  29047. value: defaultFormatter
  29048. },
  29049. minDate: {
  29050. type: Number,
  29051. value: new Date(currentYear - 10, 0, 1).getTime(),
  29052. observer: 'updateValue'
  29053. },
  29054. maxDate: {
  29055. type: Number,
  29056. value: new Date(currentYear + 10, 11, 31).getTime(),
  29057. observer: 'updateValue'
  29058. },
  29059. minHour: {
  29060. type: Number,
  29061. value: 0,
  29062. observer: 'updateValue'
  29063. },
  29064. maxHour: {
  29065. type: Number,
  29066. value: 23,
  29067. observer: 'updateValue'
  29068. },
  29069. minMinute: {
  29070. type: Number,
  29071. value: 0,
  29072. observer: 'updateValue'
  29073. },
  29074. maxMinute: {
  29075. type: Number,
  29076. value: 59,
  29077. observer: 'updateValue'
  29078. }
  29079. }),
  29080. data: {
  29081. innerValue: Date.now(),
  29082. columns: []
  29083. },
  29084. methods: {
  29085. updateValue: function updateValue() {
  29086. var _this = this;
  29087. var data = this.data;
  29088. var val = this.correctValue(data.value);
  29089. var isEqual = val === data.innerValue;
  29090. this.updateColumnValue(val).then(function () {
  29091. if (!isEqual) {
  29092. _this.$emit('input', val);
  29093. }
  29094. });
  29095. },
  29096. getPicker: function getPicker() {
  29097. if (this.picker == null) {
  29098. this.picker = this.selectComponent('.van-datetime-picker');
  29099. var picker = this.picker;
  29100. var setColumnValues = picker.setColumnValues;
  29101. picker.setColumnValues = function () {
  29102. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  29103. args[_key] = arguments[_key];
  29104. }
  29105. return setColumnValues.apply(picker, [].concat(args, [false]));
  29106. };
  29107. }
  29108. return this.picker;
  29109. },
  29110. updateColumns: function updateColumns() {
  29111. var _this$data$formatter = this.data.formatter,
  29112. formatter = _this$data$formatter === void 0 ? defaultFormatter : _this$data$formatter;
  29113. var results = this.getOriginColumns().map(function (column) {
  29114. return {
  29115. values: column.values.map(function (value) {
  29116. return formatter(column.type, value);
  29117. })
  29118. };
  29119. });
  29120. return this.set({
  29121. columns: results
  29122. });
  29123. },
  29124. getOriginColumns: function getOriginColumns() {
  29125. var filter = this.data.filter;
  29126. var results = this.getRanges().map(function (_ref) {
  29127. var type = _ref.type,
  29128. range = _ref.range;
  29129. var values = times(range[1] - range[0] + 1, function (index) {
  29130. var value = range[0] + index;
  29131. return type === 'year' ? "".concat(value) : padZero(value);
  29132. });
  29133. if (filter) {
  29134. values = filter(type, values);
  29135. }
  29136. return {
  29137. type: type,
  29138. values: values
  29139. };
  29140. });
  29141. return results;
  29142. },
  29143. getRanges: function getRanges() {
  29144. var data = this.data;
  29145. if (data.type === 'time') {
  29146. return [{
  29147. type: 'hour',
  29148. range: [data.minHour, data.maxHour]
  29149. }, {
  29150. type: 'minute',
  29151. range: [data.minMinute, data.maxMinute]
  29152. }];
  29153. }
  29154. var _this$getBoundary = this.getBoundary('max', data.innerValue),
  29155. maxYear = _this$getBoundary.maxYear,
  29156. maxDate = _this$getBoundary.maxDate,
  29157. maxMonth = _this$getBoundary.maxMonth,
  29158. maxHour = _this$getBoundary.maxHour,
  29159. maxMinute = _this$getBoundary.maxMinute;
  29160. var _this$getBoundary2 = this.getBoundary('min', data.innerValue),
  29161. minYear = _this$getBoundary2.minYear,
  29162. minDate = _this$getBoundary2.minDate,
  29163. minMonth = _this$getBoundary2.minMonth,
  29164. minHour = _this$getBoundary2.minHour,
  29165. minMinute = _this$getBoundary2.minMinute;
  29166. var result = [{
  29167. type: 'year',
  29168. range: [minYear, maxYear]
  29169. }, {
  29170. type: 'month',
  29171. range: [minMonth, maxMonth]
  29172. }, {
  29173. type: 'day',
  29174. range: [minDate, maxDate]
  29175. }, {
  29176. type: 'hour',
  29177. range: [minHour, maxHour]
  29178. }, {
  29179. type: 'minute',
  29180. range: [minMinute, maxMinute]
  29181. }];
  29182. if (data.type === 'date') result.splice(3, 2);
  29183. if (data.type === 'year-month') result.splice(2, 3);
  29184. return result;
  29185. },
  29186. correctValue: function correctValue(value) {
  29187. var data = this.data;
  29188. // validate value
  29189. var isDateType = data.type !== 'time';
  29190. if (isDateType && !isValidDate(value)) {
  29191. value = data.minDate;
  29192. } else if (!isDateType && !value) {
  29193. var minHour = data.minHour;
  29194. value = "".concat(padZero(minHour), ":00");
  29195. }
  29196. // time type
  29197. if (!isDateType) {
  29198. var _value$split = value.split(':'),
  29199. _value$split2 = (0, _slicedToArray2.default)(_value$split, 2),
  29200. hour = _value$split2[0],
  29201. minute = _value$split2[1];
  29202. hour = padZero(range(hour, data.minHour, data.maxHour));
  29203. minute = padZero(range(minute, data.minMinute, data.maxMinute));
  29204. return "".concat(hour, ":").concat(minute);
  29205. }
  29206. // date type
  29207. value = Math.max(value, data.minDate);
  29208. value = Math.min(value, data.maxDate);
  29209. return value;
  29210. },
  29211. getBoundary: function getBoundary(type, innerValue) {
  29212. var _ref2;
  29213. var value = new Date(innerValue);
  29214. var boundary = new Date(this.data["".concat(type, "Date")]);
  29215. var year = boundary.getFullYear();
  29216. var month = 1;
  29217. var date = 1;
  29218. var hour = 0;
  29219. var minute = 0;
  29220. if (type === 'max') {
  29221. month = 12;
  29222. date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
  29223. hour = 23;
  29224. minute = 59;
  29225. }
  29226. if (value.getFullYear() === year) {
  29227. month = boundary.getMonth() + 1;
  29228. if (value.getMonth() + 1 === month) {
  29229. date = boundary.getDate();
  29230. if (value.getDate() === date) {
  29231. hour = boundary.getHours();
  29232. if (value.getHours() === hour) {
  29233. minute = boundary.getMinutes();
  29234. }
  29235. }
  29236. }
  29237. }
  29238. return _ref2 = {}, (0, _defineProperty2.default)(_ref2, "".concat(type, "Year"), year), (0, _defineProperty2.default)(_ref2, "".concat(type, "Month"), month), (0, _defineProperty2.default)(_ref2, "".concat(type, "Date"), date), (0, _defineProperty2.default)(_ref2, "".concat(type, "Hour"), hour), (0, _defineProperty2.default)(_ref2, "".concat(type, "Minute"), minute), _ref2;
  29239. },
  29240. onCancel: function onCancel() {
  29241. this.$emit('cancel');
  29242. },
  29243. onConfirm: function onConfirm() {
  29244. this.$emit('confirm', this.data.innerValue);
  29245. },
  29246. onChange: function onChange() {
  29247. var _this2 = this;
  29248. var data = this.data;
  29249. var value;
  29250. var picker = this.getPicker();
  29251. var originColumns = this.getOriginColumns();
  29252. if (data.type === 'time') {
  29253. var indexes = picker.getIndexes();
  29254. value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1].values[indexes[1]]);
  29255. } else {
  29256. var _indexes = picker.getIndexes();
  29257. var values = _indexes.map(function (value, index) {
  29258. return originColumns[index].values[value];
  29259. });
  29260. var year = getTrueValue(values[0]);
  29261. var month = getTrueValue(values[1]);
  29262. var maxDate = getMonthEndDay(year, month);
  29263. var date = getTrueValue(values[2]);
  29264. if (data.type === 'year-month') {
  29265. date = 1;
  29266. }
  29267. date = date > maxDate ? maxDate : date;
  29268. var hour = 0;
  29269. var minute = 0;
  29270. if (data.type === 'datetime') {
  29271. hour = getTrueValue(values[3]);
  29272. minute = getTrueValue(values[4]);
  29273. }
  29274. value = new Date(year, month - 1, date, hour, minute);
  29275. }
  29276. value = this.correctValue(value);
  29277. this.updateColumnValue(value).then(function () {
  29278. _this2.$emit('input', value);
  29279. _this2.$emit('change', picker);
  29280. });
  29281. },
  29282. updateColumnValue: function updateColumnValue(value) {
  29283. var _this3 = this;
  29284. var values = [];
  29285. var type = this.data.type;
  29286. var formatter = this.data.formatter || defaultFormatter;
  29287. var picker = this.getPicker();
  29288. if (type === 'time') {
  29289. var pair = value.split(':');
  29290. values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
  29291. } else {
  29292. var date = new Date(value);
  29293. values = [formatter('year', "".concat(date.getFullYear())), formatter('month', padZero(date.getMonth() + 1))];
  29294. if (type === 'date') {
  29295. values.push(formatter('day', padZero(date.getDate())));
  29296. }
  29297. if (type === 'datetime') {
  29298. values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
  29299. }
  29300. }
  29301. return this.set({
  29302. innerValue: value
  29303. }).then(function () {
  29304. return _this3.updateColumns();
  29305. }).then(function () {
  29306. return picker.setValues(values);
  29307. });
  29308. }
  29309. },
  29310. created: function created() {
  29311. var _this4 = this;
  29312. var innerValue = this.correctValue(this.data.value);
  29313. this.updateColumnValue(innerValue).then(function () {
  29314. _this4.$emit('input', innerValue);
  29315. });
  29316. }
  29317. });
  29318. /***/ }),
  29319. /***/ 674:
  29320. /*!*********************************************************************!*\
  29321. !*** D:/project/product_wx/wxcomponents/weapp/dist/button/index.js ***!
  29322. \*********************************************************************/
  29323. /*! no static exports found */
  29324. /***/ (function(module, exports, __webpack_require__) {
  29325. "use strict";
  29326. /* WEBPACK VAR INJECTION */(function(wx) {
  29327. var _component = __webpack_require__(/*! ../common/component */ 423);
  29328. var _button = __webpack_require__(/*! ../mixins/button */ 675);
  29329. var _version = __webpack_require__(/*! ../common/version */ 422);
  29330. var mixins = [_button.button];
  29331. if ((0, _version.canIUseFormFieldButton)()) {
  29332. mixins.push('wx://form-field-button');
  29333. }
  29334. (0, _component.VantComponent)({
  29335. mixins: mixins,
  29336. classes: ['hover-class', 'loading-class'],
  29337. data: {
  29338. baseStyle: ''
  29339. },
  29340. props: {
  29341. formType: String,
  29342. icon: String,
  29343. classPrefix: {
  29344. type: String,
  29345. value: 'van-icon'
  29346. },
  29347. plain: Boolean,
  29348. block: Boolean,
  29349. round: Boolean,
  29350. square: Boolean,
  29351. loading: Boolean,
  29352. hairline: Boolean,
  29353. disabled: Boolean,
  29354. loadingText: String,
  29355. customStyle: String,
  29356. loadingType: {
  29357. type: String,
  29358. value: 'circular'
  29359. },
  29360. type: {
  29361. type: String,
  29362. value: 'default'
  29363. },
  29364. dataset: null,
  29365. size: {
  29366. type: String,
  29367. value: 'normal'
  29368. },
  29369. loadingSize: {
  29370. type: String,
  29371. value: '20px'
  29372. },
  29373. color: String
  29374. },
  29375. methods: {
  29376. onClick: function onClick(event) {
  29377. var _this = this;
  29378. this.$emit('click', event);
  29379. var _this$data = this.data,
  29380. canIUseGetUserProfile = _this$data.canIUseGetUserProfile,
  29381. openType = _this$data.openType,
  29382. getUserProfileDesc = _this$data.getUserProfileDesc,
  29383. lang = _this$data.lang;
  29384. if (openType === 'getUserInfo' && canIUseGetUserProfile) {
  29385. wx.getUserProfile({
  29386. desc: getUserProfileDesc || ' ',
  29387. lang: lang || 'en',
  29388. complete: function complete(userProfile) {
  29389. _this.$emit('getuserinfo', userProfile);
  29390. }
  29391. });
  29392. }
  29393. }
  29394. }
  29395. });
  29396. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  29397. /***/ }),
  29398. /***/ 675:
  29399. /*!**********************************************************************!*\
  29400. !*** D:/project/product_wx/wxcomponents/weapp/dist/mixins/button.js ***!
  29401. \**********************************************************************/
  29402. /*! no static exports found */
  29403. /***/ (function(module, exports, __webpack_require__) {
  29404. "use strict";
  29405. Object.defineProperty(exports, "__esModule", {
  29406. value: true
  29407. });
  29408. exports.button = void 0;
  29409. var _version = __webpack_require__(/*! ../common/version */ 422);
  29410. var button = Behavior({
  29411. externalClasses: ['hover-class'],
  29412. properties: {
  29413. id: String,
  29414. lang: String,
  29415. businessId: Number,
  29416. sessionFrom: String,
  29417. sendMessageTitle: String,
  29418. sendMessagePath: String,
  29419. sendMessageImg: String,
  29420. showMessageCard: Boolean,
  29421. appParameter: String,
  29422. ariaLabel: String,
  29423. openType: String,
  29424. getUserProfileDesc: String
  29425. },
  29426. data: {
  29427. canIUseGetUserProfile: (0, _version.canIUseGetUserProfile)()
  29428. },
  29429. methods: {
  29430. onGetUserInfo: function onGetUserInfo(event) {
  29431. this.triggerEvent('getuserinfo', event.detail);
  29432. },
  29433. onContact: function onContact(event) {
  29434. this.triggerEvent('contact', event.detail);
  29435. },
  29436. onGetPhoneNumber: function onGetPhoneNumber(event) {
  29437. this.triggerEvent('getphonenumber', event.detail);
  29438. },
  29439. onError: function onError(event) {
  29440. this.triggerEvent('error', event.detail);
  29441. },
  29442. onLaunchApp: function onLaunchApp(event) {
  29443. this.triggerEvent('launchapp', event.detail);
  29444. },
  29445. onOpenSetting: function onOpenSetting(event) {
  29446. this.triggerEvent('opensetting', event.detail);
  29447. },
  29448. onChooseAvatar: function onChooseAvatar(event) {
  29449. this.triggerEvent('chooseavatar', event.detail);
  29450. }
  29451. }
  29452. });
  29453. exports.button = button;
  29454. /***/ }),
  29455. /***/ 676:
  29456. /*!**********************************************************************!*\
  29457. !*** D:/project/product_wx/wxcomponents/weapp/dist/divider/index.js ***!
  29458. \**********************************************************************/
  29459. /*! no static exports found */
  29460. /***/ (function(module, exports, __webpack_require__) {
  29461. "use strict";
  29462. var _component = __webpack_require__(/*! ../common/component */ 423);
  29463. (0, _component.VantComponent)({
  29464. props: {
  29465. dashed: Boolean,
  29466. hairline: Boolean,
  29467. contentPosition: String,
  29468. fontSize: String,
  29469. borderColor: String,
  29470. textColor: String,
  29471. customStyle: String
  29472. }
  29473. });
  29474. /***/ }),
  29475. /***/ 68:
  29476. /*!*******************************************!*\
  29477. !*** ./node_modules/has-symbols/index.js ***!
  29478. \*******************************************/
  29479. /*! no static exports found */
  29480. /***/ (function(module, exports, __webpack_require__) {
  29481. "use strict";
  29482. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  29483. var hasSymbolSham = __webpack_require__(/*! ./shams */ 69);
  29484. module.exports = function hasNativeSymbols() {
  29485. if (typeof origSymbol !== 'function') { return false; }
  29486. if (typeof Symbol !== 'function') { return false; }
  29487. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  29488. if (typeof Symbol('bar') !== 'symbol') { return false; }
  29489. return hasSymbolSham();
  29490. };
  29491. /***/ }),
  29492. /***/ 69:
  29493. /*!*******************************************!*\
  29494. !*** ./node_modules/has-symbols/shams.js ***!
  29495. \*******************************************/
  29496. /*! no static exports found */
  29497. /***/ (function(module, exports, __webpack_require__) {
  29498. "use strict";
  29499. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  29500. module.exports = function hasSymbols() {
  29501. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  29502. if (typeof Symbol.iterator === 'symbol') { return true; }
  29503. var obj = {};
  29504. var sym = Symbol('test');
  29505. var symObj = Object(sym);
  29506. if (typeof sym === 'string') { return false; }
  29507. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  29508. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  29509. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  29510. // if (sym instanceof Symbol) { return false; }
  29511. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  29512. // if (!(symObj instanceof Symbol)) { return false; }
  29513. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  29514. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  29515. var symVal = 42;
  29516. obj[sym] = symVal;
  29517. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  29518. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  29519. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  29520. var syms = Object.getOwnPropertySymbols(obj);
  29521. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  29522. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  29523. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  29524. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  29525. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  29526. }
  29527. return true;
  29528. };
  29529. /***/ }),
  29530. /***/ 7:
  29531. /*!*********************************************************************!*\
  29532. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  29533. \*********************************************************************/
  29534. /*! no static exports found */
  29535. /***/ (function(module, exports) {
  29536. function _iterableToArrayLimit(arr, i) {
  29537. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  29538. if (null != _i) {
  29539. var _s,
  29540. _e,
  29541. _x,
  29542. _r,
  29543. _arr = [],
  29544. _n = !0,
  29545. _d = !1;
  29546. try {
  29547. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  29548. if (Object(_i) !== _i) return;
  29549. _n = !1;
  29550. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  29551. ;
  29552. }
  29553. } catch (err) {
  29554. _d = !0, _e = err;
  29555. } finally {
  29556. try {
  29557. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  29558. } finally {
  29559. if (_d) throw _e;
  29560. }
  29561. }
  29562. return _arr;
  29563. }
  29564. }
  29565. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29566. /***/ }),
  29567. /***/ 70:
  29568. /*!*********************************************!*\
  29569. !*** ./node_modules/function-bind/index.js ***!
  29570. \*********************************************/
  29571. /*! no static exports found */
  29572. /***/ (function(module, exports, __webpack_require__) {
  29573. "use strict";
  29574. var implementation = __webpack_require__(/*! ./implementation */ 71);
  29575. module.exports = Function.prototype.bind || implementation;
  29576. /***/ }),
  29577. /***/ 71:
  29578. /*!******************************************************!*\
  29579. !*** ./node_modules/function-bind/implementation.js ***!
  29580. \******************************************************/
  29581. /*! no static exports found */
  29582. /***/ (function(module, exports, __webpack_require__) {
  29583. "use strict";
  29584. /* eslint no-invalid-this: 1 */
  29585. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  29586. var slice = Array.prototype.slice;
  29587. var toStr = Object.prototype.toString;
  29588. var funcType = '[object Function]';
  29589. module.exports = function bind(that) {
  29590. var target = this;
  29591. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  29592. throw new TypeError(ERROR_MESSAGE + target);
  29593. }
  29594. var args = slice.call(arguments, 1);
  29595. var bound;
  29596. var binder = function () {
  29597. if (this instanceof bound) {
  29598. var result = target.apply(
  29599. this,
  29600. args.concat(slice.call(arguments))
  29601. );
  29602. if (Object(result) === result) {
  29603. return result;
  29604. }
  29605. return this;
  29606. } else {
  29607. return target.apply(
  29608. that,
  29609. args.concat(slice.call(arguments))
  29610. );
  29611. }
  29612. };
  29613. var boundLength = Math.max(0, target.length - args.length);
  29614. var boundArgs = [];
  29615. for (var i = 0; i < boundLength; i++) {
  29616. boundArgs.push('$' + i);
  29617. }
  29618. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  29619. if (target.prototype) {
  29620. var Empty = function Empty() {};
  29621. Empty.prototype = target.prototype;
  29622. bound.prototype = new Empty();
  29623. Empty.prototype = null;
  29624. }
  29625. return bound;
  29626. };
  29627. /***/ }),
  29628. /***/ 72:
  29629. /*!***************************************!*\
  29630. !*** ./node_modules/has/src/index.js ***!
  29631. \***************************************/
  29632. /*! no static exports found */
  29633. /***/ (function(module, exports, __webpack_require__) {
  29634. "use strict";
  29635. var bind = __webpack_require__(/*! function-bind */ 70);
  29636. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  29637. /***/ }),
  29638. /***/ 73:
  29639. /*!*********************************************!*\
  29640. !*** ./node_modules/call-bind/callBound.js ***!
  29641. \*********************************************/
  29642. /*! no static exports found */
  29643. /***/ (function(module, exports, __webpack_require__) {
  29644. "use strict";
  29645. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 67);
  29646. var callBind = __webpack_require__(/*! ./ */ 74);
  29647. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  29648. module.exports = function callBoundIntrinsic(name, allowMissing) {
  29649. var intrinsic = GetIntrinsic(name, !!allowMissing);
  29650. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  29651. return callBind(intrinsic);
  29652. }
  29653. return intrinsic;
  29654. };
  29655. /***/ }),
  29656. /***/ 74:
  29657. /*!*****************************************!*\
  29658. !*** ./node_modules/call-bind/index.js ***!
  29659. \*****************************************/
  29660. /*! no static exports found */
  29661. /***/ (function(module, exports, __webpack_require__) {
  29662. "use strict";
  29663. var bind = __webpack_require__(/*! function-bind */ 70);
  29664. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 67);
  29665. var $apply = GetIntrinsic('%Function.prototype.apply%');
  29666. var $call = GetIntrinsic('%Function.prototype.call%');
  29667. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  29668. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  29669. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  29670. var $max = GetIntrinsic('%Math.max%');
  29671. if ($defineProperty) {
  29672. try {
  29673. $defineProperty({}, 'a', { value: 1 });
  29674. } catch (e) {
  29675. // IE 8 has a broken defineProperty
  29676. $defineProperty = null;
  29677. }
  29678. }
  29679. module.exports = function callBind(originalFunction) {
  29680. var func = $reflectApply(bind, $call, arguments);
  29681. if ($gOPD && $defineProperty) {
  29682. var desc = $gOPD(func, 'length');
  29683. if (desc.configurable) {
  29684. // original length, plus the receiver, minus any additional arguments (after the receiver)
  29685. $defineProperty(
  29686. func,
  29687. 'length',
  29688. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  29689. );
  29690. }
  29691. }
  29692. return func;
  29693. };
  29694. var applyBind = function applyBind() {
  29695. return $reflectApply(bind, $apply, arguments);
  29696. };
  29697. if ($defineProperty) {
  29698. $defineProperty(module.exports, 'apply', { value: applyBind });
  29699. } else {
  29700. module.exports.apply = applyBind;
  29701. }
  29702. /***/ }),
  29703. /***/ 75:
  29704. /*!**********************************************!*\
  29705. !*** ./node_modules/object-inspect/index.js ***!
  29706. \**********************************************/
  29707. /*! no static exports found */
  29708. /***/ (function(module, exports, __webpack_require__) {
  29709. var hasMap = typeof Map === 'function' && Map.prototype;
  29710. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  29711. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  29712. var mapForEach = hasMap && Map.prototype.forEach;
  29713. var hasSet = typeof Set === 'function' && Set.prototype;
  29714. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  29715. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  29716. var setForEach = hasSet && Set.prototype.forEach;
  29717. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  29718. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  29719. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  29720. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  29721. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  29722. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  29723. var booleanValueOf = Boolean.prototype.valueOf;
  29724. var objectToString = Object.prototype.toString;
  29725. var functionToString = Function.prototype.toString;
  29726. var $match = String.prototype.match;
  29727. var $slice = String.prototype.slice;
  29728. var $replace = String.prototype.replace;
  29729. var $toUpperCase = String.prototype.toUpperCase;
  29730. var $toLowerCase = String.prototype.toLowerCase;
  29731. var $test = RegExp.prototype.test;
  29732. var $concat = Array.prototype.concat;
  29733. var $join = Array.prototype.join;
  29734. var $arrSlice = Array.prototype.slice;
  29735. var $floor = Math.floor;
  29736. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  29737. var gOPS = Object.getOwnPropertySymbols;
  29738. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  29739. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  29740. // ie, `has-tostringtag/shams
  29741. var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
  29742. ? Symbol.toStringTag
  29743. : null;
  29744. var isEnumerable = Object.prototype.propertyIsEnumerable;
  29745. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  29746. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  29747. ? function (O) {
  29748. return O.__proto__; // eslint-disable-line no-proto
  29749. }
  29750. : null
  29751. );
  29752. function addNumericSeparator(num, str) {
  29753. if (
  29754. num === Infinity
  29755. || num === -Infinity
  29756. || num !== num
  29757. || (num && num > -1000 && num < 1000)
  29758. || $test.call(/e/, str)
  29759. ) {
  29760. return str;
  29761. }
  29762. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  29763. if (typeof num === 'number') {
  29764. var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
  29765. if (int !== num) {
  29766. var intStr = String(int);
  29767. var dec = $slice.call(str, intStr.length + 1);
  29768. return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
  29769. }
  29770. }
  29771. return $replace.call(str, sepRegex, '$&_');
  29772. }
  29773. var utilInspect = __webpack_require__(/*! ./util.inspect */ 76);
  29774. var inspectCustom = utilInspect.custom;
  29775. var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
  29776. module.exports = function inspect_(obj, options, depth, seen) {
  29777. var opts = options || {};
  29778. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  29779. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  29780. }
  29781. if (
  29782. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  29783. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  29784. : opts.maxStringLength !== null
  29785. )
  29786. ) {
  29787. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  29788. }
  29789. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  29790. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  29791. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  29792. }
  29793. if (
  29794. has(opts, 'indent')
  29795. && opts.indent !== null
  29796. && opts.indent !== '\t'
  29797. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  29798. ) {
  29799. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  29800. }
  29801. if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
  29802. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  29803. }
  29804. var numericSeparator = opts.numericSeparator;
  29805. if (typeof obj === 'undefined') {
  29806. return 'undefined';
  29807. }
  29808. if (obj === null) {
  29809. return 'null';
  29810. }
  29811. if (typeof obj === 'boolean') {
  29812. return obj ? 'true' : 'false';
  29813. }
  29814. if (typeof obj === 'string') {
  29815. return inspectString(obj, opts);
  29816. }
  29817. if (typeof obj === 'number') {
  29818. if (obj === 0) {
  29819. return Infinity / obj > 0 ? '0' : '-0';
  29820. }
  29821. var str = String(obj);
  29822. return numericSeparator ? addNumericSeparator(obj, str) : str;
  29823. }
  29824. if (typeof obj === 'bigint') {
  29825. var bigIntStr = String(obj) + 'n';
  29826. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  29827. }
  29828. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  29829. if (typeof depth === 'undefined') { depth = 0; }
  29830. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  29831. return isArray(obj) ? '[Array]' : '[Object]';
  29832. }
  29833. var indent = getIndent(opts, depth);
  29834. if (typeof seen === 'undefined') {
  29835. seen = [];
  29836. } else if (indexOf(seen, obj) >= 0) {
  29837. return '[Circular]';
  29838. }
  29839. function inspect(value, from, noIndent) {
  29840. if (from) {
  29841. seen = $arrSlice.call(seen);
  29842. seen.push(from);
  29843. }
  29844. if (noIndent) {
  29845. var newOpts = {
  29846. depth: opts.depth
  29847. };
  29848. if (has(opts, 'quoteStyle')) {
  29849. newOpts.quoteStyle = opts.quoteStyle;
  29850. }
  29851. return inspect_(value, newOpts, depth + 1, seen);
  29852. }
  29853. return inspect_(value, opts, depth + 1, seen);
  29854. }
  29855. if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
  29856. var name = nameOf(obj);
  29857. var keys = arrObjKeys(obj, inspect);
  29858. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
  29859. }
  29860. if (isSymbol(obj)) {
  29861. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  29862. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  29863. }
  29864. if (isElement(obj)) {
  29865. var s = '<' + $toLowerCase.call(String(obj.nodeName));
  29866. var attrs = obj.attributes || [];
  29867. for (var i = 0; i < attrs.length; i++) {
  29868. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  29869. }
  29870. s += '>';
  29871. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  29872. s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
  29873. return s;
  29874. }
  29875. if (isArray(obj)) {
  29876. if (obj.length === 0) { return '[]'; }
  29877. var xs = arrObjKeys(obj, inspect);
  29878. if (indent && !singleLineValues(xs)) {
  29879. return '[' + indentedJoin(xs, indent) + ']';
  29880. }
  29881. return '[ ' + $join.call(xs, ', ') + ' ]';
  29882. }
  29883. if (isError(obj)) {
  29884. var parts = arrObjKeys(obj, inspect);
  29885. if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
  29886. return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
  29887. }
  29888. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  29889. return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
  29890. }
  29891. if (typeof obj === 'object' && customInspect) {
  29892. if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
  29893. return utilInspect(obj, { depth: maxDepth - depth });
  29894. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  29895. return obj.inspect();
  29896. }
  29897. }
  29898. if (isMap(obj)) {
  29899. var mapParts = [];
  29900. mapForEach.call(obj, function (value, key) {
  29901. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  29902. });
  29903. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  29904. }
  29905. if (isSet(obj)) {
  29906. var setParts = [];
  29907. setForEach.call(obj, function (value) {
  29908. setParts.push(inspect(value, obj));
  29909. });
  29910. return collectionOf('Set', setSize.call(obj), setParts, indent);
  29911. }
  29912. if (isWeakMap(obj)) {
  29913. return weakCollectionOf('WeakMap');
  29914. }
  29915. if (isWeakSet(obj)) {
  29916. return weakCollectionOf('WeakSet');
  29917. }
  29918. if (isWeakRef(obj)) {
  29919. return weakCollectionOf('WeakRef');
  29920. }
  29921. if (isNumber(obj)) {
  29922. return markBoxed(inspect(Number(obj)));
  29923. }
  29924. if (isBigInt(obj)) {
  29925. return markBoxed(inspect(bigIntValueOf.call(obj)));
  29926. }
  29927. if (isBoolean(obj)) {
  29928. return markBoxed(booleanValueOf.call(obj));
  29929. }
  29930. if (isString(obj)) {
  29931. return markBoxed(inspect(String(obj)));
  29932. }
  29933. if (!isDate(obj) && !isRegExp(obj)) {
  29934. var ys = arrObjKeys(obj, inspect);
  29935. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  29936. var protoTag = obj instanceof Object ? '' : 'null prototype';
  29937. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
  29938. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  29939. var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
  29940. if (ys.length === 0) { return tag + '{}'; }
  29941. if (indent) {
  29942. return tag + '{' + indentedJoin(ys, indent) + '}';
  29943. }
  29944. return tag + '{ ' + $join.call(ys, ', ') + ' }';
  29945. }
  29946. return String(obj);
  29947. };
  29948. function wrapQuotes(s, defaultStyle, opts) {
  29949. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  29950. return quoteChar + s + quoteChar;
  29951. }
  29952. function quote(s) {
  29953. return $replace.call(String(s), /"/g, '&quot;');
  29954. }
  29955. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29956. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29957. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29958. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29959. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29960. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29961. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29962. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  29963. function isSymbol(obj) {
  29964. if (hasShammedSymbols) {
  29965. return obj && typeof obj === 'object' && obj instanceof Symbol;
  29966. }
  29967. if (typeof obj === 'symbol') {
  29968. return true;
  29969. }
  29970. if (!obj || typeof obj !== 'object' || !symToString) {
  29971. return false;
  29972. }
  29973. try {
  29974. symToString.call(obj);
  29975. return true;
  29976. } catch (e) {}
  29977. return false;
  29978. }
  29979. function isBigInt(obj) {
  29980. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  29981. return false;
  29982. }
  29983. try {
  29984. bigIntValueOf.call(obj);
  29985. return true;
  29986. } catch (e) {}
  29987. return false;
  29988. }
  29989. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  29990. function has(obj, key) {
  29991. return hasOwn.call(obj, key);
  29992. }
  29993. function toStr(obj) {
  29994. return objectToString.call(obj);
  29995. }
  29996. function nameOf(f) {
  29997. if (f.name) { return f.name; }
  29998. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  29999. if (m) { return m[1]; }
  30000. return null;
  30001. }
  30002. function indexOf(xs, x) {
  30003. if (xs.indexOf) { return xs.indexOf(x); }
  30004. for (var i = 0, l = xs.length; i < l; i++) {
  30005. if (xs[i] === x) { return i; }
  30006. }
  30007. return -1;
  30008. }
  30009. function isMap(x) {
  30010. if (!mapSize || !x || typeof x !== 'object') {
  30011. return false;
  30012. }
  30013. try {
  30014. mapSize.call(x);
  30015. try {
  30016. setSize.call(x);
  30017. } catch (s) {
  30018. return true;
  30019. }
  30020. return x instanceof Map; // core-js workaround, pre-v2.5.0
  30021. } catch (e) {}
  30022. return false;
  30023. }
  30024. function isWeakMap(x) {
  30025. if (!weakMapHas || !x || typeof x !== 'object') {
  30026. return false;
  30027. }
  30028. try {
  30029. weakMapHas.call(x, weakMapHas);
  30030. try {
  30031. weakSetHas.call(x, weakSetHas);
  30032. } catch (s) {
  30033. return true;
  30034. }
  30035. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  30036. } catch (e) {}
  30037. return false;
  30038. }
  30039. function isWeakRef(x) {
  30040. if (!weakRefDeref || !x || typeof x !== 'object') {
  30041. return false;
  30042. }
  30043. try {
  30044. weakRefDeref.call(x);
  30045. return true;
  30046. } catch (e) {}
  30047. return false;
  30048. }
  30049. function isSet(x) {
  30050. if (!setSize || !x || typeof x !== 'object') {
  30051. return false;
  30052. }
  30053. try {
  30054. setSize.call(x);
  30055. try {
  30056. mapSize.call(x);
  30057. } catch (m) {
  30058. return true;
  30059. }
  30060. return x instanceof Set; // core-js workaround, pre-v2.5.0
  30061. } catch (e) {}
  30062. return false;
  30063. }
  30064. function isWeakSet(x) {
  30065. if (!weakSetHas || !x || typeof x !== 'object') {
  30066. return false;
  30067. }
  30068. try {
  30069. weakSetHas.call(x, weakSetHas);
  30070. try {
  30071. weakMapHas.call(x, weakMapHas);
  30072. } catch (s) {
  30073. return true;
  30074. }
  30075. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  30076. } catch (e) {}
  30077. return false;
  30078. }
  30079. function isElement(x) {
  30080. if (!x || typeof x !== 'object') { return false; }
  30081. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  30082. return true;
  30083. }
  30084. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  30085. }
  30086. function inspectString(str, opts) {
  30087. if (str.length > opts.maxStringLength) {
  30088. var remaining = str.length - opts.maxStringLength;
  30089. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  30090. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  30091. }
  30092. // eslint-disable-next-line no-control-regex
  30093. var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
  30094. return wrapQuotes(s, 'single', opts);
  30095. }
  30096. function lowbyte(c) {
  30097. var n = c.charCodeAt(0);
  30098. var x = {
  30099. 8: 'b',
  30100. 9: 't',
  30101. 10: 'n',
  30102. 12: 'f',
  30103. 13: 'r'
  30104. }[n];
  30105. if (x) { return '\\' + x; }
  30106. return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
  30107. }
  30108. function markBoxed(str) {
  30109. return 'Object(' + str + ')';
  30110. }
  30111. function weakCollectionOf(type) {
  30112. return type + ' { ? }';
  30113. }
  30114. function collectionOf(type, size, entries, indent) {
  30115. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
  30116. return type + ' (' + size + ') {' + joinedEntries + '}';
  30117. }
  30118. function singleLineValues(xs) {
  30119. for (var i = 0; i < xs.length; i++) {
  30120. if (indexOf(xs[i], '\n') >= 0) {
  30121. return false;
  30122. }
  30123. }
  30124. return true;
  30125. }
  30126. function getIndent(opts, depth) {
  30127. var baseIndent;
  30128. if (opts.indent === '\t') {
  30129. baseIndent = '\t';
  30130. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  30131. baseIndent = $join.call(Array(opts.indent + 1), ' ');
  30132. } else {
  30133. return null;
  30134. }
  30135. return {
  30136. base: baseIndent,
  30137. prev: $join.call(Array(depth + 1), baseIndent)
  30138. };
  30139. }
  30140. function indentedJoin(xs, indent) {
  30141. if (xs.length === 0) { return ''; }
  30142. var lineJoiner = '\n' + indent.prev + indent.base;
  30143. return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
  30144. }
  30145. function arrObjKeys(obj, inspect) {
  30146. var isArr = isArray(obj);
  30147. var xs = [];
  30148. if (isArr) {
  30149. xs.length = obj.length;
  30150. for (var i = 0; i < obj.length; i++) {
  30151. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  30152. }
  30153. }
  30154. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  30155. var symMap;
  30156. if (hasShammedSymbols) {
  30157. symMap = {};
  30158. for (var k = 0; k < syms.length; k++) {
  30159. symMap['$' + syms[k]] = syms[k];
  30160. }
  30161. }
  30162. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  30163. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  30164. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  30165. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  30166. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  30167. continue; // eslint-disable-line no-restricted-syntax, no-continue
  30168. } else if ($test.call(/[^\w$]/, key)) {
  30169. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  30170. } else {
  30171. xs.push(key + ': ' + inspect(obj[key], obj));
  30172. }
  30173. }
  30174. if (typeof gOPS === 'function') {
  30175. for (var j = 0; j < syms.length; j++) {
  30176. if (isEnumerable.call(obj, syms[j])) {
  30177. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  30178. }
  30179. }
  30180. }
  30181. return xs;
  30182. }
  30183. /***/ }),
  30184. /***/ 76:
  30185. /*!********************************!*\
  30186. !*** ./util.inspect (ignored) ***!
  30187. \********************************/
  30188. /*! no static exports found */
  30189. /***/ (function(module, exports) {
  30190. /* (ignored) */
  30191. /***/ }),
  30192. /***/ 77:
  30193. /*!**************************************!*\
  30194. !*** ./node_modules/qs/lib/utils.js ***!
  30195. \**************************************/
  30196. /*! no static exports found */
  30197. /***/ (function(module, exports, __webpack_require__) {
  30198. "use strict";
  30199. var formats = __webpack_require__(/*! ./formats */ 78);
  30200. var has = Object.prototype.hasOwnProperty;
  30201. var isArray = Array.isArray;
  30202. var hexTable = (function () {
  30203. var array = [];
  30204. for (var i = 0; i < 256; ++i) {
  30205. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  30206. }
  30207. return array;
  30208. }());
  30209. var compactQueue = function compactQueue(queue) {
  30210. while (queue.length > 1) {
  30211. var item = queue.pop();
  30212. var obj = item.obj[item.prop];
  30213. if (isArray(obj)) {
  30214. var compacted = [];
  30215. for (var j = 0; j < obj.length; ++j) {
  30216. if (typeof obj[j] !== 'undefined') {
  30217. compacted.push(obj[j]);
  30218. }
  30219. }
  30220. item.obj[item.prop] = compacted;
  30221. }
  30222. }
  30223. };
  30224. var arrayToObject = function arrayToObject(source, options) {
  30225. var obj = options && options.plainObjects ? Object.create(null) : {};
  30226. for (var i = 0; i < source.length; ++i) {
  30227. if (typeof source[i] !== 'undefined') {
  30228. obj[i] = source[i];
  30229. }
  30230. }
  30231. return obj;
  30232. };
  30233. var merge = function merge(target, source, options) {
  30234. /* eslint no-param-reassign: 0 */
  30235. if (!source) {
  30236. return target;
  30237. }
  30238. if (typeof source !== 'object') {
  30239. if (isArray(target)) {
  30240. target.push(source);
  30241. } else if (target && typeof target === 'object') {
  30242. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  30243. target[source] = true;
  30244. }
  30245. } else {
  30246. return [target, source];
  30247. }
  30248. return target;
  30249. }
  30250. if (!target || typeof target !== 'object') {
  30251. return [target].concat(source);
  30252. }
  30253. var mergeTarget = target;
  30254. if (isArray(target) && !isArray(source)) {
  30255. mergeTarget = arrayToObject(target, options);
  30256. }
  30257. if (isArray(target) && isArray(source)) {
  30258. source.forEach(function (item, i) {
  30259. if (has.call(target, i)) {
  30260. var targetItem = target[i];
  30261. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  30262. target[i] = merge(targetItem, item, options);
  30263. } else {
  30264. target.push(item);
  30265. }
  30266. } else {
  30267. target[i] = item;
  30268. }
  30269. });
  30270. return target;
  30271. }
  30272. return Object.keys(source).reduce(function (acc, key) {
  30273. var value = source[key];
  30274. if (has.call(acc, key)) {
  30275. acc[key] = merge(acc[key], value, options);
  30276. } else {
  30277. acc[key] = value;
  30278. }
  30279. return acc;
  30280. }, mergeTarget);
  30281. };
  30282. var assign = function assignSingleSource(target, source) {
  30283. return Object.keys(source).reduce(function (acc, key) {
  30284. acc[key] = source[key];
  30285. return acc;
  30286. }, target);
  30287. };
  30288. var decode = function (str, decoder, charset) {
  30289. var strWithoutPlus = str.replace(/\+/g, ' ');
  30290. if (charset === 'iso-8859-1') {
  30291. // unescape never throws, no try...catch needed:
  30292. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  30293. }
  30294. // utf-8
  30295. try {
  30296. return decodeURIComponent(strWithoutPlus);
  30297. } catch (e) {
  30298. return strWithoutPlus;
  30299. }
  30300. };
  30301. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  30302. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  30303. // It has been adapted here for stricter adherence to RFC 3986
  30304. if (str.length === 0) {
  30305. return str;
  30306. }
  30307. var string = str;
  30308. if (typeof str === 'symbol') {
  30309. string = Symbol.prototype.toString.call(str);
  30310. } else if (typeof str !== 'string') {
  30311. string = String(str);
  30312. }
  30313. if (charset === 'iso-8859-1') {
  30314. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  30315. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  30316. });
  30317. }
  30318. var out = '';
  30319. for (var i = 0; i < string.length; ++i) {
  30320. var c = string.charCodeAt(i);
  30321. if (
  30322. c === 0x2D // -
  30323. || c === 0x2E // .
  30324. || c === 0x5F // _
  30325. || c === 0x7E // ~
  30326. || (c >= 0x30 && c <= 0x39) // 0-9
  30327. || (c >= 0x41 && c <= 0x5A) // a-z
  30328. || (c >= 0x61 && c <= 0x7A) // A-Z
  30329. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  30330. ) {
  30331. out += string.charAt(i);
  30332. continue;
  30333. }
  30334. if (c < 0x80) {
  30335. out = out + hexTable[c];
  30336. continue;
  30337. }
  30338. if (c < 0x800) {
  30339. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  30340. continue;
  30341. }
  30342. if (c < 0xD800 || c >= 0xE000) {
  30343. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  30344. continue;
  30345. }
  30346. i += 1;
  30347. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  30348. /* eslint operator-linebreak: [2, "before"] */
  30349. out += hexTable[0xF0 | (c >> 18)]
  30350. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  30351. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  30352. + hexTable[0x80 | (c & 0x3F)];
  30353. }
  30354. return out;
  30355. };
  30356. var compact = function compact(value) {
  30357. var queue = [{ obj: { o: value }, prop: 'o' }];
  30358. var refs = [];
  30359. for (var i = 0; i < queue.length; ++i) {
  30360. var item = queue[i];
  30361. var obj = item.obj[item.prop];
  30362. var keys = Object.keys(obj);
  30363. for (var j = 0; j < keys.length; ++j) {
  30364. var key = keys[j];
  30365. var val = obj[key];
  30366. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  30367. queue.push({ obj: obj, prop: key });
  30368. refs.push(val);
  30369. }
  30370. }
  30371. }
  30372. compactQueue(queue);
  30373. return value;
  30374. };
  30375. var isRegExp = function isRegExp(obj) {
  30376. return Object.prototype.toString.call(obj) === '[object RegExp]';
  30377. };
  30378. var isBuffer = function isBuffer(obj) {
  30379. if (!obj || typeof obj !== 'object') {
  30380. return false;
  30381. }
  30382. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  30383. };
  30384. var combine = function combine(a, b) {
  30385. return [].concat(a, b);
  30386. };
  30387. var maybeMap = function maybeMap(val, fn) {
  30388. if (isArray(val)) {
  30389. var mapped = [];
  30390. for (var i = 0; i < val.length; i += 1) {
  30391. mapped.push(fn(val[i]));
  30392. }
  30393. return mapped;
  30394. }
  30395. return fn(val);
  30396. };
  30397. module.exports = {
  30398. arrayToObject: arrayToObject,
  30399. assign: assign,
  30400. combine: combine,
  30401. compact: compact,
  30402. decode: decode,
  30403. encode: encode,
  30404. isBuffer: isBuffer,
  30405. isRegExp: isRegExp,
  30406. maybeMap: maybeMap,
  30407. merge: merge
  30408. };
  30409. /***/ }),
  30410. /***/ 78:
  30411. /*!****************************************!*\
  30412. !*** ./node_modules/qs/lib/formats.js ***!
  30413. \****************************************/
  30414. /*! no static exports found */
  30415. /***/ (function(module, exports, __webpack_require__) {
  30416. "use strict";
  30417. var replace = String.prototype.replace;
  30418. var percentTwenties = /%20/g;
  30419. var Format = {
  30420. RFC1738: 'RFC1738',
  30421. RFC3986: 'RFC3986'
  30422. };
  30423. module.exports = {
  30424. 'default': Format.RFC3986,
  30425. formatters: {
  30426. RFC1738: function (value) {
  30427. return replace.call(value, percentTwenties, '+');
  30428. },
  30429. RFC3986: function (value) {
  30430. return String(value);
  30431. }
  30432. },
  30433. RFC1738: Format.RFC1738,
  30434. RFC3986: Format.RFC3986
  30435. };
  30436. /***/ }),
  30437. /***/ 79:
  30438. /*!**************************************!*\
  30439. !*** ./node_modules/qs/lib/parse.js ***!
  30440. \**************************************/
  30441. /*! no static exports found */
  30442. /***/ (function(module, exports, __webpack_require__) {
  30443. "use strict";
  30444. var utils = __webpack_require__(/*! ./utils */ 77);
  30445. var has = Object.prototype.hasOwnProperty;
  30446. var isArray = Array.isArray;
  30447. var defaults = {
  30448. allowDots: false,
  30449. allowPrototypes: false,
  30450. allowSparse: false,
  30451. arrayLimit: 20,
  30452. charset: 'utf-8',
  30453. charsetSentinel: false,
  30454. comma: false,
  30455. decoder: utils.decode,
  30456. delimiter: '&',
  30457. depth: 5,
  30458. ignoreQueryPrefix: false,
  30459. interpretNumericEntities: false,
  30460. parameterLimit: 1000,
  30461. parseArrays: true,
  30462. plainObjects: false,
  30463. strictNullHandling: false
  30464. };
  30465. var interpretNumericEntities = function (str) {
  30466. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  30467. return String.fromCharCode(parseInt(numberStr, 10));
  30468. });
  30469. };
  30470. var parseArrayValue = function (val, options) {
  30471. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  30472. return val.split(',');
  30473. }
  30474. return val;
  30475. };
  30476. // This is what browsers will submit when the ✓ character occurs in an
  30477. // application/x-www-form-urlencoded body and the encoding of the page containing
  30478. // the form is iso-8859-1, or when the submitted form has an accept-charset
  30479. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  30480. // the ✓ character, such as us-ascii.
  30481. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  30482. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  30483. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  30484. var parseValues = function parseQueryStringValues(str, options) {
  30485. var obj = {};
  30486. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  30487. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  30488. var parts = cleanStr.split(options.delimiter, limit);
  30489. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  30490. var i;
  30491. var charset = options.charset;
  30492. if (options.charsetSentinel) {
  30493. for (i = 0; i < parts.length; ++i) {
  30494. if (parts[i].indexOf('utf8=') === 0) {
  30495. if (parts[i] === charsetSentinel) {
  30496. charset = 'utf-8';
  30497. } else if (parts[i] === isoSentinel) {
  30498. charset = 'iso-8859-1';
  30499. }
  30500. skipIndex = i;
  30501. i = parts.length; // The eslint settings do not allow break;
  30502. }
  30503. }
  30504. }
  30505. for (i = 0; i < parts.length; ++i) {
  30506. if (i === skipIndex) {
  30507. continue;
  30508. }
  30509. var part = parts[i];
  30510. var bracketEqualsPos = part.indexOf(']=');
  30511. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  30512. var key, val;
  30513. if (pos === -1) {
  30514. key = options.decoder(part, defaults.decoder, charset, 'key');
  30515. val = options.strictNullHandling ? null : '';
  30516. } else {
  30517. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  30518. val = utils.maybeMap(
  30519. parseArrayValue(part.slice(pos + 1), options),
  30520. function (encodedVal) {
  30521. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  30522. }
  30523. );
  30524. }
  30525. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  30526. val = interpretNumericEntities(val);
  30527. }
  30528. if (part.indexOf('[]=') > -1) {
  30529. val = isArray(val) ? [val] : val;
  30530. }
  30531. if (has.call(obj, key)) {
  30532. obj[key] = utils.combine(obj[key], val);
  30533. } else {
  30534. obj[key] = val;
  30535. }
  30536. }
  30537. return obj;
  30538. };
  30539. var parseObject = function (chain, val, options, valuesParsed) {
  30540. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  30541. for (var i = chain.length - 1; i >= 0; --i) {
  30542. var obj;
  30543. var root = chain[i];
  30544. if (root === '[]' && options.parseArrays) {
  30545. obj = [].concat(leaf);
  30546. } else {
  30547. obj = options.plainObjects ? Object.create(null) : {};
  30548. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  30549. var index = parseInt(cleanRoot, 10);
  30550. if (!options.parseArrays && cleanRoot === '') {
  30551. obj = { 0: leaf };
  30552. } else if (
  30553. !isNaN(index)
  30554. && root !== cleanRoot
  30555. && String(index) === cleanRoot
  30556. && index >= 0
  30557. && (options.parseArrays && index <= options.arrayLimit)
  30558. ) {
  30559. obj = [];
  30560. obj[index] = leaf;
  30561. } else if (cleanRoot !== '__proto__') {
  30562. obj[cleanRoot] = leaf;
  30563. }
  30564. }
  30565. leaf = obj;
  30566. }
  30567. return leaf;
  30568. };
  30569. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  30570. if (!givenKey) {
  30571. return;
  30572. }
  30573. // Transform dot notation to bracket notation
  30574. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  30575. // The regex chunks
  30576. var brackets = /(\[[^[\]]*])/;
  30577. var child = /(\[[^[\]]*])/g;
  30578. // Get the parent
  30579. var segment = options.depth > 0 && brackets.exec(key);
  30580. var parent = segment ? key.slice(0, segment.index) : key;
  30581. // Stash the parent if it exists
  30582. var keys = [];
  30583. if (parent) {
  30584. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  30585. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  30586. if (!options.allowPrototypes) {
  30587. return;
  30588. }
  30589. }
  30590. keys.push(parent);
  30591. }
  30592. // Loop through children appending to the array until we hit depth
  30593. var i = 0;
  30594. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  30595. i += 1;
  30596. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  30597. if (!options.allowPrototypes) {
  30598. return;
  30599. }
  30600. }
  30601. keys.push(segment[1]);
  30602. }
  30603. // If there's a remainder, just add whatever is left
  30604. if (segment) {
  30605. keys.push('[' + key.slice(segment.index) + ']');
  30606. }
  30607. return parseObject(keys, val, options, valuesParsed);
  30608. };
  30609. var normalizeParseOptions = function normalizeParseOptions(opts) {
  30610. if (!opts) {
  30611. return defaults;
  30612. }
  30613. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  30614. throw new TypeError('Decoder has to be a function.');
  30615. }
  30616. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  30617. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  30618. }
  30619. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  30620. return {
  30621. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  30622. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  30623. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  30624. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  30625. charset: charset,
  30626. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  30627. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  30628. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  30629. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  30630. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  30631. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  30632. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  30633. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  30634. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  30635. parseArrays: opts.parseArrays !== false,
  30636. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  30637. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  30638. };
  30639. };
  30640. module.exports = function (str, opts) {
  30641. var options = normalizeParseOptions(opts);
  30642. if (str === '' || str === null || typeof str === 'undefined') {
  30643. return options.plainObjects ? Object.create(null) : {};
  30644. }
  30645. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  30646. var obj = options.plainObjects ? Object.create(null) : {};
  30647. // Iterate over the keys and setup the new object
  30648. var keys = Object.keys(tempObj);
  30649. for (var i = 0; i < keys.length; ++i) {
  30650. var key = keys[i];
  30651. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  30652. obj = utils.merge(obj, newObj, options);
  30653. }
  30654. if (options.allowSparse === true) {
  30655. return obj;
  30656. }
  30657. return utils.compact(obj);
  30658. };
  30659. /***/ }),
  30660. /***/ 8:
  30661. /*!***************************************************************************!*\
  30662. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  30663. \***************************************************************************/
  30664. /*! no static exports found */
  30665. /***/ (function(module, exports, __webpack_require__) {
  30666. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  30667. function _unsupportedIterableToArray(o, minLen) {
  30668. if (!o) return;
  30669. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  30670. var n = Object.prototype.toString.call(o).slice(8, -1);
  30671. if (n === "Object" && o.constructor) n = o.constructor.name;
  30672. if (n === "Map" || n === "Set") return Array.from(o);
  30673. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  30674. }
  30675. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  30676. /***/ }),
  30677. /***/ 9:
  30678. /*!*****************************************************************!*\
  30679. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  30680. \*****************************************************************/
  30681. /*! no static exports found */
  30682. /***/ (function(module, exports) {
  30683. function _arrayLikeToArray(arr, len) {
  30684. if (len == null || len > arr.length) len = arr.length;
  30685. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  30686. arr2[i] = arr[i];
  30687. }
  30688. return arr2;
  30689. }
  30690. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  30691. /***/ })
  30692. }]);
  30693. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map