vendor.js 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457
  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. /***/ 1015:
  53. /*!****************************************************************************!*\
  54. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/popup/index.js ***!
  55. \****************************************************************************/
  56. /*! no static exports found */
  57. /***/ (function(module, exports, __webpack_require__) {
  58. "use strict";
  59. var _component = __webpack_require__(/*! ../common/component */ 778);
  60. var _transition = __webpack_require__(/*! ../mixins/transition */ 1016);
  61. (0, _component.VantComponent)({
  62. classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class', 'close-icon-class'],
  63. mixins: [(0, _transition.transition)(false)],
  64. props: {
  65. round: Boolean,
  66. closeable: Boolean,
  67. customStyle: String,
  68. overlayStyle: String,
  69. transition: {
  70. type: String,
  71. observer: 'observeClass'
  72. },
  73. zIndex: {
  74. type: Number,
  75. value: 100
  76. },
  77. overlay: {
  78. type: Boolean,
  79. value: true
  80. },
  81. closeIcon: {
  82. type: String,
  83. value: 'cross'
  84. },
  85. closeIconPosition: {
  86. type: String,
  87. value: 'top-right'
  88. },
  89. closeOnClickOverlay: {
  90. type: Boolean,
  91. value: true
  92. },
  93. position: {
  94. type: String,
  95. value: 'center',
  96. observer: 'observeClass'
  97. },
  98. safeAreaInsetBottom: {
  99. type: Boolean,
  100. value: true
  101. },
  102. safeAreaInsetTop: {
  103. type: Boolean,
  104. value: false
  105. },
  106. safeAreaTabBar: {
  107. type: Boolean,
  108. value: false
  109. },
  110. lockScroll: {
  111. type: Boolean,
  112. value: true
  113. },
  114. rootPortal: {
  115. type: Boolean,
  116. value: false
  117. }
  118. },
  119. created: function created() {
  120. this.observeClass();
  121. },
  122. methods: {
  123. onClickCloseIcon: function onClickCloseIcon() {
  124. this.$emit('close');
  125. },
  126. onClickOverlay: function onClickOverlay() {
  127. this.$emit('click-overlay');
  128. if (this.data.closeOnClickOverlay) {
  129. this.$emit('close');
  130. }
  131. },
  132. observeClass: function observeClass() {
  133. var _this$data = this.data,
  134. transition = _this$data.transition,
  135. position = _this$data.position,
  136. duration = _this$data.duration;
  137. var updateData = {
  138. name: transition || position
  139. };
  140. if (transition === 'none') {
  141. updateData.duration = 0;
  142. this.originDuration = duration;
  143. } else if (this.originDuration != null) {
  144. updateData.duration = this.originDuration;
  145. }
  146. this.setData(updateData);
  147. }
  148. }
  149. });
  150. /***/ }),
  151. /***/ 1016:
  152. /*!**********************************************************************************!*\
  153. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/mixins/transition.js ***!
  154. \**********************************************************************************/
  155. /*! no static exports found */
  156. /***/ (function(module, exports, __webpack_require__) {
  157. "use strict";
  158. Object.defineProperty(exports, "__esModule", {
  159. value: true
  160. });
  161. exports.transition = transition;
  162. var _utils = __webpack_require__(/*! ../common/utils */ 783);
  163. var _validator = __webpack_require__(/*! ../common/validator */ 784);
  164. // @ts-nocheck
  165. var getClassNames = function getClassNames(name) {
  166. return {
  167. enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
  168. 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
  169. leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
  170. 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class")
  171. };
  172. };
  173. function transition(showDefaultValue) {
  174. return Behavior({
  175. properties: {
  176. customStyle: String,
  177. // @ts-ignore
  178. show: {
  179. type: Boolean,
  180. value: showDefaultValue,
  181. observer: 'observeShow'
  182. },
  183. // @ts-ignore
  184. duration: {
  185. type: null,
  186. value: 300,
  187. observer: 'observeDuration'
  188. },
  189. name: {
  190. type: String,
  191. value: 'fade'
  192. }
  193. },
  194. data: {
  195. type: '',
  196. inited: false,
  197. display: false
  198. },
  199. ready: function ready() {
  200. if (this.data.show === true) {
  201. this.observeShow(true, false);
  202. }
  203. },
  204. methods: {
  205. observeShow: function observeShow(value, old) {
  206. if (value === old) {
  207. return;
  208. }
  209. value ? this.enter() : this.leave();
  210. },
  211. enter: function enter() {
  212. var _this = this;
  213. var _this$data = this.data,
  214. duration = _this$data.duration,
  215. name = _this$data.name;
  216. var classNames = getClassNames(name);
  217. var currentDuration = (0, _validator.isObj)(duration) ? duration.enter : duration;
  218. if (this.status === 'enter') {
  219. return;
  220. }
  221. this.status = 'enter';
  222. this.$emit('before-enter');
  223. (0, _utils.requestAnimationFrame)(function () {
  224. if (_this.status !== 'enter') {
  225. return;
  226. }
  227. _this.$emit('enter');
  228. _this.setData({
  229. inited: true,
  230. display: true,
  231. classes: classNames.enter,
  232. currentDuration: currentDuration
  233. });
  234. (0, _utils.requestAnimationFrame)(function () {
  235. if (_this.status !== 'enter') {
  236. return;
  237. }
  238. _this.transitionEnded = false;
  239. _this.setData({
  240. classes: classNames['enter-to']
  241. });
  242. });
  243. });
  244. },
  245. leave: function leave() {
  246. var _this2 = this;
  247. if (!this.data.display) {
  248. return;
  249. }
  250. var _this$data2 = this.data,
  251. duration = _this$data2.duration,
  252. name = _this$data2.name;
  253. var classNames = getClassNames(name);
  254. var currentDuration = (0, _validator.isObj)(duration) ? duration.leave : duration;
  255. this.status = 'leave';
  256. this.$emit('before-leave');
  257. (0, _utils.requestAnimationFrame)(function () {
  258. if (_this2.status !== 'leave') {
  259. return;
  260. }
  261. _this2.$emit('leave');
  262. _this2.setData({
  263. classes: classNames.leave,
  264. currentDuration: currentDuration
  265. });
  266. (0, _utils.requestAnimationFrame)(function () {
  267. if (_this2.status !== 'leave') {
  268. return;
  269. }
  270. _this2.transitionEnded = false;
  271. setTimeout(function () {
  272. return _this2.onTransitionEnd();
  273. }, currentDuration);
  274. _this2.setData({
  275. classes: classNames['leave-to']
  276. });
  277. });
  278. });
  279. },
  280. onTransitionEnd: function onTransitionEnd() {
  281. if (this.transitionEnded) {
  282. return;
  283. }
  284. this.transitionEnded = true;
  285. this.$emit("after-".concat(this.status));
  286. var _this$data3 = this.data,
  287. show = _this$data3.show,
  288. display = _this$data3.display;
  289. if (!show && display) {
  290. this.setData({
  291. display: false
  292. });
  293. }
  294. }
  295. }
  296. });
  297. }
  298. /***/ }),
  299. /***/ 1017:
  300. /*!****************************************************************************!*\
  301. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/field/index.js ***!
  302. \****************************************************************************/
  303. /*! no static exports found */
  304. /***/ (function(module, exports, __webpack_require__) {
  305. "use strict";
  306. var _utils = __webpack_require__(/*! ../common/utils */ 783);
  307. var _component = __webpack_require__(/*! ../common/component */ 778);
  308. var _props = __webpack_require__(/*! ./props */ 1018);
  309. (0, _component.VantComponent)({
  310. field: true,
  311. classes: ['input-class', 'right-icon-class', 'label-class'],
  312. props: Object.assign(Object.assign(Object.assign(Object.assign({}, _props.commonProps), _props.inputProps), _props.textareaProps), {
  313. size: String,
  314. icon: String,
  315. label: String,
  316. error: Boolean,
  317. center: Boolean,
  318. isLink: Boolean,
  319. leftIcon: String,
  320. rightIcon: String,
  321. autosize: null,
  322. required: Boolean,
  323. iconClass: String,
  324. clickable: Boolean,
  325. inputAlign: String,
  326. customStyle: String,
  327. errorMessage: String,
  328. arrowDirection: String,
  329. showWordLimit: Boolean,
  330. errorMessageAlign: String,
  331. readonly: {
  332. type: Boolean,
  333. observer: 'setShowClear'
  334. },
  335. clearable: {
  336. type: Boolean,
  337. observer: 'setShowClear'
  338. },
  339. clearTrigger: {
  340. type: String,
  341. value: 'focus'
  342. },
  343. border: {
  344. type: Boolean,
  345. value: true
  346. },
  347. titleWidth: {
  348. type: String,
  349. value: '6.2em'
  350. },
  351. clearIcon: {
  352. type: String,
  353. value: 'clear'
  354. },
  355. extraEventParams: {
  356. type: Boolean,
  357. value: false
  358. }
  359. }),
  360. data: {
  361. focused: false,
  362. innerValue: '',
  363. showClear: false
  364. },
  365. created: function created() {
  366. this.value = this.data.value;
  367. this.setData({
  368. innerValue: this.value
  369. });
  370. },
  371. methods: {
  372. formatValue: function formatValue(value) {
  373. var maxlength = this.data.maxlength;
  374. if (maxlength !== -1 && value.length > maxlength) {
  375. return value.slice(0, maxlength);
  376. }
  377. return value;
  378. },
  379. onInput: function onInput(event) {
  380. var _ref = event.detail || {},
  381. _ref$value = _ref.value,
  382. value = _ref$value === void 0 ? '' : _ref$value;
  383. var formatValue = this.formatValue(value);
  384. this.value = formatValue;
  385. this.setShowClear();
  386. return this.emitChange(Object.assign(Object.assign({}, event.detail), {
  387. value: formatValue
  388. }));
  389. },
  390. onFocus: function onFocus(event) {
  391. this.focused = true;
  392. this.setShowClear();
  393. this.$emit('focus', event.detail);
  394. },
  395. onBlur: function onBlur(event) {
  396. this.focused = false;
  397. this.setShowClear();
  398. this.$emit('blur', event.detail);
  399. },
  400. onClickIcon: function onClickIcon() {
  401. this.$emit('click-icon');
  402. },
  403. onClickInput: function onClickInput(event) {
  404. this.$emit('click-input', event.detail);
  405. },
  406. onClear: function onClear() {
  407. var _this = this;
  408. this.setData({
  409. innerValue: ''
  410. });
  411. this.value = '';
  412. this.setShowClear();
  413. (0, _utils.nextTick)(function () {
  414. _this.emitChange({
  415. value: ''
  416. });
  417. _this.$emit('clear', '');
  418. });
  419. },
  420. onConfirm: function onConfirm(event) {
  421. var _ref2 = event.detail || {},
  422. _ref2$value = _ref2.value,
  423. value = _ref2$value === void 0 ? '' : _ref2$value;
  424. this.value = value;
  425. this.setShowClear();
  426. this.$emit('confirm', value);
  427. },
  428. setValue: function setValue(value) {
  429. this.value = value;
  430. this.setShowClear();
  431. if (value === '') {
  432. this.setData({
  433. innerValue: ''
  434. });
  435. }
  436. this.emitChange({
  437. value: value
  438. });
  439. },
  440. onLineChange: function onLineChange(event) {
  441. this.$emit('linechange', event.detail);
  442. },
  443. onKeyboardHeightChange: function onKeyboardHeightChange(event) {
  444. this.$emit('keyboardheightchange', event.detail);
  445. },
  446. emitChange: function emitChange(detail) {
  447. var extraEventParams = this.data.extraEventParams;
  448. this.setData({
  449. value: detail.value
  450. });
  451. var result;
  452. var data = extraEventParams ? Object.assign(Object.assign({}, detail), {
  453. callback: function callback(data) {
  454. result = data;
  455. }
  456. }) : detail.value;
  457. this.$emit('input', data);
  458. this.$emit('change', data);
  459. return result;
  460. },
  461. setShowClear: function setShowClear() {
  462. var _this$data = this.data,
  463. clearable = _this$data.clearable,
  464. readonly = _this$data.readonly,
  465. clearTrigger = _this$data.clearTrigger;
  466. var focused = this.focused,
  467. value = this.value;
  468. var showClear = false;
  469. if (clearable && !readonly) {
  470. var hasValue = !!value;
  471. var trigger = clearTrigger === 'always' || clearTrigger === 'focus' && focused;
  472. showClear = hasValue && trigger;
  473. }
  474. this.setData({
  475. showClear: showClear
  476. });
  477. },
  478. noop: function noop() {}
  479. }
  480. });
  481. /***/ }),
  482. /***/ 1018:
  483. /*!****************************************************************************!*\
  484. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/field/props.js ***!
  485. \****************************************************************************/
  486. /*! no static exports found */
  487. /***/ (function(module, exports, __webpack_require__) {
  488. "use strict";
  489. Object.defineProperty(exports, "__esModule", {
  490. value: true
  491. });
  492. exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
  493. var commonProps = {
  494. value: {
  495. type: String,
  496. observer: function observer(value) {
  497. if (value !== this.value) {
  498. this.setData({
  499. innerValue: value
  500. });
  501. this.value = value;
  502. }
  503. }
  504. },
  505. placeholder: String,
  506. placeholderStyle: String,
  507. placeholderClass: String,
  508. disabled: Boolean,
  509. maxlength: {
  510. type: Number,
  511. value: -1
  512. },
  513. cursorSpacing: {
  514. type: Number,
  515. value: 50
  516. },
  517. autoFocus: Boolean,
  518. focus: Boolean,
  519. cursor: {
  520. type: Number,
  521. value: -1
  522. },
  523. selectionStart: {
  524. type: Number,
  525. value: -1
  526. },
  527. selectionEnd: {
  528. type: Number,
  529. value: -1
  530. },
  531. adjustPosition: {
  532. type: Boolean,
  533. value: true
  534. },
  535. holdKeyboard: Boolean
  536. };
  537. exports.commonProps = commonProps;
  538. var inputProps = {
  539. type: {
  540. type: String,
  541. value: 'text'
  542. },
  543. password: Boolean,
  544. confirmType: String,
  545. confirmHold: Boolean,
  546. alwaysEmbed: Boolean
  547. };
  548. exports.inputProps = inputProps;
  549. var textareaProps = {
  550. autoHeight: Boolean,
  551. fixed: Boolean,
  552. showConfirmBar: {
  553. type: Boolean,
  554. value: true
  555. },
  556. disableDefaultPadding: {
  557. type: Boolean,
  558. value: true
  559. }
  560. };
  561. exports.textareaProps = textareaProps;
  562. /***/ }),
  563. /***/ 1024:
  564. /*!*****************************************************************************************!*\
  565. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  566. \*****************************************************************************************/
  567. /*! no static exports found */
  568. /***/ (function(module, exports, __webpack_require__) {
  569. "use strict";
  570. Object.defineProperty(exports, "__esModule", {
  571. value: true
  572. });
  573. exports.default = void 0;
  574. var _default = {
  575. "id": "2852637",
  576. "name": "uniui图标库",
  577. "font_family": "uniicons",
  578. "css_prefix_text": "uniui-",
  579. "description": "",
  580. "glyphs": [{
  581. "icon_id": "25027049",
  582. "name": "yanse",
  583. "font_class": "color",
  584. "unicode": "e6cf",
  585. "unicode_decimal": 59087
  586. }, {
  587. "icon_id": "25027048",
  588. "name": "wallet",
  589. "font_class": "wallet",
  590. "unicode": "e6b1",
  591. "unicode_decimal": 59057
  592. }, {
  593. "icon_id": "25015720",
  594. "name": "settings-filled",
  595. "font_class": "settings-filled",
  596. "unicode": "e6ce",
  597. "unicode_decimal": 59086
  598. }, {
  599. "icon_id": "25015434",
  600. "name": "shimingrenzheng-filled",
  601. "font_class": "auth-filled",
  602. "unicode": "e6cc",
  603. "unicode_decimal": 59084
  604. }, {
  605. "icon_id": "24934246",
  606. "name": "shop-filled",
  607. "font_class": "shop-filled",
  608. "unicode": "e6cd",
  609. "unicode_decimal": 59085
  610. }, {
  611. "icon_id": "24934159",
  612. "name": "staff-filled-01",
  613. "font_class": "staff-filled",
  614. "unicode": "e6cb",
  615. "unicode_decimal": 59083
  616. }, {
  617. "icon_id": "24932461",
  618. "name": "VIP-filled",
  619. "font_class": "vip-filled",
  620. "unicode": "e6c6",
  621. "unicode_decimal": 59078
  622. }, {
  623. "icon_id": "24932462",
  624. "name": "plus_circle_fill",
  625. "font_class": "plus-filled",
  626. "unicode": "e6c7",
  627. "unicode_decimal": 59079
  628. }, {
  629. "icon_id": "24932463",
  630. "name": "folder_add-filled",
  631. "font_class": "folder-add-filled",
  632. "unicode": "e6c8",
  633. "unicode_decimal": 59080
  634. }, {
  635. "icon_id": "24932464",
  636. "name": "yanse-filled",
  637. "font_class": "color-filled",
  638. "unicode": "e6c9",
  639. "unicode_decimal": 59081
  640. }, {
  641. "icon_id": "24932465",
  642. "name": "tune-filled",
  643. "font_class": "tune-filled",
  644. "unicode": "e6ca",
  645. "unicode_decimal": 59082
  646. }, {
  647. "icon_id": "24932455",
  648. "name": "a-rilidaka-filled",
  649. "font_class": "calendar-filled",
  650. "unicode": "e6c0",
  651. "unicode_decimal": 59072
  652. }, {
  653. "icon_id": "24932456",
  654. "name": "notification-filled",
  655. "font_class": "notification-filled",
  656. "unicode": "e6c1",
  657. "unicode_decimal": 59073
  658. }, {
  659. "icon_id": "24932457",
  660. "name": "wallet-filled",
  661. "font_class": "wallet-filled",
  662. "unicode": "e6c2",
  663. "unicode_decimal": 59074
  664. }, {
  665. "icon_id": "24932458",
  666. "name": "paihangbang-filled",
  667. "font_class": "medal-filled",
  668. "unicode": "e6c3",
  669. "unicode_decimal": 59075
  670. }, {
  671. "icon_id": "24932459",
  672. "name": "gift-filled",
  673. "font_class": "gift-filled",
  674. "unicode": "e6c4",
  675. "unicode_decimal": 59076
  676. }, {
  677. "icon_id": "24932460",
  678. "name": "fire-filled",
  679. "font_class": "fire-filled",
  680. "unicode": "e6c5",
  681. "unicode_decimal": 59077
  682. }, {
  683. "icon_id": "24928001",
  684. "name": "refreshempty",
  685. "font_class": "refreshempty",
  686. "unicode": "e6bf",
  687. "unicode_decimal": 59071
  688. }, {
  689. "icon_id": "24926853",
  690. "name": "location-ellipse",
  691. "font_class": "location-filled",
  692. "unicode": "e6af",
  693. "unicode_decimal": 59055
  694. }, {
  695. "icon_id": "24926735",
  696. "name": "person-filled",
  697. "font_class": "person-filled",
  698. "unicode": "e69d",
  699. "unicode_decimal": 59037
  700. }, {
  701. "icon_id": "24926703",
  702. "name": "personadd-filled",
  703. "font_class": "personadd-filled",
  704. "unicode": "e698",
  705. "unicode_decimal": 59032
  706. }, {
  707. "icon_id": "24923351",
  708. "name": "back",
  709. "font_class": "back",
  710. "unicode": "e6b9",
  711. "unicode_decimal": 59065
  712. }, {
  713. "icon_id": "24923352",
  714. "name": "forward",
  715. "font_class": "forward",
  716. "unicode": "e6ba",
  717. "unicode_decimal": 59066
  718. }, {
  719. "icon_id": "24923353",
  720. "name": "arrowthinright",
  721. "font_class": "arrow-right",
  722. "unicode": "e6bb",
  723. "unicode_decimal": 59067
  724. }, {
  725. "icon_id": "24923353",
  726. "name": "arrowthinright",
  727. "font_class": "arrowthinright",
  728. "unicode": "e6bb",
  729. "unicode_decimal": 59067
  730. }, {
  731. "icon_id": "24923354",
  732. "name": "arrowthinleft",
  733. "font_class": "arrow-left",
  734. "unicode": "e6bc",
  735. "unicode_decimal": 59068
  736. }, {
  737. "icon_id": "24923354",
  738. "name": "arrowthinleft",
  739. "font_class": "arrowthinleft",
  740. "unicode": "e6bc",
  741. "unicode_decimal": 59068
  742. }, {
  743. "icon_id": "24923355",
  744. "name": "arrowthinup",
  745. "font_class": "arrow-up",
  746. "unicode": "e6bd",
  747. "unicode_decimal": 59069
  748. }, {
  749. "icon_id": "24923355",
  750. "name": "arrowthinup",
  751. "font_class": "arrowthinup",
  752. "unicode": "e6bd",
  753. "unicode_decimal": 59069
  754. }, {
  755. "icon_id": "24923356",
  756. "name": "arrowthindown",
  757. "font_class": "arrow-down",
  758. "unicode": "e6be",
  759. "unicode_decimal": 59070
  760. }, {
  761. "icon_id": "24923356",
  762. "name": "arrowthindown",
  763. "font_class": "arrowthindown",
  764. "unicode": "e6be",
  765. "unicode_decimal": 59070
  766. }, {
  767. "icon_id": "24923349",
  768. "name": "arrowdown",
  769. "font_class": "bottom",
  770. "unicode": "e6b8",
  771. "unicode_decimal": 59064
  772. }, {
  773. "icon_id": "24923349",
  774. "name": "arrowdown",
  775. "font_class": "arrowdown",
  776. "unicode": "e6b8",
  777. "unicode_decimal": 59064
  778. }, {
  779. "icon_id": "24923346",
  780. "name": "arrowright",
  781. "font_class": "right",
  782. "unicode": "e6b5",
  783. "unicode_decimal": 59061
  784. }, {
  785. "icon_id": "24923346",
  786. "name": "arrowright",
  787. "font_class": "arrowright",
  788. "unicode": "e6b5",
  789. "unicode_decimal": 59061
  790. }, {
  791. "icon_id": "24923347",
  792. "name": "arrowup",
  793. "font_class": "top",
  794. "unicode": "e6b6",
  795. "unicode_decimal": 59062
  796. }, {
  797. "icon_id": "24923347",
  798. "name": "arrowup",
  799. "font_class": "arrowup",
  800. "unicode": "e6b6",
  801. "unicode_decimal": 59062
  802. }, {
  803. "icon_id": "24923348",
  804. "name": "arrowleft",
  805. "font_class": "left",
  806. "unicode": "e6b7",
  807. "unicode_decimal": 59063
  808. }, {
  809. "icon_id": "24923348",
  810. "name": "arrowleft",
  811. "font_class": "arrowleft",
  812. "unicode": "e6b7",
  813. "unicode_decimal": 59063
  814. }, {
  815. "icon_id": "24923334",
  816. "name": "eye",
  817. "font_class": "eye",
  818. "unicode": "e651",
  819. "unicode_decimal": 58961
  820. }, {
  821. "icon_id": "24923335",
  822. "name": "eye-filled",
  823. "font_class": "eye-filled",
  824. "unicode": "e66a",
  825. "unicode_decimal": 58986
  826. }, {
  827. "icon_id": "24923336",
  828. "name": "eye-slash",
  829. "font_class": "eye-slash",
  830. "unicode": "e6b3",
  831. "unicode_decimal": 59059
  832. }, {
  833. "icon_id": "24923337",
  834. "name": "eye-slash-filled",
  835. "font_class": "eye-slash-filled",
  836. "unicode": "e6b4",
  837. "unicode_decimal": 59060
  838. }, {
  839. "icon_id": "24923305",
  840. "name": "info-filled",
  841. "font_class": "info-filled",
  842. "unicode": "e649",
  843. "unicode_decimal": 58953
  844. }, {
  845. "icon_id": "24923299",
  846. "name": "reload-01",
  847. "font_class": "reload",
  848. "unicode": "e6b2",
  849. "unicode_decimal": 59058
  850. }, {
  851. "icon_id": "24923195",
  852. "name": "mic_slash_fill",
  853. "font_class": "micoff-filled",
  854. "unicode": "e6b0",
  855. "unicode_decimal": 59056
  856. }, {
  857. "icon_id": "24923165",
  858. "name": "map-pin-ellipse",
  859. "font_class": "map-pin-ellipse",
  860. "unicode": "e6ac",
  861. "unicode_decimal": 59052
  862. }, {
  863. "icon_id": "24923166",
  864. "name": "map-pin",
  865. "font_class": "map-pin",
  866. "unicode": "e6ad",
  867. "unicode_decimal": 59053
  868. }, {
  869. "icon_id": "24923167",
  870. "name": "location",
  871. "font_class": "location",
  872. "unicode": "e6ae",
  873. "unicode_decimal": 59054
  874. }, {
  875. "icon_id": "24923064",
  876. "name": "starhalf",
  877. "font_class": "starhalf",
  878. "unicode": "e683",
  879. "unicode_decimal": 59011
  880. }, {
  881. "icon_id": "24923065",
  882. "name": "star",
  883. "font_class": "star",
  884. "unicode": "e688",
  885. "unicode_decimal": 59016
  886. }, {
  887. "icon_id": "24923066",
  888. "name": "star-filled",
  889. "font_class": "star-filled",
  890. "unicode": "e68f",
  891. "unicode_decimal": 59023
  892. }, {
  893. "icon_id": "24899646",
  894. "name": "a-rilidaka",
  895. "font_class": "calendar",
  896. "unicode": "e6a0",
  897. "unicode_decimal": 59040
  898. }, {
  899. "icon_id": "24899647",
  900. "name": "fire",
  901. "font_class": "fire",
  902. "unicode": "e6a1",
  903. "unicode_decimal": 59041
  904. }, {
  905. "icon_id": "24899648",
  906. "name": "paihangbang",
  907. "font_class": "medal",
  908. "unicode": "e6a2",
  909. "unicode_decimal": 59042
  910. }, {
  911. "icon_id": "24899649",
  912. "name": "font",
  913. "font_class": "font",
  914. "unicode": "e6a3",
  915. "unicode_decimal": 59043
  916. }, {
  917. "icon_id": "24899650",
  918. "name": "gift",
  919. "font_class": "gift",
  920. "unicode": "e6a4",
  921. "unicode_decimal": 59044
  922. }, {
  923. "icon_id": "24899651",
  924. "name": "link",
  925. "font_class": "link",
  926. "unicode": "e6a5",
  927. "unicode_decimal": 59045
  928. }, {
  929. "icon_id": "24899652",
  930. "name": "notification",
  931. "font_class": "notification",
  932. "unicode": "e6a6",
  933. "unicode_decimal": 59046
  934. }, {
  935. "icon_id": "24899653",
  936. "name": "staff",
  937. "font_class": "staff",
  938. "unicode": "e6a7",
  939. "unicode_decimal": 59047
  940. }, {
  941. "icon_id": "24899654",
  942. "name": "VIP",
  943. "font_class": "vip",
  944. "unicode": "e6a8",
  945. "unicode_decimal": 59048
  946. }, {
  947. "icon_id": "24899655",
  948. "name": "folder_add",
  949. "font_class": "folder-add",
  950. "unicode": "e6a9",
  951. "unicode_decimal": 59049
  952. }, {
  953. "icon_id": "24899656",
  954. "name": "tune",
  955. "font_class": "tune",
  956. "unicode": "e6aa",
  957. "unicode_decimal": 59050
  958. }, {
  959. "icon_id": "24899657",
  960. "name": "shimingrenzheng",
  961. "font_class": "auth",
  962. "unicode": "e6ab",
  963. "unicode_decimal": 59051
  964. }, {
  965. "icon_id": "24899565",
  966. "name": "person",
  967. "font_class": "person",
  968. "unicode": "e699",
  969. "unicode_decimal": 59033
  970. }, {
  971. "icon_id": "24899566",
  972. "name": "email-filled",
  973. "font_class": "email-filled",
  974. "unicode": "e69a",
  975. "unicode_decimal": 59034
  976. }, {
  977. "icon_id": "24899567",
  978. "name": "phone-filled",
  979. "font_class": "phone-filled",
  980. "unicode": "e69b",
  981. "unicode_decimal": 59035
  982. }, {
  983. "icon_id": "24899568",
  984. "name": "phone",
  985. "font_class": "phone",
  986. "unicode": "e69c",
  987. "unicode_decimal": 59036
  988. }, {
  989. "icon_id": "24899570",
  990. "name": "email",
  991. "font_class": "email",
  992. "unicode": "e69e",
  993. "unicode_decimal": 59038
  994. }, {
  995. "icon_id": "24899571",
  996. "name": "personadd",
  997. "font_class": "personadd",
  998. "unicode": "e69f",
  999. "unicode_decimal": 59039
  1000. }, {
  1001. "icon_id": "24899558",
  1002. "name": "chatboxes-filled",
  1003. "font_class": "chatboxes-filled",
  1004. "unicode": "e692",
  1005. "unicode_decimal": 59026
  1006. }, {
  1007. "icon_id": "24899559",
  1008. "name": "contact",
  1009. "font_class": "contact",
  1010. "unicode": "e693",
  1011. "unicode_decimal": 59027
  1012. }, {
  1013. "icon_id": "24899560",
  1014. "name": "chatbubble-filled",
  1015. "font_class": "chatbubble-filled",
  1016. "unicode": "e694",
  1017. "unicode_decimal": 59028
  1018. }, {
  1019. "icon_id": "24899561",
  1020. "name": "contact-filled",
  1021. "font_class": "contact-filled",
  1022. "unicode": "e695",
  1023. "unicode_decimal": 59029
  1024. }, {
  1025. "icon_id": "24899562",
  1026. "name": "chatboxes",
  1027. "font_class": "chatboxes",
  1028. "unicode": "e696",
  1029. "unicode_decimal": 59030
  1030. }, {
  1031. "icon_id": "24899563",
  1032. "name": "chatbubble",
  1033. "font_class": "chatbubble",
  1034. "unicode": "e697",
  1035. "unicode_decimal": 59031
  1036. }, {
  1037. "icon_id": "24881290",
  1038. "name": "upload-filled",
  1039. "font_class": "upload-filled",
  1040. "unicode": "e68e",
  1041. "unicode_decimal": 59022
  1042. }, {
  1043. "icon_id": "24881292",
  1044. "name": "upload",
  1045. "font_class": "upload",
  1046. "unicode": "e690",
  1047. "unicode_decimal": 59024
  1048. }, {
  1049. "icon_id": "24881293",
  1050. "name": "weixin",
  1051. "font_class": "weixin",
  1052. "unicode": "e691",
  1053. "unicode_decimal": 59025
  1054. }, {
  1055. "icon_id": "24881274",
  1056. "name": "compose",
  1057. "font_class": "compose",
  1058. "unicode": "e67f",
  1059. "unicode_decimal": 59007
  1060. }, {
  1061. "icon_id": "24881275",
  1062. "name": "qq",
  1063. "font_class": "qq",
  1064. "unicode": "e680",
  1065. "unicode_decimal": 59008
  1066. }, {
  1067. "icon_id": "24881276",
  1068. "name": "download-filled",
  1069. "font_class": "download-filled",
  1070. "unicode": "e681",
  1071. "unicode_decimal": 59009
  1072. }, {
  1073. "icon_id": "24881277",
  1074. "name": "pengyouquan",
  1075. "font_class": "pyq",
  1076. "unicode": "e682",
  1077. "unicode_decimal": 59010
  1078. }, {
  1079. "icon_id": "24881279",
  1080. "name": "sound",
  1081. "font_class": "sound",
  1082. "unicode": "e684",
  1083. "unicode_decimal": 59012
  1084. }, {
  1085. "icon_id": "24881280",
  1086. "name": "trash-filled",
  1087. "font_class": "trash-filled",
  1088. "unicode": "e685",
  1089. "unicode_decimal": 59013
  1090. }, {
  1091. "icon_id": "24881281",
  1092. "name": "sound-filled",
  1093. "font_class": "sound-filled",
  1094. "unicode": "e686",
  1095. "unicode_decimal": 59014
  1096. }, {
  1097. "icon_id": "24881282",
  1098. "name": "trash",
  1099. "font_class": "trash",
  1100. "unicode": "e687",
  1101. "unicode_decimal": 59015
  1102. }, {
  1103. "icon_id": "24881284",
  1104. "name": "videocam-filled",
  1105. "font_class": "videocam-filled",
  1106. "unicode": "e689",
  1107. "unicode_decimal": 59017
  1108. }, {
  1109. "icon_id": "24881285",
  1110. "name": "spinner-cycle",
  1111. "font_class": "spinner-cycle",
  1112. "unicode": "e68a",
  1113. "unicode_decimal": 59018
  1114. }, {
  1115. "icon_id": "24881286",
  1116. "name": "weibo",
  1117. "font_class": "weibo",
  1118. "unicode": "e68b",
  1119. "unicode_decimal": 59019
  1120. }, {
  1121. "icon_id": "24881288",
  1122. "name": "videocam",
  1123. "font_class": "videocam",
  1124. "unicode": "e68c",
  1125. "unicode_decimal": 59020
  1126. }, {
  1127. "icon_id": "24881289",
  1128. "name": "download",
  1129. "font_class": "download",
  1130. "unicode": "e68d",
  1131. "unicode_decimal": 59021
  1132. }, {
  1133. "icon_id": "24879601",
  1134. "name": "help",
  1135. "font_class": "help",
  1136. "unicode": "e679",
  1137. "unicode_decimal": 59001
  1138. }, {
  1139. "icon_id": "24879602",
  1140. "name": "navigate-filled",
  1141. "font_class": "navigate-filled",
  1142. "unicode": "e67a",
  1143. "unicode_decimal": 59002
  1144. }, {
  1145. "icon_id": "24879603",
  1146. "name": "plusempty",
  1147. "font_class": "plusempty",
  1148. "unicode": "e67b",
  1149. "unicode_decimal": 59003
  1150. }, {
  1151. "icon_id": "24879604",
  1152. "name": "smallcircle",
  1153. "font_class": "smallcircle",
  1154. "unicode": "e67c",
  1155. "unicode_decimal": 59004
  1156. }, {
  1157. "icon_id": "24879605",
  1158. "name": "minus-filled",
  1159. "font_class": "minus-filled",
  1160. "unicode": "e67d",
  1161. "unicode_decimal": 59005
  1162. }, {
  1163. "icon_id": "24879606",
  1164. "name": "micoff",
  1165. "font_class": "micoff",
  1166. "unicode": "e67e",
  1167. "unicode_decimal": 59006
  1168. }, {
  1169. "icon_id": "24879588",
  1170. "name": "closeempty",
  1171. "font_class": "closeempty",
  1172. "unicode": "e66c",
  1173. "unicode_decimal": 58988
  1174. }, {
  1175. "icon_id": "24879589",
  1176. "name": "clear",
  1177. "font_class": "clear",
  1178. "unicode": "e66d",
  1179. "unicode_decimal": 58989
  1180. }, {
  1181. "icon_id": "24879590",
  1182. "name": "navigate",
  1183. "font_class": "navigate",
  1184. "unicode": "e66e",
  1185. "unicode_decimal": 58990
  1186. }, {
  1187. "icon_id": "24879591",
  1188. "name": "minus",
  1189. "font_class": "minus",
  1190. "unicode": "e66f",
  1191. "unicode_decimal": 58991
  1192. }, {
  1193. "icon_id": "24879592",
  1194. "name": "image",
  1195. "font_class": "image",
  1196. "unicode": "e670",
  1197. "unicode_decimal": 58992
  1198. }, {
  1199. "icon_id": "24879593",
  1200. "name": "mic",
  1201. "font_class": "mic",
  1202. "unicode": "e671",
  1203. "unicode_decimal": 58993
  1204. }, {
  1205. "icon_id": "24879594",
  1206. "name": "paperplane",
  1207. "font_class": "paperplane",
  1208. "unicode": "e672",
  1209. "unicode_decimal": 58994
  1210. }, {
  1211. "icon_id": "24879595",
  1212. "name": "close",
  1213. "font_class": "close",
  1214. "unicode": "e673",
  1215. "unicode_decimal": 58995
  1216. }, {
  1217. "icon_id": "24879596",
  1218. "name": "help-filled",
  1219. "font_class": "help-filled",
  1220. "unicode": "e674",
  1221. "unicode_decimal": 58996
  1222. }, {
  1223. "icon_id": "24879597",
  1224. "name": "plus-filled",
  1225. "font_class": "paperplane-filled",
  1226. "unicode": "e675",
  1227. "unicode_decimal": 58997
  1228. }, {
  1229. "icon_id": "24879598",
  1230. "name": "plus",
  1231. "font_class": "plus",
  1232. "unicode": "e676",
  1233. "unicode_decimal": 58998
  1234. }, {
  1235. "icon_id": "24879599",
  1236. "name": "mic-filled",
  1237. "font_class": "mic-filled",
  1238. "unicode": "e677",
  1239. "unicode_decimal": 58999
  1240. }, {
  1241. "icon_id": "24879600",
  1242. "name": "image-filled",
  1243. "font_class": "image-filled",
  1244. "unicode": "e678",
  1245. "unicode_decimal": 59000
  1246. }, {
  1247. "icon_id": "24855900",
  1248. "name": "locked-filled",
  1249. "font_class": "locked-filled",
  1250. "unicode": "e668",
  1251. "unicode_decimal": 58984
  1252. }, {
  1253. "icon_id": "24855901",
  1254. "name": "info",
  1255. "font_class": "info",
  1256. "unicode": "e669",
  1257. "unicode_decimal": 58985
  1258. }, {
  1259. "icon_id": "24855903",
  1260. "name": "locked",
  1261. "font_class": "locked",
  1262. "unicode": "e66b",
  1263. "unicode_decimal": 58987
  1264. }, {
  1265. "icon_id": "24855884",
  1266. "name": "camera-filled",
  1267. "font_class": "camera-filled",
  1268. "unicode": "e658",
  1269. "unicode_decimal": 58968
  1270. }, {
  1271. "icon_id": "24855885",
  1272. "name": "chat-filled",
  1273. "font_class": "chat-filled",
  1274. "unicode": "e659",
  1275. "unicode_decimal": 58969
  1276. }, {
  1277. "icon_id": "24855886",
  1278. "name": "camera",
  1279. "font_class": "camera",
  1280. "unicode": "e65a",
  1281. "unicode_decimal": 58970
  1282. }, {
  1283. "icon_id": "24855887",
  1284. "name": "circle",
  1285. "font_class": "circle",
  1286. "unicode": "e65b",
  1287. "unicode_decimal": 58971
  1288. }, {
  1289. "icon_id": "24855888",
  1290. "name": "checkmarkempty",
  1291. "font_class": "checkmarkempty",
  1292. "unicode": "e65c",
  1293. "unicode_decimal": 58972
  1294. }, {
  1295. "icon_id": "24855889",
  1296. "name": "chat",
  1297. "font_class": "chat",
  1298. "unicode": "e65d",
  1299. "unicode_decimal": 58973
  1300. }, {
  1301. "icon_id": "24855890",
  1302. "name": "circle-filled",
  1303. "font_class": "circle-filled",
  1304. "unicode": "e65e",
  1305. "unicode_decimal": 58974
  1306. }, {
  1307. "icon_id": "24855891",
  1308. "name": "flag",
  1309. "font_class": "flag",
  1310. "unicode": "e65f",
  1311. "unicode_decimal": 58975
  1312. }, {
  1313. "icon_id": "24855892",
  1314. "name": "flag-filled",
  1315. "font_class": "flag-filled",
  1316. "unicode": "e660",
  1317. "unicode_decimal": 58976
  1318. }, {
  1319. "icon_id": "24855893",
  1320. "name": "gear-filled",
  1321. "font_class": "gear-filled",
  1322. "unicode": "e661",
  1323. "unicode_decimal": 58977
  1324. }, {
  1325. "icon_id": "24855894",
  1326. "name": "home",
  1327. "font_class": "home",
  1328. "unicode": "e662",
  1329. "unicode_decimal": 58978
  1330. }, {
  1331. "icon_id": "24855895",
  1332. "name": "home-filled",
  1333. "font_class": "home-filled",
  1334. "unicode": "e663",
  1335. "unicode_decimal": 58979
  1336. }, {
  1337. "icon_id": "24855896",
  1338. "name": "gear",
  1339. "font_class": "gear",
  1340. "unicode": "e664",
  1341. "unicode_decimal": 58980
  1342. }, {
  1343. "icon_id": "24855897",
  1344. "name": "smallcircle-filled",
  1345. "font_class": "smallcircle-filled",
  1346. "unicode": "e665",
  1347. "unicode_decimal": 58981
  1348. }, {
  1349. "icon_id": "24855898",
  1350. "name": "map-filled",
  1351. "font_class": "map-filled",
  1352. "unicode": "e666",
  1353. "unicode_decimal": 58982
  1354. }, {
  1355. "icon_id": "24855899",
  1356. "name": "map",
  1357. "font_class": "map",
  1358. "unicode": "e667",
  1359. "unicode_decimal": 58983
  1360. }, {
  1361. "icon_id": "24855825",
  1362. "name": "refresh-filled",
  1363. "font_class": "refresh-filled",
  1364. "unicode": "e656",
  1365. "unicode_decimal": 58966
  1366. }, {
  1367. "icon_id": "24855826",
  1368. "name": "refresh",
  1369. "font_class": "refresh",
  1370. "unicode": "e657",
  1371. "unicode_decimal": 58967
  1372. }, {
  1373. "icon_id": "24855808",
  1374. "name": "cloud-upload",
  1375. "font_class": "cloud-upload",
  1376. "unicode": "e645",
  1377. "unicode_decimal": 58949
  1378. }, {
  1379. "icon_id": "24855809",
  1380. "name": "cloud-download-filled",
  1381. "font_class": "cloud-download-filled",
  1382. "unicode": "e646",
  1383. "unicode_decimal": 58950
  1384. }, {
  1385. "icon_id": "24855810",
  1386. "name": "cloud-download",
  1387. "font_class": "cloud-download",
  1388. "unicode": "e647",
  1389. "unicode_decimal": 58951
  1390. }, {
  1391. "icon_id": "24855811",
  1392. "name": "cloud-upload-filled",
  1393. "font_class": "cloud-upload-filled",
  1394. "unicode": "e648",
  1395. "unicode_decimal": 58952
  1396. }, {
  1397. "icon_id": "24855813",
  1398. "name": "redo",
  1399. "font_class": "redo",
  1400. "unicode": "e64a",
  1401. "unicode_decimal": 58954
  1402. }, {
  1403. "icon_id": "24855814",
  1404. "name": "images-filled",
  1405. "font_class": "images-filled",
  1406. "unicode": "e64b",
  1407. "unicode_decimal": 58955
  1408. }, {
  1409. "icon_id": "24855815",
  1410. "name": "undo-filled",
  1411. "font_class": "undo-filled",
  1412. "unicode": "e64c",
  1413. "unicode_decimal": 58956
  1414. }, {
  1415. "icon_id": "24855816",
  1416. "name": "more",
  1417. "font_class": "more",
  1418. "unicode": "e64d",
  1419. "unicode_decimal": 58957
  1420. }, {
  1421. "icon_id": "24855817",
  1422. "name": "more-filled",
  1423. "font_class": "more-filled",
  1424. "unicode": "e64e",
  1425. "unicode_decimal": 58958
  1426. }, {
  1427. "icon_id": "24855818",
  1428. "name": "undo",
  1429. "font_class": "undo",
  1430. "unicode": "e64f",
  1431. "unicode_decimal": 58959
  1432. }, {
  1433. "icon_id": "24855819",
  1434. "name": "images",
  1435. "font_class": "images",
  1436. "unicode": "e650",
  1437. "unicode_decimal": 58960
  1438. }, {
  1439. "icon_id": "24855821",
  1440. "name": "paperclip",
  1441. "font_class": "paperclip",
  1442. "unicode": "e652",
  1443. "unicode_decimal": 58962
  1444. }, {
  1445. "icon_id": "24855822",
  1446. "name": "settings",
  1447. "font_class": "settings",
  1448. "unicode": "e653",
  1449. "unicode_decimal": 58963
  1450. }, {
  1451. "icon_id": "24855823",
  1452. "name": "search",
  1453. "font_class": "search",
  1454. "unicode": "e654",
  1455. "unicode_decimal": 58964
  1456. }, {
  1457. "icon_id": "24855824",
  1458. "name": "redo-filled",
  1459. "font_class": "redo-filled",
  1460. "unicode": "e655",
  1461. "unicode_decimal": 58965
  1462. }, {
  1463. "icon_id": "24841702",
  1464. "name": "list",
  1465. "font_class": "list",
  1466. "unicode": "e644",
  1467. "unicode_decimal": 58948
  1468. }, {
  1469. "icon_id": "24841489",
  1470. "name": "mail-open-filled",
  1471. "font_class": "mail-open-filled",
  1472. "unicode": "e63a",
  1473. "unicode_decimal": 58938
  1474. }, {
  1475. "icon_id": "24841491",
  1476. "name": "hand-thumbsdown-filled",
  1477. "font_class": "hand-down-filled",
  1478. "unicode": "e63c",
  1479. "unicode_decimal": 58940
  1480. }, {
  1481. "icon_id": "24841492",
  1482. "name": "hand-thumbsdown",
  1483. "font_class": "hand-down",
  1484. "unicode": "e63d",
  1485. "unicode_decimal": 58941
  1486. }, {
  1487. "icon_id": "24841493",
  1488. "name": "hand-thumbsup-filled",
  1489. "font_class": "hand-up-filled",
  1490. "unicode": "e63e",
  1491. "unicode_decimal": 58942
  1492. }, {
  1493. "icon_id": "24841494",
  1494. "name": "hand-thumbsup",
  1495. "font_class": "hand-up",
  1496. "unicode": "e63f",
  1497. "unicode_decimal": 58943
  1498. }, {
  1499. "icon_id": "24841496",
  1500. "name": "heart-filled",
  1501. "font_class": "heart-filled",
  1502. "unicode": "e641",
  1503. "unicode_decimal": 58945
  1504. }, {
  1505. "icon_id": "24841498",
  1506. "name": "mail-open",
  1507. "font_class": "mail-open",
  1508. "unicode": "e643",
  1509. "unicode_decimal": 58947
  1510. }, {
  1511. "icon_id": "24841488",
  1512. "name": "heart",
  1513. "font_class": "heart",
  1514. "unicode": "e639",
  1515. "unicode_decimal": 58937
  1516. }, {
  1517. "icon_id": "24839963",
  1518. "name": "loop",
  1519. "font_class": "loop",
  1520. "unicode": "e633",
  1521. "unicode_decimal": 58931
  1522. }, {
  1523. "icon_id": "24839866",
  1524. "name": "pulldown",
  1525. "font_class": "pulldown",
  1526. "unicode": "e632",
  1527. "unicode_decimal": 58930
  1528. }, {
  1529. "icon_id": "24813798",
  1530. "name": "scan",
  1531. "font_class": "scan",
  1532. "unicode": "e62a",
  1533. "unicode_decimal": 58922
  1534. }, {
  1535. "icon_id": "24813786",
  1536. "name": "bars",
  1537. "font_class": "bars",
  1538. "unicode": "e627",
  1539. "unicode_decimal": 58919
  1540. }, {
  1541. "icon_id": "24813788",
  1542. "name": "cart-filled",
  1543. "font_class": "cart-filled",
  1544. "unicode": "e629",
  1545. "unicode_decimal": 58921
  1546. }, {
  1547. "icon_id": "24813790",
  1548. "name": "checkbox",
  1549. "font_class": "checkbox",
  1550. "unicode": "e62b",
  1551. "unicode_decimal": 58923
  1552. }, {
  1553. "icon_id": "24813791",
  1554. "name": "checkbox-filled",
  1555. "font_class": "checkbox-filled",
  1556. "unicode": "e62c",
  1557. "unicode_decimal": 58924
  1558. }, {
  1559. "icon_id": "24813794",
  1560. "name": "shop",
  1561. "font_class": "shop",
  1562. "unicode": "e62f",
  1563. "unicode_decimal": 58927
  1564. }, {
  1565. "icon_id": "24813795",
  1566. "name": "headphones",
  1567. "font_class": "headphones",
  1568. "unicode": "e630",
  1569. "unicode_decimal": 58928
  1570. }, {
  1571. "icon_id": "24813796",
  1572. "name": "cart",
  1573. "font_class": "cart",
  1574. "unicode": "e631",
  1575. "unicode_decimal": 58929
  1576. }]
  1577. };
  1578. exports.default = _default;
  1579. /***/ }),
  1580. /***/ 106:
  1581. /*!************************************************************!*\
  1582. !*** D:/work/gitlabcode/product_wx/static/mine/banner.png ***!
  1583. \************************************************************/
  1584. /*! no static exports found */
  1585. /***/ (function(module, exports, __webpack_require__) {
  1586. module.exports = __webpack_require__.p + "static/mine/banner.png";
  1587. /***/ }),
  1588. /***/ 1060:
  1589. /*!******************************************************************************************************!*\
  1590. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js ***!
  1591. \******************************************************************************************************/
  1592. /*! no static exports found */
  1593. /***/ (function(module, exports, __webpack_require__) {
  1594. "use strict";
  1595. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  1596. Object.defineProperty(exports, "__esModule", {
  1597. value: true
  1598. });
  1599. exports.default = void 0;
  1600. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 1061));
  1601. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 1062));
  1602. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 1063));
  1603. var _default = {
  1604. en: _en.default,
  1605. 'zh-Hans': _zhHans.default,
  1606. 'zh-Hant': _zhHant.default
  1607. };
  1608. exports.default = _default;
  1609. /***/ }),
  1610. /***/ 1061:
  1611. /*!*****************************************************************************************************!*\
  1612. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json ***!
  1613. \*****************************************************************************************************/
  1614. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  1615. /***/ (function(module) {
  1616. 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\"}");
  1617. /***/ }),
  1618. /***/ 1062:
  1619. /*!**********************************************************************************************************!*\
  1620. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json ***!
  1621. \**********************************************************************************************************/
  1622. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  1623. /***/ (function(module) {
  1624. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉显示更多\",\"uni-load-more.contentrefresh\":\"正在加载...\",\"uni-load-more.contentnomore\":\"没有更多数据了\"}");
  1625. /***/ }),
  1626. /***/ 1063:
  1627. /*!**********************************************************************************************************!*\
  1628. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json ***!
  1629. \**********************************************************************************************************/
  1630. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  1631. /***/ (function(module) {
  1632. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉顯示更多\",\"uni-load-more.contentrefresh\":\"正在加載...\",\"uni-load-more.contentnomore\":\"沒有更多數據了\"}");
  1633. /***/ }),
  1634. /***/ 1066:
  1635. /*!**************************************************************************************!*\
  1636. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/datetime-picker/index.js ***!
  1637. \**************************************************************************************/
  1638. /*! no static exports found */
  1639. /***/ (function(module, exports, __webpack_require__) {
  1640. "use strict";
  1641. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  1642. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  1643. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  1644. var _component = __webpack_require__(/*! ../common/component */ 778);
  1645. var _validator = __webpack_require__(/*! ../common/validator */ 784);
  1646. var _shared = __webpack_require__(/*! ../picker/shared */ 948);
  1647. var currentYear = new Date().getFullYear();
  1648. function isValidDate(date) {
  1649. return (0, _validator.isDef)(date) && !isNaN(new Date(date).getTime());
  1650. }
  1651. function range(num, min, max) {
  1652. return Math.min(Math.max(num, min), max);
  1653. }
  1654. function padZero(val) {
  1655. return "00".concat(val).slice(-2);
  1656. }
  1657. function times(n, iteratee) {
  1658. var index = -1;
  1659. var result = Array(n < 0 ? 0 : n);
  1660. while (++index < n) {
  1661. result[index] = iteratee(index);
  1662. }
  1663. return result;
  1664. }
  1665. function getTrueValue(formattedValue) {
  1666. if (formattedValue === undefined) {
  1667. formattedValue = '1';
  1668. }
  1669. while (isNaN(parseInt(formattedValue, 10))) {
  1670. formattedValue = formattedValue.slice(1);
  1671. }
  1672. return parseInt(formattedValue, 10);
  1673. }
  1674. function getMonthEndDay(year, month) {
  1675. return 32 - new Date(year, month - 1, 32).getDate();
  1676. }
  1677. var defaultFormatter = function defaultFormatter(type, value) {
  1678. return value;
  1679. };
  1680. (0, _component.VantComponent)({
  1681. classes: ['active-class', 'toolbar-class', 'column-class'],
  1682. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  1683. value: {
  1684. type: null,
  1685. observer: 'updateValue'
  1686. },
  1687. filter: null,
  1688. type: {
  1689. type: String,
  1690. value: 'datetime',
  1691. observer: 'updateValue'
  1692. },
  1693. showToolbar: {
  1694. type: Boolean,
  1695. value: true
  1696. },
  1697. formatter: {
  1698. type: null,
  1699. value: defaultFormatter
  1700. },
  1701. minDate: {
  1702. type: Number,
  1703. value: new Date(currentYear - 10, 0, 1).getTime(),
  1704. observer: 'updateValue'
  1705. },
  1706. maxDate: {
  1707. type: Number,
  1708. value: new Date(currentYear + 10, 11, 31).getTime(),
  1709. observer: 'updateValue'
  1710. },
  1711. minHour: {
  1712. type: Number,
  1713. value: 0,
  1714. observer: 'updateValue'
  1715. },
  1716. maxHour: {
  1717. type: Number,
  1718. value: 23,
  1719. observer: 'updateValue'
  1720. },
  1721. minMinute: {
  1722. type: Number,
  1723. value: 0,
  1724. observer: 'updateValue'
  1725. },
  1726. maxMinute: {
  1727. type: Number,
  1728. value: 59,
  1729. observer: 'updateValue'
  1730. }
  1731. }),
  1732. data: {
  1733. innerValue: Date.now(),
  1734. columns: []
  1735. },
  1736. methods: {
  1737. updateValue: function updateValue() {
  1738. var _this = this;
  1739. var data = this.data;
  1740. var val = this.correctValue(data.value);
  1741. var isEqual = val === data.innerValue;
  1742. this.updateColumnValue(val).then(function () {
  1743. if (!isEqual) {
  1744. _this.$emit('input', val);
  1745. }
  1746. });
  1747. },
  1748. getPicker: function getPicker() {
  1749. if (this.picker == null) {
  1750. this.picker = this.selectComponent('.van-datetime-picker');
  1751. var picker = this.picker;
  1752. var setColumnValues = picker.setColumnValues;
  1753. picker.setColumnValues = function () {
  1754. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1755. args[_key] = arguments[_key];
  1756. }
  1757. return setColumnValues.apply(picker, [].concat(args, [false]));
  1758. };
  1759. }
  1760. return this.picker;
  1761. },
  1762. updateColumns: function updateColumns() {
  1763. var _this$data$formatter = this.data.formatter,
  1764. formatter = _this$data$formatter === void 0 ? defaultFormatter : _this$data$formatter;
  1765. var results = this.getOriginColumns().map(function (column) {
  1766. return {
  1767. values: column.values.map(function (value) {
  1768. return formatter(column.type, value);
  1769. })
  1770. };
  1771. });
  1772. return this.set({
  1773. columns: results
  1774. });
  1775. },
  1776. getOriginColumns: function getOriginColumns() {
  1777. var filter = this.data.filter;
  1778. var results = this.getRanges().map(function (_ref) {
  1779. var type = _ref.type,
  1780. range = _ref.range;
  1781. var values = times(range[1] - range[0] + 1, function (index) {
  1782. var value = range[0] + index;
  1783. return type === 'year' ? "".concat(value) : padZero(value);
  1784. });
  1785. if (filter) {
  1786. values = filter(type, values);
  1787. }
  1788. return {
  1789. type: type,
  1790. values: values
  1791. };
  1792. });
  1793. return results;
  1794. },
  1795. getRanges: function getRanges() {
  1796. var data = this.data;
  1797. if (data.type === 'time') {
  1798. return [{
  1799. type: 'hour',
  1800. range: [data.minHour, data.maxHour]
  1801. }, {
  1802. type: 'minute',
  1803. range: [data.minMinute, data.maxMinute]
  1804. }];
  1805. }
  1806. var _this$getBoundary = this.getBoundary('max', data.innerValue),
  1807. maxYear = _this$getBoundary.maxYear,
  1808. maxDate = _this$getBoundary.maxDate,
  1809. maxMonth = _this$getBoundary.maxMonth,
  1810. maxHour = _this$getBoundary.maxHour,
  1811. maxMinute = _this$getBoundary.maxMinute;
  1812. var _this$getBoundary2 = this.getBoundary('min', data.innerValue),
  1813. minYear = _this$getBoundary2.minYear,
  1814. minDate = _this$getBoundary2.minDate,
  1815. minMonth = _this$getBoundary2.minMonth,
  1816. minHour = _this$getBoundary2.minHour,
  1817. minMinute = _this$getBoundary2.minMinute;
  1818. var result = [{
  1819. type: 'year',
  1820. range: [minYear, maxYear]
  1821. }, {
  1822. type: 'month',
  1823. range: [minMonth, maxMonth]
  1824. }, {
  1825. type: 'day',
  1826. range: [minDate, maxDate]
  1827. }, {
  1828. type: 'hour',
  1829. range: [minHour, maxHour]
  1830. }, {
  1831. type: 'minute',
  1832. range: [minMinute, maxMinute]
  1833. }];
  1834. if (data.type === 'date') result.splice(3, 2);
  1835. if (data.type === 'year-month') result.splice(2, 3);
  1836. return result;
  1837. },
  1838. correctValue: function correctValue(value) {
  1839. var data = this.data;
  1840. // validate value
  1841. var isDateType = data.type !== 'time';
  1842. if (isDateType && !isValidDate(value)) {
  1843. value = data.minDate;
  1844. } else if (!isDateType && !value) {
  1845. var minHour = data.minHour;
  1846. value = "".concat(padZero(minHour), ":00");
  1847. }
  1848. // time type
  1849. if (!isDateType) {
  1850. var _value$split = value.split(':'),
  1851. _value$split2 = (0, _slicedToArray2.default)(_value$split, 2),
  1852. hour = _value$split2[0],
  1853. minute = _value$split2[1];
  1854. hour = padZero(range(hour, data.minHour, data.maxHour));
  1855. minute = padZero(range(minute, data.minMinute, data.maxMinute));
  1856. return "".concat(hour, ":").concat(minute);
  1857. }
  1858. // date type
  1859. value = Math.max(value, data.minDate);
  1860. value = Math.min(value, data.maxDate);
  1861. return value;
  1862. },
  1863. getBoundary: function getBoundary(type, innerValue) {
  1864. var _ref2;
  1865. var value = new Date(innerValue);
  1866. var boundary = new Date(this.data["".concat(type, "Date")]);
  1867. var year = boundary.getFullYear();
  1868. var month = 1;
  1869. var date = 1;
  1870. var hour = 0;
  1871. var minute = 0;
  1872. if (type === 'max') {
  1873. month = 12;
  1874. date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
  1875. hour = 23;
  1876. minute = 59;
  1877. }
  1878. if (value.getFullYear() === year) {
  1879. month = boundary.getMonth() + 1;
  1880. if (value.getMonth() + 1 === month) {
  1881. date = boundary.getDate();
  1882. if (value.getDate() === date) {
  1883. hour = boundary.getHours();
  1884. if (value.getHours() === hour) {
  1885. minute = boundary.getMinutes();
  1886. }
  1887. }
  1888. }
  1889. }
  1890. 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;
  1891. },
  1892. onCancel: function onCancel() {
  1893. this.$emit('cancel');
  1894. },
  1895. onConfirm: function onConfirm() {
  1896. this.$emit('confirm', this.data.innerValue);
  1897. },
  1898. onChange: function onChange() {
  1899. var _this2 = this;
  1900. var data = this.data;
  1901. var value;
  1902. var picker = this.getPicker();
  1903. var originColumns = this.getOriginColumns();
  1904. if (data.type === 'time') {
  1905. var indexes = picker.getIndexes();
  1906. value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1].values[indexes[1]]);
  1907. } else {
  1908. var _indexes = picker.getIndexes();
  1909. var values = _indexes.map(function (value, index) {
  1910. return originColumns[index].values[value];
  1911. });
  1912. var year = getTrueValue(values[0]);
  1913. var month = getTrueValue(values[1]);
  1914. var maxDate = getMonthEndDay(year, month);
  1915. var date = getTrueValue(values[2]);
  1916. if (data.type === 'year-month') {
  1917. date = 1;
  1918. }
  1919. date = date > maxDate ? maxDate : date;
  1920. var hour = 0;
  1921. var minute = 0;
  1922. if (data.type === 'datetime') {
  1923. hour = getTrueValue(values[3]);
  1924. minute = getTrueValue(values[4]);
  1925. }
  1926. value = new Date(year, month - 1, date, hour, minute);
  1927. }
  1928. value = this.correctValue(value);
  1929. this.updateColumnValue(value).then(function () {
  1930. _this2.$emit('input', value);
  1931. _this2.$emit('change', picker);
  1932. });
  1933. },
  1934. updateColumnValue: function updateColumnValue(value) {
  1935. var _this3 = this;
  1936. var values = [];
  1937. var type = this.data.type;
  1938. var formatter = this.data.formatter || defaultFormatter;
  1939. var picker = this.getPicker();
  1940. if (type === 'time') {
  1941. var pair = value.split(':');
  1942. values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
  1943. } else {
  1944. var date = new Date(value);
  1945. values = [formatter('year', "".concat(date.getFullYear())), formatter('month', padZero(date.getMonth() + 1))];
  1946. if (type === 'date') {
  1947. values.push(formatter('day', padZero(date.getDate())));
  1948. }
  1949. if (type === 'datetime') {
  1950. values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
  1951. }
  1952. }
  1953. return this.set({
  1954. innerValue: value
  1955. }).then(function () {
  1956. return _this3.updateColumns();
  1957. }).then(function () {
  1958. return picker.setValues(values);
  1959. });
  1960. }
  1961. },
  1962. created: function created() {
  1963. var _this4 = this;
  1964. var innerValue = this.correctValue(this.data.value);
  1965. this.updateColumnValue(innerValue).then(function () {
  1966. _this4.$emit('input', innerValue);
  1967. });
  1968. }
  1969. });
  1970. /***/ }),
  1971. /***/ 1067:
  1972. /*!*****************************************************************************!*\
  1973. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/button/index.js ***!
  1974. \*****************************************************************************/
  1975. /*! no static exports found */
  1976. /***/ (function(module, exports, __webpack_require__) {
  1977. "use strict";
  1978. /* WEBPACK VAR INJECTION */(function(wx) {
  1979. var _component = __webpack_require__(/*! ../common/component */ 778);
  1980. var _button = __webpack_require__(/*! ../mixins/button */ 1068);
  1981. var _version = __webpack_require__(/*! ../common/version */ 777);
  1982. var mixins = [_button.button];
  1983. if ((0, _version.canIUseFormFieldButton)()) {
  1984. mixins.push('wx://form-field-button');
  1985. }
  1986. (0, _component.VantComponent)({
  1987. mixins: mixins,
  1988. classes: ['hover-class', 'loading-class'],
  1989. data: {
  1990. baseStyle: ''
  1991. },
  1992. props: {
  1993. formType: String,
  1994. icon: String,
  1995. classPrefix: {
  1996. type: String,
  1997. value: 'van-icon'
  1998. },
  1999. plain: Boolean,
  2000. block: Boolean,
  2001. round: Boolean,
  2002. square: Boolean,
  2003. loading: Boolean,
  2004. hairline: Boolean,
  2005. disabled: Boolean,
  2006. loadingText: String,
  2007. customStyle: String,
  2008. loadingType: {
  2009. type: String,
  2010. value: 'circular'
  2011. },
  2012. type: {
  2013. type: String,
  2014. value: 'default'
  2015. },
  2016. dataset: null,
  2017. size: {
  2018. type: String,
  2019. value: 'normal'
  2020. },
  2021. loadingSize: {
  2022. type: String,
  2023. value: '20px'
  2024. },
  2025. color: String
  2026. },
  2027. methods: {
  2028. onClick: function onClick(event) {
  2029. var _this = this;
  2030. this.$emit('click', event);
  2031. var _this$data = this.data,
  2032. canIUseGetUserProfile = _this$data.canIUseGetUserProfile,
  2033. openType = _this$data.openType,
  2034. getUserProfileDesc = _this$data.getUserProfileDesc,
  2035. lang = _this$data.lang;
  2036. if (openType === 'getUserInfo' && canIUseGetUserProfile) {
  2037. wx.getUserProfile({
  2038. desc: getUserProfileDesc || ' ',
  2039. lang: lang || 'en',
  2040. complete: function complete(userProfile) {
  2041. _this.$emit('getuserinfo', userProfile);
  2042. }
  2043. });
  2044. }
  2045. }
  2046. }
  2047. });
  2048. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  2049. /***/ }),
  2050. /***/ 1068:
  2051. /*!******************************************************************************!*\
  2052. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/mixins/button.js ***!
  2053. \******************************************************************************/
  2054. /*! no static exports found */
  2055. /***/ (function(module, exports, __webpack_require__) {
  2056. "use strict";
  2057. Object.defineProperty(exports, "__esModule", {
  2058. value: true
  2059. });
  2060. exports.button = void 0;
  2061. var _version = __webpack_require__(/*! ../common/version */ 777);
  2062. var button = Behavior({
  2063. externalClasses: ['hover-class'],
  2064. properties: {
  2065. id: String,
  2066. lang: String,
  2067. businessId: Number,
  2068. sessionFrom: String,
  2069. sendMessageTitle: String,
  2070. sendMessagePath: String,
  2071. sendMessageImg: String,
  2072. showMessageCard: Boolean,
  2073. appParameter: String,
  2074. ariaLabel: String,
  2075. openType: String,
  2076. getUserProfileDesc: String
  2077. },
  2078. data: {
  2079. canIUseGetUserProfile: (0, _version.canIUseGetUserProfile)()
  2080. },
  2081. methods: {
  2082. onGetUserInfo: function onGetUserInfo(event) {
  2083. this.triggerEvent('getuserinfo', event.detail);
  2084. },
  2085. onContact: function onContact(event) {
  2086. this.triggerEvent('contact', event.detail);
  2087. },
  2088. onGetPhoneNumber: function onGetPhoneNumber(event) {
  2089. this.triggerEvent('getphonenumber', event.detail);
  2090. },
  2091. onError: function onError(event) {
  2092. this.triggerEvent('error', event.detail);
  2093. },
  2094. onLaunchApp: function onLaunchApp(event) {
  2095. this.triggerEvent('launchapp', event.detail);
  2096. },
  2097. onOpenSetting: function onOpenSetting(event) {
  2098. this.triggerEvent('opensetting', event.detail);
  2099. },
  2100. onChooseAvatar: function onChooseAvatar(event) {
  2101. this.triggerEvent('chooseavatar', event.detail);
  2102. }
  2103. }
  2104. });
  2105. exports.button = button;
  2106. /***/ }),
  2107. /***/ 1069:
  2108. /*!******************************************************************************!*\
  2109. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/divider/index.js ***!
  2110. \******************************************************************************/
  2111. /*! no static exports found */
  2112. /***/ (function(module, exports, __webpack_require__) {
  2113. "use strict";
  2114. var _component = __webpack_require__(/*! ../common/component */ 778);
  2115. (0, _component.VantComponent)({
  2116. props: {
  2117. dashed: Boolean,
  2118. hairline: Boolean,
  2119. contentPosition: String,
  2120. fontSize: String,
  2121. borderColor: String,
  2122. textColor: String,
  2123. customStyle: String
  2124. }
  2125. });
  2126. /***/ }),
  2127. /***/ 107:
  2128. /*!**********************************************************!*\
  2129. !*** D:/work/gitlabcode/product_wx/static/mine/head.png ***!
  2130. \**********************************************************/
  2131. /*! no static exports found */
  2132. /***/ (function(module, exports) {
  2133. 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=="
  2134. /***/ }),
  2135. /***/ 108:
  2136. /*!********************************************************************!*\
  2137. !*** D:/work/gitlabcode/product_wx/pages/mine/image/rightIcon.png ***!
  2138. \********************************************************************/
  2139. /*! no static exports found */
  2140. /***/ (function(module, exports) {
  2141. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAoVJREFUOE99lM9LVFEUx79XmrQf4yaoRRDRbmjnwqyEsrLRqAhqEeQm2vRnuCpatDRoIUEYtLBmI0i9CBeSk5FGBm3KRHAadSLCwXfvfffcE/e+HzOj1t083uOdz/ue7znfJ7DlMCDwfXwQRt6Ekadg1BGQZJBaAelp2PAZXj8IxDBsc6lovuGliQLYPoHR3SAJkAKMBGxyTZ+RKoP1HXHm0de0PgPxylQ/jBoH6XwGcSBXbJIraYDC+AMU1SHMdXH2ceBgHsSVmQJYvwep/Y0i93ICiKSAVdxQqQAbueoNCO5xygQPD7fh7sA0SPXEhWkbGWgVRh2KIWm7CQjstMyib+Sk4NWPRbCZbGnH+eKh+iFI3oMJA5Dq2g5KHGJcFlybewoTDbWCUk/UW3T+uYLfqgOSA1jZFbeeKvLGAEKMCV6fXwTpozChgNWxD+nLsUdv8Gv9Kg6078FmGMA4ZR7k/HW9ubMouDavYHRu59bSqclXyOeuoVrZC8EBSHZ5s/24hMMZwbVPGkbtyia0VZH3Sy+gnfuw9nkTuYMlkC7GoEQQi8i19g2kj/1TkQm/oEOeQ6VeR4d9CVIDcWs63R63Bkv/N9vIBeToPCo/69i3uwQri9meWdMIBWNM8NqHS2CaaDE4Hj+B6TiqP5bRmS/BqmLLlmcgBrhtUPiQVsszINW9bSGtnIMOa7DRxWwht45foIypkd7miJRBKu9Dmm54S9bcBMN4NVyIyU+tjjY+4SOSNpqE9oXPWzOoBZwE1quKNmBxQ1wYaYQ2gy0FBXA4CtI9sTI/+qY/QJp8NQvWt3f8jWQwF+JbhX5EegisTsPIwyAtQHIZpN/BqOfovT/p17Dp/AUKVTZ7Eh2zPQAAAABJRU5ErkJggg=="
  2142. /***/ }),
  2143. /***/ 109:
  2144. /*!****************************************************************!*\
  2145. !*** D:/work/gitlabcode/product_wx/static/mine/youjiantou.png ***!
  2146. \****************************************************************/
  2147. /*! no static exports found */
  2148. /***/ (function(module, exports) {
  2149. 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=="
  2150. /***/ }),
  2151. /***/ 11:
  2152. /*!***************************************************************!*\
  2153. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2154. \***************************************************************/
  2155. /*! no static exports found */
  2156. /***/ (function(module, exports, __webpack_require__) {
  2157. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2158. function _defineProperty(obj, key, value) {
  2159. key = toPropertyKey(key);
  2160. if (key in obj) {
  2161. Object.defineProperty(obj, key, {
  2162. value: value,
  2163. enumerable: true,
  2164. configurable: true,
  2165. writable: true
  2166. });
  2167. } else {
  2168. obj[key] = value;
  2169. }
  2170. return obj;
  2171. }
  2172. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2173. /***/ }),
  2174. /***/ 112:
  2175. /*!*************************************************************!*\
  2176. !*** D:/work/gitlabcode/product_wx/pages/mine/image/sc.png ***!
  2177. \*************************************************************/
  2178. /*! no static exports found */
  2179. /***/ (function(module, exports) {
  2180. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABWhJREFUWEftV12IVVUU/r597ty5SjWaD2ZWakUQhVREWRSiQiAZJGEOU5FTNqKpyUgPzmjcCSlMkIupD1IKlon5UkGILxkRg5RRRPSg5M9DRlROJYLee89dsc8+P3ufn3GcMfDB+3DPvvfsvfa3v7XWt9YmrvIPr3J8uAZwrB66xuA1BsfKwFjXDxuD1Y/lJt9vveR56gkF3EtiIoE6iTMkfgRxWAQH+p/hb3lAap/K5BawCMBcAjOFmEqgHYKzQvwkgkNU2NP7FH8tOkguwFVbj7ePn3T7GwpqDZWM05MUCRJQQPAMxvoJNIHWB6BaHwHVwJrAWwp4AUBJz7U/om2Ef4igLoLauSFUq928kAaaAbh8r0ysNPE5lcyKwARADJgQmAYrIBiADN+fhY9OEK1SCfsVMCk6SLQuejpgxdiE4Jt2D/NXLOCQ/d4BuKR6snLdbdO+JPFQbDzFWgTUsGcABmAJeOCFcF0lw7bNfDjWJ7YBCPDtxOsxu3tOwqQD8JWd/ial+LrZUG8fs1M8Dg4QMhq5PgBAKBg7sQdCQNFvO1wCIPqrhVrv0+yNWIwBdm+XW+G1jpMom/gyMZe4NXFz1uVmnl6jBypwf3S4xI4XGEvi2LZjjZsNwV3rFvJUhDkA27XN71MKG+MECFlIu8phNS9p7ENlEioEG87RgN39zKGEeHPdQlYdgIvfbX4F8rEYUNq44x7j/jiTc+LUSTDLlpNoVggZ1mO2j2xYxEcdgAtr/lkSEwqkxJaVlMxE8hPGLYWKlLzQsA/khAAkDKlYGc4NLGaHA3DBFr9ljEaTU5qX1b+ULkbSYyVWnEAh2zaT6fBIsfx2l9JOSLJ8/mZ/CJQOA9KSj1hKLpEw9oZ29qfVIB0OCBl3FAB/b35e3egAnLepOUhgVq6L400S+ckEN4TUrrWrTEpWjG66NgoU4UjtReXG4OyNjQF43JBTyhK5UUbbAgkKNS7SzLSmxVpnZbVVHkOd1F4RUkGMzbhSDWzr5oDD4KyqTPdK/jEGtdOwEdZaJ1vd4DdAjWYmpS8aO1meBpqKOavW+z555/tLedoBqH88PNDcBWJJkChFOpg0CSngAbs6fIMv+3Dp7M3P5jiR9uxe5i3JVBL9x/1VuVlJ82cQN+R2LwWZnI7HbBwn7nPdnKkq/9JTd3+4LGnfMt3MzA31pRTudDZVdmZHZS2n9NlJkRLyBHRSTZx4DzJfXt6/qrS7sJuJXtzTX/+IYGfcJrlupdK+jNnMaQrS4IyeOeuSuA0PL7Lvk97Sc5fsB/WE6VWpVC42vwbwQKD4msFQNONxxFb0TkXuyja2w1Wn8N1RKXuPH1zNiyMCqCfN6JPJnt8YJDgj09U4Qmy5WiXyk6sAGV0Mqs6JNt975GAf/8hr+zMxaE+asVamiWocJjg9NytzmtBEeAmqlBpkpeZUSbw5X6w3knLZAPWCKWtlWgkGpEmcsAnNAVeUoXEXrhkO13vASSpv7uAw4DI6WHSKqavkFmlrfAbgPrdihKVLgw2qTH5T63bUwZof2F568rv+/NvgJbM4D+iENTKhjOYBisxLM5VucovCIbhgKR463/A6T2ziP0WEjApgsKjnaNukyswagOVpDcsRa6cvNNkqO46daHsNB+iPBNyIXZw21vFqvYdEjUCl6ELkXg30bU9Wnt5c3jVSYLml7nIWj19Zf9AT7KPgjuIWK0iKXxTx7Jkt5e8vx/6YARqXS8c41dhOoivvkq8U9rLStuLPd3huNOBG7eL0ZuWei12K3AaEdxriL1BWn9/Rvm+0wK4Mg/buPTLFk/pW3Wk1W+UVeI+/jxXcFWPwSgApsjFsqfs/Nx6p7f8ArUQxOKApnn4AAAAASUVORK5CYII="
  2181. /***/ }),
  2182. /***/ 113:
  2183. /*!*************************************************************!*\
  2184. !*** D:/work/gitlabcode/product_wx/pages/mine/image/hd.png ***!
  2185. \*************************************************************/
  2186. /*! no static exports found */
  2187. /***/ (function(module, exports) {
  2188. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABlBJREFUWEfdWGtsVEUY/b4tUGwsEROQ8tCQSAJRwfgI0T/qH5I1IFmK3FoeYqUsizxqAakRbWvEGiKktYEFBEqxoYDlLUqDCUZDgB8mJMQmCIZAFBBSCeVZunc+M697Z+5euiWhESQk3Z07d+bMOd/jzCLc5//wPscH/z+AzR931ADgG4yxqqOHDm2o+Om1VCYV9iy6+QojqgKg/r3ac557vRbbMr2jn98Vg3XTT/fOGzz4MjHK5gsQUQsD+GRsVfaOsA13LW5/BtyOpQA4logACIABvZW/IndrtwD8bkn7iIgLvylwYg+xL9ERYLRg3Jc5h/nY9pLreVk9aCkBTgNGEeLIxGQxvzK/OreyWwA2f9g+PEXUwkHZIAUEYoyVuggHswh+BoI+clQdQoDkXyIVE2tyP+0WgBWvHuzx/OiXdgDQC8QICYGASX4EFEb1SOwHBrCOAHqqcwAx+YmArrBUxClY2ef3bgHY1UXv5by7SpJ7uXFX17IA7l186z0AmgJA2V6ccWGY1lBnoswOLSGS+3l+9SNN5qZb5raOAYp8IeQnhkAoFtJiK9V5gnnJBkTXXWI1RevyvLUsgHs+uHkDiHqLaJFYJBAjKTgs+d0fdxklCmofWWMCbJzd6gBgY3C+D0gDs9cjgCtF6wf0Da2Duxde51yJUykMxmfNmAKvTqASJA1gw+xWB4karcOIQwcA6dNrUojg3bqBkVCAuxZcY3JfVR4sBvnCBnC9EYlEThSuetRisCF+UTGoDmyxbhxSEeLVVCAo3jgoHOCO0qsCoCcrDxtZiP26p6TXnUFCxjSA9fGLDhIYDIYz54WRJgMAZtYPDgfYVNJ2GwB6CKb8LLFlNpjQTDOgxNTV/SwG62dccAiw0YxVc11bKV3QCRiAm/hmSM9QibfOu9yAgIVSYTs5/DEr6wR/jFji7bWPWQA3zLigGDTY1/EdFkae1LQ50fDElFCAfHDb3Kv9slgqh3++lalYqQk9sztaJ63qf82cvmYm5WS55/uFLnEzfZQvxTrwxrxv8y6ZTx+sQs2Rb078M5IYG8o/W0bP9b+55hFdAKTI0Xc29r9gDq8vujSQpW6/KOeqN1Lmmq43rGf0uu0eTux88mKnDDYkLiWBQVwm8x2y14sl+ZwBxYrrBu02F1497S8HiYks9suWnww6exkQimIhvCJGS7YNbe4U4Mbiv5OIMEu0pkCiWPZJg5cuNFa8yQa4cvJZJwIgOon6r9qjSr4AcLEci0RLtncBIBDEfXCBVmf0Tr/MYGxWCEAgatQ9W9dNxadsl17hl9XUJYou3D6scwbris4nASF+B1Oq2DCk4hMjEJu16XFL4tqC0w4KBn2jodueNLHKR5oHRsgMcH3RuSQQxjU7vnHQUmmJ/A0YYWzO5nSAnMFgDJq9OWg6UsyNlu0e0TmDX08/l0QgK0m8E/O+y4MakLyuILw+xeZsHWoxWP0mZ5ApBtV7/tnseFRJx4AyA1w7/c+kiEFDhmAcmcnCGXYJYvPTAJ5yiKDR7kom+2ZsK/vmQrRsXwYGV089m0TgEvumwSwTMrh16VAyuxib32QzuHzCKQeRS5zuH83yZcrMiEU/2vd05xKvmnwmiYjxMNasxDEYZsRipU3DLImXTzjhEKEAqD1m8K9thMXTzABXFp5JIvBCHVKvAmXBOwRQGsBl4084iNxuBRn0LZyZ4XwtlzBavj8Dg7WFp5PIs9hzzIENAiD5PM7gop3DLQaXjW+RDOoyY74XML5enAKLlu9/tnOJawr+EAC1w5Us+d0gDTh/jpQGsGpsi2LQbplei/Pp8y5fgF0AWD2JA5S92LowGRbfdMGCQQaxsr02gxwgiTroXxPMmupdRazG2xWAE0+uAMASXu+kaw0xr4bxlJuyWNnepyyJP4sedwBRtjrjhqgUD7WJ5NLLFT+OOtKpWViRf3ISAGyxK35IJhrAXUaxJd/bACujx50Iv5OYZiENlrjP6NGruW19B5QeHmLZ2TTDyn9/ebjvoF8AaHTahUn/muX9KKTbHaQDHHPMQYzIe7GAkcEbM3q//MComuAZQt+qGHcu5yFsK8MIxIjRMCLoldabjazkDJY3j7QkrhxzTEosKSLvj4dADF8BwF+J0VcVB0btCdP9wbP8odH7Hw7e9wz+C5qpf3QUxv2+AAAAAElFTkSuQmCC"
  2189. /***/ }),
  2190. /***/ 114:
  2191. /*!*************************************************************!*\
  2192. !*** D:/work/gitlabcode/product_wx/pages/mine/image/dd.png ***!
  2193. \*************************************************************/
  2194. /*! no static exports found */
  2195. /***/ (function(module, exports) {
  2196. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABdFJREFUWEftWFuIVVUY/teZGZ1hhpnhaEVUYmV0h0pMQRkSupqVKaZlZJpYk5U6TA/hi+FLPQSBhDRMEUOJlGk3c5uZmolGE14qBKkQIuoh0ibHuZyz/y/Wda+1zzFXTg8+eJg5Z+991tnr+2/f//1b0Dn+Euc4PjoPcKQRGpEHcaizEaWBBMBUAkj9EwhgEoA8ktf6iMsP107r2Xo2YE8LEESCDnU8RUTziHAh2AAASDTjZnHV2iH0ts9ixiYLzgAiAiuw7pywvW5az10SYGn3I2vAmAOwkPgF8QCnvGd0PV4SbZt+yxtxWoDpwZUrBegV6RG7od20AJ4gJq37Gb1Lr0nLdJiAWrVGe4ygvOmdM68dddv65QrgznmfgvluDzyRNv7YqFJpopi55bgP8rQA+cCK7wl8nd5Qe8SGkMBdNZO7pHdpeN+iyTUoTEkpJflHJIHJD/NJfLxubGmDuP694eEv5k4k0D6Aa/X9WBtjDBPML4yeseXlOIC9zw4BXGd/rG4mbySt1V7dyCnvrQLIXFJoiVINFMRFASwDoehSwhpuABJ4c/29yZwogOk37dI8E65cyKw3c54NPG0NcmuzAnLRsLlqvCiApP6+z2bEAfz6SQ439EKdWRyEKJ+rwblLkSxd8rlKQNLwwI44gOV9TygPhvTh5U0uPHIzRS1ecVTLs8p8toWlqClpeHBXJMC9i0yIjcWmmrXV9l8nueQL5w1DLxpsuK4aIzhKAqhAlDTM/jIOYGnPY1wZMplH/A6ReI1Qlif6VZJvZS91SuEpld23BS63cEpdBB7nE7s2mpLGuXvjAA7vXsCiItGZBKdtdXds/upsuoL9Tf/7bd1EWOwzhAwQEZLGh/ZHAtw5X+cgSUd6YWTsJ/CHiksM16Xq2HCg/ZSk6F1jw48FxlgQlhFQH5K7IvakaX5vJMAdc1mTqEfSNq+Ca4ZsbR9mCEHyp2GBOVK2xMyaV11hKRbipGnBgUiA22drgJ4AcFVJRCr8AQjTf6sWRrWiytONjBIlTY8ejAM4tG0WI+epUBSEgPxK1lRiQu4ZkY+IPAezEKZCBHPStPCHOICDW2fqXcwGlt8AOiyYN8vQ6xR0PVfnZNaDXQ7qZfJdch01EuMZEOscDKKEpPnxI5EAt9zjAPocR6loa5j9+YiquK/nxi5BWCLBsfSgTkQJNmlefDQO4MDHd+Y8aHopc7fg9I2MZgz/KS5UbyEfBpfK0oetAHUDfEnmPZfPScuSnyIBfnR72Iud1vOrOpRLMBXsCitTPqGA9UVC2BqTlqXHIgF+ML0CYBDqKsI0EKuu+j3BmxcZTgsaoxlJS/svcQBPbWqrUDN23siEqy8efN7zKSjr5fk+7gxyqp2S1qd/jQPYv3FqpmYM3ShaAHYXCEd0J4GkZMkSUskaapGHumJtRXPKRrmrG4wj8Aw9Puh7uEGLKGld9nskwHenZGomo5vBxoubm8X0Xb4y+M9t+cS6S38k8BWq+zqq0XKr9bk/4gCe3DDJeDAfIm6vLZQTh2pAHg3+C8hB9bVbUSiNF6jbBsIo7eFMD0o1U1zxZyTA9bdkkj8/2dnK88KjOkdOrDrvVCF8b7bxW2ZS7PgrDuDfb9+k9WBVejEqJy9ePSC+EgpllRGyOaNVHjInYzr7IwH23FDVg5mAyDX7Ci/nlZA3zDt+tHOOnvuIKB5g31vXep3ESEOv6irmZSf1Q/kVyCyP9zJDs/SVaqYY68G+N68uEXGNeuRhQ6fDkJ17TxCydU7lCNU+cuvVbK3uJzWbdRyRUMf4pNh56v6osfNE95VHBWFCMNlZ7goklD9U5YjbH7Q0p5yJkl4d09nfEQfw9ctXCcFrguHdI+xMG5onWUHBmCdcdtqzO9oHLdVwgoZEDd1a7Oj/Lgrg6tVUWH7RZasEYSGBxwMo5MfL/LOVQNDaMOZ3qwR3UhB9myJ98YLnB3flXTyi54Nnitf/8f15gCP14jnvwX8AyXWdg8mB6asAAAAASUVORK5CYII="
  2197. /***/ }),
  2198. /***/ 115:
  2199. /*!*************************************************************!*\
  2200. !*** D:/work/gitlabcode/product_wx/pages/mine/image/fk.png ***!
  2201. \*************************************************************/
  2202. /*! no static exports found */
  2203. /***/ (function(module, exports) {
  2204. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABVNJREFUWEftl21ollUYx6/7USb0IWTQlz4EfSiiN9rDXI9bOmWY9iI6hiZT1oe+JEX0xspqupassUQstEwJkQgp3ZegF7cx19B799MYKytrWL4VoRELBXHYnnPFeb/Oue/nQPoECj1sbPf9nPvcv3Nd/3Nd/xPBNf6JrnE++B/wajN0/UWw7ddd+xGiFgQERP0LgMhEMMQ98Z24sGPUPf2c/I6OFxcgH3Of4zeZnPDAYL5jNY16KoLrzuxiFI4P5g/zSeULKLSY1H0hH6bumQURIDkf44PIXGrBgDBUuykXBGw9vZP5K3SipSPFWIQRZxNvIpG1wClADa6jSxcrJmEwXNcVBnzs5LvMTZ1NiRstEqnM1ElZ2MjreZQ0DJyUjkgxIowUNocBV/2yXQL6GpRhSukqDaAiqCOt5UHmk5GV8L5Oj9R3hwFbjr8jUiyj5etEa9G7L0LALiDCBEaIyDCPADeKjeXMwcTCjSQy5h99oCcM2Dy5TWwSm2YJQ6/5a8y10RVL+ms66jlr0/jrMSIU+DLlOJGUlE6zNFpc0BsGXPHTVhnBrHSqEsHF7L5QhDAZzG8UgIu+7owhggIyri9aUtwS4wCqcWONW8KAy49tsYB+zfJrINUVYjI0r1MANhY3xohYcMpVoAba2oowvnhrGPCR73tNmclaodQnlxytgTxOLPmqrksALkxeixkHdApyurCTAm1q6UTTtjDgQ0d7bB2kgvZSZSQAupRAMlJ4QwA2xK/ICKqIO3IhWRDaNDqVm/LbJW+HAZd+0006iV+zuIZKtuXpCEkpJEfquwXg/MMvO4Cm0DtdSOlYbzj13XcPbg8DLpnYrCKoapWzE2Uv5UvVhdX0VoBktOFNAVg30h6DiaA7j3nOKzG6T/+wbEcYsGm8ywKq9mO0VKbRy++jpLiwRwDOG34xRqAapKXKKzcMI147ZSAZ/PjwzjDg4rFOZqq8Liv8L5N6sbDWNCiNFccWvTWfA+YPPRcDr4PlHI2jQ9u1+AsmH30/DNhY7JBZII1dWqG0TdK1UIxmeBIZ9AKUgEHUDoC3ZkU+NY+KoHwFwvHlu8OAC0Zf5TyRiI/po8Qi0T4tIkvKjbeILP/n2C2/5wPAiRUfhAEb4g1MhdBpTbZ/ep6QmggTjTKWixiItDOSu/pU854wYOHwS6rVUleiGrzn33j0dJ8GgDPI2HuiuSGsR2S3OMYg5WbSLZA/eLplbxjw/pF2EUHraFxLZE2Cr0lIji3bIXbxHZ8/qeqgHOO7bq3DrJLz26oPw4C1wy/ICJZp8iDSKJ00/QWEsUuXLy3lL6+aXdWPgLVyE6mzDH/OGHDqjuwZh//3++qPwoD5oedlHaTa8s4dxitmHJqy3ItrzbIcuq2NZ9fsCwPeN/is4wf9EpOCI7pMHaCMPdN6duGs4bCAf7R+HAa8t/8ZC1j2iGjSRqTgGdtMy0+6iNlgbmf5c93+MODdB582KXZObH71D4hfdhxiao1k0q5aNwUtg6m2vjDgnV88NYnIbqMmMn2GtabBtDNnU9Fzh9vK3HO1bZ98c0UIP0893ne7aFvqkzq43/XlE9UlVnXPDMwA/6Efeg8xqgYo7UbEahqxjJY4zTBajzBzysxlpnZfgLMuHz2/9rO/goAuUvjq5gNtNTnEAQFpvKGqoQz4+W56JsKVU2s/Ofhv5q0YIJ/opn1ramZDbgBBQVoXPl1ipeaptr4rhhNpv9KV0ec4ZMTYAAKISALCNEN21XAVA+QTzd3bUjMrl+PpvgEAKwJXUUABuWfl3L/nsDkXWz89V4nMVBywUlAV3ST/BdR1BfgPUTQPoWOBrGMAAAAASUVORK5CYII="
  2205. /***/ }),
  2206. /***/ 12:
  2207. /*!**************************************************************!*\
  2208. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2209. \**************************************************************/
  2210. /*! no static exports found */
  2211. /***/ (function(module, exports, __webpack_require__) {
  2212. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2213. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2214. function toPropertyKey(t) {
  2215. var i = toPrimitive(t, "string");
  2216. return "symbol" == _typeof(i) ? i : i + "";
  2217. }
  2218. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2219. /***/ }),
  2220. /***/ 13:
  2221. /*!*******************************************************!*\
  2222. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2223. \*******************************************************/
  2224. /*! no static exports found */
  2225. /***/ (function(module, exports) {
  2226. function _typeof(o) {
  2227. "@babel/helpers - typeof";
  2228. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2229. return typeof o;
  2230. } : function (o) {
  2231. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2232. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2233. }
  2234. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2235. /***/ }),
  2236. /***/ 14:
  2237. /*!************************************************************!*\
  2238. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2239. \************************************************************/
  2240. /*! no static exports found */
  2241. /***/ (function(module, exports, __webpack_require__) {
  2242. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2243. function toPrimitive(t, r) {
  2244. if ("object" != _typeof(t) || !t) return t;
  2245. var e = t[Symbol.toPrimitive];
  2246. if (void 0 !== e) {
  2247. var i = e.call(t, r || "default");
  2248. if ("object" != _typeof(i)) return i;
  2249. throw new TypeError("@@toPrimitive must return a primitive value.");
  2250. }
  2251. return ("string" === r ? String : Number)(t);
  2252. }
  2253. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2254. /***/ }),
  2255. /***/ 15:
  2256. /*!**********************************************************!*\
  2257. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2258. \**********************************************************/
  2259. /*! no static exports found */
  2260. /***/ (function(module, exports, __webpack_require__) {
  2261. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2262. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2263. function _construct(t, e, r) {
  2264. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2265. var o = [null];
  2266. o.push.apply(o, e);
  2267. var p = new (t.bind.apply(t, o))();
  2268. return r && setPrototypeOf(p, r.prototype), p;
  2269. }
  2270. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2271. /***/ }),
  2272. /***/ 16:
  2273. /*!***************************************************************!*\
  2274. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2275. \***************************************************************/
  2276. /*! no static exports found */
  2277. /***/ (function(module, exports) {
  2278. function _setPrototypeOf(o, p) {
  2279. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2280. o.__proto__ = p;
  2281. return o;
  2282. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2283. return _setPrototypeOf(o, p);
  2284. }
  2285. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2286. /***/ }),
  2287. /***/ 17:
  2288. /*!*************************************************************************!*\
  2289. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2290. \*************************************************************************/
  2291. /*! no static exports found */
  2292. /***/ (function(module, exports) {
  2293. function _isNativeReflectConstruct() {
  2294. try {
  2295. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2296. } catch (t) {}
  2297. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2298. return !!t;
  2299. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2300. }
  2301. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2302. /***/ }),
  2303. /***/ 18:
  2304. /*!******************************************************************!*\
  2305. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2306. \******************************************************************/
  2307. /*! no static exports found */
  2308. /***/ (function(module, exports, __webpack_require__) {
  2309. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2310. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2311. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2312. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2313. function _toConsumableArray(arr) {
  2314. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2315. }
  2316. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2317. /***/ }),
  2318. /***/ 19:
  2319. /*!******************************************************************!*\
  2320. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2321. \******************************************************************/
  2322. /*! no static exports found */
  2323. /***/ (function(module, exports, __webpack_require__) {
  2324. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2325. function _arrayWithoutHoles(arr) {
  2326. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2327. }
  2328. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2329. /***/ }),
  2330. /***/ 2:
  2331. /*!************************************************************!*\
  2332. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  2333. \************************************************************/
  2334. /*! no static exports found */
  2335. /***/ (function(module, exports, __webpack_require__) {
  2336. "use strict";
  2337. /* WEBPACK VAR INJECTION */(function(wx, global) {
  2338. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2339. Object.defineProperty(exports, "__esModule", {
  2340. value: true
  2341. });
  2342. exports.createApp = createApp;
  2343. exports.createComponent = createComponent;
  2344. exports.createPage = createPage;
  2345. exports.createPlugin = createPlugin;
  2346. exports.createSubpackageApp = createSubpackageApp;
  2347. exports.default = void 0;
  2348. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2349. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  2350. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  2351. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  2352. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2353. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  2354. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  2355. 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; }
  2356. 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; }
  2357. var realAtob;
  2358. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  2359. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  2360. if (typeof atob !== 'function') {
  2361. realAtob = function realAtob(str) {
  2362. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  2363. if (!b64re.test(str)) {
  2364. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  2365. }
  2366. // Adding the padding if missing, for semplicity
  2367. str += '=='.slice(2 - (str.length & 3));
  2368. var bitmap;
  2369. var result = '';
  2370. var r1;
  2371. var r2;
  2372. var i = 0;
  2373. for (; i < str.length;) {
  2374. 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++)));
  2375. 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);
  2376. }
  2377. return result;
  2378. };
  2379. } else {
  2380. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  2381. realAtob = atob;
  2382. }
  2383. function b64DecodeUnicode(str) {
  2384. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  2385. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  2386. }).join(''));
  2387. }
  2388. function getCurrentUserInfo() {
  2389. var token = wx.getStorageSync('uni_id_token') || '';
  2390. var tokenArr = token.split('.');
  2391. if (!token || tokenArr.length !== 3) {
  2392. return {
  2393. uid: null,
  2394. role: [],
  2395. permission: [],
  2396. tokenExpired: 0
  2397. };
  2398. }
  2399. var userInfo;
  2400. try {
  2401. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  2402. } catch (error) {
  2403. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  2404. }
  2405. userInfo.tokenExpired = userInfo.exp * 1000;
  2406. delete userInfo.exp;
  2407. delete userInfo.iat;
  2408. return userInfo;
  2409. }
  2410. function uniIdMixin(Vue) {
  2411. Vue.prototype.uniIDHasRole = function (roleId) {
  2412. var _getCurrentUserInfo = getCurrentUserInfo(),
  2413. role = _getCurrentUserInfo.role;
  2414. return role.indexOf(roleId) > -1;
  2415. };
  2416. Vue.prototype.uniIDHasPermission = function (permissionId) {
  2417. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  2418. permission = _getCurrentUserInfo2.permission;
  2419. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  2420. };
  2421. Vue.prototype.uniIDTokenValid = function () {
  2422. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  2423. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  2424. return tokenExpired > Date.now();
  2425. };
  2426. }
  2427. var _toString = Object.prototype.toString;
  2428. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2429. function isFn(fn) {
  2430. return typeof fn === 'function';
  2431. }
  2432. function isStr(str) {
  2433. return typeof str === 'string';
  2434. }
  2435. function isObject(obj) {
  2436. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  2437. }
  2438. function isPlainObject(obj) {
  2439. return _toString.call(obj) === '[object Object]';
  2440. }
  2441. function hasOwn(obj, key) {
  2442. return hasOwnProperty.call(obj, key);
  2443. }
  2444. function noop() {}
  2445. /**
  2446. * Create a cached version of a pure function.
  2447. */
  2448. function cached(fn) {
  2449. var cache = Object.create(null);
  2450. return function cachedFn(str) {
  2451. var hit = cache[str];
  2452. return hit || (cache[str] = fn(str));
  2453. };
  2454. }
  2455. /**
  2456. * Camelize a hyphen-delimited string.
  2457. */
  2458. var camelizeRE = /-(\w)/g;
  2459. var camelize = cached(function (str) {
  2460. return str.replace(camelizeRE, function (_, c) {
  2461. return c ? c.toUpperCase() : '';
  2462. });
  2463. });
  2464. function sortObject(obj) {
  2465. var sortObj = {};
  2466. if (isPlainObject(obj)) {
  2467. Object.keys(obj).sort().forEach(function (key) {
  2468. sortObj[key] = obj[key];
  2469. });
  2470. }
  2471. return !Object.keys(sortObj) ? obj : sortObj;
  2472. }
  2473. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  2474. var globalInterceptors = {};
  2475. var scopedInterceptors = {};
  2476. function mergeHook(parentVal, childVal) {
  2477. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  2478. return res ? dedupeHooks(res) : res;
  2479. }
  2480. function dedupeHooks(hooks) {
  2481. var res = [];
  2482. for (var i = 0; i < hooks.length; i++) {
  2483. if (res.indexOf(hooks[i]) === -1) {
  2484. res.push(hooks[i]);
  2485. }
  2486. }
  2487. return res;
  2488. }
  2489. function removeHook(hooks, hook) {
  2490. var index = hooks.indexOf(hook);
  2491. if (index !== -1) {
  2492. hooks.splice(index, 1);
  2493. }
  2494. }
  2495. function mergeInterceptorHook(interceptor, option) {
  2496. Object.keys(option).forEach(function (hook) {
  2497. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  2498. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  2499. }
  2500. });
  2501. }
  2502. function removeInterceptorHook(interceptor, option) {
  2503. if (!interceptor || !option) {
  2504. return;
  2505. }
  2506. Object.keys(option).forEach(function (hook) {
  2507. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  2508. removeHook(interceptor[hook], option[hook]);
  2509. }
  2510. });
  2511. }
  2512. function addInterceptor(method, option) {
  2513. if (typeof method === 'string' && isPlainObject(option)) {
  2514. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  2515. } else if (isPlainObject(method)) {
  2516. mergeInterceptorHook(globalInterceptors, method);
  2517. }
  2518. }
  2519. function removeInterceptor(method, option) {
  2520. if (typeof method === 'string') {
  2521. if (isPlainObject(option)) {
  2522. removeInterceptorHook(scopedInterceptors[method], option);
  2523. } else {
  2524. delete scopedInterceptors[method];
  2525. }
  2526. } else if (isPlainObject(method)) {
  2527. removeInterceptorHook(globalInterceptors, method);
  2528. }
  2529. }
  2530. function wrapperHook(hook, params) {
  2531. return function (data) {
  2532. return hook(data, params) || data;
  2533. };
  2534. }
  2535. function isPromise(obj) {
  2536. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  2537. }
  2538. function queue(hooks, data, params) {
  2539. var promise = false;
  2540. for (var i = 0; i < hooks.length; i++) {
  2541. var hook = hooks[i];
  2542. if (promise) {
  2543. promise = Promise.resolve(wrapperHook(hook, params));
  2544. } else {
  2545. var res = hook(data, params);
  2546. if (isPromise(res)) {
  2547. promise = Promise.resolve(res);
  2548. }
  2549. if (res === false) {
  2550. return {
  2551. then: function then() {}
  2552. };
  2553. }
  2554. }
  2555. }
  2556. return promise || {
  2557. then: function then(callback) {
  2558. return callback(data);
  2559. }
  2560. };
  2561. }
  2562. function wrapperOptions(interceptor) {
  2563. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2564. ['success', 'fail', 'complete'].forEach(function (name) {
  2565. if (Array.isArray(interceptor[name])) {
  2566. var oldCallback = options[name];
  2567. options[name] = function callbackInterceptor(res) {
  2568. queue(interceptor[name], res, options).then(function (res) {
  2569. /* eslint-disable no-mixed-operators */
  2570. return isFn(oldCallback) && oldCallback(res) || res;
  2571. });
  2572. };
  2573. }
  2574. });
  2575. return options;
  2576. }
  2577. function wrapperReturnValue(method, returnValue) {
  2578. var returnValueHooks = [];
  2579. if (Array.isArray(globalInterceptors.returnValue)) {
  2580. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  2581. }
  2582. var interceptor = scopedInterceptors[method];
  2583. if (interceptor && Array.isArray(interceptor.returnValue)) {
  2584. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  2585. }
  2586. returnValueHooks.forEach(function (hook) {
  2587. returnValue = hook(returnValue) || returnValue;
  2588. });
  2589. return returnValue;
  2590. }
  2591. function getApiInterceptorHooks(method) {
  2592. var interceptor = Object.create(null);
  2593. Object.keys(globalInterceptors).forEach(function (hook) {
  2594. if (hook !== 'returnValue') {
  2595. interceptor[hook] = globalInterceptors[hook].slice();
  2596. }
  2597. });
  2598. var scopedInterceptor = scopedInterceptors[method];
  2599. if (scopedInterceptor) {
  2600. Object.keys(scopedInterceptor).forEach(function (hook) {
  2601. if (hook !== 'returnValue') {
  2602. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  2603. }
  2604. });
  2605. }
  2606. return interceptor;
  2607. }
  2608. function invokeApi(method, api, options) {
  2609. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  2610. params[_key - 3] = arguments[_key];
  2611. }
  2612. var interceptor = getApiInterceptorHooks(method);
  2613. if (interceptor && Object.keys(interceptor).length) {
  2614. if (Array.isArray(interceptor.invoke)) {
  2615. var res = queue(interceptor.invoke, options);
  2616. return res.then(function (options) {
  2617. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  2618. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  2619. });
  2620. } else {
  2621. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  2622. }
  2623. }
  2624. return api.apply(void 0, [options].concat(params));
  2625. }
  2626. var promiseInterceptor = {
  2627. returnValue: function returnValue(res) {
  2628. if (!isPromise(res)) {
  2629. return res;
  2630. }
  2631. return new Promise(function (resolve, reject) {
  2632. res.then(function (res) {
  2633. if (res[0]) {
  2634. reject(res[0]);
  2635. } else {
  2636. resolve(res[1]);
  2637. }
  2638. });
  2639. });
  2640. }
  2641. };
  2642. 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/;
  2643. var CONTEXT_API_RE = /^create|Manager$/;
  2644. // Context例外情况
  2645. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  2646. // 同步例外情况
  2647. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  2648. var CALLBACK_API_RE = /^on|^off/;
  2649. function isContextApi(name) {
  2650. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  2651. }
  2652. function isSyncApi(name) {
  2653. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  2654. }
  2655. function isCallbackApi(name) {
  2656. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  2657. }
  2658. function handlePromise(promise) {
  2659. return promise.then(function (data) {
  2660. return [null, data];
  2661. }).catch(function (err) {
  2662. return [err];
  2663. });
  2664. }
  2665. function shouldPromise(name) {
  2666. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  2667. return false;
  2668. }
  2669. return true;
  2670. }
  2671. /* eslint-disable no-extend-native */
  2672. if (!Promise.prototype.finally) {
  2673. Promise.prototype.finally = function (callback) {
  2674. var promise = this.constructor;
  2675. return this.then(function (value) {
  2676. return promise.resolve(callback()).then(function () {
  2677. return value;
  2678. });
  2679. }, function (reason) {
  2680. return promise.resolve(callback()).then(function () {
  2681. throw reason;
  2682. });
  2683. });
  2684. };
  2685. }
  2686. function promisify(name, api) {
  2687. if (!shouldPromise(name) || !isFn(api)) {
  2688. return api;
  2689. }
  2690. return function promiseApi() {
  2691. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2692. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  2693. params[_key2 - 1] = arguments[_key2];
  2694. }
  2695. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  2696. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  2697. }
  2698. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  2699. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  2700. success: resolve,
  2701. fail: reject
  2702. })].concat(params));
  2703. })));
  2704. };
  2705. }
  2706. var EPS = 1e-4;
  2707. var BASE_DEVICE_WIDTH = 750;
  2708. var isIOS = false;
  2709. var deviceWidth = 0;
  2710. var deviceDPR = 0;
  2711. function checkDeviceWidth() {
  2712. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  2713. platform = _wx$getSystemInfoSync.platform,
  2714. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  2715. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  2716. deviceWidth = windowWidth;
  2717. deviceDPR = pixelRatio;
  2718. isIOS = platform === 'ios';
  2719. }
  2720. function upx2px(number, newDeviceWidth) {
  2721. if (deviceWidth === 0) {
  2722. checkDeviceWidth();
  2723. }
  2724. number = Number(number);
  2725. if (number === 0) {
  2726. return 0;
  2727. }
  2728. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  2729. if (result < 0) {
  2730. result = -result;
  2731. }
  2732. result = Math.floor(result + EPS);
  2733. if (result === 0) {
  2734. if (deviceDPR === 1 || !isIOS) {
  2735. result = 1;
  2736. } else {
  2737. result = 0.5;
  2738. }
  2739. }
  2740. return number < 0 ? -result : result;
  2741. }
  2742. var LOCALE_ZH_HANS = 'zh-Hans';
  2743. var LOCALE_ZH_HANT = 'zh-Hant';
  2744. var LOCALE_EN = 'en';
  2745. var LOCALE_FR = 'fr';
  2746. var LOCALE_ES = 'es';
  2747. var messages = {};
  2748. var locale;
  2749. {
  2750. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  2751. }
  2752. function initI18nMessages() {
  2753. if (!isEnableLocale()) {
  2754. return;
  2755. }
  2756. var localeKeys = Object.keys(__uniConfig.locales);
  2757. if (localeKeys.length) {
  2758. localeKeys.forEach(function (locale) {
  2759. var curMessages = messages[locale];
  2760. var userMessages = __uniConfig.locales[locale];
  2761. if (curMessages) {
  2762. Object.assign(curMessages, userMessages);
  2763. } else {
  2764. messages[locale] = userMessages;
  2765. }
  2766. });
  2767. }
  2768. }
  2769. initI18nMessages();
  2770. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  2771. var t = i18n.t;
  2772. var i18nMixin = i18n.mixin = {
  2773. beforeCreate: function beforeCreate() {
  2774. var _this = this;
  2775. var unwatch = i18n.i18n.watchLocale(function () {
  2776. _this.$forceUpdate();
  2777. });
  2778. this.$once('hook:beforeDestroy', function () {
  2779. unwatch();
  2780. });
  2781. },
  2782. methods: {
  2783. $$t: function $$t(key, values) {
  2784. return t(key, values);
  2785. }
  2786. }
  2787. };
  2788. var setLocale = i18n.setLocale;
  2789. var getLocale = i18n.getLocale;
  2790. function initAppLocale(Vue, appVm, locale) {
  2791. var state = Vue.observable({
  2792. locale: locale || i18n.getLocale()
  2793. });
  2794. var localeWatchers = [];
  2795. appVm.$watchLocale = function (fn) {
  2796. localeWatchers.push(fn);
  2797. };
  2798. Object.defineProperty(appVm, '$locale', {
  2799. get: function get() {
  2800. return state.locale;
  2801. },
  2802. set: function set(v) {
  2803. state.locale = v;
  2804. localeWatchers.forEach(function (watch) {
  2805. return watch(v);
  2806. });
  2807. }
  2808. });
  2809. }
  2810. function isEnableLocale() {
  2811. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  2812. }
  2813. function include(str, parts) {
  2814. return !!parts.find(function (part) {
  2815. return str.indexOf(part) !== -1;
  2816. });
  2817. }
  2818. function startsWith(str, parts) {
  2819. return parts.find(function (part) {
  2820. return str.indexOf(part) === 0;
  2821. });
  2822. }
  2823. function normalizeLocale(locale, messages) {
  2824. if (!locale) {
  2825. return;
  2826. }
  2827. locale = locale.trim().replace(/_/g, '-');
  2828. if (messages && messages[locale]) {
  2829. return locale;
  2830. }
  2831. locale = locale.toLowerCase();
  2832. if (locale === 'chinese') {
  2833. // 支付宝
  2834. return LOCALE_ZH_HANS;
  2835. }
  2836. if (locale.indexOf('zh') === 0) {
  2837. if (locale.indexOf('-hans') > -1) {
  2838. return LOCALE_ZH_HANS;
  2839. }
  2840. if (locale.indexOf('-hant') > -1) {
  2841. return LOCALE_ZH_HANT;
  2842. }
  2843. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2844. return LOCALE_ZH_HANT;
  2845. }
  2846. return LOCALE_ZH_HANS;
  2847. }
  2848. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  2849. if (lang) {
  2850. return lang;
  2851. }
  2852. }
  2853. // export function initI18n() {
  2854. // const localeKeys = Object.keys(__uniConfig.locales || {})
  2855. // if (localeKeys.length) {
  2856. // localeKeys.forEach((locale) =>
  2857. // i18n.add(locale, __uniConfig.locales[locale])
  2858. // )
  2859. // }
  2860. // }
  2861. function getLocale$1() {
  2862. // 优先使用 $locale
  2863. if (isFn(getApp)) {
  2864. var app = getApp({
  2865. allowDefault: true
  2866. });
  2867. if (app && app.$vm) {
  2868. return app.$vm.$locale;
  2869. }
  2870. }
  2871. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  2872. }
  2873. function setLocale$1(locale) {
  2874. var app = isFn(getApp) ? getApp() : false;
  2875. if (!app) {
  2876. return false;
  2877. }
  2878. var oldLocale = app.$vm.$locale;
  2879. if (oldLocale !== locale) {
  2880. app.$vm.$locale = locale;
  2881. onLocaleChangeCallbacks.forEach(function (fn) {
  2882. return fn({
  2883. locale: locale
  2884. });
  2885. });
  2886. return true;
  2887. }
  2888. return false;
  2889. }
  2890. var onLocaleChangeCallbacks = [];
  2891. function onLocaleChange(fn) {
  2892. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  2893. onLocaleChangeCallbacks.push(fn);
  2894. }
  2895. }
  2896. if (typeof global !== 'undefined') {
  2897. global.getLocale = getLocale$1;
  2898. }
  2899. var interceptors = {
  2900. promiseInterceptor: promiseInterceptor
  2901. };
  2902. var baseApi = /*#__PURE__*/Object.freeze({
  2903. __proto__: null,
  2904. upx2px: upx2px,
  2905. getLocale: getLocale$1,
  2906. setLocale: setLocale$1,
  2907. onLocaleChange: onLocaleChange,
  2908. addInterceptor: addInterceptor,
  2909. removeInterceptor: removeInterceptor,
  2910. interceptors: interceptors
  2911. });
  2912. function findExistsPageIndex(url) {
  2913. var pages = getCurrentPages();
  2914. var len = pages.length;
  2915. while (len--) {
  2916. var page = pages[len];
  2917. if (page.$page && page.$page.fullPath === url) {
  2918. return len;
  2919. }
  2920. }
  2921. return -1;
  2922. }
  2923. var redirectTo = {
  2924. name: function name(fromArgs) {
  2925. if (fromArgs.exists === 'back' && fromArgs.delta) {
  2926. return 'navigateBack';
  2927. }
  2928. return 'redirectTo';
  2929. },
  2930. args: function args(fromArgs) {
  2931. if (fromArgs.exists === 'back' && fromArgs.url) {
  2932. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  2933. if (existsPageIndex !== -1) {
  2934. var delta = getCurrentPages().length - 1 - existsPageIndex;
  2935. if (delta > 0) {
  2936. fromArgs.delta = delta;
  2937. }
  2938. }
  2939. }
  2940. }
  2941. };
  2942. var previewImage = {
  2943. args: function args(fromArgs) {
  2944. var currentIndex = parseInt(fromArgs.current);
  2945. if (isNaN(currentIndex)) {
  2946. return;
  2947. }
  2948. var urls = fromArgs.urls;
  2949. if (!Array.isArray(urls)) {
  2950. return;
  2951. }
  2952. var len = urls.length;
  2953. if (!len) {
  2954. return;
  2955. }
  2956. if (currentIndex < 0) {
  2957. currentIndex = 0;
  2958. } else if (currentIndex >= len) {
  2959. currentIndex = len - 1;
  2960. }
  2961. if (currentIndex > 0) {
  2962. fromArgs.current = urls[currentIndex];
  2963. fromArgs.urls = urls.filter(function (item, index) {
  2964. return index < currentIndex ? item !== urls[currentIndex] : true;
  2965. });
  2966. } else {
  2967. fromArgs.current = urls[0];
  2968. }
  2969. return {
  2970. indicator: false,
  2971. loop: false
  2972. };
  2973. }
  2974. };
  2975. var UUID_KEY = '__DC_STAT_UUID';
  2976. var deviceId;
  2977. function useDeviceId(result) {
  2978. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  2979. if (!deviceId) {
  2980. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  2981. wx.setStorage({
  2982. key: UUID_KEY,
  2983. data: deviceId
  2984. });
  2985. }
  2986. result.deviceId = deviceId;
  2987. }
  2988. function addSafeAreaInsets(result) {
  2989. if (result.safeArea) {
  2990. var safeArea = result.safeArea;
  2991. result.safeAreaInsets = {
  2992. top: safeArea.top,
  2993. left: safeArea.left,
  2994. right: result.windowWidth - safeArea.right,
  2995. bottom: result.screenHeight - safeArea.bottom
  2996. };
  2997. }
  2998. }
  2999. function populateParameters(result) {
  3000. var _result$brand = result.brand,
  3001. brand = _result$brand === void 0 ? '' : _result$brand,
  3002. _result$model = result.model,
  3003. model = _result$model === void 0 ? '' : _result$model,
  3004. _result$system = result.system,
  3005. system = _result$system === void 0 ? '' : _result$system,
  3006. _result$language = result.language,
  3007. language = _result$language === void 0 ? '' : _result$language,
  3008. theme = result.theme,
  3009. version = result.version,
  3010. platform = result.platform,
  3011. fontSizeSetting = result.fontSizeSetting,
  3012. SDKVersion = result.SDKVersion,
  3013. pixelRatio = result.pixelRatio,
  3014. deviceOrientation = result.deviceOrientation;
  3015. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  3016. var extraParam = {};
  3017. // osName osVersion
  3018. var osName = '';
  3019. var osVersion = '';
  3020. {
  3021. osName = system.split(' ')[0] || '';
  3022. osVersion = system.split(' ')[1] || '';
  3023. }
  3024. var hostVersion = version;
  3025. // deviceType
  3026. var deviceType = getGetDeviceType(result, model);
  3027. // deviceModel
  3028. var deviceBrand = getDeviceBrand(brand);
  3029. // hostName
  3030. var _hostName = getHostName(result);
  3031. // deviceOrientation
  3032. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  3033. // devicePixelRatio
  3034. var _devicePixelRatio = pixelRatio;
  3035. // SDKVersion
  3036. var _SDKVersion = SDKVersion;
  3037. // hostLanguage
  3038. var hostLanguage = language.replace(/_/g, '-');
  3039. // wx.getAccountInfoSync
  3040. var parameters = {
  3041. appId: "__UNI__E97C301",
  3042. appName: "产品化管理端",
  3043. appVersion: "1.0.0",
  3044. appVersionCode: "100",
  3045. appLanguage: getAppLanguage(hostLanguage),
  3046. uniCompileVersion: "4.24",
  3047. uniRuntimeVersion: "4.24",
  3048. uniPlatform: undefined || "mp-weixin",
  3049. deviceBrand: deviceBrand,
  3050. deviceModel: model,
  3051. deviceType: deviceType,
  3052. devicePixelRatio: _devicePixelRatio,
  3053. deviceOrientation: _deviceOrientation,
  3054. osName: osName.toLocaleLowerCase(),
  3055. osVersion: osVersion,
  3056. hostTheme: theme,
  3057. hostVersion: hostVersion,
  3058. hostLanguage: hostLanguage,
  3059. hostName: _hostName,
  3060. hostSDKVersion: _SDKVersion,
  3061. hostFontSizeSetting: fontSizeSetting,
  3062. windowTop: 0,
  3063. windowBottom: 0,
  3064. // TODO
  3065. osLanguage: undefined,
  3066. osTheme: undefined,
  3067. ua: undefined,
  3068. hostPackageName: undefined,
  3069. browserName: undefined,
  3070. browserVersion: undefined
  3071. };
  3072. Object.assign(result, parameters, extraParam);
  3073. }
  3074. function getGetDeviceType(result, model) {
  3075. var deviceType = result.deviceType || 'phone';
  3076. {
  3077. var deviceTypeMaps = {
  3078. ipad: 'pad',
  3079. windows: 'pc',
  3080. mac: 'pc'
  3081. };
  3082. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  3083. var _model = model.toLocaleLowerCase();
  3084. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  3085. var _m = deviceTypeMapsKeys[index];
  3086. if (_model.indexOf(_m) !== -1) {
  3087. deviceType = deviceTypeMaps[_m];
  3088. break;
  3089. }
  3090. }
  3091. }
  3092. return deviceType;
  3093. }
  3094. function getDeviceBrand(brand) {
  3095. var deviceBrand = brand;
  3096. if (deviceBrand) {
  3097. deviceBrand = brand.toLocaleLowerCase();
  3098. }
  3099. return deviceBrand;
  3100. }
  3101. function getAppLanguage(defaultLanguage) {
  3102. return getLocale$1 ? getLocale$1() : defaultLanguage;
  3103. }
  3104. function getHostName(result) {
  3105. var _platform = 'WeChat';
  3106. var _hostName = result.hostName || _platform; // mp-jd
  3107. {
  3108. if (result.environment) {
  3109. _hostName = result.environment;
  3110. } else if (result.host && result.host.env) {
  3111. _hostName = result.host.env;
  3112. }
  3113. }
  3114. return _hostName;
  3115. }
  3116. var getSystemInfo = {
  3117. returnValue: function returnValue(result) {
  3118. useDeviceId(result);
  3119. addSafeAreaInsets(result);
  3120. populateParameters(result);
  3121. }
  3122. };
  3123. var showActionSheet = {
  3124. args: function args(fromArgs) {
  3125. if ((0, _typeof2.default)(fromArgs) === 'object') {
  3126. fromArgs.alertText = fromArgs.title;
  3127. }
  3128. }
  3129. };
  3130. var getAppBaseInfo = {
  3131. returnValue: function returnValue(result) {
  3132. var _result = result,
  3133. version = _result.version,
  3134. language = _result.language,
  3135. SDKVersion = _result.SDKVersion,
  3136. theme = _result.theme;
  3137. var _hostName = getHostName(result);
  3138. var hostLanguage = language.replace('_', '-');
  3139. result = sortObject(Object.assign(result, {
  3140. appId: "__UNI__E97C301",
  3141. appName: "产品化管理端",
  3142. appVersion: "1.0.0",
  3143. appVersionCode: "100",
  3144. appLanguage: getAppLanguage(hostLanguage),
  3145. hostVersion: version,
  3146. hostLanguage: hostLanguage,
  3147. hostName: _hostName,
  3148. hostSDKVersion: SDKVersion,
  3149. hostTheme: theme
  3150. }));
  3151. }
  3152. };
  3153. var getDeviceInfo = {
  3154. returnValue: function returnValue(result) {
  3155. var _result2 = result,
  3156. brand = _result2.brand,
  3157. model = _result2.model;
  3158. var deviceType = getGetDeviceType(result, model);
  3159. var deviceBrand = getDeviceBrand(brand);
  3160. useDeviceId(result);
  3161. result = sortObject(Object.assign(result, {
  3162. deviceType: deviceType,
  3163. deviceBrand: deviceBrand,
  3164. deviceModel: model
  3165. }));
  3166. }
  3167. };
  3168. var getWindowInfo = {
  3169. returnValue: function returnValue(result) {
  3170. addSafeAreaInsets(result);
  3171. result = sortObject(Object.assign(result, {
  3172. windowTop: 0,
  3173. windowBottom: 0
  3174. }));
  3175. }
  3176. };
  3177. var getAppAuthorizeSetting = {
  3178. returnValue: function returnValue(result) {
  3179. var locationReducedAccuracy = result.locationReducedAccuracy;
  3180. result.locationAccuracy = 'unsupported';
  3181. if (locationReducedAccuracy === true) {
  3182. result.locationAccuracy = 'reduced';
  3183. } else if (locationReducedAccuracy === false) {
  3184. result.locationAccuracy = 'full';
  3185. }
  3186. }
  3187. };
  3188. // import navigateTo from 'uni-helpers/navigate-to'
  3189. var compressImage = {
  3190. args: function args(fromArgs) {
  3191. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  3192. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  3193. fromArgs.compressHeight = fromArgs.compressedHeight;
  3194. }
  3195. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  3196. fromArgs.compressWidth = fromArgs.compressedWidth;
  3197. }
  3198. }
  3199. };
  3200. var protocols = {
  3201. redirectTo: redirectTo,
  3202. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  3203. previewImage: previewImage,
  3204. getSystemInfo: getSystemInfo,
  3205. getSystemInfoSync: getSystemInfo,
  3206. showActionSheet: showActionSheet,
  3207. getAppBaseInfo: getAppBaseInfo,
  3208. getDeviceInfo: getDeviceInfo,
  3209. getWindowInfo: getWindowInfo,
  3210. getAppAuthorizeSetting: getAppAuthorizeSetting,
  3211. compressImage: compressImage
  3212. };
  3213. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  3214. var canIUses = [];
  3215. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  3216. function processCallback(methodName, method, returnValue) {
  3217. return function (res) {
  3218. return method(processReturnValue(methodName, res, returnValue));
  3219. };
  3220. }
  3221. function processArgs(methodName, fromArgs) {
  3222. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  3223. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  3224. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  3225. if (isPlainObject(fromArgs)) {
  3226. // 一般 api 的参数解析
  3227. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  3228. if (isFn(argsOption)) {
  3229. argsOption = argsOption(fromArgs, toArgs) || {};
  3230. }
  3231. for (var key in fromArgs) {
  3232. if (hasOwn(argsOption, key)) {
  3233. var keyOption = argsOption[key];
  3234. if (isFn(keyOption)) {
  3235. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  3236. }
  3237. if (!keyOption) {
  3238. // 不支持的参数
  3239. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  3240. } else if (isStr(keyOption)) {
  3241. // 重写参数 key
  3242. toArgs[keyOption] = fromArgs[key];
  3243. } else if (isPlainObject(keyOption)) {
  3244. // {name:newName,value:value}可重新指定参数 key:value
  3245. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  3246. }
  3247. } else if (CALLBACKS.indexOf(key) !== -1) {
  3248. if (isFn(fromArgs[key])) {
  3249. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  3250. }
  3251. } else {
  3252. if (!keepFromArgs) {
  3253. toArgs[key] = fromArgs[key];
  3254. }
  3255. }
  3256. }
  3257. return toArgs;
  3258. } else if (isFn(fromArgs)) {
  3259. fromArgs = processCallback(methodName, fromArgs, returnValue);
  3260. }
  3261. return fromArgs;
  3262. }
  3263. function processReturnValue(methodName, res, returnValue) {
  3264. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  3265. if (isFn(protocols.returnValue)) {
  3266. // 处理通用 returnValue
  3267. res = protocols.returnValue(methodName, res);
  3268. }
  3269. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  3270. }
  3271. function wrapper(methodName, method) {
  3272. if (hasOwn(protocols, methodName)) {
  3273. var protocol = protocols[methodName];
  3274. if (!protocol) {
  3275. // 暂不支持的 api
  3276. return function () {
  3277. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  3278. };
  3279. }
  3280. return function (arg1, arg2) {
  3281. // 目前 api 最多两个参数
  3282. var options = protocol;
  3283. if (isFn(protocol)) {
  3284. options = protocol(arg1);
  3285. }
  3286. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  3287. var args = [arg1];
  3288. if (typeof arg2 !== 'undefined') {
  3289. args.push(arg2);
  3290. }
  3291. if (isFn(options.name)) {
  3292. methodName = options.name(arg1);
  3293. } else if (isStr(options.name)) {
  3294. methodName = options.name;
  3295. }
  3296. var returnValue = wx[methodName].apply(wx, args);
  3297. if (isSyncApi(methodName)) {
  3298. // 同步 api
  3299. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  3300. }
  3301. return returnValue;
  3302. };
  3303. }
  3304. return method;
  3305. }
  3306. var todoApis = Object.create(null);
  3307. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  3308. function createTodoApi(name) {
  3309. return function todoApi(_ref) {
  3310. var fail = _ref.fail,
  3311. complete = _ref.complete;
  3312. var res = {
  3313. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  3314. };
  3315. isFn(fail) && fail(res);
  3316. isFn(complete) && complete(res);
  3317. };
  3318. }
  3319. TODOS.forEach(function (name) {
  3320. todoApis[name] = createTodoApi(name);
  3321. });
  3322. var providers = {
  3323. oauth: ['weixin'],
  3324. share: ['weixin'],
  3325. payment: ['wxpay'],
  3326. push: ['weixin']
  3327. };
  3328. function getProvider(_ref2) {
  3329. var service = _ref2.service,
  3330. success = _ref2.success,
  3331. fail = _ref2.fail,
  3332. complete = _ref2.complete;
  3333. var res = false;
  3334. if (providers[service]) {
  3335. res = {
  3336. errMsg: 'getProvider:ok',
  3337. service: service,
  3338. provider: providers[service]
  3339. };
  3340. isFn(success) && success(res);
  3341. } else {
  3342. res = {
  3343. errMsg: 'getProvider:fail service not found'
  3344. };
  3345. isFn(fail) && fail(res);
  3346. }
  3347. isFn(complete) && complete(res);
  3348. }
  3349. var extraApi = /*#__PURE__*/Object.freeze({
  3350. __proto__: null,
  3351. getProvider: getProvider
  3352. });
  3353. var getEmitter = function () {
  3354. var Emitter;
  3355. return function getUniEmitter() {
  3356. if (!Emitter) {
  3357. Emitter = new _vue.default();
  3358. }
  3359. return Emitter;
  3360. };
  3361. }();
  3362. function apply(ctx, method, args) {
  3363. return ctx[method].apply(ctx, args);
  3364. }
  3365. function $on() {
  3366. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  3367. }
  3368. function $off() {
  3369. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  3370. }
  3371. function $once() {
  3372. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  3373. }
  3374. function $emit() {
  3375. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  3376. }
  3377. var eventApi = /*#__PURE__*/Object.freeze({
  3378. __proto__: null,
  3379. $on: $on,
  3380. $off: $off,
  3381. $once: $once,
  3382. $emit: $emit
  3383. });
  3384. /**
  3385. * 框架内 try-catch
  3386. */
  3387. /**
  3388. * 开发者 try-catch
  3389. */
  3390. function tryCatch(fn) {
  3391. return function () {
  3392. try {
  3393. return fn.apply(fn, arguments);
  3394. } catch (e) {
  3395. // TODO
  3396. console.error(e);
  3397. }
  3398. };
  3399. }
  3400. function getApiCallbacks(params) {
  3401. var apiCallbacks = {};
  3402. for (var name in params) {
  3403. var param = params[name];
  3404. if (isFn(param)) {
  3405. apiCallbacks[name] = tryCatch(param);
  3406. delete params[name];
  3407. }
  3408. }
  3409. return apiCallbacks;
  3410. }
  3411. var cid;
  3412. var cidErrMsg;
  3413. var enabled;
  3414. function normalizePushMessage(message) {
  3415. try {
  3416. return JSON.parse(message);
  3417. } catch (e) {}
  3418. return message;
  3419. }
  3420. function invokePushCallback(args) {
  3421. if (args.type === 'enabled') {
  3422. enabled = true;
  3423. } else if (args.type === 'clientId') {
  3424. cid = args.cid;
  3425. cidErrMsg = args.errMsg;
  3426. invokeGetPushCidCallbacks(cid, args.errMsg);
  3427. } else if (args.type === 'pushMsg') {
  3428. var message = {
  3429. type: 'receive',
  3430. data: normalizePushMessage(args.message)
  3431. };
  3432. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  3433. var callback = onPushMessageCallbacks[i];
  3434. callback(message);
  3435. // 该消息已被阻止
  3436. if (message.stopped) {
  3437. break;
  3438. }
  3439. }
  3440. } else if (args.type === 'click') {
  3441. onPushMessageCallbacks.forEach(function (callback) {
  3442. callback({
  3443. type: 'click',
  3444. data: normalizePushMessage(args.message)
  3445. });
  3446. });
  3447. }
  3448. }
  3449. var getPushCidCallbacks = [];
  3450. function invokeGetPushCidCallbacks(cid, errMsg) {
  3451. getPushCidCallbacks.forEach(function (callback) {
  3452. callback(cid, errMsg);
  3453. });
  3454. getPushCidCallbacks.length = 0;
  3455. }
  3456. function getPushClientId(args) {
  3457. if (!isPlainObject(args)) {
  3458. args = {};
  3459. }
  3460. var _getApiCallbacks = getApiCallbacks(args),
  3461. success = _getApiCallbacks.success,
  3462. fail = _getApiCallbacks.fail,
  3463. complete = _getApiCallbacks.complete;
  3464. var hasSuccess = isFn(success);
  3465. var hasFail = isFn(fail);
  3466. var hasComplete = isFn(complete);
  3467. Promise.resolve().then(function () {
  3468. if (typeof enabled === 'undefined') {
  3469. enabled = false;
  3470. cid = '';
  3471. cidErrMsg = 'uniPush is not enabled';
  3472. }
  3473. getPushCidCallbacks.push(function (cid, errMsg) {
  3474. var res;
  3475. if (cid) {
  3476. res = {
  3477. errMsg: 'getPushClientId:ok',
  3478. cid: cid
  3479. };
  3480. hasSuccess && success(res);
  3481. } else {
  3482. res = {
  3483. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  3484. };
  3485. hasFail && fail(res);
  3486. }
  3487. hasComplete && complete(res);
  3488. });
  3489. if (typeof cid !== 'undefined') {
  3490. invokeGetPushCidCallbacks(cid, cidErrMsg);
  3491. }
  3492. });
  3493. }
  3494. var onPushMessageCallbacks = [];
  3495. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  3496. var onPushMessage = function onPushMessage(fn) {
  3497. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  3498. onPushMessageCallbacks.push(fn);
  3499. }
  3500. };
  3501. var offPushMessage = function offPushMessage(fn) {
  3502. if (!fn) {
  3503. onPushMessageCallbacks.length = 0;
  3504. } else {
  3505. var index = onPushMessageCallbacks.indexOf(fn);
  3506. if (index > -1) {
  3507. onPushMessageCallbacks.splice(index, 1);
  3508. }
  3509. }
  3510. };
  3511. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  3512. if (!baseInfo) {
  3513. baseInfo = wx.getSystemInfoSync();
  3514. }
  3515. var host = baseInfo ? baseInfo.host : null;
  3516. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  3517. var api = /*#__PURE__*/Object.freeze({
  3518. __proto__: null,
  3519. shareVideoMessage: shareVideoMessage,
  3520. getPushClientId: getPushClientId,
  3521. onPushMessage: onPushMessage,
  3522. offPushMessage: offPushMessage,
  3523. invokePushCallback: invokePushCallback
  3524. });
  3525. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  3526. function findVmByVueId(vm, vuePid) {
  3527. var $children = vm.$children;
  3528. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  3529. for (var i = $children.length - 1; i >= 0; i--) {
  3530. var childVm = $children[i];
  3531. if (childVm.$scope._$vueId === vuePid) {
  3532. return childVm;
  3533. }
  3534. }
  3535. // 反向递归查找
  3536. var parentVm;
  3537. for (var _i = $children.length - 1; _i >= 0; _i--) {
  3538. parentVm = findVmByVueId($children[_i], vuePid);
  3539. if (parentVm) {
  3540. return parentVm;
  3541. }
  3542. }
  3543. }
  3544. function initBehavior(options) {
  3545. return Behavior(options);
  3546. }
  3547. function isPage() {
  3548. return !!this.route;
  3549. }
  3550. function initRelation(detail) {
  3551. this.triggerEvent('__l', detail);
  3552. }
  3553. function selectAllComponents(mpInstance, selector, $refs) {
  3554. var components = mpInstance.selectAllComponents(selector) || [];
  3555. components.forEach(function (component) {
  3556. var ref = component.dataset.ref;
  3557. $refs[ref] = component.$vm || toSkip(component);
  3558. {
  3559. if (component.dataset.vueGeneric === 'scoped') {
  3560. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  3561. selectAllComponents(scopedComponent, selector, $refs);
  3562. });
  3563. }
  3564. }
  3565. });
  3566. }
  3567. function syncRefs(refs, newRefs) {
  3568. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  3569. var newKeys = Object.keys(newRefs);
  3570. newKeys.forEach(function (key) {
  3571. var oldValue = refs[key];
  3572. var newValue = newRefs[key];
  3573. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  3574. return oldValue.includes(value);
  3575. })) {
  3576. return;
  3577. }
  3578. refs[key] = newValue;
  3579. oldKeys.delete(key);
  3580. });
  3581. oldKeys.forEach(function (key) {
  3582. delete refs[key];
  3583. });
  3584. return refs;
  3585. }
  3586. function initRefs(vm) {
  3587. var mpInstance = vm.$scope;
  3588. var refs = {};
  3589. Object.defineProperty(vm, '$refs', {
  3590. get: function get() {
  3591. var $refs = {};
  3592. selectAllComponents(mpInstance, '.vue-ref', $refs);
  3593. // TODO 暂不考虑 for 中的 scoped
  3594. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  3595. forComponents.forEach(function (component) {
  3596. var ref = component.dataset.ref;
  3597. if (!$refs[ref]) {
  3598. $refs[ref] = [];
  3599. }
  3600. $refs[ref].push(component.$vm || toSkip(component));
  3601. });
  3602. return syncRefs(refs, $refs);
  3603. }
  3604. });
  3605. }
  3606. function handleLink(event) {
  3607. var _ref3 = event.detail || event.value,
  3608. vuePid = _ref3.vuePid,
  3609. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  3610. var parentVm;
  3611. if (vuePid) {
  3612. parentVm = findVmByVueId(this.$vm, vuePid);
  3613. }
  3614. if (!parentVm) {
  3615. parentVm = this.$vm;
  3616. }
  3617. vueOptions.parent = parentVm;
  3618. }
  3619. function markMPComponent(component) {
  3620. // 在 Vue 中标记为小程序组件
  3621. var IS_MP = '__v_isMPComponent';
  3622. Object.defineProperty(component, IS_MP, {
  3623. configurable: true,
  3624. enumerable: false,
  3625. value: true
  3626. });
  3627. return component;
  3628. }
  3629. function toSkip(obj) {
  3630. var OB = '__ob__';
  3631. var SKIP = '__v_skip';
  3632. if (isObject(obj) && Object.isExtensible(obj)) {
  3633. // 避免被 @vue/composition-api 观测
  3634. Object.defineProperty(obj, OB, {
  3635. configurable: true,
  3636. enumerable: false,
  3637. value: (0, _defineProperty2.default)({}, SKIP, true)
  3638. });
  3639. }
  3640. return obj;
  3641. }
  3642. var WORKLET_RE = /_(.*)_worklet_factory_/;
  3643. function initWorkletMethods(mpMethods, vueMethods) {
  3644. if (vueMethods) {
  3645. Object.keys(vueMethods).forEach(function (name) {
  3646. var matches = name.match(WORKLET_RE);
  3647. if (matches) {
  3648. var workletName = matches[1];
  3649. mpMethods[name] = vueMethods[name];
  3650. mpMethods[workletName] = vueMethods[workletName];
  3651. }
  3652. });
  3653. }
  3654. }
  3655. var MPPage = Page;
  3656. var MPComponent = Component;
  3657. var customizeRE = /:/g;
  3658. var customize = cached(function (str) {
  3659. return camelize(str.replace(customizeRE, '-'));
  3660. });
  3661. function initTriggerEvent(mpInstance) {
  3662. var oldTriggerEvent = mpInstance.triggerEvent;
  3663. var newTriggerEvent = function newTriggerEvent(event) {
  3664. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  3665. args[_key3 - 1] = arguments[_key3];
  3666. }
  3667. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  3668. if (this.$vm || this.dataset && this.dataset.comType) {
  3669. event = customize(event);
  3670. } else {
  3671. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  3672. var newEvent = customize(event);
  3673. if (newEvent !== event) {
  3674. oldTriggerEvent.apply(this, [newEvent].concat(args));
  3675. }
  3676. }
  3677. return oldTriggerEvent.apply(this, [event].concat(args));
  3678. };
  3679. try {
  3680. // 京东小程序 triggerEvent 为只读
  3681. mpInstance.triggerEvent = newTriggerEvent;
  3682. } catch (error) {
  3683. mpInstance._triggerEvent = newTriggerEvent;
  3684. }
  3685. }
  3686. function initHook(name, options, isComponent) {
  3687. var oldHook = options[name];
  3688. options[name] = function () {
  3689. markMPComponent(this);
  3690. initTriggerEvent(this);
  3691. if (oldHook) {
  3692. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  3693. args[_key4] = arguments[_key4];
  3694. }
  3695. return oldHook.apply(this, args);
  3696. }
  3697. };
  3698. }
  3699. if (!MPPage.__$wrappered) {
  3700. MPPage.__$wrappered = true;
  3701. Page = function Page() {
  3702. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3703. initHook('onLoad', options);
  3704. return MPPage(options);
  3705. };
  3706. Page.after = MPPage.after;
  3707. Component = function Component() {
  3708. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3709. initHook('created', options);
  3710. return MPComponent(options);
  3711. };
  3712. }
  3713. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  3714. function initMocks(vm, mocks) {
  3715. var mpInstance = vm.$mp[vm.mpType];
  3716. mocks.forEach(function (mock) {
  3717. if (hasOwn(mpInstance, mock)) {
  3718. vm[mock] = mpInstance[mock];
  3719. }
  3720. });
  3721. }
  3722. function hasHook(hook, vueOptions) {
  3723. if (!vueOptions) {
  3724. return true;
  3725. }
  3726. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  3727. return true;
  3728. }
  3729. vueOptions = vueOptions.default || vueOptions;
  3730. if (isFn(vueOptions)) {
  3731. if (isFn(vueOptions.extendOptions[hook])) {
  3732. return true;
  3733. }
  3734. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  3735. return true;
  3736. }
  3737. return false;
  3738. }
  3739. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  3740. return true;
  3741. }
  3742. var mixins = vueOptions.mixins;
  3743. if (Array.isArray(mixins)) {
  3744. return !!mixins.find(function (mixin) {
  3745. return hasHook(hook, mixin);
  3746. });
  3747. }
  3748. }
  3749. function initHooks(mpOptions, hooks, vueOptions) {
  3750. hooks.forEach(function (hook) {
  3751. if (hasHook(hook, vueOptions)) {
  3752. mpOptions[hook] = function (args) {
  3753. return this.$vm && this.$vm.__call_hook(hook, args);
  3754. };
  3755. }
  3756. });
  3757. }
  3758. function initUnknownHooks(mpOptions, vueOptions) {
  3759. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  3760. findHooks(vueOptions).forEach(function (hook) {
  3761. return initHook$1(mpOptions, hook, excludes);
  3762. });
  3763. }
  3764. function findHooks(vueOptions) {
  3765. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  3766. if (vueOptions) {
  3767. Object.keys(vueOptions).forEach(function (name) {
  3768. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  3769. hooks.push(name);
  3770. }
  3771. });
  3772. }
  3773. return hooks;
  3774. }
  3775. function initHook$1(mpOptions, hook, excludes) {
  3776. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  3777. mpOptions[hook] = function (args) {
  3778. return this.$vm && this.$vm.__call_hook(hook, args);
  3779. };
  3780. }
  3781. }
  3782. function initVueComponent(Vue, vueOptions) {
  3783. vueOptions = vueOptions.default || vueOptions;
  3784. var VueComponent;
  3785. if (isFn(vueOptions)) {
  3786. VueComponent = vueOptions;
  3787. } else {
  3788. VueComponent = Vue.extend(vueOptions);
  3789. }
  3790. vueOptions = VueComponent.options;
  3791. return [VueComponent, vueOptions];
  3792. }
  3793. function initSlots(vm, vueSlots) {
  3794. if (Array.isArray(vueSlots) && vueSlots.length) {
  3795. var $slots = Object.create(null);
  3796. vueSlots.forEach(function (slotName) {
  3797. $slots[slotName] = true;
  3798. });
  3799. vm.$scopedSlots = vm.$slots = $slots;
  3800. }
  3801. }
  3802. function initVueIds(vueIds, mpInstance) {
  3803. vueIds = (vueIds || '').split(',');
  3804. var len = vueIds.length;
  3805. if (len === 1) {
  3806. mpInstance._$vueId = vueIds[0];
  3807. } else if (len === 2) {
  3808. mpInstance._$vueId = vueIds[0];
  3809. mpInstance._$vuePid = vueIds[1];
  3810. }
  3811. }
  3812. function initData(vueOptions, context) {
  3813. var data = vueOptions.data || {};
  3814. var methods = vueOptions.methods || {};
  3815. if (typeof data === 'function') {
  3816. try {
  3817. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  3818. } catch (e) {
  3819. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  3820. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  3821. }
  3822. }
  3823. } else {
  3824. try {
  3825. // 对 data 格式化
  3826. data = JSON.parse(JSON.stringify(data));
  3827. } catch (e) {}
  3828. }
  3829. if (!isPlainObject(data)) {
  3830. data = {};
  3831. }
  3832. Object.keys(methods).forEach(function (methodName) {
  3833. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  3834. data[methodName] = methods[methodName];
  3835. }
  3836. });
  3837. return data;
  3838. }
  3839. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  3840. function createObserver(name) {
  3841. return function observer(newVal, oldVal) {
  3842. if (this.$vm) {
  3843. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  3844. }
  3845. };
  3846. }
  3847. function initBehaviors(vueOptions, initBehavior) {
  3848. var vueBehaviors = vueOptions.behaviors;
  3849. var vueExtends = vueOptions.extends;
  3850. var vueMixins = vueOptions.mixins;
  3851. var vueProps = vueOptions.props;
  3852. if (!vueProps) {
  3853. vueOptions.props = vueProps = [];
  3854. }
  3855. var behaviors = [];
  3856. if (Array.isArray(vueBehaviors)) {
  3857. vueBehaviors.forEach(function (behavior) {
  3858. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  3859. if (behavior === 'uni://form-field') {
  3860. if (Array.isArray(vueProps)) {
  3861. vueProps.push('name');
  3862. vueProps.push('value');
  3863. } else {
  3864. vueProps.name = {
  3865. type: String,
  3866. default: ''
  3867. };
  3868. vueProps.value = {
  3869. type: [String, Number, Boolean, Array, Object, Date],
  3870. default: ''
  3871. };
  3872. }
  3873. }
  3874. });
  3875. }
  3876. if (isPlainObject(vueExtends) && vueExtends.props) {
  3877. behaviors.push(initBehavior({
  3878. properties: initProperties(vueExtends.props, true)
  3879. }));
  3880. }
  3881. if (Array.isArray(vueMixins)) {
  3882. vueMixins.forEach(function (vueMixin) {
  3883. if (isPlainObject(vueMixin) && vueMixin.props) {
  3884. behaviors.push(initBehavior({
  3885. properties: initProperties(vueMixin.props, true)
  3886. }));
  3887. }
  3888. });
  3889. }
  3890. return behaviors;
  3891. }
  3892. function parsePropType(key, type, defaultValue, file) {
  3893. // [String]=>String
  3894. if (Array.isArray(type) && type.length === 1) {
  3895. return type[0];
  3896. }
  3897. return type;
  3898. }
  3899. function initProperties(props) {
  3900. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  3901. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  3902. var options = arguments.length > 3 ? arguments[3] : undefined;
  3903. var properties = {};
  3904. if (!isBehavior) {
  3905. properties.vueId = {
  3906. type: String,
  3907. value: ''
  3908. };
  3909. {
  3910. if (options.virtualHost) {
  3911. properties.virtualHostStyle = {
  3912. type: null,
  3913. value: ''
  3914. };
  3915. properties.virtualHostClass = {
  3916. type: null,
  3917. value: ''
  3918. };
  3919. }
  3920. }
  3921. // scopedSlotsCompiler auto
  3922. properties.scopedSlotsCompiler = {
  3923. type: String,
  3924. value: ''
  3925. };
  3926. properties.vueSlots = {
  3927. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  3928. type: null,
  3929. value: [],
  3930. observer: function observer(newVal, oldVal) {
  3931. var $slots = Object.create(null);
  3932. newVal.forEach(function (slotName) {
  3933. $slots[slotName] = true;
  3934. });
  3935. this.setData({
  3936. $slots: $slots
  3937. });
  3938. }
  3939. };
  3940. }
  3941. if (Array.isArray(props)) {
  3942. // ['title']
  3943. props.forEach(function (key) {
  3944. properties[key] = {
  3945. type: null,
  3946. observer: createObserver(key)
  3947. };
  3948. });
  3949. } else if (isPlainObject(props)) {
  3950. // {title:{type:String,default:''},content:String}
  3951. Object.keys(props).forEach(function (key) {
  3952. var opts = props[key];
  3953. if (isPlainObject(opts)) {
  3954. // title:{type:String,default:''}
  3955. var value = opts.default;
  3956. if (isFn(value)) {
  3957. value = value();
  3958. }
  3959. opts.type = parsePropType(key, opts.type);
  3960. properties[key] = {
  3961. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  3962. value: value,
  3963. observer: createObserver(key)
  3964. };
  3965. } else {
  3966. // content:String
  3967. var type = parsePropType(key, opts);
  3968. properties[key] = {
  3969. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  3970. observer: createObserver(key)
  3971. };
  3972. }
  3973. });
  3974. }
  3975. return properties;
  3976. }
  3977. function wrapper$1(event) {
  3978. // TODO 又得兼容 mpvue 的 mp 对象
  3979. try {
  3980. event.mp = JSON.parse(JSON.stringify(event));
  3981. } catch (e) {}
  3982. event.stopPropagation = noop;
  3983. event.preventDefault = noop;
  3984. event.target = event.target || {};
  3985. if (!hasOwn(event, 'detail')) {
  3986. event.detail = {};
  3987. }
  3988. if (hasOwn(event, 'markerId')) {
  3989. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  3990. event.detail.markerId = event.markerId;
  3991. }
  3992. if (isPlainObject(event.detail)) {
  3993. event.target = Object.assign({}, event.target, event.detail);
  3994. }
  3995. return event;
  3996. }
  3997. function getExtraValue(vm, dataPathsArray) {
  3998. var context = vm;
  3999. dataPathsArray.forEach(function (dataPathArray) {
  4000. var dataPath = dataPathArray[0];
  4001. var value = dataPathArray[2];
  4002. if (dataPath || typeof value !== 'undefined') {
  4003. // ['','',index,'disable']
  4004. var propPath = dataPathArray[1];
  4005. var valuePath = dataPathArray[3];
  4006. var vFor;
  4007. if (Number.isInteger(dataPath)) {
  4008. vFor = dataPath;
  4009. } else if (!dataPath) {
  4010. vFor = context;
  4011. } else if (typeof dataPath === 'string' && dataPath) {
  4012. if (dataPath.indexOf('#s#') === 0) {
  4013. vFor = dataPath.substr(3);
  4014. } else {
  4015. vFor = vm.__get_value(dataPath, context);
  4016. }
  4017. }
  4018. if (Number.isInteger(vFor)) {
  4019. context = value;
  4020. } else if (!propPath) {
  4021. context = vFor[value];
  4022. } else {
  4023. if (Array.isArray(vFor)) {
  4024. context = vFor.find(function (vForItem) {
  4025. return vm.__get_value(propPath, vForItem) === value;
  4026. });
  4027. } else if (isPlainObject(vFor)) {
  4028. context = Object.keys(vFor).find(function (vForKey) {
  4029. return vm.__get_value(propPath, vFor[vForKey]) === value;
  4030. });
  4031. } else {
  4032. console.error('v-for 暂不支持循环数据:', vFor);
  4033. }
  4034. }
  4035. if (valuePath) {
  4036. context = vm.__get_value(valuePath, context);
  4037. }
  4038. }
  4039. });
  4040. return context;
  4041. }
  4042. function processEventExtra(vm, extra, event, __args__) {
  4043. var extraObj = {};
  4044. if (Array.isArray(extra) && extra.length) {
  4045. /**
  4046. *[
  4047. * ['data.items', 'data.id', item.data.id],
  4048. * ['metas', 'id', meta.id]
  4049. *],
  4050. *[
  4051. * ['data.items', 'data.id', item.data.id],
  4052. * ['metas', 'id', meta.id]
  4053. *],
  4054. *'test'
  4055. */
  4056. extra.forEach(function (dataPath, index) {
  4057. if (typeof dataPath === 'string') {
  4058. if (!dataPath) {
  4059. // model,prop.sync
  4060. extraObj['$' + index] = vm;
  4061. } else {
  4062. if (dataPath === '$event') {
  4063. // $event
  4064. extraObj['$' + index] = event;
  4065. } else if (dataPath === 'arguments') {
  4066. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  4067. } else if (dataPath.indexOf('$event.') === 0) {
  4068. // $event.target.value
  4069. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  4070. } else {
  4071. extraObj['$' + index] = vm.__get_value(dataPath);
  4072. }
  4073. }
  4074. } else {
  4075. extraObj['$' + index] = getExtraValue(vm, dataPath);
  4076. }
  4077. });
  4078. }
  4079. return extraObj;
  4080. }
  4081. function getObjByArray(arr) {
  4082. var obj = {};
  4083. for (var i = 1; i < arr.length; i++) {
  4084. var element = arr[i];
  4085. obj[element[0]] = element[1];
  4086. }
  4087. return obj;
  4088. }
  4089. function processEventArgs(vm, event) {
  4090. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  4091. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  4092. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  4093. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  4094. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  4095. // fixed 用户直接触发 mpInstance.triggerEvent
  4096. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  4097. if (isCustom) {
  4098. // 自定义事件
  4099. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  4100. if (!args.length) {
  4101. // 无参数,直接传入 event 或 detail 数组
  4102. if (isCustomMPEvent) {
  4103. return [event];
  4104. }
  4105. return __args__;
  4106. }
  4107. }
  4108. var extraObj = processEventExtra(vm, extra, event, __args__);
  4109. var ret = [];
  4110. args.forEach(function (arg) {
  4111. if (arg === '$event') {
  4112. if (methodName === '__set_model' && !isCustom) {
  4113. // input v-model value
  4114. ret.push(event.target.value);
  4115. } else {
  4116. if (isCustom && !isCustomMPEvent) {
  4117. ret.push(__args__[0]);
  4118. } else {
  4119. // wxcomponent 组件或内置组件
  4120. ret.push(event);
  4121. }
  4122. }
  4123. } else {
  4124. if (Array.isArray(arg) && arg[0] === 'o') {
  4125. ret.push(getObjByArray(arg));
  4126. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  4127. ret.push(extraObj[arg]);
  4128. } else {
  4129. ret.push(arg);
  4130. }
  4131. }
  4132. });
  4133. return ret;
  4134. }
  4135. var ONCE = '~';
  4136. var CUSTOM = '^';
  4137. function isMatchEventType(eventType, optType) {
  4138. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  4139. }
  4140. function getContextVm(vm) {
  4141. var $parent = vm.$parent;
  4142. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  4143. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  4144. $parent = $parent.$parent;
  4145. }
  4146. return $parent && $parent.$parent;
  4147. }
  4148. function handleEvent(event) {
  4149. var _this2 = this;
  4150. event = wrapper$1(event);
  4151. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  4152. var dataset = (event.currentTarget || event.target).dataset;
  4153. if (!dataset) {
  4154. return console.warn('事件信息不存在');
  4155. }
  4156. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  4157. if (!eventOpts) {
  4158. return console.warn('事件信息不存在');
  4159. }
  4160. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  4161. var eventType = event.type;
  4162. var ret = [];
  4163. eventOpts.forEach(function (eventOpt) {
  4164. var type = eventOpt[0];
  4165. var eventsArray = eventOpt[1];
  4166. var isCustom = type.charAt(0) === CUSTOM;
  4167. type = isCustom ? type.slice(1) : type;
  4168. var isOnce = type.charAt(0) === ONCE;
  4169. type = isOnce ? type.slice(1) : type;
  4170. if (eventsArray && isMatchEventType(eventType, type)) {
  4171. eventsArray.forEach(function (eventArray) {
  4172. var methodName = eventArray[0];
  4173. if (methodName) {
  4174. var handlerCtx = _this2.$vm;
  4175. if (handlerCtx.$options.generic) {
  4176. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  4177. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  4178. }
  4179. if (methodName === '$emit') {
  4180. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  4181. return;
  4182. }
  4183. var handler = handlerCtx[methodName];
  4184. if (!isFn(handler)) {
  4185. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  4186. var path = _this2.route || _this2.is;
  4187. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  4188. }
  4189. if (isOnce) {
  4190. if (handler.once) {
  4191. return;
  4192. }
  4193. handler.once = true;
  4194. }
  4195. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  4196. params = Array.isArray(params) ? params : [];
  4197. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  4198. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  4199. // eslint-disable-next-line no-sparse-arrays
  4200. params = params.concat([,,,,,,,,,, event]);
  4201. }
  4202. ret.push(handler.apply(handlerCtx, params));
  4203. }
  4204. });
  4205. }
  4206. });
  4207. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  4208. return ret[0];
  4209. }
  4210. }
  4211. var eventChannels = {};
  4212. function getEventChannel(id) {
  4213. var eventChannel = eventChannels[id];
  4214. delete eventChannels[id];
  4215. return eventChannel;
  4216. }
  4217. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  4218. function initEventChannel() {
  4219. _vue.default.prototype.getOpenerEventChannel = function () {
  4220. // 微信小程序使用自身getOpenerEventChannel
  4221. {
  4222. return this.$scope.getOpenerEventChannel();
  4223. }
  4224. };
  4225. var callHook = _vue.default.prototype.__call_hook;
  4226. _vue.default.prototype.__call_hook = function (hook, args) {
  4227. if (hook === 'onLoad' && args && args.__id__) {
  4228. this.__eventChannel__ = getEventChannel(args.__id__);
  4229. delete args.__id__;
  4230. }
  4231. return callHook.call(this, hook, args);
  4232. };
  4233. }
  4234. function initScopedSlotsParams() {
  4235. var center = {};
  4236. var parents = {};
  4237. function currentId(fn) {
  4238. var vueIds = this.$options.propsData.vueId;
  4239. if (vueIds) {
  4240. var vueId = vueIds.split(',')[0];
  4241. fn(vueId);
  4242. }
  4243. }
  4244. _vue.default.prototype.$hasSSP = function (vueId) {
  4245. var slot = center[vueId];
  4246. if (!slot) {
  4247. parents[vueId] = this;
  4248. this.$on('hook:destroyed', function () {
  4249. delete parents[vueId];
  4250. });
  4251. }
  4252. return slot;
  4253. };
  4254. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  4255. var slot = center[vueId];
  4256. if (slot) {
  4257. var params = slot[name] || [];
  4258. if (needAll) {
  4259. return params;
  4260. }
  4261. return params[0];
  4262. }
  4263. };
  4264. _vue.default.prototype.$setSSP = function (name, value) {
  4265. var index = 0;
  4266. currentId.call(this, function (vueId) {
  4267. var slot = center[vueId];
  4268. var params = slot[name] = slot[name] || [];
  4269. params.push(value);
  4270. index = params.length - 1;
  4271. });
  4272. return index;
  4273. };
  4274. _vue.default.prototype.$initSSP = function () {
  4275. currentId.call(this, function (vueId) {
  4276. center[vueId] = {};
  4277. });
  4278. };
  4279. _vue.default.prototype.$callSSP = function () {
  4280. currentId.call(this, function (vueId) {
  4281. if (parents[vueId]) {
  4282. parents[vueId].$forceUpdate();
  4283. }
  4284. });
  4285. };
  4286. _vue.default.mixin({
  4287. destroyed: function destroyed() {
  4288. var propsData = this.$options.propsData;
  4289. var vueId = propsData && propsData.vueId;
  4290. if (vueId) {
  4291. delete center[vueId];
  4292. delete parents[vueId];
  4293. }
  4294. }
  4295. });
  4296. }
  4297. function parseBaseApp(vm, _ref4) {
  4298. var mocks = _ref4.mocks,
  4299. initRefs = _ref4.initRefs;
  4300. initEventChannel();
  4301. {
  4302. initScopedSlotsParams();
  4303. }
  4304. if (vm.$options.store) {
  4305. _vue.default.prototype.$store = vm.$options.store;
  4306. }
  4307. uniIdMixin(_vue.default);
  4308. _vue.default.prototype.mpHost = "mp-weixin";
  4309. _vue.default.mixin({
  4310. beforeCreate: function beforeCreate() {
  4311. if (!this.$options.mpType) {
  4312. return;
  4313. }
  4314. this.mpType = this.$options.mpType;
  4315. this.$mp = (0, _defineProperty2.default)({
  4316. data: {}
  4317. }, this.mpType, this.$options.mpInstance);
  4318. this.$scope = this.$options.mpInstance;
  4319. delete this.$options.mpType;
  4320. delete this.$options.mpInstance;
  4321. if (this.mpType === 'page' && typeof getApp === 'function') {
  4322. // hack vue-i18n
  4323. var app = getApp();
  4324. if (app.$vm && app.$vm.$i18n) {
  4325. this._i18n = app.$vm.$i18n;
  4326. }
  4327. }
  4328. if (this.mpType !== 'app') {
  4329. initRefs(this);
  4330. initMocks(this, mocks);
  4331. }
  4332. }
  4333. });
  4334. var appOptions = {
  4335. onLaunch: function onLaunch(args) {
  4336. if (this.$vm) {
  4337. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  4338. return;
  4339. }
  4340. {
  4341. if (wx.canIUse && !wx.canIUse('nextTick')) {
  4342. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  4343. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  4344. }
  4345. }
  4346. this.$vm = vm;
  4347. this.$vm.$mp = {
  4348. app: this
  4349. };
  4350. this.$vm.$scope = this;
  4351. // vm 上也挂载 globalData
  4352. this.$vm.globalData = this.globalData;
  4353. this.$vm._isMounted = true;
  4354. this.$vm.__call_hook('mounted', args);
  4355. this.$vm.__call_hook('onLaunch', args);
  4356. }
  4357. };
  4358. // 兼容旧版本 globalData
  4359. appOptions.globalData = vm.$options.globalData || {};
  4360. // 将 methods 中的方法挂在 getApp() 中
  4361. var methods = vm.$options.methods;
  4362. if (methods) {
  4363. Object.keys(methods).forEach(function (name) {
  4364. appOptions[name] = methods[name];
  4365. });
  4366. }
  4367. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  4368. initHooks(appOptions, hooks);
  4369. initUnknownHooks(appOptions, vm.$options);
  4370. return appOptions;
  4371. }
  4372. function parseApp(vm) {
  4373. return parseBaseApp(vm, {
  4374. mocks: mocks,
  4375. initRefs: initRefs
  4376. });
  4377. }
  4378. function createApp(vm) {
  4379. App(parseApp(vm));
  4380. return vm;
  4381. }
  4382. var encodeReserveRE = /[!'()*]/g;
  4383. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  4384. return '%' + c.charCodeAt(0).toString(16);
  4385. };
  4386. var commaRE = /%2C/g;
  4387. // fixed encodeURIComponent which is more conformant to RFC3986:
  4388. // - escapes [!'()*]
  4389. // - preserve commas
  4390. var encode = function encode(str) {
  4391. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  4392. };
  4393. function stringifyQuery(obj) {
  4394. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  4395. var res = obj ? Object.keys(obj).map(function (key) {
  4396. var val = obj[key];
  4397. if (val === undefined) {
  4398. return '';
  4399. }
  4400. if (val === null) {
  4401. return encodeStr(key);
  4402. }
  4403. if (Array.isArray(val)) {
  4404. var result = [];
  4405. val.forEach(function (val2) {
  4406. if (val2 === undefined) {
  4407. return;
  4408. }
  4409. if (val2 === null) {
  4410. result.push(encodeStr(key));
  4411. } else {
  4412. result.push(encodeStr(key) + '=' + encodeStr(val2));
  4413. }
  4414. });
  4415. return result.join('&');
  4416. }
  4417. return encodeStr(key) + '=' + encodeStr(val);
  4418. }).filter(function (x) {
  4419. return x.length > 0;
  4420. }).join('&') : null;
  4421. return res ? "?".concat(res) : '';
  4422. }
  4423. function parseBaseComponent(vueComponentOptions) {
  4424. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  4425. isPage = _ref5.isPage,
  4426. initRelation = _ref5.initRelation;
  4427. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  4428. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  4429. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  4430. VueComponent = _initVueComponent2[0],
  4431. vueOptions = _initVueComponent2[1];
  4432. var options = _objectSpread({
  4433. multipleSlots: true,
  4434. // styleIsolation: 'apply-shared',
  4435. addGlobalClass: true
  4436. }, vueOptions.options || {});
  4437. {
  4438. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  4439. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  4440. Object.assign(options, vueOptions['mp-weixin'].options);
  4441. }
  4442. }
  4443. var componentOptions = {
  4444. options: options,
  4445. data: initData(vueOptions, _vue.default.prototype),
  4446. behaviors: initBehaviors(vueOptions, initBehavior),
  4447. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  4448. lifetimes: {
  4449. attached: function attached() {
  4450. var properties = this.properties;
  4451. var options = {
  4452. mpType: isPage.call(this) ? 'page' : 'component',
  4453. mpInstance: this,
  4454. propsData: properties
  4455. };
  4456. initVueIds(properties.vueId, this);
  4457. // 处理父子关系
  4458. initRelation.call(this, {
  4459. vuePid: this._$vuePid,
  4460. vueOptions: options
  4461. });
  4462. // 初始化 vue 实例
  4463. this.$vm = new VueComponent(options);
  4464. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  4465. initSlots(this.$vm, properties.vueSlots);
  4466. // 触发首次 setData
  4467. this.$vm.$mount();
  4468. },
  4469. ready: function ready() {
  4470. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  4471. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  4472. if (this.$vm) {
  4473. this.$vm._isMounted = true;
  4474. this.$vm.__call_hook('mounted');
  4475. this.$vm.__call_hook('onReady');
  4476. }
  4477. },
  4478. detached: function detached() {
  4479. this.$vm && this.$vm.$destroy();
  4480. }
  4481. },
  4482. pageLifetimes: {
  4483. show: function show(args) {
  4484. this.$vm && this.$vm.__call_hook('onPageShow', args);
  4485. },
  4486. hide: function hide() {
  4487. this.$vm && this.$vm.__call_hook('onPageHide');
  4488. },
  4489. resize: function resize(size) {
  4490. this.$vm && this.$vm.__call_hook('onPageResize', size);
  4491. }
  4492. },
  4493. methods: {
  4494. __l: handleLink,
  4495. __e: handleEvent
  4496. }
  4497. };
  4498. // externalClasses
  4499. if (vueOptions.externalClasses) {
  4500. componentOptions.externalClasses = vueOptions.externalClasses;
  4501. }
  4502. if (Array.isArray(vueOptions.wxsCallMethods)) {
  4503. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  4504. componentOptions.methods[callMethod] = function (args) {
  4505. return this.$vm[callMethod](args);
  4506. };
  4507. });
  4508. }
  4509. if (needVueOptions) {
  4510. return [componentOptions, vueOptions, VueComponent];
  4511. }
  4512. if (isPage) {
  4513. return componentOptions;
  4514. }
  4515. return [componentOptions, VueComponent];
  4516. }
  4517. function parseComponent(vueComponentOptions, needVueOptions) {
  4518. return parseBaseComponent(vueComponentOptions, {
  4519. isPage: isPage,
  4520. initRelation: initRelation
  4521. }, needVueOptions);
  4522. }
  4523. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  4524. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  4525. function parseBasePage(vuePageOptions) {
  4526. var _parseComponent = parseComponent(vuePageOptions, true),
  4527. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  4528. pageOptions = _parseComponent2[0],
  4529. vueOptions = _parseComponent2[1];
  4530. initHooks(pageOptions.methods, hooks$1, vueOptions);
  4531. pageOptions.methods.onLoad = function (query) {
  4532. this.options = query;
  4533. var copyQuery = Object.assign({}, query);
  4534. delete copyQuery.__id__;
  4535. this.$page = {
  4536. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  4537. };
  4538. this.$vm.$mp.query = query; // 兼容 mpvue
  4539. this.$vm.__call_hook('onLoad', query);
  4540. };
  4541. {
  4542. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  4543. }
  4544. {
  4545. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  4546. }
  4547. return pageOptions;
  4548. }
  4549. function parsePage(vuePageOptions) {
  4550. return parseBasePage(vuePageOptions);
  4551. }
  4552. function createPage(vuePageOptions) {
  4553. {
  4554. return Component(parsePage(vuePageOptions));
  4555. }
  4556. }
  4557. function createComponent(vueOptions) {
  4558. {
  4559. return Component(parseComponent(vueOptions));
  4560. }
  4561. }
  4562. function createSubpackageApp(vm) {
  4563. var appOptions = parseApp(vm);
  4564. var app = getApp({
  4565. allowDefault: true
  4566. });
  4567. vm.$scope = app;
  4568. var globalData = app.globalData;
  4569. if (globalData) {
  4570. Object.keys(appOptions.globalData).forEach(function (name) {
  4571. if (!hasOwn(globalData, name)) {
  4572. globalData[name] = appOptions.globalData[name];
  4573. }
  4574. });
  4575. }
  4576. Object.keys(appOptions).forEach(function (name) {
  4577. if (!hasOwn(app, name)) {
  4578. app[name] = appOptions[name];
  4579. }
  4580. });
  4581. if (isFn(appOptions.onShow) && wx.onAppShow) {
  4582. wx.onAppShow(function () {
  4583. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  4584. args[_key5] = arguments[_key5];
  4585. }
  4586. vm.__call_hook('onShow', args);
  4587. });
  4588. }
  4589. if (isFn(appOptions.onHide) && wx.onAppHide) {
  4590. wx.onAppHide(function () {
  4591. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  4592. args[_key6] = arguments[_key6];
  4593. }
  4594. vm.__call_hook('onHide', args);
  4595. });
  4596. }
  4597. if (isFn(appOptions.onLaunch)) {
  4598. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  4599. vm.__call_hook('onLaunch', args);
  4600. }
  4601. return vm;
  4602. }
  4603. function createPlugin(vm) {
  4604. var appOptions = parseApp(vm);
  4605. if (isFn(appOptions.onShow) && wx.onAppShow) {
  4606. wx.onAppShow(function () {
  4607. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  4608. args[_key7] = arguments[_key7];
  4609. }
  4610. vm.__call_hook('onShow', args);
  4611. });
  4612. }
  4613. if (isFn(appOptions.onHide) && wx.onAppHide) {
  4614. wx.onAppHide(function () {
  4615. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  4616. args[_key8] = arguments[_key8];
  4617. }
  4618. vm.__call_hook('onHide', args);
  4619. });
  4620. }
  4621. if (isFn(appOptions.onLaunch)) {
  4622. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  4623. vm.__call_hook('onLaunch', args);
  4624. }
  4625. return vm;
  4626. }
  4627. todos.forEach(function (todoApi) {
  4628. protocols[todoApi] = false;
  4629. });
  4630. canIUses.forEach(function (canIUseApi) {
  4631. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  4632. if (!wx.canIUse(apiName)) {
  4633. protocols[canIUseApi] = false;
  4634. }
  4635. });
  4636. var uni = {};
  4637. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  4638. uni = new Proxy({}, {
  4639. get: function get(target, name) {
  4640. if (hasOwn(target, name)) {
  4641. return target[name];
  4642. }
  4643. if (baseApi[name]) {
  4644. return baseApi[name];
  4645. }
  4646. if (api[name]) {
  4647. return promisify(name, api[name]);
  4648. }
  4649. {
  4650. if (extraApi[name]) {
  4651. return promisify(name, extraApi[name]);
  4652. }
  4653. if (todoApis[name]) {
  4654. return promisify(name, todoApis[name]);
  4655. }
  4656. }
  4657. if (eventApi[name]) {
  4658. return eventApi[name];
  4659. }
  4660. return promisify(name, wrapper(name, wx[name]));
  4661. },
  4662. set: function set(target, name, value) {
  4663. target[name] = value;
  4664. return true;
  4665. }
  4666. });
  4667. } else {
  4668. Object.keys(baseApi).forEach(function (name) {
  4669. uni[name] = baseApi[name];
  4670. });
  4671. {
  4672. Object.keys(todoApis).forEach(function (name) {
  4673. uni[name] = promisify(name, todoApis[name]);
  4674. });
  4675. Object.keys(extraApi).forEach(function (name) {
  4676. uni[name] = promisify(name, extraApi[name]);
  4677. });
  4678. }
  4679. Object.keys(eventApi).forEach(function (name) {
  4680. uni[name] = eventApi[name];
  4681. });
  4682. Object.keys(api).forEach(function (name) {
  4683. uni[name] = promisify(name, api[name]);
  4684. });
  4685. Object.keys(wx).forEach(function (name) {
  4686. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  4687. uni[name] = promisify(name, wrapper(name, wx[name]));
  4688. }
  4689. });
  4690. }
  4691. wx.createApp = createApp;
  4692. wx.createPage = createPage;
  4693. wx.createComponent = createComponent;
  4694. wx.createSubpackageApp = createSubpackageApp;
  4695. wx.createPlugin = createPlugin;
  4696. var uni$1 = uni;
  4697. var _default = uni$1;
  4698. exports.default = _default;
  4699. /* 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)))
  4700. /***/ }),
  4701. /***/ 20:
  4702. /*!****************************************************************!*\
  4703. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  4704. \****************************************************************/
  4705. /*! no static exports found */
  4706. /***/ (function(module, exports) {
  4707. function _iterableToArray(iter) {
  4708. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  4709. }
  4710. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  4711. /***/ }),
  4712. /***/ 21:
  4713. /*!******************************************************************!*\
  4714. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  4715. \******************************************************************/
  4716. /*! no static exports found */
  4717. /***/ (function(module, exports) {
  4718. function _nonIterableSpread() {
  4719. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  4720. }
  4721. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  4722. /***/ }),
  4723. /***/ 22:
  4724. /*!*************************************************************!*\
  4725. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  4726. \*************************************************************/
  4727. /*! no static exports found */
  4728. /***/ (function(module, exports, __webpack_require__) {
  4729. "use strict";
  4730. /* WEBPACK VAR INJECTION */(function(uni, global) {
  4731. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  4732. Object.defineProperty(exports, "__esModule", {
  4733. value: true
  4734. });
  4735. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  4736. exports.compileI18nJsonStr = compileI18nJsonStr;
  4737. exports.hasI18nJson = hasI18nJson;
  4738. exports.initVueI18n = initVueI18n;
  4739. exports.isI18nStr = isI18nStr;
  4740. exports.isString = void 0;
  4741. exports.normalizeLocale = normalizeLocale;
  4742. exports.parseI18nJson = parseI18nJson;
  4743. exports.resolveLocale = resolveLocale;
  4744. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  4745. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  4746. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  4747. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  4748. var isObject = function isObject(val) {
  4749. return val !== null && (0, _typeof2.default)(val) === 'object';
  4750. };
  4751. var defaultDelimiters = ['{', '}'];
  4752. var BaseFormatter = /*#__PURE__*/function () {
  4753. function BaseFormatter() {
  4754. (0, _classCallCheck2.default)(this, BaseFormatter);
  4755. this._caches = Object.create(null);
  4756. }
  4757. (0, _createClass2.default)(BaseFormatter, [{
  4758. key: "interpolate",
  4759. value: function interpolate(message, values) {
  4760. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  4761. if (!values) {
  4762. return [message];
  4763. }
  4764. var tokens = this._caches[message];
  4765. if (!tokens) {
  4766. tokens = parse(message, delimiters);
  4767. this._caches[message] = tokens;
  4768. }
  4769. return compile(tokens, values);
  4770. }
  4771. }]);
  4772. return BaseFormatter;
  4773. }();
  4774. exports.Formatter = BaseFormatter;
  4775. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  4776. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  4777. function parse(format, _ref) {
  4778. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  4779. startDelimiter = _ref2[0],
  4780. endDelimiter = _ref2[1];
  4781. var tokens = [];
  4782. var position = 0;
  4783. var text = '';
  4784. while (position < format.length) {
  4785. var char = format[position++];
  4786. if (char === startDelimiter) {
  4787. if (text) {
  4788. tokens.push({
  4789. type: 'text',
  4790. value: text
  4791. });
  4792. }
  4793. text = '';
  4794. var sub = '';
  4795. char = format[position++];
  4796. while (char !== undefined && char !== endDelimiter) {
  4797. sub += char;
  4798. char = format[position++];
  4799. }
  4800. var isClosed = char === endDelimiter;
  4801. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  4802. tokens.push({
  4803. value: sub,
  4804. type: type
  4805. });
  4806. }
  4807. // else if (char === '%') {
  4808. // // when found rails i18n syntax, skip text capture
  4809. // if (format[position] !== '{') {
  4810. // text += char
  4811. // }
  4812. // }
  4813. else {
  4814. text += char;
  4815. }
  4816. }
  4817. text && tokens.push({
  4818. type: 'text',
  4819. value: text
  4820. });
  4821. return tokens;
  4822. }
  4823. function compile(tokens, values) {
  4824. var compiled = [];
  4825. var index = 0;
  4826. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  4827. if (mode === 'unknown') {
  4828. return compiled;
  4829. }
  4830. while (index < tokens.length) {
  4831. var token = tokens[index];
  4832. switch (token.type) {
  4833. case 'text':
  4834. compiled.push(token.value);
  4835. break;
  4836. case 'list':
  4837. compiled.push(values[parseInt(token.value, 10)]);
  4838. break;
  4839. case 'named':
  4840. if (mode === 'named') {
  4841. compiled.push(values[token.value]);
  4842. } else {
  4843. if (true) {
  4844. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  4845. }
  4846. }
  4847. break;
  4848. case 'unknown':
  4849. if (true) {
  4850. console.warn("Detect 'unknown' type of token!");
  4851. }
  4852. break;
  4853. }
  4854. index++;
  4855. }
  4856. return compiled;
  4857. }
  4858. var LOCALE_ZH_HANS = 'zh-Hans';
  4859. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  4860. var LOCALE_ZH_HANT = 'zh-Hant';
  4861. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  4862. var LOCALE_EN = 'en';
  4863. exports.LOCALE_EN = LOCALE_EN;
  4864. var LOCALE_FR = 'fr';
  4865. exports.LOCALE_FR = LOCALE_FR;
  4866. var LOCALE_ES = 'es';
  4867. exports.LOCALE_ES = LOCALE_ES;
  4868. var hasOwnProperty = Object.prototype.hasOwnProperty;
  4869. var hasOwn = function hasOwn(val, key) {
  4870. return hasOwnProperty.call(val, key);
  4871. };
  4872. var defaultFormatter = new BaseFormatter();
  4873. function include(str, parts) {
  4874. return !!parts.find(function (part) {
  4875. return str.indexOf(part) !== -1;
  4876. });
  4877. }
  4878. function startsWith(str, parts) {
  4879. return parts.find(function (part) {
  4880. return str.indexOf(part) === 0;
  4881. });
  4882. }
  4883. function normalizeLocale(locale, messages) {
  4884. if (!locale) {
  4885. return;
  4886. }
  4887. locale = locale.trim().replace(/_/g, '-');
  4888. if (messages && messages[locale]) {
  4889. return locale;
  4890. }
  4891. locale = locale.toLowerCase();
  4892. if (locale === 'chinese') {
  4893. // 支付宝
  4894. return LOCALE_ZH_HANS;
  4895. }
  4896. if (locale.indexOf('zh') === 0) {
  4897. if (locale.indexOf('-hans') > -1) {
  4898. return LOCALE_ZH_HANS;
  4899. }
  4900. if (locale.indexOf('-hant') > -1) {
  4901. return LOCALE_ZH_HANT;
  4902. }
  4903. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  4904. return LOCALE_ZH_HANT;
  4905. }
  4906. return LOCALE_ZH_HANS;
  4907. }
  4908. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  4909. if (messages && Object.keys(messages).length > 0) {
  4910. locales = Object.keys(messages);
  4911. }
  4912. var lang = startsWith(locale, locales);
  4913. if (lang) {
  4914. return lang;
  4915. }
  4916. }
  4917. var I18n = /*#__PURE__*/function () {
  4918. function I18n(_ref3) {
  4919. var locale = _ref3.locale,
  4920. fallbackLocale = _ref3.fallbackLocale,
  4921. messages = _ref3.messages,
  4922. watcher = _ref3.watcher,
  4923. formater = _ref3.formater;
  4924. (0, _classCallCheck2.default)(this, I18n);
  4925. this.locale = LOCALE_EN;
  4926. this.fallbackLocale = LOCALE_EN;
  4927. this.message = {};
  4928. this.messages = {};
  4929. this.watchers = [];
  4930. if (fallbackLocale) {
  4931. this.fallbackLocale = fallbackLocale;
  4932. }
  4933. this.formater = formater || defaultFormatter;
  4934. this.messages = messages || {};
  4935. this.setLocale(locale || LOCALE_EN);
  4936. if (watcher) {
  4937. this.watchLocale(watcher);
  4938. }
  4939. }
  4940. (0, _createClass2.default)(I18n, [{
  4941. key: "setLocale",
  4942. value: function setLocale(locale) {
  4943. var _this = this;
  4944. var oldLocale = this.locale;
  4945. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  4946. if (!this.messages[this.locale]) {
  4947. // 可能初始化时不存在
  4948. this.messages[this.locale] = {};
  4949. }
  4950. this.message = this.messages[this.locale];
  4951. // 仅发生变化时,通知
  4952. if (oldLocale !== this.locale) {
  4953. this.watchers.forEach(function (watcher) {
  4954. watcher(_this.locale, oldLocale);
  4955. });
  4956. }
  4957. }
  4958. }, {
  4959. key: "getLocale",
  4960. value: function getLocale() {
  4961. return this.locale;
  4962. }
  4963. }, {
  4964. key: "watchLocale",
  4965. value: function watchLocale(fn) {
  4966. var _this2 = this;
  4967. var index = this.watchers.push(fn) - 1;
  4968. return function () {
  4969. _this2.watchers.splice(index, 1);
  4970. };
  4971. }
  4972. }, {
  4973. key: "add",
  4974. value: function add(locale, message) {
  4975. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  4976. var curMessages = this.messages[locale];
  4977. if (curMessages) {
  4978. if (override) {
  4979. Object.assign(curMessages, message);
  4980. } else {
  4981. Object.keys(message).forEach(function (key) {
  4982. if (!hasOwn(curMessages, key)) {
  4983. curMessages[key] = message[key];
  4984. }
  4985. });
  4986. }
  4987. } else {
  4988. this.messages[locale] = message;
  4989. }
  4990. }
  4991. }, {
  4992. key: "f",
  4993. value: function f(message, values, delimiters) {
  4994. return this.formater.interpolate(message, values, delimiters).join('');
  4995. }
  4996. }, {
  4997. key: "t",
  4998. value: function t(key, locale, values) {
  4999. var message = this.message;
  5000. if (typeof locale === 'string') {
  5001. locale = normalizeLocale(locale, this.messages);
  5002. locale && (message = this.messages[locale]);
  5003. } else {
  5004. values = locale;
  5005. }
  5006. if (!hasOwn(message, key)) {
  5007. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  5008. return key;
  5009. }
  5010. return this.formater.interpolate(message[key], values).join('');
  5011. }
  5012. }]);
  5013. return I18n;
  5014. }();
  5015. exports.I18n = I18n;
  5016. function watchAppLocale(appVm, i18n) {
  5017. // 需要保证 watch 的触发在组件渲染之前
  5018. if (appVm.$watchLocale) {
  5019. // vue2
  5020. appVm.$watchLocale(function (newLocale) {
  5021. i18n.setLocale(newLocale);
  5022. });
  5023. } else {
  5024. appVm.$watch(function () {
  5025. return appVm.$locale;
  5026. }, function (newLocale) {
  5027. i18n.setLocale(newLocale);
  5028. });
  5029. }
  5030. }
  5031. function getDefaultLocale() {
  5032. if (typeof uni !== 'undefined' && uni.getLocale) {
  5033. return uni.getLocale();
  5034. }
  5035. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  5036. if (typeof global !== 'undefined' && global.getLocale) {
  5037. return global.getLocale();
  5038. }
  5039. return LOCALE_EN;
  5040. }
  5041. function initVueI18n(locale) {
  5042. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  5043. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  5044. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  5045. // 兼容旧版本入参
  5046. if (typeof locale !== 'string') {
  5047. var _ref4 = [messages, locale];
  5048. locale = _ref4[0];
  5049. messages = _ref4[1];
  5050. }
  5051. if (typeof locale !== 'string') {
  5052. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  5053. locale = getDefaultLocale();
  5054. }
  5055. if (typeof fallbackLocale !== 'string') {
  5056. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  5057. }
  5058. var i18n = new I18n({
  5059. locale: locale,
  5060. fallbackLocale: fallbackLocale,
  5061. messages: messages,
  5062. watcher: watcher
  5063. });
  5064. var _t = function t(key, values) {
  5065. if (typeof getApp !== 'function') {
  5066. // app view
  5067. /* eslint-disable no-func-assign */
  5068. _t = function t(key, values) {
  5069. return i18n.t(key, values);
  5070. };
  5071. } else {
  5072. var isWatchedAppLocale = false;
  5073. _t = function t(key, values) {
  5074. var appVm = getApp().$vm;
  5075. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  5076. // options: {
  5077. // type: Array,
  5078. // default () {
  5079. // return [{
  5080. // icon: 'shop',
  5081. // text: t("uni-goods-nav.options.shop"),
  5082. // }, {
  5083. // icon: 'cart',
  5084. // text: t("uni-goods-nav.options.cart")
  5085. // }]
  5086. // }
  5087. // },
  5088. if (appVm) {
  5089. // 触发响应式
  5090. appVm.$locale;
  5091. if (!isWatchedAppLocale) {
  5092. isWatchedAppLocale = true;
  5093. watchAppLocale(appVm, i18n);
  5094. }
  5095. }
  5096. return i18n.t(key, values);
  5097. };
  5098. }
  5099. return _t(key, values);
  5100. };
  5101. return {
  5102. i18n: i18n,
  5103. f: function f(message, values, delimiters) {
  5104. return i18n.f(message, values, delimiters);
  5105. },
  5106. t: function t(key, values) {
  5107. return _t(key, values);
  5108. },
  5109. add: function add(locale, message) {
  5110. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  5111. return i18n.add(locale, message, override);
  5112. },
  5113. watch: function watch(fn) {
  5114. return i18n.watchLocale(fn);
  5115. },
  5116. getLocale: function getLocale() {
  5117. return i18n.getLocale();
  5118. },
  5119. setLocale: function setLocale(newLocale) {
  5120. return i18n.setLocale(newLocale);
  5121. }
  5122. };
  5123. }
  5124. var isString = function isString(val) {
  5125. return typeof val === 'string';
  5126. };
  5127. exports.isString = isString;
  5128. var formater;
  5129. function hasI18nJson(jsonObj, delimiters) {
  5130. if (!formater) {
  5131. formater = new BaseFormatter();
  5132. }
  5133. return walkJsonObj(jsonObj, function (jsonObj, key) {
  5134. var value = jsonObj[key];
  5135. if (isString(value)) {
  5136. if (isI18nStr(value, delimiters)) {
  5137. return true;
  5138. }
  5139. } else {
  5140. return hasI18nJson(value, delimiters);
  5141. }
  5142. });
  5143. }
  5144. function parseI18nJson(jsonObj, values, delimiters) {
  5145. if (!formater) {
  5146. formater = new BaseFormatter();
  5147. }
  5148. walkJsonObj(jsonObj, function (jsonObj, key) {
  5149. var value = jsonObj[key];
  5150. if (isString(value)) {
  5151. if (isI18nStr(value, delimiters)) {
  5152. jsonObj[key] = compileStr(value, values, delimiters);
  5153. }
  5154. } else {
  5155. parseI18nJson(value, values, delimiters);
  5156. }
  5157. });
  5158. return jsonObj;
  5159. }
  5160. function compileI18nJsonStr(jsonStr, _ref5) {
  5161. var locale = _ref5.locale,
  5162. locales = _ref5.locales,
  5163. delimiters = _ref5.delimiters;
  5164. if (!isI18nStr(jsonStr, delimiters)) {
  5165. return jsonStr;
  5166. }
  5167. if (!formater) {
  5168. formater = new BaseFormatter();
  5169. }
  5170. var localeValues = [];
  5171. Object.keys(locales).forEach(function (name) {
  5172. if (name !== locale) {
  5173. localeValues.push({
  5174. locale: name,
  5175. values: locales[name]
  5176. });
  5177. }
  5178. });
  5179. localeValues.unshift({
  5180. locale: locale,
  5181. values: locales[locale]
  5182. });
  5183. try {
  5184. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  5185. } catch (e) {}
  5186. return jsonStr;
  5187. }
  5188. function isI18nStr(value, delimiters) {
  5189. return value.indexOf(delimiters[0]) > -1;
  5190. }
  5191. function compileStr(value, values, delimiters) {
  5192. return formater.interpolate(value, values, delimiters).join('');
  5193. }
  5194. function compileValue(jsonObj, key, localeValues, delimiters) {
  5195. var value = jsonObj[key];
  5196. if (isString(value)) {
  5197. // 存在国际化
  5198. if (isI18nStr(value, delimiters)) {
  5199. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  5200. if (localeValues.length > 1) {
  5201. // 格式化国际化语言
  5202. var valueLocales = jsonObj[key + 'Locales'] = {};
  5203. localeValues.forEach(function (localValue) {
  5204. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  5205. });
  5206. }
  5207. }
  5208. } else {
  5209. compileJsonObj(value, localeValues, delimiters);
  5210. }
  5211. }
  5212. function compileJsonObj(jsonObj, localeValues, delimiters) {
  5213. walkJsonObj(jsonObj, function (jsonObj, key) {
  5214. compileValue(jsonObj, key, localeValues, delimiters);
  5215. });
  5216. return jsonObj;
  5217. }
  5218. function walkJsonObj(jsonObj, walk) {
  5219. if (Array.isArray(jsonObj)) {
  5220. for (var i = 0; i < jsonObj.length; i++) {
  5221. if (walk(jsonObj, i)) {
  5222. return true;
  5223. }
  5224. }
  5225. } else if (isObject(jsonObj)) {
  5226. for (var key in jsonObj) {
  5227. if (walk(jsonObj, key)) {
  5228. return true;
  5229. }
  5230. }
  5231. }
  5232. return false;
  5233. }
  5234. function resolveLocale(locales) {
  5235. return function (locale) {
  5236. if (!locale) {
  5237. return locale;
  5238. }
  5239. locale = normalizeLocale(locale) || locale;
  5240. return resolveLocaleChain(locale).find(function (locale) {
  5241. return locales.indexOf(locale) > -1;
  5242. });
  5243. };
  5244. }
  5245. function resolveLocaleChain(locale) {
  5246. var chain = [];
  5247. var tokens = locale.split('-');
  5248. while (tokens.length) {
  5249. chain.push(tokens.join('-'));
  5250. tokens.pop();
  5251. }
  5252. return chain;
  5253. }
  5254. /* 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)))
  5255. /***/ }),
  5256. /***/ 23:
  5257. /*!***************************************************************!*\
  5258. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  5259. \***************************************************************/
  5260. /*! no static exports found */
  5261. /***/ (function(module, exports) {
  5262. function _classCallCheck(instance, Constructor) {
  5263. if (!(instance instanceof Constructor)) {
  5264. throw new TypeError("Cannot call a class as a function");
  5265. }
  5266. }
  5267. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  5268. /***/ }),
  5269. /***/ 24:
  5270. /*!************************************************************!*\
  5271. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  5272. \************************************************************/
  5273. /*! no static exports found */
  5274. /***/ (function(module, exports, __webpack_require__) {
  5275. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  5276. function _defineProperties(target, props) {
  5277. for (var i = 0; i < props.length; i++) {
  5278. var descriptor = props[i];
  5279. descriptor.enumerable = descriptor.enumerable || false;
  5280. descriptor.configurable = true;
  5281. if ("value" in descriptor) descriptor.writable = true;
  5282. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  5283. }
  5284. }
  5285. function _createClass(Constructor, protoProps, staticProps) {
  5286. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  5287. if (staticProps) _defineProperties(Constructor, staticProps);
  5288. Object.defineProperty(Constructor, "prototype", {
  5289. writable: false
  5290. });
  5291. return Constructor;
  5292. }
  5293. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  5294. /***/ }),
  5295. /***/ 25:
  5296. /*!******************************************************************************************!*\
  5297. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  5298. \******************************************************************************************/
  5299. /*! exports provided: default */
  5300. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5301. "use strict";
  5302. __webpack_require__.r(__webpack_exports__);
  5303. /* WEBPACK VAR INJECTION */(function(global) {/*!
  5304. * Vue.js v2.6.11
  5305. * (c) 2014-2023 Evan You
  5306. * Released under the MIT License.
  5307. */
  5308. /* */
  5309. var emptyObject = Object.freeze({});
  5310. // These helpers produce better VM code in JS engines due to their
  5311. // explicitness and function inlining.
  5312. function isUndef (v) {
  5313. return v === undefined || v === null
  5314. }
  5315. function isDef (v) {
  5316. return v !== undefined && v !== null
  5317. }
  5318. function isTrue (v) {
  5319. return v === true
  5320. }
  5321. function isFalse (v) {
  5322. return v === false
  5323. }
  5324. /**
  5325. * Check if value is primitive.
  5326. */
  5327. function isPrimitive (value) {
  5328. return (
  5329. typeof value === 'string' ||
  5330. typeof value === 'number' ||
  5331. // $flow-disable-line
  5332. typeof value === 'symbol' ||
  5333. typeof value === 'boolean'
  5334. )
  5335. }
  5336. /**
  5337. * Quick object check - this is primarily used to tell
  5338. * Objects from primitive values when we know the value
  5339. * is a JSON-compliant type.
  5340. */
  5341. function isObject (obj) {
  5342. return obj !== null && typeof obj === 'object'
  5343. }
  5344. /**
  5345. * Get the raw type string of a value, e.g., [object Object].
  5346. */
  5347. var _toString = Object.prototype.toString;
  5348. function toRawType (value) {
  5349. return _toString.call(value).slice(8, -1)
  5350. }
  5351. /**
  5352. * Strict object type check. Only returns true
  5353. * for plain JavaScript objects.
  5354. */
  5355. function isPlainObject (obj) {
  5356. return _toString.call(obj) === '[object Object]'
  5357. }
  5358. function isRegExp (v) {
  5359. return _toString.call(v) === '[object RegExp]'
  5360. }
  5361. /**
  5362. * Check if val is a valid array index.
  5363. */
  5364. function isValidArrayIndex (val) {
  5365. var n = parseFloat(String(val));
  5366. return n >= 0 && Math.floor(n) === n && isFinite(val)
  5367. }
  5368. function isPromise (val) {
  5369. return (
  5370. isDef(val) &&
  5371. typeof val.then === 'function' &&
  5372. typeof val.catch === 'function'
  5373. )
  5374. }
  5375. /**
  5376. * Convert a value to a string that is actually rendered.
  5377. */
  5378. function toString (val) {
  5379. return val == null
  5380. ? ''
  5381. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  5382. ? JSON.stringify(val, null, 2)
  5383. : String(val)
  5384. }
  5385. /**
  5386. * Convert an input value to a number for persistence.
  5387. * If the conversion fails, return original string.
  5388. */
  5389. function toNumber (val) {
  5390. var n = parseFloat(val);
  5391. return isNaN(n) ? val : n
  5392. }
  5393. /**
  5394. * Make a map and return a function for checking if a key
  5395. * is in that map.
  5396. */
  5397. function makeMap (
  5398. str,
  5399. expectsLowerCase
  5400. ) {
  5401. var map = Object.create(null);
  5402. var list = str.split(',');
  5403. for (var i = 0; i < list.length; i++) {
  5404. map[list[i]] = true;
  5405. }
  5406. return expectsLowerCase
  5407. ? function (val) { return map[val.toLowerCase()]; }
  5408. : function (val) { return map[val]; }
  5409. }
  5410. /**
  5411. * Check if a tag is a built-in tag.
  5412. */
  5413. var isBuiltInTag = makeMap('slot,component', true);
  5414. /**
  5415. * Check if an attribute is a reserved attribute.
  5416. */
  5417. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  5418. /**
  5419. * Remove an item from an array.
  5420. */
  5421. function remove (arr, item) {
  5422. if (arr.length) {
  5423. var index = arr.indexOf(item);
  5424. if (index > -1) {
  5425. return arr.splice(index, 1)
  5426. }
  5427. }
  5428. }
  5429. /**
  5430. * Check whether an object has the property.
  5431. */
  5432. var hasOwnProperty = Object.prototype.hasOwnProperty;
  5433. function hasOwn (obj, key) {
  5434. return hasOwnProperty.call(obj, key)
  5435. }
  5436. /**
  5437. * Create a cached version of a pure function.
  5438. */
  5439. function cached (fn) {
  5440. var cache = Object.create(null);
  5441. return (function cachedFn (str) {
  5442. var hit = cache[str];
  5443. return hit || (cache[str] = fn(str))
  5444. })
  5445. }
  5446. /**
  5447. * Camelize a hyphen-delimited string.
  5448. */
  5449. var camelizeRE = /-(\w)/g;
  5450. var camelize = cached(function (str) {
  5451. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  5452. });
  5453. /**
  5454. * Capitalize a string.
  5455. */
  5456. var capitalize = cached(function (str) {
  5457. return str.charAt(0).toUpperCase() + str.slice(1)
  5458. });
  5459. /**
  5460. * Hyphenate a camelCase string.
  5461. */
  5462. var hyphenateRE = /\B([A-Z])/g;
  5463. var hyphenate = cached(function (str) {
  5464. return str.replace(hyphenateRE, '-$1').toLowerCase()
  5465. });
  5466. /**
  5467. * Simple bind polyfill for environments that do not support it,
  5468. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  5469. * since native bind is now performant enough in most browsers.
  5470. * But removing it would mean breaking code that was able to run in
  5471. * PhantomJS 1.x, so this must be kept for backward compatibility.
  5472. */
  5473. /* istanbul ignore next */
  5474. function polyfillBind (fn, ctx) {
  5475. function boundFn (a) {
  5476. var l = arguments.length;
  5477. return l
  5478. ? l > 1
  5479. ? fn.apply(ctx, arguments)
  5480. : fn.call(ctx, a)
  5481. : fn.call(ctx)
  5482. }
  5483. boundFn._length = fn.length;
  5484. return boundFn
  5485. }
  5486. function nativeBind (fn, ctx) {
  5487. return fn.bind(ctx)
  5488. }
  5489. var bind = Function.prototype.bind
  5490. ? nativeBind
  5491. : polyfillBind;
  5492. /**
  5493. * Convert an Array-like object to a real Array.
  5494. */
  5495. function toArray (list, start) {
  5496. start = start || 0;
  5497. var i = list.length - start;
  5498. var ret = new Array(i);
  5499. while (i--) {
  5500. ret[i] = list[i + start];
  5501. }
  5502. return ret
  5503. }
  5504. /**
  5505. * Mix properties into target object.
  5506. */
  5507. function extend (to, _from) {
  5508. for (var key in _from) {
  5509. to[key] = _from[key];
  5510. }
  5511. return to
  5512. }
  5513. /**
  5514. * Merge an Array of Objects into a single Object.
  5515. */
  5516. function toObject (arr) {
  5517. var res = {};
  5518. for (var i = 0; i < arr.length; i++) {
  5519. if (arr[i]) {
  5520. extend(res, arr[i]);
  5521. }
  5522. }
  5523. return res
  5524. }
  5525. /* eslint-disable no-unused-vars */
  5526. /**
  5527. * Perform no operation.
  5528. * Stubbing args to make Flow happy without leaving useless transpiled code
  5529. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  5530. */
  5531. function noop (a, b, c) {}
  5532. /**
  5533. * Always return false.
  5534. */
  5535. var no = function (a, b, c) { return false; };
  5536. /* eslint-enable no-unused-vars */
  5537. /**
  5538. * Return the same value.
  5539. */
  5540. var identity = function (_) { return _; };
  5541. /**
  5542. * Check if two values are loosely equal - that is,
  5543. * if they are plain objects, do they have the same shape?
  5544. */
  5545. function looseEqual (a, b) {
  5546. if (a === b) { return true }
  5547. var isObjectA = isObject(a);
  5548. var isObjectB = isObject(b);
  5549. if (isObjectA && isObjectB) {
  5550. try {
  5551. var isArrayA = Array.isArray(a);
  5552. var isArrayB = Array.isArray(b);
  5553. if (isArrayA && isArrayB) {
  5554. return a.length === b.length && a.every(function (e, i) {
  5555. return looseEqual(e, b[i])
  5556. })
  5557. } else if (a instanceof Date && b instanceof Date) {
  5558. return a.getTime() === b.getTime()
  5559. } else if (!isArrayA && !isArrayB) {
  5560. var keysA = Object.keys(a);
  5561. var keysB = Object.keys(b);
  5562. return keysA.length === keysB.length && keysA.every(function (key) {
  5563. return looseEqual(a[key], b[key])
  5564. })
  5565. } else {
  5566. /* istanbul ignore next */
  5567. return false
  5568. }
  5569. } catch (e) {
  5570. /* istanbul ignore next */
  5571. return false
  5572. }
  5573. } else if (!isObjectA && !isObjectB) {
  5574. return String(a) === String(b)
  5575. } else {
  5576. return false
  5577. }
  5578. }
  5579. /**
  5580. * Return the first index at which a loosely equal value can be
  5581. * found in the array (if value is a plain object, the array must
  5582. * contain an object of the same shape), or -1 if it is not present.
  5583. */
  5584. function looseIndexOf (arr, val) {
  5585. for (var i = 0; i < arr.length; i++) {
  5586. if (looseEqual(arr[i], val)) { return i }
  5587. }
  5588. return -1
  5589. }
  5590. /**
  5591. * Ensure a function is called only once.
  5592. */
  5593. function once (fn) {
  5594. var called = false;
  5595. return function () {
  5596. if (!called) {
  5597. called = true;
  5598. fn.apply(this, arguments);
  5599. }
  5600. }
  5601. }
  5602. var ASSET_TYPES = [
  5603. 'component',
  5604. 'directive',
  5605. 'filter'
  5606. ];
  5607. var LIFECYCLE_HOOKS = [
  5608. 'beforeCreate',
  5609. 'created',
  5610. 'beforeMount',
  5611. 'mounted',
  5612. 'beforeUpdate',
  5613. 'updated',
  5614. 'beforeDestroy',
  5615. 'destroyed',
  5616. 'activated',
  5617. 'deactivated',
  5618. 'errorCaptured',
  5619. 'serverPrefetch'
  5620. ];
  5621. /* */
  5622. var config = ({
  5623. /**
  5624. * Option merge strategies (used in core/util/options)
  5625. */
  5626. // $flow-disable-line
  5627. optionMergeStrategies: Object.create(null),
  5628. /**
  5629. * Whether to suppress warnings.
  5630. */
  5631. silent: false,
  5632. /**
  5633. * Show production mode tip message on boot?
  5634. */
  5635. productionTip: "development" !== 'production',
  5636. /**
  5637. * Whether to enable devtools
  5638. */
  5639. devtools: "development" !== 'production',
  5640. /**
  5641. * Whether to record perf
  5642. */
  5643. performance: false,
  5644. /**
  5645. * Error handler for watcher errors
  5646. */
  5647. errorHandler: null,
  5648. /**
  5649. * Warn handler for watcher warns
  5650. */
  5651. warnHandler: null,
  5652. /**
  5653. * Ignore certain custom elements
  5654. */
  5655. ignoredElements: [],
  5656. /**
  5657. * Custom user key aliases for v-on
  5658. */
  5659. // $flow-disable-line
  5660. keyCodes: Object.create(null),
  5661. /**
  5662. * Check if a tag is reserved so that it cannot be registered as a
  5663. * component. This is platform-dependent and may be overwritten.
  5664. */
  5665. isReservedTag: no,
  5666. /**
  5667. * Check if an attribute is reserved so that it cannot be used as a component
  5668. * prop. This is platform-dependent and may be overwritten.
  5669. */
  5670. isReservedAttr: no,
  5671. /**
  5672. * Check if a tag is an unknown element.
  5673. * Platform-dependent.
  5674. */
  5675. isUnknownElement: no,
  5676. /**
  5677. * Get the namespace of an element
  5678. */
  5679. getTagNamespace: noop,
  5680. /**
  5681. * Parse the real tag name for the specific platform.
  5682. */
  5683. parsePlatformTagName: identity,
  5684. /**
  5685. * Check if an attribute must be bound using property, e.g. value
  5686. * Platform-dependent.
  5687. */
  5688. mustUseProp: no,
  5689. /**
  5690. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  5691. * This will significantly reduce performance if set to false.
  5692. */
  5693. async: true,
  5694. /**
  5695. * Exposed for legacy reasons
  5696. */
  5697. _lifecycleHooks: LIFECYCLE_HOOKS
  5698. });
  5699. /* */
  5700. /**
  5701. * unicode letters used for parsing html tags, component names and property paths.
  5702. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  5703. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  5704. */
  5705. 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/;
  5706. /**
  5707. * Check if a string starts with $ or _
  5708. */
  5709. function isReserved (str) {
  5710. var c = (str + '').charCodeAt(0);
  5711. return c === 0x24 || c === 0x5F
  5712. }
  5713. /**
  5714. * Define a property.
  5715. */
  5716. function def (obj, key, val, enumerable) {
  5717. Object.defineProperty(obj, key, {
  5718. value: val,
  5719. enumerable: !!enumerable,
  5720. writable: true,
  5721. configurable: true
  5722. });
  5723. }
  5724. /**
  5725. * Parse simple path.
  5726. */
  5727. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  5728. function parsePath (path) {
  5729. if (bailRE.test(path)) {
  5730. return
  5731. }
  5732. var segments = path.split('.');
  5733. return function (obj) {
  5734. for (var i = 0; i < segments.length; i++) {
  5735. if (!obj) { return }
  5736. obj = obj[segments[i]];
  5737. }
  5738. return obj
  5739. }
  5740. }
  5741. /* */
  5742. // can we use __proto__?
  5743. var hasProto = '__proto__' in {};
  5744. // Browser environment sniffing
  5745. var inBrowser = typeof window !== 'undefined';
  5746. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  5747. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  5748. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  5749. var isIE = UA && /msie|trident/.test(UA);
  5750. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  5751. var isEdge = UA && UA.indexOf('edge/') > 0;
  5752. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  5753. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  5754. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  5755. var isPhantomJS = UA && /phantomjs/.test(UA);
  5756. var isFF = UA && UA.match(/firefox\/(\d+)/);
  5757. // Firefox has a "watch" function on Object.prototype...
  5758. var nativeWatch = ({}).watch;
  5759. if (inBrowser) {
  5760. try {
  5761. var opts = {};
  5762. Object.defineProperty(opts, 'passive', ({
  5763. get: function get () {
  5764. }
  5765. })); // https://github.com/facebook/flow/issues/285
  5766. window.addEventListener('test-passive', null, opts);
  5767. } catch (e) {}
  5768. }
  5769. // this needs to be lazy-evaled because vue may be required before
  5770. // vue-server-renderer can set VUE_ENV
  5771. var _isServer;
  5772. var isServerRendering = function () {
  5773. if (_isServer === undefined) {
  5774. /* istanbul ignore if */
  5775. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  5776. // detect presence of vue-server-renderer and avoid
  5777. // Webpack shimming the process
  5778. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  5779. } else {
  5780. _isServer = false;
  5781. }
  5782. }
  5783. return _isServer
  5784. };
  5785. // detect devtools
  5786. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  5787. /* istanbul ignore next */
  5788. function isNative (Ctor) {
  5789. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  5790. }
  5791. var hasSymbol =
  5792. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  5793. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  5794. var _Set;
  5795. /* istanbul ignore if */ // $flow-disable-line
  5796. if (typeof Set !== 'undefined' && isNative(Set)) {
  5797. // use native Set when available.
  5798. _Set = Set;
  5799. } else {
  5800. // a non-standard Set polyfill that only works with primitive keys.
  5801. _Set = /*@__PURE__*/(function () {
  5802. function Set () {
  5803. this.set = Object.create(null);
  5804. }
  5805. Set.prototype.has = function has (key) {
  5806. return this.set[key] === true
  5807. };
  5808. Set.prototype.add = function add (key) {
  5809. this.set[key] = true;
  5810. };
  5811. Set.prototype.clear = function clear () {
  5812. this.set = Object.create(null);
  5813. };
  5814. return Set;
  5815. }());
  5816. }
  5817. /* */
  5818. var warn = noop;
  5819. var tip = noop;
  5820. var generateComponentTrace = (noop); // work around flow check
  5821. var formatComponentName = (noop);
  5822. if (true) {
  5823. var hasConsole = typeof console !== 'undefined';
  5824. var classifyRE = /(?:^|[-_])(\w)/g;
  5825. var classify = function (str) { return str
  5826. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  5827. .replace(/[-_]/g, ''); };
  5828. warn = function (msg, vm) {
  5829. var trace = vm ? generateComponentTrace(vm) : '';
  5830. if (config.warnHandler) {
  5831. config.warnHandler.call(null, msg, vm, trace);
  5832. } else if (hasConsole && (!config.silent)) {
  5833. console.error(("[Vue warn]: " + msg + trace));
  5834. }
  5835. };
  5836. tip = function (msg, vm) {
  5837. if (hasConsole && (!config.silent)) {
  5838. console.warn("[Vue tip]: " + msg + (
  5839. vm ? generateComponentTrace(vm) : ''
  5840. ));
  5841. }
  5842. };
  5843. formatComponentName = function (vm, includeFile) {
  5844. if (vm.$root === vm) {
  5845. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  5846. return ('') + vm.$options.__file
  5847. }
  5848. return '<Root>'
  5849. }
  5850. var options = typeof vm === 'function' && vm.cid != null
  5851. ? vm.options
  5852. : vm._isVue
  5853. ? vm.$options || vm.constructor.options
  5854. : vm;
  5855. var name = options.name || options._componentTag;
  5856. var file = options.__file;
  5857. if (!name && file) {
  5858. var match = file.match(/([^/\\]+)\.vue$/);
  5859. name = match && match[1];
  5860. }
  5861. return (
  5862. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  5863. (file && includeFile !== false ? (" at " + file) : '')
  5864. )
  5865. };
  5866. var repeat = function (str, n) {
  5867. var res = '';
  5868. while (n) {
  5869. if (n % 2 === 1) { res += str; }
  5870. if (n > 1) { str += str; }
  5871. n >>= 1;
  5872. }
  5873. return res
  5874. };
  5875. generateComponentTrace = function (vm) {
  5876. if (vm._isVue && vm.$parent) {
  5877. var tree = [];
  5878. var currentRecursiveSequence = 0;
  5879. while (vm && vm.$options.name !== 'PageBody') {
  5880. if (tree.length > 0) {
  5881. var last = tree[tree.length - 1];
  5882. if (last.constructor === vm.constructor) {
  5883. currentRecursiveSequence++;
  5884. vm = vm.$parent;
  5885. continue
  5886. } else if (currentRecursiveSequence > 0) {
  5887. tree[tree.length - 1] = [last, currentRecursiveSequence];
  5888. currentRecursiveSequence = 0;
  5889. }
  5890. }
  5891. !vm.$options.isReserved && tree.push(vm);
  5892. vm = vm.$parent;
  5893. }
  5894. return '\n\nfound in\n\n' + tree
  5895. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  5896. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  5897. : formatComponentName(vm))); })
  5898. .join('\n')
  5899. } else {
  5900. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  5901. }
  5902. };
  5903. }
  5904. /* */
  5905. var uid = 0;
  5906. /**
  5907. * A dep is an observable that can have multiple
  5908. * directives subscribing to it.
  5909. */
  5910. var Dep = function Dep () {
  5911. this.id = uid++;
  5912. this.subs = [];
  5913. };
  5914. Dep.prototype.addSub = function addSub (sub) {
  5915. this.subs.push(sub);
  5916. };
  5917. Dep.prototype.removeSub = function removeSub (sub) {
  5918. remove(this.subs, sub);
  5919. };
  5920. Dep.prototype.depend = function depend () {
  5921. if (Dep.SharedObject.target) {
  5922. Dep.SharedObject.target.addDep(this);
  5923. }
  5924. };
  5925. Dep.prototype.notify = function notify () {
  5926. // stabilize the subscriber list first
  5927. var subs = this.subs.slice();
  5928. if ( true && !config.async) {
  5929. // subs aren't sorted in scheduler if not running async
  5930. // we need to sort them now to make sure they fire in correct
  5931. // order
  5932. subs.sort(function (a, b) { return a.id - b.id; });
  5933. }
  5934. for (var i = 0, l = subs.length; i < l; i++) {
  5935. subs[i].update();
  5936. }
  5937. };
  5938. // The current target watcher being evaluated.
  5939. // This is globally unique because only one watcher
  5940. // can be evaluated at a time.
  5941. // fixed by xxxxxx (nvue shared vuex)
  5942. /* eslint-disable no-undef */
  5943. Dep.SharedObject = {};
  5944. Dep.SharedObject.target = null;
  5945. Dep.SharedObject.targetStack = [];
  5946. function pushTarget (target) {
  5947. Dep.SharedObject.targetStack.push(target);
  5948. Dep.SharedObject.target = target;
  5949. Dep.target = target;
  5950. }
  5951. function popTarget () {
  5952. Dep.SharedObject.targetStack.pop();
  5953. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  5954. Dep.target = Dep.SharedObject.target;
  5955. }
  5956. /* */
  5957. var VNode = function VNode (
  5958. tag,
  5959. data,
  5960. children,
  5961. text,
  5962. elm,
  5963. context,
  5964. componentOptions,
  5965. asyncFactory
  5966. ) {
  5967. this.tag = tag;
  5968. this.data = data;
  5969. this.children = children;
  5970. this.text = text;
  5971. this.elm = elm;
  5972. this.ns = undefined;
  5973. this.context = context;
  5974. this.fnContext = undefined;
  5975. this.fnOptions = undefined;
  5976. this.fnScopeId = undefined;
  5977. this.key = data && data.key;
  5978. this.componentOptions = componentOptions;
  5979. this.componentInstance = undefined;
  5980. this.parent = undefined;
  5981. this.raw = false;
  5982. this.isStatic = false;
  5983. this.isRootInsert = true;
  5984. this.isComment = false;
  5985. this.isCloned = false;
  5986. this.isOnce = false;
  5987. this.asyncFactory = asyncFactory;
  5988. this.asyncMeta = undefined;
  5989. this.isAsyncPlaceholder = false;
  5990. };
  5991. var prototypeAccessors = { child: { configurable: true } };
  5992. // DEPRECATED: alias for componentInstance for backwards compat.
  5993. /* istanbul ignore next */
  5994. prototypeAccessors.child.get = function () {
  5995. return this.componentInstance
  5996. };
  5997. Object.defineProperties( VNode.prototype, prototypeAccessors );
  5998. var createEmptyVNode = function (text) {
  5999. if ( text === void 0 ) text = '';
  6000. var node = new VNode();
  6001. node.text = text;
  6002. node.isComment = true;
  6003. return node
  6004. };
  6005. function createTextVNode (val) {
  6006. return new VNode(undefined, undefined, undefined, String(val))
  6007. }
  6008. // optimized shallow clone
  6009. // used for static nodes and slot nodes because they may be reused across
  6010. // multiple renders, cloning them avoids errors when DOM manipulations rely
  6011. // on their elm reference.
  6012. function cloneVNode (vnode) {
  6013. var cloned = new VNode(
  6014. vnode.tag,
  6015. vnode.data,
  6016. // #7975
  6017. // clone children array to avoid mutating original in case of cloning
  6018. // a child.
  6019. vnode.children && vnode.children.slice(),
  6020. vnode.text,
  6021. vnode.elm,
  6022. vnode.context,
  6023. vnode.componentOptions,
  6024. vnode.asyncFactory
  6025. );
  6026. cloned.ns = vnode.ns;
  6027. cloned.isStatic = vnode.isStatic;
  6028. cloned.key = vnode.key;
  6029. cloned.isComment = vnode.isComment;
  6030. cloned.fnContext = vnode.fnContext;
  6031. cloned.fnOptions = vnode.fnOptions;
  6032. cloned.fnScopeId = vnode.fnScopeId;
  6033. cloned.asyncMeta = vnode.asyncMeta;
  6034. cloned.isCloned = true;
  6035. return cloned
  6036. }
  6037. /*
  6038. * not type checking this file because flow doesn't play well with
  6039. * dynamically accessing methods on Array prototype
  6040. */
  6041. var arrayProto = Array.prototype;
  6042. var arrayMethods = Object.create(arrayProto);
  6043. var methodsToPatch = [
  6044. 'push',
  6045. 'pop',
  6046. 'shift',
  6047. 'unshift',
  6048. 'splice',
  6049. 'sort',
  6050. 'reverse'
  6051. ];
  6052. /**
  6053. * Intercept mutating methods and emit events
  6054. */
  6055. methodsToPatch.forEach(function (method) {
  6056. // cache original method
  6057. var original = arrayProto[method];
  6058. def(arrayMethods, method, function mutator () {
  6059. var args = [], len = arguments.length;
  6060. while ( len-- ) args[ len ] = arguments[ len ];
  6061. var result = original.apply(this, args);
  6062. var ob = this.__ob__;
  6063. var inserted;
  6064. switch (method) {
  6065. case 'push':
  6066. case 'unshift':
  6067. inserted = args;
  6068. break
  6069. case 'splice':
  6070. inserted = args.slice(2);
  6071. break
  6072. }
  6073. if (inserted) { ob.observeArray(inserted); }
  6074. // notify change
  6075. ob.dep.notify();
  6076. return result
  6077. });
  6078. });
  6079. /* */
  6080. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  6081. /**
  6082. * In some cases we may want to disable observation inside a component's
  6083. * update computation.
  6084. */
  6085. var shouldObserve = true;
  6086. function toggleObserving (value) {
  6087. shouldObserve = value;
  6088. }
  6089. /**
  6090. * Observer class that is attached to each observed
  6091. * object. Once attached, the observer converts the target
  6092. * object's property keys into getter/setters that
  6093. * collect dependencies and dispatch updates.
  6094. */
  6095. var Observer = function Observer (value) {
  6096. this.value = value;
  6097. this.dep = new Dep();
  6098. this.vmCount = 0;
  6099. def(value, '__ob__', this);
  6100. if (Array.isArray(value)) {
  6101. if (hasProto) {
  6102. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  6103. if(value.push !== value.__proto__.push){
  6104. copyAugment(value, arrayMethods, arrayKeys);
  6105. } else {
  6106. protoAugment(value, arrayMethods);
  6107. }
  6108. }
  6109. } else {
  6110. copyAugment(value, arrayMethods, arrayKeys);
  6111. }
  6112. this.observeArray(value);
  6113. } else {
  6114. this.walk(value);
  6115. }
  6116. };
  6117. /**
  6118. * Walk through all properties and convert them into
  6119. * getter/setters. This method should only be called when
  6120. * value type is Object.
  6121. */
  6122. Observer.prototype.walk = function walk (obj) {
  6123. var keys = Object.keys(obj);
  6124. for (var i = 0; i < keys.length; i++) {
  6125. defineReactive$$1(obj, keys[i]);
  6126. }
  6127. };
  6128. /**
  6129. * Observe a list of Array items.
  6130. */
  6131. Observer.prototype.observeArray = function observeArray (items) {
  6132. for (var i = 0, l = items.length; i < l; i++) {
  6133. observe(items[i]);
  6134. }
  6135. };
  6136. // helpers
  6137. /**
  6138. * Augment a target Object or Array by intercepting
  6139. * the prototype chain using __proto__
  6140. */
  6141. function protoAugment (target, src) {
  6142. /* eslint-disable no-proto */
  6143. target.__proto__ = src;
  6144. /* eslint-enable no-proto */
  6145. }
  6146. /**
  6147. * Augment a target Object or Array by defining
  6148. * hidden properties.
  6149. */
  6150. /* istanbul ignore next */
  6151. function copyAugment (target, src, keys) {
  6152. for (var i = 0, l = keys.length; i < l; i++) {
  6153. var key = keys[i];
  6154. def(target, key, src[key]);
  6155. }
  6156. }
  6157. /**
  6158. * Attempt to create an observer instance for a value,
  6159. * returns the new observer if successfully observed,
  6160. * or the existing observer if the value already has one.
  6161. */
  6162. function observe (value, asRootData) {
  6163. if (!isObject(value) || value instanceof VNode) {
  6164. return
  6165. }
  6166. var ob;
  6167. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  6168. ob = value.__ob__;
  6169. } else if (
  6170. shouldObserve &&
  6171. !isServerRendering() &&
  6172. (Array.isArray(value) || isPlainObject(value)) &&
  6173. Object.isExtensible(value) &&
  6174. !value._isVue &&
  6175. !value.__v_isMPComponent
  6176. ) {
  6177. ob = new Observer(value);
  6178. }
  6179. if (asRootData && ob) {
  6180. ob.vmCount++;
  6181. }
  6182. return ob
  6183. }
  6184. /**
  6185. * Define a reactive property on an Object.
  6186. */
  6187. function defineReactive$$1 (
  6188. obj,
  6189. key,
  6190. val,
  6191. customSetter,
  6192. shallow
  6193. ) {
  6194. var dep = new Dep();
  6195. var property = Object.getOwnPropertyDescriptor(obj, key);
  6196. if (property && property.configurable === false) {
  6197. return
  6198. }
  6199. // cater for pre-defined getter/setters
  6200. var getter = property && property.get;
  6201. var setter = property && property.set;
  6202. if ((!getter || setter) && arguments.length === 2) {
  6203. val = obj[key];
  6204. }
  6205. var childOb = !shallow && observe(val);
  6206. Object.defineProperty(obj, key, {
  6207. enumerable: true,
  6208. configurable: true,
  6209. get: function reactiveGetter () {
  6210. var value = getter ? getter.call(obj) : val;
  6211. if (Dep.SharedObject.target) { // fixed by xxxxxx
  6212. dep.depend();
  6213. if (childOb) {
  6214. childOb.dep.depend();
  6215. if (Array.isArray(value)) {
  6216. dependArray(value);
  6217. }
  6218. }
  6219. }
  6220. return value
  6221. },
  6222. set: function reactiveSetter (newVal) {
  6223. var value = getter ? getter.call(obj) : val;
  6224. /* eslint-disable no-self-compare */
  6225. if (newVal === value || (newVal !== newVal && value !== value)) {
  6226. return
  6227. }
  6228. /* eslint-enable no-self-compare */
  6229. if ( true && customSetter) {
  6230. customSetter();
  6231. }
  6232. // #7981: for accessor properties without setter
  6233. if (getter && !setter) { return }
  6234. if (setter) {
  6235. setter.call(obj, newVal);
  6236. } else {
  6237. val = newVal;
  6238. }
  6239. childOb = !shallow && observe(newVal);
  6240. dep.notify();
  6241. }
  6242. });
  6243. }
  6244. /**
  6245. * Set a property on an object. Adds the new property and
  6246. * triggers change notification if the property doesn't
  6247. * already exist.
  6248. */
  6249. function set (target, key, val) {
  6250. if ( true &&
  6251. (isUndef(target) || isPrimitive(target))
  6252. ) {
  6253. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  6254. }
  6255. if (Array.isArray(target) && isValidArrayIndex(key)) {
  6256. target.length = Math.max(target.length, key);
  6257. target.splice(key, 1, val);
  6258. return val
  6259. }
  6260. if (key in target && !(key in Object.prototype)) {
  6261. target[key] = val;
  6262. return val
  6263. }
  6264. var ob = (target).__ob__;
  6265. if (target._isVue || (ob && ob.vmCount)) {
  6266. true && warn(
  6267. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  6268. 'at runtime - declare it upfront in the data option.'
  6269. );
  6270. return val
  6271. }
  6272. if (!ob) {
  6273. target[key] = val;
  6274. return val
  6275. }
  6276. defineReactive$$1(ob.value, key, val);
  6277. ob.dep.notify();
  6278. return val
  6279. }
  6280. /**
  6281. * Delete a property and trigger change if necessary.
  6282. */
  6283. function del (target, key) {
  6284. if ( true &&
  6285. (isUndef(target) || isPrimitive(target))
  6286. ) {
  6287. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  6288. }
  6289. if (Array.isArray(target) && isValidArrayIndex(key)) {
  6290. target.splice(key, 1);
  6291. return
  6292. }
  6293. var ob = (target).__ob__;
  6294. if (target._isVue || (ob && ob.vmCount)) {
  6295. true && warn(
  6296. 'Avoid deleting properties on a Vue instance or its root $data ' +
  6297. '- just set it to null.'
  6298. );
  6299. return
  6300. }
  6301. if (!hasOwn(target, key)) {
  6302. return
  6303. }
  6304. delete target[key];
  6305. if (!ob) {
  6306. return
  6307. }
  6308. ob.dep.notify();
  6309. }
  6310. /**
  6311. * Collect dependencies on array elements when the array is touched, since
  6312. * we cannot intercept array element access like property getters.
  6313. */
  6314. function dependArray (value) {
  6315. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  6316. e = value[i];
  6317. e && e.__ob__ && e.__ob__.dep.depend();
  6318. if (Array.isArray(e)) {
  6319. dependArray(e);
  6320. }
  6321. }
  6322. }
  6323. /* */
  6324. /**
  6325. * Option overwriting strategies are functions that handle
  6326. * how to merge a parent option value and a child option
  6327. * value into the final value.
  6328. */
  6329. var strats = config.optionMergeStrategies;
  6330. /**
  6331. * Options with restrictions
  6332. */
  6333. if (true) {
  6334. strats.el = strats.propsData = function (parent, child, vm, key) {
  6335. if (!vm) {
  6336. warn(
  6337. "option \"" + key + "\" can only be used during instance " +
  6338. 'creation with the `new` keyword.'
  6339. );
  6340. }
  6341. return defaultStrat(parent, child)
  6342. };
  6343. }
  6344. /**
  6345. * Helper that recursively merges two data objects together.
  6346. */
  6347. function mergeData (to, from) {
  6348. if (!from) { return to }
  6349. var key, toVal, fromVal;
  6350. var keys = hasSymbol
  6351. ? Reflect.ownKeys(from)
  6352. : Object.keys(from);
  6353. for (var i = 0; i < keys.length; i++) {
  6354. key = keys[i];
  6355. // in case the object is already observed...
  6356. if (key === '__ob__') { continue }
  6357. toVal = to[key];
  6358. fromVal = from[key];
  6359. if (!hasOwn(to, key)) {
  6360. set(to, key, fromVal);
  6361. } else if (
  6362. toVal !== fromVal &&
  6363. isPlainObject(toVal) &&
  6364. isPlainObject(fromVal)
  6365. ) {
  6366. mergeData(toVal, fromVal);
  6367. }
  6368. }
  6369. return to
  6370. }
  6371. /**
  6372. * Data
  6373. */
  6374. function mergeDataOrFn (
  6375. parentVal,
  6376. childVal,
  6377. vm
  6378. ) {
  6379. if (!vm) {
  6380. // in a Vue.extend merge, both should be functions
  6381. if (!childVal) {
  6382. return parentVal
  6383. }
  6384. if (!parentVal) {
  6385. return childVal
  6386. }
  6387. // when parentVal & childVal are both present,
  6388. // we need to return a function that returns the
  6389. // merged result of both functions... no need to
  6390. // check if parentVal is a function here because
  6391. // it has to be a function to pass previous merges.
  6392. return function mergedDataFn () {
  6393. return mergeData(
  6394. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  6395. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  6396. )
  6397. }
  6398. } else {
  6399. return function mergedInstanceDataFn () {
  6400. // instance merge
  6401. var instanceData = typeof childVal === 'function'
  6402. ? childVal.call(vm, vm)
  6403. : childVal;
  6404. var defaultData = typeof parentVal === 'function'
  6405. ? parentVal.call(vm, vm)
  6406. : parentVal;
  6407. if (instanceData) {
  6408. return mergeData(instanceData, defaultData)
  6409. } else {
  6410. return defaultData
  6411. }
  6412. }
  6413. }
  6414. }
  6415. strats.data = function (
  6416. parentVal,
  6417. childVal,
  6418. vm
  6419. ) {
  6420. if (!vm) {
  6421. if (childVal && typeof childVal !== 'function') {
  6422. true && warn(
  6423. 'The "data" option should be a function ' +
  6424. 'that returns a per-instance value in component ' +
  6425. 'definitions.',
  6426. vm
  6427. );
  6428. return parentVal
  6429. }
  6430. return mergeDataOrFn(parentVal, childVal)
  6431. }
  6432. return mergeDataOrFn(parentVal, childVal, vm)
  6433. };
  6434. /**
  6435. * Hooks and props are merged as arrays.
  6436. */
  6437. function mergeHook (
  6438. parentVal,
  6439. childVal
  6440. ) {
  6441. var res = childVal
  6442. ? parentVal
  6443. ? parentVal.concat(childVal)
  6444. : Array.isArray(childVal)
  6445. ? childVal
  6446. : [childVal]
  6447. : parentVal;
  6448. return res
  6449. ? dedupeHooks(res)
  6450. : res
  6451. }
  6452. function dedupeHooks (hooks) {
  6453. var res = [];
  6454. for (var i = 0; i < hooks.length; i++) {
  6455. if (res.indexOf(hooks[i]) === -1) {
  6456. res.push(hooks[i]);
  6457. }
  6458. }
  6459. return res
  6460. }
  6461. LIFECYCLE_HOOKS.forEach(function (hook) {
  6462. strats[hook] = mergeHook;
  6463. });
  6464. /**
  6465. * Assets
  6466. *
  6467. * When a vm is present (instance creation), we need to do
  6468. * a three-way merge between constructor options, instance
  6469. * options and parent options.
  6470. */
  6471. function mergeAssets (
  6472. parentVal,
  6473. childVal,
  6474. vm,
  6475. key
  6476. ) {
  6477. var res = Object.create(parentVal || null);
  6478. if (childVal) {
  6479. true && assertObjectType(key, childVal, vm);
  6480. return extend(res, childVal)
  6481. } else {
  6482. return res
  6483. }
  6484. }
  6485. ASSET_TYPES.forEach(function (type) {
  6486. strats[type + 's'] = mergeAssets;
  6487. });
  6488. /**
  6489. * Watchers.
  6490. *
  6491. * Watchers hashes should not overwrite one
  6492. * another, so we merge them as arrays.
  6493. */
  6494. strats.watch = function (
  6495. parentVal,
  6496. childVal,
  6497. vm,
  6498. key
  6499. ) {
  6500. // work around Firefox's Object.prototype.watch...
  6501. if (parentVal === nativeWatch) { parentVal = undefined; }
  6502. if (childVal === nativeWatch) { childVal = undefined; }
  6503. /* istanbul ignore if */
  6504. if (!childVal) { return Object.create(parentVal || null) }
  6505. if (true) {
  6506. assertObjectType(key, childVal, vm);
  6507. }
  6508. if (!parentVal) { return childVal }
  6509. var ret = {};
  6510. extend(ret, parentVal);
  6511. for (var key$1 in childVal) {
  6512. var parent = ret[key$1];
  6513. var child = childVal[key$1];
  6514. if (parent && !Array.isArray(parent)) {
  6515. parent = [parent];
  6516. }
  6517. ret[key$1] = parent
  6518. ? parent.concat(child)
  6519. : Array.isArray(child) ? child : [child];
  6520. }
  6521. return ret
  6522. };
  6523. /**
  6524. * Other object hashes.
  6525. */
  6526. strats.props =
  6527. strats.methods =
  6528. strats.inject =
  6529. strats.computed = function (
  6530. parentVal,
  6531. childVal,
  6532. vm,
  6533. key
  6534. ) {
  6535. if (childVal && "development" !== 'production') {
  6536. assertObjectType(key, childVal, vm);
  6537. }
  6538. if (!parentVal) { return childVal }
  6539. var ret = Object.create(null);
  6540. extend(ret, parentVal);
  6541. if (childVal) { extend(ret, childVal); }
  6542. return ret
  6543. };
  6544. strats.provide = mergeDataOrFn;
  6545. /**
  6546. * Default strategy.
  6547. */
  6548. var defaultStrat = function (parentVal, childVal) {
  6549. return childVal === undefined
  6550. ? parentVal
  6551. : childVal
  6552. };
  6553. /**
  6554. * Validate component names
  6555. */
  6556. function checkComponents (options) {
  6557. for (var key in options.components) {
  6558. validateComponentName(key);
  6559. }
  6560. }
  6561. function validateComponentName (name) {
  6562. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  6563. warn(
  6564. 'Invalid component name: "' + name + '". Component names ' +
  6565. 'should conform to valid custom element name in html5 specification.'
  6566. );
  6567. }
  6568. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  6569. warn(
  6570. 'Do not use built-in or reserved HTML elements as component ' +
  6571. 'id: ' + name
  6572. );
  6573. }
  6574. }
  6575. /**
  6576. * Ensure all props option syntax are normalized into the
  6577. * Object-based format.
  6578. */
  6579. function normalizeProps (options, vm) {
  6580. var props = options.props;
  6581. if (!props) { return }
  6582. var res = {};
  6583. var i, val, name;
  6584. if (Array.isArray(props)) {
  6585. i = props.length;
  6586. while (i--) {
  6587. val = props[i];
  6588. if (typeof val === 'string') {
  6589. name = camelize(val);
  6590. res[name] = { type: null };
  6591. } else if (true) {
  6592. warn('props must be strings when using array syntax.');
  6593. }
  6594. }
  6595. } else if (isPlainObject(props)) {
  6596. for (var key in props) {
  6597. val = props[key];
  6598. name = camelize(key);
  6599. res[name] = isPlainObject(val)
  6600. ? val
  6601. : { type: val };
  6602. }
  6603. } else if (true) {
  6604. warn(
  6605. "Invalid value for option \"props\": expected an Array or an Object, " +
  6606. "but got " + (toRawType(props)) + ".",
  6607. vm
  6608. );
  6609. }
  6610. options.props = res;
  6611. }
  6612. /**
  6613. * Normalize all injections into Object-based format
  6614. */
  6615. function normalizeInject (options, vm) {
  6616. var inject = options.inject;
  6617. if (!inject) { return }
  6618. var normalized = options.inject = {};
  6619. if (Array.isArray(inject)) {
  6620. for (var i = 0; i < inject.length; i++) {
  6621. normalized[inject[i]] = { from: inject[i] };
  6622. }
  6623. } else if (isPlainObject(inject)) {
  6624. for (var key in inject) {
  6625. var val = inject[key];
  6626. normalized[key] = isPlainObject(val)
  6627. ? extend({ from: key }, val)
  6628. : { from: val };
  6629. }
  6630. } else if (true) {
  6631. warn(
  6632. "Invalid value for option \"inject\": expected an Array or an Object, " +
  6633. "but got " + (toRawType(inject)) + ".",
  6634. vm
  6635. );
  6636. }
  6637. }
  6638. /**
  6639. * Normalize raw function directives into object format.
  6640. */
  6641. function normalizeDirectives (options) {
  6642. var dirs = options.directives;
  6643. if (dirs) {
  6644. for (var key in dirs) {
  6645. var def$$1 = dirs[key];
  6646. if (typeof def$$1 === 'function') {
  6647. dirs[key] = { bind: def$$1, update: def$$1 };
  6648. }
  6649. }
  6650. }
  6651. }
  6652. function assertObjectType (name, value, vm) {
  6653. if (!isPlainObject(value)) {
  6654. warn(
  6655. "Invalid value for option \"" + name + "\": expected an Object, " +
  6656. "but got " + (toRawType(value)) + ".",
  6657. vm
  6658. );
  6659. }
  6660. }
  6661. /**
  6662. * Merge two option objects into a new one.
  6663. * Core utility used in both instantiation and inheritance.
  6664. */
  6665. function mergeOptions (
  6666. parent,
  6667. child,
  6668. vm
  6669. ) {
  6670. if (true) {
  6671. checkComponents(child);
  6672. }
  6673. if (typeof child === 'function') {
  6674. child = child.options;
  6675. }
  6676. normalizeProps(child, vm);
  6677. normalizeInject(child, vm);
  6678. normalizeDirectives(child);
  6679. // Apply extends and mixins on the child options,
  6680. // but only if it is a raw options object that isn't
  6681. // the result of another mergeOptions call.
  6682. // Only merged options has the _base property.
  6683. if (!child._base) {
  6684. if (child.extends) {
  6685. parent = mergeOptions(parent, child.extends, vm);
  6686. }
  6687. if (child.mixins) {
  6688. for (var i = 0, l = child.mixins.length; i < l; i++) {
  6689. parent = mergeOptions(parent, child.mixins[i], vm);
  6690. }
  6691. }
  6692. }
  6693. var options = {};
  6694. var key;
  6695. for (key in parent) {
  6696. mergeField(key);
  6697. }
  6698. for (key in child) {
  6699. if (!hasOwn(parent, key)) {
  6700. mergeField(key);
  6701. }
  6702. }
  6703. function mergeField (key) {
  6704. var strat = strats[key] || defaultStrat;
  6705. options[key] = strat(parent[key], child[key], vm, key);
  6706. }
  6707. return options
  6708. }
  6709. /**
  6710. * Resolve an asset.
  6711. * This function is used because child instances need access
  6712. * to assets defined in its ancestor chain.
  6713. */
  6714. function resolveAsset (
  6715. options,
  6716. type,
  6717. id,
  6718. warnMissing
  6719. ) {
  6720. /* istanbul ignore if */
  6721. if (typeof id !== 'string') {
  6722. return
  6723. }
  6724. var assets = options[type];
  6725. // check local registration variations first
  6726. if (hasOwn(assets, id)) { return assets[id] }
  6727. var camelizedId = camelize(id);
  6728. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  6729. var PascalCaseId = capitalize(camelizedId);
  6730. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  6731. // fallback to prototype chain
  6732. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  6733. if ( true && warnMissing && !res) {
  6734. warn(
  6735. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  6736. options
  6737. );
  6738. }
  6739. return res
  6740. }
  6741. /* */
  6742. function validateProp (
  6743. key,
  6744. propOptions,
  6745. propsData,
  6746. vm
  6747. ) {
  6748. var prop = propOptions[key];
  6749. var absent = !hasOwn(propsData, key);
  6750. var value = propsData[key];
  6751. // boolean casting
  6752. var booleanIndex = getTypeIndex(Boolean, prop.type);
  6753. if (booleanIndex > -1) {
  6754. if (absent && !hasOwn(prop, 'default')) {
  6755. value = false;
  6756. } else if (value === '' || value === hyphenate(key)) {
  6757. // only cast empty string / same name to boolean if
  6758. // boolean has higher priority
  6759. var stringIndex = getTypeIndex(String, prop.type);
  6760. if (stringIndex < 0 || booleanIndex < stringIndex) {
  6761. value = true;
  6762. }
  6763. }
  6764. }
  6765. // check default value
  6766. if (value === undefined) {
  6767. value = getPropDefaultValue(vm, prop, key);
  6768. // since the default value is a fresh copy,
  6769. // make sure to observe it.
  6770. var prevShouldObserve = shouldObserve;
  6771. toggleObserving(true);
  6772. observe(value);
  6773. toggleObserving(prevShouldObserve);
  6774. }
  6775. if (
  6776. true
  6777. ) {
  6778. assertProp(prop, key, value, vm, absent);
  6779. }
  6780. return value
  6781. }
  6782. /**
  6783. * Get the default value of a prop.
  6784. */
  6785. function getPropDefaultValue (vm, prop, key) {
  6786. // no default, return undefined
  6787. if (!hasOwn(prop, 'default')) {
  6788. return undefined
  6789. }
  6790. var def = prop.default;
  6791. // warn against non-factory defaults for Object & Array
  6792. if ( true && isObject(def)) {
  6793. warn(
  6794. 'Invalid default value for prop "' + key + '": ' +
  6795. 'Props with type Object/Array must use a factory function ' +
  6796. 'to return the default value.',
  6797. vm
  6798. );
  6799. }
  6800. // the raw prop value was also undefined from previous render,
  6801. // return previous default value to avoid unnecessary watcher trigger
  6802. if (vm && vm.$options.propsData &&
  6803. vm.$options.propsData[key] === undefined &&
  6804. vm._props[key] !== undefined
  6805. ) {
  6806. return vm._props[key]
  6807. }
  6808. // call factory function for non-Function types
  6809. // a value is Function if its prototype is function even across different execution context
  6810. return typeof def === 'function' && getType(prop.type) !== 'Function'
  6811. ? def.call(vm)
  6812. : def
  6813. }
  6814. /**
  6815. * Assert whether a prop is valid.
  6816. */
  6817. function assertProp (
  6818. prop,
  6819. name,
  6820. value,
  6821. vm,
  6822. absent
  6823. ) {
  6824. if (prop.required && absent) {
  6825. warn(
  6826. 'Missing required prop: "' + name + '"',
  6827. vm
  6828. );
  6829. return
  6830. }
  6831. if (value == null && !prop.required) {
  6832. return
  6833. }
  6834. var type = prop.type;
  6835. var valid = !type || type === true;
  6836. var expectedTypes = [];
  6837. if (type) {
  6838. if (!Array.isArray(type)) {
  6839. type = [type];
  6840. }
  6841. for (var i = 0; i < type.length && !valid; i++) {
  6842. var assertedType = assertType(value, type[i]);
  6843. expectedTypes.push(assertedType.expectedType || '');
  6844. valid = assertedType.valid;
  6845. }
  6846. }
  6847. if (!valid) {
  6848. warn(
  6849. getInvalidTypeMessage(name, value, expectedTypes),
  6850. vm
  6851. );
  6852. return
  6853. }
  6854. var validator = prop.validator;
  6855. if (validator) {
  6856. if (!validator(value)) {
  6857. warn(
  6858. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  6859. vm
  6860. );
  6861. }
  6862. }
  6863. }
  6864. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  6865. function assertType (value, type) {
  6866. var valid;
  6867. var expectedType = getType(type);
  6868. if (simpleCheckRE.test(expectedType)) {
  6869. var t = typeof value;
  6870. valid = t === expectedType.toLowerCase();
  6871. // for primitive wrapper objects
  6872. if (!valid && t === 'object') {
  6873. valid = value instanceof type;
  6874. }
  6875. } else if (expectedType === 'Object') {
  6876. valid = isPlainObject(value);
  6877. } else if (expectedType === 'Array') {
  6878. valid = Array.isArray(value);
  6879. } else {
  6880. valid = value instanceof type;
  6881. }
  6882. return {
  6883. valid: valid,
  6884. expectedType: expectedType
  6885. }
  6886. }
  6887. /**
  6888. * Use function string name to check built-in types,
  6889. * because a simple equality check will fail when running
  6890. * across different vms / iframes.
  6891. */
  6892. function getType (fn) {
  6893. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  6894. return match ? match[1] : ''
  6895. }
  6896. function isSameType (a, b) {
  6897. return getType(a) === getType(b)
  6898. }
  6899. function getTypeIndex (type, expectedTypes) {
  6900. if (!Array.isArray(expectedTypes)) {
  6901. return isSameType(expectedTypes, type) ? 0 : -1
  6902. }
  6903. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  6904. if (isSameType(expectedTypes[i], type)) {
  6905. return i
  6906. }
  6907. }
  6908. return -1
  6909. }
  6910. function getInvalidTypeMessage (name, value, expectedTypes) {
  6911. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  6912. " Expected " + (expectedTypes.map(capitalize).join(', '));
  6913. var expectedType = expectedTypes[0];
  6914. var receivedType = toRawType(value);
  6915. var expectedValue = styleValue(value, expectedType);
  6916. var receivedValue = styleValue(value, receivedType);
  6917. // check if we need to specify expected value
  6918. if (expectedTypes.length === 1 &&
  6919. isExplicable(expectedType) &&
  6920. !isBoolean(expectedType, receivedType)) {
  6921. message += " with value " + expectedValue;
  6922. }
  6923. message += ", got " + receivedType + " ";
  6924. // check if we need to specify received value
  6925. if (isExplicable(receivedType)) {
  6926. message += "with value " + receivedValue + ".";
  6927. }
  6928. return message
  6929. }
  6930. function styleValue (value, type) {
  6931. if (type === 'String') {
  6932. return ("\"" + value + "\"")
  6933. } else if (type === 'Number') {
  6934. return ("" + (Number(value)))
  6935. } else {
  6936. return ("" + value)
  6937. }
  6938. }
  6939. function isExplicable (value) {
  6940. var explicitTypes = ['string', 'number', 'boolean'];
  6941. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  6942. }
  6943. function isBoolean () {
  6944. var args = [], len = arguments.length;
  6945. while ( len-- ) args[ len ] = arguments[ len ];
  6946. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  6947. }
  6948. /* */
  6949. function handleError (err, vm, info) {
  6950. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  6951. // See: https://github.com/vuejs/vuex/issues/1505
  6952. pushTarget();
  6953. try {
  6954. if (vm) {
  6955. var cur = vm;
  6956. while ((cur = cur.$parent)) {
  6957. var hooks = cur.$options.errorCaptured;
  6958. if (hooks) {
  6959. for (var i = 0; i < hooks.length; i++) {
  6960. try {
  6961. var capture = hooks[i].call(cur, err, vm, info) === false;
  6962. if (capture) { return }
  6963. } catch (e) {
  6964. globalHandleError(e, cur, 'errorCaptured hook');
  6965. }
  6966. }
  6967. }
  6968. }
  6969. }
  6970. globalHandleError(err, vm, info);
  6971. } finally {
  6972. popTarget();
  6973. }
  6974. }
  6975. function invokeWithErrorHandling (
  6976. handler,
  6977. context,
  6978. args,
  6979. vm,
  6980. info
  6981. ) {
  6982. var res;
  6983. try {
  6984. res = args ? handler.apply(context, args) : handler.call(context);
  6985. if (res && !res._isVue && isPromise(res) && !res._handled) {
  6986. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  6987. // issue #9511
  6988. // avoid catch triggering multiple times when nested calls
  6989. res._handled = true;
  6990. }
  6991. } catch (e) {
  6992. handleError(e, vm, info);
  6993. }
  6994. return res
  6995. }
  6996. function globalHandleError (err, vm, info) {
  6997. if (config.errorHandler) {
  6998. try {
  6999. return config.errorHandler.call(null, err, vm, info)
  7000. } catch (e) {
  7001. // if the user intentionally throws the original error in the handler,
  7002. // do not log it twice
  7003. if (e !== err) {
  7004. logError(e, null, 'config.errorHandler');
  7005. }
  7006. }
  7007. }
  7008. logError(err, vm, info);
  7009. }
  7010. function logError (err, vm, info) {
  7011. if (true) {
  7012. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  7013. }
  7014. /* istanbul ignore else */
  7015. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  7016. console.error(err);
  7017. } else {
  7018. throw err
  7019. }
  7020. }
  7021. /* */
  7022. var callbacks = [];
  7023. var pending = false;
  7024. function flushCallbacks () {
  7025. pending = false;
  7026. var copies = callbacks.slice(0);
  7027. callbacks.length = 0;
  7028. for (var i = 0; i < copies.length; i++) {
  7029. copies[i]();
  7030. }
  7031. }
  7032. // Here we have async deferring wrappers using microtasks.
  7033. // In 2.5 we used (macro) tasks (in combination with microtasks).
  7034. // However, it has subtle problems when state is changed right before repaint
  7035. // (e.g. #6813, out-in transitions).
  7036. // Also, using (macro) tasks in event handler would cause some weird behaviors
  7037. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  7038. // So we now use microtasks everywhere, again.
  7039. // A major drawback of this tradeoff is that there are some scenarios
  7040. // where microtasks have too high a priority and fire in between supposedly
  7041. // sequential events (e.g. #4521, #6690, which have workarounds)
  7042. // or even between bubbling of the same event (#6566).
  7043. var timerFunc;
  7044. // The nextTick behavior leverages the microtask queue, which can be accessed
  7045. // via either native Promise.then or MutationObserver.
  7046. // MutationObserver has wider support, however it is seriously bugged in
  7047. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  7048. // completely stops working after triggering a few times... so, if native
  7049. // Promise is available, we will use it:
  7050. /* istanbul ignore next, $flow-disable-line */
  7051. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  7052. var p = Promise.resolve();
  7053. timerFunc = function () {
  7054. p.then(flushCallbacks);
  7055. // In problematic UIWebViews, Promise.then doesn't completely break, but
  7056. // it can get stuck in a weird state where callbacks are pushed into the
  7057. // microtask queue but the queue isn't being flushed, until the browser
  7058. // needs to do some other work, e.g. handle a timer. Therefore we can
  7059. // "force" the microtask queue to be flushed by adding an empty timer.
  7060. if (isIOS) { setTimeout(noop); }
  7061. };
  7062. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  7063. isNative(MutationObserver) ||
  7064. // PhantomJS and iOS 7.x
  7065. MutationObserver.toString() === '[object MutationObserverConstructor]'
  7066. )) {
  7067. // Use MutationObserver where native Promise is not available,
  7068. // e.g. PhantomJS, iOS7, Android 4.4
  7069. // (#6466 MutationObserver is unreliable in IE11)
  7070. var counter = 1;
  7071. var observer = new MutationObserver(flushCallbacks);
  7072. var textNode = document.createTextNode(String(counter));
  7073. observer.observe(textNode, {
  7074. characterData: true
  7075. });
  7076. timerFunc = function () {
  7077. counter = (counter + 1) % 2;
  7078. textNode.data = String(counter);
  7079. };
  7080. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  7081. // Fallback to setImmediate.
  7082. // Technically it leverages the (macro) task queue,
  7083. // but it is still a better choice than setTimeout.
  7084. timerFunc = function () {
  7085. setImmediate(flushCallbacks);
  7086. };
  7087. } else {
  7088. // Fallback to setTimeout.
  7089. timerFunc = function () {
  7090. setTimeout(flushCallbacks, 0);
  7091. };
  7092. }
  7093. function nextTick (cb, ctx) {
  7094. var _resolve;
  7095. callbacks.push(function () {
  7096. if (cb) {
  7097. try {
  7098. cb.call(ctx);
  7099. } catch (e) {
  7100. handleError(e, ctx, 'nextTick');
  7101. }
  7102. } else if (_resolve) {
  7103. _resolve(ctx);
  7104. }
  7105. });
  7106. if (!pending) {
  7107. pending = true;
  7108. timerFunc();
  7109. }
  7110. // $flow-disable-line
  7111. if (!cb && typeof Promise !== 'undefined') {
  7112. return new Promise(function (resolve) {
  7113. _resolve = resolve;
  7114. })
  7115. }
  7116. }
  7117. /* */
  7118. /* not type checking this file because flow doesn't play well with Proxy */
  7119. var initProxy;
  7120. if (true) {
  7121. var allowedGlobals = makeMap(
  7122. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  7123. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  7124. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  7125. 'require' // for Webpack/Browserify
  7126. );
  7127. var warnNonPresent = function (target, key) {
  7128. warn(
  7129. "Property or method \"" + key + "\" is not defined on the instance but " +
  7130. 'referenced during render. Make sure that this property is reactive, ' +
  7131. 'either in the data option, or for class-based components, by ' +
  7132. 'initializing the property. ' +
  7133. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  7134. target
  7135. );
  7136. };
  7137. var warnReservedPrefix = function (target, key) {
  7138. warn(
  7139. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  7140. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  7141. 'prevent conflicts with Vue internals. ' +
  7142. 'See: https://vuejs.org/v2/api/#data',
  7143. target
  7144. );
  7145. };
  7146. var hasProxy =
  7147. typeof Proxy !== 'undefined' && isNative(Proxy);
  7148. if (hasProxy) {
  7149. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  7150. config.keyCodes = new Proxy(config.keyCodes, {
  7151. set: function set (target, key, value) {
  7152. if (isBuiltInModifier(key)) {
  7153. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  7154. return false
  7155. } else {
  7156. target[key] = value;
  7157. return true
  7158. }
  7159. }
  7160. });
  7161. }
  7162. var hasHandler = {
  7163. has: function has (target, key) {
  7164. var has = key in target;
  7165. var isAllowed = allowedGlobals(key) ||
  7166. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  7167. if (!has && !isAllowed) {
  7168. if (key in target.$data) { warnReservedPrefix(target, key); }
  7169. else { warnNonPresent(target, key); }
  7170. }
  7171. return has || !isAllowed
  7172. }
  7173. };
  7174. var getHandler = {
  7175. get: function get (target, key) {
  7176. if (typeof key === 'string' && !(key in target)) {
  7177. if (key in target.$data) { warnReservedPrefix(target, key); }
  7178. else { warnNonPresent(target, key); }
  7179. }
  7180. return target[key]
  7181. }
  7182. };
  7183. initProxy = function initProxy (vm) {
  7184. if (hasProxy) {
  7185. // determine which proxy handler to use
  7186. var options = vm.$options;
  7187. var handlers = options.render && options.render._withStripped
  7188. ? getHandler
  7189. : hasHandler;
  7190. vm._renderProxy = new Proxy(vm, handlers);
  7191. } else {
  7192. vm._renderProxy = vm;
  7193. }
  7194. };
  7195. }
  7196. /* */
  7197. var seenObjects = new _Set();
  7198. /**
  7199. * Recursively traverse an object to evoke all converted
  7200. * getters, so that every nested property inside the object
  7201. * is collected as a "deep" dependency.
  7202. */
  7203. function traverse (val) {
  7204. _traverse(val, seenObjects);
  7205. seenObjects.clear();
  7206. }
  7207. function _traverse (val, seen) {
  7208. var i, keys;
  7209. var isA = Array.isArray(val);
  7210. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  7211. return
  7212. }
  7213. if (val.__ob__) {
  7214. var depId = val.__ob__.dep.id;
  7215. if (seen.has(depId)) {
  7216. return
  7217. }
  7218. seen.add(depId);
  7219. }
  7220. if (isA) {
  7221. i = val.length;
  7222. while (i--) { _traverse(val[i], seen); }
  7223. } else {
  7224. keys = Object.keys(val);
  7225. i = keys.length;
  7226. while (i--) { _traverse(val[keys[i]], seen); }
  7227. }
  7228. }
  7229. var mark;
  7230. var measure;
  7231. if (true) {
  7232. var perf = inBrowser && window.performance;
  7233. /* istanbul ignore if */
  7234. if (
  7235. perf &&
  7236. perf.mark &&
  7237. perf.measure &&
  7238. perf.clearMarks &&
  7239. perf.clearMeasures
  7240. ) {
  7241. mark = function (tag) { return perf.mark(tag); };
  7242. measure = function (name, startTag, endTag) {
  7243. perf.measure(name, startTag, endTag);
  7244. perf.clearMarks(startTag);
  7245. perf.clearMarks(endTag);
  7246. // perf.clearMeasures(name)
  7247. };
  7248. }
  7249. }
  7250. /* */
  7251. var normalizeEvent = cached(function (name) {
  7252. var passive = name.charAt(0) === '&';
  7253. name = passive ? name.slice(1) : name;
  7254. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  7255. name = once$$1 ? name.slice(1) : name;
  7256. var capture = name.charAt(0) === '!';
  7257. name = capture ? name.slice(1) : name;
  7258. return {
  7259. name: name,
  7260. once: once$$1,
  7261. capture: capture,
  7262. passive: passive
  7263. }
  7264. });
  7265. function createFnInvoker (fns, vm) {
  7266. function invoker () {
  7267. var arguments$1 = arguments;
  7268. var fns = invoker.fns;
  7269. if (Array.isArray(fns)) {
  7270. var cloned = fns.slice();
  7271. for (var i = 0; i < cloned.length; i++) {
  7272. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  7273. }
  7274. } else {
  7275. // return handler return value for single handlers
  7276. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  7277. }
  7278. }
  7279. invoker.fns = fns;
  7280. return invoker
  7281. }
  7282. function updateListeners (
  7283. on,
  7284. oldOn,
  7285. add,
  7286. remove$$1,
  7287. createOnceHandler,
  7288. vm
  7289. ) {
  7290. var name, def$$1, cur, old, event;
  7291. for (name in on) {
  7292. def$$1 = cur = on[name];
  7293. old = oldOn[name];
  7294. event = normalizeEvent(name);
  7295. if (isUndef(cur)) {
  7296. true && warn(
  7297. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  7298. vm
  7299. );
  7300. } else if (isUndef(old)) {
  7301. if (isUndef(cur.fns)) {
  7302. cur = on[name] = createFnInvoker(cur, vm);
  7303. }
  7304. if (isTrue(event.once)) {
  7305. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  7306. }
  7307. add(event.name, cur, event.capture, event.passive, event.params);
  7308. } else if (cur !== old) {
  7309. old.fns = cur;
  7310. on[name] = old;
  7311. }
  7312. }
  7313. for (name in oldOn) {
  7314. if (isUndef(on[name])) {
  7315. event = normalizeEvent(name);
  7316. remove$$1(event.name, oldOn[name], event.capture);
  7317. }
  7318. }
  7319. }
  7320. /* */
  7321. /* */
  7322. // fixed by xxxxxx (mp properties)
  7323. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  7324. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  7325. if (isUndef(propOptions)) {
  7326. return res
  7327. }
  7328. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  7329. var attrs = data.attrs;
  7330. var props = data.props;
  7331. if (isDef(attrs) || isDef(props)) {
  7332. for (var key in propOptions) {
  7333. var altKey = hyphenate(key);
  7334. var result = checkProp(res, props, key, altKey, true) ||
  7335. checkProp(res, attrs, key, altKey, false);
  7336. // externalClass
  7337. if (
  7338. result &&
  7339. res[key] &&
  7340. externalClasses.indexOf(altKey) !== -1 &&
  7341. context[camelize(res[key])]
  7342. ) {
  7343. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  7344. res[key] = context[camelize(res[key])];
  7345. }
  7346. }
  7347. }
  7348. return res
  7349. }
  7350. function extractPropsFromVNodeData (
  7351. data,
  7352. Ctor,
  7353. tag,
  7354. context// fixed by xxxxxx
  7355. ) {
  7356. // we are only extracting raw values here.
  7357. // validation and default values are handled in the child
  7358. // component itself.
  7359. var propOptions = Ctor.options.props;
  7360. if (isUndef(propOptions)) {
  7361. // fixed by xxxxxx
  7362. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  7363. }
  7364. var res = {};
  7365. var attrs = data.attrs;
  7366. var props = data.props;
  7367. if (isDef(attrs) || isDef(props)) {
  7368. for (var key in propOptions) {
  7369. var altKey = hyphenate(key);
  7370. if (true) {
  7371. var keyInLowerCase = key.toLowerCase();
  7372. if (
  7373. key !== keyInLowerCase &&
  7374. attrs && hasOwn(attrs, keyInLowerCase)
  7375. ) {
  7376. tip(
  7377. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  7378. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  7379. " \"" + key + "\". " +
  7380. "Note that HTML attributes are case-insensitive and camelCased " +
  7381. "props need to use their kebab-case equivalents when using in-DOM " +
  7382. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  7383. );
  7384. }
  7385. }
  7386. checkProp(res, props, key, altKey, true) ||
  7387. checkProp(res, attrs, key, altKey, false);
  7388. }
  7389. }
  7390. // fixed by xxxxxx
  7391. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  7392. }
  7393. function checkProp (
  7394. res,
  7395. hash,
  7396. key,
  7397. altKey,
  7398. preserve
  7399. ) {
  7400. if (isDef(hash)) {
  7401. if (hasOwn(hash, key)) {
  7402. res[key] = hash[key];
  7403. if (!preserve) {
  7404. delete hash[key];
  7405. }
  7406. return true
  7407. } else if (hasOwn(hash, altKey)) {
  7408. res[key] = hash[altKey];
  7409. if (!preserve) {
  7410. delete hash[altKey];
  7411. }
  7412. return true
  7413. }
  7414. }
  7415. return false
  7416. }
  7417. /* */
  7418. // The template compiler attempts to minimize the need for normalization by
  7419. // statically analyzing the template at compile time.
  7420. //
  7421. // For plain HTML markup, normalization can be completely skipped because the
  7422. // generated render function is guaranteed to return Array<VNode>. There are
  7423. // two cases where extra normalization is needed:
  7424. // 1. When the children contains components - because a functional component
  7425. // may return an Array instead of a single root. In this case, just a simple
  7426. // normalization is needed - if any child is an Array, we flatten the whole
  7427. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  7428. // because functional components already normalize their own children.
  7429. function simpleNormalizeChildren (children) {
  7430. for (var i = 0; i < children.length; i++) {
  7431. if (Array.isArray(children[i])) {
  7432. return Array.prototype.concat.apply([], children)
  7433. }
  7434. }
  7435. return children
  7436. }
  7437. // 2. When the children contains constructs that always generated nested Arrays,
  7438. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  7439. // with hand-written render functions / JSX. In such cases a full normalization
  7440. // is needed to cater to all possible types of children values.
  7441. function normalizeChildren (children) {
  7442. return isPrimitive(children)
  7443. ? [createTextVNode(children)]
  7444. : Array.isArray(children)
  7445. ? normalizeArrayChildren(children)
  7446. : undefined
  7447. }
  7448. function isTextNode (node) {
  7449. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  7450. }
  7451. function normalizeArrayChildren (children, nestedIndex) {
  7452. var res = [];
  7453. var i, c, lastIndex, last;
  7454. for (i = 0; i < children.length; i++) {
  7455. c = children[i];
  7456. if (isUndef(c) || typeof c === 'boolean') { continue }
  7457. lastIndex = res.length - 1;
  7458. last = res[lastIndex];
  7459. // nested
  7460. if (Array.isArray(c)) {
  7461. if (c.length > 0) {
  7462. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  7463. // merge adjacent text nodes
  7464. if (isTextNode(c[0]) && isTextNode(last)) {
  7465. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  7466. c.shift();
  7467. }
  7468. res.push.apply(res, c);
  7469. }
  7470. } else if (isPrimitive(c)) {
  7471. if (isTextNode(last)) {
  7472. // merge adjacent text nodes
  7473. // this is necessary for SSR hydration because text nodes are
  7474. // essentially merged when rendered to HTML strings
  7475. res[lastIndex] = createTextVNode(last.text + c);
  7476. } else if (c !== '') {
  7477. // convert primitive to vnode
  7478. res.push(createTextVNode(c));
  7479. }
  7480. } else {
  7481. if (isTextNode(c) && isTextNode(last)) {
  7482. // merge adjacent text nodes
  7483. res[lastIndex] = createTextVNode(last.text + c.text);
  7484. } else {
  7485. // default key for nested array children (likely generated by v-for)
  7486. if (isTrue(children._isVList) &&
  7487. isDef(c.tag) &&
  7488. isUndef(c.key) &&
  7489. isDef(nestedIndex)) {
  7490. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  7491. }
  7492. res.push(c);
  7493. }
  7494. }
  7495. }
  7496. return res
  7497. }
  7498. /* */
  7499. function initProvide (vm) {
  7500. var provide = vm.$options.provide;
  7501. if (provide) {
  7502. vm._provided = typeof provide === 'function'
  7503. ? provide.call(vm)
  7504. : provide;
  7505. }
  7506. }
  7507. function initInjections (vm) {
  7508. var result = resolveInject(vm.$options.inject, vm);
  7509. if (result) {
  7510. toggleObserving(false);
  7511. Object.keys(result).forEach(function (key) {
  7512. /* istanbul ignore else */
  7513. if (true) {
  7514. defineReactive$$1(vm, key, result[key], function () {
  7515. warn(
  7516. "Avoid mutating an injected value directly since the changes will be " +
  7517. "overwritten whenever the provided component re-renders. " +
  7518. "injection being mutated: \"" + key + "\"",
  7519. vm
  7520. );
  7521. });
  7522. } else {}
  7523. });
  7524. toggleObserving(true);
  7525. }
  7526. }
  7527. function resolveInject (inject, vm) {
  7528. if (inject) {
  7529. // inject is :any because flow is not smart enough to figure out cached
  7530. var result = Object.create(null);
  7531. var keys = hasSymbol
  7532. ? Reflect.ownKeys(inject)
  7533. : Object.keys(inject);
  7534. for (var i = 0; i < keys.length; i++) {
  7535. var key = keys[i];
  7536. // #6574 in case the inject object is observed...
  7537. if (key === '__ob__') { continue }
  7538. var provideKey = inject[key].from;
  7539. var source = vm;
  7540. while (source) {
  7541. if (source._provided && hasOwn(source._provided, provideKey)) {
  7542. result[key] = source._provided[provideKey];
  7543. break
  7544. }
  7545. source = source.$parent;
  7546. }
  7547. if (!source) {
  7548. if ('default' in inject[key]) {
  7549. var provideDefault = inject[key].default;
  7550. result[key] = typeof provideDefault === 'function'
  7551. ? provideDefault.call(vm)
  7552. : provideDefault;
  7553. } else if (true) {
  7554. warn(("Injection \"" + key + "\" not found"), vm);
  7555. }
  7556. }
  7557. }
  7558. return result
  7559. }
  7560. }
  7561. /* */
  7562. /**
  7563. * Runtime helper for resolving raw children VNodes into a slot object.
  7564. */
  7565. function resolveSlots (
  7566. children,
  7567. context
  7568. ) {
  7569. if (!children || !children.length) {
  7570. return {}
  7571. }
  7572. var slots = {};
  7573. for (var i = 0, l = children.length; i < l; i++) {
  7574. var child = children[i];
  7575. var data = child.data;
  7576. // remove slot attribute if the node is resolved as a Vue slot node
  7577. if (data && data.attrs && data.attrs.slot) {
  7578. delete data.attrs.slot;
  7579. }
  7580. // named slots should only be respected if the vnode was rendered in the
  7581. // same context.
  7582. if ((child.context === context || child.fnContext === context) &&
  7583. data && data.slot != null
  7584. ) {
  7585. var name = data.slot;
  7586. var slot = (slots[name] || (slots[name] = []));
  7587. if (child.tag === 'template') {
  7588. slot.push.apply(slot, child.children || []);
  7589. } else {
  7590. slot.push(child);
  7591. }
  7592. } else {
  7593. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  7594. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  7595. (slots['page'] || (slots['page'] = [])).push(child);
  7596. }else{
  7597. (slots.default || (slots.default = [])).push(child);
  7598. }
  7599. }
  7600. }
  7601. // ignore slots that contains only whitespace
  7602. for (var name$1 in slots) {
  7603. if (slots[name$1].every(isWhitespace)) {
  7604. delete slots[name$1];
  7605. }
  7606. }
  7607. return slots
  7608. }
  7609. function isWhitespace (node) {
  7610. return (node.isComment && !node.asyncFactory) || node.text === ' '
  7611. }
  7612. /* */
  7613. function normalizeScopedSlots (
  7614. slots,
  7615. normalSlots,
  7616. prevSlots
  7617. ) {
  7618. var res;
  7619. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  7620. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  7621. var key = slots && slots.$key;
  7622. if (!slots) {
  7623. res = {};
  7624. } else if (slots._normalized) {
  7625. // fast path 1: child component re-render only, parent did not change
  7626. return slots._normalized
  7627. } else if (
  7628. isStable &&
  7629. prevSlots &&
  7630. prevSlots !== emptyObject &&
  7631. key === prevSlots.$key &&
  7632. !hasNormalSlots &&
  7633. !prevSlots.$hasNormal
  7634. ) {
  7635. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  7636. // only need to normalize once
  7637. return prevSlots
  7638. } else {
  7639. res = {};
  7640. for (var key$1 in slots) {
  7641. if (slots[key$1] && key$1[0] !== '$') {
  7642. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  7643. }
  7644. }
  7645. }
  7646. // expose normal slots on scopedSlots
  7647. for (var key$2 in normalSlots) {
  7648. if (!(key$2 in res)) {
  7649. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  7650. }
  7651. }
  7652. // avoriaz seems to mock a non-extensible $scopedSlots object
  7653. // and when that is passed down this would cause an error
  7654. if (slots && Object.isExtensible(slots)) {
  7655. (slots)._normalized = res;
  7656. }
  7657. def(res, '$stable', isStable);
  7658. def(res, '$key', key);
  7659. def(res, '$hasNormal', hasNormalSlots);
  7660. return res
  7661. }
  7662. function normalizeScopedSlot(normalSlots, key, fn) {
  7663. var normalized = function () {
  7664. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  7665. res = res && typeof res === 'object' && !Array.isArray(res)
  7666. ? [res] // single vnode
  7667. : normalizeChildren(res);
  7668. return res && (
  7669. res.length === 0 ||
  7670. (res.length === 1 && res[0].isComment) // #9658
  7671. ) ? undefined
  7672. : res
  7673. };
  7674. // this is a slot using the new v-slot syntax without scope. although it is
  7675. // compiled as a scoped slot, render fn users would expect it to be present
  7676. // on this.$slots because the usage is semantically a normal slot.
  7677. if (fn.proxy) {
  7678. Object.defineProperty(normalSlots, key, {
  7679. get: normalized,
  7680. enumerable: true,
  7681. configurable: true
  7682. });
  7683. }
  7684. return normalized
  7685. }
  7686. function proxyNormalSlot(slots, key) {
  7687. return function () { return slots[key]; }
  7688. }
  7689. /* */
  7690. /**
  7691. * Runtime helper for rendering v-for lists.
  7692. */
  7693. function renderList (
  7694. val,
  7695. render
  7696. ) {
  7697. var ret, i, l, keys, key;
  7698. if (Array.isArray(val) || typeof val === 'string') {
  7699. ret = new Array(val.length);
  7700. for (i = 0, l = val.length; i < l; i++) {
  7701. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  7702. }
  7703. } else if (typeof val === 'number') {
  7704. ret = new Array(val);
  7705. for (i = 0; i < val; i++) {
  7706. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  7707. }
  7708. } else if (isObject(val)) {
  7709. if (hasSymbol && val[Symbol.iterator]) {
  7710. ret = [];
  7711. var iterator = val[Symbol.iterator]();
  7712. var result = iterator.next();
  7713. while (!result.done) {
  7714. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  7715. result = iterator.next();
  7716. }
  7717. } else {
  7718. keys = Object.keys(val);
  7719. ret = new Array(keys.length);
  7720. for (i = 0, l = keys.length; i < l; i++) {
  7721. key = keys[i];
  7722. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  7723. }
  7724. }
  7725. }
  7726. if (!isDef(ret)) {
  7727. ret = [];
  7728. }
  7729. (ret)._isVList = true;
  7730. return ret
  7731. }
  7732. /* */
  7733. /**
  7734. * Runtime helper for rendering <slot>
  7735. */
  7736. function renderSlot (
  7737. name,
  7738. fallback,
  7739. props,
  7740. bindObject
  7741. ) {
  7742. var scopedSlotFn = this.$scopedSlots[name];
  7743. var nodes;
  7744. if (scopedSlotFn) { // scoped slot
  7745. props = props || {};
  7746. if (bindObject) {
  7747. if ( true && !isObject(bindObject)) {
  7748. warn(
  7749. 'slot v-bind without argument expects an Object',
  7750. this
  7751. );
  7752. }
  7753. props = extend(extend({}, bindObject), props);
  7754. }
  7755. // fixed by xxxxxx app-plus scopedSlot
  7756. nodes = scopedSlotFn(props, this, props._i) || fallback;
  7757. } else {
  7758. nodes = this.$slots[name] || fallback;
  7759. }
  7760. var target = props && props.slot;
  7761. if (target) {
  7762. return this.$createElement('template', { slot: target }, nodes)
  7763. } else {
  7764. return nodes
  7765. }
  7766. }
  7767. /* */
  7768. /**
  7769. * Runtime helper for resolving filters
  7770. */
  7771. function resolveFilter (id) {
  7772. return resolveAsset(this.$options, 'filters', id, true) || identity
  7773. }
  7774. /* */
  7775. function isKeyNotMatch (expect, actual) {
  7776. if (Array.isArray(expect)) {
  7777. return expect.indexOf(actual) === -1
  7778. } else {
  7779. return expect !== actual
  7780. }
  7781. }
  7782. /**
  7783. * Runtime helper for checking keyCodes from config.
  7784. * exposed as Vue.prototype._k
  7785. * passing in eventKeyName as last argument separately for backwards compat
  7786. */
  7787. function checkKeyCodes (
  7788. eventKeyCode,
  7789. key,
  7790. builtInKeyCode,
  7791. eventKeyName,
  7792. builtInKeyName
  7793. ) {
  7794. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  7795. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  7796. return isKeyNotMatch(builtInKeyName, eventKeyName)
  7797. } else if (mappedKeyCode) {
  7798. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  7799. } else if (eventKeyName) {
  7800. return hyphenate(eventKeyName) !== key
  7801. }
  7802. }
  7803. /* */
  7804. /**
  7805. * Runtime helper for merging v-bind="object" into a VNode's data.
  7806. */
  7807. function bindObjectProps (
  7808. data,
  7809. tag,
  7810. value,
  7811. asProp,
  7812. isSync
  7813. ) {
  7814. if (value) {
  7815. if (!isObject(value)) {
  7816. true && warn(
  7817. 'v-bind without argument expects an Object or Array value',
  7818. this
  7819. );
  7820. } else {
  7821. if (Array.isArray(value)) {
  7822. value = toObject(value);
  7823. }
  7824. var hash;
  7825. var loop = function ( key ) {
  7826. if (
  7827. key === 'class' ||
  7828. key === 'style' ||
  7829. isReservedAttribute(key)
  7830. ) {
  7831. hash = data;
  7832. } else {
  7833. var type = data.attrs && data.attrs.type;
  7834. hash = asProp || config.mustUseProp(tag, type, key)
  7835. ? data.domProps || (data.domProps = {})
  7836. : data.attrs || (data.attrs = {});
  7837. }
  7838. var camelizedKey = camelize(key);
  7839. var hyphenatedKey = hyphenate(key);
  7840. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  7841. hash[key] = value[key];
  7842. if (isSync) {
  7843. var on = data.on || (data.on = {});
  7844. on[("update:" + key)] = function ($event) {
  7845. value[key] = $event;
  7846. };
  7847. }
  7848. }
  7849. };
  7850. for (var key in value) loop( key );
  7851. }
  7852. }
  7853. return data
  7854. }
  7855. /* */
  7856. /**
  7857. * Runtime helper for rendering static trees.
  7858. */
  7859. function renderStatic (
  7860. index,
  7861. isInFor
  7862. ) {
  7863. var cached = this._staticTrees || (this._staticTrees = []);
  7864. var tree = cached[index];
  7865. // if has already-rendered static tree and not inside v-for,
  7866. // we can reuse the same tree.
  7867. if (tree && !isInFor) {
  7868. return tree
  7869. }
  7870. // otherwise, render a fresh tree.
  7871. tree = cached[index] = this.$options.staticRenderFns[index].call(
  7872. this._renderProxy,
  7873. null,
  7874. this // for render fns generated for functional component templates
  7875. );
  7876. markStatic(tree, ("__static__" + index), false);
  7877. return tree
  7878. }
  7879. /**
  7880. * Runtime helper for v-once.
  7881. * Effectively it means marking the node as static with a unique key.
  7882. */
  7883. function markOnce (
  7884. tree,
  7885. index,
  7886. key
  7887. ) {
  7888. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  7889. return tree
  7890. }
  7891. function markStatic (
  7892. tree,
  7893. key,
  7894. isOnce
  7895. ) {
  7896. if (Array.isArray(tree)) {
  7897. for (var i = 0; i < tree.length; i++) {
  7898. if (tree[i] && typeof tree[i] !== 'string') {
  7899. markStaticNode(tree[i], (key + "_" + i), isOnce);
  7900. }
  7901. }
  7902. } else {
  7903. markStaticNode(tree, key, isOnce);
  7904. }
  7905. }
  7906. function markStaticNode (node, key, isOnce) {
  7907. node.isStatic = true;
  7908. node.key = key;
  7909. node.isOnce = isOnce;
  7910. }
  7911. /* */
  7912. function bindObjectListeners (data, value) {
  7913. if (value) {
  7914. if (!isPlainObject(value)) {
  7915. true && warn(
  7916. 'v-on without argument expects an Object value',
  7917. this
  7918. );
  7919. } else {
  7920. var on = data.on = data.on ? extend({}, data.on) : {};
  7921. for (var key in value) {
  7922. var existing = on[key];
  7923. var ours = value[key];
  7924. on[key] = existing ? [].concat(existing, ours) : ours;
  7925. }
  7926. }
  7927. }
  7928. return data
  7929. }
  7930. /* */
  7931. function resolveScopedSlots (
  7932. fns, // see flow/vnode
  7933. res,
  7934. // the following are added in 2.6
  7935. hasDynamicKeys,
  7936. contentHashKey
  7937. ) {
  7938. res = res || { $stable: !hasDynamicKeys };
  7939. for (var i = 0; i < fns.length; i++) {
  7940. var slot = fns[i];
  7941. if (Array.isArray(slot)) {
  7942. resolveScopedSlots(slot, res, hasDynamicKeys);
  7943. } else if (slot) {
  7944. // marker for reverse proxying v-slot without scope on this.$slots
  7945. if (slot.proxy) {
  7946. slot.fn.proxy = true;
  7947. }
  7948. res[slot.key] = slot.fn;
  7949. }
  7950. }
  7951. if (contentHashKey) {
  7952. (res).$key = contentHashKey;
  7953. }
  7954. return res
  7955. }
  7956. /* */
  7957. function bindDynamicKeys (baseObj, values) {
  7958. for (var i = 0; i < values.length; i += 2) {
  7959. var key = values[i];
  7960. if (typeof key === 'string' && key) {
  7961. baseObj[values[i]] = values[i + 1];
  7962. } else if ( true && key !== '' && key !== null) {
  7963. // null is a special value for explicitly removing a binding
  7964. warn(
  7965. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  7966. this
  7967. );
  7968. }
  7969. }
  7970. return baseObj
  7971. }
  7972. // helper to dynamically append modifier runtime markers to event names.
  7973. // ensure only append when value is already string, otherwise it will be cast
  7974. // to string and cause the type check to miss.
  7975. function prependModifier (value, symbol) {
  7976. return typeof value === 'string' ? symbol + value : value
  7977. }
  7978. /* */
  7979. function installRenderHelpers (target) {
  7980. target._o = markOnce;
  7981. target._n = toNumber;
  7982. target._s = toString;
  7983. target._l = renderList;
  7984. target._t = renderSlot;
  7985. target._q = looseEqual;
  7986. target._i = looseIndexOf;
  7987. target._m = renderStatic;
  7988. target._f = resolveFilter;
  7989. target._k = checkKeyCodes;
  7990. target._b = bindObjectProps;
  7991. target._v = createTextVNode;
  7992. target._e = createEmptyVNode;
  7993. target._u = resolveScopedSlots;
  7994. target._g = bindObjectListeners;
  7995. target._d = bindDynamicKeys;
  7996. target._p = prependModifier;
  7997. }
  7998. /* */
  7999. function FunctionalRenderContext (
  8000. data,
  8001. props,
  8002. children,
  8003. parent,
  8004. Ctor
  8005. ) {
  8006. var this$1 = this;
  8007. var options = Ctor.options;
  8008. // ensure the createElement function in functional components
  8009. // gets a unique context - this is necessary for correct named slot check
  8010. var contextVm;
  8011. if (hasOwn(parent, '_uid')) {
  8012. contextVm = Object.create(parent);
  8013. // $flow-disable-line
  8014. contextVm._original = parent;
  8015. } else {
  8016. // the context vm passed in is a functional context as well.
  8017. // in this case we want to make sure we are able to get a hold to the
  8018. // real context instance.
  8019. contextVm = parent;
  8020. // $flow-disable-line
  8021. parent = parent._original;
  8022. }
  8023. var isCompiled = isTrue(options._compiled);
  8024. var needNormalization = !isCompiled;
  8025. this.data = data;
  8026. this.props = props;
  8027. this.children = children;
  8028. this.parent = parent;
  8029. this.listeners = data.on || emptyObject;
  8030. this.injections = resolveInject(options.inject, parent);
  8031. this.slots = function () {
  8032. if (!this$1.$slots) {
  8033. normalizeScopedSlots(
  8034. data.scopedSlots,
  8035. this$1.$slots = resolveSlots(children, parent)
  8036. );
  8037. }
  8038. return this$1.$slots
  8039. };
  8040. Object.defineProperty(this, 'scopedSlots', ({
  8041. enumerable: true,
  8042. get: function get () {
  8043. return normalizeScopedSlots(data.scopedSlots, this.slots())
  8044. }
  8045. }));
  8046. // support for compiled functional template
  8047. if (isCompiled) {
  8048. // exposing $options for renderStatic()
  8049. this.$options = options;
  8050. // pre-resolve slots for renderSlot()
  8051. this.$slots = this.slots();
  8052. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  8053. }
  8054. if (options._scopeId) {
  8055. this._c = function (a, b, c, d) {
  8056. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  8057. if (vnode && !Array.isArray(vnode)) {
  8058. vnode.fnScopeId = options._scopeId;
  8059. vnode.fnContext = parent;
  8060. }
  8061. return vnode
  8062. };
  8063. } else {
  8064. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  8065. }
  8066. }
  8067. installRenderHelpers(FunctionalRenderContext.prototype);
  8068. function createFunctionalComponent (
  8069. Ctor,
  8070. propsData,
  8071. data,
  8072. contextVm,
  8073. children
  8074. ) {
  8075. var options = Ctor.options;
  8076. var props = {};
  8077. var propOptions = options.props;
  8078. if (isDef(propOptions)) {
  8079. for (var key in propOptions) {
  8080. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  8081. }
  8082. } else {
  8083. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  8084. if (isDef(data.props)) { mergeProps(props, data.props); }
  8085. }
  8086. var renderContext = new FunctionalRenderContext(
  8087. data,
  8088. props,
  8089. children,
  8090. contextVm,
  8091. Ctor
  8092. );
  8093. var vnode = options.render.call(null, renderContext._c, renderContext);
  8094. if (vnode instanceof VNode) {
  8095. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  8096. } else if (Array.isArray(vnode)) {
  8097. var vnodes = normalizeChildren(vnode) || [];
  8098. var res = new Array(vnodes.length);
  8099. for (var i = 0; i < vnodes.length; i++) {
  8100. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  8101. }
  8102. return res
  8103. }
  8104. }
  8105. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  8106. // #7817 clone node before setting fnContext, otherwise if the node is reused
  8107. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  8108. // that should not be matched to match.
  8109. var clone = cloneVNode(vnode);
  8110. clone.fnContext = contextVm;
  8111. clone.fnOptions = options;
  8112. if (true) {
  8113. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  8114. }
  8115. if (data.slot) {
  8116. (clone.data || (clone.data = {})).slot = data.slot;
  8117. }
  8118. return clone
  8119. }
  8120. function mergeProps (to, from) {
  8121. for (var key in from) {
  8122. to[camelize(key)] = from[key];
  8123. }
  8124. }
  8125. /* */
  8126. /* */
  8127. /* */
  8128. /* */
  8129. // inline hooks to be invoked on component VNodes during patch
  8130. var componentVNodeHooks = {
  8131. init: function init (vnode, hydrating) {
  8132. if (
  8133. vnode.componentInstance &&
  8134. !vnode.componentInstance._isDestroyed &&
  8135. vnode.data.keepAlive
  8136. ) {
  8137. // kept-alive components, treat as a patch
  8138. var mountedNode = vnode; // work around flow
  8139. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  8140. } else {
  8141. var child = vnode.componentInstance = createComponentInstanceForVnode(
  8142. vnode,
  8143. activeInstance
  8144. );
  8145. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  8146. }
  8147. },
  8148. prepatch: function prepatch (oldVnode, vnode) {
  8149. var options = vnode.componentOptions;
  8150. var child = vnode.componentInstance = oldVnode.componentInstance;
  8151. updateChildComponent(
  8152. child,
  8153. options.propsData, // updated props
  8154. options.listeners, // updated listeners
  8155. vnode, // new parent vnode
  8156. options.children // new children
  8157. );
  8158. },
  8159. insert: function insert (vnode) {
  8160. var context = vnode.context;
  8161. var componentInstance = vnode.componentInstance;
  8162. if (!componentInstance._isMounted) {
  8163. callHook(componentInstance, 'onServiceCreated');
  8164. callHook(componentInstance, 'onServiceAttached');
  8165. componentInstance._isMounted = true;
  8166. callHook(componentInstance, 'mounted');
  8167. }
  8168. if (vnode.data.keepAlive) {
  8169. if (context._isMounted) {
  8170. // vue-router#1212
  8171. // During updates, a kept-alive component's child components may
  8172. // change, so directly walking the tree here may call activated hooks
  8173. // on incorrect children. Instead we push them into a queue which will
  8174. // be processed after the whole patch process ended.
  8175. queueActivatedComponent(componentInstance);
  8176. } else {
  8177. activateChildComponent(componentInstance, true /* direct */);
  8178. }
  8179. }
  8180. },
  8181. destroy: function destroy (vnode) {
  8182. var componentInstance = vnode.componentInstance;
  8183. if (!componentInstance._isDestroyed) {
  8184. if (!vnode.data.keepAlive) {
  8185. componentInstance.$destroy();
  8186. } else {
  8187. deactivateChildComponent(componentInstance, true /* direct */);
  8188. }
  8189. }
  8190. }
  8191. };
  8192. var hooksToMerge = Object.keys(componentVNodeHooks);
  8193. function createComponent (
  8194. Ctor,
  8195. data,
  8196. context,
  8197. children,
  8198. tag
  8199. ) {
  8200. if (isUndef(Ctor)) {
  8201. return
  8202. }
  8203. var baseCtor = context.$options._base;
  8204. // plain options object: turn it into a constructor
  8205. if (isObject(Ctor)) {
  8206. Ctor = baseCtor.extend(Ctor);
  8207. }
  8208. // if at this stage it's not a constructor or an async component factory,
  8209. // reject.
  8210. if (typeof Ctor !== 'function') {
  8211. if (true) {
  8212. warn(("Invalid Component definition: " + (String(Ctor))), context);
  8213. }
  8214. return
  8215. }
  8216. // async component
  8217. var asyncFactory;
  8218. if (isUndef(Ctor.cid)) {
  8219. asyncFactory = Ctor;
  8220. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  8221. if (Ctor === undefined) {
  8222. // return a placeholder node for async component, which is rendered
  8223. // as a comment node but preserves all the raw information for the node.
  8224. // the information will be used for async server-rendering and hydration.
  8225. return createAsyncPlaceholder(
  8226. asyncFactory,
  8227. data,
  8228. context,
  8229. children,
  8230. tag
  8231. )
  8232. }
  8233. }
  8234. data = data || {};
  8235. // resolve constructor options in case global mixins are applied after
  8236. // component constructor creation
  8237. resolveConstructorOptions(Ctor);
  8238. // transform component v-model data into props & events
  8239. if (isDef(data.model)) {
  8240. transformModel(Ctor.options, data);
  8241. }
  8242. // extract props
  8243. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  8244. // functional component
  8245. if (isTrue(Ctor.options.functional)) {
  8246. return createFunctionalComponent(Ctor, propsData, data, context, children)
  8247. }
  8248. // extract listeners, since these needs to be treated as
  8249. // child component listeners instead of DOM listeners
  8250. var listeners = data.on;
  8251. // replace with listeners with .native modifier
  8252. // so it gets processed during parent component patch.
  8253. data.on = data.nativeOn;
  8254. if (isTrue(Ctor.options.abstract)) {
  8255. // abstract components do not keep anything
  8256. // other than props & listeners & slot
  8257. // work around flow
  8258. var slot = data.slot;
  8259. data = {};
  8260. if (slot) {
  8261. data.slot = slot;
  8262. }
  8263. }
  8264. // install component management hooks onto the placeholder node
  8265. installComponentHooks(data);
  8266. // return a placeholder vnode
  8267. var name = Ctor.options.name || tag;
  8268. var vnode = new VNode(
  8269. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  8270. data, undefined, undefined, undefined, context,
  8271. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  8272. asyncFactory
  8273. );
  8274. return vnode
  8275. }
  8276. function createComponentInstanceForVnode (
  8277. vnode, // we know it's MountedComponentVNode but flow doesn't
  8278. parent // activeInstance in lifecycle state
  8279. ) {
  8280. var options = {
  8281. _isComponent: true,
  8282. _parentVnode: vnode,
  8283. parent: parent
  8284. };
  8285. // check inline-template render functions
  8286. var inlineTemplate = vnode.data.inlineTemplate;
  8287. if (isDef(inlineTemplate)) {
  8288. options.render = inlineTemplate.render;
  8289. options.staticRenderFns = inlineTemplate.staticRenderFns;
  8290. }
  8291. return new vnode.componentOptions.Ctor(options)
  8292. }
  8293. function installComponentHooks (data) {
  8294. var hooks = data.hook || (data.hook = {});
  8295. for (var i = 0; i < hooksToMerge.length; i++) {
  8296. var key = hooksToMerge[i];
  8297. var existing = hooks[key];
  8298. var toMerge = componentVNodeHooks[key];
  8299. if (existing !== toMerge && !(existing && existing._merged)) {
  8300. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  8301. }
  8302. }
  8303. }
  8304. function mergeHook$1 (f1, f2) {
  8305. var merged = function (a, b) {
  8306. // flow complains about extra args which is why we use any
  8307. f1(a, b);
  8308. f2(a, b);
  8309. };
  8310. merged._merged = true;
  8311. return merged
  8312. }
  8313. // transform component v-model info (value and callback) into
  8314. // prop and event handler respectively.
  8315. function transformModel (options, data) {
  8316. var prop = (options.model && options.model.prop) || 'value';
  8317. var event = (options.model && options.model.event) || 'input'
  8318. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  8319. var on = data.on || (data.on = {});
  8320. var existing = on[event];
  8321. var callback = data.model.callback;
  8322. if (isDef(existing)) {
  8323. if (
  8324. Array.isArray(existing)
  8325. ? existing.indexOf(callback) === -1
  8326. : existing !== callback
  8327. ) {
  8328. on[event] = [callback].concat(existing);
  8329. }
  8330. } else {
  8331. on[event] = callback;
  8332. }
  8333. }
  8334. /* */
  8335. var SIMPLE_NORMALIZE = 1;
  8336. var ALWAYS_NORMALIZE = 2;
  8337. // wrapper function for providing a more flexible interface
  8338. // without getting yelled at by flow
  8339. function createElement (
  8340. context,
  8341. tag,
  8342. data,
  8343. children,
  8344. normalizationType,
  8345. alwaysNormalize
  8346. ) {
  8347. if (Array.isArray(data) || isPrimitive(data)) {
  8348. normalizationType = children;
  8349. children = data;
  8350. data = undefined;
  8351. }
  8352. if (isTrue(alwaysNormalize)) {
  8353. normalizationType = ALWAYS_NORMALIZE;
  8354. }
  8355. return _createElement(context, tag, data, children, normalizationType)
  8356. }
  8357. function _createElement (
  8358. context,
  8359. tag,
  8360. data,
  8361. children,
  8362. normalizationType
  8363. ) {
  8364. if (isDef(data) && isDef((data).__ob__)) {
  8365. true && warn(
  8366. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  8367. 'Always create fresh vnode data objects in each render!',
  8368. context
  8369. );
  8370. return createEmptyVNode()
  8371. }
  8372. // object syntax in v-bind
  8373. if (isDef(data) && isDef(data.is)) {
  8374. tag = data.is;
  8375. }
  8376. if (!tag) {
  8377. // in case of component :is set to falsy value
  8378. return createEmptyVNode()
  8379. }
  8380. // warn against non-primitive key
  8381. if ( true &&
  8382. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  8383. ) {
  8384. {
  8385. warn(
  8386. 'Avoid using non-primitive value as key, ' +
  8387. 'use string/number value instead.',
  8388. context
  8389. );
  8390. }
  8391. }
  8392. // support single function children as default scoped slot
  8393. if (Array.isArray(children) &&
  8394. typeof children[0] === 'function'
  8395. ) {
  8396. data = data || {};
  8397. data.scopedSlots = { default: children[0] };
  8398. children.length = 0;
  8399. }
  8400. if (normalizationType === ALWAYS_NORMALIZE) {
  8401. children = normalizeChildren(children);
  8402. } else if (normalizationType === SIMPLE_NORMALIZE) {
  8403. children = simpleNormalizeChildren(children);
  8404. }
  8405. var vnode, ns;
  8406. if (typeof tag === 'string') {
  8407. var Ctor;
  8408. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  8409. if (config.isReservedTag(tag)) {
  8410. // platform built-in elements
  8411. if ( true && isDef(data) && isDef(data.nativeOn)) {
  8412. warn(
  8413. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  8414. context
  8415. );
  8416. }
  8417. vnode = new VNode(
  8418. config.parsePlatformTagName(tag), data, children,
  8419. undefined, undefined, context
  8420. );
  8421. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  8422. // component
  8423. vnode = createComponent(Ctor, data, context, children, tag);
  8424. } else {
  8425. // unknown or unlisted namespaced elements
  8426. // check at runtime because it may get assigned a namespace when its
  8427. // parent normalizes children
  8428. vnode = new VNode(
  8429. tag, data, children,
  8430. undefined, undefined, context
  8431. );
  8432. }
  8433. } else {
  8434. // direct component options / constructor
  8435. vnode = createComponent(tag, data, context, children);
  8436. }
  8437. if (Array.isArray(vnode)) {
  8438. return vnode
  8439. } else if (isDef(vnode)) {
  8440. if (isDef(ns)) { applyNS(vnode, ns); }
  8441. if (isDef(data)) { registerDeepBindings(data); }
  8442. return vnode
  8443. } else {
  8444. return createEmptyVNode()
  8445. }
  8446. }
  8447. function applyNS (vnode, ns, force) {
  8448. vnode.ns = ns;
  8449. if (vnode.tag === 'foreignObject') {
  8450. // use default namespace inside foreignObject
  8451. ns = undefined;
  8452. force = true;
  8453. }
  8454. if (isDef(vnode.children)) {
  8455. for (var i = 0, l = vnode.children.length; i < l; i++) {
  8456. var child = vnode.children[i];
  8457. if (isDef(child.tag) && (
  8458. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  8459. applyNS(child, ns, force);
  8460. }
  8461. }
  8462. }
  8463. }
  8464. // ref #5318
  8465. // necessary to ensure parent re-render when deep bindings like :style and
  8466. // :class are used on slot nodes
  8467. function registerDeepBindings (data) {
  8468. if (isObject(data.style)) {
  8469. traverse(data.style);
  8470. }
  8471. if (isObject(data.class)) {
  8472. traverse(data.class);
  8473. }
  8474. }
  8475. /* */
  8476. function initRender (vm) {
  8477. vm._vnode = null; // the root of the child tree
  8478. vm._staticTrees = null; // v-once cached trees
  8479. var options = vm.$options;
  8480. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  8481. var renderContext = parentVnode && parentVnode.context;
  8482. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  8483. vm.$scopedSlots = emptyObject;
  8484. // bind the createElement fn to this instance
  8485. // so that we get proper render context inside it.
  8486. // args order: tag, data, children, normalizationType, alwaysNormalize
  8487. // internal version is used by render functions compiled from templates
  8488. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  8489. // normalization is always applied for the public version, used in
  8490. // user-written render functions.
  8491. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  8492. // $attrs & $listeners are exposed for easier HOC creation.
  8493. // they need to be reactive so that HOCs using them are always updated
  8494. var parentData = parentVnode && parentVnode.data;
  8495. /* istanbul ignore else */
  8496. if (true) {
  8497. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  8498. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  8499. }, true);
  8500. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  8501. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  8502. }, true);
  8503. } else {}
  8504. }
  8505. var currentRenderingInstance = null;
  8506. function renderMixin (Vue) {
  8507. // install runtime convenience helpers
  8508. installRenderHelpers(Vue.prototype);
  8509. Vue.prototype.$nextTick = function (fn) {
  8510. return nextTick(fn, this)
  8511. };
  8512. Vue.prototype._render = function () {
  8513. var vm = this;
  8514. var ref = vm.$options;
  8515. var render = ref.render;
  8516. var _parentVnode = ref._parentVnode;
  8517. if (_parentVnode) {
  8518. vm.$scopedSlots = normalizeScopedSlots(
  8519. _parentVnode.data.scopedSlots,
  8520. vm.$slots,
  8521. vm.$scopedSlots
  8522. );
  8523. }
  8524. // set parent vnode. this allows render functions to have access
  8525. // to the data on the placeholder node.
  8526. vm.$vnode = _parentVnode;
  8527. // render self
  8528. var vnode;
  8529. try {
  8530. // There's no need to maintain a stack because all render fns are called
  8531. // separately from one another. Nested component's render fns are called
  8532. // when parent component is patched.
  8533. currentRenderingInstance = vm;
  8534. vnode = render.call(vm._renderProxy, vm.$createElement);
  8535. } catch (e) {
  8536. handleError(e, vm, "render");
  8537. // return error render result,
  8538. // or previous vnode to prevent render error causing blank component
  8539. /* istanbul ignore else */
  8540. if ( true && vm.$options.renderError) {
  8541. try {
  8542. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  8543. } catch (e) {
  8544. handleError(e, vm, "renderError");
  8545. vnode = vm._vnode;
  8546. }
  8547. } else {
  8548. vnode = vm._vnode;
  8549. }
  8550. } finally {
  8551. currentRenderingInstance = null;
  8552. }
  8553. // if the returned array contains only a single node, allow it
  8554. if (Array.isArray(vnode) && vnode.length === 1) {
  8555. vnode = vnode[0];
  8556. }
  8557. // return empty vnode in case the render function errored out
  8558. if (!(vnode instanceof VNode)) {
  8559. if ( true && Array.isArray(vnode)) {
  8560. warn(
  8561. 'Multiple root nodes returned from render function. Render function ' +
  8562. 'should return a single root node.',
  8563. vm
  8564. );
  8565. }
  8566. vnode = createEmptyVNode();
  8567. }
  8568. // set parent
  8569. vnode.parent = _parentVnode;
  8570. return vnode
  8571. };
  8572. }
  8573. /* */
  8574. function ensureCtor (comp, base) {
  8575. if (
  8576. comp.__esModule ||
  8577. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  8578. ) {
  8579. comp = comp.default;
  8580. }
  8581. return isObject(comp)
  8582. ? base.extend(comp)
  8583. : comp
  8584. }
  8585. function createAsyncPlaceholder (
  8586. factory,
  8587. data,
  8588. context,
  8589. children,
  8590. tag
  8591. ) {
  8592. var node = createEmptyVNode();
  8593. node.asyncFactory = factory;
  8594. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  8595. return node
  8596. }
  8597. function resolveAsyncComponent (
  8598. factory,
  8599. baseCtor
  8600. ) {
  8601. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  8602. return factory.errorComp
  8603. }
  8604. if (isDef(factory.resolved)) {
  8605. return factory.resolved
  8606. }
  8607. var owner = currentRenderingInstance;
  8608. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  8609. // already pending
  8610. factory.owners.push(owner);
  8611. }
  8612. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  8613. return factory.loadingComp
  8614. }
  8615. if (owner && !isDef(factory.owners)) {
  8616. var owners = factory.owners = [owner];
  8617. var sync = true;
  8618. var timerLoading = null;
  8619. var timerTimeout = null
  8620. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  8621. var forceRender = function (renderCompleted) {
  8622. for (var i = 0, l = owners.length; i < l; i++) {
  8623. (owners[i]).$forceUpdate();
  8624. }
  8625. if (renderCompleted) {
  8626. owners.length = 0;
  8627. if (timerLoading !== null) {
  8628. clearTimeout(timerLoading);
  8629. timerLoading = null;
  8630. }
  8631. if (timerTimeout !== null) {
  8632. clearTimeout(timerTimeout);
  8633. timerTimeout = null;
  8634. }
  8635. }
  8636. };
  8637. var resolve = once(function (res) {
  8638. // cache resolved
  8639. factory.resolved = ensureCtor(res, baseCtor);
  8640. // invoke callbacks only if this is not a synchronous resolve
  8641. // (async resolves are shimmed as synchronous during SSR)
  8642. if (!sync) {
  8643. forceRender(true);
  8644. } else {
  8645. owners.length = 0;
  8646. }
  8647. });
  8648. var reject = once(function (reason) {
  8649. true && warn(
  8650. "Failed to resolve async component: " + (String(factory)) +
  8651. (reason ? ("\nReason: " + reason) : '')
  8652. );
  8653. if (isDef(factory.errorComp)) {
  8654. factory.error = true;
  8655. forceRender(true);
  8656. }
  8657. });
  8658. var res = factory(resolve, reject);
  8659. if (isObject(res)) {
  8660. if (isPromise(res)) {
  8661. // () => Promise
  8662. if (isUndef(factory.resolved)) {
  8663. res.then(resolve, reject);
  8664. }
  8665. } else if (isPromise(res.component)) {
  8666. res.component.then(resolve, reject);
  8667. if (isDef(res.error)) {
  8668. factory.errorComp = ensureCtor(res.error, baseCtor);
  8669. }
  8670. if (isDef(res.loading)) {
  8671. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  8672. if (res.delay === 0) {
  8673. factory.loading = true;
  8674. } else {
  8675. timerLoading = setTimeout(function () {
  8676. timerLoading = null;
  8677. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  8678. factory.loading = true;
  8679. forceRender(false);
  8680. }
  8681. }, res.delay || 200);
  8682. }
  8683. }
  8684. if (isDef(res.timeout)) {
  8685. timerTimeout = setTimeout(function () {
  8686. timerTimeout = null;
  8687. if (isUndef(factory.resolved)) {
  8688. reject(
  8689. true
  8690. ? ("timeout (" + (res.timeout) + "ms)")
  8691. : undefined
  8692. );
  8693. }
  8694. }, res.timeout);
  8695. }
  8696. }
  8697. }
  8698. sync = false;
  8699. // return in case resolved synchronously
  8700. return factory.loading
  8701. ? factory.loadingComp
  8702. : factory.resolved
  8703. }
  8704. }
  8705. /* */
  8706. function isAsyncPlaceholder (node) {
  8707. return node.isComment && node.asyncFactory
  8708. }
  8709. /* */
  8710. function getFirstComponentChild (children) {
  8711. if (Array.isArray(children)) {
  8712. for (var i = 0; i < children.length; i++) {
  8713. var c = children[i];
  8714. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  8715. return c
  8716. }
  8717. }
  8718. }
  8719. }
  8720. /* */
  8721. /* */
  8722. function initEvents (vm) {
  8723. vm._events = Object.create(null);
  8724. vm._hasHookEvent = false;
  8725. // init parent attached events
  8726. var listeners = vm.$options._parentListeners;
  8727. if (listeners) {
  8728. updateComponentListeners(vm, listeners);
  8729. }
  8730. }
  8731. var target;
  8732. function add (event, fn) {
  8733. target.$on(event, fn);
  8734. }
  8735. function remove$1 (event, fn) {
  8736. target.$off(event, fn);
  8737. }
  8738. function createOnceHandler (event, fn) {
  8739. var _target = target;
  8740. return function onceHandler () {
  8741. var res = fn.apply(null, arguments);
  8742. if (res !== null) {
  8743. _target.$off(event, onceHandler);
  8744. }
  8745. }
  8746. }
  8747. function updateComponentListeners (
  8748. vm,
  8749. listeners,
  8750. oldListeners
  8751. ) {
  8752. target = vm;
  8753. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  8754. target = undefined;
  8755. }
  8756. function eventsMixin (Vue) {
  8757. var hookRE = /^hook:/;
  8758. Vue.prototype.$on = function (event, fn) {
  8759. var vm = this;
  8760. if (Array.isArray(event)) {
  8761. for (var i = 0, l = event.length; i < l; i++) {
  8762. vm.$on(event[i], fn);
  8763. }
  8764. } else {
  8765. (vm._events[event] || (vm._events[event] = [])).push(fn);
  8766. // optimize hook:event cost by using a boolean flag marked at registration
  8767. // instead of a hash lookup
  8768. if (hookRE.test(event)) {
  8769. vm._hasHookEvent = true;
  8770. }
  8771. }
  8772. return vm
  8773. };
  8774. Vue.prototype.$once = function (event, fn) {
  8775. var vm = this;
  8776. function on () {
  8777. vm.$off(event, on);
  8778. fn.apply(vm, arguments);
  8779. }
  8780. on.fn = fn;
  8781. vm.$on(event, on);
  8782. return vm
  8783. };
  8784. Vue.prototype.$off = function (event, fn) {
  8785. var vm = this;
  8786. // all
  8787. if (!arguments.length) {
  8788. vm._events = Object.create(null);
  8789. return vm
  8790. }
  8791. // array of events
  8792. if (Array.isArray(event)) {
  8793. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  8794. vm.$off(event[i$1], fn);
  8795. }
  8796. return vm
  8797. }
  8798. // specific event
  8799. var cbs = vm._events[event];
  8800. if (!cbs) {
  8801. return vm
  8802. }
  8803. if (!fn) {
  8804. vm._events[event] = null;
  8805. return vm
  8806. }
  8807. // specific handler
  8808. var cb;
  8809. var i = cbs.length;
  8810. while (i--) {
  8811. cb = cbs[i];
  8812. if (cb === fn || cb.fn === fn) {
  8813. cbs.splice(i, 1);
  8814. break
  8815. }
  8816. }
  8817. return vm
  8818. };
  8819. Vue.prototype.$emit = function (event) {
  8820. var vm = this;
  8821. if (true) {
  8822. var lowerCaseEvent = event.toLowerCase();
  8823. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  8824. tip(
  8825. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  8826. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  8827. "Note that HTML attributes are case-insensitive and you cannot use " +
  8828. "v-on to listen to camelCase events when using in-DOM templates. " +
  8829. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  8830. );
  8831. }
  8832. }
  8833. var cbs = vm._events[event];
  8834. if (cbs) {
  8835. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  8836. var args = toArray(arguments, 1);
  8837. var info = "event handler for \"" + event + "\"";
  8838. for (var i = 0, l = cbs.length; i < l; i++) {
  8839. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  8840. }
  8841. }
  8842. return vm
  8843. };
  8844. }
  8845. /* */
  8846. var activeInstance = null;
  8847. var isUpdatingChildComponent = false;
  8848. function setActiveInstance(vm) {
  8849. var prevActiveInstance = activeInstance;
  8850. activeInstance = vm;
  8851. return function () {
  8852. activeInstance = prevActiveInstance;
  8853. }
  8854. }
  8855. function initLifecycle (vm) {
  8856. var options = vm.$options;
  8857. // locate first non-abstract parent
  8858. var parent = options.parent;
  8859. if (parent && !options.abstract) {
  8860. while (parent.$options.abstract && parent.$parent) {
  8861. parent = parent.$parent;
  8862. }
  8863. parent.$children.push(vm);
  8864. }
  8865. vm.$parent = parent;
  8866. vm.$root = parent ? parent.$root : vm;
  8867. vm.$children = [];
  8868. vm.$refs = {};
  8869. vm._watcher = null;
  8870. vm._inactive = null;
  8871. vm._directInactive = false;
  8872. vm._isMounted = false;
  8873. vm._isDestroyed = false;
  8874. vm._isBeingDestroyed = false;
  8875. }
  8876. function lifecycleMixin (Vue) {
  8877. Vue.prototype._update = function (vnode, hydrating) {
  8878. var vm = this;
  8879. var prevEl = vm.$el;
  8880. var prevVnode = vm._vnode;
  8881. var restoreActiveInstance = setActiveInstance(vm);
  8882. vm._vnode = vnode;
  8883. // Vue.prototype.__patch__ is injected in entry points
  8884. // based on the rendering backend used.
  8885. if (!prevVnode) {
  8886. // initial render
  8887. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  8888. } else {
  8889. // updates
  8890. vm.$el = vm.__patch__(prevVnode, vnode);
  8891. }
  8892. restoreActiveInstance();
  8893. // update __vue__ reference
  8894. if (prevEl) {
  8895. prevEl.__vue__ = null;
  8896. }
  8897. if (vm.$el) {
  8898. vm.$el.__vue__ = vm;
  8899. }
  8900. // if parent is an HOC, update its $el as well
  8901. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  8902. vm.$parent.$el = vm.$el;
  8903. }
  8904. // updated hook is called by the scheduler to ensure that children are
  8905. // updated in a parent's updated hook.
  8906. };
  8907. Vue.prototype.$forceUpdate = function () {
  8908. var vm = this;
  8909. if (vm._watcher) {
  8910. vm._watcher.update();
  8911. }
  8912. };
  8913. Vue.prototype.$destroy = function () {
  8914. var vm = this;
  8915. if (vm._isBeingDestroyed) {
  8916. return
  8917. }
  8918. callHook(vm, 'beforeDestroy');
  8919. vm._isBeingDestroyed = true;
  8920. // remove self from parent
  8921. var parent = vm.$parent;
  8922. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  8923. remove(parent.$children, vm);
  8924. }
  8925. // teardown watchers
  8926. if (vm._watcher) {
  8927. vm._watcher.teardown();
  8928. }
  8929. var i = vm._watchers.length;
  8930. while (i--) {
  8931. vm._watchers[i].teardown();
  8932. }
  8933. // remove reference from data ob
  8934. // frozen object may not have observer.
  8935. if (vm._data.__ob__) {
  8936. vm._data.__ob__.vmCount--;
  8937. }
  8938. // call the last hook...
  8939. vm._isDestroyed = true;
  8940. // invoke destroy hooks on current rendered tree
  8941. vm.__patch__(vm._vnode, null);
  8942. // fire destroyed hook
  8943. callHook(vm, 'destroyed');
  8944. // turn off all instance listeners.
  8945. vm.$off();
  8946. // remove __vue__ reference
  8947. if (vm.$el) {
  8948. vm.$el.__vue__ = null;
  8949. }
  8950. // release circular reference (#6759)
  8951. if (vm.$vnode) {
  8952. vm.$vnode.parent = null;
  8953. }
  8954. };
  8955. }
  8956. function updateChildComponent (
  8957. vm,
  8958. propsData,
  8959. listeners,
  8960. parentVnode,
  8961. renderChildren
  8962. ) {
  8963. if (true) {
  8964. isUpdatingChildComponent = true;
  8965. }
  8966. // determine whether component has slot children
  8967. // we need to do this before overwriting $options._renderChildren.
  8968. // check if there are dynamic scopedSlots (hand-written or compiled but with
  8969. // dynamic slot names). Static scoped slots compiled from template has the
  8970. // "$stable" marker.
  8971. var newScopedSlots = parentVnode.data.scopedSlots;
  8972. var oldScopedSlots = vm.$scopedSlots;
  8973. var hasDynamicScopedSlot = !!(
  8974. (newScopedSlots && !newScopedSlots.$stable) ||
  8975. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  8976. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  8977. );
  8978. // Any static slot children from the parent may have changed during parent's
  8979. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  8980. // update is necessary to ensure correctness.
  8981. var needsForceUpdate = !!(
  8982. renderChildren || // has new static slots
  8983. vm.$options._renderChildren || // has old static slots
  8984. hasDynamicScopedSlot
  8985. );
  8986. vm.$options._parentVnode = parentVnode;
  8987. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  8988. if (vm._vnode) { // update child tree's parent
  8989. vm._vnode.parent = parentVnode;
  8990. }
  8991. vm.$options._renderChildren = renderChildren;
  8992. // update $attrs and $listeners hash
  8993. // these are also reactive so they may trigger child update if the child
  8994. // used them during render
  8995. vm.$attrs = parentVnode.data.attrs || emptyObject;
  8996. vm.$listeners = listeners || emptyObject;
  8997. // update props
  8998. if (propsData && vm.$options.props) {
  8999. toggleObserving(false);
  9000. var props = vm._props;
  9001. var propKeys = vm.$options._propKeys || [];
  9002. for (var i = 0; i < propKeys.length; i++) {
  9003. var key = propKeys[i];
  9004. var propOptions = vm.$options.props; // wtf flow?
  9005. props[key] = validateProp(key, propOptions, propsData, vm);
  9006. }
  9007. toggleObserving(true);
  9008. // keep a copy of raw propsData
  9009. vm.$options.propsData = propsData;
  9010. }
  9011. // fixed by xxxxxx update properties(mp runtime)
  9012. vm._$updateProperties && vm._$updateProperties(vm);
  9013. // update listeners
  9014. listeners = listeners || emptyObject;
  9015. var oldListeners = vm.$options._parentListeners;
  9016. vm.$options._parentListeners = listeners;
  9017. updateComponentListeners(vm, listeners, oldListeners);
  9018. // resolve slots + force update if has children
  9019. if (needsForceUpdate) {
  9020. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  9021. vm.$forceUpdate();
  9022. }
  9023. if (true) {
  9024. isUpdatingChildComponent = false;
  9025. }
  9026. }
  9027. function isInInactiveTree (vm) {
  9028. while (vm && (vm = vm.$parent)) {
  9029. if (vm._inactive) { return true }
  9030. }
  9031. return false
  9032. }
  9033. function activateChildComponent (vm, direct) {
  9034. if (direct) {
  9035. vm._directInactive = false;
  9036. if (isInInactiveTree(vm)) {
  9037. return
  9038. }
  9039. } else if (vm._directInactive) {
  9040. return
  9041. }
  9042. if (vm._inactive || vm._inactive === null) {
  9043. vm._inactive = false;
  9044. for (var i = 0; i < vm.$children.length; i++) {
  9045. activateChildComponent(vm.$children[i]);
  9046. }
  9047. callHook(vm, 'activated');
  9048. }
  9049. }
  9050. function deactivateChildComponent (vm, direct) {
  9051. if (direct) {
  9052. vm._directInactive = true;
  9053. if (isInInactiveTree(vm)) {
  9054. return
  9055. }
  9056. }
  9057. if (!vm._inactive) {
  9058. vm._inactive = true;
  9059. for (var i = 0; i < vm.$children.length; i++) {
  9060. deactivateChildComponent(vm.$children[i]);
  9061. }
  9062. callHook(vm, 'deactivated');
  9063. }
  9064. }
  9065. function callHook (vm, hook) {
  9066. // #7573 disable dep collection when invoking lifecycle hooks
  9067. pushTarget();
  9068. var handlers = vm.$options[hook];
  9069. var info = hook + " hook";
  9070. if (handlers) {
  9071. for (var i = 0, j = handlers.length; i < j; i++) {
  9072. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  9073. }
  9074. }
  9075. if (vm._hasHookEvent) {
  9076. vm.$emit('hook:' + hook);
  9077. }
  9078. popTarget();
  9079. }
  9080. /* */
  9081. var MAX_UPDATE_COUNT = 100;
  9082. var queue = [];
  9083. var activatedChildren = [];
  9084. var has = {};
  9085. var circular = {};
  9086. var waiting = false;
  9087. var flushing = false;
  9088. var index = 0;
  9089. /**
  9090. * Reset the scheduler's state.
  9091. */
  9092. function resetSchedulerState () {
  9093. index = queue.length = activatedChildren.length = 0;
  9094. has = {};
  9095. if (true) {
  9096. circular = {};
  9097. }
  9098. waiting = flushing = false;
  9099. }
  9100. // Async edge case #6566 requires saving the timestamp when event listeners are
  9101. // attached. However, calling performance.now() has a perf overhead especially
  9102. // if the page has thousands of event listeners. Instead, we take a timestamp
  9103. // every time the scheduler flushes and use that for all event listeners
  9104. // attached during that flush.
  9105. var currentFlushTimestamp = 0;
  9106. // Async edge case fix requires storing an event listener's attach timestamp.
  9107. var getNow = Date.now;
  9108. // Determine what event timestamp the browser is using. Annoyingly, the
  9109. // timestamp can either be hi-res (relative to page load) or low-res
  9110. // (relative to UNIX epoch), so in order to compare time we have to use the
  9111. // same timestamp type when saving the flush timestamp.
  9112. // All IE versions use low-res event timestamps, and have problematic clock
  9113. // implementations (#9632)
  9114. if (inBrowser && !isIE) {
  9115. var performance = window.performance;
  9116. if (
  9117. performance &&
  9118. typeof performance.now === 'function' &&
  9119. getNow() > document.createEvent('Event').timeStamp
  9120. ) {
  9121. // if the event timestamp, although evaluated AFTER the Date.now(), is
  9122. // smaller than it, it means the event is using a hi-res timestamp,
  9123. // and we need to use the hi-res version for event listener timestamps as
  9124. // well.
  9125. getNow = function () { return performance.now(); };
  9126. }
  9127. }
  9128. /**
  9129. * Flush both queues and run the watchers.
  9130. */
  9131. function flushSchedulerQueue () {
  9132. currentFlushTimestamp = getNow();
  9133. flushing = true;
  9134. var watcher, id;
  9135. // Sort queue before flush.
  9136. // This ensures that:
  9137. // 1. Components are updated from parent to child. (because parent is always
  9138. // created before the child)
  9139. // 2. A component's user watchers are run before its render watcher (because
  9140. // user watchers are created before the render watcher)
  9141. // 3. If a component is destroyed during a parent component's watcher run,
  9142. // its watchers can be skipped.
  9143. queue.sort(function (a, b) { return a.id - b.id; });
  9144. // do not cache length because more watchers might be pushed
  9145. // as we run existing watchers
  9146. for (index = 0; index < queue.length; index++) {
  9147. watcher = queue[index];
  9148. if (watcher.before) {
  9149. watcher.before();
  9150. }
  9151. id = watcher.id;
  9152. has[id] = null;
  9153. watcher.run();
  9154. // in dev build, check and stop circular updates.
  9155. if ( true && has[id] != null) {
  9156. circular[id] = (circular[id] || 0) + 1;
  9157. if (circular[id] > MAX_UPDATE_COUNT) {
  9158. warn(
  9159. 'You may have an infinite update loop ' + (
  9160. watcher.user
  9161. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  9162. : "in a component render function."
  9163. ),
  9164. watcher.vm
  9165. );
  9166. break
  9167. }
  9168. }
  9169. }
  9170. // keep copies of post queues before resetting state
  9171. var activatedQueue = activatedChildren.slice();
  9172. var updatedQueue = queue.slice();
  9173. resetSchedulerState();
  9174. // call component updated and activated hooks
  9175. callActivatedHooks(activatedQueue);
  9176. callUpdatedHooks(updatedQueue);
  9177. // devtool hook
  9178. /* istanbul ignore if */
  9179. if (devtools && config.devtools) {
  9180. devtools.emit('flush');
  9181. }
  9182. }
  9183. function callUpdatedHooks (queue) {
  9184. var i = queue.length;
  9185. while (i--) {
  9186. var watcher = queue[i];
  9187. var vm = watcher.vm;
  9188. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  9189. callHook(vm, 'updated');
  9190. }
  9191. }
  9192. }
  9193. /**
  9194. * Queue a kept-alive component that was activated during patch.
  9195. * The queue will be processed after the entire tree has been patched.
  9196. */
  9197. function queueActivatedComponent (vm) {
  9198. // setting _inactive to false here so that a render function can
  9199. // rely on checking whether it's in an inactive tree (e.g. router-view)
  9200. vm._inactive = false;
  9201. activatedChildren.push(vm);
  9202. }
  9203. function callActivatedHooks (queue) {
  9204. for (var i = 0; i < queue.length; i++) {
  9205. queue[i]._inactive = true;
  9206. activateChildComponent(queue[i], true /* true */);
  9207. }
  9208. }
  9209. /**
  9210. * Push a watcher into the watcher queue.
  9211. * Jobs with duplicate IDs will be skipped unless it's
  9212. * pushed when the queue is being flushed.
  9213. */
  9214. function queueWatcher (watcher) {
  9215. var id = watcher.id;
  9216. if (has[id] == null) {
  9217. has[id] = true;
  9218. if (!flushing) {
  9219. queue.push(watcher);
  9220. } else {
  9221. // if already flushing, splice the watcher based on its id
  9222. // if already past its id, it will be run next immediately.
  9223. var i = queue.length - 1;
  9224. while (i > index && queue[i].id > watcher.id) {
  9225. i--;
  9226. }
  9227. queue.splice(i + 1, 0, watcher);
  9228. }
  9229. // queue the flush
  9230. if (!waiting) {
  9231. waiting = true;
  9232. if ( true && !config.async) {
  9233. flushSchedulerQueue();
  9234. return
  9235. }
  9236. nextTick(flushSchedulerQueue);
  9237. }
  9238. }
  9239. }
  9240. /* */
  9241. var uid$2 = 0;
  9242. /**
  9243. * A watcher parses an expression, collects dependencies,
  9244. * and fires callback when the expression value changes.
  9245. * This is used for both the $watch() api and directives.
  9246. */
  9247. var Watcher = function Watcher (
  9248. vm,
  9249. expOrFn,
  9250. cb,
  9251. options,
  9252. isRenderWatcher
  9253. ) {
  9254. this.vm = vm;
  9255. if (isRenderWatcher) {
  9256. vm._watcher = this;
  9257. }
  9258. vm._watchers.push(this);
  9259. // options
  9260. if (options) {
  9261. this.deep = !!options.deep;
  9262. this.user = !!options.user;
  9263. this.lazy = !!options.lazy;
  9264. this.sync = !!options.sync;
  9265. this.before = options.before;
  9266. } else {
  9267. this.deep = this.user = this.lazy = this.sync = false;
  9268. }
  9269. this.cb = cb;
  9270. this.id = ++uid$2; // uid for batching
  9271. this.active = true;
  9272. this.dirty = this.lazy; // for lazy watchers
  9273. this.deps = [];
  9274. this.newDeps = [];
  9275. this.depIds = new _Set();
  9276. this.newDepIds = new _Set();
  9277. this.expression = true
  9278. ? expOrFn.toString()
  9279. : undefined;
  9280. // parse expression for getter
  9281. if (typeof expOrFn === 'function') {
  9282. this.getter = expOrFn;
  9283. } else {
  9284. this.getter = parsePath(expOrFn);
  9285. if (!this.getter) {
  9286. this.getter = noop;
  9287. true && warn(
  9288. "Failed watching path: \"" + expOrFn + "\" " +
  9289. 'Watcher only accepts simple dot-delimited paths. ' +
  9290. 'For full control, use a function instead.',
  9291. vm
  9292. );
  9293. }
  9294. }
  9295. this.value = this.lazy
  9296. ? undefined
  9297. : this.get();
  9298. };
  9299. /**
  9300. * Evaluate the getter, and re-collect dependencies.
  9301. */
  9302. Watcher.prototype.get = function get () {
  9303. pushTarget(this);
  9304. var value;
  9305. var vm = this.vm;
  9306. try {
  9307. value = this.getter.call(vm, vm);
  9308. } catch (e) {
  9309. if (this.user) {
  9310. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  9311. } else {
  9312. throw e
  9313. }
  9314. } finally {
  9315. // "touch" every property so they are all tracked as
  9316. // dependencies for deep watching
  9317. if (this.deep) {
  9318. traverse(value);
  9319. }
  9320. popTarget();
  9321. this.cleanupDeps();
  9322. }
  9323. return value
  9324. };
  9325. /**
  9326. * Add a dependency to this directive.
  9327. */
  9328. Watcher.prototype.addDep = function addDep (dep) {
  9329. var id = dep.id;
  9330. if (!this.newDepIds.has(id)) {
  9331. this.newDepIds.add(id);
  9332. this.newDeps.push(dep);
  9333. if (!this.depIds.has(id)) {
  9334. dep.addSub(this);
  9335. }
  9336. }
  9337. };
  9338. /**
  9339. * Clean up for dependency collection.
  9340. */
  9341. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  9342. var i = this.deps.length;
  9343. while (i--) {
  9344. var dep = this.deps[i];
  9345. if (!this.newDepIds.has(dep.id)) {
  9346. dep.removeSub(this);
  9347. }
  9348. }
  9349. var tmp = this.depIds;
  9350. this.depIds = this.newDepIds;
  9351. this.newDepIds = tmp;
  9352. this.newDepIds.clear();
  9353. tmp = this.deps;
  9354. this.deps = this.newDeps;
  9355. this.newDeps = tmp;
  9356. this.newDeps.length = 0;
  9357. };
  9358. /**
  9359. * Subscriber interface.
  9360. * Will be called when a dependency changes.
  9361. */
  9362. Watcher.prototype.update = function update () {
  9363. /* istanbul ignore else */
  9364. if (this.lazy) {
  9365. this.dirty = true;
  9366. } else if (this.sync) {
  9367. this.run();
  9368. } else {
  9369. queueWatcher(this);
  9370. }
  9371. };
  9372. /**
  9373. * Scheduler job interface.
  9374. * Will be called by the scheduler.
  9375. */
  9376. Watcher.prototype.run = function run () {
  9377. if (this.active) {
  9378. var value = this.get();
  9379. if (
  9380. value !== this.value ||
  9381. // Deep watchers and watchers on Object/Arrays should fire even
  9382. // when the value is the same, because the value may
  9383. // have mutated.
  9384. isObject(value) ||
  9385. this.deep
  9386. ) {
  9387. // set new value
  9388. var oldValue = this.value;
  9389. this.value = value;
  9390. if (this.user) {
  9391. try {
  9392. this.cb.call(this.vm, value, oldValue);
  9393. } catch (e) {
  9394. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  9395. }
  9396. } else {
  9397. this.cb.call(this.vm, value, oldValue);
  9398. }
  9399. }
  9400. }
  9401. };
  9402. /**
  9403. * Evaluate the value of the watcher.
  9404. * This only gets called for lazy watchers.
  9405. */
  9406. Watcher.prototype.evaluate = function evaluate () {
  9407. this.value = this.get();
  9408. this.dirty = false;
  9409. };
  9410. /**
  9411. * Depend on all deps collected by this watcher.
  9412. */
  9413. Watcher.prototype.depend = function depend () {
  9414. var i = this.deps.length;
  9415. while (i--) {
  9416. this.deps[i].depend();
  9417. }
  9418. };
  9419. /**
  9420. * Remove self from all dependencies' subscriber list.
  9421. */
  9422. Watcher.prototype.teardown = function teardown () {
  9423. if (this.active) {
  9424. // remove self from vm's watcher list
  9425. // this is a somewhat expensive operation so we skip it
  9426. // if the vm is being destroyed.
  9427. if (!this.vm._isBeingDestroyed) {
  9428. remove(this.vm._watchers, this);
  9429. }
  9430. var i = this.deps.length;
  9431. while (i--) {
  9432. this.deps[i].removeSub(this);
  9433. }
  9434. this.active = false;
  9435. }
  9436. };
  9437. /* */
  9438. var sharedPropertyDefinition = {
  9439. enumerable: true,
  9440. configurable: true,
  9441. get: noop,
  9442. set: noop
  9443. };
  9444. function proxy (target, sourceKey, key) {
  9445. sharedPropertyDefinition.get = function proxyGetter () {
  9446. return this[sourceKey][key]
  9447. };
  9448. sharedPropertyDefinition.set = function proxySetter (val) {
  9449. this[sourceKey][key] = val;
  9450. };
  9451. Object.defineProperty(target, key, sharedPropertyDefinition);
  9452. }
  9453. function initState (vm) {
  9454. vm._watchers = [];
  9455. var opts = vm.$options;
  9456. if (opts.props) { initProps(vm, opts.props); }
  9457. if (opts.methods) { initMethods(vm, opts.methods); }
  9458. if (opts.data) {
  9459. initData(vm);
  9460. } else {
  9461. observe(vm._data = {}, true /* asRootData */);
  9462. }
  9463. if (opts.computed) { initComputed(vm, opts.computed); }
  9464. if (opts.watch && opts.watch !== nativeWatch) {
  9465. initWatch(vm, opts.watch);
  9466. }
  9467. }
  9468. function initProps (vm, propsOptions) {
  9469. var propsData = vm.$options.propsData || {};
  9470. var props = vm._props = {};
  9471. // cache prop keys so that future props updates can iterate using Array
  9472. // instead of dynamic object key enumeration.
  9473. var keys = vm.$options._propKeys = [];
  9474. var isRoot = !vm.$parent;
  9475. // root instance props should be converted
  9476. if (!isRoot) {
  9477. toggleObserving(false);
  9478. }
  9479. var loop = function ( key ) {
  9480. keys.push(key);
  9481. var value = validateProp(key, propsOptions, propsData, vm);
  9482. /* istanbul ignore else */
  9483. if (true) {
  9484. var hyphenatedKey = hyphenate(key);
  9485. if (isReservedAttribute(hyphenatedKey) ||
  9486. config.isReservedAttr(hyphenatedKey)) {
  9487. warn(
  9488. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  9489. vm
  9490. );
  9491. }
  9492. defineReactive$$1(props, key, value, function () {
  9493. if (!isRoot && !isUpdatingChildComponent) {
  9494. {
  9495. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  9496. return
  9497. }
  9498. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  9499. if(
  9500. key === 'value' &&
  9501. Array.isArray(vm.$options.behaviors) &&
  9502. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  9503. ){
  9504. return
  9505. }
  9506. if(vm._getFormData){
  9507. return
  9508. }
  9509. var $parent = vm.$parent;
  9510. while($parent){
  9511. if($parent.__next_tick_pending){
  9512. return
  9513. }
  9514. $parent = $parent.$parent;
  9515. }
  9516. }
  9517. warn(
  9518. "Avoid mutating a prop directly since the value will be " +
  9519. "overwritten whenever the parent component re-renders. " +
  9520. "Instead, use a data or computed property based on the prop's " +
  9521. "value. Prop being mutated: \"" + key + "\"",
  9522. vm
  9523. );
  9524. }
  9525. });
  9526. } else {}
  9527. // static props are already proxied on the component's prototype
  9528. // during Vue.extend(). We only need to proxy props defined at
  9529. // instantiation here.
  9530. if (!(key in vm)) {
  9531. proxy(vm, "_props", key);
  9532. }
  9533. };
  9534. for (var key in propsOptions) loop( key );
  9535. toggleObserving(true);
  9536. }
  9537. function initData (vm) {
  9538. var data = vm.$options.data;
  9539. data = vm._data = typeof data === 'function'
  9540. ? getData(data, vm)
  9541. : data || {};
  9542. if (!isPlainObject(data)) {
  9543. data = {};
  9544. true && warn(
  9545. 'data functions should return an object:\n' +
  9546. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  9547. vm
  9548. );
  9549. }
  9550. // proxy data on instance
  9551. var keys = Object.keys(data);
  9552. var props = vm.$options.props;
  9553. var methods = vm.$options.methods;
  9554. var i = keys.length;
  9555. while (i--) {
  9556. var key = keys[i];
  9557. if (true) {
  9558. if (methods && hasOwn(methods, key)) {
  9559. warn(
  9560. ("Method \"" + key + "\" has already been defined as a data property."),
  9561. vm
  9562. );
  9563. }
  9564. }
  9565. if (props && hasOwn(props, key)) {
  9566. true && warn(
  9567. "The data property \"" + key + "\" is already declared as a prop. " +
  9568. "Use prop default value instead.",
  9569. vm
  9570. );
  9571. } else if (!isReserved(key)) {
  9572. proxy(vm, "_data", key);
  9573. }
  9574. }
  9575. // observe data
  9576. observe(data, true /* asRootData */);
  9577. }
  9578. function getData (data, vm) {
  9579. // #7573 disable dep collection when invoking data getters
  9580. pushTarget();
  9581. try {
  9582. return data.call(vm, vm)
  9583. } catch (e) {
  9584. handleError(e, vm, "data()");
  9585. return {}
  9586. } finally {
  9587. popTarget();
  9588. }
  9589. }
  9590. var computedWatcherOptions = { lazy: true };
  9591. function initComputed (vm, computed) {
  9592. // $flow-disable-line
  9593. var watchers = vm._computedWatchers = Object.create(null);
  9594. // computed properties are just getters during SSR
  9595. var isSSR = isServerRendering();
  9596. for (var key in computed) {
  9597. var userDef = computed[key];
  9598. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  9599. if ( true && getter == null) {
  9600. warn(
  9601. ("Getter is missing for computed property \"" + key + "\"."),
  9602. vm
  9603. );
  9604. }
  9605. if (!isSSR) {
  9606. // create internal watcher for the computed property.
  9607. watchers[key] = new Watcher(
  9608. vm,
  9609. getter || noop,
  9610. noop,
  9611. computedWatcherOptions
  9612. );
  9613. }
  9614. // component-defined computed properties are already defined on the
  9615. // component prototype. We only need to define computed properties defined
  9616. // at instantiation here.
  9617. if (!(key in vm)) {
  9618. defineComputed(vm, key, userDef);
  9619. } else if (true) {
  9620. if (key in vm.$data) {
  9621. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  9622. } else if (vm.$options.props && key in vm.$options.props) {
  9623. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  9624. }
  9625. }
  9626. }
  9627. }
  9628. function defineComputed (
  9629. target,
  9630. key,
  9631. userDef
  9632. ) {
  9633. var shouldCache = !isServerRendering();
  9634. if (typeof userDef === 'function') {
  9635. sharedPropertyDefinition.get = shouldCache
  9636. ? createComputedGetter(key)
  9637. : createGetterInvoker(userDef);
  9638. sharedPropertyDefinition.set = noop;
  9639. } else {
  9640. sharedPropertyDefinition.get = userDef.get
  9641. ? shouldCache && userDef.cache !== false
  9642. ? createComputedGetter(key)
  9643. : createGetterInvoker(userDef.get)
  9644. : noop;
  9645. sharedPropertyDefinition.set = userDef.set || noop;
  9646. }
  9647. if ( true &&
  9648. sharedPropertyDefinition.set === noop) {
  9649. sharedPropertyDefinition.set = function () {
  9650. warn(
  9651. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  9652. this
  9653. );
  9654. };
  9655. }
  9656. Object.defineProperty(target, key, sharedPropertyDefinition);
  9657. }
  9658. function createComputedGetter (key) {
  9659. return function computedGetter () {
  9660. var watcher = this._computedWatchers && this._computedWatchers[key];
  9661. if (watcher) {
  9662. if (watcher.dirty) {
  9663. watcher.evaluate();
  9664. }
  9665. if (Dep.SharedObject.target) {// fixed by xxxxxx
  9666. watcher.depend();
  9667. }
  9668. return watcher.value
  9669. }
  9670. }
  9671. }
  9672. function createGetterInvoker(fn) {
  9673. return function computedGetter () {
  9674. return fn.call(this, this)
  9675. }
  9676. }
  9677. function initMethods (vm, methods) {
  9678. var props = vm.$options.props;
  9679. for (var key in methods) {
  9680. if (true) {
  9681. if (typeof methods[key] !== 'function') {
  9682. warn(
  9683. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  9684. "Did you reference the function correctly?",
  9685. vm
  9686. );
  9687. }
  9688. if (props && hasOwn(props, key)) {
  9689. warn(
  9690. ("Method \"" + key + "\" has already been defined as a prop."),
  9691. vm
  9692. );
  9693. }
  9694. if ((key in vm) && isReserved(key)) {
  9695. warn(
  9696. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  9697. "Avoid defining component methods that start with _ or $."
  9698. );
  9699. }
  9700. }
  9701. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  9702. }
  9703. }
  9704. function initWatch (vm, watch) {
  9705. for (var key in watch) {
  9706. var handler = watch[key];
  9707. if (Array.isArray(handler)) {
  9708. for (var i = 0; i < handler.length; i++) {
  9709. createWatcher(vm, key, handler[i]);
  9710. }
  9711. } else {
  9712. createWatcher(vm, key, handler);
  9713. }
  9714. }
  9715. }
  9716. function createWatcher (
  9717. vm,
  9718. expOrFn,
  9719. handler,
  9720. options
  9721. ) {
  9722. if (isPlainObject(handler)) {
  9723. options = handler;
  9724. handler = handler.handler;
  9725. }
  9726. if (typeof handler === 'string') {
  9727. handler = vm[handler];
  9728. }
  9729. return vm.$watch(expOrFn, handler, options)
  9730. }
  9731. function stateMixin (Vue) {
  9732. // flow somehow has problems with directly declared definition object
  9733. // when using Object.defineProperty, so we have to procedurally build up
  9734. // the object here.
  9735. var dataDef = {};
  9736. dataDef.get = function () { return this._data };
  9737. var propsDef = {};
  9738. propsDef.get = function () { return this._props };
  9739. if (true) {
  9740. dataDef.set = function () {
  9741. warn(
  9742. 'Avoid replacing instance root $data. ' +
  9743. 'Use nested data properties instead.',
  9744. this
  9745. );
  9746. };
  9747. propsDef.set = function () {
  9748. warn("$props is readonly.", this);
  9749. };
  9750. }
  9751. Object.defineProperty(Vue.prototype, '$data', dataDef);
  9752. Object.defineProperty(Vue.prototype, '$props', propsDef);
  9753. Vue.prototype.$set = set;
  9754. Vue.prototype.$delete = del;
  9755. Vue.prototype.$watch = function (
  9756. expOrFn,
  9757. cb,
  9758. options
  9759. ) {
  9760. var vm = this;
  9761. if (isPlainObject(cb)) {
  9762. return createWatcher(vm, expOrFn, cb, options)
  9763. }
  9764. options = options || {};
  9765. options.user = true;
  9766. var watcher = new Watcher(vm, expOrFn, cb, options);
  9767. if (options.immediate) {
  9768. try {
  9769. cb.call(vm, watcher.value);
  9770. } catch (error) {
  9771. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  9772. }
  9773. }
  9774. return function unwatchFn () {
  9775. watcher.teardown();
  9776. }
  9777. };
  9778. }
  9779. /* */
  9780. var uid$3 = 0;
  9781. function initMixin (Vue) {
  9782. Vue.prototype._init = function (options) {
  9783. var vm = this;
  9784. // a uid
  9785. vm._uid = uid$3++;
  9786. var startTag, endTag;
  9787. /* istanbul ignore if */
  9788. if ( true && config.performance && mark) {
  9789. startTag = "vue-perf-start:" + (vm._uid);
  9790. endTag = "vue-perf-end:" + (vm._uid);
  9791. mark(startTag);
  9792. }
  9793. // a flag to avoid this being observed
  9794. vm._isVue = true;
  9795. // merge options
  9796. if (options && options._isComponent) {
  9797. // optimize internal component instantiation
  9798. // since dynamic options merging is pretty slow, and none of the
  9799. // internal component options needs special treatment.
  9800. initInternalComponent(vm, options);
  9801. } else {
  9802. vm.$options = mergeOptions(
  9803. resolveConstructorOptions(vm.constructor),
  9804. options || {},
  9805. vm
  9806. );
  9807. }
  9808. /* istanbul ignore else */
  9809. if (true) {
  9810. initProxy(vm);
  9811. } else {}
  9812. // expose real self
  9813. vm._self = vm;
  9814. initLifecycle(vm);
  9815. initEvents(vm);
  9816. initRender(vm);
  9817. callHook(vm, 'beforeCreate');
  9818. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  9819. initState(vm);
  9820. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  9821. !vm._$fallback && callHook(vm, 'created');
  9822. /* istanbul ignore if */
  9823. if ( true && config.performance && mark) {
  9824. vm._name = formatComponentName(vm, false);
  9825. mark(endTag);
  9826. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  9827. }
  9828. if (vm.$options.el) {
  9829. vm.$mount(vm.$options.el);
  9830. }
  9831. };
  9832. }
  9833. function initInternalComponent (vm, options) {
  9834. var opts = vm.$options = Object.create(vm.constructor.options);
  9835. // doing this because it's faster than dynamic enumeration.
  9836. var parentVnode = options._parentVnode;
  9837. opts.parent = options.parent;
  9838. opts._parentVnode = parentVnode;
  9839. var vnodeComponentOptions = parentVnode.componentOptions;
  9840. opts.propsData = vnodeComponentOptions.propsData;
  9841. opts._parentListeners = vnodeComponentOptions.listeners;
  9842. opts._renderChildren = vnodeComponentOptions.children;
  9843. opts._componentTag = vnodeComponentOptions.tag;
  9844. if (options.render) {
  9845. opts.render = options.render;
  9846. opts.staticRenderFns = options.staticRenderFns;
  9847. }
  9848. }
  9849. function resolveConstructorOptions (Ctor) {
  9850. var options = Ctor.options;
  9851. if (Ctor.super) {
  9852. var superOptions = resolveConstructorOptions(Ctor.super);
  9853. var cachedSuperOptions = Ctor.superOptions;
  9854. if (superOptions !== cachedSuperOptions) {
  9855. // super option changed,
  9856. // need to resolve new options.
  9857. Ctor.superOptions = superOptions;
  9858. // check if there are any late-modified/attached options (#4976)
  9859. var modifiedOptions = resolveModifiedOptions(Ctor);
  9860. // update base extend options
  9861. if (modifiedOptions) {
  9862. extend(Ctor.extendOptions, modifiedOptions);
  9863. }
  9864. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  9865. if (options.name) {
  9866. options.components[options.name] = Ctor;
  9867. }
  9868. }
  9869. }
  9870. return options
  9871. }
  9872. function resolveModifiedOptions (Ctor) {
  9873. var modified;
  9874. var latest = Ctor.options;
  9875. var sealed = Ctor.sealedOptions;
  9876. for (var key in latest) {
  9877. if (latest[key] !== sealed[key]) {
  9878. if (!modified) { modified = {}; }
  9879. modified[key] = latest[key];
  9880. }
  9881. }
  9882. return modified
  9883. }
  9884. function Vue (options) {
  9885. if ( true &&
  9886. !(this instanceof Vue)
  9887. ) {
  9888. warn('Vue is a constructor and should be called with the `new` keyword');
  9889. }
  9890. this._init(options);
  9891. }
  9892. initMixin(Vue);
  9893. stateMixin(Vue);
  9894. eventsMixin(Vue);
  9895. lifecycleMixin(Vue);
  9896. renderMixin(Vue);
  9897. /* */
  9898. function initUse (Vue) {
  9899. Vue.use = function (plugin) {
  9900. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  9901. if (installedPlugins.indexOf(plugin) > -1) {
  9902. return this
  9903. }
  9904. // additional parameters
  9905. var args = toArray(arguments, 1);
  9906. args.unshift(this);
  9907. if (typeof plugin.install === 'function') {
  9908. plugin.install.apply(plugin, args);
  9909. } else if (typeof plugin === 'function') {
  9910. plugin.apply(null, args);
  9911. }
  9912. installedPlugins.push(plugin);
  9913. return this
  9914. };
  9915. }
  9916. /* */
  9917. function initMixin$1 (Vue) {
  9918. Vue.mixin = function (mixin) {
  9919. this.options = mergeOptions(this.options, mixin);
  9920. return this
  9921. };
  9922. }
  9923. /* */
  9924. function initExtend (Vue) {
  9925. /**
  9926. * Each instance constructor, including Vue, has a unique
  9927. * cid. This enables us to create wrapped "child
  9928. * constructors" for prototypal inheritance and cache them.
  9929. */
  9930. Vue.cid = 0;
  9931. var cid = 1;
  9932. /**
  9933. * Class inheritance
  9934. */
  9935. Vue.extend = function (extendOptions) {
  9936. extendOptions = extendOptions || {};
  9937. var Super = this;
  9938. var SuperId = Super.cid;
  9939. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  9940. if (cachedCtors[SuperId]) {
  9941. return cachedCtors[SuperId]
  9942. }
  9943. var name = extendOptions.name || Super.options.name;
  9944. if ( true && name) {
  9945. validateComponentName(name);
  9946. }
  9947. var Sub = function VueComponent (options) {
  9948. this._init(options);
  9949. };
  9950. Sub.prototype = Object.create(Super.prototype);
  9951. Sub.prototype.constructor = Sub;
  9952. Sub.cid = cid++;
  9953. Sub.options = mergeOptions(
  9954. Super.options,
  9955. extendOptions
  9956. );
  9957. Sub['super'] = Super;
  9958. // For props and computed properties, we define the proxy getters on
  9959. // the Vue instances at extension time, on the extended prototype. This
  9960. // avoids Object.defineProperty calls for each instance created.
  9961. if (Sub.options.props) {
  9962. initProps$1(Sub);
  9963. }
  9964. if (Sub.options.computed) {
  9965. initComputed$1(Sub);
  9966. }
  9967. // allow further extension/mixin/plugin usage
  9968. Sub.extend = Super.extend;
  9969. Sub.mixin = Super.mixin;
  9970. Sub.use = Super.use;
  9971. // create asset registers, so extended classes
  9972. // can have their private assets too.
  9973. ASSET_TYPES.forEach(function (type) {
  9974. Sub[type] = Super[type];
  9975. });
  9976. // enable recursive self-lookup
  9977. if (name) {
  9978. Sub.options.components[name] = Sub;
  9979. }
  9980. // keep a reference to the super options at extension time.
  9981. // later at instantiation we can check if Super's options have
  9982. // been updated.
  9983. Sub.superOptions = Super.options;
  9984. Sub.extendOptions = extendOptions;
  9985. Sub.sealedOptions = extend({}, Sub.options);
  9986. // cache constructor
  9987. cachedCtors[SuperId] = Sub;
  9988. return Sub
  9989. };
  9990. }
  9991. function initProps$1 (Comp) {
  9992. var props = Comp.options.props;
  9993. for (var key in props) {
  9994. proxy(Comp.prototype, "_props", key);
  9995. }
  9996. }
  9997. function initComputed$1 (Comp) {
  9998. var computed = Comp.options.computed;
  9999. for (var key in computed) {
  10000. defineComputed(Comp.prototype, key, computed[key]);
  10001. }
  10002. }
  10003. /* */
  10004. function initAssetRegisters (Vue) {
  10005. /**
  10006. * Create asset registration methods.
  10007. */
  10008. ASSET_TYPES.forEach(function (type) {
  10009. Vue[type] = function (
  10010. id,
  10011. definition
  10012. ) {
  10013. if (!definition) {
  10014. return this.options[type + 's'][id]
  10015. } else {
  10016. /* istanbul ignore if */
  10017. if ( true && type === 'component') {
  10018. validateComponentName(id);
  10019. }
  10020. if (type === 'component' && isPlainObject(definition)) {
  10021. definition.name = definition.name || id;
  10022. definition = this.options._base.extend(definition);
  10023. }
  10024. if (type === 'directive' && typeof definition === 'function') {
  10025. definition = { bind: definition, update: definition };
  10026. }
  10027. this.options[type + 's'][id] = definition;
  10028. return definition
  10029. }
  10030. };
  10031. });
  10032. }
  10033. /* */
  10034. function getComponentName (opts) {
  10035. return opts && (opts.Ctor.options.name || opts.tag)
  10036. }
  10037. function matches (pattern, name) {
  10038. if (Array.isArray(pattern)) {
  10039. return pattern.indexOf(name) > -1
  10040. } else if (typeof pattern === 'string') {
  10041. return pattern.split(',').indexOf(name) > -1
  10042. } else if (isRegExp(pattern)) {
  10043. return pattern.test(name)
  10044. }
  10045. /* istanbul ignore next */
  10046. return false
  10047. }
  10048. function pruneCache (keepAliveInstance, filter) {
  10049. var cache = keepAliveInstance.cache;
  10050. var keys = keepAliveInstance.keys;
  10051. var _vnode = keepAliveInstance._vnode;
  10052. for (var key in cache) {
  10053. var cachedNode = cache[key];
  10054. if (cachedNode) {
  10055. var name = getComponentName(cachedNode.componentOptions);
  10056. if (name && !filter(name)) {
  10057. pruneCacheEntry(cache, key, keys, _vnode);
  10058. }
  10059. }
  10060. }
  10061. }
  10062. function pruneCacheEntry (
  10063. cache,
  10064. key,
  10065. keys,
  10066. current
  10067. ) {
  10068. var cached$$1 = cache[key];
  10069. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  10070. cached$$1.componentInstance.$destroy();
  10071. }
  10072. cache[key] = null;
  10073. remove(keys, key);
  10074. }
  10075. var patternTypes = [String, RegExp, Array];
  10076. var KeepAlive = {
  10077. name: 'keep-alive',
  10078. abstract: true,
  10079. props: {
  10080. include: patternTypes,
  10081. exclude: patternTypes,
  10082. max: [String, Number]
  10083. },
  10084. created: function created () {
  10085. this.cache = Object.create(null);
  10086. this.keys = [];
  10087. },
  10088. destroyed: function destroyed () {
  10089. for (var key in this.cache) {
  10090. pruneCacheEntry(this.cache, key, this.keys);
  10091. }
  10092. },
  10093. mounted: function mounted () {
  10094. var this$1 = this;
  10095. this.$watch('include', function (val) {
  10096. pruneCache(this$1, function (name) { return matches(val, name); });
  10097. });
  10098. this.$watch('exclude', function (val) {
  10099. pruneCache(this$1, function (name) { return !matches(val, name); });
  10100. });
  10101. },
  10102. render: function render () {
  10103. var slot = this.$slots.default;
  10104. var vnode = getFirstComponentChild(slot);
  10105. var componentOptions = vnode && vnode.componentOptions;
  10106. if (componentOptions) {
  10107. // check pattern
  10108. var name = getComponentName(componentOptions);
  10109. var ref = this;
  10110. var include = ref.include;
  10111. var exclude = ref.exclude;
  10112. if (
  10113. // not included
  10114. (include && (!name || !matches(include, name))) ||
  10115. // excluded
  10116. (exclude && name && matches(exclude, name))
  10117. ) {
  10118. return vnode
  10119. }
  10120. var ref$1 = this;
  10121. var cache = ref$1.cache;
  10122. var keys = ref$1.keys;
  10123. var key = vnode.key == null
  10124. // same constructor may get registered as different local components
  10125. // so cid alone is not enough (#3269)
  10126. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  10127. : vnode.key;
  10128. if (cache[key]) {
  10129. vnode.componentInstance = cache[key].componentInstance;
  10130. // make current key freshest
  10131. remove(keys, key);
  10132. keys.push(key);
  10133. } else {
  10134. cache[key] = vnode;
  10135. keys.push(key);
  10136. // prune oldest entry
  10137. if (this.max && keys.length > parseInt(this.max)) {
  10138. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  10139. }
  10140. }
  10141. vnode.data.keepAlive = true;
  10142. }
  10143. return vnode || (slot && slot[0])
  10144. }
  10145. };
  10146. var builtInComponents = {
  10147. KeepAlive: KeepAlive
  10148. };
  10149. /* */
  10150. function initGlobalAPI (Vue) {
  10151. // config
  10152. var configDef = {};
  10153. configDef.get = function () { return config; };
  10154. if (true) {
  10155. configDef.set = function () {
  10156. warn(
  10157. 'Do not replace the Vue.config object, set individual fields instead.'
  10158. );
  10159. };
  10160. }
  10161. Object.defineProperty(Vue, 'config', configDef);
  10162. // exposed util methods.
  10163. // NOTE: these are not considered part of the public API - avoid relying on
  10164. // them unless you are aware of the risk.
  10165. Vue.util = {
  10166. warn: warn,
  10167. extend: extend,
  10168. mergeOptions: mergeOptions,
  10169. defineReactive: defineReactive$$1
  10170. };
  10171. Vue.set = set;
  10172. Vue.delete = del;
  10173. Vue.nextTick = nextTick;
  10174. // 2.6 explicit observable API
  10175. Vue.observable = function (obj) {
  10176. observe(obj);
  10177. return obj
  10178. };
  10179. Vue.options = Object.create(null);
  10180. ASSET_TYPES.forEach(function (type) {
  10181. Vue.options[type + 's'] = Object.create(null);
  10182. });
  10183. // this is used to identify the "base" constructor to extend all plain-object
  10184. // components with in Weex's multi-instance scenarios.
  10185. Vue.options._base = Vue;
  10186. extend(Vue.options.components, builtInComponents);
  10187. initUse(Vue);
  10188. initMixin$1(Vue);
  10189. initExtend(Vue);
  10190. initAssetRegisters(Vue);
  10191. }
  10192. initGlobalAPI(Vue);
  10193. Object.defineProperty(Vue.prototype, '$isServer', {
  10194. get: isServerRendering
  10195. });
  10196. Object.defineProperty(Vue.prototype, '$ssrContext', {
  10197. get: function get () {
  10198. /* istanbul ignore next */
  10199. return this.$vnode && this.$vnode.ssrContext
  10200. }
  10201. });
  10202. // expose FunctionalRenderContext for ssr runtime helper installation
  10203. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  10204. value: FunctionalRenderContext
  10205. });
  10206. Vue.version = '2.6.11';
  10207. /**
  10208. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  10209. */
  10210. var ARRAYTYPE = '[object Array]';
  10211. var OBJECTTYPE = '[object Object]';
  10212. var NULLTYPE = '[object Null]';
  10213. var UNDEFINEDTYPE = '[object Undefined]';
  10214. // const FUNCTIONTYPE = '[object Function]'
  10215. function diff(current, pre) {
  10216. var result = {};
  10217. syncKeys(current, pre);
  10218. _diff(current, pre, '', result);
  10219. return result
  10220. }
  10221. function syncKeys(current, pre) {
  10222. if (current === pre) { return }
  10223. var rootCurrentType = type(current);
  10224. var rootPreType = type(pre);
  10225. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  10226. if(Object.keys(current).length >= Object.keys(pre).length){
  10227. for (var key in pre) {
  10228. var currentValue = current[key];
  10229. if (currentValue === undefined) {
  10230. current[key] = null;
  10231. } else {
  10232. syncKeys(currentValue, pre[key]);
  10233. }
  10234. }
  10235. }
  10236. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  10237. if (current.length >= pre.length) {
  10238. pre.forEach(function (item, index) {
  10239. syncKeys(current[index], item);
  10240. });
  10241. }
  10242. }
  10243. }
  10244. function nullOrUndefined(currentType, preType) {
  10245. if(
  10246. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  10247. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  10248. ) {
  10249. return false
  10250. }
  10251. return true
  10252. }
  10253. function _diff(current, pre, path, result) {
  10254. if (current === pre) { return }
  10255. var rootCurrentType = type(current);
  10256. var rootPreType = type(pre);
  10257. if (rootCurrentType == OBJECTTYPE) {
  10258. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  10259. setResult(result, path, current);
  10260. } else {
  10261. var loop = function ( key ) {
  10262. var currentValue = current[key];
  10263. var preValue = pre[key];
  10264. var currentType = type(currentValue);
  10265. var preType = type(preValue);
  10266. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  10267. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  10268. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10269. }
  10270. } else if (currentType == ARRAYTYPE) {
  10271. if (preType != ARRAYTYPE) {
  10272. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10273. } else {
  10274. if (currentValue.length < preValue.length) {
  10275. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10276. } else {
  10277. currentValue.forEach(function (item, index) {
  10278. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  10279. });
  10280. }
  10281. }
  10282. } else if (currentType == OBJECTTYPE) {
  10283. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  10284. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  10285. } else {
  10286. for (var subKey in currentValue) {
  10287. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  10288. }
  10289. }
  10290. }
  10291. };
  10292. for (var key in current) loop( key );
  10293. }
  10294. } else if (rootCurrentType == ARRAYTYPE) {
  10295. if (rootPreType != ARRAYTYPE) {
  10296. setResult(result, path, current);
  10297. } else {
  10298. if (current.length < pre.length) {
  10299. setResult(result, path, current);
  10300. } else {
  10301. current.forEach(function (item, index) {
  10302. _diff(item, pre[index], path + '[' + index + ']', result);
  10303. });
  10304. }
  10305. }
  10306. } else {
  10307. setResult(result, path, current);
  10308. }
  10309. }
  10310. function setResult(result, k, v) {
  10311. // if (type(v) != FUNCTIONTYPE) {
  10312. result[k] = v;
  10313. // }
  10314. }
  10315. function type(obj) {
  10316. return Object.prototype.toString.call(obj)
  10317. }
  10318. /* */
  10319. function flushCallbacks$1(vm) {
  10320. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  10321. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  10322. var mpInstance = vm.$scope;
  10323. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  10324. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  10325. }
  10326. var copies = vm.__next_tick_callbacks.slice(0);
  10327. vm.__next_tick_callbacks.length = 0;
  10328. for (var i = 0; i < copies.length; i++) {
  10329. copies[i]();
  10330. }
  10331. }
  10332. }
  10333. function hasRenderWatcher(vm) {
  10334. return queue.find(function (watcher) { return vm._watcher === watcher; })
  10335. }
  10336. function nextTick$1(vm, cb) {
  10337. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  10338. //2.nextTick 之前存在 render watcher
  10339. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  10340. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  10341. var mpInstance = vm.$scope;
  10342. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  10343. ']:nextVueTick');
  10344. }
  10345. return nextTick(cb, vm)
  10346. }else{
  10347. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  10348. var mpInstance$1 = vm.$scope;
  10349. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  10350. ']:nextMPTick');
  10351. }
  10352. }
  10353. var _resolve;
  10354. if (!vm.__next_tick_callbacks) {
  10355. vm.__next_tick_callbacks = [];
  10356. }
  10357. vm.__next_tick_callbacks.push(function () {
  10358. if (cb) {
  10359. try {
  10360. cb.call(vm);
  10361. } catch (e) {
  10362. handleError(e, vm, 'nextTick');
  10363. }
  10364. } else if (_resolve) {
  10365. _resolve(vm);
  10366. }
  10367. });
  10368. // $flow-disable-line
  10369. if (!cb && typeof Promise !== 'undefined') {
  10370. return new Promise(function (resolve) {
  10371. _resolve = resolve;
  10372. })
  10373. }
  10374. }
  10375. /* */
  10376. function clearInstance(key, value) {
  10377. // 简易去除 Vue 和小程序组件实例
  10378. if (value) {
  10379. if (value._isVue || value.__v_isMPComponent) {
  10380. return {}
  10381. }
  10382. }
  10383. return value
  10384. }
  10385. function cloneWithData(vm) {
  10386. // 确保当前 vm 所有数据被同步
  10387. var ret = Object.create(null);
  10388. var dataKeys = [].concat(
  10389. Object.keys(vm._data || {}),
  10390. Object.keys(vm._computedWatchers || {}));
  10391. dataKeys.reduce(function(ret, key) {
  10392. ret[key] = vm[key];
  10393. return ret
  10394. }, ret);
  10395. // vue-composition-api
  10396. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  10397. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  10398. if (rawBindings) {
  10399. Object.keys(rawBindings).forEach(function (key) {
  10400. ret[key] = vm[key];
  10401. });
  10402. }
  10403. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  10404. Object.assign(ret, vm.$mp.data || {});
  10405. if (
  10406. Array.isArray(vm.$options.behaviors) &&
  10407. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  10408. ) { //form-field
  10409. ret['name'] = vm.name;
  10410. ret['value'] = vm.value;
  10411. }
  10412. return JSON.parse(JSON.stringify(ret, clearInstance))
  10413. }
  10414. var patch = function(oldVnode, vnode) {
  10415. var this$1 = this;
  10416. if (vnode === null) { //destroy
  10417. return
  10418. }
  10419. if (this.mpType === 'page' || this.mpType === 'component') {
  10420. var mpInstance = this.$scope;
  10421. var data = Object.create(null);
  10422. try {
  10423. data = cloneWithData(this);
  10424. } catch (err) {
  10425. console.error(err);
  10426. }
  10427. data.__webviewId__ = mpInstance.data.__webviewId__;
  10428. var mpData = Object.create(null);
  10429. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  10430. mpData[key] = mpInstance.data[key];
  10431. });
  10432. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  10433. if (Object.keys(diffData).length) {
  10434. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  10435. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  10436. ']差量更新',
  10437. JSON.stringify(diffData));
  10438. }
  10439. this.__next_tick_pending = true;
  10440. mpInstance.setData(diffData, function () {
  10441. this$1.__next_tick_pending = false;
  10442. flushCallbacks$1(this$1);
  10443. });
  10444. } else {
  10445. flushCallbacks$1(this);
  10446. }
  10447. }
  10448. };
  10449. /* */
  10450. function createEmptyRender() {
  10451. }
  10452. function mountComponent$1(
  10453. vm,
  10454. el,
  10455. hydrating
  10456. ) {
  10457. if (!vm.mpType) {//main.js 中的 new Vue
  10458. return vm
  10459. }
  10460. if (vm.mpType === 'app') {
  10461. vm.$options.render = createEmptyRender;
  10462. }
  10463. if (!vm.$options.render) {
  10464. vm.$options.render = createEmptyRender;
  10465. if (true) {
  10466. /* istanbul ignore if */
  10467. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  10468. vm.$options.el || el) {
  10469. warn(
  10470. 'You are using the runtime-only build of Vue where the template ' +
  10471. 'compiler is not available. Either pre-compile the templates into ' +
  10472. 'render functions, or use the compiler-included build.',
  10473. vm
  10474. );
  10475. } else {
  10476. warn(
  10477. 'Failed to mount component: template or render function not defined.',
  10478. vm
  10479. );
  10480. }
  10481. }
  10482. }
  10483. !vm._$fallback && callHook(vm, 'beforeMount');
  10484. var updateComponent = function () {
  10485. vm._update(vm._render(), hydrating);
  10486. };
  10487. // we set this to vm._watcher inside the watcher's constructor
  10488. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  10489. // component's mounted hook), which relies on vm._watcher being already defined
  10490. new Watcher(vm, updateComponent, noop, {
  10491. before: function before() {
  10492. if (vm._isMounted && !vm._isDestroyed) {
  10493. callHook(vm, 'beforeUpdate');
  10494. }
  10495. }
  10496. }, true /* isRenderWatcher */);
  10497. hydrating = false;
  10498. return vm
  10499. }
  10500. /* */
  10501. function renderClass (
  10502. staticClass,
  10503. dynamicClass
  10504. ) {
  10505. if (isDef(staticClass) || isDef(dynamicClass)) {
  10506. return concat(staticClass, stringifyClass(dynamicClass))
  10507. }
  10508. /* istanbul ignore next */
  10509. return ''
  10510. }
  10511. function concat (a, b) {
  10512. return a ? b ? (a + ' ' + b) : a : (b || '')
  10513. }
  10514. function stringifyClass (value) {
  10515. if (Array.isArray(value)) {
  10516. return stringifyArray(value)
  10517. }
  10518. if (isObject(value)) {
  10519. return stringifyObject(value)
  10520. }
  10521. if (typeof value === 'string') {
  10522. return value
  10523. }
  10524. /* istanbul ignore next */
  10525. return ''
  10526. }
  10527. function stringifyArray (value) {
  10528. var res = '';
  10529. var stringified;
  10530. for (var i = 0, l = value.length; i < l; i++) {
  10531. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  10532. if (res) { res += ' '; }
  10533. res += stringified;
  10534. }
  10535. }
  10536. return res
  10537. }
  10538. function stringifyObject (value) {
  10539. var res = '';
  10540. for (var key in value) {
  10541. if (value[key]) {
  10542. if (res) { res += ' '; }
  10543. res += key;
  10544. }
  10545. }
  10546. return res
  10547. }
  10548. /* */
  10549. var parseStyleText = cached(function (cssText) {
  10550. var res = {};
  10551. var listDelimiter = /;(?![^(]*\))/g;
  10552. var propertyDelimiter = /:(.+)/;
  10553. cssText.split(listDelimiter).forEach(function (item) {
  10554. if (item) {
  10555. var tmp = item.split(propertyDelimiter);
  10556. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  10557. }
  10558. });
  10559. return res
  10560. });
  10561. // normalize possible array / string values into Object
  10562. function normalizeStyleBinding (bindingStyle) {
  10563. if (Array.isArray(bindingStyle)) {
  10564. return toObject(bindingStyle)
  10565. }
  10566. if (typeof bindingStyle === 'string') {
  10567. return parseStyleText(bindingStyle)
  10568. }
  10569. return bindingStyle
  10570. }
  10571. /* */
  10572. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  10573. function getTarget(obj, path) {
  10574. var parts = path.split('.');
  10575. var key = parts[0];
  10576. if (key.indexOf('__$n') === 0) { //number index
  10577. key = parseInt(key.replace('__$n', ''));
  10578. }
  10579. if (parts.length === 1) {
  10580. return obj[key]
  10581. }
  10582. return getTarget(obj[key], parts.slice(1).join('.'))
  10583. }
  10584. function internalMixin(Vue) {
  10585. Vue.config.errorHandler = function(err, vm, info) {
  10586. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  10587. console.error(err);
  10588. /* eslint-disable no-undef */
  10589. var app = typeof getApp === 'function' && getApp();
  10590. if (app && app.onError) {
  10591. app.onError(err);
  10592. }
  10593. };
  10594. var oldEmit = Vue.prototype.$emit;
  10595. Vue.prototype.$emit = function(event) {
  10596. if (this.$scope && event) {
  10597. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  10598. if (triggerEvent) {
  10599. try {
  10600. triggerEvent.call(this.$scope, event, {
  10601. __args__: toArray(arguments, 1)
  10602. });
  10603. } catch (error) {
  10604. }
  10605. }
  10606. }
  10607. return oldEmit.apply(this, arguments)
  10608. };
  10609. Vue.prototype.$nextTick = function(fn) {
  10610. return nextTick$1(this, fn)
  10611. };
  10612. MP_METHODS.forEach(function (method) {
  10613. Vue.prototype[method] = function(args) {
  10614. if (this.$scope && this.$scope[method]) {
  10615. return this.$scope[method](args)
  10616. }
  10617. // mp-alipay
  10618. if (typeof my === 'undefined') {
  10619. return
  10620. }
  10621. if (method === 'createSelectorQuery') {
  10622. /* eslint-disable no-undef */
  10623. return my.createSelectorQuery(args)
  10624. } else if (method === 'createIntersectionObserver') {
  10625. /* eslint-disable no-undef */
  10626. return my.createIntersectionObserver(args)
  10627. }
  10628. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  10629. };
  10630. });
  10631. Vue.prototype.__init_provide = initProvide;
  10632. Vue.prototype.__init_injections = initInjections;
  10633. Vue.prototype.__call_hook = function(hook, args) {
  10634. var vm = this;
  10635. // #7573 disable dep collection when invoking lifecycle hooks
  10636. pushTarget();
  10637. var handlers = vm.$options[hook];
  10638. var info = hook + " hook";
  10639. var ret;
  10640. if (handlers) {
  10641. for (var i = 0, j = handlers.length; i < j; i++) {
  10642. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  10643. }
  10644. }
  10645. if (vm._hasHookEvent) {
  10646. vm.$emit('hook:' + hook, args);
  10647. }
  10648. popTarget();
  10649. return ret
  10650. };
  10651. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  10652. if (Array.isArray(modifiers)) {
  10653. if (modifiers.indexOf('trim') !== -1) {
  10654. value = value.trim();
  10655. }
  10656. if (modifiers.indexOf('number') !== -1) {
  10657. value = this._n(value);
  10658. }
  10659. }
  10660. if (!target) {
  10661. target = this;
  10662. }
  10663. // 解决动态属性添加
  10664. Vue.set(target, key, value);
  10665. };
  10666. Vue.prototype.__set_sync = function(target, key, value) {
  10667. if (!target) {
  10668. target = this;
  10669. }
  10670. // 解决动态属性添加
  10671. Vue.set(target, key, value);
  10672. };
  10673. Vue.prototype.__get_orig = function(item) {
  10674. if (isPlainObject(item)) {
  10675. return item['$orig'] || item
  10676. }
  10677. return item
  10678. };
  10679. Vue.prototype.__get_value = function(dataPath, target) {
  10680. return getTarget(target || this, dataPath)
  10681. };
  10682. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  10683. return renderClass(staticClass, dynamicClass)
  10684. };
  10685. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  10686. if (!dynamicStyle && !staticStyle) {
  10687. return ''
  10688. }
  10689. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  10690. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  10691. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  10692. };
  10693. Vue.prototype.__map = function(val, iteratee) {
  10694. //TODO 暂不考虑 string
  10695. var ret, i, l, keys, key;
  10696. if (Array.isArray(val)) {
  10697. ret = new Array(val.length);
  10698. for (i = 0, l = val.length; i < l; i++) {
  10699. ret[i] = iteratee(val[i], i);
  10700. }
  10701. return ret
  10702. } else if (isObject(val)) {
  10703. keys = Object.keys(val);
  10704. ret = Object.create(null);
  10705. for (i = 0, l = keys.length; i < l; i++) {
  10706. key = keys[i];
  10707. ret[key] = iteratee(val[key], key, i);
  10708. }
  10709. return ret
  10710. } else if (typeof val === 'number') {
  10711. ret = new Array(val);
  10712. for (i = 0, l = val; i < l; i++) {
  10713. // 第一个参数暂时仍和小程序一致
  10714. ret[i] = iteratee(i, i);
  10715. }
  10716. return ret
  10717. }
  10718. return []
  10719. };
  10720. }
  10721. /* */
  10722. var LIFECYCLE_HOOKS$1 = [
  10723. //App
  10724. 'onLaunch',
  10725. 'onShow',
  10726. 'onHide',
  10727. 'onUniNViewMessage',
  10728. 'onPageNotFound',
  10729. 'onThemeChange',
  10730. 'onError',
  10731. 'onUnhandledRejection',
  10732. //Page
  10733. 'onInit',
  10734. 'onLoad',
  10735. // 'onShow',
  10736. 'onReady',
  10737. // 'onHide',
  10738. 'onUnload',
  10739. 'onPullDownRefresh',
  10740. 'onReachBottom',
  10741. 'onTabItemTap',
  10742. 'onAddToFavorites',
  10743. 'onShareTimeline',
  10744. 'onShareAppMessage',
  10745. 'onResize',
  10746. 'onPageScroll',
  10747. 'onNavigationBarButtonTap',
  10748. 'onBackPress',
  10749. 'onNavigationBarSearchInputChanged',
  10750. 'onNavigationBarSearchInputConfirmed',
  10751. 'onNavigationBarSearchInputClicked',
  10752. 'onUploadDouyinVideo',
  10753. 'onNFCReadMessage',
  10754. //Component
  10755. // 'onReady', // 兼容旧版本,应该移除该事件
  10756. 'onPageShow',
  10757. 'onPageHide',
  10758. 'onPageResize'
  10759. ];
  10760. function lifecycleMixin$1(Vue) {
  10761. //fixed vue-class-component
  10762. var oldExtend = Vue.extend;
  10763. Vue.extend = function(extendOptions) {
  10764. extendOptions = extendOptions || {};
  10765. var methods = extendOptions.methods;
  10766. if (methods) {
  10767. Object.keys(methods).forEach(function (methodName) {
  10768. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  10769. extendOptions[methodName] = methods[methodName];
  10770. delete methods[methodName];
  10771. }
  10772. });
  10773. }
  10774. return oldExtend.call(this, extendOptions)
  10775. };
  10776. var strategies = Vue.config.optionMergeStrategies;
  10777. var mergeHook = strategies.created;
  10778. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  10779. strategies[hook] = mergeHook;
  10780. });
  10781. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  10782. }
  10783. /* */
  10784. // install platform patch function
  10785. Vue.prototype.__patch__ = patch;
  10786. // public mount method
  10787. Vue.prototype.$mount = function(
  10788. el ,
  10789. hydrating
  10790. ) {
  10791. return mountComponent$1(this, el, hydrating)
  10792. };
  10793. lifecycleMixin$1(Vue);
  10794. internalMixin(Vue);
  10795. /* */
  10796. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  10797. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  10798. /***/ }),
  10799. /***/ 26:
  10800. /*!************************************************!*\
  10801. !*** D:/work/gitlabcode/product_wx/pages.json ***!
  10802. \************************************************/
  10803. /*! no static exports found */
  10804. /***/ (function(module, exports) {
  10805. /***/ }),
  10806. /***/ 27:
  10807. /*!*******************************************************************!*\
  10808. !*** ./node_modules/@dcloudio/uni-stat/dist/uni-cloud-stat.es.js ***!
  10809. \*******************************************************************/
  10810. /*! no static exports found */
  10811. /***/ (function(module, exports, __webpack_require__) {
  10812. /* WEBPACK VAR INJECTION */(function(uni, uniCloud) {var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ 33);
  10813. var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34);
  10814. var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35);
  10815. var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23);
  10816. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 24);
  10817. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  10818. var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11);
  10819. 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); }; }
  10820. 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; } }
  10821. /**
  10822. * 获取系统信息
  10823. */
  10824. var sys = uni.getSystemInfoSync();
  10825. // 访问开始即启动小程序,访问结束结分为:进入后台超过5min、在前台无任何操作超过30min、在新的来源打开小程序;
  10826. var STAT_VERSION = "4.24";
  10827. var STAT_URL = 'https://tongji.dcloud.io/uni/stat';
  10828. var STAT_H5_URL = 'https://tongji.dcloud.io/uni/stat.gif';
  10829. var PAGE_PVER_TIME = 1800; // 页面在前台无操作结束访问时间 单位s
  10830. var APP_PVER_TIME = 300; // 应用在后台结束访问时间 单位s
  10831. var OPERATING_TIME = 10; // 数据上报时间 单位s
  10832. var DIFF_TIME = 60 * 1000 * 60 * 24;
  10833. var appid = "__UNI__E97C301"; // 做应用隔离
  10834. var dbSet = function dbSet(name, value) {
  10835. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  10836. if (!data) {
  10837. data = {};
  10838. }
  10839. data[name] = value;
  10840. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  10841. };
  10842. var dbGet = function dbGet(name) {
  10843. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  10844. if (!data[name]) {
  10845. var dbdata = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  10846. if (!dbdata) {
  10847. dbdata = {};
  10848. }
  10849. if (!dbdata[name]) {
  10850. return undefined;
  10851. }
  10852. data[name] = dbdata[name];
  10853. }
  10854. return data[name];
  10855. };
  10856. var dbRemove = function dbRemove(name) {
  10857. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  10858. if (data[name]) {
  10859. delete data[name];
  10860. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  10861. } else {
  10862. data = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  10863. if (data[name]) {
  10864. delete data[name];
  10865. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  10866. }
  10867. }
  10868. };
  10869. // 获取 manifest.json 中统计配置
  10870. var uniStatisticsConfig = {"version":"2","enable":true};
  10871. var statConfig = {
  10872. appid: "__UNI__E97C301"
  10873. };
  10874. var titleJsons = {};
  10875. var debug = false || false;
  10876. // eslint-disable-next-line no-restricted-globals
  10877. var pagesTitle = __webpack_require__(/*! uni-pages?{"type":"style"} */ 40).default;
  10878. var pagesData = pagesTitle.pages;
  10879. for (var i in pagesData) {
  10880. var _style$navigationBar;
  10881. var style = pagesData[i];
  10882. var titleText =
  10883. // MP
  10884. style.navigationBarTitleText ||
  10885. // ali
  10886. style.defaultTitle || ( // H5 || App
  10887. (_style$navigationBar = style.navigationBar) === null || _style$navigationBar === void 0 ? void 0 : _style$navigationBar.titleText) || '';
  10888. if (titleText) {
  10889. titleJsons[i] = titleText;
  10890. }
  10891. }
  10892. // TODO 在云函数中获取,暂时注释
  10893. var UUID_KEY = '__DC_STAT_UUID';
  10894. var UUID_VALUE = '__DC_UUID_VALUE';
  10895. function getUuid() {
  10896. var uuid = '';
  10897. if (get_platform_name() === 'n') {
  10898. try {
  10899. uuid = plus.runtime.getDCloudId();
  10900. } catch (e) {
  10901. uuid = '';
  10902. }
  10903. return uuid;
  10904. }
  10905. try {
  10906. uuid = uni.getStorageSync(UUID_KEY);
  10907. } catch (e) {
  10908. uuid = UUID_VALUE;
  10909. }
  10910. if (!uuid) {
  10911. uuid = Date.now() + '' + Math.floor(Math.random() * 1e7);
  10912. try {
  10913. uni.setStorageSync(UUID_KEY, uuid);
  10914. } catch (e) {
  10915. uni.setStorageSync(UUID_KEY, UUID_VALUE);
  10916. }
  10917. }
  10918. return uuid;
  10919. }
  10920. var get_uuid = function get_uuid(statData) {
  10921. // 有可能不存在 deviceId(一般不存在就是出bug了),就自己生成一个
  10922. return sys.deviceId || getUuid();
  10923. };
  10924. /**
  10925. * 获取老版的 deviceid ,兼容以前的错误 deviceid
  10926. * @param {*} statData
  10927. * @returns
  10928. */
  10929. var get_odid = function get_odid(statData) {
  10930. var odid = '';
  10931. if (get_platform_name() === 'n') {
  10932. try {
  10933. odid = plus.device.uuid;
  10934. } catch (e) {
  10935. odid = '';
  10936. }
  10937. return odid;
  10938. }
  10939. return sys.deviceId || getUuid();
  10940. };
  10941. /**
  10942. * 获取配置信息 如 appid
  10943. */
  10944. var stat_config = statConfig;
  10945. var get_sgin = function get_sgin(statData) {
  10946. var arr = Object.keys(statData);
  10947. var sortArr = arr.sort();
  10948. var sgin = {};
  10949. var sginStr = '';
  10950. for (var i in sortArr) {
  10951. sgin[sortArr[i]] = statData[sortArr[i]];
  10952. sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&';
  10953. }
  10954. return {
  10955. sign: '',
  10956. options: sginStr.substr(0, sginStr.length - 1)
  10957. };
  10958. };
  10959. var get_encodeURIComponent_options = function get_encodeURIComponent_options(statData) {
  10960. var data = {};
  10961. for (var prop in statData) {
  10962. data[prop] = encodeURIComponent(statData[prop]);
  10963. }
  10964. return data;
  10965. };
  10966. /**
  10967. * 获取当前平台
  10968. * 移动端 : 'n',
  10969. * h5 : 'h5',
  10970. * 微信 : 'wx',
  10971. * 阿里 : 'ali',
  10972. * 百度 : 'bd',
  10973. * 头条 : 'tt',
  10974. * qq : 'qq',
  10975. * 快应用 : 'qn',
  10976. * 快手 : 'ks',
  10977. * 飞书 : 'lark',
  10978. * 快应用 : 'qw',
  10979. * 钉钉 : 'dt'
  10980. */
  10981. var get_platform_name = function get_platform_name() {
  10982. var _platformList;
  10983. // 苹果审核代码中禁止出现 alipay 字样 ,需要特殊处理一下
  10984. var aliArr = ['y', 'a', 'p', 'mp-ali'];
  10985. var platformList = (_platformList = {
  10986. app: 'n',
  10987. 'app-plus': 'n',
  10988. h5: 'h5',
  10989. 'mp-weixin': 'wx'
  10990. }, _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);
  10991. if (platformList["mp-weixin"] === 'ali') {
  10992. if (my && my.env) {
  10993. var clientName = my.env.clientName;
  10994. if (clientName === 'ap') return 'ali';
  10995. if (clientName === 'dingtalk') return 'dt';
  10996. // TODO 缺少 ali 下的其他平台
  10997. }
  10998. }
  10999. return platformList["mp-weixin"];
  11000. };
  11001. /**
  11002. * 获取小程序 appid
  11003. */
  11004. var get_pack_name = function get_pack_name() {
  11005. var packName = '';
  11006. if (get_platform_name() === 'wx' || get_platform_name() === 'qq') {
  11007. // 兼容微信小程序低版本基础库
  11008. if (uni.canIUse('getAccountInfoSync')) {
  11009. packName = uni.getAccountInfoSync().miniProgram.appId || '';
  11010. }
  11011. }
  11012. if (get_platform_name() === 'n') ;
  11013. return packName;
  11014. };
  11015. /**
  11016. * 应用版本
  11017. */
  11018. var get_version = function get_version() {
  11019. return get_platform_name() === 'n' ? plus.runtime.version : '';
  11020. };
  11021. /**
  11022. * 获取渠道
  11023. */
  11024. var get_channel = function get_channel() {
  11025. var platformName = get_platform_name();
  11026. var channel = '';
  11027. if (platformName === 'n') {
  11028. channel = plus.runtime.channel;
  11029. }
  11030. return channel;
  11031. };
  11032. /**
  11033. * 获取小程序场景值
  11034. * @param {Object} options 页面信息
  11035. */
  11036. var get_scene = function get_scene(options) {
  11037. var platformName = get_platform_name();
  11038. var scene = '';
  11039. if (options) {
  11040. return options;
  11041. }
  11042. if (platformName === 'wx') {
  11043. scene = uni.getLaunchOptionsSync().scene;
  11044. }
  11045. return scene;
  11046. };
  11047. /**
  11048. * 获取页面url,不包含参数
  11049. */
  11050. var get_route$1 = function get_route$1(pageVm) {
  11051. var _self = pageVm || get_page_vm();
  11052. if (get_platform_name() === 'bd') {
  11053. var mp_route = _self.$mp && _self.$mp.page && _self.$mp.page.is;
  11054. var scope_route = _self.$scope && _self.$scope.is;
  11055. return mp_route || scope_route || '';
  11056. } else {
  11057. return _self.route || _self.$scope && _self.$scope.route || _self.$mp && _self.$mp.page.route;
  11058. }
  11059. };
  11060. /**
  11061. * 获取页面url, 包含参数
  11062. */
  11063. var get_page_route = function get_page_route(pageVm) {
  11064. // 从 app 进入应用 ,没有 $page ,获取不到路由 ,需要获取页面 尝试从 getCurrentPages 获取也页面实例
  11065. // FIXME 尽量不使用 getCurrentPages ,大部分获取路由是从 onHide 获取 ,这时可以获取到,如果是 onload ,则可能获取不到,比如 百度
  11066. var page = pageVm && (pageVm.$page || pageVm.$scope && pageVm.$scope.$page);
  11067. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  11068. if (!page) return lastPageRoute || '';
  11069. // 如果找不到 fullPath 就取 route 的值
  11070. return page.fullPath === '/' ? page.route : page.fullPath || page.route;
  11071. };
  11072. /**
  11073. * 获取页面实例
  11074. */
  11075. var get_page_vm = function get_page_vm() {
  11076. var pages = getCurrentPages();
  11077. var $page = pages[pages.length - 1];
  11078. if (!$page) return null;
  11079. return $page.$vm;
  11080. };
  11081. /**
  11082. * 获取页面类型
  11083. */
  11084. var get_page_types = function get_page_types(self) {
  11085. // XXX 百度有问题 ,获取的都是 componet ,等待修复
  11086. if (self.mpType === 'page' || self.$mpType === 'page' || self.$mp && self.$mp.mpType === 'page' || self.$options.mpType === 'page') {
  11087. return 'page';
  11088. }
  11089. if (self.mpType === 'app' || self.$mpType === 'app' || self.$mp && self.$mp.mpType === 'app' || self.$options.mpType === 'app') {
  11090. return 'app';
  11091. }
  11092. return null;
  11093. };
  11094. /**
  11095. * 处理上报参数
  11096. * @param {Object} 需要处理的数据
  11097. */
  11098. var handle_data = function handle_data(statData) {
  11099. var firstArr = [];
  11100. var contentArr = [];
  11101. var lastArr = [];
  11102. var _loop = function _loop(_i) {
  11103. var rd = statData[_i];
  11104. rd.forEach(function (elm) {
  11105. var newData = '';
  11106. {
  11107. newData = elm;
  11108. }
  11109. if (_i === 0) {
  11110. firstArr.push(newData);
  11111. } else if (_i === 3) {
  11112. lastArr.push(newData);
  11113. } else {
  11114. contentArr.push(newData);
  11115. }
  11116. });
  11117. };
  11118. for (var _i in statData) {
  11119. _loop(_i);
  11120. }
  11121. firstArr.push.apply(firstArr, contentArr.concat(lastArr));
  11122. // 参数需要处理成字符串,方便上传
  11123. return JSON.stringify(firstArr);
  11124. };
  11125. /**
  11126. * 自定义事件参数校验
  11127. */
  11128. var calibration = function calibration(eventName, options) {
  11129. // login 、 share 、pay_success 、pay_fail 、register 、title
  11130. if (!eventName) {
  11131. console.error("uni.report Missing [eventName] parameter");
  11132. return true;
  11133. }
  11134. if (typeof eventName !== 'string') {
  11135. console.error("uni.report [eventName] Parameter type error, it can only be of type String");
  11136. return true;
  11137. }
  11138. if (eventName.length > 255) {
  11139. console.error("uni.report [eventName] Parameter length cannot be greater than 255");
  11140. return true;
  11141. }
  11142. if (typeof options !== 'string' && _typeof(options) !== 'object') {
  11143. console.error('uni.report [options] Parameter type error, Only supports String or Object type');
  11144. return true;
  11145. }
  11146. if (typeof options === 'string' && options.length > 255) {
  11147. console.error("uni.report [options] Parameter length cannot be greater than 255");
  11148. return true;
  11149. }
  11150. if (eventName === 'title' && typeof options !== 'string') {
  11151. console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String");
  11152. return true;
  11153. }
  11154. };
  11155. var get_page_name = function get_page_name(routepath) {
  11156. return titleJsons && titleJsons[routepath] || '';
  11157. };
  11158. var Report_Data_Time = 'Report_Data_Time';
  11159. var Report_Status = 'Report_Status';
  11160. var is_report_data = function is_report_data() {
  11161. return new Promise(function (resolve, reject) {
  11162. var start_time = '';
  11163. var end_time = new Date().getTime();
  11164. var diff_time = DIFF_TIME;
  11165. var report_status = 1;
  11166. try {
  11167. start_time = uni.getStorageSync(Report_Data_Time);
  11168. report_status = uni.getStorageSync(Report_Status);
  11169. } catch (e) {
  11170. start_time = '';
  11171. report_status = 1;
  11172. }
  11173. if (report_status === '') {
  11174. requestData(function (_ref) {
  11175. var enable = _ref.enable;
  11176. uni.setStorageSync(Report_Data_Time, end_time);
  11177. uni.setStorageSync(Report_Status, enable);
  11178. if (enable === 1) {
  11179. resolve();
  11180. }
  11181. });
  11182. return;
  11183. }
  11184. if (report_status === 1) {
  11185. resolve();
  11186. }
  11187. if (!start_time) {
  11188. uni.setStorageSync(Report_Data_Time, end_time);
  11189. start_time = end_time;
  11190. }
  11191. if (end_time - start_time > diff_time) {
  11192. requestData(function (_ref2) {
  11193. var enable = _ref2.enable;
  11194. uni.setStorageSync(Report_Data_Time, end_time);
  11195. uni.setStorageSync(Report_Status, enable);
  11196. });
  11197. }
  11198. });
  11199. };
  11200. var requestData = function requestData(done) {
  11201. var appid = "__UNI__E97C301";
  11202. var formData = {
  11203. usv: STAT_VERSION,
  11204. conf: JSON.stringify({
  11205. ak: appid
  11206. })
  11207. };
  11208. uni.request({
  11209. url: STAT_URL,
  11210. method: 'GET',
  11211. data: formData,
  11212. success: function success(res) {
  11213. var data = res.data;
  11214. if (data.ret === 0) {
  11215. typeof done === 'function' && done({
  11216. enable: data.enable
  11217. });
  11218. }
  11219. },
  11220. fail: function fail(e) {
  11221. var report_status_code = 1;
  11222. try {
  11223. report_status_code = uni.getStorageSync(Report_Status);
  11224. } catch (e) {
  11225. report_status_code = 1;
  11226. }
  11227. if (report_status_code === '') {
  11228. report_status_code = 1;
  11229. }
  11230. typeof done === 'function' && done({
  11231. enable: report_status_code
  11232. });
  11233. }
  11234. });
  11235. };
  11236. /**
  11237. * 获取uniCloud服务空间配置
  11238. * @returns {Object}
  11239. */
  11240. var uni_cloud_config = function uni_cloud_config() {
  11241. return {} || {};
  11242. };
  11243. /**
  11244. * 获取服务空间
  11245. * @param {*} config
  11246. * @returns
  11247. */
  11248. var get_space = function get_space(config) {
  11249. var uniCloudConfig = uni_cloud_config();
  11250. var spaceId = uniCloudConfig.spaceId,
  11251. provider = uniCloudConfig.provider,
  11252. clientSecret = uniCloudConfig.clientSecret,
  11253. secretKey = uniCloudConfig.secretKey,
  11254. secretId = uniCloudConfig.secretId;
  11255. var space_type = ['tcb', 'tencent', 'aliyun', 'alipay'];
  11256. var is_provider = space_type.indexOf(provider) !== -1;
  11257. var is_aliyun = provider === 'aliyun' && spaceId && clientSecret;
  11258. var is_tcb = (provider === 'tcb' || provider === 'tencent') && spaceId;
  11259. var is_alipay = provider === 'alipay' && spaceId && secretKey && secretId;
  11260. if (is_provider && (is_aliyun || is_tcb || is_alipay)) {
  11261. return uniCloudConfig;
  11262. } else {
  11263. if (config && config.spaceId) {
  11264. return config;
  11265. }
  11266. }
  11267. return null;
  11268. };
  11269. /**
  11270. * 是否开启 debug 模式
  11271. */
  11272. var is_debug = debug;
  11273. /**
  11274. * 日志输出
  11275. * @param {*} data
  11276. */
  11277. var log = function log(data, type) {
  11278. var msg_type = '';
  11279. switch (data.lt) {
  11280. case '1':
  11281. msg_type = '应用启动';
  11282. break;
  11283. case '3':
  11284. msg_type = '应用进入后台';
  11285. break;
  11286. case '11':
  11287. msg_type = '页面切换';
  11288. break;
  11289. case '21':
  11290. msg_type = '事件触发';
  11291. break;
  11292. case '31':
  11293. msg_type = '应用错误';
  11294. break;
  11295. case '101':
  11296. msg_type = 'PUSH';
  11297. break;
  11298. }
  11299. if (type) {
  11300. console.log("=== \u7EDF\u8BA1\u961F\u5217\u6570\u636E\u4E0A\u62A5 ===");
  11301. console.log(data);
  11302. console.log("=== \u4E0A\u62A5\u7ED3\u675F ===");
  11303. return;
  11304. }
  11305. if (msg_type) {
  11306. console.log("=== \u7EDF\u8BA1\u6570\u636E\u91C7\u96C6\uFF1A".concat(msg_type, " ==="));
  11307. console.log(data);
  11308. console.log("=== \u91C7\u96C6\u7ED3\u675F ===");
  11309. }
  11310. };
  11311. /**
  11312. * 获取上报时间间隔
  11313. * @param {*} defaultTime 默认上报间隔时间 单位s
  11314. */
  11315. var get_report_Interval = function get_report_Interval(defaultTime) {
  11316. var time = uniStatisticsConfig.reportInterval;
  11317. // 如果上报时间配置为0 相当于立即上报
  11318. if (Number(time) === 0) return 0;
  11319. time = time || defaultTime;
  11320. var reg = /(^[1-9]\d*$)/;
  11321. // 如果不是整数,则默认为上报间隔时间
  11322. if (!reg.test(time)) return defaultTime;
  11323. return Number(time);
  11324. };
  11325. /**
  11326. * 获取隐私协议配置
  11327. */
  11328. var is_push_clientid = function is_push_clientid() {
  11329. if (uniStatisticsConfig.collectItems) {
  11330. var ClientID = uniStatisticsConfig.collectItems.uniPushClientID;
  11331. return typeof ClientID === 'boolean' ? ClientID : false;
  11332. }
  11333. return false;
  11334. };
  11335. /**
  11336. * 是否上报页面数据
  11337. * @returns
  11338. */
  11339. var is_page_report = function is_page_report() {
  11340. if (uniStatisticsConfig.collectItems) {
  11341. var statPageLog = uniStatisticsConfig.collectItems.uniStatPageLog;
  11342. // 如果字段不存在返回 true , 如果是boolean 值按原值返回,如果是其他类型 返回false
  11343. if (statPageLog === undefined) return true;
  11344. return typeof statPageLog === 'boolean' ? statPageLog : true;
  11345. }
  11346. return true;
  11347. };
  11348. /**
  11349. * 是否已处理设备 DeviceId
  11350. * 如果值为 1 则表示已处理
  11351. */
  11352. var IS_HANDLE_DEVECE_ID = 'is_handle_device_id';
  11353. var is_handle_device = function is_handle_device() {
  11354. var isHandleDevice = dbGet(IS_HANDLE_DEVECE_ID) || '';
  11355. dbSet(IS_HANDLE_DEVECE_ID, '1');
  11356. return isHandleDevice === '1';
  11357. };
  11358. // 首次访问时间
  11359. var FIRST_VISIT_TIME_KEY = '__first__visit__time';
  11360. // 最后访问时间
  11361. var LAST_VISIT_TIME_KEY = '__last__visit__time';
  11362. /**
  11363. * 获取当前时间
  11364. */
  11365. var get_time = function get_time() {
  11366. return parseInt(new Date().getTime() / 1000);
  11367. };
  11368. /**
  11369. * 获取首次访问时间
  11370. */
  11371. var get_first_visit_time = function get_first_visit_time() {
  11372. var timeStorge = dbGet(FIRST_VISIT_TIME_KEY);
  11373. var time = 0;
  11374. if (timeStorge) {
  11375. time = timeStorge;
  11376. } else {
  11377. time = get_time();
  11378. dbSet(FIRST_VISIT_TIME_KEY, time);
  11379. // 首次访问需要 将最后访问时间置 0
  11380. dbRemove(LAST_VISIT_TIME_KEY);
  11381. }
  11382. return time;
  11383. };
  11384. /**
  11385. * 最后访问时间
  11386. */
  11387. var get_last_visit_time = function get_last_visit_time() {
  11388. var timeStorge = dbGet(LAST_VISIT_TIME_KEY);
  11389. var time = 0;
  11390. if (timeStorge) {
  11391. time = timeStorge;
  11392. }
  11393. dbSet(LAST_VISIT_TIME_KEY, get_time());
  11394. return time;
  11395. };
  11396. // 页面停留时间记录key
  11397. var PAGE_RESIDENCE_TIME = '__page__residence__time';
  11398. var First_Page_Residence_Time = 0;
  11399. var Last_Page_Residence_Time = 0;
  11400. /**
  11401. * 设置页面停留时间
  11402. */
  11403. var set_page_residence_time = function set_page_residence_time() {
  11404. First_Page_Residence_Time = get_time();
  11405. dbSet(PAGE_RESIDENCE_TIME, First_Page_Residence_Time);
  11406. return First_Page_Residence_Time;
  11407. };
  11408. /**
  11409. * 获取页面停留时间
  11410. */
  11411. var get_page_residence_time = function get_page_residence_time() {
  11412. Last_Page_Residence_Time = get_time();
  11413. First_Page_Residence_Time = dbGet(PAGE_RESIDENCE_TIME);
  11414. return Last_Page_Residence_Time - First_Page_Residence_Time;
  11415. };
  11416. /**
  11417. * 获取总访问次数
  11418. */
  11419. var TOTAL_VISIT_COUNT = '__total__visit__count';
  11420. var get_total_visit_count = function get_total_visit_count() {
  11421. var timeStorge = dbGet(TOTAL_VISIT_COUNT);
  11422. var count = 1;
  11423. if (timeStorge) {
  11424. count = timeStorge;
  11425. count++;
  11426. }
  11427. dbSet(TOTAL_VISIT_COUNT, count);
  11428. return count;
  11429. };
  11430. var FIRST_TIME = '__first_time';
  11431. /**
  11432. * 设置页面首次访问时间,用户获取页面/应用停留时常
  11433. */
  11434. var set_first_time = function set_first_time() {
  11435. // 获取当前时间 ,以下代码获取到是毫秒级时间戳 ,实际上用到是秒级时间戳,所以需要除以1000
  11436. // const time = new Date().getTime()
  11437. var time = get_time();
  11438. var timeStorge = dbSet(FIRST_TIME, time);
  11439. return timeStorge;
  11440. };
  11441. /**
  11442. * 获取最后一次时间 ,暂时用不到,直接获取当前时间即可
  11443. */
  11444. // export const get_last_time = () => {
  11445. // let time = new Date().getTime()
  11446. // Set__Last__Time = time
  11447. // return time
  11448. // }
  11449. /**
  11450. * 获取页面 \ 应用停留时间
  11451. */
  11452. var get_residence_time = function get_residence_time(type) {
  11453. var residenceTime = 0;
  11454. var first_time = dbGet(FIRST_TIME);
  11455. var last_time = get_time();
  11456. if (first_time !== 0) {
  11457. residenceTime = last_time - first_time;
  11458. }
  11459. // 将毫秒级时间戳转换为秒级时间戳,因为直接获取的是秒级时间戳,所以不需要转换
  11460. // residenceTime = parseInt(residenceTime / 1000)
  11461. residenceTime = residenceTime < 1 ? 1 : residenceTime;
  11462. if (type === 'app') {
  11463. var overtime = residenceTime > APP_PVER_TIME ? true : false;
  11464. return {
  11465. residenceTime: residenceTime,
  11466. overtime: overtime
  11467. };
  11468. }
  11469. if (type === 'page') {
  11470. var _overtime = residenceTime > PAGE_PVER_TIME ? true : false;
  11471. return {
  11472. residenceTime: residenceTime,
  11473. overtime: _overtime
  11474. };
  11475. }
  11476. return {
  11477. residenceTime: residenceTime
  11478. };
  11479. };
  11480. var eport_Interval = get_report_Interval(OPERATING_TIME);
  11481. // 统计数据默认值
  11482. var statData = {
  11483. uuid: get_uuid(),
  11484. // 设备标识
  11485. ak: stat_config.appid,
  11486. // uni-app 应用 Appid
  11487. p: sys.platform === 'android' ? 'a' : 'i',
  11488. // 手机系统
  11489. ut: get_platform_name(),
  11490. // 平台类型
  11491. mpn: get_pack_name(),
  11492. // 原生平台包名、小程序 appid
  11493. usv: STAT_VERSION,
  11494. // 统计 sdk 版本
  11495. v: get_version(),
  11496. // 应用版本,仅app
  11497. ch: get_channel(),
  11498. // 渠道信息
  11499. cn: '',
  11500. // 国家
  11501. pn: '',
  11502. // 省份
  11503. ct: '',
  11504. // 城市
  11505. t: get_time(),
  11506. // 上报数据时的时间戳
  11507. tt: '',
  11508. brand: sys.brand || '',
  11509. // 手机品牌
  11510. md: sys.model,
  11511. // 手机型号
  11512. sv: sys.system.replace(/(Android|iOS)\s/, ''),
  11513. // 手机系统版本
  11514. mpsdk: sys.SDKVersion || '',
  11515. // x程序 sdk version
  11516. mpv: sys.version || '',
  11517. // 小程序平台版本 ,如微信、支付宝
  11518. lang: sys.language,
  11519. // 语言
  11520. pr: sys.pixelRatio,
  11521. // pixelRatio 设备像素比
  11522. ww: sys.windowWidth,
  11523. // windowWidth 可使用窗口宽度
  11524. wh: sys.windowHeight,
  11525. // windowHeight 可使用窗口高度
  11526. sw: sys.screenWidth,
  11527. // screenWidth 屏幕宽度
  11528. sh: sys.screenHeight // screenHeight 屏幕高度
  11529. };
  11530. var Report = /*#__PURE__*/function () {
  11531. "use strict";
  11532. function Report() {
  11533. _classCallCheck(this, Report);
  11534. // 页面实例
  11535. this.self = '';
  11536. // 进入应用标识
  11537. this.__licationShow = false;
  11538. // 离开应用标识
  11539. this.__licationHide = false;
  11540. // 统计默认值
  11541. this.statData = statData;
  11542. // 标题默认值
  11543. this._navigationBarTitle = {
  11544. config: '',
  11545. page: '',
  11546. report: '',
  11547. lt: ''
  11548. };
  11549. // 页面参数
  11550. this._query = {};
  11551. // 页面最后停留页面的 url
  11552. // this._lastPageRoute = ''
  11553. // 注册拦截器
  11554. var registerInterceptor = typeof uni.addInterceptor === 'function';
  11555. if (registerInterceptor) {
  11556. this.addInterceptorInit();
  11557. this.interceptLogin();
  11558. this.interceptShare(true);
  11559. this.interceptRequestPayment();
  11560. }
  11561. }
  11562. _createClass(Report, [{
  11563. key: "addInterceptorInit",
  11564. value: function addInterceptorInit() {
  11565. var self = this;
  11566. uni.addInterceptor('setNavigationBarTitle', {
  11567. invoke: function invoke(args) {
  11568. self._navigationBarTitle.page = args.title;
  11569. }
  11570. });
  11571. }
  11572. }, {
  11573. key: "interceptLogin",
  11574. value: function interceptLogin() {
  11575. var self = this;
  11576. uni.addInterceptor('login', {
  11577. complete: function complete() {
  11578. self._login();
  11579. }
  11580. });
  11581. }
  11582. }, {
  11583. key: "interceptShare",
  11584. value: function interceptShare(type) {
  11585. var self = this;
  11586. if (!type) {
  11587. self._share();
  11588. return;
  11589. }
  11590. uni.addInterceptor('share', {
  11591. success: function success() {
  11592. self._share();
  11593. },
  11594. fail: function fail() {
  11595. self._share();
  11596. }
  11597. });
  11598. }
  11599. }, {
  11600. key: "interceptRequestPayment",
  11601. value: function interceptRequestPayment() {
  11602. var self = this;
  11603. uni.addInterceptor('requestPayment', {
  11604. success: function success() {
  11605. self._payment('pay_success');
  11606. },
  11607. fail: function fail() {
  11608. self._payment('pay_fail');
  11609. }
  11610. });
  11611. }
  11612. }, {
  11613. key: "_login",
  11614. value: function _login() {
  11615. this.sendEventRequest({
  11616. key: 'login'
  11617. }, 0);
  11618. }
  11619. }, {
  11620. key: "_share",
  11621. value: function _share() {
  11622. this.sendEventRequest({
  11623. key: 'share'
  11624. }, 0);
  11625. }
  11626. }, {
  11627. key: "_payment",
  11628. value: function _payment(key) {
  11629. this.sendEventRequest({
  11630. key: key
  11631. }, 0);
  11632. }
  11633. /**
  11634. * 进入应用触发
  11635. */
  11636. }, {
  11637. key: "applicationShow",
  11638. value: function applicationShow() {
  11639. // 通过 __licationHide 判断保证是进入后台后在次进入应用,避免重复上报数据
  11640. if (this.__licationHide) {
  11641. var time = get_residence_time('app');
  11642. // 需要判断进入后台是否超过时限 ,默认是 30min ,是的话需要执行进入应用的上报
  11643. if (time.overtime) {
  11644. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  11645. var options = {
  11646. path: lastPageRoute,
  11647. scene: this.statData.sc,
  11648. cst: 2
  11649. };
  11650. this.sendReportRequest(options);
  11651. }
  11652. // 状态重置
  11653. this.__licationHide = false;
  11654. }
  11655. }
  11656. /**
  11657. * 离开应用触发
  11658. * @param {Object} self
  11659. * @param {Object} type
  11660. */
  11661. }, {
  11662. key: "applicationHide",
  11663. value: function applicationHide(self, type) {
  11664. if (!self) {
  11665. // 表示应用切换到后台 ,此时需要从页面栈获取页面实例
  11666. self = get_page_vm();
  11667. }
  11668. // 进入应用后台保存状态,方便进入前台后判断是否上报应用数据
  11669. this.__licationHide = true;
  11670. var time = get_residence_time();
  11671. var route = get_page_route(self);
  11672. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  11673. this.sendHideRequest({
  11674. urlref: route,
  11675. urlref_ts: time.residenceTime
  11676. }, type);
  11677. // 更新页面首次访问时间
  11678. set_first_time();
  11679. }
  11680. /**
  11681. * 进入页面触发
  11682. */
  11683. }, {
  11684. key: "pageShow",
  11685. value: function pageShow(self) {
  11686. // 清空值 ,初始化 ,避免污染后面的上报数据
  11687. this._navigationBarTitle = {
  11688. config: '',
  11689. page: '',
  11690. report: '',
  11691. lt: ''
  11692. };
  11693. var route = get_page_route(self);
  11694. var routepath = get_route$1(self);
  11695. this._navigationBarTitle.config = get_page_name(routepath);
  11696. // 表示应用触发 ,页面切换不触发之后的逻辑
  11697. if (this.__licationShow) {
  11698. // 更新页面首次访问时间
  11699. set_first_time();
  11700. // this._lastPageRoute = route
  11701. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  11702. this.__licationShow = false;
  11703. return;
  11704. }
  11705. var time = get_residence_time('page');
  11706. // 停留时间
  11707. if (time.overtime) {
  11708. var options = {
  11709. path: route,
  11710. scene: this.statData.sc,
  11711. cst: 3
  11712. };
  11713. this.sendReportRequest(options);
  11714. }
  11715. // 更新页面首次访问时间
  11716. set_first_time();
  11717. }
  11718. /**
  11719. * 离开页面触发
  11720. */
  11721. }, {
  11722. key: "pageHide",
  11723. value: function pageHide(self) {
  11724. if (!this.__licationHide) {
  11725. var time = get_residence_time('page');
  11726. var route = get_page_route(self);
  11727. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  11728. if (!lastPageRoute) {
  11729. lastPageRoute = route;
  11730. }
  11731. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  11732. this.sendPageRequest({
  11733. url: route,
  11734. urlref: lastPageRoute,
  11735. urlref_ts: time.residenceTime
  11736. });
  11737. // this._lastPageRoute = route
  11738. return;
  11739. }
  11740. }
  11741. /**
  11742. * 发送请求,应用维度上报
  11743. * @param {Object} options 页面信息
  11744. * @param {Boolean} type 是否立即上报
  11745. */
  11746. }, {
  11747. key: "sendReportRequest",
  11748. value: function sendReportRequest(options, type) {
  11749. this._navigationBarTitle.lt = '1';
  11750. this._navigationBarTitle.config = get_page_name(options.path);
  11751. var is_opt = options.query && JSON.stringify(options.query) !== '{}';
  11752. var query = is_opt ? '?' + JSON.stringify(options.query) : '';
  11753. var last_time = get_last_visit_time();
  11754. // 非老用户
  11755. if (last_time !== 0 || !last_time) {
  11756. var odid = get_odid();
  11757. // 2.0 处理规则
  11758. {
  11759. var have_device = is_handle_device();
  11760. // 如果没有上报过设备信息 ,则需要上报设备信息
  11761. if (!have_device) {
  11762. this.statData.odid = odid;
  11763. }
  11764. }
  11765. }
  11766. Object.assign(this.statData, {
  11767. lt: '1',
  11768. url: options.path + query || '',
  11769. t: get_time(),
  11770. sc: get_scene(options.scene),
  11771. fvts: get_first_visit_time(),
  11772. lvts: last_time,
  11773. tvc: get_total_visit_count(),
  11774. // create session type 上报类型 ,1 应用进入 2.后台30min进入 3.页面30min进入
  11775. cst: options.cst || 1
  11776. });
  11777. if (get_platform_name() === 'n') {
  11778. this.getProperty(type);
  11779. } else {
  11780. this.getNetworkInfo(type);
  11781. }
  11782. }
  11783. /**
  11784. * 发送请求,页面维度上报
  11785. * @param {Object} opt
  11786. */
  11787. }, {
  11788. key: "sendPageRequest",
  11789. value: function sendPageRequest(opt) {
  11790. var url = opt.url,
  11791. urlref = opt.urlref,
  11792. urlref_ts = opt.urlref_ts;
  11793. this._navigationBarTitle.lt = '11';
  11794. var options = {
  11795. ak: this.statData.ak,
  11796. uuid: this.statData.uuid,
  11797. p: this.statData.p,
  11798. lt: '11',
  11799. ut: this.statData.ut,
  11800. url: url,
  11801. tt: this.statData.tt,
  11802. urlref: urlref,
  11803. urlref_ts: urlref_ts,
  11804. ch: this.statData.ch,
  11805. usv: this.statData.usv,
  11806. t: get_time()
  11807. };
  11808. this.request(options);
  11809. }
  11810. /**
  11811. * 进入后台上报数据
  11812. * @param {Object} opt
  11813. * @param {Object} type
  11814. */
  11815. }, {
  11816. key: "sendHideRequest",
  11817. value: function sendHideRequest(opt, type) {
  11818. var urlref = opt.urlref,
  11819. urlref_ts = opt.urlref_ts;
  11820. var options = {
  11821. ak: this.statData.ak,
  11822. uuid: this.statData.uuid,
  11823. p: this.statData.p,
  11824. lt: '3',
  11825. ut: this.statData.ut,
  11826. urlref: urlref,
  11827. urlref_ts: urlref_ts,
  11828. ch: this.statData.ch,
  11829. usv: this.statData.usv,
  11830. t: get_time()
  11831. };
  11832. this.request(options, type);
  11833. }
  11834. /**
  11835. * 自定义事件上报
  11836. */
  11837. }, {
  11838. key: "sendEventRequest",
  11839. value: function sendEventRequest() {
  11840. var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  11841. _ref3$key = _ref3.key,
  11842. key = _ref3$key === void 0 ? '' : _ref3$key,
  11843. _ref3$value = _ref3.value,
  11844. value = _ref3$value === void 0 ? '' : _ref3$value;
  11845. var routepath = '';
  11846. try {
  11847. routepath = get_route$1();
  11848. } catch (error) {
  11849. var launch_options = dbGet('__launch_options');
  11850. routepath = launch_options.path;
  11851. }
  11852. this._navigationBarTitle.config = get_page_name(routepath);
  11853. this._navigationBarTitle.lt = '21';
  11854. var options = {
  11855. ak: this.statData.ak,
  11856. uuid: this.statData.uuid,
  11857. p: this.statData.p,
  11858. lt: '21',
  11859. ut: this.statData.ut,
  11860. url: routepath,
  11861. ch: this.statData.ch,
  11862. e_n: key,
  11863. e_v: _typeof(value) === 'object' ? JSON.stringify(value) : value.toString(),
  11864. usv: this.statData.usv,
  11865. t: get_time()
  11866. };
  11867. this.request(options);
  11868. }
  11869. }, {
  11870. key: "sendPushRequest",
  11871. value: function sendPushRequest(options, cid) {
  11872. var _this = this;
  11873. var time = get_time();
  11874. var statData = {
  11875. lt: '101',
  11876. cid: cid,
  11877. t: time,
  11878. ut: this.statData.ut
  11879. };
  11880. // debug 打印打点信息
  11881. if (is_debug) {
  11882. log(statData);
  11883. }
  11884. var stat_data = handle_data({
  11885. 101: [statData]
  11886. });
  11887. var optionsData = {
  11888. usv: STAT_VERSION,
  11889. //统计 SDK 版本号
  11890. t: time,
  11891. //发送请求时的时间戮
  11892. requests: stat_data
  11893. };
  11894. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  11895. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  11896. setTimeout(function () {
  11897. _this.sendRequest(optionsData);
  11898. }, 200);
  11899. return;
  11900. }
  11901. this.sendRequest(optionsData);
  11902. }
  11903. /**
  11904. * 获取wgt资源版本
  11905. */
  11906. }, {
  11907. key: "getProperty",
  11908. value: function getProperty(type) {
  11909. var _this2 = this;
  11910. plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
  11911. _this2.statData.v = wgtinfo.version || '';
  11912. _this2.getNetworkInfo(type);
  11913. });
  11914. }
  11915. /**
  11916. * 获取网络信息
  11917. */
  11918. }, {
  11919. key: "getNetworkInfo",
  11920. value: function getNetworkInfo(type) {
  11921. var _this3 = this;
  11922. uni.getNetworkType({
  11923. success: function success(result) {
  11924. _this3.statData.net = result.networkType;
  11925. _this3.getLocation(type);
  11926. }
  11927. });
  11928. }
  11929. /**
  11930. * 获取位置信息
  11931. */
  11932. }, {
  11933. key: "getLocation",
  11934. value: function getLocation(type) {
  11935. var _this4 = this;
  11936. if (stat_config.getLocation) {
  11937. uni.getLocation({
  11938. type: 'wgs84',
  11939. geocode: true,
  11940. success: function success(result) {
  11941. if (result.address) {
  11942. _this4.statData.cn = result.address.country;
  11943. _this4.statData.pn = result.address.province;
  11944. _this4.statData.ct = result.address.city;
  11945. }
  11946. _this4.statData.lat = result.latitude;
  11947. _this4.statData.lng = result.longitude;
  11948. _this4.request(_this4.statData, type);
  11949. }
  11950. });
  11951. } else {
  11952. this.statData.lat = 0;
  11953. this.statData.lng = 0;
  11954. this.request(this.statData, type);
  11955. }
  11956. }
  11957. /**
  11958. * 发送请求
  11959. * @param {Object} data 上报数据
  11960. * @param {Object} type 类型
  11961. */
  11962. }, {
  11963. key: "request",
  11964. value: function request(data, type) {
  11965. var _this5 = this;
  11966. var time = get_time();
  11967. var title = this._navigationBarTitle;
  11968. Object.assign(data, {
  11969. ttn: title.page,
  11970. ttpj: title.config,
  11971. ttc: title.report
  11972. });
  11973. var uniStatData = dbGet('__UNI__STAT__DATA') || {};
  11974. if (!uniStatData[data.lt]) {
  11975. uniStatData[data.lt] = [];
  11976. }
  11977. // 加入队列
  11978. uniStatData[data.lt].push(data);
  11979. dbSet('__UNI__STAT__DATA', uniStatData);
  11980. var page_residence_time = get_page_residence_time();
  11981. // debug 打印打点信息
  11982. if (is_debug) {
  11983. log(data);
  11984. }
  11985. // 判断时候到达上报时间 ,默认 10 秒上报
  11986. if (page_residence_time < eport_Interval && !type) return;
  11987. // 时间超过,重新获取时间戳
  11988. set_page_residence_time();
  11989. var stat_data = handle_data(uniStatData);
  11990. var optionsData = {
  11991. usv: STAT_VERSION,
  11992. //统计 SDK 版本号
  11993. t: time,
  11994. //发送请求时的时间戮
  11995. requests: stat_data
  11996. };
  11997. // 重置队列
  11998. dbRemove('__UNI__STAT__DATA');
  11999. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  12000. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  12001. setTimeout(function () {
  12002. _this5.sendRequest(optionsData);
  12003. }, 200);
  12004. return;
  12005. }
  12006. this.sendRequest(optionsData);
  12007. }
  12008. }, {
  12009. key: "getIsReportData",
  12010. value: function getIsReportData() {
  12011. return is_report_data();
  12012. }
  12013. /**
  12014. * 数据上报
  12015. * @param {Object} optionsData 需要上报的数据
  12016. */
  12017. }, {
  12018. key: "sendRequest",
  12019. value: function sendRequest(optionsData) {
  12020. {
  12021. if (!uni.__stat_uniCloud_space) {
  12022. console.error('应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.');
  12023. return;
  12024. }
  12025. var uniCloudObj = uni.__stat_uniCloud_space.importObject('uni-stat-receiver', {
  12026. customUI: true
  12027. });
  12028. uniCloudObj.report(optionsData).then(function () {
  12029. if (is_debug) {
  12030. log(optionsData, true);
  12031. }
  12032. }).catch(function (err) {
  12033. if (is_debug) {
  12034. console.warn('=== 统计上报错误');
  12035. console.error(err);
  12036. }
  12037. });
  12038. }
  12039. }
  12040. /**
  12041. * h5 请求
  12042. */
  12043. }, {
  12044. key: "imageRequest",
  12045. value: function imageRequest(data) {
  12046. this.getIsReportData().then(function () {
  12047. var image = new Image();
  12048. var options = get_sgin(get_encodeURIComponent_options(data)).options;
  12049. image.src = STAT_H5_URL + '?' + options;
  12050. if (is_debug) {
  12051. log(data, true);
  12052. }
  12053. });
  12054. }
  12055. }, {
  12056. key: "sendEvent",
  12057. value: function sendEvent(key, value) {
  12058. // 校验 type 参数
  12059. if (calibration(key, value)) return;
  12060. if (key === 'title') {
  12061. this._navigationBarTitle.report = value;
  12062. return;
  12063. }
  12064. this.sendEventRequest({
  12065. key: key,
  12066. value: _typeof(value) === 'object' ? JSON.stringify(value) : value
  12067. }, 1);
  12068. }
  12069. }]);
  12070. return Report;
  12071. }();
  12072. var Stat = /*#__PURE__*/function (_Report) {
  12073. "use strict";
  12074. _inherits(Stat, _Report);
  12075. var _super = _createSuper(Stat);
  12076. function Stat() {
  12077. _classCallCheck(this, Stat);
  12078. return _super.call(this);
  12079. }
  12080. /**
  12081. * 获取推送id
  12082. */
  12083. _createClass(Stat, [{
  12084. key: "pushEvent",
  12085. value: function pushEvent(options) {
  12086. var _this6 = this;
  12087. var ClientID = is_push_clientid();
  12088. if (uni.getPushClientId && ClientID) {
  12089. uni.getPushClientId({
  12090. success: function success(res) {
  12091. var cid = res.cid || false;
  12092. // 只有获取到才会上传
  12093. if (cid) {
  12094. _this6.sendPushRequest(options, cid);
  12095. }
  12096. }
  12097. });
  12098. }
  12099. }
  12100. /**
  12101. * 进入应用
  12102. * @param {Object} options 页面参数
  12103. * @param {Object} self 当前页面实例
  12104. */
  12105. }, {
  12106. key: "launch",
  12107. value: function launch(options, self) {
  12108. // 初始化页面停留时间 start
  12109. set_page_residence_time();
  12110. this.__licationShow = true;
  12111. dbSet('__launch_options', options);
  12112. // 应用初始上报参数为1
  12113. options.cst = 1;
  12114. this.sendReportRequest(options, true);
  12115. }
  12116. }, {
  12117. key: "load",
  12118. value: function load(options, self) {
  12119. this.self = self;
  12120. this._query = options;
  12121. }
  12122. }, {
  12123. key: "appHide",
  12124. value: function appHide(self) {
  12125. this.applicationHide(self, true);
  12126. }
  12127. }, {
  12128. key: "appShow",
  12129. value: function appShow(self) {
  12130. this.applicationShow(self);
  12131. }
  12132. }, {
  12133. key: "show",
  12134. value: function show(self) {
  12135. this.self = self;
  12136. if (get_page_types(self) === 'page') {
  12137. var isPageReport = is_page_report();
  12138. if (isPageReport) {
  12139. this.pageShow(self);
  12140. }
  12141. }
  12142. if (get_page_types(self) === 'app') {
  12143. this.appShow();
  12144. }
  12145. }
  12146. }, {
  12147. key: "hide",
  12148. value: function hide(self) {
  12149. this.self = self;
  12150. if (get_page_types(self) === 'page') {
  12151. var isPageReport = is_page_report();
  12152. if (isPageReport) {
  12153. this.pageHide(self);
  12154. }
  12155. }
  12156. if (get_page_types(self) === 'app') {
  12157. this.appHide();
  12158. }
  12159. }
  12160. }, {
  12161. key: "error",
  12162. value: function error(em) {
  12163. // 开发工具内不上报错误
  12164. // if (this._platform === 'devtools') {
  12165. // if (process.env.NODE_ENV === 'development') {
  12166. // console.info('当前运行环境为开发者工具,不上报数据。')
  12167. // return
  12168. // }
  12169. // }
  12170. var emVal = '';
  12171. if (!em.message) {
  12172. emVal = JSON.stringify(em);
  12173. } else {
  12174. emVal = em.stack;
  12175. }
  12176. var route = '';
  12177. try {
  12178. route = get_route();
  12179. } catch (e) {
  12180. // 未获取到页面路径
  12181. route = '';
  12182. }
  12183. var options = {
  12184. ak: this.statData.ak,
  12185. uuid: this.statData.uuid,
  12186. p: this.statData.p,
  12187. lt: '31',
  12188. url: route,
  12189. ut: this.statData.ut,
  12190. ch: this.statData.ch,
  12191. mpsdk: this.statData.mpsdk,
  12192. mpv: this.statData.mpv,
  12193. v: this.statData.v,
  12194. em: emVal,
  12195. usv: this.statData.usv,
  12196. t: parseInt(new Date().getTime() / 1000)
  12197. };
  12198. this.request(options);
  12199. }
  12200. }], [{
  12201. key: "getInstance",
  12202. value: function getInstance() {
  12203. if (!uni.__stat_instance) {
  12204. uni.__stat_instance = new Stat();
  12205. }
  12206. // 2.0 init 服务空间
  12207. {
  12208. var space = get_space(uniCloud.config);
  12209. if (!uni.__stat_uniCloud_space) {
  12210. // 判断不为空对象
  12211. if (space && Object.keys(space).length !== 0) {
  12212. var spaceData = {
  12213. provider: space.provider,
  12214. spaceId: space.spaceId,
  12215. clientSecret: space.clientSecret
  12216. };
  12217. if (space.endpoint) {
  12218. spaceData.endpoint = space.endpoint;
  12219. }
  12220. if (space.provider === 'alipay') {
  12221. spaceData.secretKey = space.secretKey;
  12222. spaceData.accessKey = space.accessKey || space.secretId;
  12223. spaceData.spaceAppId = space.spaceAppId || space.appId;
  12224. }
  12225. uni.__stat_uniCloud_space = uniCloud.init(spaceData);
  12226. // console.log(
  12227. // '=== 当前绑定的统计服务空间spaceId:' +
  12228. // uni.__stat_uniCloud_space.config.spaceId
  12229. // )
  12230. } else {
  12231. console.error('应用未关联服务空间,请在uniCloud目录右键关联服务空间');
  12232. }
  12233. }
  12234. }
  12235. return uni.__stat_instance;
  12236. }
  12237. }]);
  12238. return Stat;
  12239. }(Report);
  12240. var Stat$1 = Stat;
  12241. var stat = Stat$1.getInstance();
  12242. // 用于判断是隐藏页面还是卸载页面
  12243. var isHide = false;
  12244. var lifecycle = {
  12245. onLaunch: function onLaunch(options) {
  12246. // 进入应用上报数据
  12247. stat.launch(options, this);
  12248. // 上报push推送id
  12249. stat.pushEvent(options);
  12250. },
  12251. onLoad: function onLoad(options) {
  12252. stat.load(options, this);
  12253. // 重写分享,获取分享上报事件
  12254. if (this.$scope && this.$scope.onShareAppMessage) {
  12255. var oldShareAppMessage = this.$scope.onShareAppMessage;
  12256. this.$scope.onShareAppMessage = function (options) {
  12257. stat.interceptShare(false);
  12258. return oldShareAppMessage.call(this, options);
  12259. };
  12260. }
  12261. },
  12262. onShow: function onShow() {
  12263. isHide = false;
  12264. stat.show(this);
  12265. },
  12266. onHide: function onHide() {
  12267. isHide = true;
  12268. stat.hide(this);
  12269. },
  12270. onUnload: function onUnload() {
  12271. if (isHide) {
  12272. isHide = false;
  12273. return;
  12274. }
  12275. stat.hide(this);
  12276. },
  12277. onError: function onError(e) {
  12278. stat.error(e);
  12279. }
  12280. };
  12281. // 加载统计代码
  12282. function load_stat() {
  12283. // eslint-disable-next-line no-restricted-globals
  12284. var Vue = __webpack_require__(/*! vue */ 25);
  12285. (Vue.default || Vue).mixin(lifecycle);
  12286. uni.report = function (type, options) {
  12287. stat.sendEvent(type, options);
  12288. };
  12289. }
  12290. function main() {
  12291. if (is_debug) {
  12292. {
  12293. console.log('=== uni统计开启,version:2.0 ===');
  12294. }
  12295. load_stat();
  12296. } else {
  12297. if (true) {
  12298. uni.report = function (type, options) {};
  12299. } else {}
  12300. }
  12301. }
  12302. main();
  12303. /* 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"]))
  12304. /***/ }),
  12305. /***/ 28:
  12306. /*!************************************************************************************!*\
  12307. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  12308. \************************************************************************************/
  12309. /*! no static exports found */
  12310. /***/ (function(module, exports, __webpack_require__) {
  12311. "use strict";
  12312. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  12313. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12314. Object.defineProperty(exports, "__esModule", {
  12315. value: true
  12316. });
  12317. exports.default = void 0;
  12318. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  12319. var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 31));
  12320. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  12321. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12322. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  12323. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  12324. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  12325. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  12326. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  12327. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  12328. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 36));
  12329. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12330. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12331. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 38));
  12332. 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(_e33) { throw _e33; }, 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(_e34) { didErr = true; err = _e34; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  12333. 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); }
  12334. 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; }
  12335. 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; }
  12336. 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; }
  12337. 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); }; }
  12338. 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; } }
  12339. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  12340. function t(e) {
  12341. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  12342. }
  12343. function n(e, t, n) {
  12344. return e(n = {
  12345. path: t,
  12346. exports: {},
  12347. require: function require(e, t) {
  12348. return function () {
  12349. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  12350. }(null == t && n.path);
  12351. }
  12352. }, n.exports), n.exports;
  12353. }
  12354. var s = n(function (e, t) {
  12355. var n;
  12356. e.exports = (n = n || function (e, t) {
  12357. var n = Object.create || function () {
  12358. function e() {}
  12359. return function (t) {
  12360. var n;
  12361. return e.prototype = t, n = new e(), e.prototype = null, n;
  12362. };
  12363. }(),
  12364. s = {},
  12365. r = s.lib = {},
  12366. i = r.Base = {
  12367. extend: function extend(e) {
  12368. var t = n(this);
  12369. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  12370. t.$super.init.apply(this, arguments);
  12371. }), t.init.prototype = t, t.$super = this, t;
  12372. },
  12373. create: function create() {
  12374. var e = this.extend();
  12375. return e.init.apply(e, arguments), e;
  12376. },
  12377. init: function init() {},
  12378. mixIn: function mixIn(e) {
  12379. for (var t in e) {
  12380. e.hasOwnProperty(t) && (this[t] = e[t]);
  12381. }
  12382. e.hasOwnProperty("toString") && (this.toString = e.toString);
  12383. },
  12384. clone: function clone() {
  12385. return this.init.prototype.extend(this);
  12386. }
  12387. },
  12388. o = r.WordArray = i.extend({
  12389. init: function init(e, n) {
  12390. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  12391. },
  12392. toString: function toString(e) {
  12393. return (e || c).stringify(this);
  12394. },
  12395. concat: function concat(e) {
  12396. var t = this.words,
  12397. n = e.words,
  12398. s = this.sigBytes,
  12399. r = e.sigBytes;
  12400. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  12401. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  12402. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  12403. } else for (i = 0; i < r; i += 4) {
  12404. t[s + i >>> 2] = n[i >>> 2];
  12405. }
  12406. return this.sigBytes += r, this;
  12407. },
  12408. clamp: function clamp() {
  12409. var t = this.words,
  12410. n = this.sigBytes;
  12411. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  12412. },
  12413. clone: function clone() {
  12414. var e = i.clone.call(this);
  12415. return e.words = this.words.slice(0), e;
  12416. },
  12417. random: function random(t) {
  12418. for (var n, s = [], r = function r(t) {
  12419. t = t;
  12420. var n = 987654321,
  12421. s = 4294967295;
  12422. return function () {
  12423. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  12424. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  12425. };
  12426. }, i = 0; i < t; i += 4) {
  12427. var a = r(4294967296 * (n || e.random()));
  12428. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  12429. }
  12430. return new o.init(s, t);
  12431. }
  12432. }),
  12433. a = s.enc = {},
  12434. c = a.Hex = {
  12435. stringify: function stringify(e) {
  12436. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  12437. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  12438. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  12439. }
  12440. return s.join("");
  12441. },
  12442. parse: function parse(e) {
  12443. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  12444. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  12445. }
  12446. return new o.init(n, t / 2);
  12447. }
  12448. },
  12449. u = a.Latin1 = {
  12450. stringify: function stringify(e) {
  12451. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  12452. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  12453. s.push(String.fromCharCode(i));
  12454. }
  12455. return s.join("");
  12456. },
  12457. parse: function parse(e) {
  12458. for (var t = e.length, n = [], s = 0; s < t; s++) {
  12459. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  12460. }
  12461. return new o.init(n, t);
  12462. }
  12463. },
  12464. h = a.Utf8 = {
  12465. stringify: function stringify(e) {
  12466. try {
  12467. return decodeURIComponent(escape(u.stringify(e)));
  12468. } catch (e) {
  12469. throw new Error("Malformed UTF-8 data");
  12470. }
  12471. },
  12472. parse: function parse(e) {
  12473. return u.parse(unescape(encodeURIComponent(e)));
  12474. }
  12475. },
  12476. l = r.BufferedBlockAlgorithm = i.extend({
  12477. reset: function reset() {
  12478. this._data = new o.init(), this._nDataBytes = 0;
  12479. },
  12480. _append: function _append(e) {
  12481. "string" == typeof e && (e = h.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  12482. },
  12483. _process: function _process(t) {
  12484. var n = this._data,
  12485. s = n.words,
  12486. r = n.sigBytes,
  12487. i = this.blockSize,
  12488. a = r / (4 * i),
  12489. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  12490. u = e.min(4 * c, r);
  12491. if (c) {
  12492. for (var h = 0; h < c; h += i) {
  12493. this._doProcessBlock(s, h);
  12494. }
  12495. var l = s.splice(0, c);
  12496. n.sigBytes -= u;
  12497. }
  12498. return new o.init(l, u);
  12499. },
  12500. clone: function clone() {
  12501. var e = i.clone.call(this);
  12502. return e._data = this._data.clone(), e;
  12503. },
  12504. _minBufferSize: 0
  12505. });
  12506. r.Hasher = l.extend({
  12507. cfg: i.extend(),
  12508. init: function init(e) {
  12509. this.cfg = this.cfg.extend(e), this.reset();
  12510. },
  12511. reset: function reset() {
  12512. l.reset.call(this), this._doReset();
  12513. },
  12514. update: function update(e) {
  12515. return this._append(e), this._process(), this;
  12516. },
  12517. finalize: function finalize(e) {
  12518. return e && this._append(e), this._doFinalize();
  12519. },
  12520. blockSize: 16,
  12521. _createHelper: function _createHelper(e) {
  12522. return function (t, n) {
  12523. return new e.init(n).finalize(t);
  12524. };
  12525. },
  12526. _createHmacHelper: function _createHmacHelper(e) {
  12527. return function (t, n) {
  12528. return new d.HMAC.init(e, n).finalize(t);
  12529. };
  12530. }
  12531. });
  12532. var d = s.algo = {};
  12533. return s;
  12534. }(Math), n);
  12535. }),
  12536. r = s,
  12537. i = (n(function (e, t) {
  12538. var n;
  12539. e.exports = (n = r, function (e) {
  12540. var t = n,
  12541. s = t.lib,
  12542. r = s.WordArray,
  12543. i = s.Hasher,
  12544. o = t.algo,
  12545. a = [];
  12546. !function () {
  12547. for (var t = 0; t < 64; t++) {
  12548. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  12549. }
  12550. }();
  12551. var c = o.MD5 = i.extend({
  12552. _doReset: function _doReset() {
  12553. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  12554. },
  12555. _doProcessBlock: function _doProcessBlock(e, t) {
  12556. for (var n = 0; n < 16; n++) {
  12557. var s = t + n,
  12558. r = e[s];
  12559. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  12560. }
  12561. var i = this._hash.words,
  12562. o = e[t + 0],
  12563. c = e[t + 1],
  12564. p = e[t + 2],
  12565. f = e[t + 3],
  12566. g = e[t + 4],
  12567. m = e[t + 5],
  12568. y = e[t + 6],
  12569. _ = e[t + 7],
  12570. w = e[t + 8],
  12571. v = e[t + 9],
  12572. I = e[t + 10],
  12573. S = e[t + 11],
  12574. b = e[t + 12],
  12575. k = e[t + 13],
  12576. A = e[t + 14],
  12577. C = e[t + 15],
  12578. P = i[0],
  12579. T = i[1],
  12580. x = i[2],
  12581. O = i[3];
  12582. P = u(P, T, x, O, o, 7, a[0]), O = u(O, P, T, x, c, 12, a[1]), x = u(x, O, P, T, p, 17, a[2]), T = u(T, x, O, P, f, 22, a[3]), P = u(P, T, x, O, g, 7, a[4]), O = u(O, P, T, x, m, 12, a[5]), x = u(x, O, P, T, y, 17, a[6]), T = u(T, x, O, P, _, 22, a[7]), P = u(P, T, x, O, w, 7, a[8]), O = u(O, P, T, x, v, 12, a[9]), x = u(x, O, P, T, I, 17, a[10]), T = u(T, x, O, P, S, 22, a[11]), P = u(P, T, x, O, b, 7, a[12]), O = u(O, P, T, x, k, 12, a[13]), x = u(x, O, P, T, A, 17, a[14]), P = h(P, T = u(T, x, O, P, C, 22, a[15]), x, O, c, 5, a[16]), O = h(O, P, T, x, y, 9, a[17]), x = h(x, O, P, T, S, 14, a[18]), T = h(T, x, O, P, o, 20, a[19]), P = h(P, T, x, O, m, 5, a[20]), O = h(O, P, T, x, I, 9, a[21]), x = h(x, O, P, T, C, 14, a[22]), T = h(T, x, O, P, g, 20, a[23]), P = h(P, T, x, O, v, 5, a[24]), O = h(O, P, T, x, A, 9, a[25]), x = h(x, O, P, T, f, 14, a[26]), T = h(T, x, O, P, w, 20, a[27]), P = h(P, T, x, O, k, 5, a[28]), O = h(O, P, T, x, p, 9, a[29]), x = h(x, O, P, T, _, 14, a[30]), P = l(P, T = h(T, x, O, P, b, 20, a[31]), x, O, m, 4, a[32]), O = l(O, P, T, x, w, 11, a[33]), x = l(x, O, P, T, S, 16, a[34]), T = l(T, x, O, P, A, 23, a[35]), P = l(P, T, x, O, c, 4, a[36]), O = l(O, P, T, x, g, 11, a[37]), x = l(x, O, P, T, _, 16, a[38]), T = l(T, x, O, P, I, 23, a[39]), P = l(P, T, x, O, k, 4, a[40]), O = l(O, P, T, x, o, 11, a[41]), x = l(x, O, P, T, f, 16, a[42]), T = l(T, x, O, P, y, 23, a[43]), P = l(P, T, x, O, v, 4, a[44]), O = l(O, P, T, x, b, 11, a[45]), x = l(x, O, P, T, C, 16, a[46]), P = d(P, T = l(T, x, O, P, p, 23, a[47]), x, O, o, 6, a[48]), O = d(O, P, T, x, _, 10, a[49]), x = d(x, O, P, T, A, 15, a[50]), T = d(T, x, O, P, m, 21, a[51]), P = d(P, T, x, O, b, 6, a[52]), O = d(O, P, T, x, f, 10, a[53]), x = d(x, O, P, T, I, 15, a[54]), T = d(T, x, O, P, c, 21, a[55]), P = d(P, T, x, O, w, 6, a[56]), O = d(O, P, T, x, C, 10, a[57]), x = d(x, O, P, T, y, 15, a[58]), T = d(T, x, O, P, k, 21, a[59]), P = d(P, T, x, O, g, 6, a[60]), O = d(O, P, T, x, S, 10, a[61]), x = d(x, O, P, T, p, 15, a[62]), T = d(T, x, O, P, v, 21, a[63]), i[0] = i[0] + P | 0, i[1] = i[1] + T | 0, i[2] = i[2] + x | 0, i[3] = i[3] + O | 0;
  12583. },
  12584. _doFinalize: function _doFinalize() {
  12585. var t = this._data,
  12586. n = t.words,
  12587. s = 8 * this._nDataBytes,
  12588. r = 8 * t.sigBytes;
  12589. n[r >>> 5] |= 128 << 24 - r % 32;
  12590. var i = e.floor(s / 4294967296),
  12591. o = s;
  12592. 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();
  12593. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  12594. var h = c[u];
  12595. c[u] = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8);
  12596. }
  12597. return a;
  12598. },
  12599. clone: function clone() {
  12600. var e = i.clone.call(this);
  12601. return e._hash = this._hash.clone(), e;
  12602. }
  12603. });
  12604. function u(e, t, n, s, r, i, o) {
  12605. var a = e + (t & n | ~t & s) + r + o;
  12606. return (a << i | a >>> 32 - i) + t;
  12607. }
  12608. function h(e, t, n, s, r, i, o) {
  12609. var a = e + (t & s | n & ~s) + r + o;
  12610. return (a << i | a >>> 32 - i) + t;
  12611. }
  12612. function l(e, t, n, s, r, i, o) {
  12613. var a = e + (t ^ n ^ s) + r + o;
  12614. return (a << i | a >>> 32 - i) + t;
  12615. }
  12616. function d(e, t, n, s, r, i, o) {
  12617. var a = e + (n ^ (t | ~s)) + r + o;
  12618. return (a << i | a >>> 32 - i) + t;
  12619. }
  12620. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  12621. }(Math), n.MD5);
  12622. }), n(function (e, t) {
  12623. var n;
  12624. e.exports = (n = r, void function () {
  12625. var e = n,
  12626. t = e.lib.Base,
  12627. s = e.enc.Utf8;
  12628. e.algo.HMAC = t.extend({
  12629. init: function init(e, t) {
  12630. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  12631. var n = e.blockSize,
  12632. r = 4 * n;
  12633. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  12634. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  12635. a[u] ^= 1549556828, c[u] ^= 909522486;
  12636. }
  12637. i.sigBytes = o.sigBytes = r, this.reset();
  12638. },
  12639. reset: function reset() {
  12640. var e = this._hasher;
  12641. e.reset(), e.update(this._iKey);
  12642. },
  12643. update: function update(e) {
  12644. return this._hasher.update(e), this;
  12645. },
  12646. finalize: function finalize(e) {
  12647. var t = this._hasher,
  12648. n = t.finalize(e);
  12649. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  12650. }
  12651. });
  12652. }());
  12653. }), n(function (e, t) {
  12654. e.exports = r.HmacMD5;
  12655. })),
  12656. o = n(function (e, t) {
  12657. e.exports = r.enc.Utf8;
  12658. }),
  12659. a = n(function (e, t) {
  12660. var n;
  12661. e.exports = (n = r, function () {
  12662. var e = n,
  12663. t = e.lib.WordArray;
  12664. function s(e, n, s) {
  12665. for (var r = [], i = 0, o = 0; o < n; o++) {
  12666. if (o % 4) {
  12667. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  12668. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  12669. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  12670. }
  12671. }
  12672. return t.create(r, i);
  12673. }
  12674. e.enc.Base64 = {
  12675. stringify: function stringify(e) {
  12676. var t = e.words,
  12677. n = e.sigBytes,
  12678. s = this._map;
  12679. e.clamp();
  12680. for (var r = [], i = 0; i < n; i += 3) {
  12681. 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++) {
  12682. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  12683. }
  12684. }
  12685. var c = s.charAt(64);
  12686. if (c) for (; r.length % 4;) {
  12687. r.push(c);
  12688. }
  12689. return r.join("");
  12690. },
  12691. parse: function parse(e) {
  12692. var t = e.length,
  12693. n = this._map,
  12694. r = this._reverseMap;
  12695. if (!r) {
  12696. r = this._reverseMap = [];
  12697. for (var i = 0; i < n.length; i++) {
  12698. r[n.charCodeAt(i)] = i;
  12699. }
  12700. }
  12701. var o = n.charAt(64);
  12702. if (o) {
  12703. var a = e.indexOf(o);
  12704. -1 !== a && (t = a);
  12705. }
  12706. return s(e, t, r);
  12707. },
  12708. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  12709. };
  12710. }(), n.enc.Base64);
  12711. });
  12712. var c = "FUNCTION",
  12713. u = "OBJECT",
  12714. h = "CLIENT_DB",
  12715. l = "pending",
  12716. d = "fulfilled",
  12717. p = "rejected";
  12718. function f(e) {
  12719. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  12720. }
  12721. function g(e) {
  12722. return "object" === f(e);
  12723. }
  12724. function m(e) {
  12725. return "function" == typeof e;
  12726. }
  12727. function y(e) {
  12728. return function () {
  12729. try {
  12730. return e.apply(e, arguments);
  12731. } catch (e) {
  12732. console.error(e);
  12733. }
  12734. };
  12735. }
  12736. var _ = "REJECTED",
  12737. w = "NOT_PENDING";
  12738. var v = /*#__PURE__*/function () {
  12739. function v() {
  12740. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  12741. e = _ref.createPromise,
  12742. _ref$retryRule = _ref.retryRule,
  12743. t = _ref$retryRule === void 0 ? _ : _ref$retryRule;
  12744. (0, _classCallCheck2.default)(this, v);
  12745. this.createPromise = e, this.status = null, this.promise = null, this.retryRule = t;
  12746. }
  12747. (0, _createClass2.default)(v, [{
  12748. key: "needRetry",
  12749. get: function get() {
  12750. if (!this.status) return !0;
  12751. switch (this.retryRule) {
  12752. case _:
  12753. return this.status === p;
  12754. case w:
  12755. return this.status !== l;
  12756. }
  12757. }
  12758. }, {
  12759. key: "exec",
  12760. value: function exec() {
  12761. var _this = this;
  12762. return this.needRetry ? (this.status = l, this.promise = this.createPromise().then(function (e) {
  12763. return _this.status = d, Promise.resolve(e);
  12764. }, function (e) {
  12765. return _this.status = p, Promise.reject(e);
  12766. }), this.promise) : this.promise;
  12767. }
  12768. }]);
  12769. return v;
  12770. }();
  12771. function I(e) {
  12772. return e && "string" == typeof e ? JSON.parse(e) : e;
  12773. }
  12774. var S = "development" === "development",
  12775. b = "mp-weixin",
  12776. k = "true" === undefined || !0 === undefined,
  12777. A = I([]),
  12778. C = "h5" === b ? "web" : "app-plus" === b ? "app" : b,
  12779. P = I(undefined),
  12780. T = I([]) || [],
  12781. x = true;
  12782. var O = "";
  12783. try {
  12784. O = (__webpack_require__(/*! uni-stat-config */ 39).default || __webpack_require__(/*! uni-stat-config */ 39)).appid;
  12785. } catch (e) {}
  12786. var E = {};
  12787. function L(e) {
  12788. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12789. var n, s;
  12790. return n = E, s = e, Object.prototype.hasOwnProperty.call(n, s) || (E[e] = t), E[e];
  12791. }
  12792. "app" === C && (E = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  12793. var R = ["invoke", "success", "fail", "complete"],
  12794. U = L("_globalUniCloudInterceptor");
  12795. function N(e, t) {
  12796. U[e] || (U[e] = {}), g(t) && Object.keys(t).forEach(function (n) {
  12797. R.indexOf(n) > -1 && function (e, t, n) {
  12798. var s = U[e][t];
  12799. s || (s = U[e][t] = []), -1 === s.indexOf(n) && m(n) && s.push(n);
  12800. }(e, n, t[n]);
  12801. });
  12802. }
  12803. function D(e, t) {
  12804. U[e] || (U[e] = {}), g(t) ? Object.keys(t).forEach(function (n) {
  12805. R.indexOf(n) > -1 && function (e, t, n) {
  12806. var s = U[e][t];
  12807. if (!s) return;
  12808. var r = s.indexOf(n);
  12809. r > -1 && s.splice(r, 1);
  12810. }(e, n, t[n]);
  12811. }) : delete U[e];
  12812. }
  12813. function M(e, t) {
  12814. return e && 0 !== e.length ? e.reduce(function (e, n) {
  12815. return e.then(function () {
  12816. return n(t);
  12817. });
  12818. }, Promise.resolve()) : Promise.resolve();
  12819. }
  12820. function q(e, t) {
  12821. return U[e] && U[e][t] || [];
  12822. }
  12823. function F(e) {
  12824. N("callObject", e);
  12825. }
  12826. var K = L("_globalUniCloudListener"),
  12827. j = "response",
  12828. $ = "needLogin",
  12829. B = "refreshToken",
  12830. W = "clientdb",
  12831. H = "cloudfunction",
  12832. z = "cloudobject";
  12833. function J(e) {
  12834. return K[e] || (K[e] = []), K[e];
  12835. }
  12836. function V(e, t) {
  12837. var n = J(e);
  12838. n.includes(t) || n.push(t);
  12839. }
  12840. function G(e, t) {
  12841. var n = J(e),
  12842. s = n.indexOf(t);
  12843. -1 !== s && n.splice(s, 1);
  12844. }
  12845. function Y(e, t) {
  12846. var n = J(e);
  12847. for (var _e2 = 0; _e2 < n.length; _e2++) {
  12848. (0, n[_e2])(t);
  12849. }
  12850. }
  12851. var Q,
  12852. X = !1;
  12853. function Z() {
  12854. return Q || (Q = new Promise(function (e) {
  12855. X && e(), function t() {
  12856. if ("function" == typeof getCurrentPages) {
  12857. var _t2 = getCurrentPages();
  12858. _t2 && _t2[0] && (X = !0, e());
  12859. }
  12860. X || setTimeout(function () {
  12861. t();
  12862. }, 30);
  12863. }();
  12864. }), Q);
  12865. }
  12866. function ee(e) {
  12867. var t = {};
  12868. for (var _n2 in e) {
  12869. var _s2 = e[_n2];
  12870. m(_s2) && (t[_n2] = y(_s2));
  12871. }
  12872. return t;
  12873. }
  12874. var te = /*#__PURE__*/function (_Error) {
  12875. (0, _inherits2.default)(te, _Error);
  12876. var _super = _createSuper(te);
  12877. function te(e) {
  12878. var _this2;
  12879. (0, _classCallCheck2.default)(this, te);
  12880. _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;
  12881. return _this2;
  12882. }
  12883. (0, _createClass2.default)(te, [{
  12884. key: "toJson",
  12885. value: function toJson() {
  12886. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  12887. if (!(e >= 10)) return e++, {
  12888. errCode: this.errCode,
  12889. errMsg: this.errMsg,
  12890. errSubject: this.errSubject,
  12891. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  12892. };
  12893. }
  12894. }]);
  12895. return te;
  12896. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  12897. var ne = {
  12898. request: function request(e) {
  12899. return uni.request(e);
  12900. },
  12901. uploadFile: function uploadFile(e) {
  12902. return uni.uploadFile(e);
  12903. },
  12904. setStorageSync: function setStorageSync(e, t) {
  12905. return uni.setStorageSync(e, t);
  12906. },
  12907. getStorageSync: function getStorageSync(e) {
  12908. return uni.getStorageSync(e);
  12909. },
  12910. removeStorageSync: function removeStorageSync(e) {
  12911. return uni.removeStorageSync(e);
  12912. },
  12913. clearStorageSync: function clearStorageSync() {
  12914. return uni.clearStorageSync();
  12915. },
  12916. connectSocket: function connectSocket(e) {
  12917. return uni.connectSocket(e);
  12918. }
  12919. };
  12920. function se() {
  12921. return {
  12922. token: ne.getStorageSync("uni_id_token") || ne.getStorageSync("uniIdToken"),
  12923. tokenExpired: ne.getStorageSync("uni_id_token_expired")
  12924. };
  12925. }
  12926. function re() {
  12927. var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  12928. e = _ref2.token,
  12929. t = _ref2.tokenExpired;
  12930. e && ne.setStorageSync("uni_id_token", e), t && ne.setStorageSync("uni_id_token_expired", t);
  12931. }
  12932. var ie, oe;
  12933. function ae() {
  12934. return ie || (ie = uni.getSystemInfoSync()), ie;
  12935. }
  12936. function ce() {
  12937. var e, t;
  12938. try {
  12939. if (uni.getLaunchOptionsSync) {
  12940. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  12941. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  12942. _n3 = _uni$getLaunchOptions.scene,
  12943. _s3 = _uni$getLaunchOptions.channel;
  12944. e = _s3, t = _n3;
  12945. }
  12946. } catch (e) {}
  12947. return {
  12948. channel: e,
  12949. scene: t
  12950. };
  12951. }
  12952. var ue = {};
  12953. function he() {
  12954. var e = uni.getLocale && uni.getLocale() || "en";
  12955. if (oe) return _objectSpread(_objectSpread(_objectSpread({}, ue), oe), {}, {
  12956. locale: e,
  12957. LOCALE: e
  12958. });
  12959. var t = ae(),
  12960. n = t.deviceId,
  12961. s = t.osName,
  12962. r = t.uniPlatform,
  12963. i = t.appId,
  12964. o = ["appId", "appLanguage", "appName", "appVersion", "appVersionCode", "appWgtVersion", "browserName", "browserVersion", "deviceBrand", "deviceId", "deviceModel", "deviceType", "osName", "osVersion", "romName", "romVersion", "ua", "hostName", "hostVersion", "uniPlatform", "uniRuntimeVersion", "uniRuntimeVersionCode", "uniCompilerVersion", "uniCompilerVersionCode"];
  12965. for (var _e3 in t) {
  12966. Object.hasOwnProperty.call(t, _e3) && -1 === o.indexOf(_e3) && delete t[_e3];
  12967. }
  12968. return oe = _objectSpread(_objectSpread({
  12969. PLATFORM: r,
  12970. OS: s,
  12971. APPID: i,
  12972. DEVICEID: n
  12973. }, ce()), t), _objectSpread(_objectSpread(_objectSpread({}, ue), oe), {}, {
  12974. locale: e,
  12975. LOCALE: e
  12976. });
  12977. }
  12978. var le = {
  12979. sign: function sign(e, t) {
  12980. var n = "";
  12981. return Object.keys(e).sort().forEach(function (t) {
  12982. e[t] && (n = n + "&" + t + "=" + e[t]);
  12983. }), n = n.slice(1), i(n, t).toString();
  12984. },
  12985. wrappedRequest: function wrappedRequest(e, t) {
  12986. return new Promise(function (n, s) {
  12987. t(Object.assign(e, {
  12988. complete: function complete(e) {
  12989. e || (e = {}), S && "web" === C && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  12990. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  12991. if (!e.statusCode || e.statusCode >= 400) {
  12992. var _n4 = e.data && e.data.error && e.data.error.code || "SYS_ERR",
  12993. _r = e.data && e.data.error && e.data.error.message || e.errMsg || "request:fail";
  12994. return s(new te({
  12995. code: _n4,
  12996. message: _r,
  12997. requestId: t
  12998. }));
  12999. }
  13000. var r = e.data;
  13001. if (r.error) return s(new te({
  13002. code: r.error.code,
  13003. message: r.error.message,
  13004. requestId: t
  13005. }));
  13006. r.result = r.data, r.requestId = t, delete r.data, n(r);
  13007. }
  13008. }));
  13009. });
  13010. },
  13011. toBase64: function toBase64(e) {
  13012. return a.stringify(o.parse(e));
  13013. }
  13014. };
  13015. var de = /*#__PURE__*/function () {
  13016. function de(e) {
  13017. var _this3 = this;
  13018. (0, _classCallCheck2.default)(this, de);
  13019. ["spaceId", "clientSecret"].forEach(function (t) {
  13020. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  13021. }), this.config = Object.assign({}, {
  13022. endpoint: 0 === e.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com"
  13023. }, 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({
  13024. createPromise: function createPromise() {
  13025. return _this3.requestAuth(_this3.setupRequest({
  13026. method: "serverless.auth.user.anonymousAuthorize",
  13027. params: "{}"
  13028. }, "auth")).then(function (e) {
  13029. if (!e.result || !e.result.accessToken) throw new te({
  13030. code: "AUTH_FAILED",
  13031. message: "获取accessToken失败"
  13032. });
  13033. _this3.setAccessToken(e.result.accessToken);
  13034. });
  13035. },
  13036. retryRule: w
  13037. });
  13038. }
  13039. (0, _createClass2.default)(de, [{
  13040. key: "hasAccessToken",
  13041. get: function get() {
  13042. return !!this.accessToken;
  13043. }
  13044. }, {
  13045. key: "setAccessToken",
  13046. value: function setAccessToken(e) {
  13047. this.accessToken = e;
  13048. }
  13049. }, {
  13050. key: "requestWrapped",
  13051. value: function requestWrapped(e) {
  13052. return le.wrappedRequest(e, this.adapter.request);
  13053. }
  13054. }, {
  13055. key: "requestAuth",
  13056. value: function requestAuth(e) {
  13057. return this.requestWrapped(e);
  13058. }
  13059. }, {
  13060. key: "request",
  13061. value: function request(e, t) {
  13062. var _this4 = this;
  13063. return Promise.resolve().then(function () {
  13064. return _this4.hasAccessToken ? t ? _this4.requestWrapped(e) : _this4.requestWrapped(e).catch(function (t) {
  13065. return new Promise(function (e, n) {
  13066. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  13067. }).then(function () {
  13068. return _this4.getAccessToken();
  13069. }).then(function () {
  13070. var t = _this4.rebuildRequest(e);
  13071. return _this4.request(t, !0);
  13072. });
  13073. }) : _this4.getAccessToken().then(function () {
  13074. var t = _this4.rebuildRequest(e);
  13075. return _this4.request(t, !0);
  13076. });
  13077. });
  13078. }
  13079. }, {
  13080. key: "rebuildRequest",
  13081. value: function rebuildRequest(e) {
  13082. var t = Object.assign({}, e);
  13083. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = le.sign(t.data, this.config.clientSecret), t;
  13084. }
  13085. }, {
  13086. key: "setupRequest",
  13087. value: function setupRequest(e, t) {
  13088. var n = Object.assign({}, e, {
  13089. spaceId: this.config.spaceId,
  13090. timestamp: Date.now()
  13091. }),
  13092. s = {
  13093. "Content-Type": "application/json"
  13094. };
  13095. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = le.sign(n, this.config.clientSecret), {
  13096. url: this.config.requestUrl,
  13097. method: "POST",
  13098. data: n,
  13099. dataType: "json",
  13100. header: s
  13101. };
  13102. }
  13103. }, {
  13104. key: "getAccessToken",
  13105. value: function getAccessToken() {
  13106. return this._getAccessTokenPromiseHub.exec();
  13107. }
  13108. }, {
  13109. key: "authorize",
  13110. value: function () {
  13111. var _authorize = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  13112. return _regenerator.default.wrap(function _callee$(_context) {
  13113. while (1) {
  13114. switch (_context.prev = _context.next) {
  13115. case 0:
  13116. _context.next = 2;
  13117. return this.getAccessToken();
  13118. case 2:
  13119. case "end":
  13120. return _context.stop();
  13121. }
  13122. }
  13123. }, _callee, this);
  13124. }));
  13125. function authorize() {
  13126. return _authorize.apply(this, arguments);
  13127. }
  13128. return authorize;
  13129. }()
  13130. }, {
  13131. key: "callFunction",
  13132. value: function callFunction(e) {
  13133. var t = {
  13134. method: "serverless.function.runtime.invoke",
  13135. params: JSON.stringify({
  13136. functionTarget: e.name,
  13137. functionArgs: e.data || {}
  13138. })
  13139. };
  13140. return this.request(this.setupRequest(t));
  13141. }
  13142. }, {
  13143. key: "getOSSUploadOptionsFromPath",
  13144. value: function getOSSUploadOptionsFromPath(e) {
  13145. var t = {
  13146. method: "serverless.file.resource.generateProximalSign",
  13147. params: JSON.stringify(e)
  13148. };
  13149. return this.request(this.setupRequest(t));
  13150. }
  13151. }, {
  13152. key: "uploadFileToOSS",
  13153. value: function uploadFileToOSS(_ref3) {
  13154. var _this5 = this;
  13155. var e = _ref3.url,
  13156. t = _ref3.formData,
  13157. n = _ref3.name,
  13158. s = _ref3.filePath,
  13159. r = _ref3.fileType,
  13160. i = _ref3.onUploadProgress;
  13161. return new Promise(function (o, a) {
  13162. var c = _this5.adapter.uploadFile({
  13163. url: e,
  13164. formData: t,
  13165. name: n,
  13166. filePath: s,
  13167. fileType: r,
  13168. header: {
  13169. "X-OSS-server-side-encrpytion": "AES256"
  13170. },
  13171. success: function success(e) {
  13172. e && e.statusCode < 400 ? o(e) : a(new te({
  13173. code: "UPLOAD_FAILED",
  13174. message: "文件上传失败"
  13175. }));
  13176. },
  13177. fail: function fail(e) {
  13178. a(new te({
  13179. code: e.code || "UPLOAD_FAILED",
  13180. message: e.message || e.errMsg || "文件上传失败"
  13181. }));
  13182. }
  13183. });
  13184. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  13185. i({
  13186. loaded: e.totalBytesSent,
  13187. total: e.totalBytesExpectedToSend
  13188. });
  13189. });
  13190. });
  13191. }
  13192. }, {
  13193. key: "reportOSSUpload",
  13194. value: function reportOSSUpload(e) {
  13195. var t = {
  13196. method: "serverless.file.resource.report",
  13197. params: JSON.stringify(e)
  13198. };
  13199. return this.request(this.setupRequest(t));
  13200. }
  13201. }, {
  13202. key: "uploadFile",
  13203. value: function () {
  13204. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref4) {
  13205. var e, t, _ref4$fileType, n, _ref4$cloudPathAsReal, s, r, i, o, a, c, u, h, l, d, p, g, m, y, _, _e4, w;
  13206. return _regenerator.default.wrap(function _callee2$(_context2) {
  13207. while (1) {
  13208. switch (_context2.prev = _context2.next) {
  13209. case 0:
  13210. 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;
  13211. if (!("string" !== f(t))) {
  13212. _context2.next = 3;
  13213. break;
  13214. }
  13215. throw new te({
  13216. code: "INVALID_PARAM",
  13217. message: "cloudPath必须为字符串类型"
  13218. });
  13219. case 3:
  13220. if (t = t.trim()) {
  13221. _context2.next = 5;
  13222. break;
  13223. }
  13224. throw new te({
  13225. code: "INVALID_PARAM",
  13226. message: "cloudPath不可为空"
  13227. });
  13228. case 5:
  13229. if (!/:\/\//.test(t)) {
  13230. _context2.next = 7;
  13231. break;
  13232. }
  13233. throw new te({
  13234. code: "INVALID_PARAM",
  13235. message: "cloudPath不合法"
  13236. });
  13237. case 7:
  13238. o = i && i.envType || this.config.envType;
  13239. if (!(s && ("/" !== t[0] && (t = "/" + t), t.indexOf("\\") > -1))) {
  13240. _context2.next = 10;
  13241. break;
  13242. }
  13243. throw new te({
  13244. code: "INVALID_PARAM",
  13245. message: "使用cloudPath作为路径时,cloudPath不可包含“\\”"
  13246. });
  13247. case 10:
  13248. _context2.next = 12;
  13249. return this.getOSSUploadOptionsFromPath({
  13250. env: o,
  13251. filename: s ? t.split("/").pop() : t,
  13252. fileId: s ? t : void 0
  13253. });
  13254. case 12:
  13255. a = _context2.sent.result;
  13256. c = "https://" + a.cdnDomain + "/" + a.ossPath;
  13257. u = a.securityToken;
  13258. h = a.accessKeyId;
  13259. l = a.signature;
  13260. d = a.host;
  13261. p = a.ossPath;
  13262. g = a.id;
  13263. m = a.policy;
  13264. y = a.ossCallbackUrl;
  13265. _ = {
  13266. "Cache-Control": "max-age=2592000",
  13267. "Content-Disposition": "attachment",
  13268. OSSAccessKeyId: h,
  13269. Signature: l,
  13270. host: d,
  13271. id: g,
  13272. key: p,
  13273. policy: m,
  13274. success_action_status: 200
  13275. };
  13276. if (u && (_["x-oss-security-token"] = u), y) {
  13277. _e4 = JSON.stringify({
  13278. callbackUrl: y,
  13279. callbackBody: JSON.stringify({
  13280. fileId: g,
  13281. spaceId: this.config.spaceId
  13282. }),
  13283. callbackBodyType: "application/json"
  13284. });
  13285. _.callback = le.toBase64(_e4);
  13286. }
  13287. w = {
  13288. url: "https://" + a.host,
  13289. formData: _,
  13290. fileName: "file",
  13291. name: "file",
  13292. filePath: e,
  13293. fileType: n
  13294. };
  13295. _context2.next = 27;
  13296. return this.uploadFileToOSS(Object.assign({}, w, {
  13297. onUploadProgress: r
  13298. }));
  13299. case 27:
  13300. if (!y) {
  13301. _context2.next = 29;
  13302. break;
  13303. }
  13304. return _context2.abrupt("return", {
  13305. success: !0,
  13306. filePath: e,
  13307. fileID: c
  13308. });
  13309. case 29:
  13310. _context2.next = 31;
  13311. return this.reportOSSUpload({
  13312. id: g
  13313. });
  13314. case 31:
  13315. if (!_context2.sent.success) {
  13316. _context2.next = 33;
  13317. break;
  13318. }
  13319. return _context2.abrupt("return", {
  13320. success: !0,
  13321. filePath: e,
  13322. fileID: c
  13323. });
  13324. case 33:
  13325. throw new te({
  13326. code: "UPLOAD_FAILED",
  13327. message: "文件上传失败"
  13328. });
  13329. case 34:
  13330. case "end":
  13331. return _context2.stop();
  13332. }
  13333. }
  13334. }, _callee2, this);
  13335. }));
  13336. function uploadFile(_x) {
  13337. return _uploadFile.apply(this, arguments);
  13338. }
  13339. return uploadFile;
  13340. }()
  13341. }, {
  13342. key: "getTempFileURL",
  13343. value: function getTempFileURL() {
  13344. var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13345. e = _ref5.fileList;
  13346. return new Promise(function (t, n) {
  13347. Array.isArray(e) && 0 !== e.length || n(new te({
  13348. code: "INVALID_PARAM",
  13349. message: "fileList的元素必须是非空的字符串"
  13350. })), t({
  13351. fileList: e.map(function (e) {
  13352. return {
  13353. fileID: e,
  13354. tempFileURL: e
  13355. };
  13356. })
  13357. });
  13358. });
  13359. }
  13360. }, {
  13361. key: "getFileInfo",
  13362. value: function () {
  13363. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  13364. var _ref6,
  13365. e,
  13366. t,
  13367. _args3 = arguments;
  13368. return _regenerator.default.wrap(function _callee3$(_context3) {
  13369. while (1) {
  13370. switch (_context3.prev = _context3.next) {
  13371. case 0:
  13372. _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref6.fileList;
  13373. if (!(!Array.isArray(e) || 0 === e.length)) {
  13374. _context3.next = 3;
  13375. break;
  13376. }
  13377. throw new te({
  13378. code: "INVALID_PARAM",
  13379. message: "fileList的元素必须是非空的字符串"
  13380. });
  13381. case 3:
  13382. t = {
  13383. method: "serverless.file.resource.info",
  13384. params: JSON.stringify({
  13385. id: e.map(function (e) {
  13386. return e.split("?")[0];
  13387. }).join(",")
  13388. })
  13389. };
  13390. _context3.next = 6;
  13391. return this.request(this.setupRequest(t));
  13392. case 6:
  13393. _context3.t0 = _context3.sent.result;
  13394. return _context3.abrupt("return", {
  13395. fileList: _context3.t0
  13396. });
  13397. case 8:
  13398. case "end":
  13399. return _context3.stop();
  13400. }
  13401. }
  13402. }, _callee3, this);
  13403. }));
  13404. function getFileInfo() {
  13405. return _getFileInfo.apply(this, arguments);
  13406. }
  13407. return getFileInfo;
  13408. }()
  13409. }]);
  13410. return de;
  13411. }();
  13412. var pe = {
  13413. init: function init(e) {
  13414. var t = new de(e),
  13415. n = {
  13416. signInAnonymously: function signInAnonymously() {
  13417. return t.authorize();
  13418. },
  13419. getLoginState: function getLoginState() {
  13420. return Promise.resolve(!1);
  13421. }
  13422. };
  13423. return t.auth = function () {
  13424. return n;
  13425. }, t.customAuth = t.auth, t;
  13426. }
  13427. };
  13428. var fe = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  13429. var ge;
  13430. !function (e) {
  13431. e.local = "local", e.none = "none", e.session = "session";
  13432. }(ge || (ge = {}));
  13433. var me = function me() {},
  13434. ye = n(function (e, t) {
  13435. var n;
  13436. e.exports = (n = r, function (e) {
  13437. var t = n,
  13438. s = t.lib,
  13439. r = s.WordArray,
  13440. i = s.Hasher,
  13441. o = t.algo,
  13442. a = [],
  13443. c = [];
  13444. !function () {
  13445. function t(t) {
  13446. for (var n = e.sqrt(t), s = 2; s <= n; s++) {
  13447. if (!(t % s)) return !1;
  13448. }
  13449. return !0;
  13450. }
  13451. function n(e) {
  13452. return 4294967296 * (e - (0 | e)) | 0;
  13453. }
  13454. for (var s = 2, r = 0; r < 64;) {
  13455. t(s) && (r < 8 && (a[r] = n(e.pow(s, .5))), c[r] = n(e.pow(s, 1 / 3)), r++), s++;
  13456. }
  13457. }();
  13458. var u = [],
  13459. h = o.SHA256 = i.extend({
  13460. _doReset: function _doReset() {
  13461. this._hash = new r.init(a.slice(0));
  13462. },
  13463. _doProcessBlock: function _doProcessBlock(e, t) {
  13464. 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++) {
  13465. if (p < 16) u[p] = 0 | e[t + p];else {
  13466. var f = u[p - 15],
  13467. g = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3,
  13468. m = u[p - 2],
  13469. y = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
  13470. u[p] = g + u[p - 7] + y + u[p - 16];
  13471. }
  13472. var _ = s & r ^ s & i ^ r & i,
  13473. w = (s << 30 | s >>> 2) ^ (s << 19 | s >>> 13) ^ (s << 10 | s >>> 22),
  13474. v = d + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & h ^ ~a & l) + c[p] + u[p];
  13475. d = l, l = h, h = a, a = o + v | 0, o = i, i = r, r = s, s = v + (w + _) | 0;
  13476. }
  13477. 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;
  13478. },
  13479. _doFinalize: function _doFinalize() {
  13480. var t = this._data,
  13481. n = t.words,
  13482. s = 8 * this._nDataBytes,
  13483. r = 8 * t.sigBytes;
  13484. 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;
  13485. },
  13486. clone: function clone() {
  13487. var e = i.clone.call(this);
  13488. return e._hash = this._hash.clone(), e;
  13489. }
  13490. });
  13491. t.SHA256 = i._createHelper(h), t.HmacSHA256 = i._createHmacHelper(h);
  13492. }(Math), n.SHA256);
  13493. }),
  13494. _e = ye,
  13495. we = n(function (e, t) {
  13496. e.exports = r.HmacSHA256;
  13497. });
  13498. var ve = function ve() {
  13499. var e;
  13500. if (!Promise) {
  13501. e = function e() {}, e.promise = {};
  13502. var _t3 = function _t3() {
  13503. throw new te({
  13504. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  13505. });
  13506. };
  13507. return Object.defineProperty(e.promise, "then", {
  13508. get: _t3
  13509. }), Object.defineProperty(e.promise, "catch", {
  13510. get: _t3
  13511. }), e;
  13512. }
  13513. var t = new Promise(function (t, n) {
  13514. e = function e(_e5, s) {
  13515. return _e5 ? n(_e5) : t(s);
  13516. };
  13517. });
  13518. return e.promise = t, e;
  13519. };
  13520. function Ie(e) {
  13521. return void 0 === e;
  13522. }
  13523. function Se(e) {
  13524. return "[object Null]" === Object.prototype.toString.call(e);
  13525. }
  13526. var be;
  13527. function ke(e) {
  13528. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  13529. var n;
  13530. var _iterator = _createForOfIteratorHelper(t),
  13531. _step;
  13532. try {
  13533. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  13534. var _e6 = _step.value;
  13535. var _t4 = _e6.isMatch,
  13536. _n5 = _e6.genAdapter,
  13537. _s4 = _e6.runtime;
  13538. if (_t4()) return {
  13539. adapter: _n5(),
  13540. runtime: _s4
  13541. };
  13542. }
  13543. } catch (err) {
  13544. _iterator.e(err);
  13545. } finally {
  13546. _iterator.f();
  13547. }
  13548. }
  13549. !function (e) {
  13550. e.WEB = "web", e.WX_MP = "wx_mp";
  13551. }(be || (be = {}));
  13552. var Ae = {
  13553. adapter: null,
  13554. runtime: void 0
  13555. },
  13556. Ce = ["anonymousUuidKey"];
  13557. var Pe = /*#__PURE__*/function (_me) {
  13558. (0, _inherits2.default)(Pe, _me);
  13559. var _super2 = _createSuper(Pe);
  13560. function Pe() {
  13561. var _this6;
  13562. (0, _classCallCheck2.default)(this, Pe);
  13563. _this6 = _super2.call(this), Ae.adapter.root.tcbObject || (Ae.adapter.root.tcbObject = {});
  13564. return _this6;
  13565. }
  13566. (0, _createClass2.default)(Pe, [{
  13567. key: "setItem",
  13568. value: function setItem(e, t) {
  13569. Ae.adapter.root.tcbObject[e] = t;
  13570. }
  13571. }, {
  13572. key: "getItem",
  13573. value: function getItem(e) {
  13574. return Ae.adapter.root.tcbObject[e];
  13575. }
  13576. }, {
  13577. key: "removeItem",
  13578. value: function removeItem(e) {
  13579. delete Ae.adapter.root.tcbObject[e];
  13580. }
  13581. }, {
  13582. key: "clear",
  13583. value: function clear() {
  13584. delete Ae.adapter.root.tcbObject;
  13585. }
  13586. }]);
  13587. return Pe;
  13588. }(me);
  13589. function Te(e, t) {
  13590. switch (e) {
  13591. case "local":
  13592. return t.localStorage || new Pe();
  13593. case "none":
  13594. return new Pe();
  13595. default:
  13596. return t.sessionStorage || new Pe();
  13597. }
  13598. }
  13599. var xe = /*#__PURE__*/function () {
  13600. function xe(e) {
  13601. (0, _classCallCheck2.default)(this, xe);
  13602. if (!this._storage) {
  13603. this._persistence = Ae.adapter.primaryStorage || e.persistence, this._storage = Te(this._persistence, Ae.adapter);
  13604. var _t5 = "access_token_".concat(e.env),
  13605. _n6 = "access_token_expire_".concat(e.env),
  13606. _s5 = "refresh_token_".concat(e.env),
  13607. _r2 = "anonymous_uuid_".concat(e.env),
  13608. _i = "login_type_".concat(e.env),
  13609. _o = "user_info_".concat(e.env);
  13610. this.keys = {
  13611. accessTokenKey: _t5,
  13612. accessTokenExpireKey: _n6,
  13613. refreshTokenKey: _s5,
  13614. anonymousUuidKey: _r2,
  13615. loginTypeKey: _i,
  13616. userInfoKey: _o
  13617. };
  13618. }
  13619. }
  13620. (0, _createClass2.default)(xe, [{
  13621. key: "updatePersistence",
  13622. value: function updatePersistence(e) {
  13623. if (e === this._persistence) return;
  13624. var t = "local" === this._persistence;
  13625. this._persistence = e;
  13626. var n = Te(e, Ae.adapter);
  13627. for (var _e7 in this.keys) {
  13628. var _s6 = this.keys[_e7];
  13629. if (t && Ce.includes(_e7)) continue;
  13630. var _r3 = this._storage.getItem(_s6);
  13631. Ie(_r3) || Se(_r3) || (n.setItem(_s6, _r3), this._storage.removeItem(_s6));
  13632. }
  13633. this._storage = n;
  13634. }
  13635. }, {
  13636. key: "setStore",
  13637. value: function setStore(e, t, n) {
  13638. if (!this._storage) return;
  13639. var s = {
  13640. version: n || "localCachev1",
  13641. content: t
  13642. },
  13643. r = JSON.stringify(s);
  13644. try {
  13645. this._storage.setItem(e, r);
  13646. } catch (e) {
  13647. throw e;
  13648. }
  13649. }
  13650. }, {
  13651. key: "getStore",
  13652. value: function getStore(e, t) {
  13653. try {
  13654. if (!this._storage) return;
  13655. } catch (e) {
  13656. return "";
  13657. }
  13658. t = t || "localCachev1";
  13659. var n = this._storage.getItem(e);
  13660. if (!n) return "";
  13661. if (n.indexOf(t) >= 0) {
  13662. return JSON.parse(n).content;
  13663. }
  13664. return "";
  13665. }
  13666. }, {
  13667. key: "removeStore",
  13668. value: function removeStore(e) {
  13669. this._storage.removeItem(e);
  13670. }
  13671. }]);
  13672. return xe;
  13673. }();
  13674. var Oe = {},
  13675. Ee = {};
  13676. function Le(e) {
  13677. return Oe[e];
  13678. }
  13679. var Re = /*#__PURE__*/(0, _createClass2.default)(function Re(e, t) {
  13680. (0, _classCallCheck2.default)(this, Re);
  13681. this.data = t || null, this.name = e;
  13682. });
  13683. var Ue = /*#__PURE__*/function (_Re) {
  13684. (0, _inherits2.default)(Ue, _Re);
  13685. var _super3 = _createSuper(Ue);
  13686. function Ue(e, t) {
  13687. var _this7;
  13688. (0, _classCallCheck2.default)(this, Ue);
  13689. _this7 = _super3.call(this, "error", {
  13690. error: e,
  13691. data: t
  13692. }), _this7.error = e;
  13693. return _this7;
  13694. }
  13695. return (0, _createClass2.default)(Ue);
  13696. }(Re);
  13697. var Ne = new ( /*#__PURE__*/function () {
  13698. function _class() {
  13699. (0, _classCallCheck2.default)(this, _class);
  13700. this._listeners = {};
  13701. }
  13702. (0, _createClass2.default)(_class, [{
  13703. key: "on",
  13704. value: function on(e, t) {
  13705. return function (e, t, n) {
  13706. n[e] = n[e] || [], n[e].push(t);
  13707. }(e, t, this._listeners), this;
  13708. }
  13709. }, {
  13710. key: "off",
  13711. value: function off(e, t) {
  13712. return function (e, t, n) {
  13713. if (n && n[e]) {
  13714. var _s7 = n[e].indexOf(t);
  13715. -1 !== _s7 && n[e].splice(_s7, 1);
  13716. }
  13717. }(e, t, this._listeners), this;
  13718. }
  13719. }, {
  13720. key: "fire",
  13721. value: function fire(e, t) {
  13722. if (e instanceof Ue) return console.error(e.error), this;
  13723. var n = "string" == typeof e ? new Re(e, t || {}) : e;
  13724. var s = n.name;
  13725. if (this._listens(s)) {
  13726. n.target = this;
  13727. var _e8 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  13728. var _iterator2 = _createForOfIteratorHelper(_e8),
  13729. _step2;
  13730. try {
  13731. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  13732. var _t6 = _step2.value;
  13733. _t6.call(this, n);
  13734. }
  13735. } catch (err) {
  13736. _iterator2.e(err);
  13737. } finally {
  13738. _iterator2.f();
  13739. }
  13740. }
  13741. return this;
  13742. }
  13743. }, {
  13744. key: "_listens",
  13745. value: function _listens(e) {
  13746. return this._listeners[e] && this._listeners[e].length > 0;
  13747. }
  13748. }]);
  13749. return _class;
  13750. }())();
  13751. function De(e, t) {
  13752. Ne.on(e, t);
  13753. }
  13754. function Me(e) {
  13755. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13756. Ne.fire(e, t);
  13757. }
  13758. function qe(e, t) {
  13759. Ne.off(e, t);
  13760. }
  13761. var Fe = "loginStateChanged",
  13762. Ke = "loginStateExpire",
  13763. je = "loginTypeChanged",
  13764. $e = "anonymousConverted",
  13765. Be = "refreshAccessToken";
  13766. var We;
  13767. !function (e) {
  13768. 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";
  13769. }(We || (We = {}));
  13770. var He = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  13771. ze = {
  13772. "X-SDK-Version": "1.3.5"
  13773. };
  13774. function Je(e, t, n) {
  13775. var s = e[t];
  13776. e[t] = function (t) {
  13777. var r = {},
  13778. i = {};
  13779. n.forEach(function (n) {
  13780. var _n$call = n.call(e, t),
  13781. s = _n$call.data,
  13782. o = _n$call.headers;
  13783. Object.assign(r, s), Object.assign(i, o);
  13784. });
  13785. var o = t.data;
  13786. return o && function () {
  13787. var e;
  13788. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e9 in r) {
  13789. o.append(_e9, r[_e9]);
  13790. }
  13791. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  13792. };
  13793. }
  13794. function Ve() {
  13795. var e = Math.random().toString(16).slice(2);
  13796. return {
  13797. data: {
  13798. seqId: e
  13799. },
  13800. headers: _objectSpread(_objectSpread({}, ze), {}, {
  13801. "x-seqid": e
  13802. })
  13803. };
  13804. }
  13805. var Ge = /*#__PURE__*/function () {
  13806. function Ge() {
  13807. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13808. (0, _classCallCheck2.default)(this, Ge);
  13809. var t;
  13810. this.config = e, this._reqClass = new Ae.adapter.reqClass({
  13811. timeout: this.config.timeout,
  13812. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  13813. restrictedMethods: ["post"]
  13814. }), this._cache = Le(this.config.env), this._localCache = (t = this.config.env, Ee[t]), Je(this._reqClass, "post", [Ve]), Je(this._reqClass, "upload", [Ve]), Je(this._reqClass, "download", [Ve]);
  13815. }
  13816. (0, _createClass2.default)(Ge, [{
  13817. key: "post",
  13818. value: function () {
  13819. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(e) {
  13820. return _regenerator.default.wrap(function _callee4$(_context4) {
  13821. while (1) {
  13822. switch (_context4.prev = _context4.next) {
  13823. case 0:
  13824. _context4.next = 2;
  13825. return this._reqClass.post(e);
  13826. case 2:
  13827. return _context4.abrupt("return", _context4.sent);
  13828. case 3:
  13829. case "end":
  13830. return _context4.stop();
  13831. }
  13832. }
  13833. }, _callee4, this);
  13834. }));
  13835. function post(_x2) {
  13836. return _post.apply(this, arguments);
  13837. }
  13838. return post;
  13839. }()
  13840. }, {
  13841. key: "upload",
  13842. value: function () {
  13843. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e) {
  13844. return _regenerator.default.wrap(function _callee5$(_context5) {
  13845. while (1) {
  13846. switch (_context5.prev = _context5.next) {
  13847. case 0:
  13848. _context5.next = 2;
  13849. return this._reqClass.upload(e);
  13850. case 2:
  13851. return _context5.abrupt("return", _context5.sent);
  13852. case 3:
  13853. case "end":
  13854. return _context5.stop();
  13855. }
  13856. }
  13857. }, _callee5, this);
  13858. }));
  13859. function upload(_x3) {
  13860. return _upload.apply(this, arguments);
  13861. }
  13862. return upload;
  13863. }()
  13864. }, {
  13865. key: "download",
  13866. value: function () {
  13867. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(e) {
  13868. return _regenerator.default.wrap(function _callee6$(_context6) {
  13869. while (1) {
  13870. switch (_context6.prev = _context6.next) {
  13871. case 0:
  13872. _context6.next = 2;
  13873. return this._reqClass.download(e);
  13874. case 2:
  13875. return _context6.abrupt("return", _context6.sent);
  13876. case 3:
  13877. case "end":
  13878. return _context6.stop();
  13879. }
  13880. }
  13881. }, _callee6, this);
  13882. }));
  13883. function download(_x4) {
  13884. return _download.apply(this, arguments);
  13885. }
  13886. return download;
  13887. }()
  13888. }, {
  13889. key: "refreshAccessToken",
  13890. value: function () {
  13891. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  13892. var e, t;
  13893. return _regenerator.default.wrap(function _callee7$(_context7) {
  13894. while (1) {
  13895. switch (_context7.prev = _context7.next) {
  13896. case 0:
  13897. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  13898. _context7.prev = 1;
  13899. _context7.next = 4;
  13900. return this._refreshAccessTokenPromise;
  13901. case 4:
  13902. e = _context7.sent;
  13903. _context7.next = 10;
  13904. break;
  13905. case 7:
  13906. _context7.prev = 7;
  13907. _context7.t0 = _context7["catch"](1);
  13908. t = _context7.t0;
  13909. case 10:
  13910. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  13911. _context7.next = 12;
  13912. break;
  13913. }
  13914. throw t;
  13915. case 12:
  13916. return _context7.abrupt("return", e);
  13917. case 13:
  13918. case "end":
  13919. return _context7.stop();
  13920. }
  13921. }
  13922. }, _callee7, this, [[1, 7]]);
  13923. }));
  13924. function refreshAccessToken() {
  13925. return _refreshAccessToken2.apply(this, arguments);
  13926. }
  13927. return refreshAccessToken;
  13928. }()
  13929. }, {
  13930. key: "_refreshAccessToken",
  13931. value: function () {
  13932. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  13933. var _this$_cache$keys, e, t, n, s, r, i, o, a, _e10, _e11, _t7, _s8;
  13934. return _regenerator.default.wrap(function _callee8$(_context8) {
  13935. while (1) {
  13936. switch (_context8.prev = _context8.next) {
  13937. case 0:
  13938. _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;
  13939. this._cache.removeStore(e), this._cache.removeStore(t);
  13940. i = this._cache.getStore(n);
  13941. if (i) {
  13942. _context8.next = 5;
  13943. break;
  13944. }
  13945. throw new te({
  13946. message: "未登录CloudBase"
  13947. });
  13948. case 5:
  13949. o = {
  13950. refresh_token: i
  13951. };
  13952. _context8.next = 8;
  13953. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  13954. case 8:
  13955. a = _context8.sent;
  13956. if (!a.data.code) {
  13957. _context8.next = 21;
  13958. break;
  13959. }
  13960. _e10 = a.data.code;
  13961. if (!("SIGN_PARAM_INVALID" === _e10 || "REFRESH_TOKEN_EXPIRED" === _e10 || "INVALID_REFRESH_TOKEN" === _e10)) {
  13962. _context8.next = 20;
  13963. break;
  13964. }
  13965. if (!(this._cache.getStore(s) === We.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e10)) {
  13966. _context8.next = 19;
  13967. break;
  13968. }
  13969. _e11 = this._cache.getStore(r);
  13970. _t7 = this._cache.getStore(n);
  13971. _context8.next = 17;
  13972. return this.send("auth.signInAnonymously", {
  13973. anonymous_uuid: _e11,
  13974. refresh_token: _t7
  13975. });
  13976. case 17:
  13977. _s8 = _context8.sent;
  13978. return _context8.abrupt("return", (this.setRefreshToken(_s8.refresh_token), this._refreshAccessToken()));
  13979. case 19:
  13980. Me(Ke), this._cache.removeStore(n);
  13981. case 20:
  13982. throw new te({
  13983. code: a.data.code,
  13984. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  13985. });
  13986. case 21:
  13987. if (!a.data.access_token) {
  13988. _context8.next = 23;
  13989. break;
  13990. }
  13991. return _context8.abrupt("return", (Me(Be), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  13992. accessToken: a.data.access_token,
  13993. accessTokenExpire: a.data.access_token_expire
  13994. }));
  13995. case 23:
  13996. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  13997. case 24:
  13998. case "end":
  13999. return _context8.stop();
  14000. }
  14001. }
  14002. }, _callee8, this);
  14003. }));
  14004. function _refreshAccessToken() {
  14005. return _refreshAccessToken3.apply(this, arguments);
  14006. }
  14007. return _refreshAccessToken;
  14008. }()
  14009. }, {
  14010. key: "getAccessToken",
  14011. value: function () {
  14012. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  14013. var _this$_cache$keys2, e, t, n, s, r, i;
  14014. return _regenerator.default.wrap(function _callee9$(_context9) {
  14015. while (1) {
  14016. switch (_context9.prev = _context9.next) {
  14017. case 0:
  14018. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;
  14019. if (this._cache.getStore(n)) {
  14020. _context9.next = 3;
  14021. break;
  14022. }
  14023. throw new te({
  14024. message: "refresh token不存在,登录状态异常"
  14025. });
  14026. case 3:
  14027. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  14028. _context9.t0 = this._shouldRefreshAccessTokenHook;
  14029. if (!_context9.t0) {
  14030. _context9.next = 9;
  14031. break;
  14032. }
  14033. _context9.next = 8;
  14034. return this._shouldRefreshAccessTokenHook(s, r);
  14035. case 8:
  14036. _context9.t0 = !_context9.sent;
  14037. case 9:
  14038. _context9.t1 = _context9.t0;
  14039. if (!_context9.t1) {
  14040. _context9.next = 12;
  14041. break;
  14042. }
  14043. i = !1;
  14044. case 12:
  14045. return _context9.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  14046. accessToken: s,
  14047. accessTokenExpire: r
  14048. });
  14049. case 13:
  14050. case "end":
  14051. return _context9.stop();
  14052. }
  14053. }
  14054. }, _callee9, this);
  14055. }));
  14056. function getAccessToken() {
  14057. return _getAccessToken.apply(this, arguments);
  14058. }
  14059. return getAccessToken;
  14060. }()
  14061. }, {
  14062. key: "request",
  14063. value: function () {
  14064. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, t, n) {
  14065. var s, r, i, _e12, o, _e13, _e14, a, c, u, h, l, d, p, f, g;
  14066. return _regenerator.default.wrap(function _callee10$(_context10) {
  14067. while (1) {
  14068. switch (_context10.prev = _context10.next) {
  14069. case 0:
  14070. s = "x-tcb-trace_".concat(this.config.env);
  14071. r = "application/x-www-form-urlencoded";
  14072. i = _objectSpread({
  14073. action: e,
  14074. env: this.config.env,
  14075. dataVersion: "2019-08-16"
  14076. }, t);
  14077. if (!(-1 === He.indexOf(e))) {
  14078. _context10.next = 10;
  14079. break;
  14080. }
  14081. _e12 = this._cache.keys.refreshTokenKey;
  14082. _context10.t0 = this._cache.getStore(_e12);
  14083. if (!_context10.t0) {
  14084. _context10.next = 10;
  14085. break;
  14086. }
  14087. _context10.next = 9;
  14088. return this.getAccessToken();
  14089. case 9:
  14090. i.access_token = _context10.sent.accessToken;
  14091. case 10:
  14092. if ("storage.uploadFile" === e) {
  14093. o = new FormData();
  14094. for (_e13 in o) {
  14095. o.hasOwnProperty(_e13) && void 0 !== o[_e13] && o.append(_e13, i[_e13]);
  14096. }
  14097. r = "multipart/form-data";
  14098. } else {
  14099. r = "application/json", o = {};
  14100. for (_e14 in i) {
  14101. void 0 !== i[_e14] && (o[_e14] = i[_e14]);
  14102. }
  14103. }
  14104. a = {
  14105. headers: {
  14106. "content-type": r
  14107. }
  14108. };
  14109. n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  14110. c = this._localCache.getStore(s);
  14111. c && (a.headers["X-TCB-Trace"] = c);
  14112. u = t.parse, h = t.inQuery, l = t.search;
  14113. d = {
  14114. env: this.config.env
  14115. };
  14116. u && (d.parse = !0), h && (d = _objectSpread(_objectSpread({}, h), d));
  14117. p = function (e, t) {
  14118. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  14119. var s = /\?/.test(t);
  14120. var r = "";
  14121. for (var _e15 in n) {
  14122. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e15, "=").concat(encodeURIComponent(n[_e15]));
  14123. }
  14124. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  14125. }(fe, "//tcb-api.tencentcloudapi.com/web", d);
  14126. l && (p += l);
  14127. _context10.next = 22;
  14128. return this.post(_objectSpread({
  14129. url: p,
  14130. data: o
  14131. }, a));
  14132. case 22:
  14133. f = _context10.sent;
  14134. g = f.header && f.header["x-tcb-trace"];
  14135. if (!(g && this._localCache.setStore(s, g), 200 !== Number(f.status) && 200 !== Number(f.statusCode) || !f.data)) {
  14136. _context10.next = 26;
  14137. break;
  14138. }
  14139. throw new te({
  14140. code: "NETWORK_ERROR",
  14141. message: "network request error"
  14142. });
  14143. case 26:
  14144. return _context10.abrupt("return", f);
  14145. case 27:
  14146. case "end":
  14147. return _context10.stop();
  14148. }
  14149. }
  14150. }, _callee10, this);
  14151. }));
  14152. function request(_x5, _x6, _x7) {
  14153. return _request.apply(this, arguments);
  14154. }
  14155. return request;
  14156. }()
  14157. }, {
  14158. key: "send",
  14159. value: function () {
  14160. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(e) {
  14161. var t,
  14162. n,
  14163. _n7,
  14164. _args11 = arguments;
  14165. return _regenerator.default.wrap(function _callee11$(_context11) {
  14166. while (1) {
  14167. switch (_context11.prev = _context11.next) {
  14168. case 0:
  14169. t = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
  14170. _context11.next = 3;
  14171. return this.request(e, t, {
  14172. onUploadProgress: t.onUploadProgress
  14173. });
  14174. case 3:
  14175. n = _context11.sent;
  14176. if (!("ACCESS_TOKEN_EXPIRED" === n.data.code && -1 === He.indexOf(e))) {
  14177. _context11.next = 13;
  14178. break;
  14179. }
  14180. _context11.next = 7;
  14181. return this.refreshAccessToken();
  14182. case 7:
  14183. _context11.next = 9;
  14184. return this.request(e, t, {
  14185. onUploadProgress: t.onUploadProgress
  14186. });
  14187. case 9:
  14188. _n7 = _context11.sent;
  14189. if (!_n7.data.code) {
  14190. _context11.next = 12;
  14191. break;
  14192. }
  14193. throw new te({
  14194. code: _n7.data.code,
  14195. message: _n7.data.message
  14196. });
  14197. case 12:
  14198. return _context11.abrupt("return", _n7.data);
  14199. case 13:
  14200. if (!n.data.code) {
  14201. _context11.next = 15;
  14202. break;
  14203. }
  14204. throw new te({
  14205. code: n.data.code,
  14206. message: n.data.message
  14207. });
  14208. case 15:
  14209. return _context11.abrupt("return", n.data);
  14210. case 16:
  14211. case "end":
  14212. return _context11.stop();
  14213. }
  14214. }
  14215. }, _callee11, this);
  14216. }));
  14217. function send(_x8) {
  14218. return _send.apply(this, arguments);
  14219. }
  14220. return send;
  14221. }()
  14222. }, {
  14223. key: "setRefreshToken",
  14224. value: function setRefreshToken(e) {
  14225. var _this$_cache$keys3 = this._cache.keys,
  14226. t = _this$_cache$keys3.accessTokenKey,
  14227. n = _this$_cache$keys3.accessTokenExpireKey,
  14228. s = _this$_cache$keys3.refreshTokenKey;
  14229. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  14230. }
  14231. }]);
  14232. return Ge;
  14233. }();
  14234. var Ye = {};
  14235. function Qe(e) {
  14236. return Ye[e];
  14237. }
  14238. var Xe = /*#__PURE__*/function () {
  14239. function Xe(e) {
  14240. (0, _classCallCheck2.default)(this, Xe);
  14241. this.config = e, this._cache = Le(e.env), this._request = Qe(e.env);
  14242. }
  14243. (0, _createClass2.default)(Xe, [{
  14244. key: "setRefreshToken",
  14245. value: function setRefreshToken(e) {
  14246. var _this$_cache$keys4 = this._cache.keys,
  14247. t = _this$_cache$keys4.accessTokenKey,
  14248. n = _this$_cache$keys4.accessTokenExpireKey,
  14249. s = _this$_cache$keys4.refreshTokenKey;
  14250. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  14251. }
  14252. }, {
  14253. key: "setAccessToken",
  14254. value: function setAccessToken(e, t) {
  14255. var _this$_cache$keys5 = this._cache.keys,
  14256. n = _this$_cache$keys5.accessTokenKey,
  14257. s = _this$_cache$keys5.accessTokenExpireKey;
  14258. this._cache.setStore(n, e), this._cache.setStore(s, t);
  14259. }
  14260. }, {
  14261. key: "refreshUserInfo",
  14262. value: function () {
  14263. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  14264. var _yield$this$_request$, e;
  14265. return _regenerator.default.wrap(function _callee12$(_context12) {
  14266. while (1) {
  14267. switch (_context12.prev = _context12.next) {
  14268. case 0:
  14269. _context12.next = 2;
  14270. return this._request.send("auth.getUserInfo", {});
  14271. case 2:
  14272. _yield$this$_request$ = _context12.sent;
  14273. e = _yield$this$_request$.data;
  14274. return _context12.abrupt("return", (this.setLocalUserInfo(e), e));
  14275. case 5:
  14276. case "end":
  14277. return _context12.stop();
  14278. }
  14279. }
  14280. }, _callee12, this);
  14281. }));
  14282. function refreshUserInfo() {
  14283. return _refreshUserInfo.apply(this, arguments);
  14284. }
  14285. return refreshUserInfo;
  14286. }()
  14287. }, {
  14288. key: "setLocalUserInfo",
  14289. value: function setLocalUserInfo(e) {
  14290. var t = this._cache.keys.userInfoKey;
  14291. this._cache.setStore(t, e);
  14292. }
  14293. }]);
  14294. return Xe;
  14295. }();
  14296. var Ze = /*#__PURE__*/function () {
  14297. function Ze(e) {
  14298. (0, _classCallCheck2.default)(this, Ze);
  14299. if (!e) throw new te({
  14300. code: "PARAM_ERROR",
  14301. message: "envId is not defined"
  14302. });
  14303. this._envId = e, this._cache = Le(this._envId), this._request = Qe(this._envId), this.setUserInfo();
  14304. }
  14305. (0, _createClass2.default)(Ze, [{
  14306. key: "linkWithTicket",
  14307. value: function linkWithTicket(e) {
  14308. if ("string" != typeof e) throw new te({
  14309. code: "PARAM_ERROR",
  14310. message: "ticket must be string"
  14311. });
  14312. return this._request.send("auth.linkWithTicket", {
  14313. ticket: e
  14314. });
  14315. }
  14316. }, {
  14317. key: "linkWithRedirect",
  14318. value: function linkWithRedirect(e) {
  14319. e.signInWithRedirect();
  14320. }
  14321. }, {
  14322. key: "updatePassword",
  14323. value: function updatePassword(e, t) {
  14324. return this._request.send("auth.updatePassword", {
  14325. oldPassword: t,
  14326. newPassword: e
  14327. });
  14328. }
  14329. }, {
  14330. key: "updateEmail",
  14331. value: function updateEmail(e) {
  14332. return this._request.send("auth.updateEmail", {
  14333. newEmail: e
  14334. });
  14335. }
  14336. }, {
  14337. key: "updateUsername",
  14338. value: function updateUsername(e) {
  14339. if ("string" != typeof e) throw new te({
  14340. code: "PARAM_ERROR",
  14341. message: "username must be a string"
  14342. });
  14343. return this._request.send("auth.updateUsername", {
  14344. username: e
  14345. });
  14346. }
  14347. }, {
  14348. key: "getLinkedUidList",
  14349. value: function () {
  14350. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
  14351. var _yield$this$_request$2, e, t, n;
  14352. return _regenerator.default.wrap(function _callee13$(_context13) {
  14353. while (1) {
  14354. switch (_context13.prev = _context13.next) {
  14355. case 0:
  14356. _context13.next = 2;
  14357. return this._request.send("auth.getLinkedUidList", {});
  14358. case 2:
  14359. _yield$this$_request$2 = _context13.sent;
  14360. e = _yield$this$_request$2.data;
  14361. t = !1;
  14362. n = e.users;
  14363. return _context13.abrupt("return", (n.forEach(function (e) {
  14364. e.wxOpenId && e.wxPublicId && (t = !0);
  14365. }), {
  14366. users: n,
  14367. hasPrimaryUid: t
  14368. }));
  14369. case 7:
  14370. case "end":
  14371. return _context13.stop();
  14372. }
  14373. }
  14374. }, _callee13, this);
  14375. }));
  14376. function getLinkedUidList() {
  14377. return _getLinkedUidList.apply(this, arguments);
  14378. }
  14379. return getLinkedUidList;
  14380. }()
  14381. }, {
  14382. key: "setPrimaryUid",
  14383. value: function setPrimaryUid(e) {
  14384. return this._request.send("auth.setPrimaryUid", {
  14385. uid: e
  14386. });
  14387. }
  14388. }, {
  14389. key: "unlink",
  14390. value: function unlink(e) {
  14391. return this._request.send("auth.unlink", {
  14392. platform: e
  14393. });
  14394. }
  14395. }, {
  14396. key: "update",
  14397. value: function () {
  14398. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {
  14399. var t, n, s, r, i, o, _yield$this$_request$3, a;
  14400. return _regenerator.default.wrap(function _callee14$(_context14) {
  14401. while (1) {
  14402. switch (_context14.prev = _context14.next) {
  14403. case 0:
  14404. t = e.nickName;
  14405. n = e.gender;
  14406. s = e.avatarUrl;
  14407. r = e.province;
  14408. i = e.country;
  14409. o = e.city;
  14410. _context14.next = 8;
  14411. return this._request.send("auth.updateUserInfo", {
  14412. nickName: t,
  14413. gender: n,
  14414. avatarUrl: s,
  14415. province: r,
  14416. country: i,
  14417. city: o
  14418. });
  14419. case 8:
  14420. _yield$this$_request$3 = _context14.sent;
  14421. a = _yield$this$_request$3.data;
  14422. this.setLocalUserInfo(a);
  14423. case 11:
  14424. case "end":
  14425. return _context14.stop();
  14426. }
  14427. }
  14428. }, _callee14, this);
  14429. }));
  14430. function update(_x9) {
  14431. return _update.apply(this, arguments);
  14432. }
  14433. return update;
  14434. }()
  14435. }, {
  14436. key: "refresh",
  14437. value: function () {
  14438. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
  14439. var _yield$this$_request$4, e;
  14440. return _regenerator.default.wrap(function _callee15$(_context15) {
  14441. while (1) {
  14442. switch (_context15.prev = _context15.next) {
  14443. case 0:
  14444. _context15.next = 2;
  14445. return this._request.send("auth.getUserInfo", {});
  14446. case 2:
  14447. _yield$this$_request$4 = _context15.sent;
  14448. e = _yield$this$_request$4.data;
  14449. return _context15.abrupt("return", (this.setLocalUserInfo(e), e));
  14450. case 5:
  14451. case "end":
  14452. return _context15.stop();
  14453. }
  14454. }
  14455. }, _callee15, this);
  14456. }));
  14457. function refresh() {
  14458. return _refresh.apply(this, arguments);
  14459. }
  14460. return refresh;
  14461. }()
  14462. }, {
  14463. key: "setUserInfo",
  14464. value: function setUserInfo() {
  14465. var _this8 = this;
  14466. var e = this._cache.keys.userInfoKey,
  14467. t = this._cache.getStore(e);
  14468. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  14469. _this8[e] = t[e];
  14470. }), this.location = {
  14471. country: t.country,
  14472. province: t.province,
  14473. city: t.city
  14474. };
  14475. }
  14476. }, {
  14477. key: "setLocalUserInfo",
  14478. value: function setLocalUserInfo(e) {
  14479. var t = this._cache.keys.userInfoKey;
  14480. this._cache.setStore(t, e), this.setUserInfo();
  14481. }
  14482. }]);
  14483. return Ze;
  14484. }();
  14485. var et = /*#__PURE__*/function () {
  14486. function et(e) {
  14487. (0, _classCallCheck2.default)(this, et);
  14488. if (!e) throw new te({
  14489. code: "PARAM_ERROR",
  14490. message: "envId is not defined"
  14491. });
  14492. this._cache = Le(e);
  14493. var _this$_cache$keys6 = this._cache.keys,
  14494. t = _this$_cache$keys6.refreshTokenKey,
  14495. n = _this$_cache$keys6.accessTokenKey,
  14496. s = _this$_cache$keys6.accessTokenExpireKey,
  14497. r = this._cache.getStore(t),
  14498. i = this._cache.getStore(n),
  14499. o = this._cache.getStore(s);
  14500. this.credential = {
  14501. refreshToken: r,
  14502. accessToken: i,
  14503. accessTokenExpire: o
  14504. }, this.user = new Ze(e);
  14505. }
  14506. (0, _createClass2.default)(et, [{
  14507. key: "isAnonymousAuth",
  14508. get: function get() {
  14509. return this.loginType === We.ANONYMOUS;
  14510. }
  14511. }, {
  14512. key: "isCustomAuth",
  14513. get: function get() {
  14514. return this.loginType === We.CUSTOM;
  14515. }
  14516. }, {
  14517. key: "isWeixinAuth",
  14518. get: function get() {
  14519. return this.loginType === We.WECHAT || this.loginType === We.WECHAT_OPEN || this.loginType === We.WECHAT_PUBLIC;
  14520. }
  14521. }, {
  14522. key: "loginType",
  14523. get: function get() {
  14524. return this._cache.getStore(this._cache.keys.loginTypeKey);
  14525. }
  14526. }]);
  14527. return et;
  14528. }();
  14529. var tt = /*#__PURE__*/function (_Xe) {
  14530. (0, _inherits2.default)(tt, _Xe);
  14531. var _super4 = _createSuper(tt);
  14532. function tt() {
  14533. (0, _classCallCheck2.default)(this, tt);
  14534. return _super4.apply(this, arguments);
  14535. }
  14536. (0, _createClass2.default)(tt, [{
  14537. key: "signIn",
  14538. value: function () {
  14539. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
  14540. var _this$_cache$keys7, e, t, n, s, r, _e16;
  14541. return _regenerator.default.wrap(function _callee16$(_context16) {
  14542. while (1) {
  14543. switch (_context16.prev = _context16.next) {
  14544. case 0:
  14545. this._cache.updatePersistence("local");
  14546. _this$_cache$keys7 = this._cache.keys;
  14547. e = _this$_cache$keys7.anonymousUuidKey;
  14548. t = _this$_cache$keys7.refreshTokenKey;
  14549. n = this._cache.getStore(e) || void 0;
  14550. s = this._cache.getStore(t) || void 0;
  14551. _context16.next = 8;
  14552. return this._request.send("auth.signInAnonymously", {
  14553. anonymous_uuid: n,
  14554. refresh_token: s
  14555. });
  14556. case 8:
  14557. r = _context16.sent;
  14558. if (!(r.uuid && r.refresh_token)) {
  14559. _context16.next = 20;
  14560. break;
  14561. }
  14562. this._setAnonymousUUID(r.uuid);
  14563. this.setRefreshToken(r.refresh_token);
  14564. _context16.next = 14;
  14565. return this._request.refreshAccessToken();
  14566. case 14:
  14567. Me(Fe);
  14568. Me(je, {
  14569. env: this.config.env,
  14570. loginType: We.ANONYMOUS,
  14571. persistence: "local"
  14572. });
  14573. _e16 = new et(this.config.env);
  14574. _context16.next = 19;
  14575. return _e16.user.refresh();
  14576. case 19:
  14577. return _context16.abrupt("return", _e16);
  14578. case 20:
  14579. throw new te({
  14580. message: "匿名登录失败"
  14581. });
  14582. case 21:
  14583. case "end":
  14584. return _context16.stop();
  14585. }
  14586. }
  14587. }, _callee16, this);
  14588. }));
  14589. function signIn() {
  14590. return _signIn.apply(this, arguments);
  14591. }
  14592. return signIn;
  14593. }()
  14594. }, {
  14595. key: "linkAndRetrieveDataWithTicket",
  14596. value: function () {
  14597. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {
  14598. var _this$_cache$keys8, t, n, s, r, i;
  14599. return _regenerator.default.wrap(function _callee17$(_context17) {
  14600. while (1) {
  14601. switch (_context17.prev = _context17.next) {
  14602. case 0:
  14603. _this$_cache$keys8 = this._cache.keys;
  14604. t = _this$_cache$keys8.anonymousUuidKey;
  14605. n = _this$_cache$keys8.refreshTokenKey;
  14606. s = this._cache.getStore(t);
  14607. r = this._cache.getStore(n);
  14608. _context17.next = 7;
  14609. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  14610. anonymous_uuid: s,
  14611. refresh_token: r,
  14612. ticket: e
  14613. });
  14614. case 7:
  14615. i = _context17.sent;
  14616. if (!i.refresh_token) {
  14617. _context17.next = 16;
  14618. break;
  14619. }
  14620. this._clearAnonymousUUID();
  14621. this.setRefreshToken(i.refresh_token);
  14622. _context17.next = 13;
  14623. return this._request.refreshAccessToken();
  14624. case 13:
  14625. Me($e, {
  14626. env: this.config.env
  14627. });
  14628. Me(je, {
  14629. loginType: We.CUSTOM,
  14630. persistence: "local"
  14631. });
  14632. return _context17.abrupt("return", {
  14633. credential: {
  14634. refreshToken: i.refresh_token
  14635. }
  14636. });
  14637. case 16:
  14638. throw new te({
  14639. message: "匿名转化失败"
  14640. });
  14641. case 17:
  14642. case "end":
  14643. return _context17.stop();
  14644. }
  14645. }
  14646. }, _callee17, this);
  14647. }));
  14648. function linkAndRetrieveDataWithTicket(_x10) {
  14649. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  14650. }
  14651. return linkAndRetrieveDataWithTicket;
  14652. }()
  14653. }, {
  14654. key: "_setAnonymousUUID",
  14655. value: function _setAnonymousUUID(e) {
  14656. var _this$_cache$keys9 = this._cache.keys,
  14657. t = _this$_cache$keys9.anonymousUuidKey,
  14658. n = _this$_cache$keys9.loginTypeKey;
  14659. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, We.ANONYMOUS);
  14660. }
  14661. }, {
  14662. key: "_clearAnonymousUUID",
  14663. value: function _clearAnonymousUUID() {
  14664. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  14665. }
  14666. }]);
  14667. return tt;
  14668. }(Xe);
  14669. var nt = /*#__PURE__*/function (_Xe2) {
  14670. (0, _inherits2.default)(nt, _Xe2);
  14671. var _super5 = _createSuper(nt);
  14672. function nt() {
  14673. (0, _classCallCheck2.default)(this, nt);
  14674. return _super5.apply(this, arguments);
  14675. }
  14676. (0, _createClass2.default)(nt, [{
  14677. key: "signIn",
  14678. value: function () {
  14679. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(e) {
  14680. var t, n;
  14681. return _regenerator.default.wrap(function _callee18$(_context18) {
  14682. while (1) {
  14683. switch (_context18.prev = _context18.next) {
  14684. case 0:
  14685. if (!("string" != typeof e)) {
  14686. _context18.next = 2;
  14687. break;
  14688. }
  14689. throw new te({
  14690. code: "PARAM_ERROR",
  14691. message: "ticket must be a string"
  14692. });
  14693. case 2:
  14694. t = this._cache.keys.refreshTokenKey;
  14695. _context18.next = 5;
  14696. return this._request.send("auth.signInWithTicket", {
  14697. ticket: e,
  14698. refresh_token: this._cache.getStore(t) || ""
  14699. });
  14700. case 5:
  14701. n = _context18.sent;
  14702. if (!n.refresh_token) {
  14703. _context18.next = 15;
  14704. break;
  14705. }
  14706. this.setRefreshToken(n.refresh_token);
  14707. _context18.next = 10;
  14708. return this._request.refreshAccessToken();
  14709. case 10:
  14710. Me(Fe);
  14711. Me(je, {
  14712. env: this.config.env,
  14713. loginType: We.CUSTOM,
  14714. persistence: this.config.persistence
  14715. });
  14716. _context18.next = 14;
  14717. return this.refreshUserInfo();
  14718. case 14:
  14719. return _context18.abrupt("return", new et(this.config.env));
  14720. case 15:
  14721. throw new te({
  14722. message: "自定义登录失败"
  14723. });
  14724. case 16:
  14725. case "end":
  14726. return _context18.stop();
  14727. }
  14728. }
  14729. }, _callee18, this);
  14730. }));
  14731. function signIn(_x11) {
  14732. return _signIn2.apply(this, arguments);
  14733. }
  14734. return signIn;
  14735. }()
  14736. }]);
  14737. return nt;
  14738. }(Xe);
  14739. var st = /*#__PURE__*/function (_Xe3) {
  14740. (0, _inherits2.default)(st, _Xe3);
  14741. var _super6 = _createSuper(st);
  14742. function st() {
  14743. (0, _classCallCheck2.default)(this, st);
  14744. return _super6.apply(this, arguments);
  14745. }
  14746. (0, _createClass2.default)(st, [{
  14747. key: "signIn",
  14748. value: function () {
  14749. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t) {
  14750. var n, s, r, i, o;
  14751. return _regenerator.default.wrap(function _callee19$(_context19) {
  14752. while (1) {
  14753. switch (_context19.prev = _context19.next) {
  14754. case 0:
  14755. if (!("string" != typeof e)) {
  14756. _context19.next = 2;
  14757. break;
  14758. }
  14759. throw new te({
  14760. code: "PARAM_ERROR",
  14761. message: "email must be a string"
  14762. });
  14763. case 2:
  14764. n = this._cache.keys.refreshTokenKey;
  14765. _context19.next = 5;
  14766. return this._request.send("auth.signIn", {
  14767. loginType: "EMAIL",
  14768. email: e,
  14769. password: t,
  14770. refresh_token: this._cache.getStore(n) || ""
  14771. });
  14772. case 5:
  14773. s = _context19.sent;
  14774. r = s.refresh_token;
  14775. i = s.access_token;
  14776. o = s.access_token_expire;
  14777. if (!r) {
  14778. _context19.next = 22;
  14779. break;
  14780. }
  14781. this.setRefreshToken(r);
  14782. if (!(i && o)) {
  14783. _context19.next = 15;
  14784. break;
  14785. }
  14786. this.setAccessToken(i, o);
  14787. _context19.next = 17;
  14788. break;
  14789. case 15:
  14790. _context19.next = 17;
  14791. return this._request.refreshAccessToken();
  14792. case 17:
  14793. _context19.next = 19;
  14794. return this.refreshUserInfo();
  14795. case 19:
  14796. Me(Fe);
  14797. Me(je, {
  14798. env: this.config.env,
  14799. loginType: We.EMAIL,
  14800. persistence: this.config.persistence
  14801. });
  14802. return _context19.abrupt("return", new et(this.config.env));
  14803. case 22:
  14804. throw s.code ? new te({
  14805. code: s.code,
  14806. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  14807. }) : new te({
  14808. message: "邮箱登录失败"
  14809. });
  14810. case 23:
  14811. case "end":
  14812. return _context19.stop();
  14813. }
  14814. }
  14815. }, _callee19, this);
  14816. }));
  14817. function signIn(_x12, _x13) {
  14818. return _signIn3.apply(this, arguments);
  14819. }
  14820. return signIn;
  14821. }()
  14822. }, {
  14823. key: "activate",
  14824. value: function () {
  14825. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e) {
  14826. return _regenerator.default.wrap(function _callee20$(_context20) {
  14827. while (1) {
  14828. switch (_context20.prev = _context20.next) {
  14829. case 0:
  14830. return _context20.abrupt("return", this._request.send("auth.activateEndUserMail", {
  14831. token: e
  14832. }));
  14833. case 1:
  14834. case "end":
  14835. return _context20.stop();
  14836. }
  14837. }
  14838. }, _callee20, this);
  14839. }));
  14840. function activate(_x14) {
  14841. return _activate.apply(this, arguments);
  14842. }
  14843. return activate;
  14844. }()
  14845. }, {
  14846. key: "resetPasswordWithToken",
  14847. value: function () {
  14848. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {
  14849. return _regenerator.default.wrap(function _callee21$(_context21) {
  14850. while (1) {
  14851. switch (_context21.prev = _context21.next) {
  14852. case 0:
  14853. return _context21.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  14854. token: e,
  14855. newPassword: t
  14856. }));
  14857. case 1:
  14858. case "end":
  14859. return _context21.stop();
  14860. }
  14861. }
  14862. }, _callee21, this);
  14863. }));
  14864. function resetPasswordWithToken(_x15, _x16) {
  14865. return _resetPasswordWithToken.apply(this, arguments);
  14866. }
  14867. return resetPasswordWithToken;
  14868. }()
  14869. }]);
  14870. return st;
  14871. }(Xe);
  14872. var rt = /*#__PURE__*/function (_Xe4) {
  14873. (0, _inherits2.default)(rt, _Xe4);
  14874. var _super7 = _createSuper(rt);
  14875. function rt() {
  14876. (0, _classCallCheck2.default)(this, rt);
  14877. return _super7.apply(this, arguments);
  14878. }
  14879. (0, _createClass2.default)(rt, [{
  14880. key: "signIn",
  14881. value: function () {
  14882. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(e, t) {
  14883. var n, s, r, i, o;
  14884. return _regenerator.default.wrap(function _callee22$(_context22) {
  14885. while (1) {
  14886. switch (_context22.prev = _context22.next) {
  14887. case 0:
  14888. if (!("string" != typeof e)) {
  14889. _context22.next = 2;
  14890. break;
  14891. }
  14892. throw new te({
  14893. code: "PARAM_ERROR",
  14894. message: "username must be a string"
  14895. });
  14896. case 2:
  14897. "string" != typeof t && (t = "", console.warn("password is empty"));
  14898. n = this._cache.keys.refreshTokenKey;
  14899. _context22.next = 6;
  14900. return this._request.send("auth.signIn", {
  14901. loginType: We.USERNAME,
  14902. username: e,
  14903. password: t,
  14904. refresh_token: this._cache.getStore(n) || ""
  14905. });
  14906. case 6:
  14907. s = _context22.sent;
  14908. r = s.refresh_token;
  14909. i = s.access_token_expire;
  14910. o = s.access_token;
  14911. if (!r) {
  14912. _context22.next = 23;
  14913. break;
  14914. }
  14915. this.setRefreshToken(r);
  14916. if (!(o && i)) {
  14917. _context22.next = 16;
  14918. break;
  14919. }
  14920. this.setAccessToken(o, i);
  14921. _context22.next = 18;
  14922. break;
  14923. case 16:
  14924. _context22.next = 18;
  14925. return this._request.refreshAccessToken();
  14926. case 18:
  14927. _context22.next = 20;
  14928. return this.refreshUserInfo();
  14929. case 20:
  14930. Me(Fe);
  14931. Me(je, {
  14932. env: this.config.env,
  14933. loginType: We.USERNAME,
  14934. persistence: this.config.persistence
  14935. });
  14936. return _context22.abrupt("return", new et(this.config.env));
  14937. case 23:
  14938. throw s.code ? new te({
  14939. code: s.code,
  14940. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  14941. }) : new te({
  14942. message: "用户名密码登录失败"
  14943. });
  14944. case 24:
  14945. case "end":
  14946. return _context22.stop();
  14947. }
  14948. }
  14949. }, _callee22, this);
  14950. }));
  14951. function signIn(_x17, _x18) {
  14952. return _signIn4.apply(this, arguments);
  14953. }
  14954. return signIn;
  14955. }()
  14956. }]);
  14957. return rt;
  14958. }(Xe);
  14959. var it = /*#__PURE__*/function () {
  14960. function it(e) {
  14961. (0, _classCallCheck2.default)(this, it);
  14962. this.config = e, this._cache = Le(e.env), this._request = Qe(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), De(je, this._onLoginTypeChanged);
  14963. }
  14964. (0, _createClass2.default)(it, [{
  14965. key: "currentUser",
  14966. get: function get() {
  14967. var e = this.hasLoginState();
  14968. return e && e.user || null;
  14969. }
  14970. }, {
  14971. key: "loginType",
  14972. get: function get() {
  14973. return this._cache.getStore(this._cache.keys.loginTypeKey);
  14974. }
  14975. }, {
  14976. key: "anonymousAuthProvider",
  14977. value: function anonymousAuthProvider() {
  14978. return new tt(this.config);
  14979. }
  14980. }, {
  14981. key: "customAuthProvider",
  14982. value: function customAuthProvider() {
  14983. return new nt(this.config);
  14984. }
  14985. }, {
  14986. key: "emailAuthProvider",
  14987. value: function emailAuthProvider() {
  14988. return new st(this.config);
  14989. }
  14990. }, {
  14991. key: "usernameAuthProvider",
  14992. value: function usernameAuthProvider() {
  14993. return new rt(this.config);
  14994. }
  14995. }, {
  14996. key: "signInAnonymously",
  14997. value: function () {
  14998. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23() {
  14999. return _regenerator.default.wrap(function _callee23$(_context23) {
  15000. while (1) {
  15001. switch (_context23.prev = _context23.next) {
  15002. case 0:
  15003. return _context23.abrupt("return", new tt(this.config).signIn());
  15004. case 1:
  15005. case "end":
  15006. return _context23.stop();
  15007. }
  15008. }
  15009. }, _callee23, this);
  15010. }));
  15011. function signInAnonymously() {
  15012. return _signInAnonymously.apply(this, arguments);
  15013. }
  15014. return signInAnonymously;
  15015. }()
  15016. }, {
  15017. key: "signInWithEmailAndPassword",
  15018. value: function () {
  15019. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(e, t) {
  15020. return _regenerator.default.wrap(function _callee24$(_context24) {
  15021. while (1) {
  15022. switch (_context24.prev = _context24.next) {
  15023. case 0:
  15024. return _context24.abrupt("return", new st(this.config).signIn(e, t));
  15025. case 1:
  15026. case "end":
  15027. return _context24.stop();
  15028. }
  15029. }
  15030. }, _callee24, this);
  15031. }));
  15032. function signInWithEmailAndPassword(_x19, _x20) {
  15033. return _signInWithEmailAndPassword.apply(this, arguments);
  15034. }
  15035. return signInWithEmailAndPassword;
  15036. }()
  15037. }, {
  15038. key: "signInWithUsernameAndPassword",
  15039. value: function signInWithUsernameAndPassword(e, t) {
  15040. return new rt(this.config).signIn(e, t);
  15041. }
  15042. }, {
  15043. key: "linkAndRetrieveDataWithTicket",
  15044. value: function () {
  15045. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(e) {
  15046. return _regenerator.default.wrap(function _callee25$(_context25) {
  15047. while (1) {
  15048. switch (_context25.prev = _context25.next) {
  15049. case 0:
  15050. this._anonymousAuthProvider || (this._anonymousAuthProvider = new tt(this.config)), De($e, this._onAnonymousConverted);
  15051. _context25.next = 3;
  15052. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  15053. case 3:
  15054. return _context25.abrupt("return", _context25.sent);
  15055. case 4:
  15056. case "end":
  15057. return _context25.stop();
  15058. }
  15059. }
  15060. }, _callee25, this);
  15061. }));
  15062. function linkAndRetrieveDataWithTicket(_x21) {
  15063. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  15064. }
  15065. return linkAndRetrieveDataWithTicket;
  15066. }()
  15067. }, {
  15068. key: "signOut",
  15069. value: function () {
  15070. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26() {
  15071. var _this$_cache$keys10, e, t, n, s, r;
  15072. return _regenerator.default.wrap(function _callee26$(_context26) {
  15073. while (1) {
  15074. switch (_context26.prev = _context26.next) {
  15075. case 0:
  15076. if (!(this.loginType === We.ANONYMOUS)) {
  15077. _context26.next = 2;
  15078. break;
  15079. }
  15080. throw new te({
  15081. message: "匿名用户不支持登出操作"
  15082. });
  15083. case 2:
  15084. _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);
  15085. if (s) {
  15086. _context26.next = 5;
  15087. break;
  15088. }
  15089. return _context26.abrupt("return");
  15090. case 5:
  15091. _context26.next = 7;
  15092. return this._request.send("auth.logout", {
  15093. refresh_token: s
  15094. });
  15095. case 7:
  15096. r = _context26.sent;
  15097. return _context26.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), Me(Fe), Me(je, {
  15098. env: this.config.env,
  15099. loginType: We.NULL,
  15100. persistence: this.config.persistence
  15101. }), r));
  15102. case 9:
  15103. case "end":
  15104. return _context26.stop();
  15105. }
  15106. }
  15107. }, _callee26, this);
  15108. }));
  15109. function signOut() {
  15110. return _signOut.apply(this, arguments);
  15111. }
  15112. return signOut;
  15113. }()
  15114. }, {
  15115. key: "signUpWithEmailAndPassword",
  15116. value: function () {
  15117. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e, t) {
  15118. return _regenerator.default.wrap(function _callee27$(_context27) {
  15119. while (1) {
  15120. switch (_context27.prev = _context27.next) {
  15121. case 0:
  15122. return _context27.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  15123. email: e,
  15124. password: t
  15125. }));
  15126. case 1:
  15127. case "end":
  15128. return _context27.stop();
  15129. }
  15130. }
  15131. }, _callee27, this);
  15132. }));
  15133. function signUpWithEmailAndPassword(_x22, _x23) {
  15134. return _signUpWithEmailAndPassword.apply(this, arguments);
  15135. }
  15136. return signUpWithEmailAndPassword;
  15137. }()
  15138. }, {
  15139. key: "sendPasswordResetEmail",
  15140. value: function () {
  15141. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(e) {
  15142. return _regenerator.default.wrap(function _callee28$(_context28) {
  15143. while (1) {
  15144. switch (_context28.prev = _context28.next) {
  15145. case 0:
  15146. return _context28.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  15147. email: e
  15148. }));
  15149. case 1:
  15150. case "end":
  15151. return _context28.stop();
  15152. }
  15153. }
  15154. }, _callee28, this);
  15155. }));
  15156. function sendPasswordResetEmail(_x24) {
  15157. return _sendPasswordResetEmail.apply(this, arguments);
  15158. }
  15159. return sendPasswordResetEmail;
  15160. }()
  15161. }, {
  15162. key: "onLoginStateChanged",
  15163. value: function onLoginStateChanged(e) {
  15164. var _this9 = this;
  15165. De(Fe, function () {
  15166. var t = _this9.hasLoginState();
  15167. e.call(_this9, t);
  15168. });
  15169. var t = this.hasLoginState();
  15170. e.call(this, t);
  15171. }
  15172. }, {
  15173. key: "onLoginStateExpired",
  15174. value: function onLoginStateExpired(e) {
  15175. De(Ke, e.bind(this));
  15176. }
  15177. }, {
  15178. key: "onAccessTokenRefreshed",
  15179. value: function onAccessTokenRefreshed(e) {
  15180. De(Be, e.bind(this));
  15181. }
  15182. }, {
  15183. key: "onAnonymousConverted",
  15184. value: function onAnonymousConverted(e) {
  15185. De($e, e.bind(this));
  15186. }
  15187. }, {
  15188. key: "onLoginTypeChanged",
  15189. value: function onLoginTypeChanged(e) {
  15190. var _this10 = this;
  15191. De(je, function () {
  15192. var t = _this10.hasLoginState();
  15193. e.call(_this10, t);
  15194. });
  15195. }
  15196. }, {
  15197. key: "getAccessToken",
  15198. value: function () {
  15199. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29() {
  15200. return _regenerator.default.wrap(function _callee29$(_context29) {
  15201. while (1) {
  15202. switch (_context29.prev = _context29.next) {
  15203. case 0:
  15204. _context29.next = 2;
  15205. return this._request.getAccessToken();
  15206. case 2:
  15207. _context29.t0 = _context29.sent.accessToken;
  15208. _context29.t1 = this.config.env;
  15209. return _context29.abrupt("return", {
  15210. accessToken: _context29.t0,
  15211. env: _context29.t1
  15212. });
  15213. case 5:
  15214. case "end":
  15215. return _context29.stop();
  15216. }
  15217. }
  15218. }, _callee29, this);
  15219. }));
  15220. function getAccessToken() {
  15221. return _getAccessToken2.apply(this, arguments);
  15222. }
  15223. return getAccessToken;
  15224. }()
  15225. }, {
  15226. key: "hasLoginState",
  15227. value: function hasLoginState() {
  15228. var e = this._cache.keys.refreshTokenKey;
  15229. return this._cache.getStore(e) ? new et(this.config.env) : null;
  15230. }
  15231. }, {
  15232. key: "isUsernameRegistered",
  15233. value: function () {
  15234. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e) {
  15235. var _yield$this$_request$5, t;
  15236. return _regenerator.default.wrap(function _callee30$(_context30) {
  15237. while (1) {
  15238. switch (_context30.prev = _context30.next) {
  15239. case 0:
  15240. if (!("string" != typeof e)) {
  15241. _context30.next = 2;
  15242. break;
  15243. }
  15244. throw new te({
  15245. code: "PARAM_ERROR",
  15246. message: "username must be a string"
  15247. });
  15248. case 2:
  15249. _context30.next = 4;
  15250. return this._request.send("auth.isUsernameRegistered", {
  15251. username: e
  15252. });
  15253. case 4:
  15254. _yield$this$_request$5 = _context30.sent;
  15255. t = _yield$this$_request$5.data;
  15256. return _context30.abrupt("return", t && t.isRegistered);
  15257. case 7:
  15258. case "end":
  15259. return _context30.stop();
  15260. }
  15261. }
  15262. }, _callee30, this);
  15263. }));
  15264. function isUsernameRegistered(_x25) {
  15265. return _isUsernameRegistered.apply(this, arguments);
  15266. }
  15267. return isUsernameRegistered;
  15268. }()
  15269. }, {
  15270. key: "getLoginState",
  15271. value: function getLoginState() {
  15272. return Promise.resolve(this.hasLoginState());
  15273. }
  15274. }, {
  15275. key: "signInWithTicket",
  15276. value: function () {
  15277. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(e) {
  15278. return _regenerator.default.wrap(function _callee31$(_context31) {
  15279. while (1) {
  15280. switch (_context31.prev = _context31.next) {
  15281. case 0:
  15282. return _context31.abrupt("return", new nt(this.config).signIn(e));
  15283. case 1:
  15284. case "end":
  15285. return _context31.stop();
  15286. }
  15287. }
  15288. }, _callee31, this);
  15289. }));
  15290. function signInWithTicket(_x26) {
  15291. return _signInWithTicket.apply(this, arguments);
  15292. }
  15293. return signInWithTicket;
  15294. }()
  15295. }, {
  15296. key: "shouldRefreshAccessToken",
  15297. value: function shouldRefreshAccessToken(e) {
  15298. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  15299. }
  15300. }, {
  15301. key: "getUserInfo",
  15302. value: function getUserInfo() {
  15303. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  15304. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  15305. requestId: e.seqId
  15306. });
  15307. });
  15308. }
  15309. }, {
  15310. key: "getAuthHeader",
  15311. value: function getAuthHeader() {
  15312. var _this$_cache$keys11 = this._cache.keys,
  15313. e = _this$_cache$keys11.refreshTokenKey,
  15314. t = _this$_cache$keys11.accessTokenKey,
  15315. n = this._cache.getStore(e);
  15316. return {
  15317. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  15318. };
  15319. }
  15320. }, {
  15321. key: "_onAnonymousConverted",
  15322. value: function _onAnonymousConverted(e) {
  15323. var t = e.data.env;
  15324. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  15325. }
  15326. }, {
  15327. key: "_onLoginTypeChanged",
  15328. value: function _onLoginTypeChanged(e) {
  15329. var _e$data = e.data,
  15330. t = _e$data.loginType,
  15331. n = _e$data.persistence,
  15332. s = _e$data.env;
  15333. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  15334. }
  15335. }]);
  15336. return it;
  15337. }();
  15338. var ot = function ot(e, t) {
  15339. t = t || ve();
  15340. var n = Qe(this.config.env),
  15341. s = e.cloudPath,
  15342. r = e.filePath,
  15343. i = e.onUploadProgress,
  15344. _e$fileType = e.fileType,
  15345. o = _e$fileType === void 0 ? "image" : _e$fileType;
  15346. return n.send("storage.getUploadMetadata", {
  15347. path: s
  15348. }).then(function (e) {
  15349. var _e$data2 = e.data,
  15350. a = _e$data2.url,
  15351. c = _e$data2.authorization,
  15352. u = _e$data2.token,
  15353. h = _e$data2.fileId,
  15354. l = _e$data2.cosFileId,
  15355. d = e.requestId,
  15356. p = {
  15357. key: s,
  15358. signature: c,
  15359. "x-cos-meta-fileid": l,
  15360. success_action_status: "201",
  15361. "x-cos-security-token": u
  15362. };
  15363. n.upload({
  15364. url: a,
  15365. data: p,
  15366. file: r,
  15367. name: s,
  15368. fileType: o,
  15369. onUploadProgress: i
  15370. }).then(function (e) {
  15371. 201 === e.statusCode ? t(null, {
  15372. fileID: h,
  15373. requestId: d
  15374. }) : t(new te({
  15375. code: "STORAGE_REQUEST_FAIL",
  15376. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  15377. }));
  15378. }).catch(function (e) {
  15379. t(e);
  15380. });
  15381. }).catch(function (e) {
  15382. t(e);
  15383. }), t.promise;
  15384. },
  15385. at = function at(e, t) {
  15386. t = t || ve();
  15387. var n = Qe(this.config.env),
  15388. s = e.cloudPath;
  15389. return n.send("storage.getUploadMetadata", {
  15390. path: s
  15391. }).then(function (e) {
  15392. t(null, e);
  15393. }).catch(function (e) {
  15394. t(e);
  15395. }), t.promise;
  15396. },
  15397. ct = function ct(_ref7, t) {
  15398. var e = _ref7.fileList;
  15399. if (t = t || ve(), !e || !Array.isArray(e)) return {
  15400. code: "INVALID_PARAM",
  15401. message: "fileList必须是非空的数组"
  15402. };
  15403. var _iterator3 = _createForOfIteratorHelper(e),
  15404. _step3;
  15405. try {
  15406. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  15407. var _t8 = _step3.value;
  15408. if (!_t8 || "string" != typeof _t8) return {
  15409. code: "INVALID_PARAM",
  15410. message: "fileList的元素必须是非空的字符串"
  15411. };
  15412. }
  15413. } catch (err) {
  15414. _iterator3.e(err);
  15415. } finally {
  15416. _iterator3.f();
  15417. }
  15418. var n = {
  15419. fileid_list: e
  15420. };
  15421. return Qe(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  15422. e.code ? t(null, e) : t(null, {
  15423. fileList: e.data.delete_list,
  15424. requestId: e.requestId
  15425. });
  15426. }).catch(function (e) {
  15427. t(e);
  15428. }), t.promise;
  15429. },
  15430. ut = function ut(_ref8, t) {
  15431. var e = _ref8.fileList;
  15432. t = t || ve(), e && Array.isArray(e) || t(null, {
  15433. code: "INVALID_PARAM",
  15434. message: "fileList必须是非空的数组"
  15435. });
  15436. var n = [];
  15437. var _iterator4 = _createForOfIteratorHelper(e),
  15438. _step4;
  15439. try {
  15440. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  15441. var _s9 = _step4.value;
  15442. "object" == (0, _typeof2.default)(_s9) ? (_s9.hasOwnProperty("fileID") && _s9.hasOwnProperty("maxAge") || t(null, {
  15443. code: "INVALID_PARAM",
  15444. message: "fileList的元素必须是包含fileID和maxAge的对象"
  15445. }), n.push({
  15446. fileid: _s9.fileID,
  15447. max_age: _s9.maxAge
  15448. })) : "string" == typeof _s9 ? n.push({
  15449. fileid: _s9
  15450. }) : t(null, {
  15451. code: "INVALID_PARAM",
  15452. message: "fileList的元素必须是字符串"
  15453. });
  15454. }
  15455. } catch (err) {
  15456. _iterator4.e(err);
  15457. } finally {
  15458. _iterator4.f();
  15459. }
  15460. var s = {
  15461. file_list: n
  15462. };
  15463. return Qe(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  15464. e.code ? t(null, e) : t(null, {
  15465. fileList: e.data.download_list,
  15466. requestId: e.requestId
  15467. });
  15468. }).catch(function (e) {
  15469. t(e);
  15470. }), t.promise;
  15471. },
  15472. ht = /*#__PURE__*/function () {
  15473. var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(_ref9, t) {
  15474. var e, n, s, r;
  15475. return _regenerator.default.wrap(function _callee32$(_context32) {
  15476. while (1) {
  15477. switch (_context32.prev = _context32.next) {
  15478. case 0:
  15479. e = _ref9.fileID;
  15480. _context32.next = 3;
  15481. return ut.call(this, {
  15482. fileList: [{
  15483. fileID: e,
  15484. maxAge: 600
  15485. }]
  15486. });
  15487. case 3:
  15488. n = _context32.sent.fileList[0];
  15489. if (!("SUCCESS" !== n.code)) {
  15490. _context32.next = 6;
  15491. break;
  15492. }
  15493. return _context32.abrupt("return", t ? t(n) : new Promise(function (e) {
  15494. e(n);
  15495. }));
  15496. case 6:
  15497. s = Qe(this.config.env);
  15498. r = n.download_url;
  15499. if (!(r = encodeURI(r), !t)) {
  15500. _context32.next = 10;
  15501. break;
  15502. }
  15503. return _context32.abrupt("return", s.download({
  15504. url: r
  15505. }));
  15506. case 10:
  15507. _context32.t0 = t;
  15508. _context32.next = 13;
  15509. return s.download({
  15510. url: r
  15511. });
  15512. case 13:
  15513. _context32.t1 = _context32.sent;
  15514. (0, _context32.t0)(_context32.t1);
  15515. case 15:
  15516. case "end":
  15517. return _context32.stop();
  15518. }
  15519. }
  15520. }, _callee32, this);
  15521. }));
  15522. return function ht(_x27, _x28) {
  15523. return _ref10.apply(this, arguments);
  15524. };
  15525. }(),
  15526. lt = function lt(_ref11, i) {
  15527. var e = _ref11.name,
  15528. t = _ref11.data,
  15529. n = _ref11.query,
  15530. s = _ref11.parse,
  15531. r = _ref11.search;
  15532. var o = i || ve();
  15533. var a;
  15534. try {
  15535. a = t ? JSON.stringify(t) : "";
  15536. } catch (e) {
  15537. return Promise.reject(e);
  15538. }
  15539. if (!e) return Promise.reject(new te({
  15540. code: "PARAM_ERROR",
  15541. message: "函数名不能为空"
  15542. }));
  15543. var c = {
  15544. inQuery: n,
  15545. parse: s,
  15546. search: r,
  15547. function_name: e,
  15548. request_data: a
  15549. };
  15550. return Qe(this.config.env).send("functions.invokeFunction", c).then(function (e) {
  15551. if (e.code) o(null, e);else {
  15552. var _t9 = e.data.response_data;
  15553. if (s) o(null, {
  15554. result: _t9,
  15555. requestId: e.requestId
  15556. });else try {
  15557. _t9 = JSON.parse(e.data.response_data), o(null, {
  15558. result: _t9,
  15559. requestId: e.requestId
  15560. });
  15561. } catch (e) {
  15562. o(new te({
  15563. message: "response data must be json"
  15564. }));
  15565. }
  15566. }
  15567. return o.promise;
  15568. }).catch(function (e) {
  15569. o(e);
  15570. }), o.promise;
  15571. },
  15572. dt = {
  15573. timeout: 15e3,
  15574. persistence: "session"
  15575. },
  15576. pt = {};
  15577. var ft = /*#__PURE__*/function () {
  15578. function ft(e) {
  15579. (0, _classCallCheck2.default)(this, ft);
  15580. this.config = e || this.config, this.authObj = void 0;
  15581. }
  15582. (0, _createClass2.default)(ft, [{
  15583. key: "init",
  15584. value: function init(e) {
  15585. switch (Ae.adapter || (this.requestClient = new Ae.adapter.reqClass({
  15586. timeout: e.timeout || 5e3,
  15587. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  15588. })), this.config = _objectSpread(_objectSpread({}, dt), e), !0) {
  15589. case this.config.timeout > 6e5:
  15590. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;
  15591. break;
  15592. case this.config.timeout < 100:
  15593. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  15594. }
  15595. return new ft(this.config);
  15596. }
  15597. }, {
  15598. key: "auth",
  15599. value: function auth() {
  15600. var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15601. e = _ref12.persistence;
  15602. if (this.authObj) return this.authObj;
  15603. var t = e || Ae.adapter.primaryStorage || dt.persistence;
  15604. var n;
  15605. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  15606. var t = e.env;
  15607. Oe[t] = new xe(e), Ee[t] = new xe(_objectSpread(_objectSpread({}, e), {}, {
  15608. persistence: "local"
  15609. }));
  15610. }(this.config), n = this.config, Ye[n.env] = new Ge(n), this.authObj = new it(this.config), this.authObj;
  15611. }
  15612. }, {
  15613. key: "on",
  15614. value: function on(e, t) {
  15615. return De.apply(this, [e, t]);
  15616. }
  15617. }, {
  15618. key: "off",
  15619. value: function off(e, t) {
  15620. return qe.apply(this, [e, t]);
  15621. }
  15622. }, {
  15623. key: "callFunction",
  15624. value: function callFunction(e, t) {
  15625. return lt.apply(this, [e, t]);
  15626. }
  15627. }, {
  15628. key: "deleteFile",
  15629. value: function deleteFile(e, t) {
  15630. return ct.apply(this, [e, t]);
  15631. }
  15632. }, {
  15633. key: "getTempFileURL",
  15634. value: function getTempFileURL(e, t) {
  15635. return ut.apply(this, [e, t]);
  15636. }
  15637. }, {
  15638. key: "downloadFile",
  15639. value: function downloadFile(e, t) {
  15640. return ht.apply(this, [e, t]);
  15641. }
  15642. }, {
  15643. key: "uploadFile",
  15644. value: function uploadFile(e, t) {
  15645. return ot.apply(this, [e, t]);
  15646. }
  15647. }, {
  15648. key: "getUploadMetadata",
  15649. value: function getUploadMetadata(e, t) {
  15650. return at.apply(this, [e, t]);
  15651. }
  15652. }, {
  15653. key: "registerExtension",
  15654. value: function registerExtension(e) {
  15655. pt[e.name] = e;
  15656. }
  15657. }, {
  15658. key: "invokeExtension",
  15659. value: function () {
  15660. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {
  15661. var n;
  15662. return _regenerator.default.wrap(function _callee33$(_context33) {
  15663. while (1) {
  15664. switch (_context33.prev = _context33.next) {
  15665. case 0:
  15666. n = pt[e];
  15667. if (n) {
  15668. _context33.next = 3;
  15669. break;
  15670. }
  15671. throw new te({
  15672. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  15673. });
  15674. case 3:
  15675. _context33.next = 5;
  15676. return n.invoke(t, this);
  15677. case 5:
  15678. return _context33.abrupt("return", _context33.sent);
  15679. case 6:
  15680. case "end":
  15681. return _context33.stop();
  15682. }
  15683. }
  15684. }, _callee33, this);
  15685. }));
  15686. function invokeExtension(_x29, _x30) {
  15687. return _invokeExtension.apply(this, arguments);
  15688. }
  15689. return invokeExtension;
  15690. }()
  15691. }, {
  15692. key: "useAdapters",
  15693. value: function useAdapters(e) {
  15694. var _ref13 = ke(e) || {},
  15695. t = _ref13.adapter,
  15696. n = _ref13.runtime;
  15697. t && (Ae.adapter = t), n && (Ae.runtime = n);
  15698. }
  15699. }]);
  15700. return ft;
  15701. }();
  15702. var gt = new ft();
  15703. function mt(e, t, n) {
  15704. void 0 === n && (n = {});
  15705. var s = /\?/.test(t),
  15706. r = "";
  15707. for (var i in n) {
  15708. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  15709. }
  15710. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  15711. }
  15712. var yt = /*#__PURE__*/function () {
  15713. function yt() {
  15714. (0, _classCallCheck2.default)(this, yt);
  15715. }
  15716. (0, _createClass2.default)(yt, [{
  15717. key: "post",
  15718. value: function post(e) {
  15719. var t = e.url,
  15720. n = e.data,
  15721. s = e.headers;
  15722. return new Promise(function (e, r) {
  15723. ne.request({
  15724. url: mt("https:", t),
  15725. data: n,
  15726. method: "POST",
  15727. header: s,
  15728. success: function success(t) {
  15729. e(t);
  15730. },
  15731. fail: function fail(e) {
  15732. r(e);
  15733. }
  15734. });
  15735. });
  15736. }
  15737. }, {
  15738. key: "upload",
  15739. value: function upload(e) {
  15740. return new Promise(function (t, n) {
  15741. var s = e.url,
  15742. r = e.file,
  15743. i = e.data,
  15744. o = e.headers,
  15745. a = e.fileType,
  15746. c = ne.uploadFile({
  15747. url: mt("https:", s),
  15748. name: "file",
  15749. formData: Object.assign({}, i),
  15750. filePath: r,
  15751. fileType: a,
  15752. header: o,
  15753. success: function success(e) {
  15754. var n = {
  15755. statusCode: e.statusCode,
  15756. data: e.data || {}
  15757. };
  15758. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  15759. },
  15760. fail: function fail(e) {
  15761. n(new Error(e.errMsg || "uploadFile:fail"));
  15762. }
  15763. });
  15764. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  15765. e.onUploadProgress({
  15766. loaded: t.totalBytesSent,
  15767. total: t.totalBytesExpectedToSend
  15768. });
  15769. });
  15770. });
  15771. }
  15772. }]);
  15773. return yt;
  15774. }();
  15775. var _t = {
  15776. setItem: function setItem(e, t) {
  15777. ne.setStorageSync(e, t);
  15778. },
  15779. getItem: function getItem(e) {
  15780. return ne.getStorageSync(e);
  15781. },
  15782. removeItem: function removeItem(e) {
  15783. ne.removeStorageSync(e);
  15784. },
  15785. clear: function clear() {
  15786. ne.clearStorageSync();
  15787. }
  15788. };
  15789. var wt = {
  15790. genAdapter: function genAdapter() {
  15791. return {
  15792. root: {},
  15793. reqClass: yt,
  15794. localStorage: _t,
  15795. primaryStorage: "local"
  15796. };
  15797. },
  15798. isMatch: function isMatch() {
  15799. return !0;
  15800. },
  15801. runtime: "uni_app"
  15802. };
  15803. gt.useAdapters(wt);
  15804. var vt = gt,
  15805. It = vt.init;
  15806. vt.init = function (e) {
  15807. e.env = e.spaceId;
  15808. var t = It.call(this, e);
  15809. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  15810. var n = t.auth;
  15811. return t.auth = function (e) {
  15812. var t = n.call(this, e);
  15813. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  15814. var n;
  15815. t[e] = (n = t[e], function (e) {
  15816. e = e || {};
  15817. var _ee = ee(e),
  15818. t = _ee.success,
  15819. s = _ee.fail,
  15820. r = _ee.complete;
  15821. if (!(t || s || r)) return n.call(this, e);
  15822. n.call(this, e).then(function (e) {
  15823. t && t(e), r && r(e);
  15824. }, function (e) {
  15825. s && s(e), r && r(e);
  15826. });
  15827. }).bind(t);
  15828. }), t;
  15829. }, t.customAuth = t.auth, t;
  15830. };
  15831. var St = vt;
  15832. var bt = /*#__PURE__*/function (_de) {
  15833. (0, _inherits2.default)(bt, _de);
  15834. var _super8 = _createSuper(bt);
  15835. function bt() {
  15836. (0, _classCallCheck2.default)(this, bt);
  15837. return _super8.apply(this, arguments);
  15838. }
  15839. (0, _createClass2.default)(bt, [{
  15840. key: "getAccessToken",
  15841. value: function getAccessToken() {
  15842. var _this11 = this;
  15843. return new Promise(function (e, t) {
  15844. var n = "Anonymous_Access_token";
  15845. _this11.setAccessToken(n), e(n);
  15846. });
  15847. }
  15848. }, {
  15849. key: "setupRequest",
  15850. value: function setupRequest(e, t) {
  15851. var n = Object.assign({}, e, {
  15852. spaceId: this.config.spaceId,
  15853. timestamp: Date.now()
  15854. }),
  15855. s = {
  15856. "Content-Type": "application/json"
  15857. };
  15858. "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = le.sign(n, this.config.clientSecret);
  15859. var r = he();
  15860. s["x-client-info"] = encodeURIComponent(JSON.stringify(r));
  15861. var _se = se(),
  15862. i = _se.token;
  15863. return s["x-client-token"] = i, {
  15864. url: this.config.requestUrl,
  15865. method: "POST",
  15866. data: n,
  15867. dataType: "json",
  15868. header: JSON.parse(JSON.stringify(s))
  15869. };
  15870. }
  15871. }, {
  15872. key: "uploadFileToOSS",
  15873. value: function uploadFileToOSS(_ref14) {
  15874. var _this12 = this;
  15875. var e = _ref14.url,
  15876. t = _ref14.formData,
  15877. n = _ref14.name,
  15878. s = _ref14.filePath,
  15879. r = _ref14.fileType,
  15880. i = _ref14.onUploadProgress;
  15881. return new Promise(function (o, a) {
  15882. var c = _this12.adapter.uploadFile({
  15883. url: e,
  15884. formData: t,
  15885. name: n,
  15886. filePath: s,
  15887. fileType: r,
  15888. success: function success(e) {
  15889. e && e.statusCode < 400 ? o(e) : a(new te({
  15890. code: "UPLOAD_FAILED",
  15891. message: "文件上传失败"
  15892. }));
  15893. },
  15894. fail: function fail(e) {
  15895. a(new te({
  15896. code: e.code || "UPLOAD_FAILED",
  15897. message: e.message || e.errMsg || "文件上传失败"
  15898. }));
  15899. }
  15900. });
  15901. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  15902. i({
  15903. loaded: e.totalBytesSent,
  15904. total: e.totalBytesExpectedToSend
  15905. });
  15906. });
  15907. });
  15908. }
  15909. }, {
  15910. key: "uploadFile",
  15911. value: function uploadFile(_ref15) {
  15912. var _this13 = this;
  15913. var e = _ref15.filePath,
  15914. t = _ref15.cloudPath,
  15915. _ref15$fileType = _ref15.fileType,
  15916. n = _ref15$fileType === void 0 ? "image" : _ref15$fileType,
  15917. s = _ref15.onUploadProgress;
  15918. if (!t) throw new te({
  15919. code: "CLOUDPATH_REQUIRED",
  15920. message: "cloudPath不可为空"
  15921. });
  15922. var r;
  15923. return this.getOSSUploadOptionsFromPath({
  15924. cloudPath: t
  15925. }).then(function (t) {
  15926. var _t$result = t.result,
  15927. i = _t$result.url,
  15928. o = _t$result.formData,
  15929. a = _t$result.name;
  15930. r = t.result.fileUrl;
  15931. var c = {
  15932. url: i,
  15933. formData: o,
  15934. name: a,
  15935. filePath: e,
  15936. fileType: n
  15937. };
  15938. return _this13.uploadFileToOSS(Object.assign({}, c, {
  15939. onUploadProgress: s
  15940. }));
  15941. }).then(function () {
  15942. return _this13.reportOSSUpload({
  15943. cloudPath: t
  15944. });
  15945. }).then(function (t) {
  15946. return new Promise(function (n, s) {
  15947. t.success ? n({
  15948. success: !0,
  15949. filePath: e,
  15950. fileID: r
  15951. }) : s(new te({
  15952. code: "UPLOAD_FAILED",
  15953. message: "文件上传失败"
  15954. }));
  15955. });
  15956. });
  15957. }
  15958. }, {
  15959. key: "deleteFile",
  15960. value: function deleteFile(_ref16) {
  15961. var e = _ref16.fileList;
  15962. var t = {
  15963. method: "serverless.file.resource.delete",
  15964. params: JSON.stringify({
  15965. fileList: e
  15966. })
  15967. };
  15968. return this.request(this.setupRequest(t)).then(function (e) {
  15969. if (e.success) return e.result;
  15970. throw new te({
  15971. code: "DELETE_FILE_FAILED",
  15972. message: "删除文件失败"
  15973. });
  15974. });
  15975. }
  15976. }, {
  15977. key: "getTempFileURL",
  15978. value: function getTempFileURL() {
  15979. var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15980. e = _ref17.fileList,
  15981. t = _ref17.maxAge;
  15982. if (!Array.isArray(e) || 0 === e.length) throw new te({
  15983. code: "INVALID_PARAM",
  15984. message: "fileList的元素必须是非空的字符串"
  15985. });
  15986. var n = {
  15987. method: "serverless.file.resource.getTempFileURL",
  15988. params: JSON.stringify({
  15989. fileList: e,
  15990. maxAge: t
  15991. })
  15992. };
  15993. return this.request(this.setupRequest(n)).then(function (e) {
  15994. if (e.success) return {
  15995. fileList: e.result.fileList.map(function (e) {
  15996. return {
  15997. fileID: e.fileID,
  15998. tempFileURL: e.tempFileURL
  15999. };
  16000. })
  16001. };
  16002. throw new te({
  16003. code: "GET_TEMP_FILE_URL_FAILED",
  16004. message: "获取临时文件链接失败"
  16005. });
  16006. });
  16007. }
  16008. }]);
  16009. return bt;
  16010. }(de);
  16011. var kt = {
  16012. init: function init(e) {
  16013. var t = new bt(e),
  16014. n = {
  16015. signInAnonymously: function signInAnonymously() {
  16016. return t.authorize();
  16017. },
  16018. getLoginState: function getLoginState() {
  16019. return Promise.resolve(!1);
  16020. }
  16021. };
  16022. return t.auth = function () {
  16023. return n;
  16024. }, t.customAuth = t.auth, t;
  16025. }
  16026. },
  16027. At = n(function (e, t) {
  16028. e.exports = r.enc.Hex;
  16029. });
  16030. function Ct() {
  16031. return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
  16032. var t = 16 * Math.random() | 0;
  16033. return ("x" === e ? t : 3 & t | 8).toString(16);
  16034. });
  16035. }
  16036. function Pt() {
  16037. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16038. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16039. var n = t.data,
  16040. s = t.functionName,
  16041. r = t.method,
  16042. i = t.headers,
  16043. _t$signHeaderKeys = t.signHeaderKeys,
  16044. o = _t$signHeaderKeys === void 0 ? [] : _t$signHeaderKeys,
  16045. a = t.config,
  16046. c = Date.now(),
  16047. u = Ct(),
  16048. h = Object.assign({}, i, {
  16049. "x-from-app-id": a.spaceAppId,
  16050. "x-from-env-id": a.spaceId,
  16051. "x-to-env-id": a.spaceId,
  16052. "x-from-instance-id": c,
  16053. "x-from-function-name": s,
  16054. "x-client-timestamp": c,
  16055. "x-alipay-source": "client",
  16056. "x-request-id": u,
  16057. "x-alipay-callid": u,
  16058. "x-trace-id": u
  16059. }),
  16060. 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),
  16061. _ref18 = e.split("?") || [],
  16062. _ref19 = (0, _slicedToArray2.default)(_ref18, 2),
  16063. _ref19$ = _ref19[0],
  16064. d = _ref19$ === void 0 ? "" : _ref19$,
  16065. _ref19$2 = _ref19[1],
  16066. p = _ref19$2 === void 0 ? "" : _ref19$2,
  16067. f = function (e) {
  16068. var t = e.signedHeaders.join(";"),
  16069. n = e.signedHeaders.map(function (t) {
  16070. return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
  16071. }).join(""),
  16072. s = _e(e.body).toString(At),
  16073. r = "".concat(e.method.toUpperCase(), "\n").concat(e.path, "\n").concat(e.query, "\n").concat(n, "\n").concat(t, "\n").concat(s, "\n"),
  16074. i = _e(r).toString(At),
  16075. o = "HMAC-SHA256\n".concat(e.timestamp, "\n").concat(i, "\n"),
  16076. a = we(o, e.secretKey).toString(At);
  16077. return "HMAC-SHA256 Credential=".concat(e.secretId, ", SignedHeaders=").concat(t, ", Signature=").concat(a);
  16078. }({
  16079. path: d,
  16080. query: p,
  16081. method: r,
  16082. headers: h,
  16083. timestamp: c,
  16084. body: JSON.stringify(n),
  16085. secretId: a.accessKey,
  16086. secretKey: a.secretKey,
  16087. signedHeaders: l.sort()
  16088. });
  16089. return {
  16090. url: "".concat(a.endpoint).concat(e),
  16091. headers: Object.assign({}, h, {
  16092. Authorization: f
  16093. })
  16094. };
  16095. }
  16096. function Tt(_ref20) {
  16097. var e = _ref20.url,
  16098. t = _ref20.data,
  16099. _ref20$method = _ref20.method,
  16100. n = _ref20$method === void 0 ? "POST" : _ref20$method,
  16101. _ref20$headers = _ref20.headers,
  16102. s = _ref20$headers === void 0 ? {} : _ref20$headers;
  16103. return new Promise(function (r, i) {
  16104. ne.request({
  16105. url: e,
  16106. method: n,
  16107. data: "object" == (0, _typeof2.default)(t) ? JSON.stringify(t) : t,
  16108. header: s,
  16109. dataType: "json",
  16110. complete: function complete() {
  16111. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16112. var t = s["x-trace-id"] || "";
  16113. if (!e.statusCode || e.statusCode >= 400) {
  16114. var _ref21 = e.data || {},
  16115. _n8 = _ref21.message,
  16116. _s10 = _ref21.errMsg,
  16117. _r4 = _ref21.trace_id;
  16118. return i(new te({
  16119. code: "SYS_ERR",
  16120. message: _n8 || _s10 || "request:fail",
  16121. requestId: _r4 || t
  16122. }));
  16123. }
  16124. r({
  16125. status: e.statusCode,
  16126. data: e.data,
  16127. headers: e.header,
  16128. requestId: t
  16129. });
  16130. }
  16131. });
  16132. });
  16133. }
  16134. function xt(e, t) {
  16135. var n = e.path,
  16136. s = e.data,
  16137. _e$method = e.method,
  16138. r = _e$method === void 0 ? "GET" : _e$method,
  16139. _Pt = Pt(n, {
  16140. functionName: "",
  16141. data: s,
  16142. method: r,
  16143. headers: {
  16144. "x-alipay-cloud-mode": "oss",
  16145. "x-data-api-type": "oss",
  16146. "x-expire-timestamp": Date.now() + 6e4
  16147. },
  16148. signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"],
  16149. config: t
  16150. }),
  16151. i = _Pt.url,
  16152. o = _Pt.headers;
  16153. return Tt({
  16154. url: i,
  16155. data: s,
  16156. method: r,
  16157. headers: o
  16158. }).then(function (e) {
  16159. var t = e.data || {};
  16160. if (!t.success) throw new te({
  16161. code: e.errCode,
  16162. message: e.errMsg,
  16163. requestId: e.requestId
  16164. });
  16165. return t.data || {};
  16166. }).catch(function (e) {
  16167. throw new te({
  16168. code: e.errCode,
  16169. message: e.errMsg,
  16170. requestId: e.requestId
  16171. });
  16172. });
  16173. }
  16174. function Ot() {
  16175. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16176. var t = e.trim().replace(/^cloud:\/\//, ""),
  16177. n = t.indexOf("/");
  16178. if (n <= 0) throw new te({
  16179. code: "INVALID_PARAM",
  16180. message: "fileID不合法"
  16181. });
  16182. var s = t.substring(0, n),
  16183. r = t.substring(n + 1);
  16184. return s !== this.config.spaceId && console.warn("file ".concat(e, " does not belong to env ").concat(this.config.spaceId)), r;
  16185. }
  16186. function Et() {
  16187. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16188. return "cloud://".concat(this.config.spaceId, "/").concat(e.replace(/^\/+/, ""));
  16189. }
  16190. var Lt = /*#__PURE__*/function () {
  16191. function Lt(e) {
  16192. (0, _classCallCheck2.default)(this, Lt);
  16193. this.config = e;
  16194. }
  16195. (0, _createClass2.default)(Lt, [{
  16196. key: "signedURL",
  16197. value: function signedURL(e) {
  16198. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16199. var n = "/ws/function/".concat(e),
  16200. s = this.config.wsEndpoint.replace(/^ws(s)?:\/\//, ""),
  16201. r = Object.assign({}, t, {
  16202. accessKeyId: this.config.accessKey,
  16203. signatureNonce: Ct(),
  16204. timestamp: "" + Date.now()
  16205. }),
  16206. i = [n, ["accessKeyId", "authorization", "signatureNonce", "timestamp"].sort().map(function (e) {
  16207. return r[e] ? "".concat(e, "=").concat(r[e]) : null;
  16208. }).filter(Boolean).join("&"), "host:".concat(s)].join("\n"),
  16209. o = ["HMAC-SHA256", _e(i).toString(At)].join("\n"),
  16210. a = we(o, this.config.secretKey).toString(At),
  16211. c = Object.keys(r).map(function (e) {
  16212. return "".concat(e, "=").concat(encodeURIComponent(r[e]));
  16213. }).join("&");
  16214. return "".concat(this.config.wsEndpoint).concat(n, "?").concat(c, "&signature=").concat(a);
  16215. }
  16216. }]);
  16217. return Lt;
  16218. }();
  16219. var Rt = /*#__PURE__*/function () {
  16220. function Rt(e) {
  16221. (0, _classCallCheck2.default)(this, Rt);
  16222. if (["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach(function (t) {
  16223. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  16224. }), e.endpoint) {
  16225. if ("string" != typeof e.endpoint) throw new Error("endpoint must be string");
  16226. if (!/^https:\/\//.test(e.endpoint)) throw new Error("endpoint must start with https://");
  16227. e.endpoint = e.endpoint.replace(/\/$/, "");
  16228. }
  16229. this.config = Object.assign({}, e, {
  16230. endpoint: e.endpoint || "https://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn"),
  16231. wsEndpoint: e.wsEndpoint || "wss://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn")
  16232. }), this._websocket = new Lt(this.config);
  16233. }
  16234. (0, _createClass2.default)(Rt, [{
  16235. key: "callFunction",
  16236. value: function callFunction(e) {
  16237. return function (e, t) {
  16238. var n = e.name,
  16239. s = e.data,
  16240. _e$async = e.async,
  16241. r = _e$async === void 0 ? !1 : _e$async,
  16242. i = "POST",
  16243. o = {
  16244. "x-to-function-name": n
  16245. };
  16246. r && (o["x-function-invoke-type"] = "async");
  16247. var _Pt2 = Pt("/functions/invokeFunction", {
  16248. functionName: n,
  16249. data: s,
  16250. method: i,
  16251. headers: o,
  16252. signHeaderKeys: ["x-to-function-name"],
  16253. config: t
  16254. }),
  16255. a = _Pt2.url,
  16256. c = _Pt2.headers;
  16257. return Tt({
  16258. url: a,
  16259. data: s,
  16260. method: i,
  16261. headers: c
  16262. }).then(function (e) {
  16263. var t = 0;
  16264. if (r) {
  16265. var _n9 = e.data || {};
  16266. t = "200" === _n9.errCode ? 0 : _n9.errCode, e.data = _n9.data || {}, e.errMsg = _n9.errMsg;
  16267. }
  16268. if (0 !== t) throw new te({
  16269. code: t,
  16270. message: e.errMsg,
  16271. requestId: e.requestId
  16272. });
  16273. return {
  16274. errCode: t,
  16275. success: 0 === t,
  16276. requestId: e.requestId,
  16277. result: e.data
  16278. };
  16279. }).catch(function (e) {
  16280. throw new te({
  16281. code: e.errCode,
  16282. message: e.errMsg,
  16283. requestId: e.requestId
  16284. });
  16285. });
  16286. }(e, this.config);
  16287. }
  16288. }, {
  16289. key: "uploadFileToOSS",
  16290. value: function uploadFileToOSS(_ref22) {
  16291. var e = _ref22.url,
  16292. t = _ref22.filePath,
  16293. n = _ref22.fileType,
  16294. s = _ref22.formData,
  16295. r = _ref22.onUploadProgress;
  16296. return new Promise(function (i, o) {
  16297. var a = ne.uploadFile({
  16298. url: e,
  16299. filePath: t,
  16300. fileType: n,
  16301. formData: s,
  16302. name: "file",
  16303. success: function success(e) {
  16304. e && e.statusCode < 400 ? i(e) : o(new te({
  16305. code: "UPLOAD_FAILED",
  16306. message: "文件上传失败"
  16307. }));
  16308. },
  16309. fail: function fail(e) {
  16310. o(new te({
  16311. code: e.code || "UPLOAD_FAILED",
  16312. message: e.message || e.errMsg || "文件上传失败"
  16313. }));
  16314. }
  16315. });
  16316. "function" == typeof r && a && "function" == typeof a.onProgressUpdate && a.onProgressUpdate(function (e) {
  16317. r({
  16318. loaded: e.totalBytesSent,
  16319. total: e.totalBytesExpectedToSend
  16320. });
  16321. });
  16322. });
  16323. }
  16324. }, {
  16325. key: "uploadFile",
  16326. value: function () {
  16327. var _uploadFile2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(_ref23) {
  16328. var e, _ref23$cloudPath, t, _ref23$fileType, n, s, r, i, o, a, c;
  16329. return _regenerator.default.wrap(function _callee34$(_context34) {
  16330. while (1) {
  16331. switch (_context34.prev = _context34.next) {
  16332. case 0:
  16333. 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;
  16334. if (!("string" !== f(t))) {
  16335. _context34.next = 3;
  16336. break;
  16337. }
  16338. throw new te({
  16339. code: "INVALID_PARAM",
  16340. message: "cloudPath必须为字符串类型"
  16341. });
  16342. case 3:
  16343. if (t = t.trim()) {
  16344. _context34.next = 5;
  16345. break;
  16346. }
  16347. throw new te({
  16348. code: "INVALID_PARAM",
  16349. message: "cloudPath不可为空"
  16350. });
  16351. case 5:
  16352. if (!/:\/\//.test(t)) {
  16353. _context34.next = 7;
  16354. break;
  16355. }
  16356. throw new te({
  16357. code: "INVALID_PARAM",
  16358. message: "cloudPath不合法"
  16359. });
  16360. case 7:
  16361. _context34.next = 9;
  16362. return xt({
  16363. path: "/".concat(t.replace(/^\//, ""), "?post_url")
  16364. }, this.config);
  16365. case 9:
  16366. r = _context34.sent;
  16367. i = r.file_id;
  16368. o = r.upload_url;
  16369. a = r.form_data;
  16370. c = a && a.reduce(function (e, t) {
  16371. return e[t.key] = t.value, e;
  16372. }, {});
  16373. return _context34.abrupt("return", this.uploadFileToOSS({
  16374. url: o,
  16375. filePath: e,
  16376. fileType: n,
  16377. formData: c,
  16378. onUploadProgress: s
  16379. }).then(function () {
  16380. return {
  16381. fileID: i
  16382. };
  16383. }));
  16384. case 15:
  16385. case "end":
  16386. return _context34.stop();
  16387. }
  16388. }
  16389. }, _callee34, this);
  16390. }));
  16391. function uploadFile(_x31) {
  16392. return _uploadFile2.apply(this, arguments);
  16393. }
  16394. return uploadFile;
  16395. }()
  16396. }, {
  16397. key: "getTempFileURL",
  16398. value: function () {
  16399. var _getTempFileURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35(_ref24) {
  16400. var _this14 = this;
  16401. var e;
  16402. return _regenerator.default.wrap(function _callee35$(_context35) {
  16403. while (1) {
  16404. switch (_context35.prev = _context35.next) {
  16405. case 0:
  16406. e = _ref24.fileList;
  16407. return _context35.abrupt("return", new Promise(function (t, n) {
  16408. (!e || e.length < 0) && n(new te({
  16409. errCode: "INVALID_PARAM",
  16410. errMsg: "fileList不能为空数组"
  16411. })), e.length > 50 && n(new te({
  16412. errCode: "INVALID_PARAM",
  16413. errMsg: "fileList数组长度不能超过50"
  16414. }));
  16415. var s = [];
  16416. var _iterator5 = _createForOfIteratorHelper(e),
  16417. _step5;
  16418. try {
  16419. for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
  16420. var _t10 = _step5.value;
  16421. "string" !== f(_t10) && n(new te({
  16422. errCode: "INVALID_PARAM",
  16423. errMsg: "fileList的元素必须是非空的字符串"
  16424. }));
  16425. var _e17 = Ot.call(_this14, _t10);
  16426. s.push({
  16427. file_id: _e17,
  16428. expire: 600
  16429. });
  16430. }
  16431. } catch (err) {
  16432. _iterator5.e(err);
  16433. } finally {
  16434. _iterator5.f();
  16435. }
  16436. xt({
  16437. path: "/?download_url",
  16438. data: {
  16439. file_list: s
  16440. },
  16441. method: "POST"
  16442. }, _this14.config).then(function (e) {
  16443. var _e$file_list = e.file_list,
  16444. n = _e$file_list === void 0 ? [] : _e$file_list;
  16445. t({
  16446. fileList: n.map(function (e) {
  16447. return {
  16448. fileID: Et.call(_this14, e.file_id),
  16449. tempFileURL: e.download_url
  16450. };
  16451. })
  16452. });
  16453. }).catch(function (e) {
  16454. return n(e);
  16455. });
  16456. }));
  16457. case 2:
  16458. case "end":
  16459. return _context35.stop();
  16460. }
  16461. }
  16462. }, _callee35);
  16463. }));
  16464. function getTempFileURL(_x32) {
  16465. return _getTempFileURL.apply(this, arguments);
  16466. }
  16467. return getTempFileURL;
  16468. }()
  16469. }, {
  16470. key: "connectWebSocket",
  16471. value: function () {
  16472. var _connectWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(e) {
  16473. var t, n;
  16474. return _regenerator.default.wrap(function _callee36$(_context36) {
  16475. while (1) {
  16476. switch (_context36.prev = _context36.next) {
  16477. case 0:
  16478. t = e.name, n = e.query;
  16479. return _context36.abrupt("return", ne.connectSocket({
  16480. url: this._websocket.signedURL(t, n),
  16481. complete: function complete() {}
  16482. }));
  16483. case 2:
  16484. case "end":
  16485. return _context36.stop();
  16486. }
  16487. }
  16488. }, _callee36, this);
  16489. }));
  16490. function connectWebSocket(_x33) {
  16491. return _connectWebSocket.apply(this, arguments);
  16492. }
  16493. return connectWebSocket;
  16494. }()
  16495. }]);
  16496. return Rt;
  16497. }();
  16498. var Ut = {
  16499. init: function init(e) {
  16500. e.provider = "alipay";
  16501. var t = new Rt(e);
  16502. return t.auth = function () {
  16503. return {
  16504. signInAnonymously: function signInAnonymously() {
  16505. return Promise.resolve();
  16506. },
  16507. getLoginState: function getLoginState() {
  16508. return Promise.resolve(!0);
  16509. }
  16510. };
  16511. }, t;
  16512. }
  16513. };
  16514. function Nt(_ref25) {
  16515. var e = _ref25.data;
  16516. var t;
  16517. t = he();
  16518. var n = JSON.parse(JSON.stringify(e || {}));
  16519. if (Object.assign(n, {
  16520. clientInfo: t
  16521. }), !n.uniIdToken) {
  16522. var _se2 = se(),
  16523. _e18 = _se2.token;
  16524. _e18 && (n.uniIdToken = _e18);
  16525. }
  16526. return n;
  16527. }
  16528. function Dt() {
  16529. return _Dt.apply(this, arguments);
  16530. }
  16531. function _Dt() {
  16532. _Dt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57() {
  16533. var _this27 = this;
  16534. var _ref67,
  16535. e,
  16536. t,
  16537. _this$__dev__,
  16538. n,
  16539. s,
  16540. r,
  16541. i,
  16542. o,
  16543. a,
  16544. _args6 = arguments;
  16545. return _regenerator.default.wrap(function _callee57$(_context57) {
  16546. while (1) {
  16547. switch (_context57.prev = _context57.next) {
  16548. case 0:
  16549. _ref67 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, e = _ref67.name, t = _ref67.data;
  16550. _context57.next = 3;
  16551. return this.__dev__.initLocalNetwork();
  16552. case 3:
  16553. _this$__dev__ = this.__dev__, n = _this$__dev__.localAddress, s = _this$__dev__.localPort, r = {
  16554. aliyun: "aliyun",
  16555. tencent: "tcb",
  16556. alipay: "alipay"
  16557. }[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);
  16558. return _context57.abrupt("return", new Promise(function (t, n) {
  16559. ne.request({
  16560. method: "POST",
  16561. url: o,
  16562. data: {
  16563. name: e,
  16564. platform: C,
  16565. provider: r,
  16566. spaceId: i
  16567. },
  16568. timeout: 3e3,
  16569. success: function success(e) {
  16570. t(e);
  16571. },
  16572. fail: function fail() {
  16573. t({
  16574. data: {
  16575. code: "NETWORK_ERROR",
  16576. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  16577. }
  16578. });
  16579. }
  16580. });
  16581. }).then(function () {
  16582. var _ref68 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16583. e = _ref68.data;
  16584. var _ref69 = e || {},
  16585. t = _ref69.code,
  16586. n = _ref69.message;
  16587. return {
  16588. code: 0 === t ? 0 : t || "SYS_ERR",
  16589. message: n || "SYS_ERR"
  16590. };
  16591. }).then(function (_ref70) {
  16592. var n = _ref70.code,
  16593. s = _ref70.message;
  16594. if (0 !== n) {
  16595. switch (n) {
  16596. case "MODULE_ENCRYPTED":
  16597. 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"));
  16598. break;
  16599. case "FUNCTION_ENCRYPTED":
  16600. 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"));
  16601. break;
  16602. case "ACTION_ENCRYPTED":
  16603. console.error(s || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  16604. break;
  16605. case "NETWORK_ERROR":
  16606. console.error(s || "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");
  16607. break;
  16608. case "SWITCH_TO_CLOUD":
  16609. break;
  16610. default:
  16611. {
  16612. var _e30 = "\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");
  16613. throw console.error(_e30), new Error(_e30);
  16614. }
  16615. }
  16616. return _this27._callCloudFunction({
  16617. name: e,
  16618. data: t
  16619. });
  16620. }
  16621. return new Promise(function (e, n) {
  16622. var s = Nt.call(_this27, {
  16623. data: t
  16624. });
  16625. ne.request({
  16626. method: "POST",
  16627. url: a,
  16628. data: {
  16629. provider: r,
  16630. platform: C,
  16631. param: s
  16632. },
  16633. success: function success() {
  16634. var _ref71 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16635. t = _ref71.statusCode,
  16636. s = _ref71.data;
  16637. return !t || t >= 400 ? n(new te({
  16638. code: s.code || "SYS_ERR",
  16639. message: s.message || "request:fail"
  16640. })) : e({
  16641. result: s
  16642. });
  16643. },
  16644. fail: function fail(e) {
  16645. n(new te({
  16646. code: e.code || e.errCode || "SYS_ERR",
  16647. message: e.message || e.errMsg || "request:fail"
  16648. }));
  16649. }
  16650. });
  16651. });
  16652. }));
  16653. case 5:
  16654. case "end":
  16655. return _context57.stop();
  16656. }
  16657. }
  16658. }, _callee57, this);
  16659. }));
  16660. return _Dt.apply(this, arguments);
  16661. }
  16662. var Mt = [{
  16663. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  16664. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  16665. mode: "append"
  16666. }];
  16667. var qt = /[\\^$.*+?()[\]{}|]/g,
  16668. Ft = RegExp(qt.source);
  16669. function Kt(e, t, n) {
  16670. return e.replace(new RegExp((s = t) && Ft.test(s) ? s.replace(qt, "\\$&") : s, "g"), n);
  16671. var s;
  16672. }
  16673. var jt = "none",
  16674. $t = "request",
  16675. Bt = "response",
  16676. Wt = "both";
  16677. var Ht = /*#__PURE__*/function () {
  16678. function Ht() {
  16679. var _ref26 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16680. e = _ref26.secretType,
  16681. t = _ref26.uniCloudIns;
  16682. (0, _classCallCheck2.default)(this, Ht);
  16683. this.clientType = "", this.secretType = e || jt, this.uniCloudIns = t;
  16684. var _this$uniCloudIns$con = this.uniCloudIns.config,
  16685. n = _this$uniCloudIns$con.provider,
  16686. s = _this$uniCloudIns$con.spaceId;
  16687. var r;
  16688. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", r.config.spaceId)));
  16689. }
  16690. (0, _createClass2.default)(Ht, [{
  16691. key: "getSystemInfo",
  16692. value: function getSystemInfo() {
  16693. return this._systemInfo || (this._systemInfo = ae()), this._systemInfo;
  16694. }
  16695. }, {
  16696. key: "appId",
  16697. get: function get() {
  16698. return this.getSystemInfo().appId;
  16699. }
  16700. }, {
  16701. key: "deviceId",
  16702. get: function get() {
  16703. return this.getSystemInfo().deviceId;
  16704. }
  16705. }, {
  16706. key: "encryptData",
  16707. value: function () {
  16708. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(e) {
  16709. return _regenerator.default.wrap(function _callee37$(_context37) {
  16710. while (1) {
  16711. switch (_context37.prev = _context37.next) {
  16712. case 0:
  16713. return _context37.abrupt("return", this.secretType === jt ? e : this.platformEncryptData(e));
  16714. case 1:
  16715. case "end":
  16716. return _context37.stop();
  16717. }
  16718. }
  16719. }, _callee37, this);
  16720. }));
  16721. function encryptData(_x34) {
  16722. return _encryptData.apply(this, arguments);
  16723. }
  16724. return encryptData;
  16725. }()
  16726. }, {
  16727. key: "decryptResult",
  16728. value: function () {
  16729. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38(e) {
  16730. var _ref27, t, n;
  16731. return _regenerator.default.wrap(function _callee38$(_context38) {
  16732. while (1) {
  16733. switch (_context38.prev = _context38.next) {
  16734. case 0:
  16735. if (!(this.secretType === jt)) {
  16736. _context38.next = 2;
  16737. break;
  16738. }
  16739. return _context38.abrupt("return", e);
  16740. case 2:
  16741. _ref27 = e || {}, t = _ref27.errCode, n = _ref27.content;
  16742. return _context38.abrupt("return", t || !n ? e : this.secretType === $t ? n : this.platformDecryptResult(e));
  16743. case 4:
  16744. case "end":
  16745. return _context38.stop();
  16746. }
  16747. }
  16748. }, _callee38, this);
  16749. }));
  16750. function decryptResult(_x35) {
  16751. return _decryptResult.apply(this, arguments);
  16752. }
  16753. return decryptResult;
  16754. }()
  16755. }, {
  16756. key: "wrapVerifyClientCallFunction",
  16757. value: function wrapVerifyClientCallFunction(e) {
  16758. var t = this;
  16759. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39() {
  16760. var _ref29,
  16761. n,
  16762. _ref29$data,
  16763. s,
  16764. r,
  16765. _args39 = arguments;
  16766. return _regenerator.default.wrap(function _callee39$(_context39) {
  16767. while (1) {
  16768. switch (_context39.prev = _context39.next) {
  16769. case 0:
  16770. _ref29 = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {}, n = _ref29.name, _ref29$data = _ref29.data, s = _ref29$data === void 0 ? {} : _ref29$data;
  16771. _context39.next = 3;
  16772. return t.prepare();
  16773. case 3:
  16774. _context39.next = 5;
  16775. return t.platformGetSignOption();
  16776. case 5:
  16777. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context39.sent;
  16778. _context39.next = 8;
  16779. return e({
  16780. name: n,
  16781. data: s
  16782. });
  16783. case 8:
  16784. r = _context39.sent;
  16785. _context39.t0 = t.isClientKeyNotFound(r);
  16786. if (!_context39.t0) {
  16787. _context39.next = 19;
  16788. break;
  16789. }
  16790. _context39.next = 13;
  16791. return t.prepare({
  16792. forceUpdate: !0
  16793. });
  16794. case 13:
  16795. _context39.next = 15;
  16796. return t.platformGetSignOption();
  16797. case 15:
  16798. s._uniCloudOptions = _context39.sent;
  16799. _context39.next = 18;
  16800. return e({
  16801. name: n,
  16802. data: s
  16803. });
  16804. case 18:
  16805. r = _context39.sent;
  16806. case 19:
  16807. return _context39.abrupt("return", r);
  16808. case 20:
  16809. case "end":
  16810. return _context39.stop();
  16811. }
  16812. }
  16813. }, _callee39);
  16814. }));
  16815. }
  16816. }, {
  16817. key: "wrapEncryptDataCallFunction",
  16818. value: function wrapEncryptDataCallFunction(e) {
  16819. var t = this;
  16820. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40() {
  16821. var _ref31,
  16822. n,
  16823. _ref31$data,
  16824. s,
  16825. r,
  16826. i,
  16827. _r5,
  16828. _args40 = arguments;
  16829. return _regenerator.default.wrap(function _callee40$(_context40) {
  16830. while (1) {
  16831. switch (_context40.prev = _context40.next) {
  16832. case 0:
  16833. _ref31 = _args40.length > 0 && _args40[0] !== undefined ? _args40[0] : {}, n = _ref31.name, _ref31$data = _ref31.data, s = _ref31$data === void 0 ? {} : _ref31$data;
  16834. _context40.next = 3;
  16835. return t.prepare();
  16836. case 3:
  16837. _context40.next = 5;
  16838. return t.encryptData(s);
  16839. case 5:
  16840. r = _context40.sent;
  16841. _context40.next = 8;
  16842. return e({
  16843. name: n,
  16844. data: r
  16845. });
  16846. case 8:
  16847. i = _context40.sent;
  16848. if (!t.isClientKeyNotFound(i)) {
  16849. _context40.next = 21;
  16850. break;
  16851. }
  16852. _context40.next = 12;
  16853. return t.prepare({
  16854. forceUpdate: !0
  16855. });
  16856. case 12:
  16857. _context40.next = 14;
  16858. return t.encryptData(s);
  16859. case 14:
  16860. _r5 = _context40.sent;
  16861. _context40.next = 17;
  16862. return t.platformGetSignOption();
  16863. case 17:
  16864. s._uniCloudOptions = _context40.sent;
  16865. _context40.next = 20;
  16866. return e({
  16867. name: n,
  16868. data: _r5
  16869. });
  16870. case 20:
  16871. i = _context40.sent;
  16872. case 21:
  16873. _context40.next = 23;
  16874. return t.decryptResult(i.result);
  16875. case 23:
  16876. i.result = _context40.sent;
  16877. return _context40.abrupt("return", i);
  16878. case 25:
  16879. case "end":
  16880. return _context40.stop();
  16881. }
  16882. }
  16883. }, _callee40);
  16884. }));
  16885. }
  16886. }]);
  16887. return Ht;
  16888. }();
  16889. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  16890. function zt(e) {
  16891. return parseInt(e) === e;
  16892. }
  16893. function Jt(e) {
  16894. if (!zt(e.length)) return !1;
  16895. for (var t = 0; t < e.length; t++) {
  16896. if (!zt(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  16897. }
  16898. return !0;
  16899. }
  16900. function Vt(e, t) {
  16901. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  16902. if (Array.isArray(e)) {
  16903. if (!Jt(e)) throw new Error("Array contains invalid value: " + e);
  16904. return new Uint8Array(e);
  16905. }
  16906. if (zt(e.length) && Jt(e)) return new Uint8Array(e);
  16907. throw new Error("unsupported array-like object");
  16908. }
  16909. function Gt(e) {
  16910. return new Uint8Array(e);
  16911. }
  16912. function Yt(e, t, n, s, r) {
  16913. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  16914. }
  16915. var Qt,
  16916. Xt = {
  16917. toBytes: function toBytes(e) {
  16918. var t = [],
  16919. n = 0;
  16920. for (e = encodeURI(e); n < e.length;) {
  16921. var s = e.charCodeAt(n++);
  16922. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  16923. }
  16924. return Vt(t);
  16925. },
  16926. fromBytes: function fromBytes(e) {
  16927. for (var t = [], n = 0; n < e.length;) {
  16928. var s = e[n];
  16929. 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);
  16930. }
  16931. return t.join("");
  16932. }
  16933. },
  16934. Zt = (Qt = "0123456789abcdef", {
  16935. toBytes: function toBytes(e) {
  16936. for (var t = [], n = 0; n < e.length; n += 2) {
  16937. t.push(parseInt(e.substr(n, 2), 16));
  16938. }
  16939. return t;
  16940. },
  16941. fromBytes: function fromBytes(e) {
  16942. for (var t = [], n = 0; n < e.length; n++) {
  16943. var s = e[n];
  16944. t.push(Qt[(240 & s) >> 4] + Qt[15 & s]);
  16945. }
  16946. return t.join("");
  16947. }
  16948. }),
  16949. en = {
  16950. 16: 10,
  16951. 24: 12,
  16952. 32: 14
  16953. },
  16954. tn = [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],
  16955. nn = [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],
  16956. sn = [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],
  16957. rn = [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],
  16958. on = [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],
  16959. an = [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],
  16960. cn = [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],
  16961. un = [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],
  16962. hn = [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],
  16963. ln = [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],
  16964. dn = [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],
  16965. pn = [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],
  16966. fn = [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],
  16967. gn = [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],
  16968. mn = [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];
  16969. function yn(e) {
  16970. for (var t = [], n = 0; n < e.length; n += 4) {
  16971. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  16972. }
  16973. return t;
  16974. }
  16975. var _n = /*#__PURE__*/function () {
  16976. function _n(e) {
  16977. (0, _classCallCheck2.default)(this, _n);
  16978. if (!(this instanceof _n)) throw Error("AES must be instanitated with `new`");
  16979. Object.defineProperty(this, "key", {
  16980. value: Vt(e, !0)
  16981. }), this._prepare();
  16982. }
  16983. (0, _createClass2.default)(_n, [{
  16984. key: "_prepare",
  16985. value: function _prepare() {
  16986. var e = en[this.key.length];
  16987. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  16988. this._Ke = [], this._Kd = [];
  16989. for (var t = 0; t <= e; t++) {
  16990. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  16991. }
  16992. var n,
  16993. s = 4 * (e + 1),
  16994. r = this.key.length / 4,
  16995. i = yn(this.key);
  16996. for (t = 0; t < r; t++) {
  16997. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  16998. }
  16999. for (var o, a = 0, c = r; c < s;) {
  17000. if (o = i[r - 1], i[0] ^= nn[o >> 16 & 255] << 24 ^ nn[o >> 8 & 255] << 16 ^ nn[255 & o] << 8 ^ nn[o >> 24 & 255] ^ tn[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  17001. i[t] ^= i[t - 1];
  17002. } else {
  17003. for (t = 1; t < r / 2; t++) {
  17004. i[t] ^= i[t - 1];
  17005. }
  17006. o = i[r / 2 - 1], i[r / 2] ^= nn[255 & o] ^ nn[o >> 8 & 255] << 8 ^ nn[o >> 16 & 255] << 16 ^ nn[o >> 24 & 255] << 24;
  17007. for (t = r / 2 + 1; t < r; t++) {
  17008. i[t] ^= i[t - 1];
  17009. }
  17010. }
  17011. for (t = 0; t < r && c < s;) {
  17012. u = c >> 2, h = c % 4, this._Ke[u][h] = i[t], this._Kd[e - u][h] = i[t++], c++;
  17013. }
  17014. }
  17015. for (var u = 1; u < e; u++) {
  17016. for (var h = 0; h < 4; h++) {
  17017. o = this._Kd[u][h], this._Kd[u][h] = pn[o >> 24 & 255] ^ fn[o >> 16 & 255] ^ gn[o >> 8 & 255] ^ mn[255 & o];
  17018. }
  17019. }
  17020. }
  17021. }, {
  17022. key: "encrypt",
  17023. value: function encrypt(e) {
  17024. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  17025. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = yn(e), r = 0; r < 4; r++) {
  17026. s[r] ^= this._Ke[0][r];
  17027. }
  17028. for (var i = 1; i < t; i++) {
  17029. for (r = 0; r < 4; r++) {
  17030. n[r] = rn[s[r] >> 24 & 255] ^ on[s[(r + 1) % 4] >> 16 & 255] ^ an[s[(r + 2) % 4] >> 8 & 255] ^ cn[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  17031. }
  17032. s = n.slice();
  17033. }
  17034. var o,
  17035. a = Gt(16);
  17036. for (r = 0; r < 4; r++) {
  17037. o = this._Ke[t][r], a[4 * r] = 255 & (nn[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (nn[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (nn[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (nn[255 & s[(r + 3) % 4]] ^ o);
  17038. }
  17039. return a;
  17040. }
  17041. }, {
  17042. key: "decrypt",
  17043. value: function decrypt(e) {
  17044. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  17045. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = yn(e), r = 0; r < 4; r++) {
  17046. s[r] ^= this._Kd[0][r];
  17047. }
  17048. for (var i = 1; i < t; i++) {
  17049. for (r = 0; r < 4; r++) {
  17050. n[r] = un[s[r] >> 24 & 255] ^ hn[s[(r + 3) % 4] >> 16 & 255] ^ ln[s[(r + 2) % 4] >> 8 & 255] ^ dn[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  17051. }
  17052. s = n.slice();
  17053. }
  17054. var o,
  17055. a = Gt(16);
  17056. for (r = 0; r < 4; r++) {
  17057. o = this._Kd[t][r], a[4 * r] = 255 & (sn[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (sn[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (sn[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (sn[255 & s[(r + 1) % 4]] ^ o);
  17058. }
  17059. return a;
  17060. }
  17061. }]);
  17062. return _n;
  17063. }();
  17064. var wn = /*#__PURE__*/function () {
  17065. function wn(e) {
  17066. (0, _classCallCheck2.default)(this, wn);
  17067. if (!(this instanceof wn)) throw Error("AES must be instanitated with `new`");
  17068. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new _n(e);
  17069. }
  17070. (0, _createClass2.default)(wn, [{
  17071. key: "encrypt",
  17072. value: function encrypt(e) {
  17073. if ((e = Vt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  17074. for (var t = Gt(e.length), n = Gt(16), s = 0; s < e.length; s += 16) {
  17075. Yt(e, n, 0, s, s + 16), Yt(n = this._aes.encrypt(n), t, s);
  17076. }
  17077. return t;
  17078. }
  17079. }, {
  17080. key: "decrypt",
  17081. value: function decrypt(e) {
  17082. if ((e = Vt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  17083. for (var t = Gt(e.length), n = Gt(16), s = 0; s < e.length; s += 16) {
  17084. Yt(e, n, 0, s, s + 16), Yt(n = this._aes.decrypt(n), t, s);
  17085. }
  17086. return t;
  17087. }
  17088. }]);
  17089. return wn;
  17090. }();
  17091. var vn = /*#__PURE__*/function () {
  17092. function vn(e, t) {
  17093. (0, _classCallCheck2.default)(this, vn);
  17094. if (!(this instanceof vn)) throw Error("AES must be instanitated with `new`");
  17095. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  17096. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  17097. } else t = Gt(16);
  17098. this._lastCipherblock = Vt(t, !0), this._aes = new _n(e);
  17099. }
  17100. (0, _createClass2.default)(vn, [{
  17101. key: "encrypt",
  17102. value: function encrypt(e) {
  17103. if ((e = Vt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  17104. for (var t = Gt(e.length), n = Gt(16), s = 0; s < e.length; s += 16) {
  17105. Yt(e, n, 0, s, s + 16);
  17106. for (var r = 0; r < 16; r++) {
  17107. n[r] ^= this._lastCipherblock[r];
  17108. }
  17109. this._lastCipherblock = this._aes.encrypt(n), Yt(this._lastCipherblock, t, s);
  17110. }
  17111. return t;
  17112. }
  17113. }, {
  17114. key: "decrypt",
  17115. value: function decrypt(e) {
  17116. if ((e = Vt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  17117. for (var t = Gt(e.length), n = Gt(16), s = 0; s < e.length; s += 16) {
  17118. Yt(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  17119. for (var r = 0; r < 16; r++) {
  17120. t[s + r] = n[r] ^ this._lastCipherblock[r];
  17121. }
  17122. Yt(e, this._lastCipherblock, 0, s, s + 16);
  17123. }
  17124. return t;
  17125. }
  17126. }]);
  17127. return vn;
  17128. }();
  17129. var In = /*#__PURE__*/function () {
  17130. function In(e, t, n) {
  17131. (0, _classCallCheck2.default)(this, In);
  17132. if (!(this instanceof In)) throw Error("AES must be instanitated with `new`");
  17133. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  17134. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  17135. } else t = Gt(16);
  17136. n || (n = 1), this.segmentSize = n, this._shiftRegister = Vt(t, !0), this._aes = new _n(e);
  17137. }
  17138. (0, _createClass2.default)(In, [{
  17139. key: "encrypt",
  17140. value: function encrypt(e) {
  17141. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  17142. for (var t, n = Vt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  17143. t = this._aes.encrypt(this._shiftRegister);
  17144. for (var r = 0; r < this.segmentSize; r++) {
  17145. n[s + r] ^= t[r];
  17146. }
  17147. Yt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Yt(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  17148. }
  17149. return n;
  17150. }
  17151. }, {
  17152. key: "decrypt",
  17153. value: function decrypt(e) {
  17154. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  17155. for (var t, n = Vt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  17156. t = this._aes.encrypt(this._shiftRegister);
  17157. for (var r = 0; r < this.segmentSize; r++) {
  17158. n[s + r] ^= t[r];
  17159. }
  17160. Yt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Yt(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  17161. }
  17162. return n;
  17163. }
  17164. }]);
  17165. return In;
  17166. }();
  17167. var Sn = /*#__PURE__*/function () {
  17168. function Sn(e, t) {
  17169. (0, _classCallCheck2.default)(this, Sn);
  17170. if (!(this instanceof Sn)) throw Error("AES must be instanitated with `new`");
  17171. if (this.description = "Output Feedback", this.name = "ofb", t) {
  17172. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  17173. } else t = Gt(16);
  17174. this._lastPrecipher = Vt(t, !0), this._lastPrecipherIndex = 16, this._aes = new _n(e);
  17175. }
  17176. (0, _createClass2.default)(Sn, [{
  17177. key: "encrypt",
  17178. value: function encrypt(e) {
  17179. for (var t = Vt(e, !0), n = 0; n < t.length; n++) {
  17180. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  17181. }
  17182. return t;
  17183. }
  17184. }, {
  17185. key: "decrypt",
  17186. value: function decrypt(e) {
  17187. return this.encrypt(e);
  17188. }
  17189. }]);
  17190. return Sn;
  17191. }();
  17192. var bn = /*#__PURE__*/function () {
  17193. function bn(e) {
  17194. (0, _classCallCheck2.default)(this, bn);
  17195. if (!(this instanceof bn)) throw Error("Counter must be instanitated with `new`");
  17196. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = Gt(16), this.setValue(e)) : this.setBytes(e);
  17197. }
  17198. (0, _createClass2.default)(bn, [{
  17199. key: "setValue",
  17200. value: function setValue(e) {
  17201. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  17202. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  17203. for (var t = 15; t >= 0; --t) {
  17204. this._counter[t] = e % 256, e = parseInt(e / 256);
  17205. }
  17206. }
  17207. }, {
  17208. key: "setBytes",
  17209. value: function setBytes(e) {
  17210. if (16 != (e = Vt(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  17211. this._counter = e;
  17212. }
  17213. }, {
  17214. key: "increment",
  17215. value: function increment() {
  17216. for (var e = 15; e >= 0; e--) {
  17217. if (255 !== this._counter[e]) {
  17218. this._counter[e]++;
  17219. break;
  17220. }
  17221. this._counter[e] = 0;
  17222. }
  17223. }
  17224. }]);
  17225. return bn;
  17226. }();
  17227. var kn = /*#__PURE__*/function () {
  17228. function kn(e, t) {
  17229. (0, _classCallCheck2.default)(this, kn);
  17230. if (!(this instanceof kn)) throw Error("AES must be instanitated with `new`");
  17231. this.description = "Counter", this.name = "ctr", t instanceof bn || (t = new bn(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new _n(e);
  17232. }
  17233. (0, _createClass2.default)(kn, [{
  17234. key: "encrypt",
  17235. value: function encrypt(e) {
  17236. for (var t = Vt(e, !0), n = 0; n < t.length; n++) {
  17237. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  17238. }
  17239. return t;
  17240. }
  17241. }, {
  17242. key: "decrypt",
  17243. value: function decrypt(e) {
  17244. return this.encrypt(e);
  17245. }
  17246. }]);
  17247. return kn;
  17248. }();
  17249. var An = {
  17250. AES: _n,
  17251. Counter: bn,
  17252. ModeOfOperation: {
  17253. ecb: wn,
  17254. cbc: vn,
  17255. cfb: In,
  17256. ofb: Sn,
  17257. ctr: kn
  17258. },
  17259. utils: {
  17260. hex: Zt,
  17261. utf8: Xt
  17262. },
  17263. padding: {
  17264. pkcs7: {
  17265. pad: function pad(e) {
  17266. var t = 16 - (e = Vt(e, !0)).length % 16,
  17267. n = Gt(e.length + t);
  17268. Yt(e, n);
  17269. for (var s = e.length; s < n.length; s++) {
  17270. n[s] = t;
  17271. }
  17272. return n;
  17273. },
  17274. strip: function strip(e) {
  17275. if ((e = Vt(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  17276. var t = e[e.length - 1];
  17277. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  17278. for (var n = e.length - t, s = 0; s < t; s++) {
  17279. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  17280. }
  17281. var r = Gt(n);
  17282. return Yt(e, r, 0, 0, n), r;
  17283. }
  17284. }
  17285. },
  17286. _arrayTest: {
  17287. coerceArray: Vt,
  17288. createArray: Gt,
  17289. copyArray: Yt
  17290. }
  17291. };
  17292. function Cn(e, t, n) {
  17293. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  17294. r = An.utils.utf8.toBytes(n),
  17295. i = An.utils.utf8.toBytes(e),
  17296. o = new An.ModeOfOperation.cbc(s, r),
  17297. a = An.padding.pkcs7.pad(i),
  17298. c = o.encrypt(a);
  17299. return uni.arrayBufferToBase64(c);
  17300. }
  17301. var Pn = {
  17302. code: 2e4,
  17303. message: "System error"
  17304. },
  17305. Tn = {
  17306. code: 20101,
  17307. message: "Invalid client"
  17308. },
  17309. xn = {
  17310. code: 20102,
  17311. message: "Get encrypt key failed"
  17312. },
  17313. On = {
  17314. 10001: "Secure network is not supported on current playground or unimpsdk",
  17315. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  17316. 10009: "Encrypt payload failed",
  17317. 10010: "Decrypt response failed"
  17318. };
  17319. function En(e) {
  17320. var _ref32 = e || {},
  17321. t = _ref32.errSubject,
  17322. n = _ref32.subject,
  17323. s = _ref32.errCode,
  17324. r = _ref32.errMsg,
  17325. i = _ref32.code,
  17326. o = _ref32.message,
  17327. a = _ref32.cause;
  17328. return new te({
  17329. subject: t || n || "uni-secure-network",
  17330. code: s || i || Pn.code,
  17331. message: r || o,
  17332. cause: a
  17333. });
  17334. }
  17335. var Ln,
  17336. Rn,
  17337. Un = null;
  17338. var Nn = /*#__PURE__*/function (_Ht) {
  17339. (0, _inherits2.default)(Nn, _Ht);
  17340. var _super9 = _createSuper(Nn);
  17341. function Nn(e) {
  17342. var _this15;
  17343. (0, _classCallCheck2.default)(this, Nn);
  17344. _this15 = _super9.call(this, e), _this15.clientType = "mp-weixin", _this15.userEncryptKey = null;
  17345. return _this15;
  17346. }
  17347. (0, _createClass2.default)(Nn, [{
  17348. key: "isLogin",
  17349. value: function isLogin() {
  17350. return !!this.scopedGlobalCache.mpWeixinCode || !!this.scopedGlobalCache.mpWeixinOpenid;
  17351. }
  17352. }, {
  17353. key: "prepare",
  17354. value: function () {
  17355. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41() {
  17356. return _regenerator.default.wrap(function _callee41$(_context41) {
  17357. while (1) {
  17358. switch (_context41.prev = _context41.next) {
  17359. case 0:
  17360. if (this.isLogin()) {
  17361. _context41.next = 7;
  17362. break;
  17363. }
  17364. if (this.scopedGlobalCache.initPromise) {
  17365. _context41.next = 3;
  17366. break;
  17367. }
  17368. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  17369. case 3:
  17370. _context41.next = 5;
  17371. return this.scopedGlobalCache.initPromise;
  17372. case 5:
  17373. if (this.isLogin()) {
  17374. _context41.next = 7;
  17375. break;
  17376. }
  17377. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  17378. case 7:
  17379. case "end":
  17380. return _context41.stop();
  17381. }
  17382. }
  17383. }, _callee41, this);
  17384. }));
  17385. function prepare() {
  17386. return _prepare2.apply(this, arguments);
  17387. }
  17388. return prepare;
  17389. }()
  17390. }, {
  17391. key: "getUserEncryptKey",
  17392. value: function () {
  17393. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
  17394. var _this16 = this;
  17395. var e;
  17396. return _regenerator.default.wrap(function _callee42$(_context42) {
  17397. while (1) {
  17398. switch (_context42.prev = _context42.next) {
  17399. case 0:
  17400. if (!this.userEncryptKey) {
  17401. _context42.next = 2;
  17402. break;
  17403. }
  17404. return _context42.abrupt("return", this.userEncryptKey);
  17405. case 2:
  17406. if (!(Un && Un.expireTime)) {
  17407. _context42.next = 6;
  17408. break;
  17409. }
  17410. e = Date.now();
  17411. if (!(Un.expireTime - e > 0)) {
  17412. _context42.next = 6;
  17413. break;
  17414. }
  17415. return _context42.abrupt("return", (this.userEncryptKey = Un, this.userEncryptKey));
  17416. case 6:
  17417. return _context42.abrupt("return", new Promise(function (e, t) {
  17418. uni.getUserCryptoManager().getLatestUserKey({
  17419. success: function success(t) {
  17420. Un = t, _this16.userEncryptKey = t, e(_this16.userEncryptKey);
  17421. },
  17422. fail: function fail(e) {
  17423. t(En(_objectSpread(_objectSpread({}, xn), {}, {
  17424. cause: e
  17425. })));
  17426. }
  17427. });
  17428. }));
  17429. case 7:
  17430. case "end":
  17431. return _context42.stop();
  17432. }
  17433. }
  17434. }, _callee42, this);
  17435. }));
  17436. function getUserEncryptKey() {
  17437. return _getUserEncryptKey.apply(this, arguments);
  17438. }
  17439. return getUserEncryptKey;
  17440. }()
  17441. }, {
  17442. key: "getWxAppId",
  17443. value: function getWxAppId() {
  17444. return wx.getAccountInfoSync().miniProgram.appId;
  17445. }
  17446. }, {
  17447. key: "platformGetSignOption",
  17448. value: function () {
  17449. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43() {
  17450. var _yield$this$getUserEn, e, t, n;
  17451. return _regenerator.default.wrap(function _callee43$(_context43) {
  17452. while (1) {
  17453. switch (_context43.prev = _context43.next) {
  17454. case 0:
  17455. _context43.next = 2;
  17456. return this.getUserEncryptKey();
  17457. case 2:
  17458. _yield$this$getUserEn = _context43.sent;
  17459. e = _yield$this$getUserEn.encryptKey;
  17460. t = _yield$this$getUserEn.iv;
  17461. n = _yield$this$getUserEn.version;
  17462. return _context43.abrupt("return", {
  17463. verifyClientSign: Cn(JSON.stringify({
  17464. data: JSON.stringify({}),
  17465. appId: this.appId,
  17466. deviceId: this.deviceId,
  17467. wxAppId: this.getWxAppId(),
  17468. simulator: "devtools" === ae().platform,
  17469. timestamp: Date.now()
  17470. }), e, t),
  17471. encryptKeyId: n,
  17472. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  17473. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  17474. });
  17475. case 7:
  17476. case "end":
  17477. return _context43.stop();
  17478. }
  17479. }
  17480. }, _callee43, this);
  17481. }));
  17482. function platformGetSignOption() {
  17483. return _platformGetSignOption.apply(this, arguments);
  17484. }
  17485. return platformGetSignOption;
  17486. }()
  17487. }, {
  17488. key: "platformEncryptData",
  17489. value: function () {
  17490. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44(e) {
  17491. var _yield$this$getUserEn2, t, n, s, r;
  17492. return _regenerator.default.wrap(function _callee44$(_context44) {
  17493. while (1) {
  17494. switch (_context44.prev = _context44.next) {
  17495. case 0:
  17496. _context44.next = 2;
  17497. return this.getUserEncryptKey();
  17498. case 2:
  17499. _yield$this$getUserEn2 = _context44.sent;
  17500. t = _yield$this$getUserEn2.encryptKey;
  17501. n = _yield$this$getUserEn2.iv;
  17502. s = _yield$this$getUserEn2.version;
  17503. r = {
  17504. secretType: this.secretType,
  17505. encryptKeyId: s,
  17506. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  17507. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  17508. };
  17509. return _context44.abrupt("return", this.secretType === Bt ? {
  17510. content: e,
  17511. _uniCloudOptions: r
  17512. } : {
  17513. content: Cn(JSON.stringify({
  17514. data: JSON.stringify(e),
  17515. appId: this.appId,
  17516. deviceId: this.deviceId,
  17517. wxAppId: this.getWxAppId(),
  17518. simulator: "devtools" === ae().platform,
  17519. timestamp: Date.now()
  17520. }), t, n),
  17521. _uniCloudOptions: r
  17522. });
  17523. case 8:
  17524. case "end":
  17525. return _context44.stop();
  17526. }
  17527. }
  17528. }, _callee44, this);
  17529. }));
  17530. function platformEncryptData(_x36) {
  17531. return _platformEncryptData.apply(this, arguments);
  17532. }
  17533. return platformEncryptData;
  17534. }()
  17535. }, {
  17536. key: "platformDecryptResult",
  17537. value: function () {
  17538. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45(e) {
  17539. var t, _yield$this$getUserEn3, n, s;
  17540. return _regenerator.default.wrap(function _callee45$(_context45) {
  17541. while (1) {
  17542. switch (_context45.prev = _context45.next) {
  17543. case 0:
  17544. t = e.content;
  17545. _context45.next = 3;
  17546. return this.getUserEncryptKey();
  17547. case 3:
  17548. _yield$this$getUserEn3 = _context45.sent;
  17549. n = _yield$this$getUserEn3.encryptKey;
  17550. s = _yield$this$getUserEn3.iv;
  17551. return _context45.abrupt("return", JSON.parse(function (e, t, n) {
  17552. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  17553. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  17554. i = An.utils.utf8.toBytes(n),
  17555. o = new An.ModeOfOperation.cbc(r, i),
  17556. a = An.padding.pkcs7.strip(o.decrypt(s));
  17557. return An.utils.utf8.fromBytes(a);
  17558. }(t, n, s)));
  17559. case 7:
  17560. case "end":
  17561. return _context45.stop();
  17562. }
  17563. }
  17564. }, _callee45, this);
  17565. }));
  17566. function platformDecryptResult(_x37) {
  17567. return _platformDecryptResult.apply(this, arguments);
  17568. }
  17569. return platformDecryptResult;
  17570. }()
  17571. }, {
  17572. key: "isClientKeyNotFound",
  17573. value: function isClientKeyNotFound() {
  17574. return !1;
  17575. }
  17576. }]);
  17577. return Nn;
  17578. }(Ht);
  17579. function Dn(e) {
  17580. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  17581. n = {};
  17582. var _loop = function _loop(_s11) {
  17583. var r = t[_s11];
  17584. n[r] = function () {
  17585. for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
  17586. t[_key] = arguments[_key];
  17587. }
  17588. return new Promise(function (n, s) {
  17589. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  17590. var _ref33 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17591. e = _ref33.type,
  17592. t = _ref33.data,
  17593. r = _ref33.errCode,
  17594. i = _ref33.errMsg,
  17595. o = _ref33.errSubject,
  17596. a = _ref33.message;
  17597. "success" === e ? n(t) : s(En({
  17598. errCode: r,
  17599. errMsg: On[r] || i || a,
  17600. errSubject: o
  17601. }));
  17602. }])) : s(En({
  17603. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  17604. }));
  17605. });
  17606. };
  17607. };
  17608. for (var _s11 = 0; _s11 < t.length; _s11++) {
  17609. _loop(_s11);
  17610. }
  17611. return n;
  17612. }
  17613. var Mn = /*#__PURE__*/function (_Ht2) {
  17614. (0, _inherits2.default)(Mn, _Ht2);
  17615. var _super10 = _createSuper(Mn);
  17616. function Mn(e) {
  17617. var _this17;
  17618. (0, _classCallCheck2.default)(this, Mn);
  17619. _this17 = _super10.call(this, e), _this17.clientType = "app", _this17.appUtils = _objectSpread({}, Dn(uni.requireNativePlugin("plus"))), _this17.systemInfo = Ln || (Ln = ae());
  17620. return _this17;
  17621. }
  17622. (0, _createClass2.default)(Mn, [{
  17623. key: "hasClientKey",
  17624. value: function () {
  17625. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46() {
  17626. return _regenerator.default.wrap(function _callee46$(_context46) {
  17627. while (1) {
  17628. switch (_context46.prev = _context46.next) {
  17629. case 0:
  17630. _context46.next = 2;
  17631. return this.appUtils.hasClientKey({
  17632. provider: this.provider,
  17633. spaceId: this.spaceId
  17634. });
  17635. case 2:
  17636. this._hasClientKey = _context46.sent;
  17637. return _context46.abrupt("return", this._hasClientKey);
  17638. case 4:
  17639. case "end":
  17640. return _context46.stop();
  17641. }
  17642. }
  17643. }, _callee46, this);
  17644. }));
  17645. function hasClientKey() {
  17646. return _hasClientKey.apply(this, arguments);
  17647. }
  17648. return hasClientKey;
  17649. }()
  17650. }, {
  17651. key: "getAppClientKey",
  17652. value: function () {
  17653. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47() {
  17654. var _yield$this$appUtils$, e, t, n, s, r;
  17655. return _regenerator.default.wrap(function _callee47$(_context47) {
  17656. while (1) {
  17657. switch (_context47.prev = _context47.next) {
  17658. case 0:
  17659. _context47.next = 2;
  17660. return this.appUtils.encryptGetClientKeyPayload({
  17661. data: JSON.stringify({})
  17662. });
  17663. case 2:
  17664. _yield$this$appUtils$ = _context47.sent;
  17665. e = _yield$this$appUtils$.data;
  17666. t = _yield$this$appUtils$.key;
  17667. _context47.next = 7;
  17668. return this.uniCloudIns.callFunction({
  17669. name: "DCloud-clientDB",
  17670. data: {
  17671. redirectTo: "encryption",
  17672. action: "getAppClientKey",
  17673. data: e,
  17674. key: t
  17675. }
  17676. });
  17677. case 7:
  17678. _context47.t0 = _context47.sent.result;
  17679. if (_context47.t0) {
  17680. _context47.next = 10;
  17681. break;
  17682. }
  17683. _context47.t0 = {};
  17684. case 10:
  17685. n = _context47.t0;
  17686. if (!(0 !== n.errCode)) {
  17687. _context47.next = 13;
  17688. break;
  17689. }
  17690. throw function (e) {
  17691. return new te({
  17692. subject: e.errSubject || "uni-secure-network",
  17693. code: e.errCode || e.code || Pn.code,
  17694. message: e.errMsg || e.message
  17695. });
  17696. }(n);
  17697. case 13:
  17698. s = n.clientKey, r = n.key;
  17699. _context47.next = 16;
  17700. return this.appUtils.setClientKey({
  17701. provider: this.provider,
  17702. spaceId: this.spaceId,
  17703. clientKey: s,
  17704. key: r
  17705. });
  17706. case 16:
  17707. case "end":
  17708. return _context47.stop();
  17709. }
  17710. }
  17711. }, _callee47, this);
  17712. }));
  17713. function getAppClientKey() {
  17714. return _getAppClientKey.apply(this, arguments);
  17715. }
  17716. return getAppClientKey;
  17717. }()
  17718. }, {
  17719. key: "ensureClientKey",
  17720. value: function () {
  17721. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48() {
  17722. var _this18 = this;
  17723. var _ref34,
  17724. _ref34$forceUpdate,
  17725. e,
  17726. _args48 = arguments;
  17727. return _regenerator.default.wrap(function _callee48$(_context48) {
  17728. while (1) {
  17729. switch (_context48.prev = _context48.next) {
  17730. case 0:
  17731. _ref34 = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {}, _ref34$forceUpdate = _ref34.forceUpdate, e = _ref34$forceUpdate === void 0 ? !1 : _ref34$forceUpdate;
  17732. _context48.t1 = !0;
  17733. _context48.next = 4;
  17734. return this.hasClientKey();
  17735. case 4:
  17736. _context48.t2 = _context48.sent;
  17737. _context48.t0 = _context48.t1 !== _context48.t2;
  17738. if (_context48.t0) {
  17739. _context48.next = 8;
  17740. break;
  17741. }
  17742. _context48.t0 = e;
  17743. case 8:
  17744. if (!_context48.t0) {
  17745. _context48.next = 10;
  17746. break;
  17747. }
  17748. return _context48.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) {
  17749. _this18.scopedGlobalCache.initStatus = d;
  17750. }).catch(function (e) {
  17751. throw _this18.scopedGlobalCache.initStatus = p, e;
  17752. }), this.scopedGlobalCache.initStatus = l), this.scopedGlobalCache.initPromise));
  17753. case 10:
  17754. case "end":
  17755. return _context48.stop();
  17756. }
  17757. }
  17758. }, _callee48, this);
  17759. }));
  17760. function ensureClientKey() {
  17761. return _ensureClientKey.apply(this, arguments);
  17762. }
  17763. return ensureClientKey;
  17764. }()
  17765. }, {
  17766. key: "prepare",
  17767. value: function () {
  17768. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49() {
  17769. var _ref35,
  17770. _ref35$forceUpdate,
  17771. e,
  17772. _args49 = arguments;
  17773. return _regenerator.default.wrap(function _callee49$(_context49) {
  17774. while (1) {
  17775. switch (_context49.prev = _context49.next) {
  17776. case 0:
  17777. _ref35 = _args49.length > 0 && _args49[0] !== undefined ? _args49[0] : {}, _ref35$forceUpdate = _ref35.forceUpdate, e = _ref35$forceUpdate === void 0 ? !1 : _ref35$forceUpdate;
  17778. _context49.next = 3;
  17779. return this.ensureClientKey({
  17780. forceUpdate: e
  17781. });
  17782. case 3:
  17783. case "end":
  17784. return _context49.stop();
  17785. }
  17786. }
  17787. }, _callee49, this);
  17788. }));
  17789. function prepare() {
  17790. return _prepare3.apply(this, arguments);
  17791. }
  17792. return prepare;
  17793. }()
  17794. }, {
  17795. key: "platformGetSignOption",
  17796. value: function () {
  17797. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50() {
  17798. var _yield$this$appUtils$2, e, t;
  17799. return _regenerator.default.wrap(function _callee50$(_context50) {
  17800. while (1) {
  17801. switch (_context50.prev = _context50.next) {
  17802. case 0:
  17803. _context50.next = 2;
  17804. return this.appUtils.encrypt({
  17805. provider: this.provider,
  17806. spaceId: this.spaceId,
  17807. data: JSON.stringify({})
  17808. });
  17809. case 2:
  17810. _yield$this$appUtils$2 = _context50.sent;
  17811. e = _yield$this$appUtils$2.data;
  17812. t = _yield$this$appUtils$2.key;
  17813. return _context50.abrupt("return", {
  17814. verifyClientSign: e,
  17815. encryptKeyId: t
  17816. });
  17817. case 6:
  17818. case "end":
  17819. return _context50.stop();
  17820. }
  17821. }
  17822. }, _callee50, this);
  17823. }));
  17824. function platformGetSignOption() {
  17825. return _platformGetSignOption2.apply(this, arguments);
  17826. }
  17827. return platformGetSignOption;
  17828. }()
  17829. }, {
  17830. key: "platformEncryptData",
  17831. value: function () {
  17832. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51(e) {
  17833. var _yield$this$appUtils$3, t, n, s;
  17834. return _regenerator.default.wrap(function _callee51$(_context51) {
  17835. while (1) {
  17836. switch (_context51.prev = _context51.next) {
  17837. case 0:
  17838. _context51.next = 2;
  17839. return this.appUtils.encrypt({
  17840. provider: this.provider,
  17841. spaceId: this.spaceId,
  17842. data: JSON.stringify(e)
  17843. });
  17844. case 2:
  17845. _yield$this$appUtils$3 = _context51.sent;
  17846. t = _yield$this$appUtils$3.data;
  17847. n = _yield$this$appUtils$3.key;
  17848. s = {
  17849. secretType: this.secretType,
  17850. encryptKeyId: n
  17851. };
  17852. return _context51.abrupt("return", this.secretType === Bt ? {
  17853. content: e,
  17854. _uniCloudOptions: s
  17855. } : {
  17856. content: t,
  17857. _uniCloudOptions: s
  17858. });
  17859. case 7:
  17860. case "end":
  17861. return _context51.stop();
  17862. }
  17863. }
  17864. }, _callee51, this);
  17865. }));
  17866. function platformEncryptData(_x38) {
  17867. return _platformEncryptData2.apply(this, arguments);
  17868. }
  17869. return platformEncryptData;
  17870. }()
  17871. }, {
  17872. key: "platformDecryptResult",
  17873. value: function () {
  17874. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52(e) {
  17875. var t, _e$_uniCloudOptions, n, s, r;
  17876. return _regenerator.default.wrap(function _callee52$(_context52) {
  17877. while (1) {
  17878. switch (_context52.prev = _context52.next) {
  17879. case 0:
  17880. t = e.content;
  17881. _e$_uniCloudOptions = e._uniCloudOptions;
  17882. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  17883. s = n.encryptKeyId;
  17884. _context52.next = 6;
  17885. return this.appUtils.decrypt({
  17886. provider: this.provider,
  17887. spaceId: this.spaceId,
  17888. data: t,
  17889. key: s
  17890. });
  17891. case 6:
  17892. r = _context52.sent;
  17893. return _context52.abrupt("return", JSON.parse(r.data));
  17894. case 8:
  17895. case "end":
  17896. return _context52.stop();
  17897. }
  17898. }
  17899. }, _callee52, this);
  17900. }));
  17901. function platformDecryptResult(_x39) {
  17902. return _platformDecryptResult2.apply(this, arguments);
  17903. }
  17904. return platformDecryptResult;
  17905. }()
  17906. }, {
  17907. key: "isClientKeyNotFound",
  17908. value: function isClientKeyNotFound() {
  17909. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  17910. var t = e.result || {};
  17911. return 70009 === t.errCode && "uni-secure-network" === t.errSubject;
  17912. }
  17913. }]);
  17914. return Mn;
  17915. }(Ht);
  17916. function qn() {
  17917. var _ref36 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17918. e = _ref36.secretType;
  17919. return e === $t || e === Bt || e === Wt;
  17920. }
  17921. function Fn() {
  17922. var _ref37 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17923. e = _ref37.name,
  17924. _ref37$data = _ref37.data,
  17925. t = _ref37$data === void 0 ? {} : _ref37$data;
  17926. return "app" === C && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  17927. }
  17928. function Kn() {
  17929. var _ref38 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17930. e = _ref38.provider,
  17931. t = _ref38.spaceId,
  17932. n = _ref38.functionName;
  17933. var _ae = ae(),
  17934. s = _ae.appId,
  17935. r = _ae.uniPlatform,
  17936. i = _ae.osName;
  17937. var o = r;
  17938. "app" === r && (o = i);
  17939. var a = function () {
  17940. var _ref39 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17941. e = _ref39.provider,
  17942. t = _ref39.spaceId;
  17943. var n = A;
  17944. if (!n) return {};
  17945. e = function (e) {
  17946. return "tencent" === e ? "tcb" : e;
  17947. }(e);
  17948. var s = n.find(function (n) {
  17949. return n.provider === e && n.spaceId === t;
  17950. });
  17951. return s && s.config;
  17952. }({
  17953. provider: e,
  17954. spaceId: t
  17955. });
  17956. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  17957. var c = a.accessControl.function || {},
  17958. u = Object.keys(c);
  17959. if (0 === u.length) return !0;
  17960. var h = function (e, t) {
  17961. var n, s, r;
  17962. for (var _i2 = 0; _i2 < e.length; _i2++) {
  17963. var _o2 = e[_i2];
  17964. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  17965. return e.trim();
  17966. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  17967. }
  17968. return n || s || r;
  17969. }(u, n);
  17970. if (!h) return !1;
  17971. if ((c[h] || []).find(function () {
  17972. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  17973. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  17974. })) return !0;
  17975. 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")), En(Tn);
  17976. }
  17977. function jn(_ref40) {
  17978. var e = _ref40.functionName,
  17979. t = _ref40.result,
  17980. n = _ref40.logPvd;
  17981. if (S && this.__dev__.debugLog && t && t.requestId) {
  17982. var _s12 = JSON.stringify({
  17983. spaceId: this.config.spaceId,
  17984. functionName: e,
  17985. requestId: t.requestId
  17986. });
  17987. console.log("[".concat(n, "-request]").concat(_s12, "[/").concat(n, "-request]"));
  17988. }
  17989. }
  17990. function $n(e) {
  17991. var t = e.callFunction,
  17992. n = function n(_n10) {
  17993. var _this19 = this;
  17994. var s = _n10.name;
  17995. _n10.data = Nt.call(e, {
  17996. data: _n10.data
  17997. });
  17998. var r = {
  17999. aliyun: "aliyun",
  18000. tencent: "tcb",
  18001. tcb: "tcb",
  18002. alipay: "alipay"
  18003. }[this.config.provider],
  18004. i = qn(_n10),
  18005. o = Fn(_n10),
  18006. a = i || o;
  18007. return t.call(this, _n10).then(function (e) {
  18008. return e.errCode = 0, !a && jn.call(_this19, {
  18009. functionName: s,
  18010. result: e,
  18011. logPvd: r
  18012. }), Promise.resolve(e);
  18013. }, function (e) {
  18014. return !a && jn.call(_this19, {
  18015. functionName: s,
  18016. result: e,
  18017. logPvd: r
  18018. }), e && e.message && (e.message = function () {
  18019. var _ref41 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18020. _ref41$message = _ref41.message,
  18021. e = _ref41$message === void 0 ? "" : _ref41$message,
  18022. _ref41$extraInfo = _ref41.extraInfo,
  18023. t = _ref41$extraInfo === void 0 ? {} : _ref41$extraInfo,
  18024. _ref41$formatter = _ref41.formatter,
  18025. n = _ref41$formatter === void 0 ? [] : _ref41$formatter;
  18026. for (var _s13 = 0; _s13 < n.length; _s13++) {
  18027. var _n$_s = n[_s13],
  18028. _r6 = _n$_s.rule,
  18029. _i3 = _n$_s.content,
  18030. _o3 = _n$_s.mode,
  18031. _a = e.match(_r6);
  18032. if (!_a) continue;
  18033. var _c = _i3;
  18034. for (var _e19 = 1; _e19 < _a.length; _e19++) {
  18035. _c = Kt(_c, "{$".concat(_e19, "}"), _a[_e19]);
  18036. }
  18037. for (var _e20 in t) {
  18038. _c = Kt(_c, "{".concat(_e20, "}"), t[_e20]);
  18039. }
  18040. return "replace" === _o3 ? _c : e + _c;
  18041. }
  18042. return e;
  18043. }({
  18044. message: "[".concat(_n10.name, "]: ").concat(e.message),
  18045. formatter: Mt,
  18046. extraInfo: {
  18047. functionName: s
  18048. }
  18049. })), Promise.reject(e);
  18050. });
  18051. };
  18052. e.callFunction = function (t) {
  18053. var _e$config = e.config,
  18054. s = _e$config.provider,
  18055. r = _e$config.spaceId,
  18056. i = t.name;
  18057. var o, a;
  18058. if (t.data = t.data || {}, S && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && T ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = Dt), o = Dt) : o = n, o = o.bind(e), Fn(t)) a = n.call(e, t);else if (function (_ref42) {
  18059. var e = _ref42.name,
  18060. _ref42$data = _ref42.data,
  18061. t = _ref42$data === void 0 ? {} : _ref42$data;
  18062. return "mp-weixin" === C && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  18063. }(t)) a = o.call(e, t);else if (qn(t)) {
  18064. a = new Rn({
  18065. secretType: t.secretType,
  18066. uniCloudIns: e
  18067. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  18068. } else if (Kn({
  18069. provider: s,
  18070. spaceId: r,
  18071. functionName: i
  18072. })) {
  18073. a = new Rn({
  18074. secretType: t.secretType,
  18075. uniCloudIns: e
  18076. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  18077. } else a = o(t);
  18078. return Object.defineProperty(a, "result", {
  18079. get: function get() {
  18080. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  18081. }
  18082. }), a.then(function (e) {
  18083. return "undefined" != typeof UTSJSONObject && (e.result = new UTSJSONObject(e.result)), e;
  18084. });
  18085. };
  18086. }
  18087. Rn = "mp-weixin" !== C && "app" !== C ? /*#__PURE__*/function () {
  18088. function _class2() {
  18089. (0, _classCallCheck2.default)(this, _class2);
  18090. throw En({
  18091. message: "Platform ".concat(C, " is not supported by secure network")
  18092. });
  18093. }
  18094. return (0, _createClass2.default)(_class2);
  18095. }() : k ? "mp-weixin" === C ? Nn : Mn : /*#__PURE__*/function () {
  18096. function _class3() {
  18097. (0, _classCallCheck2.default)(this, _class3);
  18098. throw En({
  18099. message: "Platform ".concat(C, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  18100. });
  18101. }
  18102. return (0, _createClass2.default)(_class3);
  18103. }();
  18104. var Bn = Symbol("CLIENT_DB_INTERNAL");
  18105. function Wn(e, t) {
  18106. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Bn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  18107. get: function get(e, n, s) {
  18108. if ("_uniClient" === n) return null;
  18109. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  18110. if (n in e || "string" != typeof n) {
  18111. var _t11 = e[n];
  18112. return "function" == typeof _t11 ? _t11.bind(e) : _t11;
  18113. }
  18114. return t.get(e, n, s);
  18115. }
  18116. });
  18117. }
  18118. function Hn(e) {
  18119. return {
  18120. on: function on(t, n) {
  18121. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  18122. },
  18123. off: function off(t, n) {
  18124. e[t] = e[t] || [];
  18125. var s = e[t].indexOf(n);
  18126. -1 !== s && e[t].splice(s, 1);
  18127. }
  18128. };
  18129. }
  18130. var zn = ["db.Geo", "db.command", "command.aggregate"];
  18131. function Jn(e, t) {
  18132. return zn.indexOf("".concat(e, ".").concat(t)) > -1;
  18133. }
  18134. function Vn(e) {
  18135. switch (f(e)) {
  18136. case "array":
  18137. return e.map(function (e) {
  18138. return Vn(e);
  18139. });
  18140. case "object":
  18141. return e._internalType === Bn || Object.keys(e).forEach(function (t) {
  18142. e[t] = Vn(e[t]);
  18143. }), e;
  18144. case "regexp":
  18145. return {
  18146. $regexp: {
  18147. source: e.source,
  18148. flags: e.flags
  18149. }
  18150. };
  18151. case "date":
  18152. return {
  18153. $date: e.toISOString()
  18154. };
  18155. default:
  18156. return e;
  18157. }
  18158. }
  18159. function Gn(e) {
  18160. return e && e.content && e.content.$method;
  18161. }
  18162. var Yn = /*#__PURE__*/function () {
  18163. function Yn(e, t, n) {
  18164. (0, _classCallCheck2.default)(this, Yn);
  18165. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  18166. }
  18167. (0, _createClass2.default)(Yn, [{
  18168. key: "toJSON",
  18169. value: function toJSON() {
  18170. var e = this;
  18171. var t = [e.content];
  18172. for (; e.prevStage;) {
  18173. e = e.prevStage, t.push(e.content);
  18174. }
  18175. return {
  18176. $db: t.reverse().map(function (e) {
  18177. return {
  18178. $method: e.$method,
  18179. $param: Vn(e.$param)
  18180. };
  18181. })
  18182. };
  18183. }
  18184. }, {
  18185. key: "toString",
  18186. value: function toString() {
  18187. return JSON.stringify(this.toJSON());
  18188. }
  18189. }, {
  18190. key: "getAction",
  18191. value: function getAction() {
  18192. var e = this.toJSON().$db.find(function (e) {
  18193. return "action" === e.$method;
  18194. });
  18195. return e && e.$param && e.$param[0];
  18196. }
  18197. }, {
  18198. key: "getCommand",
  18199. value: function getCommand() {
  18200. return {
  18201. $db: this.toJSON().$db.filter(function (e) {
  18202. return "action" !== e.$method;
  18203. })
  18204. };
  18205. }
  18206. }, {
  18207. key: "isAggregate",
  18208. get: function get() {
  18209. var e = this;
  18210. for (; e;) {
  18211. var t = Gn(e),
  18212. _n11 = Gn(e.prevStage);
  18213. if ("aggregate" === t && "collection" === _n11 || "pipeline" === t) return !0;
  18214. e = e.prevStage;
  18215. }
  18216. return !1;
  18217. }
  18218. }, {
  18219. key: "isCommand",
  18220. get: function get() {
  18221. var e = this;
  18222. for (; e;) {
  18223. if ("command" === Gn(e)) return !0;
  18224. e = e.prevStage;
  18225. }
  18226. return !1;
  18227. }
  18228. }, {
  18229. key: "isAggregateCommand",
  18230. get: function get() {
  18231. var e = this;
  18232. for (; e;) {
  18233. var t = Gn(e),
  18234. _n12 = Gn(e.prevStage);
  18235. if ("aggregate" === t && "command" === _n12) return !0;
  18236. e = e.prevStage;
  18237. }
  18238. return !1;
  18239. }
  18240. }, {
  18241. key: "getNextStageFn",
  18242. value: function getNextStageFn(e) {
  18243. var t = this;
  18244. return function () {
  18245. return Qn({
  18246. $method: e,
  18247. $param: Vn(Array.from(arguments))
  18248. }, t, t._database);
  18249. };
  18250. }
  18251. }, {
  18252. key: "count",
  18253. get: function get() {
  18254. return this.isAggregate ? this.getNextStageFn("count") : function () {
  18255. return this._send("count", Array.from(arguments));
  18256. };
  18257. }
  18258. }, {
  18259. key: "remove",
  18260. get: function get() {
  18261. return this.isCommand ? this.getNextStageFn("remove") : function () {
  18262. return this._send("remove", Array.from(arguments));
  18263. };
  18264. }
  18265. }, {
  18266. key: "get",
  18267. value: function get() {
  18268. return this._send("get", Array.from(arguments));
  18269. }
  18270. }, {
  18271. key: "add",
  18272. get: function get() {
  18273. return this.isCommand ? this.getNextStageFn("add") : function () {
  18274. return this._send("add", Array.from(arguments));
  18275. };
  18276. }
  18277. }, {
  18278. key: "update",
  18279. value: function update() {
  18280. return this._send("update", Array.from(arguments));
  18281. }
  18282. }, {
  18283. key: "end",
  18284. value: function end() {
  18285. return this._send("end", Array.from(arguments));
  18286. }
  18287. }, {
  18288. key: "set",
  18289. get: function get() {
  18290. return this.isCommand ? this.getNextStageFn("set") : function () {
  18291. throw new Error("JQL禁止使用set方法");
  18292. };
  18293. }
  18294. }, {
  18295. key: "_send",
  18296. value: function _send(e, t) {
  18297. var n = this.getAction(),
  18298. s = this.getCommand();
  18299. if (s.$db.push({
  18300. $method: e,
  18301. $param: Vn(t)
  18302. }), S) {
  18303. var _e21 = s.$db.find(function (e) {
  18304. return "collection" === e.$method;
  18305. }),
  18306. _t12 = _e21 && _e21.$param;
  18307. _t12 && 1 === _t12.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- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  18308. }
  18309. return this._database._callCloudFunction({
  18310. action: n,
  18311. command: s
  18312. });
  18313. }
  18314. }]);
  18315. return Yn;
  18316. }();
  18317. function Qn(e, t, n) {
  18318. return Wn(new Yn(e, t, n), {
  18319. get: function get(e, t) {
  18320. var s = "db";
  18321. return e && e.content && (s = e.content.$method), Jn(s, t) ? Qn({
  18322. $method: t
  18323. }, e, n) : function () {
  18324. return Qn({
  18325. $method: t,
  18326. $param: Vn(Array.from(arguments))
  18327. }, e, n);
  18328. };
  18329. }
  18330. });
  18331. }
  18332. function Xn(_ref43) {
  18333. var e = _ref43.path,
  18334. t = _ref43.method;
  18335. return /*#__PURE__*/function () {
  18336. function _class4() {
  18337. (0, _classCallCheck2.default)(this, _class4);
  18338. this.param = Array.from(arguments);
  18339. }
  18340. (0, _createClass2.default)(_class4, [{
  18341. key: "toJSON",
  18342. value: function toJSON() {
  18343. return {
  18344. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  18345. return {
  18346. $method: e
  18347. };
  18348. })), [{
  18349. $method: t,
  18350. $param: this.param
  18351. }])
  18352. };
  18353. }
  18354. }, {
  18355. key: "toString",
  18356. value: function toString() {
  18357. return JSON.stringify(this.toJSON());
  18358. }
  18359. }]);
  18360. return _class4;
  18361. }();
  18362. }
  18363. function Zn(e) {
  18364. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18365. return Wn(new e(t), {
  18366. get: function get(e, t) {
  18367. return Jn("db", t) ? Qn({
  18368. $method: t
  18369. }, null, e) : function () {
  18370. return Qn({
  18371. $method: t,
  18372. $param: Vn(Array.from(arguments))
  18373. }, null, e);
  18374. };
  18375. }
  18376. });
  18377. }
  18378. var es = /*#__PURE__*/function (_ref44) {
  18379. (0, _inherits2.default)(es, _ref44);
  18380. var _super11 = _createSuper(es);
  18381. function es() {
  18382. (0, _classCallCheck2.default)(this, es);
  18383. return _super11.apply(this, arguments);
  18384. }
  18385. (0, _createClass2.default)(es, [{
  18386. key: "_parseResult",
  18387. value: function _parseResult(e) {
  18388. return this._isJQL ? e.result : e;
  18389. }
  18390. }, {
  18391. key: "_callCloudFunction",
  18392. value: function _callCloudFunction(_ref45) {
  18393. var _this20 = this;
  18394. var e = _ref45.action,
  18395. t = _ref45.command,
  18396. n = _ref45.multiCommand,
  18397. s = _ref45.queryList;
  18398. function r(e, t) {
  18399. if (n && s) for (var _n13 = 0; _n13 < s.length; _n13++) {
  18400. var _r7 = s[_n13];
  18401. _r7.udb && "function" == typeof _r7.udb.setResult && (t ? _r7.udb.setResult(t) : _r7.udb.setResult(e.result.dataList[_n13]));
  18402. }
  18403. }
  18404. var i = this,
  18405. o = this._isJQL ? "databaseForJQL" : "database";
  18406. function a(e) {
  18407. return i._callback("error", [e]), M(q(o, "fail"), e).then(function () {
  18408. return M(q(o, "complete"), e);
  18409. }).then(function () {
  18410. return r(null, e), Y(j, {
  18411. type: W,
  18412. content: e
  18413. }), Promise.reject(e);
  18414. });
  18415. }
  18416. var c = M(q(o, "invoke")),
  18417. u = this._uniClient;
  18418. return c.then(function () {
  18419. return u.callFunction({
  18420. name: "DCloud-clientDB",
  18421. type: h,
  18422. data: {
  18423. action: e,
  18424. command: t,
  18425. multiCommand: n
  18426. }
  18427. });
  18428. }).then(function (e) {
  18429. var _e$result = e.result,
  18430. t = _e$result.code,
  18431. n = _e$result.message,
  18432. s = _e$result.token,
  18433. c = _e$result.tokenExpired,
  18434. _e$result$systemInfo = _e$result.systemInfo,
  18435. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  18436. if (u) for (var _e22 = 0; _e22 < u.length; _e22++) {
  18437. var _u$_e = u[_e22],
  18438. _t13 = _u$_e.level,
  18439. _n14 = _u$_e.message,
  18440. _s14 = _u$_e.detail,
  18441. _r8 = console["app" === C && "warn" === _t13 ? "error" : _t13] || console.log;
  18442. var _i4 = "[System Info]" + _n14;
  18443. _s14 && (_i4 = "".concat(_i4, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s14)), _r8(_i4);
  18444. }
  18445. if (t) {
  18446. return a(new te({
  18447. code: t,
  18448. message: n,
  18449. requestId: e.requestId
  18450. }));
  18451. }
  18452. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (re({
  18453. token: s,
  18454. tokenExpired: c
  18455. }), _this20._callbackAuth("refreshToken", [{
  18456. token: s,
  18457. tokenExpired: c
  18458. }]), _this20._callback("refreshToken", [{
  18459. token: s,
  18460. tokenExpired: c
  18461. }]), Y(B, {
  18462. token: s,
  18463. tokenExpired: c
  18464. }));
  18465. var h = [{
  18466. prop: "affectedDocs",
  18467. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  18468. }, {
  18469. prop: "code",
  18470. tips: "code不再推荐使用,请使用errCode替代"
  18471. }, {
  18472. prop: "message",
  18473. tips: "message不再推荐使用,请使用errMsg替代"
  18474. }];
  18475. var _loop2 = function _loop2(_t14) {
  18476. var _h$_t = h[_t14],
  18477. n = _h$_t.prop,
  18478. s = _h$_t.tips;
  18479. if (n in e.result) {
  18480. var _t15 = e.result[n];
  18481. Object.defineProperty(e.result, n, {
  18482. get: function get() {
  18483. return console.warn(s), _t15;
  18484. }
  18485. });
  18486. }
  18487. };
  18488. for (var _t14 = 0; _t14 < h.length; _t14++) {
  18489. _loop2(_t14);
  18490. }
  18491. return function (e) {
  18492. return M(q(o, "success"), e).then(function () {
  18493. return M(q(o, "complete"), e);
  18494. }).then(function () {
  18495. r(e, null);
  18496. var t = i._parseResult(e);
  18497. return Y(j, {
  18498. type: W,
  18499. content: t
  18500. }), Promise.resolve(t);
  18501. });
  18502. }(e);
  18503. }, function (e) {
  18504. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  18505. return a(new te({
  18506. code: e.code || "SYSTEM_ERROR",
  18507. message: e.message,
  18508. requestId: e.requestId
  18509. }));
  18510. });
  18511. }
  18512. }]);
  18513. return es;
  18514. }( /*#__PURE__*/function () {
  18515. function _class5() {
  18516. var _ref46 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18517. _ref46$uniClient = _ref46.uniClient,
  18518. e = _ref46$uniClient === void 0 ? {} : _ref46$uniClient,
  18519. _ref46$isJQL = _ref46.isJQL,
  18520. t = _ref46$isJQL === void 0 ? !1 : _ref46$isJQL;
  18521. (0, _classCallCheck2.default)(this, _class5);
  18522. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e._isDefault && (this._dbCallBacks = L("_globalUniCloudDatabaseCallback")), t || (this.auth = Hn(this._authCallBacks)), this._isJQL = t, Object.assign(this, Hn(this._dbCallBacks)), this.env = Wn({}, {
  18523. get: function get(e, t) {
  18524. return {
  18525. $env: t
  18526. };
  18527. }
  18528. }), this.Geo = Wn({}, {
  18529. get: function get(e, t) {
  18530. return Xn({
  18531. path: ["Geo"],
  18532. method: t
  18533. });
  18534. }
  18535. }), this.serverDate = Xn({
  18536. path: [],
  18537. method: "serverDate"
  18538. }), this.RegExp = Xn({
  18539. path: [],
  18540. method: "RegExp"
  18541. });
  18542. }
  18543. (0, _createClass2.default)(_class5, [{
  18544. key: "getCloudEnv",
  18545. value: function getCloudEnv(e) {
  18546. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  18547. return {
  18548. $env: e.replace("$cloudEnv_", "")
  18549. };
  18550. }
  18551. }, {
  18552. key: "_callback",
  18553. value: function _callback(e, t) {
  18554. var n = this._dbCallBacks;
  18555. n[e] && n[e].forEach(function (e) {
  18556. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  18557. });
  18558. }
  18559. }, {
  18560. key: "_callbackAuth",
  18561. value: function _callbackAuth(e, t) {
  18562. var n = this._authCallBacks;
  18563. n[e] && n[e].forEach(function (e) {
  18564. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  18565. });
  18566. }
  18567. }, {
  18568. key: "multiSend",
  18569. value: function multiSend() {
  18570. var e = Array.from(arguments),
  18571. t = e.map(function (e) {
  18572. var t = e.getAction(),
  18573. n = e.getCommand();
  18574. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  18575. return {
  18576. action: t,
  18577. command: n
  18578. };
  18579. });
  18580. return this._callCloudFunction({
  18581. multiCommand: t,
  18582. queryList: e
  18583. });
  18584. }
  18585. }]);
  18586. return _class5;
  18587. }());
  18588. var ts = "token无效,跳转登录页面",
  18589. ns = "token过期,跳转登录页面",
  18590. ss = {
  18591. TOKEN_INVALID_TOKEN_EXPIRED: ns,
  18592. TOKEN_INVALID_INVALID_CLIENTID: ts,
  18593. TOKEN_INVALID: ts,
  18594. TOKEN_INVALID_WRONG_TOKEN: ts,
  18595. TOKEN_INVALID_ANONYMOUS_USER: ts
  18596. },
  18597. rs = {
  18598. "uni-id-token-expired": ns,
  18599. "uni-id-check-token-failed": ts,
  18600. "uni-id-token-not-exist": ts,
  18601. "uni-id-check-device-feature-failed": ts
  18602. };
  18603. function is(e, t) {
  18604. var n = "";
  18605. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  18606. }
  18607. function os() {
  18608. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  18609. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  18610. var n = [],
  18611. s = [];
  18612. return e.forEach(function (e) {
  18613. !0 === e.needLogin ? n.push(is(t, e.path)) : !1 === e.needLogin && s.push(is(t, e.path));
  18614. }), {
  18615. needLoginPage: n,
  18616. notNeedLoginPage: s
  18617. };
  18618. }
  18619. function as(e) {
  18620. return e.split("?")[0].replace(/^\//, "");
  18621. }
  18622. function cs() {
  18623. return function (e) {
  18624. var t = e && e.$page && e.$page.fullPath || "";
  18625. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  18626. }(function () {
  18627. var e = getCurrentPages();
  18628. return e[e.length - 1];
  18629. }());
  18630. }
  18631. function us() {
  18632. return as(cs());
  18633. }
  18634. function hs() {
  18635. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  18636. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18637. if (!e) return !1;
  18638. if (!(t && t.list && t.list.length)) return !1;
  18639. var n = t.list,
  18640. s = as(e);
  18641. return n.some(function (e) {
  18642. return e.pagePath === s;
  18643. });
  18644. }
  18645. var ls = !!_pages.default.uniIdRouter;
  18646. var _ref47 = function () {
  18647. var _ref28 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  18648. _ref28$pages = _ref28.pages,
  18649. t = _ref28$pages === void 0 ? [] : _ref28$pages,
  18650. _ref28$subPackages = _ref28.subPackages,
  18651. n = _ref28$subPackages === void 0 ? [] : _ref28$subPackages,
  18652. _ref28$uniIdRouter = _ref28.uniIdRouter,
  18653. s = _ref28$uniIdRouter === void 0 ? {} : _ref28$uniIdRouter,
  18654. _ref28$tabBar = _ref28.tabBar,
  18655. r = _ref28$tabBar === void 0 ? {} : _ref28$tabBar;
  18656. var i = s.loginPage,
  18657. _s$needLogin = s.needLogin,
  18658. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  18659. _s$resToLogin = s.resToLogin,
  18660. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  18661. _os = os(t),
  18662. c = _os.needLoginPage,
  18663. u = _os.notNeedLoginPage,
  18664. _ref30 = function () {
  18665. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  18666. var t = [],
  18667. n = [];
  18668. return e.forEach(function (e) {
  18669. var s = e.root,
  18670. _e$pages = e.pages,
  18671. r = _e$pages === void 0 ? [] : _e$pages,
  18672. _os2 = os(r, s),
  18673. i = _os2.needLoginPage,
  18674. o = _os2.notNeedLoginPage;
  18675. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  18676. }), {
  18677. needLoginPage: t,
  18678. notNeedLoginPage: n
  18679. };
  18680. }(n),
  18681. h = _ref30.needLoginPage,
  18682. l = _ref30.notNeedLoginPage;
  18683. return {
  18684. loginPage: i,
  18685. routerNeedLogin: o,
  18686. resToLogin: a,
  18687. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(h)),
  18688. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(l)),
  18689. loginPageInTabBar: hs(i, r)
  18690. };
  18691. }(),
  18692. ds = _ref47.loginPage,
  18693. ps = _ref47.routerNeedLogin,
  18694. fs = _ref47.resToLogin,
  18695. gs = _ref47.needLoginPage,
  18696. ms = _ref47.notNeedLoginPage,
  18697. ys = _ref47.loginPageInTabBar;
  18698. if (gs.indexOf(ds) > -1) throw new Error("Login page [".concat(ds, "] should not be \"needLogin\", please check your pages.json"));
  18699. function _s(e) {
  18700. var t = us();
  18701. if ("/" === e.charAt(0)) return e;
  18702. var _e$split = e.split("?"),
  18703. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  18704. n = _e$split2[0],
  18705. s = _e$split2[1],
  18706. r = n.replace(/^\//, "").split("/"),
  18707. i = t.split("/");
  18708. i.pop();
  18709. for (var _e23 = 0; _e23 < r.length; _e23++) {
  18710. var _t16 = r[_e23];
  18711. ".." === _t16 ? i.pop() : "." !== _t16 && i.push(_t16);
  18712. }
  18713. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  18714. }
  18715. function ws(e) {
  18716. var t = as(_s(e));
  18717. return !(ms.indexOf(t) > -1) && (gs.indexOf(t) > -1 || ps.some(function (t) {
  18718. return function (e, t) {
  18719. return new RegExp(t).test(e);
  18720. }(e, t);
  18721. }));
  18722. }
  18723. function vs(_ref48) {
  18724. var e = _ref48.redirect;
  18725. var t = as(e),
  18726. n = as(ds);
  18727. return us() !== n && t !== n;
  18728. }
  18729. function Is() {
  18730. var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18731. e = _ref49.api,
  18732. t = _ref49.redirect;
  18733. if (!t || !vs({
  18734. redirect: t
  18735. })) return;
  18736. var n = function (e, t) {
  18737. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  18738. }(ds, t);
  18739. ys ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  18740. var s = {
  18741. navigateTo: uni.navigateTo,
  18742. redirectTo: uni.redirectTo,
  18743. switchTab: uni.switchTab,
  18744. reLaunch: uni.reLaunch
  18745. };
  18746. setTimeout(function () {
  18747. s[e]({
  18748. url: n
  18749. });
  18750. }, 0);
  18751. }
  18752. function Ss() {
  18753. var _ref50 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18754. e = _ref50.url;
  18755. var t = {
  18756. abortLoginPageJump: !1,
  18757. autoToLoginPage: !1
  18758. },
  18759. n = function () {
  18760. var _se3 = se(),
  18761. e = _se3.token,
  18762. t = _se3.tokenExpired;
  18763. var n;
  18764. if (e) {
  18765. if (t < Date.now()) {
  18766. var _e24 = "uni-id-token-expired";
  18767. n = {
  18768. errCode: _e24,
  18769. errMsg: rs[_e24]
  18770. };
  18771. }
  18772. } else {
  18773. var _e25 = "uni-id-check-token-failed";
  18774. n = {
  18775. errCode: _e25,
  18776. errMsg: rs[_e25]
  18777. };
  18778. }
  18779. return n;
  18780. }();
  18781. if (ws(e) && n) {
  18782. n.uniIdRedirectUrl = e;
  18783. if (J($).length > 0) return setTimeout(function () {
  18784. Y($, n);
  18785. }, 0), t.abortLoginPageJump = !0, t;
  18786. t.autoToLoginPage = !0;
  18787. }
  18788. return t;
  18789. }
  18790. function bs() {
  18791. !function () {
  18792. var e = cs(),
  18793. _Ss = Ss({
  18794. url: e
  18795. }),
  18796. t = _Ss.abortLoginPageJump,
  18797. n = _Ss.autoToLoginPage;
  18798. t || n && Is({
  18799. api: "redirectTo",
  18800. redirect: e
  18801. });
  18802. }();
  18803. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  18804. var _loop3 = function _loop3(_t17) {
  18805. var n = e[_t17];
  18806. uni.addInterceptor(n, {
  18807. invoke: function invoke(e) {
  18808. var _Ss2 = Ss({
  18809. url: e.url
  18810. }),
  18811. t = _Ss2.abortLoginPageJump,
  18812. s = _Ss2.autoToLoginPage;
  18813. return t ? e : s ? (Is({
  18814. api: n,
  18815. redirect: _s(e.url)
  18816. }), !1) : e;
  18817. }
  18818. });
  18819. };
  18820. for (var _t17 = 0; _t17 < e.length; _t17++) {
  18821. _loop3(_t17);
  18822. }
  18823. }
  18824. function ks() {
  18825. this.onResponse(function (e) {
  18826. var t = e.type,
  18827. n = e.content;
  18828. var s = !1;
  18829. switch (t) {
  18830. case "cloudobject":
  18831. s = function (e) {
  18832. if ("object" != (0, _typeof2.default)(e)) return !1;
  18833. var _ref51 = e || {},
  18834. t = _ref51.errCode;
  18835. return t in rs;
  18836. }(n);
  18837. break;
  18838. case "clientdb":
  18839. s = function (e) {
  18840. if ("object" != (0, _typeof2.default)(e)) return !1;
  18841. var _ref52 = e || {},
  18842. t = _ref52.errCode;
  18843. return t in ss;
  18844. }(n);
  18845. }
  18846. s && function () {
  18847. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18848. var t = J($);
  18849. Z().then(function () {
  18850. var n = cs();
  18851. if (n && vs({
  18852. redirect: n
  18853. })) return t.length > 0 ? Y($, Object.assign({
  18854. uniIdRedirectUrl: n
  18855. }, e)) : void (ds && Is({
  18856. api: "navigateTo",
  18857. redirect: n
  18858. }));
  18859. });
  18860. }(n);
  18861. });
  18862. }
  18863. function As(e) {
  18864. !function (e) {
  18865. e.onResponse = function (e) {
  18866. V(j, e);
  18867. }, e.offResponse = function (e) {
  18868. G(j, e);
  18869. };
  18870. }(e), function (e) {
  18871. e.onNeedLogin = function (e) {
  18872. V($, e);
  18873. }, e.offNeedLogin = function (e) {
  18874. G($, e);
  18875. }, ls && (L("_globalUniCloudStatus").needLoginInit || (L("_globalUniCloudStatus").needLoginInit = !0, Z().then(function () {
  18876. bs.call(e);
  18877. }), fs && ks.call(e)));
  18878. }(e), function (e) {
  18879. e.onRefreshToken = function (e) {
  18880. V(B, e);
  18881. }, e.offRefreshToken = function (e) {
  18882. G(B, e);
  18883. };
  18884. }(e);
  18885. }
  18886. var Cs;
  18887. var Ps = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  18888. Ts = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  18889. function xs() {
  18890. var e = se().token || "",
  18891. t = e.split(".");
  18892. if (!e || 3 !== t.length) return {
  18893. uid: null,
  18894. role: [],
  18895. permission: [],
  18896. tokenExpired: 0
  18897. };
  18898. var n;
  18899. try {
  18900. n = JSON.parse((s = t[1], decodeURIComponent(Cs(s).split("").map(function (e) {
  18901. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  18902. }).join(""))));
  18903. } catch (e) {
  18904. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  18905. }
  18906. var s;
  18907. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  18908. }
  18909. Cs = "function" != typeof atob ? function (e) {
  18910. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !Ts.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  18911. var t;
  18912. e += "==".slice(2 - (3 & e.length));
  18913. for (var n, s, r = "", i = 0; i < e.length;) {
  18914. t = Ps.indexOf(e.charAt(i++)) << 18 | Ps.indexOf(e.charAt(i++)) << 12 | (n = Ps.indexOf(e.charAt(i++))) << 6 | (s = Ps.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);
  18915. }
  18916. return r;
  18917. } : atob;
  18918. var Os = n(function (e, t) {
  18919. Object.defineProperty(t, "__esModule", {
  18920. value: !0
  18921. });
  18922. var n = "chooseAndUploadFile:ok",
  18923. s = "chooseAndUploadFile:fail";
  18924. function r(e, t) {
  18925. return e.tempFiles.forEach(function (e, n) {
  18926. 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("."));
  18927. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  18928. return e.path;
  18929. })), e;
  18930. }
  18931. function i(e, t, _ref53) {
  18932. var s = _ref53.onChooseFile,
  18933. r = _ref53.onUploadProgress;
  18934. return t.then(function (e) {
  18935. if (s) {
  18936. var _t18 = s(e);
  18937. if (void 0 !== _t18) return Promise.resolve(_t18).then(function (t) {
  18938. return void 0 === t ? e : t;
  18939. });
  18940. }
  18941. return e;
  18942. }).then(function (t) {
  18943. return !1 === t ? {
  18944. errMsg: n,
  18945. tempFilePaths: [],
  18946. tempFiles: []
  18947. } : function (e, t) {
  18948. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  18949. var r = arguments.length > 3 ? arguments[3] : undefined;
  18950. (t = Object.assign({}, t)).errMsg = n;
  18951. var i = t.tempFiles,
  18952. o = i.length;
  18953. var a = 0;
  18954. return new Promise(function (n) {
  18955. for (; a < s;) {
  18956. c();
  18957. }
  18958. function c() {
  18959. var s = a++;
  18960. if (s >= o) return void (!i.find(function (e) {
  18961. return !e.url && !e.errMsg;
  18962. }) && n(t));
  18963. var u = i[s];
  18964. e.uploadFile({
  18965. provider: u.provider,
  18966. filePath: u.path,
  18967. cloudPath: u.cloudPath,
  18968. fileType: u.fileType,
  18969. cloudPathAsRealPath: u.cloudPathAsRealPath,
  18970. onUploadProgress: function onUploadProgress(e) {
  18971. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  18972. }
  18973. }).then(function (e) {
  18974. u.url = e.fileID, s < o && c();
  18975. }).catch(function (e) {
  18976. u.errMsg = e.errMsg || e.message, s < o && c();
  18977. });
  18978. }
  18979. });
  18980. }(e, t, 5, r);
  18981. });
  18982. }
  18983. t.initChooseAndUploadFile = function (e) {
  18984. return function () {
  18985. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  18986. type: "all"
  18987. };
  18988. return "image" === t.type ? i(e, function (e) {
  18989. var t = e.count,
  18990. n = e.sizeType,
  18991. _e$sourceType = e.sourceType,
  18992. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  18993. o = e.extension;
  18994. return new Promise(function (e, a) {
  18995. uni.chooseImage({
  18996. count: t,
  18997. sizeType: n,
  18998. sourceType: i,
  18999. extension: o,
  19000. success: function success(t) {
  19001. e(r(t, "image"));
  19002. },
  19003. fail: function fail(e) {
  19004. a({
  19005. errMsg: e.errMsg.replace("chooseImage:fail", s)
  19006. });
  19007. }
  19008. });
  19009. });
  19010. }(t), t) : "video" === t.type ? i(e, function (e) {
  19011. var t = e.camera,
  19012. n = e.compressed,
  19013. i = e.maxDuration,
  19014. _e$sourceType2 = e.sourceType,
  19015. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  19016. a = e.extension;
  19017. return new Promise(function (e, c) {
  19018. uni.chooseVideo({
  19019. camera: t,
  19020. compressed: n,
  19021. maxDuration: i,
  19022. sourceType: o,
  19023. extension: a,
  19024. success: function success(t) {
  19025. var n = t.tempFilePath,
  19026. s = t.duration,
  19027. i = t.size,
  19028. o = t.height,
  19029. a = t.width;
  19030. e(r({
  19031. errMsg: "chooseVideo:ok",
  19032. tempFilePaths: [n],
  19033. tempFiles: [{
  19034. name: t.tempFile && t.tempFile.name || "",
  19035. path: n,
  19036. size: i,
  19037. type: t.tempFile && t.tempFile.type || "",
  19038. width: a,
  19039. height: o,
  19040. duration: s,
  19041. fileType: "video",
  19042. cloudPath: ""
  19043. }]
  19044. }, "video"));
  19045. },
  19046. fail: function fail(e) {
  19047. c({
  19048. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  19049. });
  19050. }
  19051. });
  19052. });
  19053. }(t), t) : i(e, function (e) {
  19054. var t = e.count,
  19055. n = e.extension;
  19056. return new Promise(function (e, i) {
  19057. var o = uni.chooseFile;
  19058. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  19059. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  19060. });
  19061. o({
  19062. type: "all",
  19063. count: t,
  19064. extension: n,
  19065. success: function success(t) {
  19066. e(r(t));
  19067. },
  19068. fail: function fail(e) {
  19069. i({
  19070. errMsg: e.errMsg.replace("chooseFile:fail", s)
  19071. });
  19072. }
  19073. });
  19074. });
  19075. }(t), t);
  19076. };
  19077. };
  19078. }),
  19079. Es = t(Os);
  19080. var Ls = "manual";
  19081. function Rs(e) {
  19082. return {
  19083. props: {
  19084. localdata: {
  19085. type: Array,
  19086. default: function _default() {
  19087. return [];
  19088. }
  19089. },
  19090. options: {
  19091. type: [Object, Array],
  19092. default: function _default() {
  19093. return {};
  19094. }
  19095. },
  19096. spaceInfo: {
  19097. type: Object,
  19098. default: function _default() {
  19099. return {};
  19100. }
  19101. },
  19102. collection: {
  19103. type: [String, Array],
  19104. default: ""
  19105. },
  19106. action: {
  19107. type: String,
  19108. default: ""
  19109. },
  19110. field: {
  19111. type: String,
  19112. default: ""
  19113. },
  19114. orderby: {
  19115. type: String,
  19116. default: ""
  19117. },
  19118. where: {
  19119. type: [String, Object],
  19120. default: ""
  19121. },
  19122. pageData: {
  19123. type: String,
  19124. default: "add"
  19125. },
  19126. pageCurrent: {
  19127. type: Number,
  19128. default: 1
  19129. },
  19130. pageSize: {
  19131. type: Number,
  19132. default: 20
  19133. },
  19134. getcount: {
  19135. type: [Boolean, String],
  19136. default: !1
  19137. },
  19138. gettree: {
  19139. type: [Boolean, String],
  19140. default: !1
  19141. },
  19142. gettreepath: {
  19143. type: [Boolean, String],
  19144. default: !1
  19145. },
  19146. startwith: {
  19147. type: String,
  19148. default: ""
  19149. },
  19150. limitlevel: {
  19151. type: Number,
  19152. default: 10
  19153. },
  19154. groupby: {
  19155. type: String,
  19156. default: ""
  19157. },
  19158. groupField: {
  19159. type: String,
  19160. default: ""
  19161. },
  19162. distinct: {
  19163. type: [Boolean, String],
  19164. default: !1
  19165. },
  19166. foreignKey: {
  19167. type: String,
  19168. default: ""
  19169. },
  19170. loadtime: {
  19171. type: String,
  19172. default: "auto"
  19173. },
  19174. manual: {
  19175. type: Boolean,
  19176. default: !1
  19177. }
  19178. },
  19179. data: function data() {
  19180. return {
  19181. mixinDatacomLoading: !1,
  19182. mixinDatacomHasMore: !1,
  19183. mixinDatacomResData: [],
  19184. mixinDatacomErrorMessage: "",
  19185. mixinDatacomPage: {},
  19186. mixinDatacomError: null
  19187. };
  19188. },
  19189. created: function created() {
  19190. var _this21 = this;
  19191. this.mixinDatacomPage = {
  19192. current: this.pageCurrent,
  19193. size: this.pageSize,
  19194. count: 0
  19195. }, this.$watch(function () {
  19196. var e = [];
  19197. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  19198. e.push(_this21[t]);
  19199. }), e;
  19200. }, function (e, t) {
  19201. if (_this21.loadtime === Ls) return;
  19202. var n = !1;
  19203. var s = [];
  19204. for (var _r9 = 2; _r9 < e.length; _r9++) {
  19205. e[_r9] !== t[_r9] && (s.push(e[_r9]), n = !0);
  19206. }
  19207. e[0] !== t[0] && (_this21.mixinDatacomPage.current = _this21.pageCurrent), _this21.mixinDatacomPage.size = _this21.pageSize, _this21.onMixinDatacomPropsChange(n, s);
  19208. });
  19209. },
  19210. methods: {
  19211. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  19212. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  19213. var _this22 = this;
  19214. var _ref54 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19215. _ref54$getone = _ref54.getone,
  19216. e = _ref54$getone === void 0 ? !1 : _ref54$getone,
  19217. t = _ref54.success,
  19218. n = _ref54.fail;
  19219. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomError = null, this.mixinDatacomGet().then(function (n) {
  19220. _this22.mixinDatacomLoading = !1;
  19221. var _n$result = n.result,
  19222. s = _n$result.data,
  19223. r = _n$result.count;
  19224. _this22.getcount && (_this22.mixinDatacomPage.count = r), _this22.mixinDatacomHasMore = s.length < _this22.pageSize;
  19225. var i = e ? s.length ? s[0] : void 0 : s;
  19226. _this22.mixinDatacomResData = i, t && t(i);
  19227. }).catch(function (e) {
  19228. _this22.mixinDatacomLoading = !1, _this22.mixinDatacomErrorMessage = e, _this22.mixinDatacomError = e, n && n(e);
  19229. }));
  19230. },
  19231. mixinDatacomGet: function mixinDatacomGet() {
  19232. var _n15;
  19233. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  19234. var n;
  19235. t = t || {}, n = "undefined" != typeof __uniX && __uniX ? e.databaseForJQL(this.spaceInfo) : e.database(this.spaceInfo);
  19236. var s = t.action || this.action;
  19237. s && (n = n.action(s));
  19238. var r = t.collection || this.collection;
  19239. n = Array.isArray(r) ? (_n15 = n).collection.apply(_n15, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  19240. var i = t.where || this.where;
  19241. i && Object.keys(i).length && (n = n.where(i));
  19242. var o = t.field || this.field;
  19243. o && (n = n.field(o));
  19244. var a = t.foreignKey || this.foreignKey;
  19245. a && (n = n.foreignKey(a));
  19246. var c = t.groupby || this.groupby;
  19247. c && (n = n.groupBy(c));
  19248. var u = t.groupField || this.groupField;
  19249. u && (n = n.groupField(u));
  19250. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  19251. var h = t.orderby || this.orderby;
  19252. h && (n = n.orderBy(h));
  19253. var l = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  19254. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  19255. p = void 0 !== t.getcount ? t.getcount : this.getcount,
  19256. f = void 0 !== t.gettree ? t.gettree : this.gettree,
  19257. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  19258. m = {
  19259. getCount: p
  19260. },
  19261. y = {
  19262. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  19263. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  19264. };
  19265. return f && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (l - 1)).limit(d).get(m), n;
  19266. }
  19267. }
  19268. };
  19269. }
  19270. function Us(e) {
  19271. return function (t) {
  19272. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19273. n = function (e) {
  19274. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19275. 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;
  19276. }({
  19277. customUI: !1,
  19278. loadingOptions: {
  19279. title: "加载中...",
  19280. mask: !0
  19281. },
  19282. errorOptions: {
  19283. type: "modal",
  19284. retry: !1
  19285. }
  19286. }, n);
  19287. var _n16 = n,
  19288. s = _n16.customUI,
  19289. r = _n16.loadingOptions,
  19290. i = _n16.errorOptions,
  19291. o = _n16.parseSystemError,
  19292. a = !s;
  19293. return new Proxy({}, {
  19294. get: function get(s, c) {
  19295. switch (c) {
  19296. case "toString":
  19297. return "[object UniCloudObject]";
  19298. case "toJSON":
  19299. return {};
  19300. }
  19301. return function () {
  19302. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19303. e = _ref55.fn,
  19304. t = _ref55.interceptorName,
  19305. n = _ref55.getCallbackArgs;
  19306. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53() {
  19307. var _len2,
  19308. s,
  19309. _key2,
  19310. r,
  19311. i,
  19312. o,
  19313. _args = arguments;
  19314. return _regenerator.default.wrap(function _callee53$(_context53) {
  19315. while (1) {
  19316. switch (_context53.prev = _context53.next) {
  19317. case 0:
  19318. for (_len2 = _args.length, s = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  19319. s[_key2] = _args[_key2];
  19320. }
  19321. r = n ? n({
  19322. params: s
  19323. }) : {};
  19324. _context53.prev = 2;
  19325. _context53.next = 5;
  19326. return M(q(t, "invoke"), _objectSpread({}, r));
  19327. case 5:
  19328. _context53.next = 7;
  19329. return e.apply(void 0, s);
  19330. case 7:
  19331. i = _context53.sent;
  19332. _context53.next = 10;
  19333. return M(q(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  19334. result: i
  19335. }));
  19336. case 10:
  19337. return _context53.abrupt("return", i);
  19338. case 13:
  19339. _context53.prev = 13;
  19340. _context53.t0 = _context53["catch"](2);
  19341. o = _context53.t0;
  19342. _context53.next = 18;
  19343. return M(q(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  19344. error: o
  19345. }));
  19346. case 18:
  19347. throw o;
  19348. case 19:
  19349. _context53.prev = 19;
  19350. _context53.next = 22;
  19351. return M(q(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  19352. error: o
  19353. }) : _objectSpread(_objectSpread({}, r), {}, {
  19354. result: i
  19355. }));
  19356. case 22:
  19357. return _context53.finish(19);
  19358. case 23:
  19359. case "end":
  19360. return _context53.stop();
  19361. }
  19362. }
  19363. }, _callee53, null, [[2, 13, 19, 23]]);
  19364. }));
  19365. }({
  19366. fn: function () {
  19367. var _s15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55() {
  19368. var l,
  19369. _len3,
  19370. h,
  19371. _key3,
  19372. d,
  19373. p,
  19374. _ref57,
  19375. f,
  19376. g,
  19377. m,
  19378. y,
  19379. _e26,
  19380. _yield,
  19381. _t19,
  19382. _n17,
  19383. _args4 = arguments;
  19384. return _regenerator.default.wrap(function _callee55$(_context55) {
  19385. while (1) {
  19386. switch (_context55.prev = _context55.next) {
  19387. case 0:
  19388. a && uni.showLoading({
  19389. title: r.title,
  19390. mask: r.mask
  19391. });
  19392. for (_len3 = _args4.length, h = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  19393. h[_key3] = _args4[_key3];
  19394. }
  19395. d = {
  19396. name: t,
  19397. type: u,
  19398. data: {
  19399. method: c,
  19400. params: h
  19401. }
  19402. };
  19403. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  19404. var n = t.data.method,
  19405. s = e.secretMethods || {},
  19406. r = s[n] || s["*"];
  19407. r && (t.secretType = r);
  19408. }(n, d);
  19409. p = !1;
  19410. _context55.prev = 5;
  19411. _context55.next = 8;
  19412. return e.callFunction(d);
  19413. case 8:
  19414. l = _context55.sent;
  19415. _context55.next = 14;
  19416. break;
  19417. case 11:
  19418. _context55.prev = 11;
  19419. _context55.t0 = _context55["catch"](5);
  19420. p = !0, l = {
  19421. result: new te(_context55.t0)
  19422. };
  19423. case 14:
  19424. _ref57 = l.result || {}, f = _ref57.errSubject, g = _ref57.errCode, m = _ref57.errMsg, y = _ref57.newToken;
  19425. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (re(y), Y(B, _objectSpread({}, y))), g)) {
  19426. _context55.next = 39;
  19427. break;
  19428. }
  19429. _e26 = m;
  19430. if (!(p && o)) {
  19431. _context55.next = 24;
  19432. break;
  19433. }
  19434. _context55.next = 20;
  19435. return o({
  19436. objectName: t,
  19437. methodName: c,
  19438. params: h,
  19439. errSubject: f,
  19440. errCode: g,
  19441. errMsg: m
  19442. });
  19443. case 20:
  19444. _context55.t1 = _context55.sent.errMsg;
  19445. if (_context55.t1) {
  19446. _context55.next = 23;
  19447. break;
  19448. }
  19449. _context55.t1 = m;
  19450. case 23:
  19451. _e26 = _context55.t1;
  19452. case 24:
  19453. if (!a) {
  19454. _context55.next = 37;
  19455. break;
  19456. }
  19457. if (!("toast" === i.type)) {
  19458. _context55.next = 29;
  19459. break;
  19460. }
  19461. uni.showToast({
  19462. title: _e26,
  19463. icon: "none"
  19464. });
  19465. _context55.next = 37;
  19466. break;
  19467. case 29:
  19468. if (!("modal" !== i.type)) {
  19469. _context55.next = 31;
  19470. break;
  19471. }
  19472. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  19473. case 31:
  19474. _context55.next = 33;
  19475. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54() {
  19476. var _ref59,
  19477. e,
  19478. t,
  19479. n,
  19480. s,
  19481. r,
  19482. _args2 = arguments;
  19483. return _regenerator.default.wrap(function _callee54$(_context54) {
  19484. while (1) {
  19485. switch (_context54.prev = _context54.next) {
  19486. case 0:
  19487. _ref59 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref59.title, t = _ref59.content, n = _ref59.showCancel, s = _ref59.cancelText, r = _ref59.confirmText;
  19488. return _context54.abrupt("return", new Promise(function (i, o) {
  19489. uni.showModal({
  19490. title: e,
  19491. content: t,
  19492. showCancel: n,
  19493. cancelText: s,
  19494. confirmText: r,
  19495. success: function success(e) {
  19496. i(e);
  19497. },
  19498. fail: function fail() {
  19499. i({
  19500. confirm: !1,
  19501. cancel: !0
  19502. });
  19503. }
  19504. });
  19505. }));
  19506. case 2:
  19507. case "end":
  19508. return _context54.stop();
  19509. }
  19510. }
  19511. }, _callee54);
  19512. }))({
  19513. title: "提示",
  19514. content: _e26,
  19515. showCancel: i.retry,
  19516. cancelText: "取消",
  19517. confirmText: i.retry ? "重试" : "确定"
  19518. });
  19519. case 33:
  19520. _yield = _context55.sent;
  19521. _t19 = _yield.confirm;
  19522. if (!(i.retry && _t19)) {
  19523. _context55.next = 37;
  19524. break;
  19525. }
  19526. return _context55.abrupt("return", s.apply(void 0, h));
  19527. case 37:
  19528. _n17 = new te({
  19529. subject: f,
  19530. code: g,
  19531. message: m,
  19532. requestId: l.requestId
  19533. });
  19534. throw _n17.detail = l.result, Y(j, {
  19535. type: z,
  19536. content: _n17
  19537. }), _n17;
  19538. case 39:
  19539. return _context55.abrupt("return", (Y(j, {
  19540. type: z,
  19541. content: l.result
  19542. }), l.result));
  19543. case 40:
  19544. case "end":
  19545. return _context55.stop();
  19546. }
  19547. }
  19548. }, _callee55, null, [[5, 11]]);
  19549. }));
  19550. function s() {
  19551. return _s15.apply(this, arguments);
  19552. }
  19553. return s;
  19554. }(),
  19555. interceptorName: "callObject",
  19556. getCallbackArgs: function getCallbackArgs() {
  19557. var _ref60 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19558. e = _ref60.params;
  19559. return {
  19560. objectName: t,
  19561. methodName: c,
  19562. params: e
  19563. };
  19564. }
  19565. });
  19566. }
  19567. });
  19568. };
  19569. }
  19570. function Ns(e) {
  19571. return L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
  19572. }
  19573. function Ds() {
  19574. return _Ds.apply(this, arguments);
  19575. }
  19576. function _Ds() {
  19577. _Ds = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58() {
  19578. var _ref72,
  19579. e,
  19580. _ref72$callLoginByWei,
  19581. t,
  19582. n,
  19583. s,
  19584. r,
  19585. _args7 = arguments;
  19586. return _regenerator.default.wrap(function _callee58$(_context58) {
  19587. while (1) {
  19588. switch (_context58.prev = _context58.next) {
  19589. case 0:
  19590. _ref72 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, e = _ref72.openid, _ref72$callLoginByWei = _ref72.callLoginByWeixin, t = _ref72$callLoginByWei === void 0 ? !1 : _ref72$callLoginByWei;
  19591. n = Ns(this);
  19592. if (!("mp-weixin" !== C)) {
  19593. _context58.next = 4;
  19594. break;
  19595. }
  19596. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(C, "`"));
  19597. case 4:
  19598. if (!(e && t)) {
  19599. _context58.next = 6;
  19600. break;
  19601. }
  19602. throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");
  19603. case 6:
  19604. if (!e) {
  19605. _context58.next = 8;
  19606. break;
  19607. }
  19608. return _context58.abrupt("return", (n.mpWeixinOpenid = e, {}));
  19609. case 8:
  19610. _context58.next = 10;
  19611. return new Promise(function (e, t) {
  19612. uni.login({
  19613. success: function success(t) {
  19614. e(t.code);
  19615. },
  19616. fail: function fail(e) {
  19617. t(new Error(e.errMsg));
  19618. }
  19619. });
  19620. });
  19621. case 10:
  19622. s = _context58.sent;
  19623. r = this.importObject("uni-id-co", {
  19624. customUI: !0
  19625. });
  19626. _context58.next = 14;
  19627. return r.secureNetworkHandshakeByWeixin({
  19628. code: s,
  19629. callLoginByWeixin: t
  19630. });
  19631. case 14:
  19632. n.mpWeixinCode = s;
  19633. return _context58.abrupt("return", {
  19634. code: s
  19635. });
  19636. case 16:
  19637. case "end":
  19638. return _context58.stop();
  19639. }
  19640. }
  19641. }, _callee58, this);
  19642. }));
  19643. return _Ds.apply(this, arguments);
  19644. }
  19645. function Ms(_x40) {
  19646. return _Ms.apply(this, arguments);
  19647. }
  19648. function _Ms() {
  19649. _Ms = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59(e) {
  19650. var t;
  19651. return _regenerator.default.wrap(function _callee59$(_context59) {
  19652. while (1) {
  19653. switch (_context59.prev = _context59.next) {
  19654. case 0:
  19655. t = Ns(this);
  19656. return _context59.abrupt("return", (t.initPromise || (t.initPromise = Ds.call(this, e).then(function (e) {
  19657. return e;
  19658. }).catch(function (e) {
  19659. throw delete t.initPromise, e;
  19660. })), t.initPromise));
  19661. case 2:
  19662. case "end":
  19663. return _context59.stop();
  19664. }
  19665. }
  19666. }, _callee59, this);
  19667. }));
  19668. return _Ms.apply(this, arguments);
  19669. }
  19670. function qs(e) {
  19671. return function () {
  19672. var _ref61 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19673. t = _ref61.openid,
  19674. _ref61$callLoginByWei = _ref61.callLoginByWeixin,
  19675. n = _ref61$callLoginByWei === void 0 ? !1 : _ref61$callLoginByWei;
  19676. return Ms.call(e, {
  19677. openid: t,
  19678. callLoginByWeixin: n
  19679. });
  19680. };
  19681. }
  19682. function Fs(e) {
  19683. !function (e) {
  19684. ue = e;
  19685. }(e);
  19686. }
  19687. function Ks(e) {
  19688. var t = {
  19689. getSystemInfo: uni.getSystemInfo,
  19690. getPushClientId: uni.getPushClientId
  19691. };
  19692. return function (n) {
  19693. return new Promise(function (s, r) {
  19694. t[e](_objectSpread(_objectSpread({}, n), {}, {
  19695. success: function success(e) {
  19696. s(e);
  19697. },
  19698. fail: function fail(e) {
  19699. r(e);
  19700. }
  19701. }));
  19702. });
  19703. };
  19704. }
  19705. var js = /*#__PURE__*/function (_ref62) {
  19706. (0, _inherits2.default)(js, _ref62);
  19707. var _super12 = _createSuper(js);
  19708. function js() {
  19709. var _this23;
  19710. (0, _classCallCheck2.default)(this, js);
  19711. _this23 = _super12.call(this), _this23._uniPushMessageCallback = _this23._receivePushMessage.bind((0, _assertThisInitialized2.default)(_this23)), _this23._currentMessageId = -1, _this23._payloadQueue = [];
  19712. return _this23;
  19713. }
  19714. (0, _createClass2.default)(js, [{
  19715. key: "init",
  19716. value: function init() {
  19717. var _this24 = this;
  19718. return Promise.all([Ks("getSystemInfo")(), Ks("getPushClientId")()]).then(function () {
  19719. var _ref63 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [],
  19720. _ref64 = (0, _slicedToArray2.default)(_ref63, 2),
  19721. _ref64$ = _ref64[0];
  19722. _ref64$ = _ref64$ === void 0 ? {} : _ref64$;
  19723. var e = _ref64$.appId,
  19724. _ref64$2 = _ref64[1];
  19725. _ref64$2 = _ref64$2 === void 0 ? {} : _ref64$2;
  19726. var t = _ref64$2.cid;
  19727. if (!e) throw new Error("Invalid appId, please check the manifest.json file");
  19728. if (!t) throw new Error("Invalid push client id");
  19729. _this24._appId = e, _this24._pushClientId = t, _this24._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), _this24.emit("open"), _this24._initMessageListener();
  19730. }, function (e) {
  19731. throw _this24.emit("error", e), _this24.close(), e;
  19732. });
  19733. }
  19734. }, {
  19735. key: "open",
  19736. value: function () {
  19737. var _open = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee56() {
  19738. return _regenerator.default.wrap(function _callee56$(_context56) {
  19739. while (1) {
  19740. switch (_context56.prev = _context56.next) {
  19741. case 0:
  19742. return _context56.abrupt("return", this.init());
  19743. case 1:
  19744. case "end":
  19745. return _context56.stop();
  19746. }
  19747. }
  19748. }, _callee56, this);
  19749. }));
  19750. function open() {
  19751. return _open.apply(this, arguments);
  19752. }
  19753. return open;
  19754. }()
  19755. }, {
  19756. key: "_isUniCloudSSE",
  19757. value: function _isUniCloudSSE(e) {
  19758. if ("receive" !== e.type) return !1;
  19759. var t = e && e.data && e.data.payload;
  19760. return !(!t || "UNI_CLOUD_SSE" !== t.channel || t.seqId !== this._seqId);
  19761. }
  19762. }, {
  19763. key: "_receivePushMessage",
  19764. value: function _receivePushMessage(e) {
  19765. if (!this._isUniCloudSSE(e)) return;
  19766. var t = e && e.data && e.data.payload,
  19767. n = t.action,
  19768. s = t.messageId,
  19769. r = t.message;
  19770. this._payloadQueue.push({
  19771. action: n,
  19772. messageId: s,
  19773. message: r
  19774. }), this._consumMessage();
  19775. }
  19776. }, {
  19777. key: "_consumMessage",
  19778. value: function _consumMessage() {
  19779. var _this25 = this;
  19780. for (;;) {
  19781. var _e27 = this._payloadQueue.find(function (e) {
  19782. return e.messageId === _this25._currentMessageId + 1;
  19783. });
  19784. if (!_e27) break;
  19785. this._currentMessageId++, this._parseMessagePayload(_e27);
  19786. }
  19787. }
  19788. }, {
  19789. key: "_parseMessagePayload",
  19790. value: function _parseMessagePayload(e) {
  19791. var t = e.action,
  19792. n = e.messageId,
  19793. s = e.message;
  19794. "end" === t ? this._end({
  19795. messageId: n,
  19796. message: s
  19797. }) : "message" === t && this._appendMessage({
  19798. messageId: n,
  19799. message: s
  19800. });
  19801. }
  19802. }, {
  19803. key: "_appendMessage",
  19804. value: function _appendMessage() {
  19805. var _ref65 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19806. e = _ref65.messageId,
  19807. t = _ref65.message;
  19808. this.emit("message", t);
  19809. }
  19810. }, {
  19811. key: "_end",
  19812. value: function _end() {
  19813. var _ref66 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  19814. e = _ref66.messageId,
  19815. t = _ref66.message;
  19816. this.emit("end", t), this.close();
  19817. }
  19818. }, {
  19819. key: "_initMessageListener",
  19820. value: function _initMessageListener() {
  19821. uni.onPushMessage(this._uniPushMessageCallback);
  19822. }
  19823. }, {
  19824. key: "_destroy",
  19825. value: function _destroy() {
  19826. uni.offPushMessage(this._uniPushMessageCallback);
  19827. }
  19828. }, {
  19829. key: "toJSON",
  19830. value: function toJSON() {
  19831. return {
  19832. appId: this._appId,
  19833. pushClientId: this._pushClientId,
  19834. seqId: this._seqId
  19835. };
  19836. }
  19837. }, {
  19838. key: "close",
  19839. value: function close() {
  19840. this._destroy(), this.emit("close");
  19841. }
  19842. }]);
  19843. return js;
  19844. }( /*#__PURE__*/function () {
  19845. function _class6() {
  19846. (0, _classCallCheck2.default)(this, _class6);
  19847. this._callback = {};
  19848. }
  19849. (0, _createClass2.default)(_class6, [{
  19850. key: "addListener",
  19851. value: function addListener(e, t) {
  19852. this._callback[e] || (this._callback[e] = []), this._callback[e].push(t);
  19853. }
  19854. }, {
  19855. key: "on",
  19856. value: function on(e, t) {
  19857. return this.addListener(e, t);
  19858. }
  19859. }, {
  19860. key: "removeListener",
  19861. value: function removeListener(e, t) {
  19862. if (!t) throw new Error('The "listener" argument must be of type function. Received undefined');
  19863. var n = this._callback[e];
  19864. if (!n) return;
  19865. var s = function (e, t) {
  19866. for (var _n18 = e.length - 1; _n18 >= 0; _n18--) {
  19867. if (e[_n18] === t) return _n18;
  19868. }
  19869. return -1;
  19870. }(n, t);
  19871. n.splice(s, 1);
  19872. }
  19873. }, {
  19874. key: "off",
  19875. value: function off(e, t) {
  19876. return this.removeListener(e, t);
  19877. }
  19878. }, {
  19879. key: "removeAllListener",
  19880. value: function removeAllListener(e) {
  19881. delete this._callback[e];
  19882. }
  19883. }, {
  19884. key: "emit",
  19885. value: function emit(e) {
  19886. var n = this._callback[e];
  19887. for (var _len4 = arguments.length, t = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  19888. t[_key4 - 1] = arguments[_key4];
  19889. }
  19890. if (n) for (var _e28 = 0; _e28 < n.length; _e28++) {
  19891. n[_e28].apply(n, t);
  19892. }
  19893. }
  19894. }]);
  19895. return _class6;
  19896. }());
  19897. function $s(_x41, _x42) {
  19898. return _$s.apply(this, arguments);
  19899. }
  19900. function _$s() {
  19901. _$s = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee60(e, t) {
  19902. var n, _e31, s;
  19903. return _regenerator.default.wrap(function _callee60$(_context60) {
  19904. while (1) {
  19905. switch (_context60.prev = _context60.next) {
  19906. case 0:
  19907. n = "http://".concat(e, ":").concat(t, "/system/ping");
  19908. _context60.prev = 1;
  19909. _context60.next = 4;
  19910. return s = {
  19911. url: n,
  19912. timeout: 500
  19913. }, new Promise(function (e, t) {
  19914. ne.request(_objectSpread(_objectSpread({}, s), {}, {
  19915. success: function success(t) {
  19916. e(t);
  19917. },
  19918. fail: function fail(e) {
  19919. t(e);
  19920. }
  19921. }));
  19922. });
  19923. case 4:
  19924. _e31 = _context60.sent;
  19925. return _context60.abrupt("return", !(!_e31.data || 0 !== _e31.data.code));
  19926. case 8:
  19927. _context60.prev = 8;
  19928. _context60.t0 = _context60["catch"](1);
  19929. return _context60.abrupt("return", !1);
  19930. case 11:
  19931. case "end":
  19932. return _context60.stop();
  19933. }
  19934. }
  19935. }, _callee60, null, [[1, 8]]);
  19936. }));
  19937. return _$s.apply(this, arguments);
  19938. }
  19939. function Bs(_x43) {
  19940. return _Bs.apply(this, arguments);
  19941. }
  19942. function _Bs() {
  19943. _Bs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee62(e) {
  19944. var _ae2, _e32, _t21, t, _t$debugInfo, n, s, _yield2, r, i, o;
  19945. return _regenerator.default.wrap(function _callee62$(_context62) {
  19946. while (1) {
  19947. switch (_context62.prev = _context62.next) {
  19948. case 0:
  19949. if (S) {
  19950. _context62.next = 2;
  19951. break;
  19952. }
  19953. return _context62.abrupt("return", Promise.resolve());
  19954. case 2:
  19955. if ("app" === C) {
  19956. _ae2 = ae(), _e32 = _ae2.osName, _t21 = _ae2.osVersion;
  19957. "ios" === _e32 && function (e) {
  19958. if (!e || "string" != typeof e) return 0;
  19959. var t = e.match(/^(\d+)./);
  19960. return t && t[1] ? parseInt(t[1]) : 0;
  19961. }(_t21) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)");
  19962. }
  19963. t = e.__dev__;
  19964. if (t.debugInfo) {
  19965. _context62.next = 6;
  19966. break;
  19967. }
  19968. return _context62.abrupt("return");
  19969. case 6:
  19970. _t$debugInfo = t.debugInfo;
  19971. n = _t$debugInfo.address;
  19972. s = _t$debugInfo.servePort;
  19973. _context62.next = 11;
  19974. return function () {
  19975. var _ref73 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61(e, t) {
  19976. var n, _s16, _r10;
  19977. return _regenerator.default.wrap(function _callee61$(_context61) {
  19978. while (1) {
  19979. switch (_context61.prev = _context61.next) {
  19980. case 0:
  19981. _s16 = 0;
  19982. case 1:
  19983. if (!(_s16 < e.length)) {
  19984. _context61.next = 11;
  19985. break;
  19986. }
  19987. _r10 = e[_s16];
  19988. _context61.next = 5;
  19989. return $s(_r10, t);
  19990. case 5:
  19991. if (!_context61.sent) {
  19992. _context61.next = 8;
  19993. break;
  19994. }
  19995. n = _r10;
  19996. return _context61.abrupt("break", 11);
  19997. case 8:
  19998. _s16++;
  19999. _context61.next = 1;
  20000. break;
  20001. case 11:
  20002. return _context61.abrupt("return", {
  20003. address: n,
  20004. port: t
  20005. });
  20006. case 12:
  20007. case "end":
  20008. return _context61.stop();
  20009. }
  20010. }
  20011. }, _callee61);
  20012. }));
  20013. return function (_x44, _x45) {
  20014. return _ref73.apply(this, arguments);
  20015. };
  20016. }()(n, s);
  20017. case 11:
  20018. _yield2 = _context62.sent;
  20019. r = _yield2.address;
  20020. if (!r) {
  20021. _context62.next = 15;
  20022. break;
  20023. }
  20024. return _context62.abrupt("return", (t.localAddress = r, void (t.localPort = s)));
  20025. case 15:
  20026. i = console["app" === C ? "error" : "warn"];
  20027. o = "";
  20028. 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" === C && (o += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), 0 === C.indexOf("mp-") && (o += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), !t.debugInfo.forceRemote)) {
  20029. _context62.next = 19;
  20030. break;
  20031. }
  20032. throw new Error(o);
  20033. case 19:
  20034. i(o);
  20035. case 20:
  20036. case "end":
  20037. return _context62.stop();
  20038. }
  20039. }
  20040. }, _callee62);
  20041. }));
  20042. return _Bs.apply(this, arguments);
  20043. }
  20044. function Ws(e) {
  20045. e._initPromiseHub || (e._initPromiseHub = new v({
  20046. createPromise: function createPromise() {
  20047. var t = Promise.resolve();
  20048. var n;
  20049. n = 1, t = new Promise(function (e) {
  20050. setTimeout(function () {
  20051. e();
  20052. }, n);
  20053. });
  20054. var s = e.auth();
  20055. return t.then(function () {
  20056. return s.getLoginState();
  20057. }).then(function (e) {
  20058. return e ? Promise.resolve() : s.signInAnonymously();
  20059. });
  20060. }
  20061. }));
  20062. }
  20063. var Hs = {
  20064. tcb: St,
  20065. tencent: St,
  20066. aliyun: pe,
  20067. private: kt,
  20068. alipay: Ut
  20069. };
  20070. var zs = new ( /*#__PURE__*/function () {
  20071. function _class7() {
  20072. (0, _classCallCheck2.default)(this, _class7);
  20073. }
  20074. (0, _createClass2.default)(_class7, [{
  20075. key: "init",
  20076. value: function init(e) {
  20077. var t = {};
  20078. var n = Hs[e.provider];
  20079. if (!n) throw new Error("未提供正确的provider参数");
  20080. t = n.init(e), S && function (e) {
  20081. if (!S) return;
  20082. var t = {};
  20083. e.__dev__ = t, t.debugLog = S && ("web" === C && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === C);
  20084. var n = P;
  20085. n && !n.code && (t.debugInfo = n);
  20086. var s = new v({
  20087. createPromise: function createPromise() {
  20088. return Bs(e);
  20089. }
  20090. });
  20091. t.initLocalNetwork = function () {
  20092. return s.exec();
  20093. };
  20094. }(t), Ws(t), $n(t), function (e) {
  20095. var t = e.uploadFile;
  20096. e.uploadFile = function (e) {
  20097. return t.call(this, e);
  20098. };
  20099. }(t), function (e) {
  20100. e.database = function (t) {
  20101. if (t && Object.keys(t).length > 0) return e.init(t).database();
  20102. if (this._database) return this._database;
  20103. var n = Zn(es, {
  20104. uniClient: e
  20105. });
  20106. return this._database = n, n;
  20107. }, e.databaseForJQL = function (t) {
  20108. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  20109. if (this._databaseForJQL) return this._databaseForJQL;
  20110. var n = Zn(es, {
  20111. uniClient: e,
  20112. isJQL: !0
  20113. });
  20114. return this._databaseForJQL = n, n;
  20115. };
  20116. }(t), function (e) {
  20117. e.getCurrentUserInfo = xs, e.chooseAndUploadFile = Es.initChooseAndUploadFile(e), Object.assign(e, {
  20118. get mixinDatacom() {
  20119. return Rs(e);
  20120. }
  20121. }), e.SSEChannel = js, e.initSecureNetworkByWeixin = qs(e), e.setCustomClientInfo = Fs, e.importObject = Us(e);
  20122. }(t);
  20123. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  20124. if (!t[e]) return;
  20125. var n = t[e];
  20126. t[e] = function () {
  20127. return n.apply(t, Array.from(arguments));
  20128. }, t[e] = function (e, t) {
  20129. return function (n) {
  20130. var _this26 = this;
  20131. var s = !1;
  20132. if ("callFunction" === t) {
  20133. var _e29 = n && n.type || c;
  20134. s = _e29 !== c;
  20135. }
  20136. var r = "callFunction" === t && !s,
  20137. i = this._initPromiseHub.exec();
  20138. n = n || {};
  20139. var _ee2 = ee(n),
  20140. o = _ee2.success,
  20141. a = _ee2.fail,
  20142. u = _ee2.complete,
  20143. h = i.then(function () {
  20144. return s ? Promise.resolve() : M(q(t, "invoke"), n);
  20145. }).then(function () {
  20146. return e.call(_this26, n);
  20147. }).then(function (e) {
  20148. return s ? Promise.resolve(e) : M(q(t, "success"), e).then(function () {
  20149. return M(q(t, "complete"), e);
  20150. }).then(function () {
  20151. return r && Y(j, {
  20152. type: H,
  20153. content: e
  20154. }), Promise.resolve(e);
  20155. });
  20156. }, function (e) {
  20157. return s ? Promise.reject(e) : M(q(t, "fail"), e).then(function () {
  20158. return M(q(t, "complete"), e);
  20159. }).then(function () {
  20160. return Y(j, {
  20161. type: H,
  20162. content: e
  20163. }), Promise.reject(e);
  20164. });
  20165. });
  20166. if (!(o || a || u)) return h;
  20167. h.then(function (e) {
  20168. o && o(e), u && u(e), r && Y(j, {
  20169. type: H,
  20170. content: e
  20171. });
  20172. }, function (e) {
  20173. a && a(e), u && u(e), r && Y(j, {
  20174. type: H,
  20175. content: e
  20176. });
  20177. });
  20178. };
  20179. }(t[e], e).bind(t);
  20180. }), t.init = this.init, t;
  20181. }
  20182. }]);
  20183. return _class7;
  20184. }())();
  20185. (function () {
  20186. var e = T;
  20187. var t = {};
  20188. if (e && 1 === e.length) t = e[0], zs = zs.init(t), zs._isDefault = !0;else {
  20189. var _t20 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];
  20190. var _n19;
  20191. _n19 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : x ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t20.forEach(function (e) {
  20192. zs[e] = function () {
  20193. return console.error(_n19), Promise.reject(new te({
  20194. code: "SYS_ERR",
  20195. message: _n19
  20196. }));
  20197. };
  20198. });
  20199. }
  20200. Object.assign(zs, {
  20201. get mixinDatacom() {
  20202. return Rs(zs);
  20203. }
  20204. }), As(zs), zs.addInterceptor = N, zs.removeInterceptor = D, zs.interceptObject = F, S && "web" === C && (window.uniCloud = zs);
  20205. })();
  20206. var Js = zs;
  20207. exports.default = Js;
  20208. /* 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"]))
  20209. /***/ }),
  20210. /***/ 29:
  20211. /*!************************************************************************************************!*\
  20212. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  20213. \************************************************************************************************/
  20214. /*! no static exports found */
  20215. /***/ (function(module, exports, __webpack_require__) {
  20216. // TODO(Babel 8): Remove this file.
  20217. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 30)();
  20218. module.exports = runtime;
  20219. /***/ }),
  20220. /***/ 3:
  20221. /*!***********************************!*\
  20222. !*** (webpack)/buildin/global.js ***!
  20223. \***********************************/
  20224. /*! no static exports found */
  20225. /***/ (function(module, exports) {
  20226. var g;
  20227. // This works in non-strict mode
  20228. g = (function() {
  20229. return this;
  20230. })();
  20231. try {
  20232. // This works if eval is allowed (see CSP)
  20233. g = g || new Function("return this")();
  20234. } catch (e) {
  20235. // This works if the window reference is available
  20236. if (typeof window === "object") g = window;
  20237. }
  20238. // g can still be undefined, but nothing to do about it...
  20239. // We return undefined, instead of nothing here, so it's
  20240. // easier to handle this case. if(!global) { ...}
  20241. module.exports = g;
  20242. /***/ }),
  20243. /***/ 30:
  20244. /*!*******************************************************************!*\
  20245. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  20246. \*******************************************************************/
  20247. /*! no static exports found */
  20248. /***/ (function(module, exports, __webpack_require__) {
  20249. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  20250. function _regeneratorRuntime() {
  20251. "use strict";
  20252. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  20253. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  20254. return e;
  20255. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20256. var t,
  20257. e = {},
  20258. r = Object.prototype,
  20259. n = r.hasOwnProperty,
  20260. o = Object.defineProperty || function (t, e, r) {
  20261. t[e] = r.value;
  20262. },
  20263. i = "function" == typeof Symbol ? Symbol : {},
  20264. a = i.iterator || "@@iterator",
  20265. c = i.asyncIterator || "@@asyncIterator",
  20266. u = i.toStringTag || "@@toStringTag";
  20267. function define(t, e, r) {
  20268. return Object.defineProperty(t, e, {
  20269. value: r,
  20270. enumerable: !0,
  20271. configurable: !0,
  20272. writable: !0
  20273. }), t[e];
  20274. }
  20275. try {
  20276. define({}, "");
  20277. } catch (t) {
  20278. define = function define(t, e, r) {
  20279. return t[e] = r;
  20280. };
  20281. }
  20282. function wrap(t, e, r, n) {
  20283. var i = e && e.prototype instanceof Generator ? e : Generator,
  20284. a = Object.create(i.prototype),
  20285. c = new Context(n || []);
  20286. return o(a, "_invoke", {
  20287. value: makeInvokeMethod(t, r, c)
  20288. }), a;
  20289. }
  20290. function tryCatch(t, e, r) {
  20291. try {
  20292. return {
  20293. type: "normal",
  20294. arg: t.call(e, r)
  20295. };
  20296. } catch (t) {
  20297. return {
  20298. type: "throw",
  20299. arg: t
  20300. };
  20301. }
  20302. }
  20303. e.wrap = wrap;
  20304. var h = "suspendedStart",
  20305. l = "suspendedYield",
  20306. f = "executing",
  20307. s = "completed",
  20308. y = {};
  20309. function Generator() {}
  20310. function GeneratorFunction() {}
  20311. function GeneratorFunctionPrototype() {}
  20312. var p = {};
  20313. define(p, a, function () {
  20314. return this;
  20315. });
  20316. var d = Object.getPrototypeOf,
  20317. v = d && d(d(values([])));
  20318. v && v !== r && n.call(v, a) && (p = v);
  20319. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  20320. function defineIteratorMethods(t) {
  20321. ["next", "throw", "return"].forEach(function (e) {
  20322. define(t, e, function (t) {
  20323. return this._invoke(e, t);
  20324. });
  20325. });
  20326. }
  20327. function AsyncIterator(t, e) {
  20328. function invoke(r, o, i, a) {
  20329. var c = tryCatch(t[r], t, o);
  20330. if ("throw" !== c.type) {
  20331. var u = c.arg,
  20332. h = u.value;
  20333. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  20334. invoke("next", t, i, a);
  20335. }, function (t) {
  20336. invoke("throw", t, i, a);
  20337. }) : e.resolve(h).then(function (t) {
  20338. u.value = t, i(u);
  20339. }, function (t) {
  20340. return invoke("throw", t, i, a);
  20341. });
  20342. }
  20343. a(c.arg);
  20344. }
  20345. var r;
  20346. o(this, "_invoke", {
  20347. value: function value(t, n) {
  20348. function callInvokeWithMethodAndArg() {
  20349. return new e(function (e, r) {
  20350. invoke(t, n, e, r);
  20351. });
  20352. }
  20353. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  20354. }
  20355. });
  20356. }
  20357. function makeInvokeMethod(e, r, n) {
  20358. var o = h;
  20359. return function (i, a) {
  20360. if (o === f) throw Error("Generator is already running");
  20361. if (o === s) {
  20362. if ("throw" === i) throw a;
  20363. return {
  20364. value: t,
  20365. done: !0
  20366. };
  20367. }
  20368. for (n.method = i, n.arg = a;;) {
  20369. var c = n.delegate;
  20370. if (c) {
  20371. var u = maybeInvokeDelegate(c, n);
  20372. if (u) {
  20373. if (u === y) continue;
  20374. return u;
  20375. }
  20376. }
  20377. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  20378. if (o === h) throw o = s, n.arg;
  20379. n.dispatchException(n.arg);
  20380. } else "return" === n.method && n.abrupt("return", n.arg);
  20381. o = f;
  20382. var p = tryCatch(e, r, n);
  20383. if ("normal" === p.type) {
  20384. if (o = n.done ? s : l, p.arg === y) continue;
  20385. return {
  20386. value: p.arg,
  20387. done: n.done
  20388. };
  20389. }
  20390. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  20391. }
  20392. };
  20393. }
  20394. function maybeInvokeDelegate(e, r) {
  20395. var n = r.method,
  20396. o = e.iterator[n];
  20397. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  20398. var i = tryCatch(o, e.iterator, r.arg);
  20399. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  20400. var a = i.arg;
  20401. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  20402. }
  20403. function pushTryEntry(t) {
  20404. var e = {
  20405. tryLoc: t[0]
  20406. };
  20407. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  20408. }
  20409. function resetTryEntry(t) {
  20410. var e = t.completion || {};
  20411. e.type = "normal", delete e.arg, t.completion = e;
  20412. }
  20413. function Context(t) {
  20414. this.tryEntries = [{
  20415. tryLoc: "root"
  20416. }], t.forEach(pushTryEntry, this), this.reset(!0);
  20417. }
  20418. function values(e) {
  20419. if (e || "" === e) {
  20420. var r = e[a];
  20421. if (r) return r.call(e);
  20422. if ("function" == typeof e.next) return e;
  20423. if (!isNaN(e.length)) {
  20424. var o = -1,
  20425. i = function next() {
  20426. for (; ++o < e.length;) {
  20427. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  20428. }
  20429. return next.value = t, next.done = !0, next;
  20430. };
  20431. return i.next = i;
  20432. }
  20433. }
  20434. throw new TypeError(_typeof(e) + " is not iterable");
  20435. }
  20436. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  20437. value: GeneratorFunctionPrototype,
  20438. configurable: !0
  20439. }), o(GeneratorFunctionPrototype, "constructor", {
  20440. value: GeneratorFunction,
  20441. configurable: !0
  20442. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  20443. var e = "function" == typeof t && t.constructor;
  20444. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  20445. }, e.mark = function (t) {
  20446. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  20447. }, e.awrap = function (t) {
  20448. return {
  20449. __await: t
  20450. };
  20451. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  20452. return this;
  20453. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  20454. void 0 === i && (i = Promise);
  20455. var a = new AsyncIterator(wrap(t, r, n, o), i);
  20456. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  20457. return t.done ? t.value : a.next();
  20458. });
  20459. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  20460. return this;
  20461. }), define(g, "toString", function () {
  20462. return "[object Generator]";
  20463. }), e.keys = function (t) {
  20464. var e = Object(t),
  20465. r = [];
  20466. for (var n in e) {
  20467. r.push(n);
  20468. }
  20469. return r.reverse(), function next() {
  20470. for (; r.length;) {
  20471. var t = r.pop();
  20472. if (t in e) return next.value = t, next.done = !1, next;
  20473. }
  20474. return next.done = !0, next;
  20475. };
  20476. }, e.values = values, Context.prototype = {
  20477. constructor: Context,
  20478. reset: function reset(e) {
  20479. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  20480. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  20481. }
  20482. },
  20483. stop: function stop() {
  20484. this.done = !0;
  20485. var t = this.tryEntries[0].completion;
  20486. if ("throw" === t.type) throw t.arg;
  20487. return this.rval;
  20488. },
  20489. dispatchException: function dispatchException(e) {
  20490. if (this.done) throw e;
  20491. var r = this;
  20492. function handle(n, o) {
  20493. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  20494. }
  20495. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  20496. var i = this.tryEntries[o],
  20497. a = i.completion;
  20498. if ("root" === i.tryLoc) return handle("end");
  20499. if (i.tryLoc <= this.prev) {
  20500. var c = n.call(i, "catchLoc"),
  20501. u = n.call(i, "finallyLoc");
  20502. if (c && u) {
  20503. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  20504. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  20505. } else if (c) {
  20506. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  20507. } else {
  20508. if (!u) throw Error("try statement without catch or finally");
  20509. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  20510. }
  20511. }
  20512. }
  20513. },
  20514. abrupt: function abrupt(t, e) {
  20515. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  20516. var o = this.tryEntries[r];
  20517. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  20518. var i = o;
  20519. break;
  20520. }
  20521. }
  20522. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  20523. var a = i ? i.completion : {};
  20524. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  20525. },
  20526. complete: function complete(t, e) {
  20527. if ("throw" === t.type) throw t.arg;
  20528. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  20529. },
  20530. finish: function finish(t) {
  20531. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  20532. var r = this.tryEntries[e];
  20533. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  20534. }
  20535. },
  20536. "catch": function _catch(t) {
  20537. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  20538. var r = this.tryEntries[e];
  20539. if (r.tryLoc === t) {
  20540. var n = r.completion;
  20541. if ("throw" === n.type) {
  20542. var o = n.arg;
  20543. resetTryEntry(r);
  20544. }
  20545. return o;
  20546. }
  20547. }
  20548. throw Error("illegal catch attempt");
  20549. },
  20550. delegateYield: function delegateYield(e, r, n) {
  20551. return this.delegate = {
  20552. iterator: values(e),
  20553. resultName: r,
  20554. nextLoc: n
  20555. }, "next" === this.method && (this.arg = t), y;
  20556. }
  20557. }, e;
  20558. }
  20559. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20560. /***/ }),
  20561. /***/ 31:
  20562. /*!**********************************************************************!*\
  20563. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  20564. \**********************************************************************/
  20565. /*! no static exports found */
  20566. /***/ (function(module, exports) {
  20567. function _assertThisInitialized(self) {
  20568. if (self === void 0) {
  20569. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  20570. }
  20571. return self;
  20572. }
  20573. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20574. /***/ }),
  20575. /***/ 32:
  20576. /*!*****************************************************************!*\
  20577. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  20578. \*****************************************************************/
  20579. /*! no static exports found */
  20580. /***/ (function(module, exports) {
  20581. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  20582. try {
  20583. var info = gen[key](arg);
  20584. var value = info.value;
  20585. } catch (error) {
  20586. reject(error);
  20587. return;
  20588. }
  20589. if (info.done) {
  20590. resolve(value);
  20591. } else {
  20592. Promise.resolve(value).then(_next, _throw);
  20593. }
  20594. }
  20595. function _asyncToGenerator(fn) {
  20596. return function () {
  20597. var self = this,
  20598. args = arguments;
  20599. return new Promise(function (resolve, reject) {
  20600. var gen = fn.apply(self, args);
  20601. function _next(value) {
  20602. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  20603. }
  20604. function _throw(err) {
  20605. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  20606. }
  20607. _next(undefined);
  20608. });
  20609. };
  20610. }
  20611. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20612. /***/ }),
  20613. /***/ 33:
  20614. /*!*********************************************************!*\
  20615. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  20616. \*********************************************************/
  20617. /*! no static exports found */
  20618. /***/ (function(module, exports, __webpack_require__) {
  20619. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  20620. function _inherits(subClass, superClass) {
  20621. if (typeof superClass !== "function" && superClass !== null) {
  20622. throw new TypeError("Super expression must either be null or a function");
  20623. }
  20624. subClass.prototype = Object.create(superClass && superClass.prototype, {
  20625. constructor: {
  20626. value: subClass,
  20627. writable: true,
  20628. configurable: true
  20629. }
  20630. });
  20631. Object.defineProperty(subClass, "prototype", {
  20632. writable: false
  20633. });
  20634. if (superClass) setPrototypeOf(subClass, superClass);
  20635. }
  20636. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20637. /***/ }),
  20638. /***/ 34:
  20639. /*!**************************************************************************!*\
  20640. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  20641. \**************************************************************************/
  20642. /*! no static exports found */
  20643. /***/ (function(module, exports, __webpack_require__) {
  20644. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  20645. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 31);
  20646. function _possibleConstructorReturn(self, call) {
  20647. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  20648. return call;
  20649. } else if (call !== void 0) {
  20650. throw new TypeError("Derived constructors may only return object or undefined");
  20651. }
  20652. return assertThisInitialized(self);
  20653. }
  20654. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20655. /***/ }),
  20656. /***/ 35:
  20657. /*!***************************************************************!*\
  20658. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  20659. \***************************************************************/
  20660. /*! no static exports found */
  20661. /***/ (function(module, exports) {
  20662. function _getPrototypeOf(o) {
  20663. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  20664. return o.__proto__ || Object.getPrototypeOf(o);
  20665. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20666. return _getPrototypeOf(o);
  20667. }
  20668. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20669. /***/ }),
  20670. /***/ 36:
  20671. /*!****************************************************************!*\
  20672. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  20673. \****************************************************************/
  20674. /*! no static exports found */
  20675. /***/ (function(module, exports, __webpack_require__) {
  20676. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 35);
  20677. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  20678. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 37);
  20679. var construct = __webpack_require__(/*! ./construct.js */ 15);
  20680. function _wrapNativeSuper(Class) {
  20681. var _cache = typeof Map === "function" ? new Map() : undefined;
  20682. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  20683. if (Class === null || !isNativeFunction(Class)) return Class;
  20684. if (typeof Class !== "function") {
  20685. throw new TypeError("Super expression must either be null or a function");
  20686. }
  20687. if (typeof _cache !== "undefined") {
  20688. if (_cache.has(Class)) return _cache.get(Class);
  20689. _cache.set(Class, Wrapper);
  20690. }
  20691. function Wrapper() {
  20692. return construct(Class, arguments, getPrototypeOf(this).constructor);
  20693. }
  20694. Wrapper.prototype = Object.create(Class.prototype, {
  20695. constructor: {
  20696. value: Wrapper,
  20697. enumerable: false,
  20698. writable: true,
  20699. configurable: true
  20700. }
  20701. });
  20702. return setPrototypeOf(Wrapper, Class);
  20703. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20704. return _wrapNativeSuper(Class);
  20705. }
  20706. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20707. /***/ }),
  20708. /***/ 37:
  20709. /*!*****************************************************************!*\
  20710. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  20711. \*****************************************************************/
  20712. /*! no static exports found */
  20713. /***/ (function(module, exports) {
  20714. function _isNativeFunction(fn) {
  20715. try {
  20716. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  20717. } catch (e) {
  20718. return typeof fn === "function";
  20719. }
  20720. }
  20721. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20722. /***/ }),
  20723. /***/ 38:
  20724. /*!*****************************************************************************!*\
  20725. !*** D:/work/gitlabcode/product_wx/pages.json?{"type":"origin-pages-json"} ***!
  20726. \*****************************************************************************/
  20727. /*! no static exports found */
  20728. /***/ (function(module, exports, __webpack_require__) {
  20729. "use strict";
  20730. Object.defineProperty(exports, "__esModule", {
  20731. value: true
  20732. });
  20733. exports.default = void 0;
  20734. var _default = {
  20735. "pages": [{
  20736. "path": "pages/index/index",
  20737. "style": {
  20738. "navigationBarTitleText": "首页"
  20739. },
  20740. "usingComponents": {
  20741. "van-button": "/wxcomponents/weapp/dist/button/index",
  20742. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20743. "van-field": "/wxcomponents/weapp/dist/field/index",
  20744. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20745. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20746. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  20747. }
  20748. }, {
  20749. "path": "pages/login/login",
  20750. "style": {
  20751. "navigationBarTitleText": "登录",
  20752. "app-plus": {
  20753. "titleNView": {
  20754. "buttons": [{
  20755. "text": "",
  20756. "fontSrc": "/static/uni.ttf",
  20757. "fontSize": "22px",
  20758. "color": "#FFFFFF"
  20759. }]
  20760. }
  20761. },
  20762. "usingComponents": {
  20763. "van-button": "/wxcomponents/weapp/dist/button/index",
  20764. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20765. "van-field": "/wxcomponents/weapp/dist/field/index",
  20766. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20767. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20768. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  20769. }
  20770. }
  20771. }, {
  20772. "path": "pages/index/mapLocation",
  20773. "style": {
  20774. "navigationBarTitleText": "地址选择",
  20775. "app-plus": {
  20776. "titleNView": {
  20777. "buttons": [{
  20778. "text": "",
  20779. "fontSrc": "/static/uni.ttf",
  20780. "fontSize": "22px",
  20781. "color": "#FFFFFF"
  20782. }]
  20783. }
  20784. },
  20785. "usingComponents": {
  20786. "van-button": "/wxcomponents/weapp/dist/button/index",
  20787. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20788. "van-field": "/wxcomponents/weapp/dist/field/index",
  20789. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20790. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20791. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  20792. }
  20793. }
  20794. }, {
  20795. "path": "pages/login2/login",
  20796. "style": {
  20797. "navigationBarTitleText": "登录",
  20798. "app-plus": {
  20799. "titleNView": {
  20800. "buttons": [{
  20801. "text": "",
  20802. "fontSrc": "/static/uni.ttf",
  20803. "fontSize": "22px",
  20804. "color": "#FFFFFF"
  20805. }]
  20806. }
  20807. },
  20808. "usingComponents": {
  20809. "van-button": "/wxcomponents/weapp/dist/button/index",
  20810. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20811. "van-field": "/wxcomponents/weapp/dist/field/index",
  20812. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20813. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20814. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  20815. }
  20816. }
  20817. }, {
  20818. "path": "pages/mine/mine",
  20819. "style": {
  20820. "navigationBarTitleText": "我的",
  20821. "app-plus": {
  20822. "bounce": "vertical",
  20823. "titleNView": {
  20824. "buttons": [{
  20825. "text": "",
  20826. "fontSrc": "/static/uni.ttf",
  20827. "fontSize": "22px",
  20828. "color": "#FFFFFF"
  20829. }]
  20830. }
  20831. },
  20832. "usingComponents": {
  20833. "van-button": "/wxcomponents/weapp/dist/button/index",
  20834. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20835. "van-field": "/wxcomponents/weapp/dist/field/index",
  20836. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20837. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20838. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20839. "van-icon": "/wxcomponents/weapp/dist/icon/index"
  20840. }
  20841. }
  20842. }],
  20843. "subPackages": [{
  20844. "root": "pages/subPackages",
  20845. "pages": [{
  20846. "path": "gocompnay/index",
  20847. "style": {
  20848. "navigationBarTitleText": "企业端",
  20849. "enablePullDownRefresh": true,
  20850. "onReachBottomDistance": 100,
  20851. "app-plus": {
  20852. "bounce": "vertical",
  20853. "titleNView": {
  20854. "buttons": [{
  20855. "text": "",
  20856. "fontSrc": "/static/uni.ttf",
  20857. "fontSize": "22px",
  20858. "color": "#FFFFFF"
  20859. }]
  20860. }
  20861. },
  20862. "component": true
  20863. }
  20864. }, {
  20865. "path": "eventRelease/index",
  20866. "style": {
  20867. "navigationBarTitleText": "活动发布",
  20868. "enablePullDownRefresh": true,
  20869. "onReachBottomDistance": 100,
  20870. "app-plus": {
  20871. "bounce": "vertical",
  20872. "titleNView": {
  20873. "buttons": [{
  20874. "text": "",
  20875. "fontSrc": "/static/uni.ttf",
  20876. "fontSize": "22px",
  20877. "color": "#FFFFFF"
  20878. }]
  20879. }
  20880. },
  20881. "component": true,
  20882. "usingComponents": {
  20883. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20884. "van-button": "/wxcomponents/weapp/dist/button/index",
  20885. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20886. "van-field": "/wxcomponents/weapp/dist/field/index",
  20887. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20888. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20889. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20890. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20891. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20892. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20893. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  20894. }
  20895. }
  20896. }, {
  20897. "path": "eventRelease/add",
  20898. "style": {
  20899. "navigationBarTitleText": "活动发布",
  20900. "enablePullDownRefresh": true,
  20901. "onReachBottomDistance": 100,
  20902. "app-plus": {
  20903. "bounce": "vertical",
  20904. "titleNView": {
  20905. "buttons": [{
  20906. "text": "",
  20907. "fontSrc": "/static/uni.ttf",
  20908. "fontSize": "22px",
  20909. "color": "#FFFFFF"
  20910. }]
  20911. }
  20912. },
  20913. "component": true,
  20914. "usingComponents": {
  20915. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20916. "van-button": "/wxcomponents/weapp/dist/button/index",
  20917. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20918. "van-field": "/wxcomponents/weapp/dist/field/index",
  20919. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20920. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20921. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20922. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20923. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20924. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20925. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  20926. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  20927. }
  20928. }
  20929. }, {
  20930. "path": "venueRoom/meetingroom",
  20931. "style": {
  20932. "navigationBarTitleText": "场馆审核",
  20933. "enablePullDownRefresh": true,
  20934. "onReachBottomDistance": 100,
  20935. "app-plus": {
  20936. "bounce": "vertical",
  20937. "titleNView": {
  20938. "buttons": [{
  20939. "text": "",
  20940. "fontSrc": "/static/uni.ttf",
  20941. "fontSize": "22px",
  20942. "color": "#FFFFFF"
  20943. }]
  20944. }
  20945. },
  20946. "component": true,
  20947. "usingComponents": {
  20948. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  20949. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  20950. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20951. "van-button": "/wxcomponents/weapp/dist/button/index",
  20952. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20953. "van-field": "/wxcomponents/weapp/dist/field/index",
  20954. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20955. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20956. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20957. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20958. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20959. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20960. }
  20961. }
  20962. }, {
  20963. "path": "activity/index",
  20964. "style": {
  20965. "navigationBarTitleText": "活动核销签到",
  20966. "enablePullDownRefresh": true,
  20967. "onReachBottomDistance": 100,
  20968. "app-plus": {
  20969. "bounce": "vertical",
  20970. "titleNView": {
  20971. "buttons": [{
  20972. "text": "",
  20973. "fontSrc": "/static/uni.ttf",
  20974. "fontSize": "22px",
  20975. "color": "#FFFFFF"
  20976. }]
  20977. }
  20978. },
  20979. "component": true,
  20980. "usingComponents": {
  20981. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  20982. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  20983. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20984. "van-button": "/wxcomponents/weapp/dist/button/index",
  20985. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20986. "van-field": "/wxcomponents/weapp/dist/field/index",
  20987. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20988. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20989. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20990. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20991. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20992. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20993. }
  20994. }
  20995. }, {
  20996. "path": "activity/code",
  20997. "style": {
  20998. "navigationBarTitleText": "活动核销扫码确认签到",
  20999. "enablePullDownRefresh": true,
  21000. "onReachBottomDistance": 100,
  21001. "app-plus": {
  21002. "bounce": "vertical",
  21003. "titleNView": {
  21004. "buttons": [{
  21005. "text": "",
  21006. "fontSrc": "/static/uni.ttf",
  21007. "fontSize": "22px",
  21008. "color": "#FFFFFF"
  21009. }]
  21010. }
  21011. },
  21012. "component": true,
  21013. "usingComponents": {
  21014. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21015. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21016. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21017. "van-button": "/wxcomponents/weapp/dist/button/index",
  21018. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21019. "van-field": "/wxcomponents/weapp/dist/field/index",
  21020. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21021. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21022. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21023. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21024. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21025. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21026. }
  21027. }
  21028. }, {
  21029. "path": "activityPromulgate/list",
  21030. "style": {
  21031. "navigationBarTitleText": "活动发布",
  21032. "enablePullDownRefresh": true,
  21033. "onReachBottomDistance": 100,
  21034. "app-plus": {
  21035. "bounce": "vertical",
  21036. "titleNView": {
  21037. "buttons": [{
  21038. "text": "",
  21039. "fontSrc": "/static/uni.ttf",
  21040. "fontSize": "22px",
  21041. "color": "#FFFFFF"
  21042. }]
  21043. }
  21044. },
  21045. "component": true,
  21046. "usingComponents": {
  21047. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21048. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21049. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21050. "van-button": "/wxcomponents/weapp/dist/button/index",
  21051. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21052. "van-field": "/wxcomponents/weapp/dist/field/index",
  21053. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21054. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21055. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21056. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21057. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21058. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21059. }
  21060. }
  21061. }, {
  21062. "path": "activityPromulgate/qrCode",
  21063. "style": {
  21064. "navigationBarTitleText": "活动签到码",
  21065. "enablePullDownRefresh": true,
  21066. "onReachBottomDistance": 100,
  21067. "app-plus": {
  21068. "bounce": "vertical",
  21069. "titleNView": {
  21070. "buttons": [{
  21071. "text": "",
  21072. "fontSrc": "/static/uni.ttf",
  21073. "fontSize": "22px",
  21074. "color": "#FFFFFF"
  21075. }]
  21076. }
  21077. },
  21078. "component": true,
  21079. "usingComponents": {
  21080. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21081. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21082. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21083. "van-button": "/wxcomponents/weapp/dist/button/index",
  21084. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21085. "van-field": "/wxcomponents/weapp/dist/field/index",
  21086. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21087. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21088. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21089. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21090. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21091. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21092. }
  21093. }
  21094. }, {
  21095. "path": "activityPromulgate/add",
  21096. "style": {
  21097. "navigationBarTitleText": "新增活动",
  21098. "enablePullDownRefresh": true,
  21099. "onReachBottomDistance": 100,
  21100. "app-plus": {
  21101. "bounce": "vertical",
  21102. "titleNView": {
  21103. "buttons": [{
  21104. "text": "",
  21105. "fontSrc": "/static/uni.ttf",
  21106. "fontSize": "22px",
  21107. "color": "#FFFFFF"
  21108. }]
  21109. }
  21110. },
  21111. "component": true,
  21112. "usingComponents": {
  21113. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21114. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21115. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21116. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21117. "van-button": "/wxcomponents/weapp/dist/button/index",
  21118. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21119. "van-field": "/wxcomponents/weapp/dist/field/index",
  21120. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21121. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21122. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21123. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21124. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21125. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21126. }
  21127. }
  21128. }, {
  21129. "path": "password/index",
  21130. "style": {
  21131. "navigationBarTitleText": "修改密码",
  21132. "enablePullDownRefresh": true,
  21133. "onReachBottomDistance": 100,
  21134. "app-plus": {
  21135. "bounce": "vertical",
  21136. "titleNView": {
  21137. "buttons": [{
  21138. "text": "",
  21139. "fontSrc": "/static/uni.ttf",
  21140. "fontSize": "22px",
  21141. "color": "#FFFFFF"
  21142. }]
  21143. }
  21144. },
  21145. "component": true,
  21146. "usingComponents": {
  21147. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  21148. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  21149. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21150. "van-button": "/wxcomponents/weapp/dist/button/index",
  21151. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21152. "van-field": "/wxcomponents/weapp/dist/field/index",
  21153. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21154. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21155. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21156. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21157. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21158. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21159. }
  21160. }
  21161. }, {
  21162. "path": "repairDispatch-app/index",
  21163. "style": {
  21164. "navigationBarTitleText": "报修派单",
  21165. "enablePullDownRefresh": true,
  21166. "onReachBottomDistance": 100,
  21167. "app-plus": {
  21168. "bounce": "vertical",
  21169. "titleNView": {
  21170. "buttons": [{
  21171. "text": "",
  21172. "fontSrc": "/static/uni.ttf",
  21173. "fontSize": "22px",
  21174. "color": "#FFFFFF"
  21175. }]
  21176. }
  21177. },
  21178. "component": true,
  21179. "usingComponents": {
  21180. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21181. "van-button": "/wxcomponents/weapp/dist/button/index",
  21182. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21183. "van-field": "/wxcomponents/weapp/dist/field/index",
  21184. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21185. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21186. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21187. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21188. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21189. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21190. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21191. }
  21192. }
  21193. }, {
  21194. "path": "repairDispatch-app/add",
  21195. "style": {
  21196. "navigationBarTitleText": "新增报修派单",
  21197. "enablePullDownRefresh": true,
  21198. "onReachBottomDistance": 100,
  21199. "app-plus": {
  21200. "bounce": "vertical",
  21201. "titleNView": {
  21202. "buttons": [{
  21203. "text": "",
  21204. "fontSrc": "/static/uni.ttf",
  21205. "fontSize": "22px",
  21206. "color": "#FFFFFF"
  21207. }]
  21208. }
  21209. },
  21210. "component": true,
  21211. "usingComponents": {
  21212. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21213. "van-button": "/wxcomponents/weapp/dist/button/index",
  21214. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21215. "van-field": "/wxcomponents/weapp/dist/field/index",
  21216. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21217. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21218. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21219. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21220. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21221. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21222. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21223. }
  21224. }
  21225. }, {
  21226. "path": "repairprocessing-app/detail",
  21227. "style": {
  21228. "navigationBarTitleText": "报修处理-详情",
  21229. "enablePullDownRefresh": true,
  21230. "onReachBottomDistance": 100,
  21231. "app-plus": {
  21232. "bounce": "vertical",
  21233. "titleNView": {
  21234. "buttons": [{
  21235. "text": "",
  21236. "fontSrc": "/static/uni.ttf",
  21237. "fontSize": "22px",
  21238. "color": "#FFFFFF"
  21239. }]
  21240. }
  21241. },
  21242. "component": true,
  21243. "usingComponents": {
  21244. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  21245. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21246. "van-button": "/wxcomponents/weapp/dist/button/index",
  21247. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21248. "van-field": "/wxcomponents/weapp/dist/field/index",
  21249. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21250. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21251. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21252. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21253. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21254. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21255. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21256. }
  21257. }
  21258. }, {
  21259. "path": "repairprocessing-app/index",
  21260. "style": {
  21261. "navigationBarTitleText": "报修处理",
  21262. "enablePullDownRefresh": true,
  21263. "onReachBottomDistance": 100,
  21264. "app-plus": {
  21265. "bounce": "vertical",
  21266. "titleNView": {
  21267. "buttons": [{
  21268. "text": "",
  21269. "fontSrc": "/static/uni.ttf",
  21270. "fontSize": "22px",
  21271. "color": "#FFFFFF"
  21272. }]
  21273. }
  21274. },
  21275. "component": true,
  21276. "usingComponents": {
  21277. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21278. "van-button": "/wxcomponents/weapp/dist/button/index",
  21279. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21280. "van-field": "/wxcomponents/weapp/dist/field/index",
  21281. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21282. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21283. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21284. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21285. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21286. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21287. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21288. }
  21289. }
  21290. }, {
  21291. "path": "modifySend/index",
  21292. "style": {
  21293. "navigationBarTitleText": "整改派单",
  21294. "enablePullDownRefresh": true,
  21295. "onReachBottomDistance": 100,
  21296. "app-plus": {
  21297. "bounce": "vertical",
  21298. "titleNView": {
  21299. "buttons": [{
  21300. "text": "",
  21301. "fontSrc": "/static/uni.ttf",
  21302. "fontSize": "22px",
  21303. "color": "#FFFFFF"
  21304. }]
  21305. }
  21306. },
  21307. "component": true,
  21308. "usingComponents": {
  21309. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21310. "van-button": "/wxcomponents/weapp/dist/button/index",
  21311. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21312. "van-field": "/wxcomponents/weapp/dist/field/index",
  21313. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21314. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21315. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21316. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21317. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21318. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21319. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21320. }
  21321. }
  21322. }, {
  21323. "path": "modifyReport/index",
  21324. "style": {
  21325. "navigationBarTitleText": "整改填报",
  21326. "enablePullDownRefresh": true,
  21327. "onReachBottomDistance": 100,
  21328. "app-plus": {
  21329. "bounce": "vertical",
  21330. "titleNView": {
  21331. "buttons": [{
  21332. "text": "",
  21333. "fontSrc": "/static/uni.ttf",
  21334. "fontSize": "22px",
  21335. "color": "#FFFFFF"
  21336. }]
  21337. }
  21338. },
  21339. "component": true,
  21340. "usingComponents": {
  21341. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21342. "van-button": "/wxcomponents/weapp/dist/button/index",
  21343. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21344. "van-field": "/wxcomponents/weapp/dist/field/index",
  21345. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21346. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21347. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21348. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21349. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21350. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21351. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21352. }
  21353. }
  21354. }, {
  21355. "path": "modifyReport/detail",
  21356. "style": {
  21357. "navigationBarTitleText": "整改详情",
  21358. "enablePullDownRefresh": true,
  21359. "onReachBottomDistance": 100,
  21360. "app-plus": {
  21361. "bounce": "vertical",
  21362. "titleNView": {
  21363. "buttons": [{
  21364. "text": "",
  21365. "fontSrc": "/static/uni.ttf",
  21366. "fontSize": "22px",
  21367. "color": "#FFFFFF"
  21368. }]
  21369. }
  21370. },
  21371. "component": true,
  21372. "usingComponents": {
  21373. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21374. "van-button": "/wxcomponents/weapp/dist/button/index",
  21375. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21376. "van-field": "/wxcomponents/weapp/dist/field/index",
  21377. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21378. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21379. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21380. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21381. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21382. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21383. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21384. }
  21385. }
  21386. }, {
  21387. "path": "modifyHandle/handle",
  21388. "style": {
  21389. "navigationBarTitleText": "整改处理 ",
  21390. "enablePullDownRefresh": true,
  21391. "onReachBottomDistance": 100,
  21392. "app-plus": {
  21393. "bounce": "vertical",
  21394. "titleNView": {
  21395. "buttons": [{
  21396. "text": "",
  21397. "fontSrc": "/static/uni.ttf",
  21398. "fontSize": "22px",
  21399. "color": "#FFFFFF"
  21400. }]
  21401. }
  21402. },
  21403. "component": true,
  21404. "usingComponents": {
  21405. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21406. "van-button": "/wxcomponents/weapp/dist/button/index",
  21407. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21408. "van-field": "/wxcomponents/weapp/dist/field/index",
  21409. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21410. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21411. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21412. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21413. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21414. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21415. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21416. }
  21417. }
  21418. }, {
  21419. "path": "modifyHandle/index",
  21420. "style": {
  21421. "navigationBarTitleText": "整改处理",
  21422. "enablePullDownRefresh": true,
  21423. "onReachBottomDistance": 100,
  21424. "app-plus": {
  21425. "bounce": "vertical",
  21426. "titleNView": {
  21427. "buttons": [{
  21428. "text": "",
  21429. "fontSrc": "/static/uni.ttf",
  21430. "fontSize": "22px",
  21431. "color": "#FFFFFF"
  21432. }]
  21433. }
  21434. },
  21435. "component": true,
  21436. "usingComponents": {
  21437. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21438. "van-button": "/wxcomponents/weapp/dist/button/index",
  21439. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21440. "van-field": "/wxcomponents/weapp/dist/field/index",
  21441. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21442. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21443. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21444. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21445. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21446. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21447. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21448. }
  21449. }
  21450. }, {
  21451. "path": "modifyReport/add",
  21452. "style": {
  21453. "navigationBarTitleText": "整改新增",
  21454. "enablePullDownRefresh": true,
  21455. "onReachBottomDistance": 100,
  21456. "app-plus": {
  21457. "bounce": "vertical",
  21458. "titleNView": {
  21459. "buttons": [{
  21460. "text": "",
  21461. "fontSrc": "/static/uni.ttf",
  21462. "fontSize": "22px",
  21463. "color": "#FFFFFF"
  21464. }]
  21465. }
  21466. },
  21467. "component": true,
  21468. "usingComponents": {
  21469. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21470. "van-button": "/wxcomponents/weapp/dist/button/index",
  21471. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21472. "van-field": "/wxcomponents/weapp/dist/field/index",
  21473. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21474. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21475. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21476. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21477. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21478. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21479. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21480. }
  21481. }
  21482. }, {
  21483. "path": "toread/index",
  21484. "style": {
  21485. "navigationBarTitleText": "我的待阅",
  21486. "enablePullDownRefresh": true,
  21487. "onReachBottomDistance": 100,
  21488. "app-plus": {
  21489. "bounce": "vertical",
  21490. "titleNView": {
  21491. "buttons": [{
  21492. "text": "",
  21493. "fontSrc": "/static/uni.ttf",
  21494. "fontSize": "22px",
  21495. "color": "#FFFFFF"
  21496. }]
  21497. }
  21498. },
  21499. "component": true,
  21500. "usingComponents": {
  21501. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21502. "van-button": "/wxcomponents/weapp/dist/button/index",
  21503. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21504. "van-field": "/wxcomponents/weapp/dist/field/index",
  21505. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21506. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21507. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21508. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21509. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21510. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21511. }
  21512. }
  21513. }, {
  21514. "path": "todo/index",
  21515. "style": {
  21516. "navigationBarTitleText": "我的待办",
  21517. "enablePullDownRefresh": true,
  21518. "onReachBottomDistance": 100,
  21519. "app-plus": {
  21520. "bounce": "vertical",
  21521. "titleNView": {
  21522. "buttons": [{
  21523. "text": "",
  21524. "fontSrc": "/static/uni.ttf",
  21525. "fontSize": "22px",
  21526. "color": "#FFFFFF"
  21527. }]
  21528. }
  21529. },
  21530. "component": true,
  21531. "usingComponents": {
  21532. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21533. "van-button": "/wxcomponents/weapp/dist/button/index",
  21534. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21535. "van-field": "/wxcomponents/weapp/dist/field/index",
  21536. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21537. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21538. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21539. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21540. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21541. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21542. }
  21543. }
  21544. }, {
  21545. "path": "todo/predetermineDetail",
  21546. "style": {
  21547. "navigationBarTitleText": "企业预定详情",
  21548. "enablePullDownRefresh": true,
  21549. "onReachBottomDistance": 100,
  21550. "app-plus": {
  21551. "bounce": "vertical",
  21552. "titleNView": {
  21553. "buttons": [{
  21554. "text": "",
  21555. "fontSrc": "/static/uni.ttf",
  21556. "fontSize": "22px",
  21557. "color": "#FFFFFF"
  21558. }]
  21559. }
  21560. },
  21561. "component": true,
  21562. "usingComponents": {
  21563. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21564. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21565. "van-button": "/wxcomponents/weapp/dist/button/index",
  21566. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21567. "van-field": "/wxcomponents/weapp/dist/field/index",
  21568. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21569. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21570. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21571. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21572. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21573. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21574. }
  21575. }
  21576. }, {
  21577. "path": "todo/inventoryReview",
  21578. "style": {
  21579. "navigationBarTitleText": "企业入库审核",
  21580. "enablePullDownRefresh": true,
  21581. "onReachBottomDistance": 100,
  21582. "app-plus": {
  21583. "bounce": "vertical",
  21584. "titleNView": {
  21585. "buttons": [{
  21586. "text": "",
  21587. "fontSrc": "/static/uni.ttf",
  21588. "fontSize": "22px",
  21589. "color": "#FFFFFF"
  21590. }]
  21591. }
  21592. },
  21593. "component": true,
  21594. "usingComponents": {
  21595. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21596. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21597. "van-button": "/wxcomponents/weapp/dist/button/index",
  21598. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21599. "van-field": "/wxcomponents/weapp/dist/field/index",
  21600. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21601. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21602. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21603. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21604. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21605. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21606. }
  21607. }
  21608. }, {
  21609. "path": "todo/repairAcceptance",
  21610. "style": {
  21611. "navigationBarTitleText": "报修受理",
  21612. "enablePullDownRefresh": true,
  21613. "onReachBottomDistance": 100,
  21614. "app-plus": {
  21615. "bounce": "vertical",
  21616. "titleNView": {
  21617. "buttons": [{
  21618. "text": "",
  21619. "fontSrc": "/static/uni.ttf",
  21620. "fontSize": "22px",
  21621. "color": "#FFFFFF"
  21622. }]
  21623. }
  21624. },
  21625. "component": true,
  21626. "usingComponents": {
  21627. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21628. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21629. "van-button": "/wxcomponents/weapp/dist/button/index",
  21630. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21631. "van-field": "/wxcomponents/weapp/dist/field/index",
  21632. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21633. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21634. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21635. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21636. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21637. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21638. }
  21639. }
  21640. }, {
  21641. "path": "todo/addRepair",
  21642. "style": {
  21643. "navigationBarTitleText": "新增报修",
  21644. "enablePullDownRefresh": true,
  21645. "onReachBottomDistance": 100,
  21646. "app-plus": {
  21647. "bounce": "vertical",
  21648. "titleNView": {
  21649. "buttons": [{
  21650. "text": "",
  21651. "fontSrc": "/static/uni.ttf",
  21652. "fontSize": "22px",
  21653. "color": "#FFFFFF"
  21654. }]
  21655. }
  21656. },
  21657. "component": true,
  21658. "usingComponents": {
  21659. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21660. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21661. "van-button": "/wxcomponents/weapp/dist/button/index",
  21662. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21663. "van-field": "/wxcomponents/weapp/dist/field/index",
  21664. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21665. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21666. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21667. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21668. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21669. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21670. }
  21671. }
  21672. }, {
  21673. "path": "todo/dispatch",
  21674. "style": {
  21675. "navigationBarTitleText": "报修派单",
  21676. "enablePullDownRefresh": true,
  21677. "onReachBottomDistance": 100,
  21678. "app-plus": {
  21679. "bounce": "vertical",
  21680. "titleNView": {
  21681. "buttons": [{
  21682. "text": "",
  21683. "fontSrc": "/static/uni.ttf",
  21684. "fontSize": "22px",
  21685. "color": "#FFFFFF"
  21686. }]
  21687. }
  21688. },
  21689. "component": true,
  21690. "usingComponents": {
  21691. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21692. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21693. "van-button": "/wxcomponents/weapp/dist/button/index",
  21694. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21695. "van-field": "/wxcomponents/weapp/dist/field/index",
  21696. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21697. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21698. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21699. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21700. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21701. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21702. }
  21703. }
  21704. }, {
  21705. "path": "venueRoom/confirm",
  21706. "style": {
  21707. "navigationBarTitleText": "场馆-审核",
  21708. "enablePullDownRefresh": true,
  21709. "onReachBottomDistance": 100,
  21710. "app-plus": {
  21711. "bounce": "vertical",
  21712. "titleNView": {
  21713. "buttons": [{
  21714. "text": "",
  21715. "fontSrc": "/static/uni.ttf",
  21716. "fontSize": "22px",
  21717. "color": "#FFFFFF"
  21718. }]
  21719. }
  21720. },
  21721. "component": true,
  21722. "usingComponents": {
  21723. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21724. "van-button": "/wxcomponents/weapp/dist/button/index",
  21725. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21726. "van-field": "/wxcomponents/weapp/dist/field/index",
  21727. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21728. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21729. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21730. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21731. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21732. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21733. }
  21734. }
  21735. }, {
  21736. "path": "housedetails/housedetails",
  21737. "style": {
  21738. "navigationBarTitleText": "房源详情",
  21739. "enablePullDownRefresh": true,
  21740. "onReachBottomDistance": 100,
  21741. "app-plus": {
  21742. "bounce": "vertical",
  21743. "titleNView": {
  21744. "buttons": [{
  21745. "text": "",
  21746. "fontSrc": "/static/uni.ttf",
  21747. "fontSize": "22px",
  21748. "color": "#FFFFFF"
  21749. }]
  21750. }
  21751. },
  21752. "component": true,
  21753. "usingComponents": {
  21754. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  21755. "van-button": "/wxcomponents/weapp/dist/button/index",
  21756. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21757. "van-field": "/wxcomponents/weapp/dist/field/index",
  21758. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21759. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21760. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21761. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21762. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21763. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21764. }
  21765. }
  21766. }, {
  21767. "path": "addintention/addintention",
  21768. "style": {
  21769. "navigationBarTitleText": "新增意向",
  21770. "enablePullDownRefresh": true,
  21771. "onReachBottomDistance": 100,
  21772. "app-plus": {
  21773. "bounce": "vertical",
  21774. "titleNView": {
  21775. "buttons": [{
  21776. "text": "",
  21777. "fontSrc": "/static/uni.ttf",
  21778. "fontSize": "22px",
  21779. "color": "#FFFFFF"
  21780. }]
  21781. }
  21782. },
  21783. "component": true,
  21784. "usingComponents": {
  21785. "van-button": "/wxcomponents/weapp/dist/button/index",
  21786. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21787. "van-field": "/wxcomponents/weapp/dist/field/index",
  21788. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21789. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21790. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21791. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21792. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21793. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21794. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  21795. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  21796. }
  21797. }
  21798. }, {
  21799. "path": "chosseHouse/chosseHouse",
  21800. "style": {
  21801. "navigationBarTitleText": "选择房源",
  21802. "enablePullDownRefresh": true,
  21803. "onReachBottomDistance": 100,
  21804. "app-plus": {
  21805. "bounce": "vertical",
  21806. "titleNView": {
  21807. "buttons": [{
  21808. "text": "",
  21809. "fontSrc": "/static/uni.ttf",
  21810. "fontSize": "22px",
  21811. "color": "#FFFFFF"
  21812. }]
  21813. }
  21814. },
  21815. "component": true,
  21816. "usingComponents": {
  21817. "van-button": "/wxcomponents/weapp/dist/button/index",
  21818. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21819. "van-field": "/wxcomponents/weapp/dist/field/index",
  21820. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21821. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21822. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21823. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21824. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21825. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21826. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  21827. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21828. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  21829. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  21830. }
  21831. }
  21832. }, {
  21833. "path": "companyHouse/companyHouse",
  21834. "style": {
  21835. "navigationBarTitleText": "企业库",
  21836. "enablePullDownRefresh": true,
  21837. "onReachBottomDistance": 100,
  21838. "app-plus": {
  21839. "bounce": "vertical",
  21840. "titleNView": {
  21841. "buttons": [{
  21842. "text": "",
  21843. "fontSrc": "/static/uni.ttf",
  21844. "fontSize": "22px",
  21845. "color": "#FFFFFF"
  21846. }]
  21847. }
  21848. },
  21849. "component": true,
  21850. "usingComponents": {
  21851. "van-button": "/wxcomponents/weapp/dist/button/index",
  21852. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21853. "van-field": "/wxcomponents/weapp/dist/field/index",
  21854. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21855. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21856. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21857. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21858. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21859. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21860. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  21861. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21862. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  21863. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  21864. }
  21865. }
  21866. }, {
  21867. "path": "companyreport/components/reportDetails",
  21868. "style": {
  21869. "navigationBarTitleText": "走访上报-详情",
  21870. "enablePullDownRefresh": true,
  21871. "onReachBottomDistance": 100,
  21872. "app-plus": {
  21873. "bounce": "vertical",
  21874. "titleNView": {
  21875. "buttons": [{
  21876. "text": "",
  21877. "fontSrc": "/static/uni.ttf",
  21878. "fontSize": "22px",
  21879. "color": "#FFFFFF"
  21880. }]
  21881. }
  21882. },
  21883. "component": true,
  21884. "usingComponents": {
  21885. "van-button": "/wxcomponents/weapp/dist/button/index",
  21886. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21887. "van-field": "/wxcomponents/weapp/dist/field/index",
  21888. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21889. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21890. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21891. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21892. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21893. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  21894. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  21895. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21896. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  21897. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  21898. }
  21899. }
  21900. }, {
  21901. "path": "merchants/merchants",
  21902. "style": {
  21903. "navigationBarTitleText": "我的招商",
  21904. "enablePullDownRefresh": true,
  21905. "onReachBottomDistance": 100,
  21906. "app-plus": {
  21907. "bounce": "vertical",
  21908. "titleNView": {
  21909. "buttons": [{
  21910. "text": "",
  21911. "fontSrc": "/static/uni.ttf",
  21912. "fontSize": "22px",
  21913. "color": "#FFFFFF"
  21914. }]
  21915. }
  21916. },
  21917. "component": true,
  21918. "usingComponents": {
  21919. "van-button": "/wxcomponents/weapp/dist/button/index",
  21920. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21921. "van-field": "/wxcomponents/weapp/dist/field/index",
  21922. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21923. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21924. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21925. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21926. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21927. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21928. }
  21929. }
  21930. }, {
  21931. "path": "merchants/components/mymechantsdetails",
  21932. "style": {
  21933. "navigationBarTitleText": "我的招商-详情",
  21934. "enablePullDownRefresh": true,
  21935. "onReachBottomDistance": 100,
  21936. "app-plus": {
  21937. "bounce": "vertical",
  21938. "titleNView": {
  21939. "buttons": [{
  21940. "text": "",
  21941. "fontSrc": "/static/uni.ttf",
  21942. "fontSize": "22px",
  21943. "color": "#FFFFFF"
  21944. }]
  21945. }
  21946. },
  21947. "component": true,
  21948. "usingComponents": {
  21949. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21950. "van-button": "/wxcomponents/weapp/dist/button/index",
  21951. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21952. "van-field": "/wxcomponents/weapp/dist/field/index",
  21953. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21954. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21955. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21956. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21957. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21958. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21959. }
  21960. }
  21961. }, {
  21962. "path": "reportRepair/index",
  21963. "style": {
  21964. "navigationBarTitleText": "报事报修",
  21965. "enablePullDownRefresh": true,
  21966. "onReachBottomDistance": 100,
  21967. "app-plus": {
  21968. "bounce": "vertical",
  21969. "titleNView": {
  21970. "buttons": [{
  21971. "text": "",
  21972. "fontSrc": "/static/uni.ttf",
  21973. "fontSize": "22px",
  21974. "color": "#FFFFFF"
  21975. }]
  21976. }
  21977. },
  21978. "component": true,
  21979. "usingComponents": {
  21980. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  21981. "van-button": "/wxcomponents/weapp/dist/button/index",
  21982. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  21983. "van-field": "/wxcomponents/weapp/dist/field/index",
  21984. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  21985. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  21986. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  21987. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  21988. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  21989. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  21990. }
  21991. }
  21992. }, {
  21993. "path": "reportRepair/repairRecord",
  21994. "style": {
  21995. "navigationBarTitleText": "报事记录",
  21996. "enablePullDownRefresh": true,
  21997. "onReachBottomDistance": 100,
  21998. "app-plus": {
  21999. "bounce": "vertical",
  22000. "titleNView": {
  22001. "buttons": [{
  22002. "text": "",
  22003. "fontSrc": "/static/uni.ttf",
  22004. "fontSize": "22px",
  22005. "color": "#FFFFFF"
  22006. }]
  22007. }
  22008. },
  22009. "component": true,
  22010. "usingComponents": {
  22011. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22012. "van-button": "/wxcomponents/weapp/dist/button/index",
  22013. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22014. "van-field": "/wxcomponents/weapp/dist/field/index",
  22015. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22016. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22017. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22018. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22019. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22020. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  22021. }
  22022. }
  22023. }, {
  22024. "path": "reportRepair/repairDetail",
  22025. "style": {
  22026. "navigationBarTitleText": "报事详情",
  22027. "enablePullDownRefresh": true,
  22028. "onReachBottomDistance": 100,
  22029. "app-plus": {
  22030. "bounce": "vertical",
  22031. "titleNView": {
  22032. "buttons": [{
  22033. "text": "",
  22034. "fontSrc": "/static/uni.ttf",
  22035. "fontSize": "22px",
  22036. "color": "#FFFFFF"
  22037. }]
  22038. }
  22039. },
  22040. "component": true,
  22041. "usingComponents": {
  22042. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22043. "van-button": "/wxcomponents/weapp/dist/button/index",
  22044. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22045. "van-field": "/wxcomponents/weapp/dist/field/index",
  22046. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  22047. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22048. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22049. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22050. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22051. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22052. "van-rate": "/wxcomponents/weapp/dist/rate/index"
  22053. }
  22054. }
  22055. }, {
  22056. "path": "companyreport/companyreport",
  22057. "style": {
  22058. "navigationBarTitleText": "走访上报",
  22059. "enablePullDownRefresh": true,
  22060. "onReachBottomDistance": 100,
  22061. "app-plus": {
  22062. "bounce": "vertical",
  22063. "titleNView": {
  22064. "buttons": [{
  22065. "text": "",
  22066. "fontSrc": "/static/uni.ttf",
  22067. "fontSize": "22px",
  22068. "color": "#FFFFFF"
  22069. }]
  22070. }
  22071. },
  22072. "component": true,
  22073. "usingComponents": {
  22074. "van-button": "/wxcomponents/weapp/dist/button/index",
  22075. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22076. "van-field": "/wxcomponents/weapp/dist/field/index",
  22077. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22078. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22079. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22080. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22081. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22082. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22083. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22084. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22085. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22086. }
  22087. }
  22088. }, {
  22089. "path": "economicDevelopmentReport/economic",
  22090. "style": {
  22091. "navigationBarTitleText": "经发填报",
  22092. "enablePullDownRefresh": true,
  22093. "onReachBottomDistance": 100,
  22094. "app-plus": {
  22095. "bounce": "vertical",
  22096. "titleNView": {
  22097. "buttons": [{
  22098. "text": "",
  22099. "fontSrc": "/static/uni.ttf",
  22100. "fontSize": "22px",
  22101. "color": "#FFFFFF"
  22102. }]
  22103. }
  22104. },
  22105. "component": true,
  22106. "usingComponents": {
  22107. "van-button": "/wxcomponents/weapp/dist/button/index",
  22108. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22109. "van-field": "/wxcomponents/weapp/dist/field/index",
  22110. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22111. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22112. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22113. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22114. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22115. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22116. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22117. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22118. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22119. }
  22120. }
  22121. }, {
  22122. "path": "enterPriseBill/index",
  22123. "style": {
  22124. "navigationBarTitleText": "企业账单",
  22125. "enablePullDownRefresh": true,
  22126. "onReachBottomDistance": 100,
  22127. "app-plus": {
  22128. "bounce": "vertical",
  22129. "titleNView": {
  22130. "buttons": [{
  22131. "text": "",
  22132. "fontSrc": "/static/uni.ttf",
  22133. "fontSize": "22px",
  22134. "color": "#FFFFFF"
  22135. }]
  22136. }
  22137. },
  22138. "component": true,
  22139. "usingComponents": {
  22140. "van-button": "/wxcomponents/weapp/dist/button/index",
  22141. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22142. "van-field": "/wxcomponents/weapp/dist/field/index",
  22143. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22144. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22145. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22146. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22147. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22148. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22149. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22150. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22151. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22152. }
  22153. }
  22154. }, {
  22155. "path": "enterPriseBill/detail",
  22156. "style": {
  22157. "navigationBarTitleText": "账单详情",
  22158. "enablePullDownRefresh": true,
  22159. "onReachBottomDistance": 100,
  22160. "app-plus": {
  22161. "bounce": "vertical",
  22162. "titleNView": {
  22163. "buttons": [{
  22164. "text": "",
  22165. "fontSrc": "/static/uni.ttf",
  22166. "fontSize": "22px",
  22167. "color": "#FFFFFF"
  22168. }]
  22169. }
  22170. },
  22171. "component": true,
  22172. "usingComponents": {
  22173. "van-button": "/wxcomponents/weapp/dist/button/index",
  22174. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22175. "van-field": "/wxcomponents/weapp/dist/field/index",
  22176. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22177. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22178. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22179. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22180. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22181. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22182. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22183. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22184. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22185. }
  22186. }
  22187. }, {
  22188. "path": "propertyNotice/index",
  22189. "style": {
  22190. "navigationBarTitleText": "物业通知",
  22191. "enablePullDownRefresh": true,
  22192. "onReachBottomDistance": 100,
  22193. "app-plus": {
  22194. "bounce": "vertical",
  22195. "titleNView": {
  22196. "buttons": [{
  22197. "text": "",
  22198. "fontSrc": "/static/uni.ttf",
  22199. "fontSize": "22px",
  22200. "color": "#FFFFFF"
  22201. }]
  22202. }
  22203. },
  22204. "component": true,
  22205. "usingComponents": {
  22206. "van-button": "/wxcomponents/weapp/dist/button/index",
  22207. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22208. "van-field": "/wxcomponents/weapp/dist/field/index",
  22209. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22210. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22211. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22212. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22213. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22214. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22215. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22216. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22217. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22218. }
  22219. }
  22220. }, {
  22221. "path": "propertyNotice/detail",
  22222. "style": {
  22223. "navigationBarTitleText": "通知详情",
  22224. "enablePullDownRefresh": true,
  22225. "onReachBottomDistance": 100,
  22226. "app-plus": {
  22227. "bounce": "vertical",
  22228. "titleNView": {
  22229. "buttons": [{
  22230. "text": "",
  22231. "fontSrc": "/static/uni.ttf",
  22232. "fontSize": "22px",
  22233. "color": "#FFFFFF"
  22234. }]
  22235. }
  22236. },
  22237. "component": true,
  22238. "usingComponents": {
  22239. "van-button": "/wxcomponents/weapp/dist/button/index",
  22240. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22241. "van-field": "/wxcomponents/weapp/dist/field/index",
  22242. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22243. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22244. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22245. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22246. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22247. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22248. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22249. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22250. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22251. }
  22252. }
  22253. }, {
  22254. "path": "propertyNotice_manage/index",
  22255. "style": {
  22256. "navigationBarTitleText": "物业通知-管理",
  22257. "enablePullDownRefresh": true,
  22258. "onReachBottomDistance": 100,
  22259. "app-plus": {
  22260. "bounce": "vertical",
  22261. "titleNView": {
  22262. "buttons": [{
  22263. "text": "",
  22264. "fontSrc": "/static/uni.ttf",
  22265. "fontSize": "22px",
  22266. "color": "#FFFFFF"
  22267. }]
  22268. }
  22269. },
  22270. "component": true,
  22271. "usingComponents": {
  22272. "van-button": "/wxcomponents/weapp/dist/button/index",
  22273. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22274. "van-field": "/wxcomponents/weapp/dist/field/index",
  22275. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22276. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22277. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22278. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22279. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22280. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22281. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22282. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22283. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22284. }
  22285. }
  22286. }, {
  22287. "path": "propertyNotice_manage/newRelease",
  22288. "style": {
  22289. "navigationBarTitleText": "新增发布",
  22290. "enablePullDownRefresh": true,
  22291. "onReachBottomDistance": 100,
  22292. "app-plus": {
  22293. "bounce": "vertical",
  22294. "titleNView": {
  22295. "buttons": [{
  22296. "text": "",
  22297. "fontSrc": "/static/uni.ttf",
  22298. "fontSize": "22px",
  22299. "color": "#FFFFFF"
  22300. }]
  22301. }
  22302. },
  22303. "component": true,
  22304. "usingComponents": {
  22305. "van-button": "/wxcomponents/weapp/dist/button/index",
  22306. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22307. "van-field": "/wxcomponents/weapp/dist/field/index",
  22308. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22309. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22310. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22311. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22312. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22313. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22314. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22315. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22316. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22317. }
  22318. }
  22319. }, {
  22320. "path": "parkActivity/index",
  22321. "style": {
  22322. "navigationBarTitleText": "园区活动",
  22323. "enablePullDownRefresh": true,
  22324. "onReachBottomDistance": 100,
  22325. "app-plus": {
  22326. "bounce": "vertical",
  22327. "titleNView": {
  22328. "buttons": [{
  22329. "text": "",
  22330. "fontSrc": "/static/uni.ttf",
  22331. "fontSize": "22px",
  22332. "color": "#FFFFFF"
  22333. }]
  22334. }
  22335. },
  22336. "component": true,
  22337. "usingComponents": {
  22338. "van-button": "/wxcomponents/weapp/dist/button/index",
  22339. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22340. "van-field": "/wxcomponents/weapp/dist/field/index",
  22341. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22342. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22343. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22344. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22345. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22346. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22347. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22348. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22349. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22350. }
  22351. }
  22352. }, {
  22353. "path": "parkActivity/activeApplication",
  22354. "style": {
  22355. "navigationBarTitleText": "活动报名",
  22356. "enablePullDownRefresh": true,
  22357. "onReachBottomDistance": 100,
  22358. "app-plus": {
  22359. "bounce": "vertical",
  22360. "titleNView": {
  22361. "buttons": [{
  22362. "text": "",
  22363. "fontSrc": "/static/uni.ttf",
  22364. "fontSize": "22px",
  22365. "color": "#FFFFFF"
  22366. }]
  22367. }
  22368. },
  22369. "component": true,
  22370. "usingComponents": {
  22371. "van-button": "/wxcomponents/weapp/dist/button/index",
  22372. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22373. "van-field": "/wxcomponents/weapp/dist/field/index",
  22374. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22375. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22376. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22377. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22378. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22379. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22380. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22381. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22382. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22383. }
  22384. }
  22385. }, {
  22386. "path": "parkActivity/applicationInfo",
  22387. "style": {
  22388. "navigationBarTitleText": "报名信息",
  22389. "enablePullDownRefresh": true,
  22390. "onReachBottomDistance": 100,
  22391. "app-plus": {
  22392. "bounce": "vertical",
  22393. "titleNView": {
  22394. "buttons": [{
  22395. "text": "",
  22396. "fontSrc": "/static/uni.ttf",
  22397. "fontSize": "22px",
  22398. "color": "#FFFFFF"
  22399. }]
  22400. }
  22401. },
  22402. "component": true,
  22403. "usingComponents": {
  22404. "van-button": "/wxcomponents/weapp/dist/button/index",
  22405. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22406. "van-field": "/wxcomponents/weapp/dist/field/index",
  22407. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22408. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22409. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22410. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22411. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22412. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22413. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22414. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22415. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22416. }
  22417. }
  22418. }, {
  22419. "path": "parkActivity/activityCheckIn",
  22420. "style": {
  22421. "navigationBarTitleText": "活动签到",
  22422. "enablePullDownRefresh": true,
  22423. "onReachBottomDistance": 100,
  22424. "app-plus": {
  22425. "bounce": "vertical",
  22426. "titleNView": {
  22427. "buttons": [{
  22428. "text": "",
  22429. "fontSrc": "/static/uni.ttf",
  22430. "fontSize": "22px",
  22431. "color": "#FFFFFF"
  22432. }]
  22433. }
  22434. },
  22435. "component": true,
  22436. "usingComponents": {
  22437. "van-button": "/wxcomponents/weapp/dist/button/index",
  22438. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22439. "van-field": "/wxcomponents/weapp/dist/field/index",
  22440. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22441. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22442. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22443. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22444. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22445. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22446. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22447. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22448. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22449. }
  22450. }
  22451. }, {
  22452. "path": "minePages/mineMessage",
  22453. "style": {
  22454. "navigationBarTitleText": "我的消息",
  22455. "enablePullDownRefresh": true,
  22456. "onReachBottomDistance": 100,
  22457. "app-plus": {
  22458. "bounce": "vertical",
  22459. "titleNView": {
  22460. "buttons": [{
  22461. "text": "",
  22462. "fontSrc": "/static/uni.ttf",
  22463. "fontSize": "22px",
  22464. "color": "#FFFFFF"
  22465. }]
  22466. }
  22467. },
  22468. "component": true,
  22469. "usingComponents": {
  22470. "van-button": "/wxcomponents/weapp/dist/button/index",
  22471. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22472. "van-field": "/wxcomponents/weapp/dist/field/index",
  22473. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22474. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22475. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22476. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22477. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22478. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22479. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22480. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22481. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22482. }
  22483. }
  22484. }, {
  22485. "path": "minePages/mineInfo",
  22486. "style": {
  22487. "navigationBarTitleText": "企业信息",
  22488. "enablePullDownRefresh": true,
  22489. "onReachBottomDistance": 100,
  22490. "app-plus": {
  22491. "bounce": "vertical",
  22492. "titleNView": {
  22493. "buttons": [{
  22494. "text": "",
  22495. "fontSrc": "/static/uni.ttf",
  22496. "fontSize": "22px",
  22497. "color": "#FFFFFF"
  22498. }]
  22499. }
  22500. },
  22501. "component": true,
  22502. "usingComponents": {
  22503. "van-button": "/wxcomponents/weapp/dist/button/index",
  22504. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22505. "van-field": "/wxcomponents/weapp/dist/field/index",
  22506. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22507. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22508. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22509. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22510. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22511. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22512. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22513. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22514. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22515. }
  22516. }
  22517. }, {
  22518. "path": "minePages/feedback",
  22519. "style": {
  22520. "navigationBarTitleText": "我的反馈",
  22521. "enablePullDownRefresh": true,
  22522. "onReachBottomDistance": 100,
  22523. "app-plus": {
  22524. "bounce": "vertical",
  22525. "titleNView": {
  22526. "buttons": [{
  22527. "text": "",
  22528. "fontSrc": "/static/uni.ttf",
  22529. "fontSize": "22px",
  22530. "color": "#FFFFFF"
  22531. }]
  22532. }
  22533. },
  22534. "component": true,
  22535. "usingComponents": {
  22536. "van-button": "/wxcomponents/weapp/dist/button/index",
  22537. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22538. "van-field": "/wxcomponents/weapp/dist/field/index",
  22539. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22540. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22541. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22542. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22543. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22544. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22545. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22546. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22547. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22548. }
  22549. }
  22550. }, {
  22551. "path": "minePages/feedback_record",
  22552. "style": {
  22553. "navigationBarTitleText": "反馈记录",
  22554. "enablePullDownRefresh": true,
  22555. "onReachBottomDistance": 100,
  22556. "app-plus": {
  22557. "bounce": "vertical",
  22558. "titleNView": {
  22559. "buttons": [{
  22560. "text": "",
  22561. "fontSrc": "/static/uni.ttf",
  22562. "fontSize": "22px",
  22563. "color": "#FFFFFF"
  22564. }]
  22565. }
  22566. },
  22567. "component": true,
  22568. "usingComponents": {
  22569. "van-button": "/wxcomponents/weapp/dist/button/index",
  22570. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22571. "van-field": "/wxcomponents/weapp/dist/field/index",
  22572. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22573. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22574. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22575. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22576. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22577. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22578. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22579. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22580. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22581. }
  22582. }
  22583. }, {
  22584. "path": "minePages/feedback_detail",
  22585. "style": {
  22586. "navigationBarTitleText": "反馈详情",
  22587. "enablePullDownRefresh": true,
  22588. "onReachBottomDistance": 100,
  22589. "app-plus": {
  22590. "bounce": "vertical",
  22591. "titleNView": {
  22592. "buttons": [{
  22593. "text": "",
  22594. "fontSrc": "/static/uni.ttf",
  22595. "fontSize": "22px",
  22596. "color": "#FFFFFF"
  22597. }]
  22598. }
  22599. },
  22600. "component": true,
  22601. "usingComponents": {
  22602. "van-button": "/wxcomponents/weapp/dist/button/index",
  22603. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22604. "van-field": "/wxcomponents/weapp/dist/field/index",
  22605. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22606. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22607. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22608. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22609. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22610. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22611. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22612. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22613. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22614. }
  22615. }
  22616. }, {
  22617. "path": "minePages/myActivities",
  22618. "style": {
  22619. "navigationBarTitleText": "我的活动",
  22620. "enablePullDownRefresh": true,
  22621. "onReachBottomDistance": 100,
  22622. "app-plus": {
  22623. "bounce": "vertical",
  22624. "titleNView": {
  22625. "buttons": [{
  22626. "text": "",
  22627. "fontSrc": "/static/uni.ttf",
  22628. "fontSize": "22px",
  22629. "color": "#FFFFFF"
  22630. }]
  22631. }
  22632. },
  22633. "component": true,
  22634. "usingComponents": {
  22635. "van-button": "/wxcomponents/weapp/dist/button/index",
  22636. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22637. "van-field": "/wxcomponents/weapp/dist/field/index",
  22638. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22639. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22640. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22641. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22642. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22643. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22644. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22645. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22646. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22647. }
  22648. }
  22649. }, {
  22650. "path": "minePages/myCollection",
  22651. "style": {
  22652. "navigationBarTitleText": "我的收藏",
  22653. "enablePullDownRefresh": true,
  22654. "onReachBottomDistance": 100,
  22655. "app-plus": {
  22656. "bounce": "vertical",
  22657. "titleNView": {
  22658. "buttons": [{
  22659. "text": "",
  22660. "fontSrc": "/static/uni.ttf",
  22661. "fontSize": "22px",
  22662. "color": "#FFFFFF"
  22663. }]
  22664. }
  22665. },
  22666. "component": true,
  22667. "usingComponents": {
  22668. "van-button": "/wxcomponents/weapp/dist/button/index",
  22669. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22670. "van-field": "/wxcomponents/weapp/dist/field/index",
  22671. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22672. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22673. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22674. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22675. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22676. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22677. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22678. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22679. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22680. }
  22681. }
  22682. }, {
  22683. "path": "minePages/myOrder",
  22684. "style": {
  22685. "navigationBarTitleText": "我的订单",
  22686. "enablePullDownRefresh": true,
  22687. "onReachBottomDistance": 100,
  22688. "app-plus": {
  22689. "bounce": "vertical",
  22690. "titleNView": {
  22691. "buttons": [{
  22692. "text": "",
  22693. "fontSrc": "/static/uni.ttf",
  22694. "fontSize": "22px",
  22695. "color": "#FFFFFF"
  22696. }]
  22697. }
  22698. },
  22699. "component": true,
  22700. "usingComponents": {
  22701. "van-button": "/wxcomponents/weapp/dist/button/index",
  22702. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22703. "van-field": "/wxcomponents/weapp/dist/field/index",
  22704. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22705. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22706. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22707. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22708. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22709. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22710. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22711. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22712. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22713. }
  22714. }
  22715. }, {
  22716. "path": "peripheralService/index",
  22717. "style": {
  22718. "navigationBarTitleText": "周边服务",
  22719. "enablePullDownRefresh": true,
  22720. "onReachBottomDistance": 100,
  22721. "app-plus": {
  22722. "bounce": "vertical",
  22723. "titleNView": {
  22724. "buttons": [{
  22725. "text": "",
  22726. "fontSrc": "/static/uni.ttf",
  22727. "fontSize": "22px",
  22728. "color": "#FFFFFF"
  22729. }]
  22730. }
  22731. },
  22732. "component": true,
  22733. "usingComponents": {
  22734. "van-button": "/wxcomponents/weapp/dist/button/index",
  22735. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22736. "van-field": "/wxcomponents/weapp/dist/field/index",
  22737. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22738. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22739. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22740. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22741. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22742. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22743. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22744. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22745. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22746. }
  22747. }
  22748. }, {
  22749. "path": "peripheralService/detail",
  22750. "style": {
  22751. "navigationBarTitleText": "周边服务详情",
  22752. "enablePullDownRefresh": true,
  22753. "onReachBottomDistance": 100,
  22754. "app-plus": {
  22755. "bounce": "vertical",
  22756. "titleNView": {
  22757. "buttons": [{
  22758. "text": "",
  22759. "fontSrc": "/static/uni.ttf",
  22760. "fontSize": "22px",
  22761. "color": "#FFFFFF"
  22762. }]
  22763. }
  22764. },
  22765. "component": true,
  22766. "usingComponents": {
  22767. "van-button": "/wxcomponents/weapp/dist/button/index",
  22768. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22769. "van-field": "/wxcomponents/weapp/dist/field/index",
  22770. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22771. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22772. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22773. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22774. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22775. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22776. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22777. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22778. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22779. }
  22780. }
  22781. }, {
  22782. "path": "industrialPolicy/index",
  22783. "style": {
  22784. "navigationBarTitleText": "产业政策",
  22785. "enablePullDownRefresh": true,
  22786. "onReachBottomDistance": 100,
  22787. "app-plus": {
  22788. "bounce": "vertical",
  22789. "titleNView": {
  22790. "buttons": [{
  22791. "text": "",
  22792. "fontSrc": "/static/uni.ttf",
  22793. "fontSize": "22px",
  22794. "color": "#FFFFFF"
  22795. }]
  22796. }
  22797. },
  22798. "component": true,
  22799. "usingComponents": {
  22800. "van-button": "/wxcomponents/weapp/dist/button/index",
  22801. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22802. "van-field": "/wxcomponents/weapp/dist/field/index",
  22803. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22804. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22805. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22806. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22807. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22808. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22809. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22810. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22811. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22812. }
  22813. }
  22814. }, {
  22815. "path": "industrialPolicy/detail",
  22816. "style": {
  22817. "navigationBarTitleText": "产业政策详情",
  22818. "enablePullDownRefresh": true,
  22819. "onReachBottomDistance": 100,
  22820. "app-plus": {
  22821. "bounce": "vertical",
  22822. "titleNView": {
  22823. "buttons": [{
  22824. "text": "",
  22825. "fontSrc": "/static/uni.ttf",
  22826. "fontSize": "22px",
  22827. "color": "#FFFFFF"
  22828. }]
  22829. }
  22830. },
  22831. "component": true,
  22832. "usingComponents": {
  22833. "van-button": "/wxcomponents/weapp/dist/button/index",
  22834. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22835. "van-field": "/wxcomponents/weapp/dist/field/index",
  22836. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22837. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22838. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22839. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22840. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22841. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22842. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22843. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22844. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22845. }
  22846. }
  22847. }, {
  22848. "path": "surroundingReleases/index",
  22849. "style": {
  22850. "navigationBarTitleText": "周边发布",
  22851. "enablePullDownRefresh": true,
  22852. "onReachBottomDistance": 100,
  22853. "app-plus": {
  22854. "bounce": "vertical",
  22855. "titleNView": {
  22856. "buttons": [{
  22857. "text": "",
  22858. "fontSrc": "/static/uni.ttf",
  22859. "fontSize": "22px",
  22860. "color": "#FFFFFF"
  22861. }]
  22862. }
  22863. },
  22864. "component": true,
  22865. "usingComponents": {
  22866. "van-button": "/wxcomponents/weapp/dist/button/index",
  22867. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22868. "van-field": "/wxcomponents/weapp/dist/field/index",
  22869. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22870. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22871. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22872. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22873. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22874. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22875. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22876. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22877. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22878. }
  22879. }
  22880. }, {
  22881. "path": "resourceReservation_manage/index",
  22882. "style": {
  22883. "navigationBarTitleText": "资源预约",
  22884. "enablePullDownRefresh": true,
  22885. "onReachBottomDistance": 100,
  22886. "app-plus": {
  22887. "bounce": "vertical",
  22888. "titleNView": {
  22889. "buttons": [{
  22890. "text": "",
  22891. "fontSrc": "/static/uni.ttf",
  22892. "fontSize": "22px",
  22893. "color": "#FFFFFF"
  22894. }]
  22895. }
  22896. },
  22897. "component": true,
  22898. "usingComponents": {
  22899. "van-button": "/wxcomponents/weapp/dist/button/index",
  22900. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22901. "van-field": "/wxcomponents/weapp/dist/field/index",
  22902. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22903. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22904. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22905. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22906. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22907. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22908. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22909. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22910. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22911. }
  22912. }
  22913. }, {
  22914. "path": "resourceReservation_manage/detail",
  22915. "style": {
  22916. "navigationBarTitleText": "会议室详情",
  22917. "enablePullDownRefresh": true,
  22918. "onReachBottomDistance": 100,
  22919. "app-plus": {
  22920. "bounce": "vertical",
  22921. "titleNView": {
  22922. "buttons": [{
  22923. "text": "",
  22924. "fontSrc": "/static/uni.ttf",
  22925. "fontSize": "22px",
  22926. "color": "#FFFFFF"
  22927. }]
  22928. }
  22929. },
  22930. "component": true,
  22931. "usingComponents": {
  22932. "van-button": "/wxcomponents/weapp/dist/button/index",
  22933. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22934. "van-field": "/wxcomponents/weapp/dist/field/index",
  22935. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22936. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22937. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22938. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22939. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22940. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22941. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22942. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22943. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22944. }
  22945. }
  22946. }, {
  22947. "path": "resourceReservation_manage/add",
  22948. "style": {
  22949. "navigationBarTitleText": "新增预约",
  22950. "enablePullDownRefresh": true,
  22951. "onReachBottomDistance": 100,
  22952. "app-plus": {
  22953. "bounce": "vertical",
  22954. "titleNView": {
  22955. "buttons": [{
  22956. "text": "",
  22957. "fontSrc": "/static/uni.ttf",
  22958. "fontSize": "22px",
  22959. "color": "#FFFFFF"
  22960. }]
  22961. }
  22962. },
  22963. "component": true,
  22964. "usingComponents": {
  22965. "van-button": "/wxcomponents/weapp/dist/button/index",
  22966. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  22967. "van-field": "/wxcomponents/weapp/dist/field/index",
  22968. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  22969. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  22970. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  22971. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  22972. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  22973. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  22974. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  22975. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  22976. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  22977. }
  22978. }
  22979. }, {
  22980. "path": "propertyManagement/maintenance",
  22981. "style": {
  22982. "navigationBarTitleText": "房源维护",
  22983. "enablePullDownRefresh": true,
  22984. "onReachBottomDistance": 100,
  22985. "app-plus": {
  22986. "bounce": "vertical",
  22987. "titleNView": {
  22988. "buttons": [{
  22989. "text": "",
  22990. "fontSrc": "/static/uni.ttf",
  22991. "fontSize": "22px",
  22992. "color": "#FFFFFF"
  22993. }]
  22994. }
  22995. },
  22996. "component": true,
  22997. "usingComponents": {
  22998. "van-button": "/wxcomponents/weapp/dist/button/index",
  22999. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23000. "van-field": "/wxcomponents/weapp/dist/field/index",
  23001. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23002. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23003. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23004. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23005. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23006. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23007. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23008. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23009. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23010. }
  23011. }
  23012. }, {
  23013. "path": "propertyManagement/propertyEditor",
  23014. "style": {
  23015. "navigationBarTitleText": "房源编辑",
  23016. "enablePullDownRefresh": true,
  23017. "onReachBottomDistance": 100,
  23018. "app-plus": {
  23019. "bounce": "vertical",
  23020. "titleNView": {
  23021. "buttons": [{
  23022. "text": "",
  23023. "fontSrc": "/static/uni.ttf",
  23024. "fontSize": "22px",
  23025. "color": "#FFFFFF"
  23026. }]
  23027. }
  23028. },
  23029. "component": true,
  23030. "usingComponents": {
  23031. "van-button": "/wxcomponents/weapp/dist/button/index",
  23032. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23033. "van-field": "/wxcomponents/weapp/dist/field/index",
  23034. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23035. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23036. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23037. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23038. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23039. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23040. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23041. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23042. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23043. }
  23044. }
  23045. }, {
  23046. "path": "serviceEvaluation/index",
  23047. "style": {
  23048. "navigationBarTitleText": "服务评价",
  23049. "enablePullDownRefresh": true,
  23050. "onReachBottomDistance": 100,
  23051. "app-plus": {
  23052. "bounce": "vertical",
  23053. "titleNView": {
  23054. "buttons": [{
  23055. "text": "",
  23056. "fontSrc": "/static/uni.ttf",
  23057. "fontSize": "22px",
  23058. "color": "#FFFFFF"
  23059. }]
  23060. }
  23061. },
  23062. "component": true,
  23063. "usingComponents": {
  23064. "van-button": "/wxcomponents/weapp/dist/button/index",
  23065. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23066. "van-field": "/wxcomponents/weapp/dist/field/index",
  23067. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23068. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23069. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23070. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23071. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23072. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23073. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23074. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23075. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23076. }
  23077. }
  23078. }, {
  23079. "path": "housingResources/index",
  23080. "style": {
  23081. "navigationBarTitleText": "园区房源",
  23082. "enablePullDownRefresh": true,
  23083. "onReachBottomDistance": 100,
  23084. "app-plus": {
  23085. "bounce": "vertical",
  23086. "titleNView": {
  23087. "buttons": [{
  23088. "text": "",
  23089. "fontSrc": "/static/uni.ttf",
  23090. "fontSize": "22px",
  23091. "color": "#FFFFFF"
  23092. }]
  23093. }
  23094. },
  23095. "component": true,
  23096. "usingComponents": {
  23097. "van-button": "/wxcomponents/weapp/dist/button/index",
  23098. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23099. "van-field": "/wxcomponents/weapp/dist/field/index",
  23100. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23101. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23102. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23103. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23104. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23105. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23106. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23107. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23108. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  23109. }
  23110. }
  23111. }, {
  23112. "path": "housingResources/detail",
  23113. "style": {
  23114. "navigationBarTitleText": "房源详情",
  23115. "enablePullDownRefresh": true,
  23116. "onReachBottomDistance": 100,
  23117. "app-plus": {
  23118. "bounce": "vertical",
  23119. "titleNView": {
  23120. "buttons": [{
  23121. "text": "",
  23122. "fontSrc": "/static/uni.ttf",
  23123. "fontSize": "22px",
  23124. "color": "#FFFFFF"
  23125. }]
  23126. }
  23127. },
  23128. "component": true,
  23129. "usingComponents": {
  23130. "van-button": "/wxcomponents/weapp/dist/button/index",
  23131. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23132. "van-field": "/wxcomponents/weapp/dist/field/index",
  23133. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23134. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23135. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23136. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23137. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23138. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23139. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23140. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23141. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23142. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23143. }
  23144. }
  23145. }, {
  23146. "path": "housingResources/addPredetermine",
  23147. "style": {
  23148. "navigationBarTitleText": "新增预定",
  23149. "enablePullDownRefresh": true,
  23150. "onReachBottomDistance": 100,
  23151. "app-plus": {
  23152. "bounce": "vertical",
  23153. "titleNView": {
  23154. "buttons": [{
  23155. "text": "",
  23156. "fontSrc": "/static/uni.ttf",
  23157. "fontSize": "22px",
  23158. "color": "#FFFFFF"
  23159. }]
  23160. }
  23161. },
  23162. "component": true,
  23163. "usingComponents": {
  23164. "van-button": "/wxcomponents/weapp/dist/button/index",
  23165. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23166. "van-field": "/wxcomponents/weapp/dist/field/index",
  23167. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23168. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23169. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23170. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23171. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23172. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23173. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23174. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23175. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23176. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23177. }
  23178. }
  23179. }, {
  23180. "path": "aboutThePark/index",
  23181. "style": {
  23182. "navigationBarTitleText": "关于园区",
  23183. "enablePullDownRefresh": true,
  23184. "onReachBottomDistance": 100,
  23185. "app-plus": {
  23186. "bounce": "vertical",
  23187. "titleNView": {
  23188. "buttons": [{
  23189. "text": "",
  23190. "fontSrc": "/static/uni.ttf",
  23191. "fontSize": "22px",
  23192. "color": "#FFFFFF"
  23193. }]
  23194. }
  23195. },
  23196. "component": true,
  23197. "usingComponents": {
  23198. "van-button": "/wxcomponents/weapp/dist/button/index",
  23199. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23200. "van-field": "/wxcomponents/weapp/dist/field/index",
  23201. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23202. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23203. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23204. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23205. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23206. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23207. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23208. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23209. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23210. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23211. }
  23212. }
  23213. }, {
  23214. "path": "todo/resourceReview",
  23215. "style": {
  23216. "navigationBarTitleText": "资源预约审核",
  23217. "enablePullDownRefresh": true,
  23218. "onReachBottomDistance": 100,
  23219. "app-plus": {
  23220. "bounce": "vertical",
  23221. "titleNView": {
  23222. "buttons": [{
  23223. "text": "",
  23224. "fontSrc": "/static/uni.ttf",
  23225. "fontSize": "22px",
  23226. "color": "#FFFFFF"
  23227. }]
  23228. }
  23229. },
  23230. "component": true,
  23231. "usingComponents": {
  23232. "van-button": "/wxcomponents/weapp/dist/button/index",
  23233. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23234. "van-field": "/wxcomponents/weapp/dist/field/index",
  23235. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23236. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23237. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23238. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23239. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23240. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23241. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23242. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23243. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23244. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23245. }
  23246. }
  23247. }, {
  23248. "path": "minePages/registrationDetails",
  23249. "style": {
  23250. "navigationBarTitleText": "报名详情",
  23251. "enablePullDownRefresh": true,
  23252. "onReachBottomDistance": 100,
  23253. "app-plus": {
  23254. "bounce": "vertical",
  23255. "titleNView": {
  23256. "buttons": [{
  23257. "text": "",
  23258. "fontSrc": "/static/uni.ttf",
  23259. "fontSize": "22px",
  23260. "color": "#FFFFFF"
  23261. }]
  23262. }
  23263. },
  23264. "component": true,
  23265. "usingComponents": {
  23266. "van-button": "/wxcomponents/weapp/dist/button/index",
  23267. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23268. "van-field": "/wxcomponents/weapp/dist/field/index",
  23269. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23270. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23271. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23272. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23273. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23274. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23275. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23276. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23277. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23278. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23279. }
  23280. }
  23281. }, {
  23282. "path": "economicDevelopmentReport/detail",
  23283. "style": {
  23284. "navigationBarTitleText": "填报详情",
  23285. "enablePullDownRefresh": true,
  23286. "onReachBottomDistance": 100,
  23287. "app-plus": {
  23288. "bounce": "vertical",
  23289. "titleNView": {
  23290. "buttons": [{
  23291. "text": "",
  23292. "fontSrc": "/static/uni.ttf",
  23293. "fontSize": "22px",
  23294. "color": "#FFFFFF"
  23295. }]
  23296. }
  23297. },
  23298. "component": true,
  23299. "usingComponents": {
  23300. "van-button": "/wxcomponents/weapp/dist/button/index",
  23301. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23302. "van-field": "/wxcomponents/weapp/dist/field/index",
  23303. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23304. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23305. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23306. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23307. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23308. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23309. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  23310. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23311. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23312. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index"
  23313. }
  23314. }
  23315. }],
  23316. "network": "all"
  23317. }],
  23318. "globalStyle": {
  23319. "pageOrientation": "portrait",
  23320. "navigationBarTitleText": "Hello uniapp",
  23321. "navigationBarTextStyle": "black",
  23322. "navigationBarBackgroundColor": "#FFFFFF",
  23323. "backgroundColor": "#FFFFFF",
  23324. "backgroundColorTop": "#FFFFFF",
  23325. "backgroundColorBottom": "#F4F5F6",
  23326. "usingComponents": {
  23327. "van-dropdown-menu": "/wxcomponents/weapp/dist/dropdown-menu/index",
  23328. "van-dropdown-item": "/wxcomponents/weapp/dist/dropdown-item/index",
  23329. "van-action-sheet": "/wxcomponents/weapp/dist/action-sheet/index",
  23330. "van-area": "/wxcomponents/weapp/dist/area/index",
  23331. "van-button": "/wxcomponents/weapp/dist/button/index",
  23332. "van-card": "/wxcomponents/weapp/dist/card/index",
  23333. "van-cell": "/wxcomponents/weapp/dist/cell/index",
  23334. "van-cell-group": "/wxcomponents/weapp/dist/cell-group/index",
  23335. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  23336. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index",
  23337. "van-col": "/wxcomponents/weapp/dist/col/index",
  23338. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  23339. "van-field": "/wxcomponents/weapp/dist/field/index",
  23340. "van-goods-action": "/wxcomponents/weapp/dist/goods-action/index",
  23341. "van-goods-action-icon": "/wxcomponents/weapp/dist/goods-action-icon/index",
  23342. "van-goods-action-button": "/wxcomponents/weapp/dist/goods-action-button/index",
  23343. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  23344. "van-loading": "/wxcomponents/weapp/dist/loading/index",
  23345. "van-nav-bar": "/wxcomponents/weapp/dist/nav-bar/index",
  23346. "van-notice-bar": "/wxcomponents/weapp/dist/notice-bar/index",
  23347. "van-notify": "/wxcomponents/weapp/dist/notify/index",
  23348. "van-panel": "/wxcomponents/weapp/dist/panel/index",
  23349. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  23350. "van-progress": "/wxcomponents/weapp/dist/progress/index",
  23351. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  23352. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  23353. "van-row": "/wxcomponents/weapp/dist/row/index",
  23354. "van-search": "/wxcomponents/weapp/dist/search/index",
  23355. "van-slider": "/wxcomponents/weapp/dist/slider/index",
  23356. "van-stepper": "/wxcomponents/weapp/dist/stepper/index",
  23357. "van-sticky": "/wxcomponents/weapp/dist/sticky/index",
  23358. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  23359. "van-submit-bar": "/wxcomponents/weapp/dist/submit-bar/index",
  23360. "van-swipe-cell": "/wxcomponents/weapp/dist/swipe-cell/index",
  23361. "van-switch": "/wxcomponents/weapp/dist/switch/index",
  23362. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  23363. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  23364. "van-tabbar": "/wxcomponents/weapp/dist/tabbar/index",
  23365. "van-tabbar-item": "/wxcomponents/weapp/dist/tabbar-item/index",
  23366. "van-tag": "/wxcomponents/weapp/dist/tag/index",
  23367. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  23368. "van-transition": "/wxcomponents/weapp/dist/transition/index",
  23369. "van-tree-select": "/wxcomponents/weapp/dist/tree-select/index",
  23370. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  23371. "van-rate": "/wxcomponents/weapp/dist/rate/index",
  23372. "van-collapse": "/wxcomponents/weapp/dist/collapse/index",
  23373. "van-collapse-item": "/wxcomponents/weapp/dist/collapse-item/index",
  23374. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  23375. "van-share-sheet": "/wxcomponents/weapp/dist/share-sheet/index",
  23376. "van-circle": "/wxcomponents/weapp/dist/circle/index",
  23377. "van-grid": "/wxcomponents/weapp/dist/grid/index",
  23378. "van-calendar": "/wxcomponents/weapp/dist/calendar/index"
  23379. }
  23380. },
  23381. "tabBar": {
  23382. "color": "#7A7E83",
  23383. "selectedColor": "#2527AA",
  23384. "borderStyle": "black",
  23385. "backgroundColor": "#F8F8F8",
  23386. "list": [{
  23387. "pagePath": "pages/index/index",
  23388. "iconPath": "static/home.png",
  23389. "selectedIconPath": "static/homeselect.png",
  23390. "text": "首页"
  23391. }, {
  23392. "pagePath": "pages/mine/mine",
  23393. "iconPath": "static/mine.png",
  23394. "selectedIconPath": "static/mineselect.png",
  23395. "text": "我的"
  23396. }]
  23397. },
  23398. "window": {
  23399. "backgroundTextStyle": "dark",
  23400. "navigationBarBackgroundColor": "#ffffff",
  23401. "navigationBarTitleText": "Demo",
  23402. "navigationBarTextStyle": "black",
  23403. "enablePullDownRefresh": true
  23404. },
  23405. "lazyCodeLoading": "requiredComponents"
  23406. };
  23407. exports.default = _default;
  23408. /***/ }),
  23409. /***/ 39:
  23410. /*!****************************************************************!*\
  23411. !*** D:/work/gitlabcode/product_wx/pages.json?{"type":"stat"} ***!
  23412. \****************************************************************/
  23413. /*! no static exports found */
  23414. /***/ (function(module, exports, __webpack_require__) {
  23415. "use strict";
  23416. Object.defineProperty(exports, "__esModule", {
  23417. value: true
  23418. });
  23419. exports.default = void 0;
  23420. var _default = {
  23421. "appid": "__UNI__E97C301"
  23422. };
  23423. exports.default = _default;
  23424. /***/ }),
  23425. /***/ 4:
  23426. /*!**********************************************************************!*\
  23427. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  23428. \**********************************************************************/
  23429. /*! no static exports found */
  23430. /***/ (function(module, exports) {
  23431. function _interopRequireDefault(obj) {
  23432. return obj && obj.__esModule ? obj : {
  23433. "default": obj
  23434. };
  23435. }
  23436. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  23437. /***/ }),
  23438. /***/ 40:
  23439. /*!*****************************************************************!*\
  23440. !*** D:/work/gitlabcode/product_wx/pages.json?{"type":"style"} ***!
  23441. \*****************************************************************/
  23442. /*! no static exports found */
  23443. /***/ (function(module, exports, __webpack_require__) {
  23444. "use strict";
  23445. Object.defineProperty(exports, "__esModule", {
  23446. value: true
  23447. });
  23448. exports.default = void 0;
  23449. var _default = {
  23450. "pages": {
  23451. "pages/index/index": {
  23452. "navigationBarTitleText": "首页"
  23453. },
  23454. "pages/login/login": {
  23455. "navigationBarTitleText": "登录"
  23456. },
  23457. "pages/index/mapLocation": {
  23458. "navigationBarTitleText": "地址选择"
  23459. },
  23460. "pages/login2/login": {
  23461. "navigationBarTitleText": "登录"
  23462. },
  23463. "pages/mine/mine": {
  23464. "navigationBarTitleText": "我的"
  23465. },
  23466. "pages/subPackages/gocompnay/index": {
  23467. "navigationBarTitleText": "企业端",
  23468. "enablePullDownRefresh": true,
  23469. "onReachBottomDistance": 100,
  23470. "component": true
  23471. },
  23472. "pages/subPackages/eventRelease/index": {
  23473. "navigationBarTitleText": "活动发布",
  23474. "enablePullDownRefresh": true,
  23475. "onReachBottomDistance": 100,
  23476. "component": true
  23477. },
  23478. "pages/subPackages/eventRelease/add": {
  23479. "navigationBarTitleText": "活动发布",
  23480. "enablePullDownRefresh": true,
  23481. "onReachBottomDistance": 100,
  23482. "component": true
  23483. },
  23484. "pages/subPackages/venueRoom/meetingroom": {
  23485. "navigationBarTitleText": "场馆审核",
  23486. "enablePullDownRefresh": true,
  23487. "onReachBottomDistance": 100,
  23488. "component": true
  23489. },
  23490. "pages/subPackages/activity/index": {
  23491. "navigationBarTitleText": "活动核销签到",
  23492. "enablePullDownRefresh": true,
  23493. "onReachBottomDistance": 100,
  23494. "component": true
  23495. },
  23496. "pages/subPackages/activity/code": {
  23497. "navigationBarTitleText": "活动核销扫码确认签到",
  23498. "enablePullDownRefresh": true,
  23499. "onReachBottomDistance": 100,
  23500. "component": true
  23501. },
  23502. "pages/subPackages/activityPromulgate/list": {
  23503. "navigationBarTitleText": "活动发布",
  23504. "enablePullDownRefresh": true,
  23505. "onReachBottomDistance": 100,
  23506. "component": true
  23507. },
  23508. "pages/subPackages/activityPromulgate/qrCode": {
  23509. "navigationBarTitleText": "活动签到码",
  23510. "enablePullDownRefresh": true,
  23511. "onReachBottomDistance": 100,
  23512. "component": true
  23513. },
  23514. "pages/subPackages/activityPromulgate/add": {
  23515. "navigationBarTitleText": "新增活动",
  23516. "enablePullDownRefresh": true,
  23517. "onReachBottomDistance": 100,
  23518. "component": true
  23519. },
  23520. "pages/subPackages/password/index": {
  23521. "navigationBarTitleText": "修改密码",
  23522. "enablePullDownRefresh": true,
  23523. "onReachBottomDistance": 100,
  23524. "component": true
  23525. },
  23526. "pages/subPackages/repairDispatch-app/index": {
  23527. "navigationBarTitleText": "报修派单",
  23528. "enablePullDownRefresh": true,
  23529. "onReachBottomDistance": 100,
  23530. "component": true
  23531. },
  23532. "pages/subPackages/repairDispatch-app/add": {
  23533. "navigationBarTitleText": "新增报修派单",
  23534. "enablePullDownRefresh": true,
  23535. "onReachBottomDistance": 100,
  23536. "component": true
  23537. },
  23538. "pages/subPackages/repairprocessing-app/detail": {
  23539. "navigationBarTitleText": "报修处理-详情",
  23540. "enablePullDownRefresh": true,
  23541. "onReachBottomDistance": 100,
  23542. "component": true
  23543. },
  23544. "pages/subPackages/repairprocessing-app/index": {
  23545. "navigationBarTitleText": "报修处理",
  23546. "enablePullDownRefresh": true,
  23547. "onReachBottomDistance": 100,
  23548. "component": true
  23549. },
  23550. "pages/subPackages/modifySend/index": {
  23551. "navigationBarTitleText": "整改派单",
  23552. "enablePullDownRefresh": true,
  23553. "onReachBottomDistance": 100,
  23554. "component": true
  23555. },
  23556. "pages/subPackages/modifyReport/index": {
  23557. "navigationBarTitleText": "整改填报",
  23558. "enablePullDownRefresh": true,
  23559. "onReachBottomDistance": 100,
  23560. "component": true
  23561. },
  23562. "pages/subPackages/modifyReport/detail": {
  23563. "navigationBarTitleText": "整改详情",
  23564. "enablePullDownRefresh": true,
  23565. "onReachBottomDistance": 100,
  23566. "component": true
  23567. },
  23568. "pages/subPackages/modifyHandle/handle": {
  23569. "navigationBarTitleText": "整改处理 ",
  23570. "enablePullDownRefresh": true,
  23571. "onReachBottomDistance": 100,
  23572. "component": true
  23573. },
  23574. "pages/subPackages/modifyHandle/index": {
  23575. "navigationBarTitleText": "整改处理",
  23576. "enablePullDownRefresh": true,
  23577. "onReachBottomDistance": 100,
  23578. "component": true
  23579. },
  23580. "pages/subPackages/modifyReport/add": {
  23581. "navigationBarTitleText": "整改新增",
  23582. "enablePullDownRefresh": true,
  23583. "onReachBottomDistance": 100,
  23584. "component": true
  23585. },
  23586. "pages/subPackages/toread/index": {
  23587. "navigationBarTitleText": "我的待阅",
  23588. "enablePullDownRefresh": true,
  23589. "onReachBottomDistance": 100,
  23590. "component": true
  23591. },
  23592. "pages/subPackages/todo/index": {
  23593. "navigationBarTitleText": "我的待办",
  23594. "enablePullDownRefresh": true,
  23595. "onReachBottomDistance": 100,
  23596. "component": true
  23597. },
  23598. "pages/subPackages/todo/predetermineDetail": {
  23599. "navigationBarTitleText": "企业预定详情",
  23600. "enablePullDownRefresh": true,
  23601. "onReachBottomDistance": 100,
  23602. "component": true
  23603. },
  23604. "pages/subPackages/todo/inventoryReview": {
  23605. "navigationBarTitleText": "企业入库审核",
  23606. "enablePullDownRefresh": true,
  23607. "onReachBottomDistance": 100,
  23608. "component": true
  23609. },
  23610. "pages/subPackages/todo/repairAcceptance": {
  23611. "navigationBarTitleText": "报修受理",
  23612. "enablePullDownRefresh": true,
  23613. "onReachBottomDistance": 100,
  23614. "component": true
  23615. },
  23616. "pages/subPackages/todo/addRepair": {
  23617. "navigationBarTitleText": "新增报修",
  23618. "enablePullDownRefresh": true,
  23619. "onReachBottomDistance": 100,
  23620. "component": true
  23621. },
  23622. "pages/subPackages/todo/dispatch": {
  23623. "navigationBarTitleText": "报修派单",
  23624. "enablePullDownRefresh": true,
  23625. "onReachBottomDistance": 100,
  23626. "component": true
  23627. },
  23628. "pages/subPackages/venueRoom/confirm": {
  23629. "navigationBarTitleText": "场馆-审核",
  23630. "enablePullDownRefresh": true,
  23631. "onReachBottomDistance": 100,
  23632. "component": true
  23633. },
  23634. "pages/subPackages/housedetails/housedetails": {
  23635. "navigationBarTitleText": "房源详情",
  23636. "enablePullDownRefresh": true,
  23637. "onReachBottomDistance": 100,
  23638. "component": true
  23639. },
  23640. "pages/subPackages/addintention/addintention": {
  23641. "navigationBarTitleText": "新增意向",
  23642. "enablePullDownRefresh": true,
  23643. "onReachBottomDistance": 100,
  23644. "component": true
  23645. },
  23646. "pages/subPackages/chosseHouse/chosseHouse": {
  23647. "navigationBarTitleText": "选择房源",
  23648. "enablePullDownRefresh": true,
  23649. "onReachBottomDistance": 100,
  23650. "component": true
  23651. },
  23652. "pages/subPackages/companyHouse/companyHouse": {
  23653. "navigationBarTitleText": "企业库",
  23654. "enablePullDownRefresh": true,
  23655. "onReachBottomDistance": 100,
  23656. "component": true
  23657. },
  23658. "pages/subPackages/companyreport/components/reportDetails": {
  23659. "navigationBarTitleText": "走访上报-详情",
  23660. "enablePullDownRefresh": true,
  23661. "onReachBottomDistance": 100,
  23662. "component": true
  23663. },
  23664. "pages/subPackages/merchants/merchants": {
  23665. "navigationBarTitleText": "我的招商",
  23666. "enablePullDownRefresh": true,
  23667. "onReachBottomDistance": 100,
  23668. "component": true
  23669. },
  23670. "pages/subPackages/merchants/components/mymechantsdetails": {
  23671. "navigationBarTitleText": "我的招商-详情",
  23672. "enablePullDownRefresh": true,
  23673. "onReachBottomDistance": 100,
  23674. "component": true
  23675. },
  23676. "pages/subPackages/reportRepair/index": {
  23677. "navigationBarTitleText": "报事报修",
  23678. "enablePullDownRefresh": true,
  23679. "onReachBottomDistance": 100,
  23680. "component": true
  23681. },
  23682. "pages/subPackages/reportRepair/repairRecord": {
  23683. "navigationBarTitleText": "报事记录",
  23684. "enablePullDownRefresh": true,
  23685. "onReachBottomDistance": 100,
  23686. "component": true
  23687. },
  23688. "pages/subPackages/reportRepair/repairDetail": {
  23689. "navigationBarTitleText": "报事详情",
  23690. "enablePullDownRefresh": true,
  23691. "onReachBottomDistance": 100,
  23692. "component": true
  23693. },
  23694. "pages/subPackages/companyreport/companyreport": {
  23695. "navigationBarTitleText": "走访上报",
  23696. "enablePullDownRefresh": true,
  23697. "onReachBottomDistance": 100,
  23698. "component": true
  23699. },
  23700. "pages/subPackages/economicDevelopmentReport/economic": {
  23701. "navigationBarTitleText": "经发填报",
  23702. "enablePullDownRefresh": true,
  23703. "onReachBottomDistance": 100,
  23704. "component": true
  23705. },
  23706. "pages/subPackages/enterPriseBill/index": {
  23707. "navigationBarTitleText": "企业账单",
  23708. "enablePullDownRefresh": true,
  23709. "onReachBottomDistance": 100,
  23710. "component": true
  23711. },
  23712. "pages/subPackages/enterPriseBill/detail": {
  23713. "navigationBarTitleText": "账单详情",
  23714. "enablePullDownRefresh": true,
  23715. "onReachBottomDistance": 100,
  23716. "component": true
  23717. },
  23718. "pages/subPackages/propertyNotice/index": {
  23719. "navigationBarTitleText": "物业通知",
  23720. "enablePullDownRefresh": true,
  23721. "onReachBottomDistance": 100,
  23722. "component": true
  23723. },
  23724. "pages/subPackages/propertyNotice/detail": {
  23725. "navigationBarTitleText": "通知详情",
  23726. "enablePullDownRefresh": true,
  23727. "onReachBottomDistance": 100,
  23728. "component": true
  23729. },
  23730. "pages/subPackages/propertyNotice_manage/index": {
  23731. "navigationBarTitleText": "物业通知-管理",
  23732. "enablePullDownRefresh": true,
  23733. "onReachBottomDistance": 100,
  23734. "component": true
  23735. },
  23736. "pages/subPackages/propertyNotice_manage/newRelease": {
  23737. "navigationBarTitleText": "新增发布",
  23738. "enablePullDownRefresh": true,
  23739. "onReachBottomDistance": 100,
  23740. "component": true
  23741. },
  23742. "pages/subPackages/parkActivity/index": {
  23743. "navigationBarTitleText": "园区活动",
  23744. "enablePullDownRefresh": true,
  23745. "onReachBottomDistance": 100,
  23746. "component": true
  23747. },
  23748. "pages/subPackages/parkActivity/activeApplication": {
  23749. "navigationBarTitleText": "活动报名",
  23750. "enablePullDownRefresh": true,
  23751. "onReachBottomDistance": 100,
  23752. "component": true
  23753. },
  23754. "pages/subPackages/parkActivity/applicationInfo": {
  23755. "navigationBarTitleText": "报名信息",
  23756. "enablePullDownRefresh": true,
  23757. "onReachBottomDistance": 100,
  23758. "component": true,
  23759. "usingComponents": {}
  23760. },
  23761. "pages/subPackages/parkActivity/activityCheckIn": {
  23762. "navigationBarTitleText": "活动签到",
  23763. "enablePullDownRefresh": true,
  23764. "onReachBottomDistance": 100,
  23765. "component": true,
  23766. "usingComponents": {}
  23767. },
  23768. "pages/subPackages/minePages/mineMessage": {
  23769. "navigationBarTitleText": "我的消息",
  23770. "enablePullDownRefresh": true,
  23771. "onReachBottomDistance": 100,
  23772. "component": true,
  23773. "usingComponents": {}
  23774. },
  23775. "pages/subPackages/minePages/mineInfo": {
  23776. "navigationBarTitleText": "企业信息",
  23777. "enablePullDownRefresh": true,
  23778. "onReachBottomDistance": 100,
  23779. "component": true,
  23780. "usingComponents": {}
  23781. },
  23782. "pages/subPackages/minePages/feedback": {
  23783. "navigationBarTitleText": "我的反馈",
  23784. "enablePullDownRefresh": true,
  23785. "onReachBottomDistance": 100,
  23786. "component": true,
  23787. "usingComponents": {}
  23788. },
  23789. "pages/subPackages/minePages/feedback_record": {
  23790. "navigationBarTitleText": "反馈记录",
  23791. "enablePullDownRefresh": true,
  23792. "onReachBottomDistance": 100,
  23793. "component": true,
  23794. "usingComponents": {}
  23795. },
  23796. "pages/subPackages/minePages/feedback_detail": {
  23797. "navigationBarTitleText": "反馈详情",
  23798. "enablePullDownRefresh": true,
  23799. "onReachBottomDistance": 100,
  23800. "component": true,
  23801. "usingComponents": {}
  23802. },
  23803. "pages/subPackages/minePages/myActivities": {
  23804. "navigationBarTitleText": "我的活动",
  23805. "enablePullDownRefresh": true,
  23806. "onReachBottomDistance": 100,
  23807. "component": true,
  23808. "usingComponents": {}
  23809. },
  23810. "pages/subPackages/minePages/myCollection": {
  23811. "navigationBarTitleText": "我的收藏",
  23812. "enablePullDownRefresh": true,
  23813. "onReachBottomDistance": 100,
  23814. "component": true,
  23815. "usingComponents": {}
  23816. },
  23817. "pages/subPackages/minePages/myOrder": {
  23818. "navigationBarTitleText": "我的订单",
  23819. "enablePullDownRefresh": true,
  23820. "onReachBottomDistance": 100,
  23821. "component": true,
  23822. "usingComponents": {}
  23823. },
  23824. "pages/subPackages/peripheralService/index": {
  23825. "navigationBarTitleText": "周边服务",
  23826. "enablePullDownRefresh": true,
  23827. "onReachBottomDistance": 100,
  23828. "component": true,
  23829. "usingComponents": {}
  23830. },
  23831. "pages/subPackages/peripheralService/detail": {
  23832. "navigationBarTitleText": "周边服务详情",
  23833. "enablePullDownRefresh": true,
  23834. "onReachBottomDistance": 100,
  23835. "component": true,
  23836. "usingComponents": {}
  23837. },
  23838. "pages/subPackages/industrialPolicy/index": {
  23839. "navigationBarTitleText": "产业政策",
  23840. "enablePullDownRefresh": true,
  23841. "onReachBottomDistance": 100,
  23842. "component": true,
  23843. "usingComponents": {}
  23844. },
  23845. "pages/subPackages/industrialPolicy/detail": {
  23846. "navigationBarTitleText": "产业政策详情",
  23847. "enablePullDownRefresh": true,
  23848. "onReachBottomDistance": 100,
  23849. "component": true,
  23850. "usingComponents": {}
  23851. },
  23852. "pages/subPackages/surroundingReleases/index": {
  23853. "navigationBarTitleText": "周边发布",
  23854. "enablePullDownRefresh": true,
  23855. "onReachBottomDistance": 100,
  23856. "component": true
  23857. },
  23858. "pages/subPackages/resourceReservation_manage/index": {
  23859. "navigationBarTitleText": "资源预约",
  23860. "enablePullDownRefresh": true,
  23861. "onReachBottomDistance": 100,
  23862. "component": true
  23863. },
  23864. "pages/subPackages/resourceReservation_manage/detail": {
  23865. "navigationBarTitleText": "会议室详情",
  23866. "enablePullDownRefresh": true,
  23867. "onReachBottomDistance": 100,
  23868. "component": true,
  23869. "usingComponents": {}
  23870. },
  23871. "pages/subPackages/resourceReservation_manage/add": {
  23872. "navigationBarTitleText": "新增预约",
  23873. "enablePullDownRefresh": true,
  23874. "onReachBottomDistance": 100,
  23875. "component": true,
  23876. "usingComponents": {}
  23877. },
  23878. "pages/subPackages/propertyManagement/maintenance": {
  23879. "navigationBarTitleText": "房源维护",
  23880. "enablePullDownRefresh": true,
  23881. "onReachBottomDistance": 100,
  23882. "component": true,
  23883. "usingComponents": {}
  23884. },
  23885. "pages/subPackages/propertyManagement/propertyEditor": {
  23886. "navigationBarTitleText": "房源编辑",
  23887. "enablePullDownRefresh": true,
  23888. "onReachBottomDistance": 100,
  23889. "component": true,
  23890. "usingComponents": {}
  23891. },
  23892. "pages/subPackages/serviceEvaluation/index": {
  23893. "navigationBarTitleText": "服务评价",
  23894. "enablePullDownRefresh": true,
  23895. "onReachBottomDistance": 100,
  23896. "component": true,
  23897. "usingComponents": {}
  23898. },
  23899. "pages/subPackages/housingResources/index": {
  23900. "navigationBarTitleText": "园区房源",
  23901. "enablePullDownRefresh": true,
  23902. "onReachBottomDistance": 100,
  23903. "component": true
  23904. },
  23905. "pages/subPackages/housingResources/detail": {
  23906. "navigationBarTitleText": "房源详情",
  23907. "enablePullDownRefresh": true,
  23908. "onReachBottomDistance": 100,
  23909. "component": true,
  23910. "usingComponents": {}
  23911. },
  23912. "pages/subPackages/housingResources/addPredetermine": {
  23913. "navigationBarTitleText": "新增预定",
  23914. "enablePullDownRefresh": true,
  23915. "onReachBottomDistance": 100,
  23916. "component": true,
  23917. "usingComponents": {}
  23918. },
  23919. "pages/subPackages/aboutThePark/index": {
  23920. "navigationBarTitleText": "关于园区",
  23921. "enablePullDownRefresh": true,
  23922. "onReachBottomDistance": 100,
  23923. "component": true,
  23924. "usingComponents": {}
  23925. },
  23926. "pages/subPackages/todo/resourceReview": {
  23927. "navigationBarTitleText": "资源预约审核",
  23928. "enablePullDownRefresh": true,
  23929. "onReachBottomDistance": 100,
  23930. "component": true,
  23931. "usingComponents": {}
  23932. },
  23933. "pages/subPackages/minePages/registrationDetails": {
  23934. "navigationBarTitleText": "报名详情",
  23935. "enablePullDownRefresh": true,
  23936. "onReachBottomDistance": 100,
  23937. "component": true,
  23938. "usingComponents": {}
  23939. },
  23940. "pages/subPackages/economicDevelopmentReport/detail": {
  23941. "navigationBarTitleText": "填报详情",
  23942. "enablePullDownRefresh": true,
  23943. "onReachBottomDistance": 100,
  23944. "component": true,
  23945. "usingComponents": {}
  23946. }
  23947. },
  23948. "globalStyle": {
  23949. "pageOrientation": "portrait",
  23950. "navigationBarTitleText": "Hello uniapp",
  23951. "navigationBarTextStyle": "black",
  23952. "navigationBarBackgroundColor": "#FFFFFF",
  23953. "backgroundColor": "#FFFFFF",
  23954. "backgroundColorTop": "#FFFFFF",
  23955. "backgroundColorBottom": "#F4F5F6"
  23956. }
  23957. };
  23958. exports.default = _default;
  23959. /***/ }),
  23960. /***/ 46:
  23961. /*!**********************************************************************************************************!*\
  23962. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  23963. \**********************************************************************************************************/
  23964. /*! exports provided: default */
  23965. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23966. "use strict";
  23967. __webpack_require__.r(__webpack_exports__);
  23968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  23969. /* globals __VUE_SSR_CONTEXT__ */
  23970. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  23971. // This module is a runtime utility for cleaner component module output and will
  23972. // be included in the final webpack user bundle.
  23973. function normalizeComponent (
  23974. scriptExports,
  23975. render,
  23976. staticRenderFns,
  23977. functionalTemplate,
  23978. injectStyles,
  23979. scopeId,
  23980. moduleIdentifier, /* server only */
  23981. shadowMode, /* vue-cli only */
  23982. components, // fixed by xxxxxx auto components
  23983. renderjs // fixed by xxxxxx renderjs
  23984. ) {
  23985. // Vue.extend constructor export interop
  23986. var options = typeof scriptExports === 'function'
  23987. ? scriptExports.options
  23988. : scriptExports
  23989. // fixed by xxxxxx auto components
  23990. if (components) {
  23991. if (!options.components) {
  23992. options.components = {}
  23993. }
  23994. var hasOwn = Object.prototype.hasOwnProperty
  23995. for (var name in components) {
  23996. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  23997. options.components[name] = components[name]
  23998. }
  23999. }
  24000. }
  24001. // fixed by xxxxxx renderjs
  24002. if (renderjs) {
  24003. if(typeof renderjs.beforeCreate === 'function'){
  24004. renderjs.beforeCreate = [renderjs.beforeCreate]
  24005. }
  24006. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  24007. this[renderjs.__module] = this
  24008. });
  24009. (options.mixins || (options.mixins = [])).push(renderjs)
  24010. }
  24011. // render functions
  24012. if (render) {
  24013. options.render = render
  24014. options.staticRenderFns = staticRenderFns
  24015. options._compiled = true
  24016. }
  24017. // functional template
  24018. if (functionalTemplate) {
  24019. options.functional = true
  24020. }
  24021. // scopedId
  24022. if (scopeId) {
  24023. options._scopeId = 'data-v-' + scopeId
  24024. }
  24025. var hook
  24026. if (moduleIdentifier) { // server build
  24027. hook = function (context) {
  24028. // 2.3 injection
  24029. context =
  24030. context || // cached call
  24031. (this.$vnode && this.$vnode.ssrContext) || // stateful
  24032. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  24033. // 2.2 with runInNewContext: true
  24034. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  24035. context = __VUE_SSR_CONTEXT__
  24036. }
  24037. // inject component styles
  24038. if (injectStyles) {
  24039. injectStyles.call(this, context)
  24040. }
  24041. // register component module identifier for async chunk inferrence
  24042. if (context && context._registeredComponents) {
  24043. context._registeredComponents.add(moduleIdentifier)
  24044. }
  24045. }
  24046. // used by ssr in case component is cached and beforeCreate
  24047. // never gets called
  24048. options._ssrRegister = hook
  24049. } else if (injectStyles) {
  24050. hook = shadowMode
  24051. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  24052. : injectStyles
  24053. }
  24054. if (hook) {
  24055. if (options.functional) {
  24056. // for template-only hot-reload because in that case the render fn doesn't
  24057. // go through the normalizer
  24058. options._injectStyles = hook
  24059. // register for functioal component in vue file
  24060. var originalRender = options.render
  24061. options.render = function renderWithStyleInjection (h, context) {
  24062. hook.call(context)
  24063. return originalRender(h, context)
  24064. }
  24065. } else {
  24066. // inject component registration as beforeCreate hook
  24067. var existing = options.beforeCreate
  24068. options.beforeCreate = existing
  24069. ? [].concat(existing, hook)
  24070. : [hook]
  24071. }
  24072. }
  24073. return {
  24074. exports: scriptExports,
  24075. options: options
  24076. }
  24077. }
  24078. /***/ }),
  24079. /***/ 47:
  24080. /*!****************************************************!*\
  24081. !*** D:/work/gitlabcode/product_wx/store/index.js ***!
  24082. \****************************************************/
  24083. /*! no static exports found */
  24084. /***/ (function(module, exports, __webpack_require__) {
  24085. "use strict";
  24086. /* WEBPACK VAR INJECTION */(function(uni) {
  24087. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24088. Object.defineProperty(exports, "__esModule", {
  24089. value: true
  24090. });
  24091. exports.default = void 0;
  24092. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  24093. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 48));
  24094. _vue.default.use(_vuex.default);
  24095. var store = new _vuex.default.Store({
  24096. state: {
  24097. userInfo: null,
  24098. token: null,
  24099. isRefresh: true,
  24100. kickbackData: []
  24101. },
  24102. getters: {
  24103. kickbackDataLen: function kickbackDataLen(state) {
  24104. return state.kickbackData.length;
  24105. }
  24106. },
  24107. mutations: {
  24108. setData: function setData(state, _ref) {
  24109. var payload = _ref.payload;
  24110. for (var v in payload) {
  24111. state[v] = payload[v];
  24112. uni.setStorageSync(v, payload[v]);
  24113. }
  24114. }
  24115. },
  24116. actions: {}
  24117. });
  24118. var _default = store;
  24119. exports.default = _default;
  24120. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24121. /***/ }),
  24122. /***/ 48:
  24123. /*!**************************************************************************************!*\
  24124. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  24125. \**************************************************************************************/
  24126. /*! no static exports found */
  24127. /***/ (function(module, exports, __webpack_require__) {
  24128. "use strict";
  24129. /* WEBPACK VAR INJECTION */(function(global) {/*!
  24130. * vuex v3.6.2
  24131. * (c) 2021 Evan You
  24132. * @license MIT
  24133. */
  24134. function applyMixin (Vue) {
  24135. var version = Number(Vue.version.split('.')[0]);
  24136. if (version >= 2) {
  24137. Vue.mixin({ beforeCreate: vuexInit });
  24138. } else {
  24139. // override init and inject vuex init procedure
  24140. // for 1.x backwards compatibility.
  24141. var _init = Vue.prototype._init;
  24142. Vue.prototype._init = function (options) {
  24143. if ( options === void 0 ) options = {};
  24144. options.init = options.init
  24145. ? [vuexInit].concat(options.init)
  24146. : vuexInit;
  24147. _init.call(this, options);
  24148. };
  24149. }
  24150. /**
  24151. * Vuex init hook, injected into each instances init hooks list.
  24152. */
  24153. function vuexInit () {
  24154. var options = this.$options;
  24155. // store injection
  24156. if (options.store) {
  24157. this.$store = typeof options.store === 'function'
  24158. ? options.store()
  24159. : options.store;
  24160. } else if (options.parent && options.parent.$store) {
  24161. this.$store = options.parent.$store;
  24162. }
  24163. }
  24164. }
  24165. var target = typeof window !== 'undefined'
  24166. ? window
  24167. : typeof global !== 'undefined'
  24168. ? global
  24169. : {};
  24170. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  24171. function devtoolPlugin (store) {
  24172. if (!devtoolHook) { return }
  24173. store._devtoolHook = devtoolHook;
  24174. devtoolHook.emit('vuex:init', store);
  24175. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  24176. store.replaceState(targetState);
  24177. });
  24178. store.subscribe(function (mutation, state) {
  24179. devtoolHook.emit('vuex:mutation', mutation, state);
  24180. }, { prepend: true });
  24181. store.subscribeAction(function (action, state) {
  24182. devtoolHook.emit('vuex:action', action, state);
  24183. }, { prepend: true });
  24184. }
  24185. /**
  24186. * Get the first item that pass the test
  24187. * by second argument function
  24188. *
  24189. * @param {Array} list
  24190. * @param {Function} f
  24191. * @return {*}
  24192. */
  24193. function find (list, f) {
  24194. return list.filter(f)[0]
  24195. }
  24196. /**
  24197. * Deep copy the given object considering circular structure.
  24198. * This function caches all nested objects and its copies.
  24199. * If it detects circular structure, use cached copy to avoid infinite loop.
  24200. *
  24201. * @param {*} obj
  24202. * @param {Array<Object>} cache
  24203. * @return {*}
  24204. */
  24205. function deepCopy (obj, cache) {
  24206. if ( cache === void 0 ) cache = [];
  24207. // just return if obj is immutable value
  24208. if (obj === null || typeof obj !== 'object') {
  24209. return obj
  24210. }
  24211. // if obj is hit, it is in circular structure
  24212. var hit = find(cache, function (c) { return c.original === obj; });
  24213. if (hit) {
  24214. return hit.copy
  24215. }
  24216. var copy = Array.isArray(obj) ? [] : {};
  24217. // put the copy into cache at first
  24218. // because we want to refer it in recursive deepCopy
  24219. cache.push({
  24220. original: obj,
  24221. copy: copy
  24222. });
  24223. Object.keys(obj).forEach(function (key) {
  24224. copy[key] = deepCopy(obj[key], cache);
  24225. });
  24226. return copy
  24227. }
  24228. /**
  24229. * forEach for object
  24230. */
  24231. function forEachValue (obj, fn) {
  24232. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  24233. }
  24234. function isObject (obj) {
  24235. return obj !== null && typeof obj === 'object'
  24236. }
  24237. function isPromise (val) {
  24238. return val && typeof val.then === 'function'
  24239. }
  24240. function assert (condition, msg) {
  24241. if (!condition) { throw new Error(("[vuex] " + msg)) }
  24242. }
  24243. function partial (fn, arg) {
  24244. return function () {
  24245. return fn(arg)
  24246. }
  24247. }
  24248. // Base data struct for store's module, package with some attribute and method
  24249. var Module = function Module (rawModule, runtime) {
  24250. this.runtime = runtime;
  24251. // Store some children item
  24252. this._children = Object.create(null);
  24253. // Store the origin module object which passed by programmer
  24254. this._rawModule = rawModule;
  24255. var rawState = rawModule.state;
  24256. // Store the origin module's state
  24257. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  24258. };
  24259. var prototypeAccessors = { namespaced: { configurable: true } };
  24260. prototypeAccessors.namespaced.get = function () {
  24261. return !!this._rawModule.namespaced
  24262. };
  24263. Module.prototype.addChild = function addChild (key, module) {
  24264. this._children[key] = module;
  24265. };
  24266. Module.prototype.removeChild = function removeChild (key) {
  24267. delete this._children[key];
  24268. };
  24269. Module.prototype.getChild = function getChild (key) {
  24270. return this._children[key]
  24271. };
  24272. Module.prototype.hasChild = function hasChild (key) {
  24273. return key in this._children
  24274. };
  24275. Module.prototype.update = function update (rawModule) {
  24276. this._rawModule.namespaced = rawModule.namespaced;
  24277. if (rawModule.actions) {
  24278. this._rawModule.actions = rawModule.actions;
  24279. }
  24280. if (rawModule.mutations) {
  24281. this._rawModule.mutations = rawModule.mutations;
  24282. }
  24283. if (rawModule.getters) {
  24284. this._rawModule.getters = rawModule.getters;
  24285. }
  24286. };
  24287. Module.prototype.forEachChild = function forEachChild (fn) {
  24288. forEachValue(this._children, fn);
  24289. };
  24290. Module.prototype.forEachGetter = function forEachGetter (fn) {
  24291. if (this._rawModule.getters) {
  24292. forEachValue(this._rawModule.getters, fn);
  24293. }
  24294. };
  24295. Module.prototype.forEachAction = function forEachAction (fn) {
  24296. if (this._rawModule.actions) {
  24297. forEachValue(this._rawModule.actions, fn);
  24298. }
  24299. };
  24300. Module.prototype.forEachMutation = function forEachMutation (fn) {
  24301. if (this._rawModule.mutations) {
  24302. forEachValue(this._rawModule.mutations, fn);
  24303. }
  24304. };
  24305. Object.defineProperties( Module.prototype, prototypeAccessors );
  24306. var ModuleCollection = function ModuleCollection (rawRootModule) {
  24307. // register root module (Vuex.Store options)
  24308. this.register([], rawRootModule, false);
  24309. };
  24310. ModuleCollection.prototype.get = function get (path) {
  24311. return path.reduce(function (module, key) {
  24312. return module.getChild(key)
  24313. }, this.root)
  24314. };
  24315. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  24316. var module = this.root;
  24317. return path.reduce(function (namespace, key) {
  24318. module = module.getChild(key);
  24319. return namespace + (module.namespaced ? key + '/' : '')
  24320. }, '')
  24321. };
  24322. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  24323. update([], this.root, rawRootModule);
  24324. };
  24325. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  24326. var this$1 = this;
  24327. if ( runtime === void 0 ) runtime = true;
  24328. if ((true)) {
  24329. assertRawModule(path, rawModule);
  24330. }
  24331. var newModule = new Module(rawModule, runtime);
  24332. if (path.length === 0) {
  24333. this.root = newModule;
  24334. } else {
  24335. var parent = this.get(path.slice(0, -1));
  24336. parent.addChild(path[path.length - 1], newModule);
  24337. }
  24338. // register nested modules
  24339. if (rawModule.modules) {
  24340. forEachValue(rawModule.modules, function (rawChildModule, key) {
  24341. this$1.register(path.concat(key), rawChildModule, runtime);
  24342. });
  24343. }
  24344. };
  24345. ModuleCollection.prototype.unregister = function unregister (path) {
  24346. var parent = this.get(path.slice(0, -1));
  24347. var key = path[path.length - 1];
  24348. var child = parent.getChild(key);
  24349. if (!child) {
  24350. if ((true)) {
  24351. console.warn(
  24352. "[vuex] trying to unregister module '" + key + "', which is " +
  24353. "not registered"
  24354. );
  24355. }
  24356. return
  24357. }
  24358. if (!child.runtime) {
  24359. return
  24360. }
  24361. parent.removeChild(key);
  24362. };
  24363. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  24364. var parent = this.get(path.slice(0, -1));
  24365. var key = path[path.length - 1];
  24366. if (parent) {
  24367. return parent.hasChild(key)
  24368. }
  24369. return false
  24370. };
  24371. function update (path, targetModule, newModule) {
  24372. if ((true)) {
  24373. assertRawModule(path, newModule);
  24374. }
  24375. // update target module
  24376. targetModule.update(newModule);
  24377. // update nested modules
  24378. if (newModule.modules) {
  24379. for (var key in newModule.modules) {
  24380. if (!targetModule.getChild(key)) {
  24381. if ((true)) {
  24382. console.warn(
  24383. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  24384. 'manual reload is needed'
  24385. );
  24386. }
  24387. return
  24388. }
  24389. update(
  24390. path.concat(key),
  24391. targetModule.getChild(key),
  24392. newModule.modules[key]
  24393. );
  24394. }
  24395. }
  24396. }
  24397. var functionAssert = {
  24398. assert: function (value) { return typeof value === 'function'; },
  24399. expected: 'function'
  24400. };
  24401. var objectAssert = {
  24402. assert: function (value) { return typeof value === 'function' ||
  24403. (typeof value === 'object' && typeof value.handler === 'function'); },
  24404. expected: 'function or object with "handler" function'
  24405. };
  24406. var assertTypes = {
  24407. getters: functionAssert,
  24408. mutations: functionAssert,
  24409. actions: objectAssert
  24410. };
  24411. function assertRawModule (path, rawModule) {
  24412. Object.keys(assertTypes).forEach(function (key) {
  24413. if (!rawModule[key]) { return }
  24414. var assertOptions = assertTypes[key];
  24415. forEachValue(rawModule[key], function (value, type) {
  24416. assert(
  24417. assertOptions.assert(value),
  24418. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  24419. );
  24420. });
  24421. });
  24422. }
  24423. function makeAssertionMessage (path, key, type, value, expected) {
  24424. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  24425. if (path.length > 0) {
  24426. buf += " in module \"" + (path.join('.')) + "\"";
  24427. }
  24428. buf += " is " + (JSON.stringify(value)) + ".";
  24429. return buf
  24430. }
  24431. var Vue; // bind on install
  24432. var Store = function Store (options) {
  24433. var this$1 = this;
  24434. if ( options === void 0 ) options = {};
  24435. // Auto install if it is not done yet and `window` has `Vue`.
  24436. // To allow users to avoid auto-installation in some cases,
  24437. // this code should be placed here. See #731
  24438. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  24439. install(window.Vue);
  24440. }
  24441. if ((true)) {
  24442. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  24443. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  24444. assert(this instanceof Store, "store must be called with the new operator.");
  24445. }
  24446. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  24447. var strict = options.strict; if ( strict === void 0 ) strict = false;
  24448. // store internal state
  24449. this._committing = false;
  24450. this._actions = Object.create(null);
  24451. this._actionSubscribers = [];
  24452. this._mutations = Object.create(null);
  24453. this._wrappedGetters = Object.create(null);
  24454. this._modules = new ModuleCollection(options);
  24455. this._modulesNamespaceMap = Object.create(null);
  24456. this._subscribers = [];
  24457. this._watcherVM = new Vue();
  24458. this._makeLocalGettersCache = Object.create(null);
  24459. // bind commit and dispatch to self
  24460. var store = this;
  24461. var ref = this;
  24462. var dispatch = ref.dispatch;
  24463. var commit = ref.commit;
  24464. this.dispatch = function boundDispatch (type, payload) {
  24465. return dispatch.call(store, type, payload)
  24466. };
  24467. this.commit = function boundCommit (type, payload, options) {
  24468. return commit.call(store, type, payload, options)
  24469. };
  24470. // strict mode
  24471. this.strict = strict;
  24472. var state = this._modules.root.state;
  24473. // init root module.
  24474. // this also recursively registers all sub-modules
  24475. // and collects all module getters inside this._wrappedGetters
  24476. installModule(this, state, [], this._modules.root);
  24477. // initialize the store vm, which is responsible for the reactivity
  24478. // (also registers _wrappedGetters as computed properties)
  24479. resetStoreVM(this, state);
  24480. // apply plugins
  24481. plugins.forEach(function (plugin) { return plugin(this$1); });
  24482. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  24483. if (useDevtools) {
  24484. devtoolPlugin(this);
  24485. }
  24486. };
  24487. var prototypeAccessors$1 = { state: { configurable: true } };
  24488. prototypeAccessors$1.state.get = function () {
  24489. return this._vm._data.$$state
  24490. };
  24491. prototypeAccessors$1.state.set = function (v) {
  24492. if ((true)) {
  24493. assert(false, "use store.replaceState() to explicit replace store state.");
  24494. }
  24495. };
  24496. Store.prototype.commit = function commit (_type, _payload, _options) {
  24497. var this$1 = this;
  24498. // check object-style commit
  24499. var ref = unifyObjectStyle(_type, _payload, _options);
  24500. var type = ref.type;
  24501. var payload = ref.payload;
  24502. var options = ref.options;
  24503. var mutation = { type: type, payload: payload };
  24504. var entry = this._mutations[type];
  24505. if (!entry) {
  24506. if ((true)) {
  24507. console.error(("[vuex] unknown mutation type: " + type));
  24508. }
  24509. return
  24510. }
  24511. this._withCommit(function () {
  24512. entry.forEach(function commitIterator (handler) {
  24513. handler(payload);
  24514. });
  24515. });
  24516. this._subscribers
  24517. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  24518. .forEach(function (sub) { return sub(mutation, this$1.state); });
  24519. if (
  24520. ( true) &&
  24521. options && options.silent
  24522. ) {
  24523. console.warn(
  24524. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  24525. 'Use the filter functionality in the vue-devtools'
  24526. );
  24527. }
  24528. };
  24529. Store.prototype.dispatch = function dispatch (_type, _payload) {
  24530. var this$1 = this;
  24531. // check object-style dispatch
  24532. var ref = unifyObjectStyle(_type, _payload);
  24533. var type = ref.type;
  24534. var payload = ref.payload;
  24535. var action = { type: type, payload: payload };
  24536. var entry = this._actions[type];
  24537. if (!entry) {
  24538. if ((true)) {
  24539. console.error(("[vuex] unknown action type: " + type));
  24540. }
  24541. return
  24542. }
  24543. try {
  24544. this._actionSubscribers
  24545. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  24546. .filter(function (sub) { return sub.before; })
  24547. .forEach(function (sub) { return sub.before(action, this$1.state); });
  24548. } catch (e) {
  24549. if ((true)) {
  24550. console.warn("[vuex] error in before action subscribers: ");
  24551. console.error(e);
  24552. }
  24553. }
  24554. var result = entry.length > 1
  24555. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  24556. : entry[0](payload);
  24557. return new Promise(function (resolve, reject) {
  24558. result.then(function (res) {
  24559. try {
  24560. this$1._actionSubscribers
  24561. .filter(function (sub) { return sub.after; })
  24562. .forEach(function (sub) { return sub.after(action, this$1.state); });
  24563. } catch (e) {
  24564. if ((true)) {
  24565. console.warn("[vuex] error in after action subscribers: ");
  24566. console.error(e);
  24567. }
  24568. }
  24569. resolve(res);
  24570. }, function (error) {
  24571. try {
  24572. this$1._actionSubscribers
  24573. .filter(function (sub) { return sub.error; })
  24574. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  24575. } catch (e) {
  24576. if ((true)) {
  24577. console.warn("[vuex] error in error action subscribers: ");
  24578. console.error(e);
  24579. }
  24580. }
  24581. reject(error);
  24582. });
  24583. })
  24584. };
  24585. Store.prototype.subscribe = function subscribe (fn, options) {
  24586. return genericSubscribe(fn, this._subscribers, options)
  24587. };
  24588. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  24589. var subs = typeof fn === 'function' ? { before: fn } : fn;
  24590. return genericSubscribe(subs, this._actionSubscribers, options)
  24591. };
  24592. Store.prototype.watch = function watch (getter, cb, options) {
  24593. var this$1 = this;
  24594. if ((true)) {
  24595. assert(typeof getter === 'function', "store.watch only accepts a function.");
  24596. }
  24597. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  24598. };
  24599. Store.prototype.replaceState = function replaceState (state) {
  24600. var this$1 = this;
  24601. this._withCommit(function () {
  24602. this$1._vm._data.$$state = state;
  24603. });
  24604. };
  24605. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  24606. if ( options === void 0 ) options = {};
  24607. if (typeof path === 'string') { path = [path]; }
  24608. if ((true)) {
  24609. assert(Array.isArray(path), "module path must be a string or an Array.");
  24610. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  24611. }
  24612. this._modules.register(path, rawModule);
  24613. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  24614. // reset store to update getters...
  24615. resetStoreVM(this, this.state);
  24616. };
  24617. Store.prototype.unregisterModule = function unregisterModule (path) {
  24618. var this$1 = this;
  24619. if (typeof path === 'string') { path = [path]; }
  24620. if ((true)) {
  24621. assert(Array.isArray(path), "module path must be a string or an Array.");
  24622. }
  24623. this._modules.unregister(path);
  24624. this._withCommit(function () {
  24625. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  24626. Vue.delete(parentState, path[path.length - 1]);
  24627. });
  24628. resetStore(this);
  24629. };
  24630. Store.prototype.hasModule = function hasModule (path) {
  24631. if (typeof path === 'string') { path = [path]; }
  24632. if ((true)) {
  24633. assert(Array.isArray(path), "module path must be a string or an Array.");
  24634. }
  24635. return this._modules.isRegistered(path)
  24636. };
  24637. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  24638. this._modules.update(newOptions);
  24639. resetStore(this, true);
  24640. };
  24641. Store.prototype._withCommit = function _withCommit (fn) {
  24642. var committing = this._committing;
  24643. this._committing = true;
  24644. fn();
  24645. this._committing = committing;
  24646. };
  24647. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  24648. function genericSubscribe (fn, subs, options) {
  24649. if (subs.indexOf(fn) < 0) {
  24650. options && options.prepend
  24651. ? subs.unshift(fn)
  24652. : subs.push(fn);
  24653. }
  24654. return function () {
  24655. var i = subs.indexOf(fn);
  24656. if (i > -1) {
  24657. subs.splice(i, 1);
  24658. }
  24659. }
  24660. }
  24661. function resetStore (store, hot) {
  24662. store._actions = Object.create(null);
  24663. store._mutations = Object.create(null);
  24664. store._wrappedGetters = Object.create(null);
  24665. store._modulesNamespaceMap = Object.create(null);
  24666. var state = store.state;
  24667. // init all modules
  24668. installModule(store, state, [], store._modules.root, true);
  24669. // reset vm
  24670. resetStoreVM(store, state, hot);
  24671. }
  24672. function resetStoreVM (store, state, hot) {
  24673. var oldVm = store._vm;
  24674. // bind store public getters
  24675. store.getters = {};
  24676. // reset local getters cache
  24677. store._makeLocalGettersCache = Object.create(null);
  24678. var wrappedGetters = store._wrappedGetters;
  24679. var computed = {};
  24680. forEachValue(wrappedGetters, function (fn, key) {
  24681. // use computed to leverage its lazy-caching mechanism
  24682. // direct inline function use will lead to closure preserving oldVm.
  24683. // using partial to return function with only arguments preserved in closure environment.
  24684. computed[key] = partial(fn, store);
  24685. Object.defineProperty(store.getters, key, {
  24686. get: function () { return store._vm[key]; },
  24687. enumerable: true // for local getters
  24688. });
  24689. });
  24690. // use a Vue instance to store the state tree
  24691. // suppress warnings just in case the user has added
  24692. // some funky global mixins
  24693. var silent = Vue.config.silent;
  24694. Vue.config.silent = true;
  24695. store._vm = new Vue({
  24696. data: {
  24697. $$state: state
  24698. },
  24699. computed: computed
  24700. });
  24701. Vue.config.silent = silent;
  24702. // enable strict mode for new vm
  24703. if (store.strict) {
  24704. enableStrictMode(store);
  24705. }
  24706. if (oldVm) {
  24707. if (hot) {
  24708. // dispatch changes in all subscribed watchers
  24709. // to force getter re-evaluation for hot reloading.
  24710. store._withCommit(function () {
  24711. oldVm._data.$$state = null;
  24712. });
  24713. }
  24714. Vue.nextTick(function () { return oldVm.$destroy(); });
  24715. }
  24716. }
  24717. function installModule (store, rootState, path, module, hot) {
  24718. var isRoot = !path.length;
  24719. var namespace = store._modules.getNamespace(path);
  24720. // register in namespace map
  24721. if (module.namespaced) {
  24722. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  24723. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  24724. }
  24725. store._modulesNamespaceMap[namespace] = module;
  24726. }
  24727. // set state
  24728. if (!isRoot && !hot) {
  24729. var parentState = getNestedState(rootState, path.slice(0, -1));
  24730. var moduleName = path[path.length - 1];
  24731. store._withCommit(function () {
  24732. if ((true)) {
  24733. if (moduleName in parentState) {
  24734. console.warn(
  24735. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  24736. );
  24737. }
  24738. }
  24739. Vue.set(parentState, moduleName, module.state);
  24740. });
  24741. }
  24742. var local = module.context = makeLocalContext(store, namespace, path);
  24743. module.forEachMutation(function (mutation, key) {
  24744. var namespacedType = namespace + key;
  24745. registerMutation(store, namespacedType, mutation, local);
  24746. });
  24747. module.forEachAction(function (action, key) {
  24748. var type = action.root ? key : namespace + key;
  24749. var handler = action.handler || action;
  24750. registerAction(store, type, handler, local);
  24751. });
  24752. module.forEachGetter(function (getter, key) {
  24753. var namespacedType = namespace + key;
  24754. registerGetter(store, namespacedType, getter, local);
  24755. });
  24756. module.forEachChild(function (child, key) {
  24757. installModule(store, rootState, path.concat(key), child, hot);
  24758. });
  24759. }
  24760. /**
  24761. * make localized dispatch, commit, getters and state
  24762. * if there is no namespace, just use root ones
  24763. */
  24764. function makeLocalContext (store, namespace, path) {
  24765. var noNamespace = namespace === '';
  24766. var local = {
  24767. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  24768. var args = unifyObjectStyle(_type, _payload, _options);
  24769. var payload = args.payload;
  24770. var options = args.options;
  24771. var type = args.type;
  24772. if (!options || !options.root) {
  24773. type = namespace + type;
  24774. if (( true) && !store._actions[type]) {
  24775. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  24776. return
  24777. }
  24778. }
  24779. return store.dispatch(type, payload)
  24780. },
  24781. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  24782. var args = unifyObjectStyle(_type, _payload, _options);
  24783. var payload = args.payload;
  24784. var options = args.options;
  24785. var type = args.type;
  24786. if (!options || !options.root) {
  24787. type = namespace + type;
  24788. if (( true) && !store._mutations[type]) {
  24789. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  24790. return
  24791. }
  24792. }
  24793. store.commit(type, payload, options);
  24794. }
  24795. };
  24796. // getters and state object must be gotten lazily
  24797. // because they will be changed by vm update
  24798. Object.defineProperties(local, {
  24799. getters: {
  24800. get: noNamespace
  24801. ? function () { return store.getters; }
  24802. : function () { return makeLocalGetters(store, namespace); }
  24803. },
  24804. state: {
  24805. get: function () { return getNestedState(store.state, path); }
  24806. }
  24807. });
  24808. return local
  24809. }
  24810. function makeLocalGetters (store, namespace) {
  24811. if (!store._makeLocalGettersCache[namespace]) {
  24812. var gettersProxy = {};
  24813. var splitPos = namespace.length;
  24814. Object.keys(store.getters).forEach(function (type) {
  24815. // skip if the target getter is not match this namespace
  24816. if (type.slice(0, splitPos) !== namespace) { return }
  24817. // extract local getter type
  24818. var localType = type.slice(splitPos);
  24819. // Add a port to the getters proxy.
  24820. // Define as getter property because
  24821. // we do not want to evaluate the getters in this time.
  24822. Object.defineProperty(gettersProxy, localType, {
  24823. get: function () { return store.getters[type]; },
  24824. enumerable: true
  24825. });
  24826. });
  24827. store._makeLocalGettersCache[namespace] = gettersProxy;
  24828. }
  24829. return store._makeLocalGettersCache[namespace]
  24830. }
  24831. function registerMutation (store, type, handler, local) {
  24832. var entry = store._mutations[type] || (store._mutations[type] = []);
  24833. entry.push(function wrappedMutationHandler (payload) {
  24834. handler.call(store, local.state, payload);
  24835. });
  24836. }
  24837. function registerAction (store, type, handler, local) {
  24838. var entry = store._actions[type] || (store._actions[type] = []);
  24839. entry.push(function wrappedActionHandler (payload) {
  24840. var res = handler.call(store, {
  24841. dispatch: local.dispatch,
  24842. commit: local.commit,
  24843. getters: local.getters,
  24844. state: local.state,
  24845. rootGetters: store.getters,
  24846. rootState: store.state
  24847. }, payload);
  24848. if (!isPromise(res)) {
  24849. res = Promise.resolve(res);
  24850. }
  24851. if (store._devtoolHook) {
  24852. return res.catch(function (err) {
  24853. store._devtoolHook.emit('vuex:error', err);
  24854. throw err
  24855. })
  24856. } else {
  24857. return res
  24858. }
  24859. });
  24860. }
  24861. function registerGetter (store, type, rawGetter, local) {
  24862. if (store._wrappedGetters[type]) {
  24863. if ((true)) {
  24864. console.error(("[vuex] duplicate getter key: " + type));
  24865. }
  24866. return
  24867. }
  24868. store._wrappedGetters[type] = function wrappedGetter (store) {
  24869. return rawGetter(
  24870. local.state, // local state
  24871. local.getters, // local getters
  24872. store.state, // root state
  24873. store.getters // root getters
  24874. )
  24875. };
  24876. }
  24877. function enableStrictMode (store) {
  24878. store._vm.$watch(function () { return this._data.$$state }, function () {
  24879. if ((true)) {
  24880. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  24881. }
  24882. }, { deep: true, sync: true });
  24883. }
  24884. function getNestedState (state, path) {
  24885. return path.reduce(function (state, key) { return state[key]; }, state)
  24886. }
  24887. function unifyObjectStyle (type, payload, options) {
  24888. if (isObject(type) && type.type) {
  24889. options = payload;
  24890. payload = type;
  24891. type = type.type;
  24892. }
  24893. if ((true)) {
  24894. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  24895. }
  24896. return { type: type, payload: payload, options: options }
  24897. }
  24898. function install (_Vue) {
  24899. if (Vue && _Vue === Vue) {
  24900. if ((true)) {
  24901. console.error(
  24902. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  24903. );
  24904. }
  24905. return
  24906. }
  24907. Vue = _Vue;
  24908. applyMixin(Vue);
  24909. }
  24910. /**
  24911. * Reduce the code which written in Vue.js for getting the state.
  24912. * @param {String} [namespace] - Module's namespace
  24913. * @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.
  24914. * @param {Object}
  24915. */
  24916. var mapState = normalizeNamespace(function (namespace, states) {
  24917. var res = {};
  24918. if (( true) && !isValidMap(states)) {
  24919. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  24920. }
  24921. normalizeMap(states).forEach(function (ref) {
  24922. var key = ref.key;
  24923. var val = ref.val;
  24924. res[key] = function mappedState () {
  24925. var state = this.$store.state;
  24926. var getters = this.$store.getters;
  24927. if (namespace) {
  24928. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  24929. if (!module) {
  24930. return
  24931. }
  24932. state = module.context.state;
  24933. getters = module.context.getters;
  24934. }
  24935. return typeof val === 'function'
  24936. ? val.call(this, state, getters)
  24937. : state[val]
  24938. };
  24939. // mark vuex getter for devtools
  24940. res[key].vuex = true;
  24941. });
  24942. return res
  24943. });
  24944. /**
  24945. * Reduce the code which written in Vue.js for committing the mutation
  24946. * @param {String} [namespace] - Module's namespace
  24947. * @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.
  24948. * @return {Object}
  24949. */
  24950. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  24951. var res = {};
  24952. if (( true) && !isValidMap(mutations)) {
  24953. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  24954. }
  24955. normalizeMap(mutations).forEach(function (ref) {
  24956. var key = ref.key;
  24957. var val = ref.val;
  24958. res[key] = function mappedMutation () {
  24959. var args = [], len = arguments.length;
  24960. while ( len-- ) args[ len ] = arguments[ len ];
  24961. // Get the commit method from store
  24962. var commit = this.$store.commit;
  24963. if (namespace) {
  24964. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  24965. if (!module) {
  24966. return
  24967. }
  24968. commit = module.context.commit;
  24969. }
  24970. return typeof val === 'function'
  24971. ? val.apply(this, [commit].concat(args))
  24972. : commit.apply(this.$store, [val].concat(args))
  24973. };
  24974. });
  24975. return res
  24976. });
  24977. /**
  24978. * Reduce the code which written in Vue.js for getting the getters
  24979. * @param {String} [namespace] - Module's namespace
  24980. * @param {Object|Array} getters
  24981. * @return {Object}
  24982. */
  24983. var mapGetters = normalizeNamespace(function (namespace, getters) {
  24984. var res = {};
  24985. if (( true) && !isValidMap(getters)) {
  24986. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  24987. }
  24988. normalizeMap(getters).forEach(function (ref) {
  24989. var key = ref.key;
  24990. var val = ref.val;
  24991. // The namespace has been mutated by normalizeNamespace
  24992. val = namespace + val;
  24993. res[key] = function mappedGetter () {
  24994. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  24995. return
  24996. }
  24997. if (( true) && !(val in this.$store.getters)) {
  24998. console.error(("[vuex] unknown getter: " + val));
  24999. return
  25000. }
  25001. return this.$store.getters[val]
  25002. };
  25003. // mark vuex getter for devtools
  25004. res[key].vuex = true;
  25005. });
  25006. return res
  25007. });
  25008. /**
  25009. * Reduce the code which written in Vue.js for dispatch the action
  25010. * @param {String} [namespace] - Module's namespace
  25011. * @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.
  25012. * @return {Object}
  25013. */
  25014. var mapActions = normalizeNamespace(function (namespace, actions) {
  25015. var res = {};
  25016. if (( true) && !isValidMap(actions)) {
  25017. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  25018. }
  25019. normalizeMap(actions).forEach(function (ref) {
  25020. var key = ref.key;
  25021. var val = ref.val;
  25022. res[key] = function mappedAction () {
  25023. var args = [], len = arguments.length;
  25024. while ( len-- ) args[ len ] = arguments[ len ];
  25025. // get dispatch function from store
  25026. var dispatch = this.$store.dispatch;
  25027. if (namespace) {
  25028. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  25029. if (!module) {
  25030. return
  25031. }
  25032. dispatch = module.context.dispatch;
  25033. }
  25034. return typeof val === 'function'
  25035. ? val.apply(this, [dispatch].concat(args))
  25036. : dispatch.apply(this.$store, [val].concat(args))
  25037. };
  25038. });
  25039. return res
  25040. });
  25041. /**
  25042. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  25043. * @param {String} namespace
  25044. * @return {Object}
  25045. */
  25046. var createNamespacedHelpers = function (namespace) { return ({
  25047. mapState: mapState.bind(null, namespace),
  25048. mapGetters: mapGetters.bind(null, namespace),
  25049. mapMutations: mapMutations.bind(null, namespace),
  25050. mapActions: mapActions.bind(null, namespace)
  25051. }); };
  25052. /**
  25053. * Normalize the map
  25054. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  25055. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  25056. * @param {Array|Object} map
  25057. * @return {Object}
  25058. */
  25059. function normalizeMap (map) {
  25060. if (!isValidMap(map)) {
  25061. return []
  25062. }
  25063. return Array.isArray(map)
  25064. ? map.map(function (key) { return ({ key: key, val: key }); })
  25065. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  25066. }
  25067. /**
  25068. * Validate whether given map is valid or not
  25069. * @param {*} map
  25070. * @return {Boolean}
  25071. */
  25072. function isValidMap (map) {
  25073. return Array.isArray(map) || isObject(map)
  25074. }
  25075. /**
  25076. * 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.
  25077. * @param {Function} fn
  25078. * @return {Function}
  25079. */
  25080. function normalizeNamespace (fn) {
  25081. return function (namespace, map) {
  25082. if (typeof namespace !== 'string') {
  25083. map = namespace;
  25084. namespace = '';
  25085. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  25086. namespace += '/';
  25087. }
  25088. return fn(namespace, map)
  25089. }
  25090. }
  25091. /**
  25092. * Search a special module from store by namespace. if module not exist, print error message.
  25093. * @param {Object} store
  25094. * @param {String} helper
  25095. * @param {String} namespace
  25096. * @return {Object}
  25097. */
  25098. function getModuleByNamespace (store, helper, namespace) {
  25099. var module = store._modulesNamespaceMap[namespace];
  25100. if (( true) && !module) {
  25101. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  25102. }
  25103. return module
  25104. }
  25105. // Credits: borrowed code from fcomb/redux-logger
  25106. function createLogger (ref) {
  25107. if ( ref === void 0 ) ref = {};
  25108. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  25109. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  25110. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  25111. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  25112. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  25113. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  25114. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  25115. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  25116. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  25117. return function (store) {
  25118. var prevState = deepCopy(store.state);
  25119. if (typeof logger === 'undefined') {
  25120. return
  25121. }
  25122. if (logMutations) {
  25123. store.subscribe(function (mutation, state) {
  25124. var nextState = deepCopy(state);
  25125. if (filter(mutation, prevState, nextState)) {
  25126. var formattedTime = getFormattedTime();
  25127. var formattedMutation = mutationTransformer(mutation);
  25128. var message = "mutation " + (mutation.type) + formattedTime;
  25129. startMessage(logger, message, collapsed);
  25130. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  25131. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  25132. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  25133. endMessage(logger);
  25134. }
  25135. prevState = nextState;
  25136. });
  25137. }
  25138. if (logActions) {
  25139. store.subscribeAction(function (action, state) {
  25140. if (actionFilter(action, state)) {
  25141. var formattedTime = getFormattedTime();
  25142. var formattedAction = actionTransformer(action);
  25143. var message = "action " + (action.type) + formattedTime;
  25144. startMessage(logger, message, collapsed);
  25145. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  25146. endMessage(logger);
  25147. }
  25148. });
  25149. }
  25150. }
  25151. }
  25152. function startMessage (logger, message, collapsed) {
  25153. var startMessage = collapsed
  25154. ? logger.groupCollapsed
  25155. : logger.group;
  25156. // render
  25157. try {
  25158. startMessage.call(logger, message);
  25159. } catch (e) {
  25160. logger.log(message);
  25161. }
  25162. }
  25163. function endMessage (logger) {
  25164. try {
  25165. logger.groupEnd();
  25166. } catch (e) {
  25167. logger.log('—— log end ——');
  25168. }
  25169. }
  25170. function getFormattedTime () {
  25171. var time = new Date();
  25172. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  25173. }
  25174. function repeat (str, times) {
  25175. return (new Array(times + 1)).join(str)
  25176. }
  25177. function pad (num, maxLength) {
  25178. return repeat('0', maxLength - num.toString().length) + num
  25179. }
  25180. var index_cjs = {
  25181. Store: Store,
  25182. install: install,
  25183. version: '3.6.2',
  25184. mapState: mapState,
  25185. mapMutations: mapMutations,
  25186. mapGetters: mapGetters,
  25187. mapActions: mapActions,
  25188. createNamespacedHelpers: createNamespacedHelpers,
  25189. createLogger: createLogger
  25190. };
  25191. module.exports = index_cjs;
  25192. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  25193. /***/ }),
  25194. /***/ 49:
  25195. /*!***********************************************************!*\
  25196. !*** D:/work/gitlabcode/product_wx/pages/utils/common.js ***!
  25197. \***********************************************************/
  25198. /*! no static exports found */
  25199. /***/ (function(module, exports, __webpack_require__) {
  25200. "use strict";
  25201. Object.defineProperty(exports, "__esModule", {
  25202. value: true
  25203. });
  25204. exports.default = void 0;
  25205. exports.getUrlParameter = getUrlParameter;
  25206. /**
  25207. * 获取url参数值
  25208. * @param {*} url
  25209. * @param {*} name
  25210. */
  25211. function getUrlParameter(url, name) {
  25212. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  25213. var regex = new RegExp(regexSearch);
  25214. var results = regex.exec(url);
  25215. console.log(results, 'results');
  25216. return results ? window.decodeURIComponent(results[1]) : '';
  25217. }
  25218. var _default = {
  25219. transDate: function transDate(val, pattern) {
  25220. if (val) {
  25221. var time = new Date();
  25222. time.setTime(val);
  25223. if (Date.parse(val)) {
  25224. time = new Date(val);
  25225. }
  25226. if (time instanceof Date) {
  25227. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  25228. }
  25229. }
  25230. return '';
  25231. },
  25232. transBaseDateTime: function transBaseDateTime(val, pattern) {
  25233. if (val) {
  25234. var time = new Date();
  25235. time.setTime(val);
  25236. if (Date.parse(val)) {
  25237. time = new Date(val);
  25238. }
  25239. if (time instanceof Date) {
  25240. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  25241. }
  25242. }
  25243. return '';
  25244. },
  25245. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  25246. if (val) {
  25247. var time = new Date();
  25248. time.setTime(val);
  25249. if (Date.parse(val)) {
  25250. time = new Date(val);
  25251. }
  25252. if (time instanceof Date) {
  25253. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  25254. }
  25255. }
  25256. return '';
  25257. },
  25258. transServDate: function transServDate(val) {
  25259. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  25260. },
  25261. transServDay: function transServDay(val) {
  25262. return this.transDate(val, 'yyyy-MM-dd');
  25263. },
  25264. isArrayFn: function isArrayFn(value) {
  25265. if (typeof Array.isArray === 'function') {
  25266. return Array.isArray(value);
  25267. } else {
  25268. return Object.prototype.toString.call(value) === '[object Array]';
  25269. }
  25270. },
  25271. transDcMap: function transDcMap(arr) {
  25272. var tMap = {};
  25273. arr.forEach(function (item) {
  25274. tMap[item.value] = item.label;
  25275. });
  25276. return tMap;
  25277. },
  25278. castEval: function castEval(val) {
  25279. // return JSON.parse(val)
  25280. if (val) {
  25281. return eval('(' + val + ')');
  25282. } else {
  25283. return '';
  25284. }
  25285. },
  25286. castString: function castString(val) {
  25287. return JSON.stringify(val);
  25288. },
  25289. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  25290. formatMoney: function formatMoney(amt) {
  25291. if (!amt) return '';
  25292. if (amt.length <= 3) {
  25293. return amt;
  25294. }
  25295. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  25296. return amt;
  25297. }
  25298. var a = RegExp.$1;
  25299. var b = RegExp.$2;
  25300. var c = RegExp.$3;
  25301. var re = new RegExp();
  25302. re.compile('(\\d)(\\d{3})(,|$)');
  25303. while (re.test(b)) {
  25304. b = b.replace(re, '$1,$2$3');
  25305. }
  25306. return a + '' + b + '' + c;
  25307. },
  25308. formatDate: function formatDate(fmt, date) {
  25309. // author: meizz
  25310. var o = {
  25311. 'M+': date.getMonth() + 1,
  25312. // 月份
  25313. 'd+': date.getDate(),
  25314. // 日
  25315. 'h+': date.getHours(),
  25316. // 小时
  25317. 'm+': date.getMinutes(),
  25318. // 分
  25319. 's+': date.getSeconds(),
  25320. // 秒
  25321. 'q+': Math.floor((date.getMonth() + 3) / 3),
  25322. // 季度
  25323. 'S': date.getMilliseconds() // 毫秒
  25324. };
  25325. if (/(y+)/.test(fmt)) {
  25326. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  25327. }
  25328. for (var k in o) {
  25329. if (new RegExp('(' + k + ')').test(fmt)) {
  25330. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  25331. }
  25332. }
  25333. return fmt;
  25334. },
  25335. replaceThumbnail: function replaceThumbnail(urlPath) {
  25336. if (urlPath != null) {
  25337. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  25338. }
  25339. if (urlPath != null) {
  25340. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  25341. }
  25342. return urlPath;
  25343. },
  25344. goBack: function goBack() {
  25345. // window.history.go(-1)
  25346. // self.location = document.referrer
  25347. history.back();
  25348. },
  25349. uuid: function uuid(len, radix) {
  25350. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  25351. var uuid = [];
  25352. var i;
  25353. radix = radix || chars.length;
  25354. if (len) {
  25355. // Compact form
  25356. for (i = 0; i < len; i++) {
  25357. uuid[i] = chars[0 | Math.random() * radix];
  25358. }
  25359. } else {
  25360. // rfc4122, version 4 form
  25361. var r;
  25362. // rfc4122 requires these characters
  25363. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  25364. uuid[14] = '4';
  25365. // Fill in random data. At i==19 set the high bits of clock sequence as
  25366. // per rfc4122, sec. 4.1.5
  25367. for (i = 0; i < 36; i++) {
  25368. if (!uuid[i]) {
  25369. r = 0 | Math.random() * 16;
  25370. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  25371. }
  25372. }
  25373. }
  25374. return uuid.join('');
  25375. },
  25376. handleDicList: function handleDicList(params) {
  25377. // 处理字典值数组
  25378. var obj = {};
  25379. for (var key in params) {
  25380. if (JSON.parse(params[key].dictValue)) {
  25381. obj[key] = JSON.parse(params[key].dictValue);
  25382. } else {
  25383. obj[key] = [];
  25384. }
  25385. }
  25386. return obj;
  25387. }
  25388. };
  25389. exports.default = _default;
  25390. /***/ }),
  25391. /***/ 5:
  25392. /*!**************************************************************!*\
  25393. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  25394. \**************************************************************/
  25395. /*! no static exports found */
  25396. /***/ (function(module, exports, __webpack_require__) {
  25397. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  25398. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  25399. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  25400. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  25401. function _slicedToArray(arr, i) {
  25402. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  25403. }
  25404. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  25405. /***/ }),
  25406. /***/ 50:
  25407. /*!*************************************************************!*\
  25408. !*** D:/work/gitlabcode/product_wx/pages/utils/constant.js ***!
  25409. \*************************************************************/
  25410. /*! no static exports found */
  25411. /***/ (function(module, exports, __webpack_require__) {
  25412. "use strict";
  25413. Object.defineProperty(exports, "__esModule", {
  25414. value: true
  25415. });
  25416. exports.default = exports.BASE_URI = void 0;
  25417. // 系统常量
  25418. // export const BASE_URI = "http://192.168.2.111:9011"; // 正式
  25419. // export const BASE_URI = 'https://www.idea-co-sf.com/gardenProductApi'
  25420. // export const BASE_URI = "http://192.168.3.94:9010"; // 老潘本地
  25421. // export const BASE_URI = "http://192.168.2.107:9011"; // 洮洮本地
  25422. // export const BASE_URI = "http://192.168.2.103:9010"; // 老崔本地
  25423. var BASE_URI = "http://localhost:9011"; // 许峰本地
  25424. // export const BASE_URI = "http://192.168.2.112:9010"; // 陈凡本地
  25425. exports.BASE_URI = BASE_URI;
  25426. var _default = {
  25427. /* 系统常量*/
  25428. // 基础地址
  25429. BASE_URI: BASE_URI
  25430. };
  25431. exports.default = _default;
  25432. /***/ }),
  25433. /***/ 51:
  25434. /*!******************************************************!*\
  25435. !*** D:/work/gitlabcode/product_wx/js_sdk/common.js ***!
  25436. \******************************************************/
  25437. /*! no static exports found */
  25438. /***/ (function(module, exports, __webpack_require__) {
  25439. "use strict";
  25440. /* WEBPACK VAR INJECTION */(function(uni) {
  25441. Object.defineProperty(exports, "__esModule", {
  25442. value: true
  25443. });
  25444. exports.default = void 0;
  25445. exports.getUrlParameter = getUrlParameter;
  25446. exports.showToast = showToast;
  25447. /**
  25448. * 获取url参数值
  25449. * @param {*} url
  25450. * @param {*} name
  25451. */
  25452. function getUrlParameter(url, name) {
  25453. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  25454. var regex = new RegExp(regexSearch);
  25455. var results = regex.exec(url);
  25456. return results ? window.decodeURIComponent(results[1]) : '';
  25457. }
  25458. function showToast(e) {
  25459. uni.showToast({
  25460. title: e,
  25461. icon: 'none',
  25462. mask: true,
  25463. duration: 1000
  25464. });
  25465. }
  25466. var _default = {
  25467. transDate: function transDate(val, pattern) {
  25468. if (val) {
  25469. var time = new Date();
  25470. time.setTime(val);
  25471. if (Date.parse(val)) {
  25472. time = new Date(val);
  25473. }
  25474. if (time instanceof Date) {
  25475. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  25476. }
  25477. }
  25478. return '';
  25479. },
  25480. transBaseDateTime: function transBaseDateTime(val, pattern) {
  25481. if (val) {
  25482. var time = new Date();
  25483. time.setTime(val);
  25484. if (Date.parse(val)) {
  25485. time = new Date(val);
  25486. }
  25487. if (time instanceof Date) {
  25488. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  25489. }
  25490. }
  25491. return '';
  25492. },
  25493. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  25494. if (val) {
  25495. var time = new Date();
  25496. time.setTime(val);
  25497. if (Date.parse(val)) {
  25498. time = new Date(val);
  25499. }
  25500. if (time instanceof Date) {
  25501. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  25502. }
  25503. }
  25504. return '';
  25505. },
  25506. transServDate: function transServDate(val) {
  25507. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  25508. },
  25509. transServDay: function transServDay(val) {
  25510. return this.transDate(val, 'yyyy-MM-dd');
  25511. },
  25512. isArrayFn: function isArrayFn(value) {
  25513. if (typeof Array.isArray === 'function') {
  25514. return Array.isArray(value);
  25515. } else {
  25516. return Object.prototype.toString.call(value) === '[object Array]';
  25517. }
  25518. },
  25519. transDcMap: function transDcMap(arr) {
  25520. var tMap = {};
  25521. arr.forEach(function (item) {
  25522. tMap[item.value] = item.label;
  25523. });
  25524. return tMap;
  25525. },
  25526. castEval: function castEval(val) {
  25527. // return JSON.parse(val)
  25528. if (val) {
  25529. return eval('(' + val + ')');
  25530. } else {
  25531. return '';
  25532. }
  25533. },
  25534. castString: function castString(val) {
  25535. return JSON.stringify(val);
  25536. },
  25537. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  25538. formatMoney: function formatMoney(amt) {
  25539. if (!amt) return '';
  25540. if (amt.length <= 3) {
  25541. return amt;
  25542. }
  25543. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  25544. return amt;
  25545. }
  25546. var a = RegExp.$1;
  25547. var b = RegExp.$2;
  25548. var c = RegExp.$3;
  25549. var re = new RegExp();
  25550. re.compile('(\\d)(\\d{3})(,|$)');
  25551. while (re.test(b)) {
  25552. b = b.replace(re, '$1,$2$3');
  25553. }
  25554. return a + '' + b + '' + c;
  25555. },
  25556. formatDate: function formatDate(fmt, date) {
  25557. // author: meizz
  25558. var o = {
  25559. 'M+': date.getMonth() + 1,
  25560. // 月份
  25561. 'd+': date.getDate(),
  25562. // 日
  25563. 'h+': date.getHours(),
  25564. // 小时
  25565. 'm+': date.getMinutes(),
  25566. // 分
  25567. 's+': date.getSeconds(),
  25568. // 秒
  25569. 'q+': Math.floor((date.getMonth() + 3) / 3),
  25570. // 季度
  25571. 'S': date.getMilliseconds() // 毫秒
  25572. };
  25573. if (/(y+)/.test(fmt)) {
  25574. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  25575. }
  25576. for (var k in o) {
  25577. if (new RegExp('(' + k + ')').test(fmt)) {
  25578. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  25579. }
  25580. }
  25581. return fmt;
  25582. },
  25583. replaceThumbnail: function replaceThumbnail(urlPath) {
  25584. if (urlPath != null) {
  25585. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  25586. }
  25587. if (urlPath != null) {
  25588. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  25589. }
  25590. return urlPath;
  25591. },
  25592. goBack: function goBack() {
  25593. // window.history.go(-1)
  25594. // self.location = document.referrer
  25595. history.back();
  25596. },
  25597. uuid: function uuid(len, radix) {
  25598. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  25599. var uuid = [];
  25600. var i;
  25601. radix = radix || chars.length;
  25602. if (len) {
  25603. // Compact form
  25604. for (i = 0; i < len; i++) {
  25605. uuid[i] = chars[0 | Math.random() * radix];
  25606. }
  25607. } else {
  25608. // rfc4122, version 4 form
  25609. var r;
  25610. // rfc4122 requires these characters
  25611. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  25612. uuid[14] = '4';
  25613. // Fill in random data. At i==19 set the high bits of clock sequence as
  25614. // per rfc4122, sec. 4.1.5
  25615. for (i = 0; i < 36; i++) {
  25616. if (!uuid[i]) {
  25617. r = 0 | Math.random() * 16;
  25618. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  25619. }
  25620. }
  25621. }
  25622. return uuid.join('');
  25623. }
  25624. };
  25625. exports.default = _default;
  25626. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25627. /***/ }),
  25628. /***/ 52:
  25629. /*!****************************************************!*\
  25630. !*** D:/work/gitlabcode/product_wx/js_sdk/auth.js ***!
  25631. \****************************************************/
  25632. /*! no static exports found */
  25633. /***/ (function(module, exports, __webpack_require__) {
  25634. "use strict";
  25635. /* WEBPACK VAR INJECTION */(function(uni) {
  25636. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25637. Object.defineProperty(exports, "__esModule", {
  25638. value: true
  25639. });
  25640. exports.default = void 0;
  25641. var _common = _interopRequireDefault(__webpack_require__(/*! ./common.js */ 51));
  25642. var _default = {
  25643. TYPE_FRAME: 'FRAME',
  25644. TYPE_BIZ: 'BIZ',
  25645. TYPE_USER: 'USER',
  25646. TYPE_PERSON_BIZ: 'BIZ_PERSON',
  25647. // ------------------------------ User -----------------------------------
  25648. uid: function uid() {
  25649. return this.currUser() ? this.currUser().id : null;
  25650. },
  25651. setUser: function setUser(value) {
  25652. uni.setStorage({
  25653. key: 'laocui_user_token',
  25654. data: value,
  25655. success: function success() {}
  25656. });
  25657. },
  25658. setUserInfo: function setUserInfo(value) {
  25659. uni.setStorage({
  25660. key: 'laocui_user_info',
  25661. data: JSON.stringify(value),
  25662. success: function success() {}
  25663. });
  25664. },
  25665. currUser: function currUser() {
  25666. return _common.default.castEval(localStorage.getItem(this.userKey()) || '');
  25667. },
  25668. removeUser: function removeUser() {
  25669. uni.removeStorage(this.userKey());
  25670. },
  25671. // ------------------------------ Biz -----------------------------------
  25672. bid: function bid() {
  25673. return this.currBiz() ? this.currBiz().id : null;
  25674. },
  25675. setBiz: function setBiz(value) {
  25676. sessionStorage.setItem(this.bizKey(), JSON.stringify(value));
  25677. },
  25678. removeBiz: function removeBiz() {
  25679. sessionStorage.removeItem(this.bizKey());
  25680. },
  25681. currBiz: function currBiz() {
  25682. return _common.default.castEval(sessionStorage.getItem(this.bizKey()) || null);
  25683. },
  25684. // ------------------------------ Token -----------------------------------
  25685. setToken: function setToken(token) {
  25686. localStorage.setItem(this.tokenKey(), token);
  25687. },
  25688. getToken: function getToken() {
  25689. return localStorage.getItem(this.tokenKey()) || null;
  25690. },
  25691. removeToken: function removeToken() {
  25692. localStorage.removeItem(this.tokenKey());
  25693. },
  25694. // ------------------------------ key -----------------------------------
  25695. // bizKey: function() {
  25696. // const key = this.hashCode(window.location.host + '_biz_' + this.getUserType())
  25697. // return key
  25698. // },
  25699. //
  25700. // userKey: function() {
  25701. // const key = this.hashCode(window.location.host + '_user_' + this.getUserType())
  25702. // return key
  25703. // },
  25704. //
  25705. // tokenKey: function() {
  25706. // const key = this.hashCode(window.location.host + '_token_' + this.getUserType())
  25707. // return key
  25708. // },
  25709. // Frame
  25710. setLoginInfo: function setLoginInfo(value) {
  25711. localStorage.setItem('KEY_ADMIN_USER_LOGIN_INFO', JSON.stringify(value));
  25712. },
  25713. getLoginInfo: function getLoginInfo() {
  25714. return _common.default.castEval(localStorage.getItem('KEY_ADMIN_USER_LOGIN_INFO') || null);
  25715. },
  25716. removeLoginInfo: function removeLoginInfo() {
  25717. localStorage.removeItem('KEY_ADMIN_USER_LOGIN_INFO');
  25718. },
  25719. // Biz
  25720. setBizLoginInfo: function setBizLoginInfo(value) {
  25721. localStorage.setItem('KEY_BIZ_USER_LOGIN_INFO', JSON.stringify(value));
  25722. },
  25723. getBizLoginInfo: function getBizLoginInfo() {
  25724. return _common.default.castEval(localStorage.getItem('KEY_BIZ_USER_LOGIN_INFO') || null);
  25725. },
  25726. removeBizLoginInfo: function removeBizLoginInfo() {
  25727. localStorage.removeItem('KEY_BIZ_USER_LOGIN_INFO');
  25728. },
  25729. setUserType: function setUserType(value) {
  25730. localStorage.setItem('KEY_USER_TYPE', value);
  25731. },
  25732. getUserType: function getUserType() {
  25733. return localStorage.getItem('KEY_USER_TYPE') || 'TYPE_FRAME';
  25734. },
  25735. hashCode: function hashCode(str) {
  25736. var hash = 0;
  25737. if (str.length === 0) return hash;
  25738. for (var i = 0; i < str.length; i++) {
  25739. var char = str.charCodeAt(i);
  25740. hash = (hash << 5) - hash + char;
  25741. hash = hash & hash; // Convert to 32bit integer
  25742. }
  25743. return hash;
  25744. },
  25745. /*
  25746. 定时缓存
  25747. */
  25748. setTimingLocalStorage: function setTimingLocalStorage(key, value, ttl_ms) {
  25749. var data = {
  25750. value: value,
  25751. expirse: new Date(ttl_ms).getTime()
  25752. };
  25753. localStorage.setItem(key, JSON.stringify(data));
  25754. },
  25755. getTimingLocalStorage: function getTimingLocalStorage(key) {
  25756. var data = JSON.parse(localStorage.getItem(key));
  25757. if (data !== null) {
  25758. if (data.expirse == null || data.expirse != null && data.expirse < new Date().getTime()) {
  25759. localStorage.removeItem(key);
  25760. } else {
  25761. return JSON.parse(data.value);
  25762. }
  25763. }
  25764. return null;
  25765. }
  25766. };
  25767. exports.default = _default;
  25768. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25769. /***/ }),
  25770. /***/ 53:
  25771. /*!*********************************************************************!*\
  25772. !*** D:/work/gitlabcode/product_wx/js_sdk/request/requestConfig.js ***!
  25773. \*********************************************************************/
  25774. /*! no static exports found */
  25775. /***/ (function(module, exports, __webpack_require__) {
  25776. "use strict";
  25777. /* WEBPACK VAR INJECTION */(function(uni) {
  25778. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25779. Object.defineProperty(exports, "__esModule", {
  25780. value: true
  25781. });
  25782. exports.default = void 0;
  25783. var _request = _interopRequireDefault(__webpack_require__(/*! ./request */ 54));
  25784. var _config = _interopRequireDefault(__webpack_require__(/*! config */ 55));
  25785. // import store from "../../store/index.js";
  25786. uni.getStorage({
  25787. key: 'storage_key',
  25788. success: function success(res) {
  25789. console.log(res.data);
  25790. }
  25791. });
  25792. //可以new多个request来支持多个域名请求
  25793. var $http = new _request.default({
  25794. //接口请求地址
  25795. baseUrl: _config.default.baseUrl,
  25796. //服务器本地上传文件地址
  25797. fileUrl: _config.default.baseUrl,
  25798. //设置请求头
  25799. headers: {
  25800. 'Content-Type': 'application/x-www-form-urlencoded;',
  25801. 'ApiVersion': _config.default.version,
  25802. 'Device': _config.default.device,
  25803. 'Platform': _config.default.platform,
  25804. "Authorization": 'Bearer ' + uni.getStorageSync('laocui_user_token')
  25805. },
  25806. //以下是默认值可不写
  25807. //是否提示--默认提示
  25808. isPrompt: true,
  25809. //是否显示请求动画
  25810. load: true,
  25811. //是否使用处理数据模板
  25812. isFactory: true,
  25813. //列表接口是否有加载判断
  25814. loadMore: true
  25815. });
  25816. //当前接口请求数
  25817. var requestNum = 0;
  25818. //请求开始拦截器
  25819. $http.requestStart = function (options) {
  25820. console.log("$http.requestSta", options);
  25821. for (var key in options.data) {
  25822. if (options.data[key] == null) {
  25823. delete options.data[key];
  25824. }
  25825. }
  25826. if (requestNum <= 0) {
  25827. uni.showNavigationBarLoading();
  25828. if (options.load) {
  25829. //打开加载动画
  25830. uni.showLoading({
  25831. title: '加载中',
  25832. mask: true
  25833. });
  25834. }
  25835. }
  25836. requestNum += 1;
  25837. //请求前加入token
  25838. options.headers['Authorization'] = 'Bearer ' + uni.getStorageSync('laocui_user_token');
  25839. console.log(uni.getStorageSync('USERINFO'));
  25840. options.headers['requestHanderAuth'] = uni.getStorageSync('USERINFO') ? JSON.parse(uni.getStorageSync('USERINFO')).requestHanderAuth : '';
  25841. // console.log("请求开始前", options);
  25842. return options;
  25843. };
  25844. //请求结束
  25845. $http.requestEnd = function (options, resolve) {
  25846. //判断当前接口是否需要加载动画
  25847. requestNum = requestNum - 1;
  25848. if (requestNum <= 0) {
  25849. uni.hideLoading();
  25850. uni.hideNavigationBarLoading();
  25851. }
  25852. if (resolve.errMsg && (resolve.errMsg != "request:ok" || resolve.statusCode && resolve.statusCode != 200)) {
  25853. uni.showToast({
  25854. title: "网络错误,请检查一下网络",
  25855. mask: true,
  25856. icon: "none"
  25857. });
  25858. }
  25859. };
  25860. //登录弹窗次数
  25861. var loginPopupNum = 0;
  25862. //所有接口数据处理(可在接口里设置不调用此方法)
  25863. $http.dataFactory = function (options, resolve) {
  25864. //设置回调默认值
  25865. var callback = {
  25866. //success数据是否请求成功状态
  25867. success: false,
  25868. //这里返回的数据就是调用请求方法收到的数据
  25869. result: ""
  25870. };
  25871. // 特殊接口处理 接口报请先登录 跳转登录
  25872. if (resolve.data.code === 101) {
  25873. uni.showModal({
  25874. title: '提示',
  25875. content: resolve.data.msg,
  25876. showCancel: false,
  25877. success: function success() {
  25878. uni.setStorageSync('token', null);
  25879. uni.navigateTo({
  25880. url: '/pages/login/login'
  25881. });
  25882. }
  25883. });
  25884. return false;
  25885. }
  25886. if (resolve.data) {
  25887. callback.result = resolve.data;
  25888. callback.success = true;
  25889. uni.stopPullDownRefresh();
  25890. return callback;
  25891. }
  25892. //判断数据是否请求成功
  25893. if (resolve.data.errmsg == "成功") {
  25894. callback.success = true;
  25895. callback.result = resolve.data;
  25896. } else if (resolve.data.errno == 303) {
  25897. uni.redirectTo({
  25898. url: '/pages/subPackages/pages/login/login'
  25899. });
  25900. this.$showToast('令牌过期,请重新登陆');
  25901. } else {
  25902. uni.showToast({
  25903. title: resolve.data.errmsg,
  25904. icon: "none",
  25905. mask: true,
  25906. duration: 2000
  25907. });
  25908. //设置可以提示的时候
  25909. // if (options.isPrompt) {
  25910. // setTimeout(function () {
  25911. //提示后台接口抛出的错误信息
  25912. // uni.showToast({
  25913. // title: resolve.data.msg,
  25914. // icon: "none",
  25915. // duration: 3000
  25916. // });
  25917. // }, 500);
  25918. // }
  25919. callback.result = resolve.data;
  25920. callback.success = true;
  25921. }
  25922. uni.stopPullDownRefresh();
  25923. console.log('callback', callback);
  25924. return callback;
  25925. };
  25926. var _default = $http;
  25927. exports.default = _default;
  25928. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25929. /***/ }),
  25930. /***/ 54:
  25931. /*!***************************************************************!*\
  25932. !*** D:/work/gitlabcode/product_wx/js_sdk/request/request.js ***!
  25933. \***************************************************************/
  25934. /*! no static exports found */
  25935. /***/ (function(module, exports, __webpack_require__) {
  25936. "use strict";
  25937. /* WEBPACK VAR INJECTION */(function(uni) {
  25938. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25939. Object.defineProperty(exports, "__esModule", {
  25940. value: true
  25941. });
  25942. exports.default = void 0;
  25943. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  25944. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  25945. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  25946. var request = /*#__PURE__*/function () {
  25947. function request(options) {
  25948. (0, _classCallCheck2.default)(this, request);
  25949. //请求公共地址
  25950. this.baseUrl = options.baseUrl || "";
  25951. //公共文件上传请求地址
  25952. this.fileUrl = options.fileUrl || "";
  25953. //默认请求头
  25954. this.headers = options.headers || {};
  25955. //默认配置
  25956. this.config = {
  25957. isPrompt: options.isPrompt === false ? false : true,
  25958. load: options.load === false ? false : true,
  25959. isFactory: options.isFactory === false ? false : true,
  25960. loadMore: options.loadMore === false ? false : true
  25961. };
  25962. }
  25963. // 获取默认信息
  25964. (0, _createClass2.default)(request, [{
  25965. key: "getDefault",
  25966. value: function getDefault(url, options, type) {
  25967. //判断url是不是链接
  25968. var urlType = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~/])+$/.test(url);
  25969. var httpUrl;
  25970. if (type == "file") {
  25971. httpUrl = urlType ? url : this.fileUrl + url;
  25972. } else {
  25973. httpUrl = urlType ? url : this.baseUrl + url;
  25974. }
  25975. var config = Object.assign({}, this.config, options);
  25976. //请求地址
  25977. config.httpUrl = httpUrl;
  25978. //请求头
  25979. config.headers = Object.assign(this.headers, options.headers);
  25980. return config;
  25981. }
  25982. //post请求
  25983. }, {
  25984. key: "post",
  25985. value: function post() {
  25986. var _this2 = this;
  25987. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25988. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25989. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25990. var requestInfo = this.getDefault(url, options, "data");
  25991. requestInfo.data = data;
  25992. return new Promise(function (resolve, reject) {
  25993. _this2.getRequest("POST", requestInfo, function (state, response) {
  25994. //是否用外部的数据处理方法
  25995. if (state && requestInfo.isFactory && _this2.dataFactory) {
  25996. //数据处理
  25997. var factoryInfo = _this2.dataFactory(requestInfo, response);
  25998. // console.log(factoryInfo)
  25999. return resolve(factoryInfo.result);
  26000. // factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  26001. } else {
  26002. // console.log(response, response)
  26003. state ? resolve(response) : reject(response);
  26004. }
  26005. });
  26006. });
  26007. }
  26008. //get请求
  26009. }, {
  26010. key: "get",
  26011. value: function get() {
  26012. var _this3 = this;
  26013. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  26014. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  26015. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  26016. var requestInfo = this.getDefault(url, options, "data");
  26017. requestInfo.data = data;
  26018. return new Promise(function (resolve, reject) {
  26019. _this3.getRequest("GET", requestInfo, function (state, response) {
  26020. //是否用外部的数据处理方法
  26021. if (state && requestInfo.isFactory && _this3.dataFactory) {
  26022. //数据处理
  26023. var factoryInfo = _this3.dataFactory(requestInfo, response);
  26024. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  26025. } else {
  26026. state ? resolve(response) : reject(response);
  26027. }
  26028. });
  26029. });
  26030. }
  26031. //put请求
  26032. }, {
  26033. key: "put",
  26034. value: function put() {
  26035. var _this4 = this;
  26036. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  26037. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  26038. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  26039. var requestInfo = this.getDefault(url, options, "data");
  26040. requestInfo.data = data;
  26041. return new Promise(function (resolve, reject) {
  26042. _this4.getRequest("PUT", requestInfo, function (state, response) {
  26043. //是否用外部的数据处理方法
  26044. if (state && requestInfo.isFactory && _this4.dataFactory) {
  26045. //数据处理
  26046. var factoryInfo = _this4.dataFactory(requestInfo, response);
  26047. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  26048. } else {
  26049. state ? resolve(response) : reject(response);
  26050. }
  26051. });
  26052. });
  26053. }
  26054. //delete请求
  26055. }, {
  26056. key: "delete",
  26057. value: function _delete() {
  26058. var _this5 = this;
  26059. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  26060. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  26061. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  26062. var requestInfo = this.getDefault(url, options, "data");
  26063. requestInfo.data = data;
  26064. return new Promise(function (resolve, reject) {
  26065. _this5.getRequest("DELETE", requestInfo, function (state, response) {
  26066. //是否用外部的数据处理方法
  26067. if (state && requestInfo.isFactory && _this5.dataFactory) {
  26068. //数据处理
  26069. var factoryInfo = _this5.dataFactory(requestInfo, response);
  26070. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  26071. } else {
  26072. state ? resolve(response) : reject(response);
  26073. }
  26074. });
  26075. });
  26076. }
  26077. //接口请求方法
  26078. }, {
  26079. key: "getRequest",
  26080. value: function getRequest(ajaxType, options, callback) {
  26081. var _this6 = this;
  26082. //请求前回调
  26083. if (this.requestStart) {
  26084. options.method = ajaxType;
  26085. var requestStart = this.requestStart(options);
  26086. if ((0, _typeof2.default)(requestStart) == "object") {
  26087. options.data = requestStart.data;
  26088. options.headers = requestStart.headers;
  26089. options.isPrompt = requestStart.isPrompt;
  26090. options.load = requestStart.load;
  26091. options.isFactory = requestStart.isFactory;
  26092. } else {
  26093. callback(false, "请求开始拦截器未通过");
  26094. return;
  26095. }
  26096. }
  26097. // console.log(options.data)
  26098. uni.request({
  26099. url: options.httpUrl,
  26100. data: options.data,
  26101. method: ajaxType,
  26102. //请求类型
  26103. header: options.headers,
  26104. //加入请求头
  26105. success: function success(res) {
  26106. // ;
  26107. //请求完成回调
  26108. _this6.requestEnd && _this6.requestEnd(options, res);
  26109. callback(true, res);
  26110. },
  26111. fail: function fail(err) {
  26112. // console.log(err);
  26113. //请求完成回调
  26114. _this6.requestEnd && _this6.requestEnd(options, err);
  26115. callback(false, err);
  26116. }
  26117. });
  26118. }
  26119. //jsonp请求(只限于H5使用)
  26120. }, {
  26121. key: "jsonp",
  26122. value: function jsonp() {
  26123. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  26124. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  26125. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  26126. var requestInfo = this.getDefault(url, options, "data");
  26127. var dataStr = '';
  26128. Object.keys(data).forEach(function (key) {
  26129. dataStr += key + '=' + data[key] + '&';
  26130. });
  26131. //匹配最后一个&并去除
  26132. if (dataStr !== '') {
  26133. dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
  26134. }
  26135. requestInfo.httpUrl = requestInfo.httpUrl + '?' + dataStr;
  26136. var _this = this;
  26137. return new Promise(function (resolve, reject) {
  26138. var callbackName = "callback" + Math.ceil(Math.random() * 1000000);
  26139. if (_this.requestStart) {
  26140. requestInfo.data = data;
  26141. var requestStart = _this.requestStart(requestInfo);
  26142. if ((0, _typeof2.default)(requestStart) == "object") {
  26143. requestInfo.data = requestStart.data;
  26144. requestInfo.headers = requestStart.headers;
  26145. requestInfo.isPrompt = requestStart.isPrompt;
  26146. requestInfo.load = requestStart.load;
  26147. requestInfo.isFactory = requestStart.isFactory;
  26148. } else {
  26149. reject("请求开始拦截器未通过");
  26150. return;
  26151. }
  26152. }
  26153. window[callbackName] = function (data) {
  26154. resolve(data);
  26155. };
  26156. var script = document.createElement("script");
  26157. script.src = requestInfo.httpUrl + "&callback=" + callbackName;
  26158. document.head.appendChild(script);
  26159. // 及时删除,防止加载过多的JS
  26160. document.head.removeChild(script);
  26161. //请求完成回调
  26162. _this.requestEnd && _this.requestEnd(requestInfo, {});
  26163. });
  26164. }
  26165. //本地服务器图片上传
  26166. }, {
  26167. key: "urlImgUpload",
  26168. value: function urlImgUpload() {
  26169. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  26170. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  26171. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  26172. var requestInfo = this.getDefault(url, options, "file");
  26173. requestInfo.data = data;
  26174. var _this = this;
  26175. return new Promise(function (resolve, reject) {
  26176. uni.chooseImage({
  26177. count: data.count || 9,
  26178. //默认9
  26179. sizeType: data.sizeType || ['original', 'compressed'],
  26180. //可以指定是原图还是压缩图,默认二者都有
  26181. sourceType: data.sourceType || ['album', 'camera'],
  26182. //从相册选择
  26183. success: function success(res) {
  26184. _this.urlFileUpload(requestInfo, res.tempFiles, function (state, response) {
  26185. state ? resolve(response) : reject(response);
  26186. });
  26187. }
  26188. });
  26189. });
  26190. }
  26191. //本地服务器文件上传方法
  26192. }, {
  26193. key: "urlFileUpload",
  26194. value: function urlFileUpload(options, files, callback) {
  26195. var _this = this;
  26196. //请求前回调
  26197. if (this.requestStart) {
  26198. options.method = "FILE";
  26199. var requestStart = this.requestStart(options);
  26200. if ((0, _typeof2.default)(requestStart) == "object") {
  26201. if ((0, _typeof2.default)(requestStart) == "object") {
  26202. options.data = requestStart.data;
  26203. options.headers = requestStart.headers;
  26204. options.isPrompt = requestStart.isPrompt;
  26205. options.load = requestStart.load;
  26206. options.isFactory = requestStart.isFactory;
  26207. } else {
  26208. callback(false, "请求开始拦截器未通过");
  26209. return;
  26210. }
  26211. }
  26212. }
  26213. var len = files.length - 1;
  26214. var fileList = new Array();
  26215. fileUpload(0);
  26216. function fileUpload(i) {
  26217. var config = {
  26218. url: options.httpUrl,
  26219. filePath: files[i].path,
  26220. header: options.headers,
  26221. //加入请求头
  26222. name: options.name || "file",
  26223. success: function success(response) {
  26224. response.data = JSON.parse(response.data);
  26225. //请求完成回调
  26226. _this.requestEnd && _this.requestEnd(options, response);
  26227. //是否用外部的数据处理方法
  26228. if (options.isFactory && _this.dataFactory) {
  26229. //数据处理
  26230. var factoryInfo = _this.dataFactory(options, response);
  26231. if (factoryInfo.success) {
  26232. fileList.push(factoryInfo.result);
  26233. if (len <= i) {
  26234. callback(true, fileList);
  26235. } else {
  26236. fileUpload(i + 1);
  26237. }
  26238. } else {
  26239. callback(false, factoryInfo.result);
  26240. }
  26241. } else {
  26242. fileList.push(response.data);
  26243. if (len <= i) {
  26244. callback(true, fileList);
  26245. } else {
  26246. fileUpload(i + 1);
  26247. }
  26248. }
  26249. },
  26250. fail: function fail(err) {
  26251. //请求完成回调
  26252. _this.requestEnd && _this.requestEnd(options, err);
  26253. callback(false, err);
  26254. }
  26255. };
  26256. if (options.data) {
  26257. config.formData = options.data;
  26258. }
  26259. uni.uploadFile(config);
  26260. }
  26261. }
  26262. }]);
  26263. return request;
  26264. }();
  26265. exports.default = request;
  26266. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26267. /***/ }),
  26268. /***/ 55:
  26269. /*!***********************************************!*\
  26270. !*** D:/work/gitlabcode/product_wx/config.js ***!
  26271. \***********************************************/
  26272. /*! no static exports found */
  26273. /***/ (function(module, exports, __webpack_require__) {
  26274. "use strict";
  26275. /* WEBPACK VAR INJECTION */(function(uni) {
  26276. Object.defineProperty(exports, "__esModule", {
  26277. value: true
  26278. });
  26279. exports.default = void 0;
  26280. var _constant = __webpack_require__(/*! ./pages/utils/constant.js */ 50);
  26281. // console.log(BASE_URI)
  26282. var baseUrl = _constant.BASE_URI;
  26283. var device, platform;
  26284. device = uni.getSystemInfoSync().brand + ' ' + uni.getSystemInfoSync().model;
  26285. platform = 'wxmini';
  26286. // app版本
  26287. var version = "1.0";
  26288. // 高德地图 key
  26289. var key = "53ea64b17287b1f7323e9f29870af813";
  26290. var _default = {
  26291. device: device,
  26292. version: version,
  26293. platform: platform,
  26294. key: key,
  26295. baseUrl: baseUrl
  26296. };
  26297. exports.default = _default;
  26298. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26299. /***/ }),
  26300. /***/ 6:
  26301. /*!***************************************************************!*\
  26302. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  26303. \***************************************************************/
  26304. /*! no static exports found */
  26305. /***/ (function(module, exports) {
  26306. function _arrayWithHoles(arr) {
  26307. if (Array.isArray(arr)) return arr;
  26308. }
  26309. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  26310. /***/ }),
  26311. /***/ 62:
  26312. /*!****************************************************!*\
  26313. !*** D:/work/gitlabcode/product_wx/js_sdk/http.js ***!
  26314. \****************************************************/
  26315. /*! no static exports found */
  26316. /***/ (function(module, exports, __webpack_require__) {
  26317. "use strict";
  26318. /* WEBPACK VAR INJECTION */(function(uni) {
  26319. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26320. Object.defineProperty(exports, "__esModule", {
  26321. value: true
  26322. });
  26323. exports.activityList = activityList;
  26324. exports.add = add;
  26325. exports.addCompanyExamine = addCompanyExamine;
  26326. exports.addInterview = addInterview;
  26327. exports.addRectificationManagement = addRectificationManagement;
  26328. exports.addRepair = addRepair;
  26329. exports.addSafetySelfCheckingManage = addSafetySelfCheckingManage;
  26330. exports.addSafetySelfCheckingPlan = addSafetySelfCheckingPlan;
  26331. exports.addZaiti = addZaiti;
  26332. exports.addyixiang = addyixiang;
  26333. exports.cancelAppoint = cancelAppoint;
  26334. exports.clickCollect = clickCollect;
  26335. exports.companyECdit = companyECdit;
  26336. exports.companyExamineAdd = companyExamineAdd;
  26337. exports.confirmAudit = confirmAudit;
  26338. exports.editHomeCommunityActivity = editHomeCommunityActivity;
  26339. exports.editInterview = editInterview;
  26340. exports.editPassword = editPassword;
  26341. exports.editRepair = editRepair;
  26342. exports.editSave = editSave;
  26343. exports.fillControllerEditSave = fillControllerEditSave;
  26344. exports.fillControllerList = fillControllerList;
  26345. exports.findAllSimpleCompanies = findAllSimpleCompanies;
  26346. exports.findBillManagementMoreForCollect = findBillManagementMoreForCollect;
  26347. exports.findCompanyInfoList = findCompanyInfoList;
  26348. exports.findCompanyList = findCompanyList;
  26349. exports.findCompanyTags = findCompanyTags;
  26350. exports.findDeptList = findDeptList;
  26351. exports.findLongPanList = findLongPanList;
  26352. exports.findLouDongList = findLouDongList;
  26353. exports.findRectificationManagementInOutById = findRectificationManagementInOutById;
  26354. exports.findRectificationManagementInOutList = findRectificationManagementInOutList;
  26355. exports.findRoomByCondition = findRoomByCondition;
  26356. exports.findRoomInfoListByIds = findRoomInfoListByIds;
  26357. exports.findSafetySelfCheckingManageList = findSafetySelfCheckingManageList;
  26358. exports.findSafetySelfCheckingManagetById = findSafetySelfCheckingManagetById;
  26359. exports.findSafetySelfCheckingPlanById = findSafetySelfCheckingPlanById;
  26360. exports.findSafetySelfCheckingPlanList = findSafetySelfCheckingPlanList;
  26361. exports.findTrackUserList = findTrackUserList;
  26362. exports.findUserListByRoleWuye = findUserListByRoleWuye;
  26363. exports.findYuanQuList = findYuanQuList;
  26364. exports.getActivationRanking = getActivationRanking;
  26365. exports.getActivityById = getActivityById;
  26366. exports.getAppUserMain = getAppUserMain;
  26367. exports.getBuildDetails = getBuildDetails;
  26368. exports.getByCodes = getByCodes;
  26369. exports.getById = getById;
  26370. exports.getBySaveStatus = getBySaveStatus;
  26371. exports.getByStag = getByStag;
  26372. exports.getCompanyAll = getCompanyAll;
  26373. exports.getCompanyById = getCompanyById;
  26374. exports.getCompanyById2 = getCompanyById2;
  26375. exports.getCompanyHouseDetails = getCompanyHouseDetails;
  26376. exports.getCompanyTags = getCompanyTags;
  26377. exports.getCompanyTagsByQybq = getCompanyTagsByQybq;
  26378. exports.getDetial = getDetial;
  26379. exports.getDispatchToPerson = getDispatchToPerson;
  26380. exports.getHomeCommunityActivityById = getHomeCommunityActivityById;
  26381. exports.getInterviewDetails = getInterviewDetails;
  26382. exports.getInterviewList = getInterviewList;
  26383. exports.getMeetingAppointListApp = getMeetingAppointListApp;
  26384. exports.getMeetingRoomList = getMeetingRoomList;
  26385. exports.getMsgList = getMsgList;
  26386. exports.getParkBriefById = getParkBriefById;
  26387. exports.getParkNoticeById = getParkNoticeById;
  26388. exports.getPartyBranchList = getPartyBranchList;
  26389. exports.getPropertyNoticeById = getPropertyNoticeById;
  26390. exports.getRegistrationInfo = getRegistrationInfo;
  26391. exports.getRepairDispatchById = getRepairDispatchById;
  26392. exports.getRepairList = getRepairList;
  26393. exports.getRoomInfo = getRoomInfo;
  26394. exports.getSelectDeptTwo = getSelectDeptTwo;
  26395. exports.getSelectUserTwo = getSelectUserTwo;
  26396. exports.getTreeData2 = getTreeData2;
  26397. exports.getTreeData6 = getTreeData6;
  26398. exports.getUserDept = getUserDept;
  26399. exports.getUserInfo = getUserInfo;
  26400. exports.getUserLocalStorageInfo = getUserLocalStorageInfo;
  26401. exports.getUserMainHouseKeeper = getUserMainHouseKeeper;
  26402. exports.getUserPower = getUserPower;
  26403. exports.getWxCompanyTags = getWxCompanyTags;
  26404. exports.handleList = handleList;
  26405. exports.homeActivityClickCollect = homeActivityClickCollect;
  26406. exports.insertHomeCommunityActivity = insertHomeCommunityActivity;
  26407. exports.insertRegisSignInfo = insertRegisSignInfo;
  26408. exports.interviewEscalationListAll = interviewEscalationListAll;
  26409. exports.isFinishComInfo = isFinishComInfo;
  26410. exports.isRegistration = isRegistration;
  26411. exports.list = list;
  26412. exports.listAllUserMain = listAllUserMain;
  26413. exports.listApp = listApp;
  26414. exports.listByModel = listByModel;
  26415. exports.listHomeCommunityActivity = listHomeCommunityActivity;
  26416. exports.listVo = listVo;
  26417. exports.login = login;
  26418. exports.loginByCompany = loginByCompany;
  26419. exports.loginByWeixin2 = loginByWeixin2;
  26420. exports.meetingAppoint = meetingAppoint;
  26421. exports.meetingAppointCheck = meetingAppointCheck;
  26422. exports.meetingRoomDetail = meetingRoomDetail;
  26423. exports.newNotice = newNotice;
  26424. exports.noticeParkAdd = noticeParkAdd;
  26425. exports.noticeParkClickCollect = noticeParkClickCollect;
  26426. exports.noticeParkEdit = noticeParkEdit;
  26427. exports.noticeParkGetById = noticeParkGetById;
  26428. exports.noticeParkList = noticeParkList;
  26429. exports.parkFeedbackInfoAdd = parkFeedbackInfoAdd;
  26430. exports.parkFeedbackInfoGetById = parkFeedbackInfoGetById;
  26431. exports.parkFeedbackInfoList = parkFeedbackInfoList;
  26432. exports.parkUserCollectorsList = parkUserCollectorsList;
  26433. exports.peripheryGetById = peripheryGetById;
  26434. exports.peripheryList = peripheryList;
  26435. exports.policyGetById = policyGetById;
  26436. exports.policyList = policyList;
  26437. exports.policyListAll = policyListAll;
  26438. exports.propertyNoticeClickCollect = propertyNoticeClickCollect;
  26439. exports.propertyNoticeList = propertyNoticeList;
  26440. exports.readList = readList;
  26441. exports.removeTagsBind = removeTagsBind;
  26442. exports.repairAdd = repairAdd;
  26443. exports.repairHandleList = repairHandleList;
  26444. exports.repairList = repairList;
  26445. exports.richScan = richScan;
  26446. exports.roomTimeSoltDetail = roomTimeSoltDetail;
  26447. exports.roomTimeSoltUseful = roomTimeSoltUseful;
  26448. exports.saleControllerGetById = saleControllerGetById;
  26449. exports.selectByCompanyId = selectByCompanyId;
  26450. exports.switchCommonUser = switchCommonUser;
  26451. exports.tagCategoryList = tagCategoryList;
  26452. exports.tagInfoList = tagInfoList;
  26453. exports.tagsBind = tagsBind;
  26454. exports.updateListRectificationManagement = updateListRectificationManagement;
  26455. exports.updateRegistration = updateRegistration;
  26456. exports.updateSafetySelfCheckingManage = updateSafetySelfCheckingManage;
  26457. exports.updateSignIn = updateSignIn;
  26458. exports.upload = upload;
  26459. exports.uploadPDF = uploadPDF;
  26460. exports.userList = userList;
  26461. exports.userNoticeAdd = userNoticeAdd;
  26462. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  26463. var _requestConfig = _interopRequireDefault(__webpack_require__(/*! ./request/requestConfig */ 53));
  26464. var _constant = __webpack_require__(/*! ../pages/utils/constant.js */ 50);
  26465. var _qs = _interopRequireDefault(__webpack_require__(/*! qs */ 63));
  26466. 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; }
  26467. 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; }
  26468. var baseUri = '/smartParkH5Server';
  26469. var parkActivity = '/wx/meetingAppoint';
  26470. function login(data) {
  26471. return _requestConfig.default.post('/wx/auth/login_by_app_main?' + _qs.default.stringify(data), {}, {});
  26472. }
  26473. function loginByCompany(data) {
  26474. return _requestConfig.default.post('/wx/auth/loginByCompany', data, {});
  26475. }
  26476. function addRectificationManagement(data) {
  26477. return _requestConfig.default.post('/wx/RectificationController/addRectificationManagement', data, {});
  26478. }
  26479. function loginByWeixin2(code) {
  26480. return _requestConfig.default.post('/wx/auth/login_by_weixin2', code, {});
  26481. }
  26482. function switchCommonUser(code) {
  26483. return _requestConfig.default.post('/wx/auth/switchCommonUser', code, {});
  26484. }
  26485. function getUserLocalStorageInfo() {
  26486. var userInfo = JSON.parse(uni.getStorageSync("USERINFO"));
  26487. return userInfo;
  26488. }
  26489. function uploadPDF() {
  26490. uni.showLoading({
  26491. title: '加载中',
  26492. mask: true
  26493. });
  26494. return new Promise(function (resolve, reject) {
  26495. uni.chooseMessageFile({
  26496. count: 1,
  26497. //默认100
  26498. type: 'file',
  26499. success: function success(res) {
  26500. uni.uploadFile({
  26501. url: _constant.BASE_URI + "/wx/fileController/upload",
  26502. filePath: res.tempFiles[0].path,
  26503. name: "file",
  26504. formData: {
  26505. user: "test"
  26506. },
  26507. success: function success(successRes) {
  26508. // 上传完成需要更新 fileList
  26509. var data = JSON.parse(successRes.data);
  26510. uni.showToast({
  26511. title: '提交成功',
  26512. duration: 500
  26513. });
  26514. resolve({
  26515. url: data.data[0],
  26516. name: res.tempFiles[0].name
  26517. });
  26518. },
  26519. fail: function fail(res) {}
  26520. });
  26521. },
  26522. fail: function fail(e) {
  26523. uni.showToast({
  26524. title: '提交成功',
  26525. duration: 0
  26526. });
  26527. }
  26528. });
  26529. });
  26530. }
  26531. function getBuildDetails(data) {
  26532. return _requestConfig.default.post('/wx/MnpBuildingController/getById', data, {});
  26533. }
  26534. function addZaiti(data) {
  26535. return _requestConfig.default.post('/wx/ParkRoomController/add', data, {});
  26536. }
  26537. function getCompanyById2(data) {
  26538. return _requestConfig.default.post('/wx/roadShow/getCompanyById', data, {});
  26539. }
  26540. function add(data) {
  26541. return _requestConfig.default.post('/wx/repair/add', data, {});
  26542. }
  26543. function getPartyBranchList(data) {
  26544. return _requestConfig.default.post('/wx/partyBranch/getPartyBranchList', data, {});
  26545. }
  26546. function selectByCompanyId(data) {
  26547. return _requestConfig.default.post('/wx/SocialCarrierController/selectByCompanyId', data, {});
  26548. }
  26549. function getTreeData2(data) {
  26550. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData2', data, {});
  26551. }
  26552. function getTreeData6(data) {
  26553. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData6', data, {});
  26554. }
  26555. function getActivationRanking(data) {
  26556. return _requestConfig.default.post('/wx/partyBranch/getActivationRanking', data, {});
  26557. }
  26558. function findRectificationManagementInOutList(data) {
  26559. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutList', data, {});
  26560. }
  26561. function findRectificationManagementInOutById(e) {
  26562. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutById', {
  26563. id: e
  26564. }, {});
  26565. }
  26566. function repairList(data) {
  26567. return _requestConfig.default.post('/wx/repair/list', data, {});
  26568. }
  26569. function repairHandleList(data) {
  26570. return _requestConfig.default.post('/wx/repair/handleList', data, {});
  26571. }
  26572. function addSafetySelfCheckingManage(data) {
  26573. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingManage', data, {});
  26574. }
  26575. function updateSafetySelfCheckingManage(data) {
  26576. return _requestConfig.default.post('/wx/SafetyController/updateSafetySelfCheckingManage', data, {});
  26577. }
  26578. function editRepair(data) {
  26579. return _requestConfig.default.post('/wx/repair/edit', data, {});
  26580. }
  26581. function addRepair(data) {
  26582. return _requestConfig.default.post('/wx/repair/add', data, {});
  26583. }
  26584. function getRepairDispatchById(id) {
  26585. return _requestConfig.default.post('/wx/repair/getById', {
  26586. id: id
  26587. }, {});
  26588. }
  26589. function getDispatchToPerson(data) {
  26590. return _requestConfig.default.post('/wx/repair/getDispatchToPerson', data, {});
  26591. }
  26592. function getCompanyById(data) {
  26593. return _requestConfig.default.post('/wx/roadShow/getCompanyById', data, {});
  26594. }
  26595. function getWxCompanyTags(e) {
  26596. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  26597. }
  26598. function tagsBind(e) {
  26599. return _requestConfig.default.post('/wx/MnpTagInfoController/bind', e, {});
  26600. }
  26601. function getDetial(e) {
  26602. return _requestConfig.default.post('/wx/meetingAppoint/meetingAppointDetail', e, {});
  26603. }
  26604. function saleControllerGetById(e) {
  26605. return _requestConfig.default.post('/wx/SaleController/getById', {
  26606. id: e
  26607. }, {});
  26608. }
  26609. function getAppUserMain(data) {
  26610. return _requestConfig.default.post('/wx/company/getById', data, {});
  26611. }
  26612. function confirmAudit(data) {
  26613. return _requestConfig.default.post('/wx/meetingAppoint/confirmAudit', data, {});
  26614. }
  26615. function getCompanyTags(e) {
  26616. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags', e, {});
  26617. }
  26618. function getCompanyTagsByQybq(qybq) {
  26619. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTagsByQybq', {
  26620. qybq: qybq
  26621. }, {});
  26622. }
  26623. function companyECdit(data) {
  26624. return _requestConfig.default.post('/wx/company/edit', data, {});
  26625. }
  26626. function tagInfoList(e) {
  26627. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  26628. }
  26629. function findDeptList() {
  26630. return _requestConfig.default.post('/wx/SaleController/findDeptList', {}, {});
  26631. }
  26632. function tagCategoryList() {
  26633. return _requestConfig.default.post('/wx/MnpTagController/tagCategoryList', {}, {});
  26634. }
  26635. function interviewEscalationListAll(id) {
  26636. return _requestConfig.default.post('/wx/interviewEscalation/listAll', {
  26637. companyId: id
  26638. }, {});
  26639. }
  26640. function getUserInfo(data) {
  26641. var laocui_user_info = JSON.parse(uni.getStorageSync('laocui_user_info'));
  26642. return _requestConfig.default.post('/wx/frameUser/getMyInfo?userId=' + laocui_user_info.user.id, {}, {});
  26643. }
  26644. function getRoomInfo(e) {
  26645. return _requestConfig.default.post('/wx/ParkRoomController/getById', {
  26646. id: e
  26647. }, {});
  26648. }
  26649. function getCompanyHouseDetails(e) {
  26650. return _requestConfig.default.post('/wx/company/getById', {
  26651. id: e
  26652. }, {});
  26653. }
  26654. function handleList(e) {
  26655. return _requestConfig.default.post('/wx/workPaneController/handleList', e, {});
  26656. }
  26657. function readList(e) {
  26658. return _requestConfig.default.post('/wx/workPaneController/readList', e, {});
  26659. }
  26660. // handleList?
  26661. function findCompanyTags(e) {
  26662. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags/' + e, {}, {});
  26663. }
  26664. function removeTagsBind(e) {
  26665. return _requestConfig.default.post('/wx/MnpTagInfoController/removeBind', e, {});
  26666. }
  26667. function addInterview(e) {
  26668. return _requestConfig.default.post("/wx/interviewEscalation/add", e, {});
  26669. }
  26670. function editInterview(e) {
  26671. return _requestConfig.default.post("/wx/interviewEscalation/edit", e, {});
  26672. }
  26673. function getInterviewList(e) {
  26674. return _requestConfig.default.post("/wx/interviewEscalation/list", e, {});
  26675. }
  26676. function getInterviewDetails(e) {
  26677. return _requestConfig.default.post("/wx/interviewEscalation/getById", {
  26678. id: e
  26679. }, {});
  26680. }
  26681. function findSafetySelfCheckingPlanById(e) {
  26682. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanById", {
  26683. id: e
  26684. }, {});
  26685. }
  26686. //
  26687. function findSafetySelfCheckingPlanList(e) {
  26688. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanList", e, {});
  26689. }
  26690. function getBySaveStatus(e) {
  26691. return _requestConfig.default.post("/wx/interviewEscalation/getBySaveStatus", {
  26692. createdBy: e
  26693. }, {});
  26694. }
  26695. function companyExamineAdd(e) {
  26696. return _requestConfig.default.post("/wx/company/add", e, {});
  26697. }
  26698. function listByModel(e) {
  26699. return _requestConfig.default.post('/wx/SaleController/findSaleManagementListByRoomId', e, {});
  26700. }
  26701. function listVo(e) {
  26702. // 查询园区列表,不需要参数
  26703. return _requestConfig.default.post('/wx/company/listVo', e, {});
  26704. }
  26705. // /wx/SafetyController/addSafetySelfCheckingPlan
  26706. function addSafetySelfCheckingPlan(e) {
  26707. // 查询园区列表,不需要参数
  26708. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingPlan', _objectSpread({}, e), {});
  26709. }
  26710. function findSafetySelfCheckingManagetById(e) {
  26711. // 查询园区列表,不需要参数
  26712. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManagetById', {
  26713. id: e
  26714. }, {});
  26715. }
  26716. function findSafetySelfCheckingManageList(e) {
  26717. // 查询园区列表,不需要参数
  26718. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManageList', e, {});
  26719. }
  26720. function findYuanQuList() {
  26721. // 查询园区列表,不需要参数
  26722. return _requestConfig.default.post('/wx/SaleController/findYuanQuList', {}, {});
  26723. }
  26724. function findLongPanList(id) {
  26725. // 用园区ID查询楼盘列表
  26726. return _requestConfig.default.post('/wx/SaleController/findLouPanList', {
  26727. id: id
  26728. }, {});
  26729. }
  26730. function findLouDongList(id) {
  26731. // 用园区ID查询楼盘列表
  26732. return _requestConfig.default.post('/wx/SaleController/findLouDongList', {
  26733. id: id
  26734. }, {});
  26735. }
  26736. function clickCollect(e) {
  26737. return _requestConfig.default.post('/wx/parkActivity/clickCollect', e, {});
  26738. }
  26739. function insertRegisSignInfo(e) {
  26740. return _requestConfig.default.post('/wx/parkActivity/insertRegisSignInfo', e, {});
  26741. }
  26742. function richScan(e) {
  26743. return _requestConfig.default.post('/wx/parkActivity/richScan', e, {});
  26744. }
  26745. function getActivityById(id, signInCode, userId) {
  26746. return _requestConfig.default.get('/wx/parkActivity/getBySignInCode?id=' + id + '&userId=' + userId + "&signInCode=" + signInCode, {}, {});
  26747. }
  26748. // /wx/userPower/getUserPower?userId=1088765543780974592
  26749. function getUserPower(e) {
  26750. return _requestConfig.default.post('/wx/userPower/getUserPower', {
  26751. userId: e
  26752. }, {});
  26753. }
  26754. function editPassword(e) {
  26755. return _requestConfig.default.post('/wx/frameUser/editPassword', e, {});
  26756. }
  26757. function updateListRectificationManagement(e) {
  26758. return _requestConfig.default.post('/wx/RectificationController/updateListRectificationManagement', e, {});
  26759. }
  26760. // /wx/RectificationController/findUserListByRoleWuye
  26761. function findUserListByRoleWuye() {
  26762. // 用园区ID查询楼盘列表
  26763. return _requestConfig.default.post('/wx/RectificationController/findUserListByRoleWuye', {}, {});
  26764. }
  26765. function listAllUserMain() {
  26766. // 用园区ID查询楼盘列表
  26767. return _requestConfig.default.post('/wx/UserMainExpandController/listAllUserMain', {}, {});
  26768. }
  26769. function userList(e) {
  26770. // http://192.168.2.112:9011/wx/frameUser/userList
  26771. return _requestConfig.default.post('/wx/frameUser/userList', e, {});
  26772. }
  26773. function findAllSimpleCompanies(e) {
  26774. // http://192.168.2.112:9011/wx/frameUser/userList
  26775. return _requestConfig.default.post('/wx/company/findAllSimpleCompanies', {
  26776. searchInfo: e.qymc,
  26777. pageNum: 1,
  26778. pageSize: 10000
  26779. }, {});
  26780. }
  26781. function findTrackUserList() {
  26782. // http://192.168.2.112:9011/wx/frameUser/userList
  26783. return _requestConfig.default.post('/wx/SaleController/findTrackUserList', {}, {});
  26784. }
  26785. function getSelectUserTwo(e) {
  26786. // 用园区ID查询楼盘列表
  26787. return _requestConfig.default.post('/wx/frameUser/getSelectUserTwo', {
  26788. searchName: e
  26789. }, {});
  26790. }
  26791. function getSelectDeptTwo(e) {
  26792. // 用园区ID查询楼盘列表
  26793. return _requestConfig.default.post('/wx/frameUser/getSelectDeptTwo', {
  26794. searchName: e
  26795. }, {});
  26796. }
  26797. function findRoomInfoListByIds(e) {
  26798. // 用园区ID查询楼盘列表
  26799. return _requestConfig.default.post('/wx/SaleController/findRoomInfoListByIds', {
  26800. ids: e
  26801. }, {});
  26802. }
  26803. function findCompanyList() {
  26804. // 用园区ID查询楼盘列表
  26805. return _requestConfig.default.post('/wx/SaleController/findCompanyList', {}, {});
  26806. }
  26807. function addyixiang(e) {
  26808. return _requestConfig.default.post('/wx/SaleController/add', e, {});
  26809. }
  26810. function editSave(e) {
  26811. return _requestConfig.default.post('/wx/SaleController/editSave', e, {});
  26812. }
  26813. function findCompanyInfoList(data) {
  26814. return _requestConfig.default.post("/wx/SaleController/findCompanyInfoList", data, {});
  26815. }
  26816. function findRoomByCondition(params) {
  26817. // 用园区ID查询楼盘列表
  26818. return _requestConfig.default.post('/wx/SaleController/findRoomByCondition', params, {});
  26819. }
  26820. function getCompanyAll(qymc) {
  26821. return _requestConfig.default.post('/wx/company/listAll', {
  26822. qymc: qymc ? qymc : ""
  26823. }, {});
  26824. }
  26825. function getByCodes(params) {
  26826. // 用园区ID查询楼盘列表
  26827. return _requestConfig.default.post('/wx/sysDict/getByCodes', {
  26828. codes: params
  26829. }, {});
  26830. }
  26831. function list(data) {
  26832. return _requestConfig.default.post(parkActivity + '/getMeetingAppointList', data, {});
  26833. }
  26834. function listApp(data) {
  26835. return _requestConfig.default.post(parkActivity + '/getMeetingAppointListApp', data, {});
  26836. }
  26837. function cancelAppoint(data) {
  26838. return _requestConfig.default.post(parkActivity + '/cancelAppoint', data, {});
  26839. }
  26840. // /wx/SaleController/
  26841. function getRepairList(data) {
  26842. return _requestConfig.default.post('/wx/repair/list', data, {});
  26843. }
  26844. function editHomeCommunityActivity(data) {
  26845. return _requestConfig.default.post('/wx/homeActivity/editHomeCommunityActivity', data, {});
  26846. }
  26847. function listHomeCommunityActivity(data) {
  26848. return _requestConfig.default.post('/wx/homeActivity/listHomeCommunityActivity', data, {});
  26849. }
  26850. function insertHomeCommunityActivity(data) {
  26851. return _requestConfig.default.post('/wx/homeActivity/insertHomeCommunityActivity', data, {});
  26852. }
  26853. function activityList(data) {
  26854. return _requestConfig.default.post('/wx/homeActivity/list', data, {});
  26855. }
  26856. // 报名
  26857. function updateRegistration(data) {
  26858. return _requestConfig.default.post('/wx/homeActivity/updateRegistration', data, {});
  26859. }
  26860. // 查询活动详情
  26861. function getHomeCommunityActivityById(data) {
  26862. return _requestConfig.default.post('/wx/homeActivity/getHomeCommunityActivityById', data, {});
  26863. }
  26864. // 查询企业是否报名
  26865. function isRegistration(data) {
  26866. return _requestConfig.default.post('/wx/homeActivity/isRegistration', data, {});
  26867. }
  26868. //查询企业报名信息
  26869. function getRegistrationInfo(data) {
  26870. return _requestConfig.default.post('/wx/homeActivity/getRegistrationInfo', data, {});
  26871. }
  26872. //签到
  26873. function updateSignIn(data) {
  26874. return _requestConfig.default.post('/wx/homeActivity/updateSignIn', data, {});
  26875. }
  26876. function isFinishComInfo(data) {
  26877. return _requestConfig.default.post('/wx/company/isFinishComInfo', data, {});
  26878. }
  26879. function getById(data) {
  26880. return _requestConfig.default.post('/wx/company/getById', data, {});
  26881. }
  26882. function addCompanyExamine(data) {
  26883. return _requestConfig.default.post('/wx/companyExamine/add', data, {});
  26884. }
  26885. function upload(data) {
  26886. return _requestConfig.default.post('/wx/fileController/upload', data, {});
  26887. }
  26888. function newNotice(data) {
  26889. return _requestConfig.default.post('/wx/noticePark/newNotice', data, {});
  26890. }
  26891. function noticeParkList(data) {
  26892. return _requestConfig.default.post('/wx/noticePark/list', data, {});
  26893. }
  26894. function propertyNoticeList(data) {
  26895. return _requestConfig.default.post('/wx/propertyNotice/list', data, {});
  26896. }
  26897. function noticeParkClickCollect(data) {
  26898. return _requestConfig.default.post('/wx/noticePark/clickCollect', data, {});
  26899. }
  26900. function propertyNoticeClickCollect(data) {
  26901. return _requestConfig.default.post('/wx/propertyNotice/clickCollect ', data, {});
  26902. }
  26903. function homeActivityClickCollect(data) {
  26904. return _requestConfig.default.post('/wx/homeActivity/clickCollect ', data, {});
  26905. }
  26906. function userNoticeAdd(data) {
  26907. return _requestConfig.default.post('/wx/userNotice/add', data, {});
  26908. }
  26909. // 园区通知发布
  26910. function noticeParkAdd(data) {
  26911. return _requestConfig.default.post('/wx/noticePark/add', data, {});
  26912. }
  26913. function noticeParkGetById(data) {
  26914. return _requestConfig.default.post('/wx/noticePark/getById', data, {});
  26915. }
  26916. // 园区通知编辑
  26917. function noticeParkEdit(data) {
  26918. return _requestConfig.default.post('/wx/noticePark/edit', data, {});
  26919. }
  26920. // 新增我的反馈
  26921. function parkFeedbackInfoAdd(data) {
  26922. return _requestConfig.default.post('/wx/parkFeedbackInfo/add', data, {});
  26923. }
  26924. // 新增我的反馈
  26925. function parkFeedbackInfoList(data) {
  26926. return _requestConfig.default.post('/wx/parkFeedbackInfo/list', data, {});
  26927. }
  26928. // 获取我的反馈详情
  26929. function parkFeedbackInfoGetById(data) {
  26930. return _requestConfig.default.get('/wx/parkFeedbackInfo/getById', data, {});
  26931. }
  26932. // 我的收藏列表
  26933. function parkUserCollectorsList(data) {
  26934. return _requestConfig.default.post('/wx/parkUserCollectors/list', data, {});
  26935. }
  26936. // 产业政策列表
  26937. function policyList(data) {
  26938. return _requestConfig.default.post('/wx/policy/list', data, {});
  26939. }
  26940. // 产业政策类型
  26941. function policyListAll(data) {
  26942. return _requestConfig.default.post('/wx/policyType/listAll', data, {});
  26943. }
  26944. // 产业政策获取详情
  26945. function policyGetById(data) {
  26946. return _requestConfig.default.post('/wx/policy/getById', data, {});
  26947. }
  26948. // 经法填报列表
  26949. function fillControllerList(data) {
  26950. return _requestConfig.default.post('/wx/fillController/list', data, {});
  26951. }
  26952. // 经法填报详情
  26953. function getByStag(data) {
  26954. return _requestConfig.default.post('/wx/fillController/getByStag', data, {});
  26955. }
  26956. // 经法填报详情保存/提交
  26957. function fillControllerEditSave(data) {
  26958. return _requestConfig.default.post('/wx/fillController/editSave', data, {});
  26959. }
  26960. // 园区通知详情
  26961. function getParkNoticeById(data) {
  26962. return _requestConfig.default.post('/wx/noticePark/getById', data, {});
  26963. }
  26964. // 物业通知详情
  26965. function getPropertyNoticeById(data) {
  26966. return _requestConfig.default.post('/wx/propertyNotice/getById', data, {});
  26967. }
  26968. // 我的消息列表
  26969. function getMsgList(data) {
  26970. return _requestConfig.default.post('/wx/WxParkSystemMsgInfoController/getMsgList', data, {});
  26971. }
  26972. // 获取管家
  26973. function getUserMainHouseKeeper(data) {
  26974. return _requestConfig.default.post('/wx/userRelation/getUserMainHouseKeeper', data, {});
  26975. }
  26976. // 周边列表
  26977. function peripheryList(data) {
  26978. return _requestConfig.default.post('/wx/periphery/list', data, {});
  26979. }
  26980. // 获取周边详情
  26981. function peripheryGetById(data) {
  26982. return _requestConfig.default.post('/wx/periphery/getById', data, {});
  26983. }
  26984. // 报事报修提交
  26985. function repairAdd(data) {
  26986. return _requestConfig.default.post('/wx/repair/add', data, {});
  26987. }
  26988. // 企业账单列表
  26989. function findBillManagementMoreForCollect(data) {
  26990. return _requestConfig.default.post('/wx/BillController/findBillManagementMoreForCollect', data, {});
  26991. }
  26992. // 查看园区详情
  26993. function getParkBriefById(data) {
  26994. return _requestConfig.default.post('/wx/ParkBriefController/getById', data, {});
  26995. }
  26996. // 共享资源列表
  26997. function getMeetingRoomList(data) {
  26998. return _requestConfig.default.post('/wx/meetingRoom/getMeetingRoomList', data, {});
  26999. }
  27000. // 共享资源详情
  27001. function meetingRoomDetail(data) {
  27002. return _requestConfig.default.post('/wx/meetingRoom/meetingRoomDetail', data, {});
  27003. }
  27004. // 获取共享资源可选的时间段
  27005. function roomTimeSoltUseful(data) {
  27006. return _requestConfig.default.post('/wx/meetingRoom/roomTimeSoltUseful', data, {});
  27007. }
  27008. // 获取共享资源时间段状态
  27009. function roomTimeSoltDetail(data) {
  27010. return _requestConfig.default.post('/wx/meetingRoom/roomTimeSoltDetail', data, {});
  27011. }
  27012. // 共享资源预约
  27013. function meetingAppoint(data) {
  27014. return _requestConfig.default.post('/wx/meetingRoom/meetingAppoint', data, {});
  27015. }
  27016. // 共享资源预约时间段校验
  27017. function meetingAppointCheck(data) {
  27018. return _requestConfig.default.post('/wx/meetingRoom/meetingAppointCheck', data, {});
  27019. }
  27020. // 共享资源预约历史
  27021. function getMeetingAppointListApp(data) {
  27022. return _requestConfig.default.post('/wx/meetingAppoint/getMeetingAppointListApp', data, {});
  27023. }
  27024. // 查询用户部门
  27025. function getUserDept(data) {
  27026. return _requestConfig.default.post('/wx/PubController/getUserDept', data, {});
  27027. }
  27028. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27029. /***/ }),
  27030. /***/ 63:
  27031. /*!**************************************!*\
  27032. !*** ./node_modules/qs/lib/index.js ***!
  27033. \**************************************/
  27034. /*! no static exports found */
  27035. /***/ (function(module, exports, __webpack_require__) {
  27036. "use strict";
  27037. var stringify = __webpack_require__(/*! ./stringify */ 64);
  27038. var parse = __webpack_require__(/*! ./parse */ 78);
  27039. var formats = __webpack_require__(/*! ./formats */ 77);
  27040. module.exports = {
  27041. formats: formats,
  27042. parse: parse,
  27043. stringify: stringify
  27044. };
  27045. /***/ }),
  27046. /***/ 64:
  27047. /*!******************************************!*\
  27048. !*** ./node_modules/qs/lib/stringify.js ***!
  27049. \******************************************/
  27050. /*! no static exports found */
  27051. /***/ (function(module, exports, __webpack_require__) {
  27052. "use strict";
  27053. var getSideChannel = __webpack_require__(/*! side-channel */ 65);
  27054. var utils = __webpack_require__(/*! ./utils */ 76);
  27055. var formats = __webpack_require__(/*! ./formats */ 77);
  27056. var has = Object.prototype.hasOwnProperty;
  27057. var arrayPrefixGenerators = {
  27058. brackets: function brackets(prefix) {
  27059. return prefix + '[]';
  27060. },
  27061. comma: 'comma',
  27062. indices: function indices(prefix, key) {
  27063. return prefix + '[' + key + ']';
  27064. },
  27065. repeat: function repeat(prefix) {
  27066. return prefix;
  27067. }
  27068. };
  27069. var isArray = Array.isArray;
  27070. var split = String.prototype.split;
  27071. var push = Array.prototype.push;
  27072. var pushToArray = function (arr, valueOrArray) {
  27073. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  27074. };
  27075. var toISO = Date.prototype.toISOString;
  27076. var defaultFormat = formats['default'];
  27077. var defaults = {
  27078. addQueryPrefix: false,
  27079. allowDots: false,
  27080. charset: 'utf-8',
  27081. charsetSentinel: false,
  27082. delimiter: '&',
  27083. encode: true,
  27084. encoder: utils.encode,
  27085. encodeValuesOnly: false,
  27086. format: defaultFormat,
  27087. formatter: formats.formatters[defaultFormat],
  27088. // deprecated
  27089. indices: false,
  27090. serializeDate: function serializeDate(date) {
  27091. return toISO.call(date);
  27092. },
  27093. skipNulls: false,
  27094. strictNullHandling: false
  27095. };
  27096. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  27097. return typeof v === 'string'
  27098. || typeof v === 'number'
  27099. || typeof v === 'boolean'
  27100. || typeof v === 'symbol'
  27101. || typeof v === 'bigint';
  27102. };
  27103. var sentinel = {};
  27104. var stringify = function stringify(
  27105. object,
  27106. prefix,
  27107. generateArrayPrefix,
  27108. commaRoundTrip,
  27109. strictNullHandling,
  27110. skipNulls,
  27111. encoder,
  27112. filter,
  27113. sort,
  27114. allowDots,
  27115. serializeDate,
  27116. format,
  27117. formatter,
  27118. encodeValuesOnly,
  27119. charset,
  27120. sideChannel
  27121. ) {
  27122. var obj = object;
  27123. var tmpSc = sideChannel;
  27124. var step = 0;
  27125. var findFlag = false;
  27126. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  27127. // Where object last appeared in the ref tree
  27128. var pos = tmpSc.get(object);
  27129. step += 1;
  27130. if (typeof pos !== 'undefined') {
  27131. if (pos === step) {
  27132. throw new RangeError('Cyclic object value');
  27133. } else {
  27134. findFlag = true; // Break while
  27135. }
  27136. }
  27137. if (typeof tmpSc.get(sentinel) === 'undefined') {
  27138. step = 0;
  27139. }
  27140. }
  27141. if (typeof filter === 'function') {
  27142. obj = filter(prefix, obj);
  27143. } else if (obj instanceof Date) {
  27144. obj = serializeDate(obj);
  27145. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  27146. obj = utils.maybeMap(obj, function (value) {
  27147. if (value instanceof Date) {
  27148. return serializeDate(value);
  27149. }
  27150. return value;
  27151. });
  27152. }
  27153. if (obj === null) {
  27154. if (strictNullHandling) {
  27155. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  27156. }
  27157. obj = '';
  27158. }
  27159. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  27160. if (encoder) {
  27161. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  27162. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  27163. var valuesArray = split.call(String(obj), ',');
  27164. var valuesJoined = '';
  27165. for (var i = 0; i < valuesArray.length; ++i) {
  27166. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  27167. }
  27168. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
  27169. }
  27170. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  27171. }
  27172. return [formatter(prefix) + '=' + formatter(String(obj))];
  27173. }
  27174. var values = [];
  27175. if (typeof obj === 'undefined') {
  27176. return values;
  27177. }
  27178. var objKeys;
  27179. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  27180. // we need to join elements in
  27181. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  27182. } else if (isArray(filter)) {
  27183. objKeys = filter;
  27184. } else {
  27185. var keys = Object.keys(obj);
  27186. objKeys = sort ? keys.sort(sort) : keys;
  27187. }
  27188. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
  27189. for (var j = 0; j < objKeys.length; ++j) {
  27190. var key = objKeys[j];
  27191. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  27192. if (skipNulls && value === null) {
  27193. continue;
  27194. }
  27195. var keyPrefix = isArray(obj)
  27196. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
  27197. : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
  27198. sideChannel.set(object, step);
  27199. var valueSideChannel = getSideChannel();
  27200. valueSideChannel.set(sentinel, sideChannel);
  27201. pushToArray(values, stringify(
  27202. value,
  27203. keyPrefix,
  27204. generateArrayPrefix,
  27205. commaRoundTrip,
  27206. strictNullHandling,
  27207. skipNulls,
  27208. encoder,
  27209. filter,
  27210. sort,
  27211. allowDots,
  27212. serializeDate,
  27213. format,
  27214. formatter,
  27215. encodeValuesOnly,
  27216. charset,
  27217. valueSideChannel
  27218. ));
  27219. }
  27220. return values;
  27221. };
  27222. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  27223. if (!opts) {
  27224. return defaults;
  27225. }
  27226. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  27227. throw new TypeError('Encoder has to be a function.');
  27228. }
  27229. var charset = opts.charset || defaults.charset;
  27230. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  27231. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  27232. }
  27233. var format = formats['default'];
  27234. if (typeof opts.format !== 'undefined') {
  27235. if (!has.call(formats.formatters, opts.format)) {
  27236. throw new TypeError('Unknown format option provided.');
  27237. }
  27238. format = opts.format;
  27239. }
  27240. var formatter = formats.formatters[format];
  27241. var filter = defaults.filter;
  27242. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  27243. filter = opts.filter;
  27244. }
  27245. return {
  27246. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  27247. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  27248. charset: charset,
  27249. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  27250. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  27251. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  27252. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  27253. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  27254. filter: filter,
  27255. format: format,
  27256. formatter: formatter,
  27257. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  27258. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  27259. sort: typeof opts.sort === 'function' ? opts.sort : null,
  27260. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  27261. };
  27262. };
  27263. module.exports = function (object, opts) {
  27264. var obj = object;
  27265. var options = normalizeStringifyOptions(opts);
  27266. var objKeys;
  27267. var filter;
  27268. if (typeof options.filter === 'function') {
  27269. filter = options.filter;
  27270. obj = filter('', obj);
  27271. } else if (isArray(options.filter)) {
  27272. filter = options.filter;
  27273. objKeys = filter;
  27274. }
  27275. var keys = [];
  27276. if (typeof obj !== 'object' || obj === null) {
  27277. return '';
  27278. }
  27279. var arrayFormat;
  27280. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  27281. arrayFormat = opts.arrayFormat;
  27282. } else if (opts && 'indices' in opts) {
  27283. arrayFormat = opts.indices ? 'indices' : 'repeat';
  27284. } else {
  27285. arrayFormat = 'indices';
  27286. }
  27287. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  27288. if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
  27289. throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
  27290. }
  27291. var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
  27292. if (!objKeys) {
  27293. objKeys = Object.keys(obj);
  27294. }
  27295. if (options.sort) {
  27296. objKeys.sort(options.sort);
  27297. }
  27298. var sideChannel = getSideChannel();
  27299. for (var i = 0; i < objKeys.length; ++i) {
  27300. var key = objKeys[i];
  27301. if (options.skipNulls && obj[key] === null) {
  27302. continue;
  27303. }
  27304. pushToArray(keys, stringify(
  27305. obj[key],
  27306. key,
  27307. generateArrayPrefix,
  27308. commaRoundTrip,
  27309. options.strictNullHandling,
  27310. options.skipNulls,
  27311. options.encode ? options.encoder : null,
  27312. options.filter,
  27313. options.sort,
  27314. options.allowDots,
  27315. options.serializeDate,
  27316. options.format,
  27317. options.formatter,
  27318. options.encodeValuesOnly,
  27319. options.charset,
  27320. sideChannel
  27321. ));
  27322. }
  27323. var joined = keys.join(options.delimiter);
  27324. var prefix = options.addQueryPrefix === true ? '?' : '';
  27325. if (options.charsetSentinel) {
  27326. if (options.charset === 'iso-8859-1') {
  27327. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  27328. prefix += 'utf8=%26%2310003%3B&';
  27329. } else {
  27330. // encodeURIComponent('✓')
  27331. prefix += 'utf8=%E2%9C%93&';
  27332. }
  27333. }
  27334. return joined.length > 0 ? prefix + joined : '';
  27335. };
  27336. /***/ }),
  27337. /***/ 65:
  27338. /*!********************************************!*\
  27339. !*** ./node_modules/side-channel/index.js ***!
  27340. \********************************************/
  27341. /*! no static exports found */
  27342. /***/ (function(module, exports, __webpack_require__) {
  27343. "use strict";
  27344. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 66);
  27345. var callBound = __webpack_require__(/*! call-bind/callBound */ 72);
  27346. var inspect = __webpack_require__(/*! object-inspect */ 74);
  27347. var $TypeError = GetIntrinsic('%TypeError%');
  27348. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  27349. var $Map = GetIntrinsic('%Map%', true);
  27350. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  27351. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  27352. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  27353. var $mapGet = callBound('Map.prototype.get', true);
  27354. var $mapSet = callBound('Map.prototype.set', true);
  27355. var $mapHas = callBound('Map.prototype.has', true);
  27356. /*
  27357. * This function traverses the list returning the node corresponding to the
  27358. * given key.
  27359. *
  27360. * That node is also moved to the head of the list, so that if it's accessed
  27361. * again we don't need to traverse the whole list. By doing so, all the recently
  27362. * used nodes can be accessed relatively quickly.
  27363. */
  27364. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  27365. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  27366. if (curr.key === key) {
  27367. prev.next = curr.next;
  27368. curr.next = list.next;
  27369. list.next = curr; // eslint-disable-line no-param-reassign
  27370. return curr;
  27371. }
  27372. }
  27373. };
  27374. var listGet = function (objects, key) {
  27375. var node = listGetNode(objects, key);
  27376. return node && node.value;
  27377. };
  27378. var listSet = function (objects, key, value) {
  27379. var node = listGetNode(objects, key);
  27380. if (node) {
  27381. node.value = value;
  27382. } else {
  27383. // Prepend the new node to the beginning of the list
  27384. objects.next = { // eslint-disable-line no-param-reassign
  27385. key: key,
  27386. next: objects.next,
  27387. value: value
  27388. };
  27389. }
  27390. };
  27391. var listHas = function (objects, key) {
  27392. return !!listGetNode(objects, key);
  27393. };
  27394. module.exports = function getSideChannel() {
  27395. var $wm;
  27396. var $m;
  27397. var $o;
  27398. var channel = {
  27399. assert: function (key) {
  27400. if (!channel.has(key)) {
  27401. throw new $TypeError('Side channel does not contain ' + inspect(key));
  27402. }
  27403. },
  27404. get: function (key) { // eslint-disable-line consistent-return
  27405. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  27406. if ($wm) {
  27407. return $weakMapGet($wm, key);
  27408. }
  27409. } else if ($Map) {
  27410. if ($m) {
  27411. return $mapGet($m, key);
  27412. }
  27413. } else {
  27414. if ($o) { // eslint-disable-line no-lonely-if
  27415. return listGet($o, key);
  27416. }
  27417. }
  27418. },
  27419. has: function (key) {
  27420. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  27421. if ($wm) {
  27422. return $weakMapHas($wm, key);
  27423. }
  27424. } else if ($Map) {
  27425. if ($m) {
  27426. return $mapHas($m, key);
  27427. }
  27428. } else {
  27429. if ($o) { // eslint-disable-line no-lonely-if
  27430. return listHas($o, key);
  27431. }
  27432. }
  27433. return false;
  27434. },
  27435. set: function (key, value) {
  27436. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  27437. if (!$wm) {
  27438. $wm = new $WeakMap();
  27439. }
  27440. $weakMapSet($wm, key, value);
  27441. } else if ($Map) {
  27442. if (!$m) {
  27443. $m = new $Map();
  27444. }
  27445. $mapSet($m, key, value);
  27446. } else {
  27447. if (!$o) {
  27448. /*
  27449. * Initialize the linked list as an empty node, so that we don't have
  27450. * to special-case handling of the first node: we can always refer to
  27451. * it as (previous node).next, instead of something like (list).head
  27452. */
  27453. $o = { key: {}, next: null };
  27454. }
  27455. listSet($o, key, value);
  27456. }
  27457. }
  27458. };
  27459. return channel;
  27460. };
  27461. /***/ }),
  27462. /***/ 66:
  27463. /*!*********************************************!*\
  27464. !*** ./node_modules/get-intrinsic/index.js ***!
  27465. \*********************************************/
  27466. /*! no static exports found */
  27467. /***/ (function(module, exports, __webpack_require__) {
  27468. "use strict";
  27469. var undefined;
  27470. var $SyntaxError = SyntaxError;
  27471. var $Function = Function;
  27472. var $TypeError = TypeError;
  27473. // eslint-disable-next-line consistent-return
  27474. var getEvalledConstructor = function (expressionSyntax) {
  27475. try {
  27476. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  27477. } catch (e) {}
  27478. };
  27479. var $gOPD = Object.getOwnPropertyDescriptor;
  27480. if ($gOPD) {
  27481. try {
  27482. $gOPD({}, '');
  27483. } catch (e) {
  27484. $gOPD = null; // this is IE 8, which has a broken gOPD
  27485. }
  27486. }
  27487. var throwTypeError = function () {
  27488. throw new $TypeError();
  27489. };
  27490. var ThrowTypeError = $gOPD
  27491. ? (function () {
  27492. try {
  27493. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  27494. arguments.callee; // IE 8 does not throw here
  27495. return throwTypeError;
  27496. } catch (calleeThrows) {
  27497. try {
  27498. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  27499. return $gOPD(arguments, 'callee').get;
  27500. } catch (gOPDthrows) {
  27501. return throwTypeError;
  27502. }
  27503. }
  27504. }())
  27505. : throwTypeError;
  27506. var hasSymbols = __webpack_require__(/*! has-symbols */ 67)();
  27507. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  27508. var needsEval = {};
  27509. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  27510. var INTRINSICS = {
  27511. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  27512. '%Array%': Array,
  27513. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  27514. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  27515. '%AsyncFromSyncIteratorPrototype%': undefined,
  27516. '%AsyncFunction%': needsEval,
  27517. '%AsyncGenerator%': needsEval,
  27518. '%AsyncGeneratorFunction%': needsEval,
  27519. '%AsyncIteratorPrototype%': needsEval,
  27520. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  27521. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  27522. '%Boolean%': Boolean,
  27523. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  27524. '%Date%': Date,
  27525. '%decodeURI%': decodeURI,
  27526. '%decodeURIComponent%': decodeURIComponent,
  27527. '%encodeURI%': encodeURI,
  27528. '%encodeURIComponent%': encodeURIComponent,
  27529. '%Error%': Error,
  27530. '%eval%': eval, // eslint-disable-line no-eval
  27531. '%EvalError%': EvalError,
  27532. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  27533. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  27534. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  27535. '%Function%': $Function,
  27536. '%GeneratorFunction%': needsEval,
  27537. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  27538. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  27539. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  27540. '%isFinite%': isFinite,
  27541. '%isNaN%': isNaN,
  27542. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  27543. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  27544. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  27545. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  27546. '%Math%': Math,
  27547. '%Number%': Number,
  27548. '%Object%': Object,
  27549. '%parseFloat%': parseFloat,
  27550. '%parseInt%': parseInt,
  27551. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  27552. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  27553. '%RangeError%': RangeError,
  27554. '%ReferenceError%': ReferenceError,
  27555. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  27556. '%RegExp%': RegExp,
  27557. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  27558. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  27559. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  27560. '%String%': String,
  27561. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  27562. '%Symbol%': hasSymbols ? Symbol : undefined,
  27563. '%SyntaxError%': $SyntaxError,
  27564. '%ThrowTypeError%': ThrowTypeError,
  27565. '%TypedArray%': TypedArray,
  27566. '%TypeError%': $TypeError,
  27567. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  27568. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  27569. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  27570. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  27571. '%URIError%': URIError,
  27572. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  27573. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  27574. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  27575. };
  27576. var doEval = function doEval(name) {
  27577. var value;
  27578. if (name === '%AsyncFunction%') {
  27579. value = getEvalledConstructor('async function () {}');
  27580. } else if (name === '%GeneratorFunction%') {
  27581. value = getEvalledConstructor('function* () {}');
  27582. } else if (name === '%AsyncGeneratorFunction%') {
  27583. value = getEvalledConstructor('async function* () {}');
  27584. } else if (name === '%AsyncGenerator%') {
  27585. var fn = doEval('%AsyncGeneratorFunction%');
  27586. if (fn) {
  27587. value = fn.prototype;
  27588. }
  27589. } else if (name === '%AsyncIteratorPrototype%') {
  27590. var gen = doEval('%AsyncGenerator%');
  27591. if (gen) {
  27592. value = getProto(gen.prototype);
  27593. }
  27594. }
  27595. INTRINSICS[name] = value;
  27596. return value;
  27597. };
  27598. var LEGACY_ALIASES = {
  27599. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  27600. '%ArrayPrototype%': ['Array', 'prototype'],
  27601. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  27602. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  27603. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  27604. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  27605. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  27606. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  27607. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  27608. '%BooleanPrototype%': ['Boolean', 'prototype'],
  27609. '%DataViewPrototype%': ['DataView', 'prototype'],
  27610. '%DatePrototype%': ['Date', 'prototype'],
  27611. '%ErrorPrototype%': ['Error', 'prototype'],
  27612. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  27613. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  27614. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  27615. '%FunctionPrototype%': ['Function', 'prototype'],
  27616. '%Generator%': ['GeneratorFunction', 'prototype'],
  27617. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  27618. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  27619. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  27620. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  27621. '%JSONParse%': ['JSON', 'parse'],
  27622. '%JSONStringify%': ['JSON', 'stringify'],
  27623. '%MapPrototype%': ['Map', 'prototype'],
  27624. '%NumberPrototype%': ['Number', 'prototype'],
  27625. '%ObjectPrototype%': ['Object', 'prototype'],
  27626. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  27627. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  27628. '%PromisePrototype%': ['Promise', 'prototype'],
  27629. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  27630. '%Promise_all%': ['Promise', 'all'],
  27631. '%Promise_reject%': ['Promise', 'reject'],
  27632. '%Promise_resolve%': ['Promise', 'resolve'],
  27633. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  27634. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  27635. '%RegExpPrototype%': ['RegExp', 'prototype'],
  27636. '%SetPrototype%': ['Set', 'prototype'],
  27637. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  27638. '%StringPrototype%': ['String', 'prototype'],
  27639. '%SymbolPrototype%': ['Symbol', 'prototype'],
  27640. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  27641. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  27642. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  27643. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  27644. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  27645. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  27646. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  27647. '%URIErrorPrototype%': ['URIError', 'prototype'],
  27648. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  27649. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  27650. };
  27651. var bind = __webpack_require__(/*! function-bind */ 69);
  27652. var hasOwn = __webpack_require__(/*! has */ 71);
  27653. var $concat = bind.call(Function.call, Array.prototype.concat);
  27654. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  27655. var $replace = bind.call(Function.call, String.prototype.replace);
  27656. var $strSlice = bind.call(Function.call, String.prototype.slice);
  27657. var $exec = bind.call(Function.call, RegExp.prototype.exec);
  27658. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  27659. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  27660. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  27661. var stringToPath = function stringToPath(string) {
  27662. var first = $strSlice(string, 0, 1);
  27663. var last = $strSlice(string, -1);
  27664. if (first === '%' && last !== '%') {
  27665. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  27666. } else if (last === '%' && first !== '%') {
  27667. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  27668. }
  27669. var result = [];
  27670. $replace(string, rePropName, function (match, number, quote, subString) {
  27671. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  27672. });
  27673. return result;
  27674. };
  27675. /* end adaptation */
  27676. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  27677. var intrinsicName = name;
  27678. var alias;
  27679. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  27680. alias = LEGACY_ALIASES[intrinsicName];
  27681. intrinsicName = '%' + alias[0] + '%';
  27682. }
  27683. if (hasOwn(INTRINSICS, intrinsicName)) {
  27684. var value = INTRINSICS[intrinsicName];
  27685. if (value === needsEval) {
  27686. value = doEval(intrinsicName);
  27687. }
  27688. if (typeof value === 'undefined' && !allowMissing) {
  27689. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  27690. }
  27691. return {
  27692. alias: alias,
  27693. name: intrinsicName,
  27694. value: value
  27695. };
  27696. }
  27697. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  27698. };
  27699. module.exports = function GetIntrinsic(name, allowMissing) {
  27700. if (typeof name !== 'string' || name.length === 0) {
  27701. throw new $TypeError('intrinsic name must be a non-empty string');
  27702. }
  27703. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  27704. throw new $TypeError('"allowMissing" argument must be a boolean');
  27705. }
  27706. if ($exec(/^%?[^%]*%?$/, name) === null) {
  27707. throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
  27708. }
  27709. var parts = stringToPath(name);
  27710. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  27711. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  27712. var intrinsicRealName = intrinsic.name;
  27713. var value = intrinsic.value;
  27714. var skipFurtherCaching = false;
  27715. var alias = intrinsic.alias;
  27716. if (alias) {
  27717. intrinsicBaseName = alias[0];
  27718. $spliceApply(parts, $concat([0, 1], alias));
  27719. }
  27720. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  27721. var part = parts[i];
  27722. var first = $strSlice(part, 0, 1);
  27723. var last = $strSlice(part, -1);
  27724. if (
  27725. (
  27726. (first === '"' || first === "'" || first === '`')
  27727. || (last === '"' || last === "'" || last === '`')
  27728. )
  27729. && first !== last
  27730. ) {
  27731. throw new $SyntaxError('property names with quotes must have matching quotes');
  27732. }
  27733. if (part === 'constructor' || !isOwn) {
  27734. skipFurtherCaching = true;
  27735. }
  27736. intrinsicBaseName += '.' + part;
  27737. intrinsicRealName = '%' + intrinsicBaseName + '%';
  27738. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  27739. value = INTRINSICS[intrinsicRealName];
  27740. } else if (value != null) {
  27741. if (!(part in value)) {
  27742. if (!allowMissing) {
  27743. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  27744. }
  27745. return void undefined;
  27746. }
  27747. if ($gOPD && (i + 1) >= parts.length) {
  27748. var desc = $gOPD(value, part);
  27749. isOwn = !!desc;
  27750. // By convention, when a data property is converted to an accessor
  27751. // property to emulate a data property that does not suffer from
  27752. // the override mistake, that accessor's getter is marked with
  27753. // an `originalValue` property. Here, when we detect this, we
  27754. // uphold the illusion by pretending to see that original data
  27755. // property, i.e., returning the value rather than the getter
  27756. // itself.
  27757. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  27758. value = desc.get;
  27759. } else {
  27760. value = value[part];
  27761. }
  27762. } else {
  27763. isOwn = hasOwn(value, part);
  27764. value = value[part];
  27765. }
  27766. if (isOwn && !skipFurtherCaching) {
  27767. INTRINSICS[intrinsicRealName] = value;
  27768. }
  27769. }
  27770. }
  27771. return value;
  27772. };
  27773. /***/ }),
  27774. /***/ 67:
  27775. /*!*******************************************!*\
  27776. !*** ./node_modules/has-symbols/index.js ***!
  27777. \*******************************************/
  27778. /*! no static exports found */
  27779. /***/ (function(module, exports, __webpack_require__) {
  27780. "use strict";
  27781. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  27782. var hasSymbolSham = __webpack_require__(/*! ./shams */ 68);
  27783. module.exports = function hasNativeSymbols() {
  27784. if (typeof origSymbol !== 'function') { return false; }
  27785. if (typeof Symbol !== 'function') { return false; }
  27786. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  27787. if (typeof Symbol('bar') !== 'symbol') { return false; }
  27788. return hasSymbolSham();
  27789. };
  27790. /***/ }),
  27791. /***/ 68:
  27792. /*!*******************************************!*\
  27793. !*** ./node_modules/has-symbols/shams.js ***!
  27794. \*******************************************/
  27795. /*! no static exports found */
  27796. /***/ (function(module, exports, __webpack_require__) {
  27797. "use strict";
  27798. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  27799. module.exports = function hasSymbols() {
  27800. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  27801. if (typeof Symbol.iterator === 'symbol') { return true; }
  27802. var obj = {};
  27803. var sym = Symbol('test');
  27804. var symObj = Object(sym);
  27805. if (typeof sym === 'string') { return false; }
  27806. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  27807. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  27808. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  27809. // if (sym instanceof Symbol) { return false; }
  27810. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  27811. // if (!(symObj instanceof Symbol)) { return false; }
  27812. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  27813. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  27814. var symVal = 42;
  27815. obj[sym] = symVal;
  27816. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  27817. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  27818. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  27819. var syms = Object.getOwnPropertySymbols(obj);
  27820. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  27821. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  27822. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  27823. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  27824. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  27825. }
  27826. return true;
  27827. };
  27828. /***/ }),
  27829. /***/ 69:
  27830. /*!*********************************************!*\
  27831. !*** ./node_modules/function-bind/index.js ***!
  27832. \*********************************************/
  27833. /*! no static exports found */
  27834. /***/ (function(module, exports, __webpack_require__) {
  27835. "use strict";
  27836. var implementation = __webpack_require__(/*! ./implementation */ 70);
  27837. module.exports = Function.prototype.bind || implementation;
  27838. /***/ }),
  27839. /***/ 7:
  27840. /*!*********************************************************************!*\
  27841. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  27842. \*********************************************************************/
  27843. /*! no static exports found */
  27844. /***/ (function(module, exports) {
  27845. function _iterableToArrayLimit(r, l) {
  27846. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  27847. if (null != t) {
  27848. var e,
  27849. n,
  27850. i,
  27851. u,
  27852. a = [],
  27853. f = !0,
  27854. o = !1;
  27855. try {
  27856. if (i = (t = t.call(r)).next, 0 === l) {
  27857. if (Object(t) !== t) return;
  27858. f = !1;
  27859. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  27860. ;
  27861. }
  27862. } catch (r) {
  27863. o = !0, n = r;
  27864. } finally {
  27865. try {
  27866. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  27867. } finally {
  27868. if (o) throw n;
  27869. }
  27870. }
  27871. return a;
  27872. }
  27873. }
  27874. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  27875. /***/ }),
  27876. /***/ 70:
  27877. /*!******************************************************!*\
  27878. !*** ./node_modules/function-bind/implementation.js ***!
  27879. \******************************************************/
  27880. /*! no static exports found */
  27881. /***/ (function(module, exports, __webpack_require__) {
  27882. "use strict";
  27883. /* eslint no-invalid-this: 1 */
  27884. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  27885. var slice = Array.prototype.slice;
  27886. var toStr = Object.prototype.toString;
  27887. var funcType = '[object Function]';
  27888. module.exports = function bind(that) {
  27889. var target = this;
  27890. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  27891. throw new TypeError(ERROR_MESSAGE + target);
  27892. }
  27893. var args = slice.call(arguments, 1);
  27894. var bound;
  27895. var binder = function () {
  27896. if (this instanceof bound) {
  27897. var result = target.apply(
  27898. this,
  27899. args.concat(slice.call(arguments))
  27900. );
  27901. if (Object(result) === result) {
  27902. return result;
  27903. }
  27904. return this;
  27905. } else {
  27906. return target.apply(
  27907. that,
  27908. args.concat(slice.call(arguments))
  27909. );
  27910. }
  27911. };
  27912. var boundLength = Math.max(0, target.length - args.length);
  27913. var boundArgs = [];
  27914. for (var i = 0; i < boundLength; i++) {
  27915. boundArgs.push('$' + i);
  27916. }
  27917. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  27918. if (target.prototype) {
  27919. var Empty = function Empty() {};
  27920. Empty.prototype = target.prototype;
  27921. bound.prototype = new Empty();
  27922. Empty.prototype = null;
  27923. }
  27924. return bound;
  27925. };
  27926. /***/ }),
  27927. /***/ 71:
  27928. /*!***************************************!*\
  27929. !*** ./node_modules/has/src/index.js ***!
  27930. \***************************************/
  27931. /*! no static exports found */
  27932. /***/ (function(module, exports, __webpack_require__) {
  27933. "use strict";
  27934. var bind = __webpack_require__(/*! function-bind */ 69);
  27935. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  27936. /***/ }),
  27937. /***/ 72:
  27938. /*!*********************************************!*\
  27939. !*** ./node_modules/call-bind/callBound.js ***!
  27940. \*********************************************/
  27941. /*! no static exports found */
  27942. /***/ (function(module, exports, __webpack_require__) {
  27943. "use strict";
  27944. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 66);
  27945. var callBind = __webpack_require__(/*! ./ */ 73);
  27946. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  27947. module.exports = function callBoundIntrinsic(name, allowMissing) {
  27948. var intrinsic = GetIntrinsic(name, !!allowMissing);
  27949. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  27950. return callBind(intrinsic);
  27951. }
  27952. return intrinsic;
  27953. };
  27954. /***/ }),
  27955. /***/ 73:
  27956. /*!*****************************************!*\
  27957. !*** ./node_modules/call-bind/index.js ***!
  27958. \*****************************************/
  27959. /*! no static exports found */
  27960. /***/ (function(module, exports, __webpack_require__) {
  27961. "use strict";
  27962. var bind = __webpack_require__(/*! function-bind */ 69);
  27963. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 66);
  27964. var $apply = GetIntrinsic('%Function.prototype.apply%');
  27965. var $call = GetIntrinsic('%Function.prototype.call%');
  27966. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  27967. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  27968. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  27969. var $max = GetIntrinsic('%Math.max%');
  27970. if ($defineProperty) {
  27971. try {
  27972. $defineProperty({}, 'a', { value: 1 });
  27973. } catch (e) {
  27974. // IE 8 has a broken defineProperty
  27975. $defineProperty = null;
  27976. }
  27977. }
  27978. module.exports = function callBind(originalFunction) {
  27979. var func = $reflectApply(bind, $call, arguments);
  27980. if ($gOPD && $defineProperty) {
  27981. var desc = $gOPD(func, 'length');
  27982. if (desc.configurable) {
  27983. // original length, plus the receiver, minus any additional arguments (after the receiver)
  27984. $defineProperty(
  27985. func,
  27986. 'length',
  27987. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  27988. );
  27989. }
  27990. }
  27991. return func;
  27992. };
  27993. var applyBind = function applyBind() {
  27994. return $reflectApply(bind, $apply, arguments);
  27995. };
  27996. if ($defineProperty) {
  27997. $defineProperty(module.exports, 'apply', { value: applyBind });
  27998. } else {
  27999. module.exports.apply = applyBind;
  28000. }
  28001. /***/ }),
  28002. /***/ 74:
  28003. /*!**********************************************!*\
  28004. !*** ./node_modules/object-inspect/index.js ***!
  28005. \**********************************************/
  28006. /*! no static exports found */
  28007. /***/ (function(module, exports, __webpack_require__) {
  28008. var hasMap = typeof Map === 'function' && Map.prototype;
  28009. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  28010. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  28011. var mapForEach = hasMap && Map.prototype.forEach;
  28012. var hasSet = typeof Set === 'function' && Set.prototype;
  28013. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  28014. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  28015. var setForEach = hasSet && Set.prototype.forEach;
  28016. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  28017. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  28018. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  28019. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  28020. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  28021. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  28022. var booleanValueOf = Boolean.prototype.valueOf;
  28023. var objectToString = Object.prototype.toString;
  28024. var functionToString = Function.prototype.toString;
  28025. var $match = String.prototype.match;
  28026. var $slice = String.prototype.slice;
  28027. var $replace = String.prototype.replace;
  28028. var $toUpperCase = String.prototype.toUpperCase;
  28029. var $toLowerCase = String.prototype.toLowerCase;
  28030. var $test = RegExp.prototype.test;
  28031. var $concat = Array.prototype.concat;
  28032. var $join = Array.prototype.join;
  28033. var $arrSlice = Array.prototype.slice;
  28034. var $floor = Math.floor;
  28035. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  28036. var gOPS = Object.getOwnPropertySymbols;
  28037. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  28038. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  28039. // ie, `has-tostringtag/shams
  28040. var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
  28041. ? Symbol.toStringTag
  28042. : null;
  28043. var isEnumerable = Object.prototype.propertyIsEnumerable;
  28044. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  28045. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  28046. ? function (O) {
  28047. return O.__proto__; // eslint-disable-line no-proto
  28048. }
  28049. : null
  28050. );
  28051. function addNumericSeparator(num, str) {
  28052. if (
  28053. num === Infinity
  28054. || num === -Infinity
  28055. || num !== num
  28056. || (num && num > -1000 && num < 1000)
  28057. || $test.call(/e/, str)
  28058. ) {
  28059. return str;
  28060. }
  28061. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  28062. if (typeof num === 'number') {
  28063. var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
  28064. if (int !== num) {
  28065. var intStr = String(int);
  28066. var dec = $slice.call(str, intStr.length + 1);
  28067. return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
  28068. }
  28069. }
  28070. return $replace.call(str, sepRegex, '$&_');
  28071. }
  28072. var utilInspect = __webpack_require__(/*! ./util.inspect */ 75);
  28073. var inspectCustom = utilInspect.custom;
  28074. var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
  28075. module.exports = function inspect_(obj, options, depth, seen) {
  28076. var opts = options || {};
  28077. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  28078. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  28079. }
  28080. if (
  28081. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  28082. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  28083. : opts.maxStringLength !== null
  28084. )
  28085. ) {
  28086. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  28087. }
  28088. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  28089. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  28090. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  28091. }
  28092. if (
  28093. has(opts, 'indent')
  28094. && opts.indent !== null
  28095. && opts.indent !== '\t'
  28096. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  28097. ) {
  28098. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  28099. }
  28100. if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
  28101. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  28102. }
  28103. var numericSeparator = opts.numericSeparator;
  28104. if (typeof obj === 'undefined') {
  28105. return 'undefined';
  28106. }
  28107. if (obj === null) {
  28108. return 'null';
  28109. }
  28110. if (typeof obj === 'boolean') {
  28111. return obj ? 'true' : 'false';
  28112. }
  28113. if (typeof obj === 'string') {
  28114. return inspectString(obj, opts);
  28115. }
  28116. if (typeof obj === 'number') {
  28117. if (obj === 0) {
  28118. return Infinity / obj > 0 ? '0' : '-0';
  28119. }
  28120. var str = String(obj);
  28121. return numericSeparator ? addNumericSeparator(obj, str) : str;
  28122. }
  28123. if (typeof obj === 'bigint') {
  28124. var bigIntStr = String(obj) + 'n';
  28125. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  28126. }
  28127. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  28128. if (typeof depth === 'undefined') { depth = 0; }
  28129. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  28130. return isArray(obj) ? '[Array]' : '[Object]';
  28131. }
  28132. var indent = getIndent(opts, depth);
  28133. if (typeof seen === 'undefined') {
  28134. seen = [];
  28135. } else if (indexOf(seen, obj) >= 0) {
  28136. return '[Circular]';
  28137. }
  28138. function inspect(value, from, noIndent) {
  28139. if (from) {
  28140. seen = $arrSlice.call(seen);
  28141. seen.push(from);
  28142. }
  28143. if (noIndent) {
  28144. var newOpts = {
  28145. depth: opts.depth
  28146. };
  28147. if (has(opts, 'quoteStyle')) {
  28148. newOpts.quoteStyle = opts.quoteStyle;
  28149. }
  28150. return inspect_(value, newOpts, depth + 1, seen);
  28151. }
  28152. return inspect_(value, opts, depth + 1, seen);
  28153. }
  28154. if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
  28155. var name = nameOf(obj);
  28156. var keys = arrObjKeys(obj, inspect);
  28157. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
  28158. }
  28159. if (isSymbol(obj)) {
  28160. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  28161. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  28162. }
  28163. if (isElement(obj)) {
  28164. var s = '<' + $toLowerCase.call(String(obj.nodeName));
  28165. var attrs = obj.attributes || [];
  28166. for (var i = 0; i < attrs.length; i++) {
  28167. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  28168. }
  28169. s += '>';
  28170. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  28171. s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
  28172. return s;
  28173. }
  28174. if (isArray(obj)) {
  28175. if (obj.length === 0) { return '[]'; }
  28176. var xs = arrObjKeys(obj, inspect);
  28177. if (indent && !singleLineValues(xs)) {
  28178. return '[' + indentedJoin(xs, indent) + ']';
  28179. }
  28180. return '[ ' + $join.call(xs, ', ') + ' ]';
  28181. }
  28182. if (isError(obj)) {
  28183. var parts = arrObjKeys(obj, inspect);
  28184. if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
  28185. return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
  28186. }
  28187. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  28188. return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
  28189. }
  28190. if (typeof obj === 'object' && customInspect) {
  28191. if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
  28192. return utilInspect(obj, { depth: maxDepth - depth });
  28193. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  28194. return obj.inspect();
  28195. }
  28196. }
  28197. if (isMap(obj)) {
  28198. var mapParts = [];
  28199. mapForEach.call(obj, function (value, key) {
  28200. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  28201. });
  28202. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  28203. }
  28204. if (isSet(obj)) {
  28205. var setParts = [];
  28206. setForEach.call(obj, function (value) {
  28207. setParts.push(inspect(value, obj));
  28208. });
  28209. return collectionOf('Set', setSize.call(obj), setParts, indent);
  28210. }
  28211. if (isWeakMap(obj)) {
  28212. return weakCollectionOf('WeakMap');
  28213. }
  28214. if (isWeakSet(obj)) {
  28215. return weakCollectionOf('WeakSet');
  28216. }
  28217. if (isWeakRef(obj)) {
  28218. return weakCollectionOf('WeakRef');
  28219. }
  28220. if (isNumber(obj)) {
  28221. return markBoxed(inspect(Number(obj)));
  28222. }
  28223. if (isBigInt(obj)) {
  28224. return markBoxed(inspect(bigIntValueOf.call(obj)));
  28225. }
  28226. if (isBoolean(obj)) {
  28227. return markBoxed(booleanValueOf.call(obj));
  28228. }
  28229. if (isString(obj)) {
  28230. return markBoxed(inspect(String(obj)));
  28231. }
  28232. if (!isDate(obj) && !isRegExp(obj)) {
  28233. var ys = arrObjKeys(obj, inspect);
  28234. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  28235. var protoTag = obj instanceof Object ? '' : 'null prototype';
  28236. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
  28237. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  28238. var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
  28239. if (ys.length === 0) { return tag + '{}'; }
  28240. if (indent) {
  28241. return tag + '{' + indentedJoin(ys, indent) + '}';
  28242. }
  28243. return tag + '{ ' + $join.call(ys, ', ') + ' }';
  28244. }
  28245. return String(obj);
  28246. };
  28247. function wrapQuotes(s, defaultStyle, opts) {
  28248. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  28249. return quoteChar + s + quoteChar;
  28250. }
  28251. function quote(s) {
  28252. return $replace.call(String(s), /"/g, '&quot;');
  28253. }
  28254. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  28255. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  28256. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  28257. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  28258. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  28259. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  28260. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  28261. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  28262. function isSymbol(obj) {
  28263. if (hasShammedSymbols) {
  28264. return obj && typeof obj === 'object' && obj instanceof Symbol;
  28265. }
  28266. if (typeof obj === 'symbol') {
  28267. return true;
  28268. }
  28269. if (!obj || typeof obj !== 'object' || !symToString) {
  28270. return false;
  28271. }
  28272. try {
  28273. symToString.call(obj);
  28274. return true;
  28275. } catch (e) {}
  28276. return false;
  28277. }
  28278. function isBigInt(obj) {
  28279. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  28280. return false;
  28281. }
  28282. try {
  28283. bigIntValueOf.call(obj);
  28284. return true;
  28285. } catch (e) {}
  28286. return false;
  28287. }
  28288. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  28289. function has(obj, key) {
  28290. return hasOwn.call(obj, key);
  28291. }
  28292. function toStr(obj) {
  28293. return objectToString.call(obj);
  28294. }
  28295. function nameOf(f) {
  28296. if (f.name) { return f.name; }
  28297. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  28298. if (m) { return m[1]; }
  28299. return null;
  28300. }
  28301. function indexOf(xs, x) {
  28302. if (xs.indexOf) { return xs.indexOf(x); }
  28303. for (var i = 0, l = xs.length; i < l; i++) {
  28304. if (xs[i] === x) { return i; }
  28305. }
  28306. return -1;
  28307. }
  28308. function isMap(x) {
  28309. if (!mapSize || !x || typeof x !== 'object') {
  28310. return false;
  28311. }
  28312. try {
  28313. mapSize.call(x);
  28314. try {
  28315. setSize.call(x);
  28316. } catch (s) {
  28317. return true;
  28318. }
  28319. return x instanceof Map; // core-js workaround, pre-v2.5.0
  28320. } catch (e) {}
  28321. return false;
  28322. }
  28323. function isWeakMap(x) {
  28324. if (!weakMapHas || !x || typeof x !== 'object') {
  28325. return false;
  28326. }
  28327. try {
  28328. weakMapHas.call(x, weakMapHas);
  28329. try {
  28330. weakSetHas.call(x, weakSetHas);
  28331. } catch (s) {
  28332. return true;
  28333. }
  28334. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  28335. } catch (e) {}
  28336. return false;
  28337. }
  28338. function isWeakRef(x) {
  28339. if (!weakRefDeref || !x || typeof x !== 'object') {
  28340. return false;
  28341. }
  28342. try {
  28343. weakRefDeref.call(x);
  28344. return true;
  28345. } catch (e) {}
  28346. return false;
  28347. }
  28348. function isSet(x) {
  28349. if (!setSize || !x || typeof x !== 'object') {
  28350. return false;
  28351. }
  28352. try {
  28353. setSize.call(x);
  28354. try {
  28355. mapSize.call(x);
  28356. } catch (m) {
  28357. return true;
  28358. }
  28359. return x instanceof Set; // core-js workaround, pre-v2.5.0
  28360. } catch (e) {}
  28361. return false;
  28362. }
  28363. function isWeakSet(x) {
  28364. if (!weakSetHas || !x || typeof x !== 'object') {
  28365. return false;
  28366. }
  28367. try {
  28368. weakSetHas.call(x, weakSetHas);
  28369. try {
  28370. weakMapHas.call(x, weakMapHas);
  28371. } catch (s) {
  28372. return true;
  28373. }
  28374. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  28375. } catch (e) {}
  28376. return false;
  28377. }
  28378. function isElement(x) {
  28379. if (!x || typeof x !== 'object') { return false; }
  28380. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  28381. return true;
  28382. }
  28383. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  28384. }
  28385. function inspectString(str, opts) {
  28386. if (str.length > opts.maxStringLength) {
  28387. var remaining = str.length - opts.maxStringLength;
  28388. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  28389. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  28390. }
  28391. // eslint-disable-next-line no-control-regex
  28392. var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
  28393. return wrapQuotes(s, 'single', opts);
  28394. }
  28395. function lowbyte(c) {
  28396. var n = c.charCodeAt(0);
  28397. var x = {
  28398. 8: 'b',
  28399. 9: 't',
  28400. 10: 'n',
  28401. 12: 'f',
  28402. 13: 'r'
  28403. }[n];
  28404. if (x) { return '\\' + x; }
  28405. return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
  28406. }
  28407. function markBoxed(str) {
  28408. return 'Object(' + str + ')';
  28409. }
  28410. function weakCollectionOf(type) {
  28411. return type + ' { ? }';
  28412. }
  28413. function collectionOf(type, size, entries, indent) {
  28414. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
  28415. return type + ' (' + size + ') {' + joinedEntries + '}';
  28416. }
  28417. function singleLineValues(xs) {
  28418. for (var i = 0; i < xs.length; i++) {
  28419. if (indexOf(xs[i], '\n') >= 0) {
  28420. return false;
  28421. }
  28422. }
  28423. return true;
  28424. }
  28425. function getIndent(opts, depth) {
  28426. var baseIndent;
  28427. if (opts.indent === '\t') {
  28428. baseIndent = '\t';
  28429. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  28430. baseIndent = $join.call(Array(opts.indent + 1), ' ');
  28431. } else {
  28432. return null;
  28433. }
  28434. return {
  28435. base: baseIndent,
  28436. prev: $join.call(Array(depth + 1), baseIndent)
  28437. };
  28438. }
  28439. function indentedJoin(xs, indent) {
  28440. if (xs.length === 0) { return ''; }
  28441. var lineJoiner = '\n' + indent.prev + indent.base;
  28442. return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
  28443. }
  28444. function arrObjKeys(obj, inspect) {
  28445. var isArr = isArray(obj);
  28446. var xs = [];
  28447. if (isArr) {
  28448. xs.length = obj.length;
  28449. for (var i = 0; i < obj.length; i++) {
  28450. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  28451. }
  28452. }
  28453. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  28454. var symMap;
  28455. if (hasShammedSymbols) {
  28456. symMap = {};
  28457. for (var k = 0; k < syms.length; k++) {
  28458. symMap['$' + syms[k]] = syms[k];
  28459. }
  28460. }
  28461. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  28462. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  28463. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  28464. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  28465. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  28466. continue; // eslint-disable-line no-restricted-syntax, no-continue
  28467. } else if ($test.call(/[^\w$]/, key)) {
  28468. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  28469. } else {
  28470. xs.push(key + ': ' + inspect(obj[key], obj));
  28471. }
  28472. }
  28473. if (typeof gOPS === 'function') {
  28474. for (var j = 0; j < syms.length; j++) {
  28475. if (isEnumerable.call(obj, syms[j])) {
  28476. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  28477. }
  28478. }
  28479. }
  28480. return xs;
  28481. }
  28482. /***/ }),
  28483. /***/ 75:
  28484. /*!********************************!*\
  28485. !*** ./util.inspect (ignored) ***!
  28486. \********************************/
  28487. /*! no static exports found */
  28488. /***/ (function(module, exports) {
  28489. /* (ignored) */
  28490. /***/ }),
  28491. /***/ 76:
  28492. /*!**************************************!*\
  28493. !*** ./node_modules/qs/lib/utils.js ***!
  28494. \**************************************/
  28495. /*! no static exports found */
  28496. /***/ (function(module, exports, __webpack_require__) {
  28497. "use strict";
  28498. var formats = __webpack_require__(/*! ./formats */ 77);
  28499. var has = Object.prototype.hasOwnProperty;
  28500. var isArray = Array.isArray;
  28501. var hexTable = (function () {
  28502. var array = [];
  28503. for (var i = 0; i < 256; ++i) {
  28504. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  28505. }
  28506. return array;
  28507. }());
  28508. var compactQueue = function compactQueue(queue) {
  28509. while (queue.length > 1) {
  28510. var item = queue.pop();
  28511. var obj = item.obj[item.prop];
  28512. if (isArray(obj)) {
  28513. var compacted = [];
  28514. for (var j = 0; j < obj.length; ++j) {
  28515. if (typeof obj[j] !== 'undefined') {
  28516. compacted.push(obj[j]);
  28517. }
  28518. }
  28519. item.obj[item.prop] = compacted;
  28520. }
  28521. }
  28522. };
  28523. var arrayToObject = function arrayToObject(source, options) {
  28524. var obj = options && options.plainObjects ? Object.create(null) : {};
  28525. for (var i = 0; i < source.length; ++i) {
  28526. if (typeof source[i] !== 'undefined') {
  28527. obj[i] = source[i];
  28528. }
  28529. }
  28530. return obj;
  28531. };
  28532. var merge = function merge(target, source, options) {
  28533. /* eslint no-param-reassign: 0 */
  28534. if (!source) {
  28535. return target;
  28536. }
  28537. if (typeof source !== 'object') {
  28538. if (isArray(target)) {
  28539. target.push(source);
  28540. } else if (target && typeof target === 'object') {
  28541. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  28542. target[source] = true;
  28543. }
  28544. } else {
  28545. return [target, source];
  28546. }
  28547. return target;
  28548. }
  28549. if (!target || typeof target !== 'object') {
  28550. return [target].concat(source);
  28551. }
  28552. var mergeTarget = target;
  28553. if (isArray(target) && !isArray(source)) {
  28554. mergeTarget = arrayToObject(target, options);
  28555. }
  28556. if (isArray(target) && isArray(source)) {
  28557. source.forEach(function (item, i) {
  28558. if (has.call(target, i)) {
  28559. var targetItem = target[i];
  28560. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  28561. target[i] = merge(targetItem, item, options);
  28562. } else {
  28563. target.push(item);
  28564. }
  28565. } else {
  28566. target[i] = item;
  28567. }
  28568. });
  28569. return target;
  28570. }
  28571. return Object.keys(source).reduce(function (acc, key) {
  28572. var value = source[key];
  28573. if (has.call(acc, key)) {
  28574. acc[key] = merge(acc[key], value, options);
  28575. } else {
  28576. acc[key] = value;
  28577. }
  28578. return acc;
  28579. }, mergeTarget);
  28580. };
  28581. var assign = function assignSingleSource(target, source) {
  28582. return Object.keys(source).reduce(function (acc, key) {
  28583. acc[key] = source[key];
  28584. return acc;
  28585. }, target);
  28586. };
  28587. var decode = function (str, decoder, charset) {
  28588. var strWithoutPlus = str.replace(/\+/g, ' ');
  28589. if (charset === 'iso-8859-1') {
  28590. // unescape never throws, no try...catch needed:
  28591. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  28592. }
  28593. // utf-8
  28594. try {
  28595. return decodeURIComponent(strWithoutPlus);
  28596. } catch (e) {
  28597. return strWithoutPlus;
  28598. }
  28599. };
  28600. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  28601. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  28602. // It has been adapted here for stricter adherence to RFC 3986
  28603. if (str.length === 0) {
  28604. return str;
  28605. }
  28606. var string = str;
  28607. if (typeof str === 'symbol') {
  28608. string = Symbol.prototype.toString.call(str);
  28609. } else if (typeof str !== 'string') {
  28610. string = String(str);
  28611. }
  28612. if (charset === 'iso-8859-1') {
  28613. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  28614. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  28615. });
  28616. }
  28617. var out = '';
  28618. for (var i = 0; i < string.length; ++i) {
  28619. var c = string.charCodeAt(i);
  28620. if (
  28621. c === 0x2D // -
  28622. || c === 0x2E // .
  28623. || c === 0x5F // _
  28624. || c === 0x7E // ~
  28625. || (c >= 0x30 && c <= 0x39) // 0-9
  28626. || (c >= 0x41 && c <= 0x5A) // a-z
  28627. || (c >= 0x61 && c <= 0x7A) // A-Z
  28628. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  28629. ) {
  28630. out += string.charAt(i);
  28631. continue;
  28632. }
  28633. if (c < 0x80) {
  28634. out = out + hexTable[c];
  28635. continue;
  28636. }
  28637. if (c < 0x800) {
  28638. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  28639. continue;
  28640. }
  28641. if (c < 0xD800 || c >= 0xE000) {
  28642. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  28643. continue;
  28644. }
  28645. i += 1;
  28646. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  28647. /* eslint operator-linebreak: [2, "before"] */
  28648. out += hexTable[0xF0 | (c >> 18)]
  28649. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  28650. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  28651. + hexTable[0x80 | (c & 0x3F)];
  28652. }
  28653. return out;
  28654. };
  28655. var compact = function compact(value) {
  28656. var queue = [{ obj: { o: value }, prop: 'o' }];
  28657. var refs = [];
  28658. for (var i = 0; i < queue.length; ++i) {
  28659. var item = queue[i];
  28660. var obj = item.obj[item.prop];
  28661. var keys = Object.keys(obj);
  28662. for (var j = 0; j < keys.length; ++j) {
  28663. var key = keys[j];
  28664. var val = obj[key];
  28665. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  28666. queue.push({ obj: obj, prop: key });
  28667. refs.push(val);
  28668. }
  28669. }
  28670. }
  28671. compactQueue(queue);
  28672. return value;
  28673. };
  28674. var isRegExp = function isRegExp(obj) {
  28675. return Object.prototype.toString.call(obj) === '[object RegExp]';
  28676. };
  28677. var isBuffer = function isBuffer(obj) {
  28678. if (!obj || typeof obj !== 'object') {
  28679. return false;
  28680. }
  28681. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  28682. };
  28683. var combine = function combine(a, b) {
  28684. return [].concat(a, b);
  28685. };
  28686. var maybeMap = function maybeMap(val, fn) {
  28687. if (isArray(val)) {
  28688. var mapped = [];
  28689. for (var i = 0; i < val.length; i += 1) {
  28690. mapped.push(fn(val[i]));
  28691. }
  28692. return mapped;
  28693. }
  28694. return fn(val);
  28695. };
  28696. module.exports = {
  28697. arrayToObject: arrayToObject,
  28698. assign: assign,
  28699. combine: combine,
  28700. compact: compact,
  28701. decode: decode,
  28702. encode: encode,
  28703. isBuffer: isBuffer,
  28704. isRegExp: isRegExp,
  28705. maybeMap: maybeMap,
  28706. merge: merge
  28707. };
  28708. /***/ }),
  28709. /***/ 77:
  28710. /*!****************************************!*\
  28711. !*** ./node_modules/qs/lib/formats.js ***!
  28712. \****************************************/
  28713. /*! no static exports found */
  28714. /***/ (function(module, exports, __webpack_require__) {
  28715. "use strict";
  28716. var replace = String.prototype.replace;
  28717. var percentTwenties = /%20/g;
  28718. var Format = {
  28719. RFC1738: 'RFC1738',
  28720. RFC3986: 'RFC3986'
  28721. };
  28722. module.exports = {
  28723. 'default': Format.RFC3986,
  28724. formatters: {
  28725. RFC1738: function (value) {
  28726. return replace.call(value, percentTwenties, '+');
  28727. },
  28728. RFC3986: function (value) {
  28729. return String(value);
  28730. }
  28731. },
  28732. RFC1738: Format.RFC1738,
  28733. RFC3986: Format.RFC3986
  28734. };
  28735. /***/ }),
  28736. /***/ 776:
  28737. /*!****************************************************************************!*\
  28738. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/radio/index.js ***!
  28739. \****************************************************************************/
  28740. /*! no static exports found */
  28741. /***/ (function(module, exports, __webpack_require__) {
  28742. "use strict";
  28743. var _version = __webpack_require__(/*! ../common/version */ 777);
  28744. var _component = __webpack_require__(/*! ../common/component */ 778);
  28745. var _relation = __webpack_require__(/*! ../common/relation */ 780);
  28746. (0, _component.VantComponent)({
  28747. field: true,
  28748. relation: (0, _relation.useParent)('radio-group', function () {
  28749. this.updateFromParent();
  28750. }),
  28751. classes: ['icon-class', 'label-class'],
  28752. props: {
  28753. name: null,
  28754. value: null,
  28755. disabled: Boolean,
  28756. useIconSlot: Boolean,
  28757. checkedColor: String,
  28758. labelPosition: {
  28759. type: String,
  28760. value: 'right'
  28761. },
  28762. labelDisabled: Boolean,
  28763. shape: {
  28764. type: String,
  28765. value: 'round'
  28766. },
  28767. iconSize: {
  28768. type: null,
  28769. value: 20
  28770. }
  28771. },
  28772. data: {
  28773. direction: '',
  28774. parentDisabled: false
  28775. },
  28776. methods: {
  28777. updateFromParent: function updateFromParent() {
  28778. if (!this.parent) {
  28779. return;
  28780. }
  28781. var _this$parent$data = this.parent.data,
  28782. value = _this$parent$data.value,
  28783. parentDisabled = _this$parent$data.disabled,
  28784. direction = _this$parent$data.direction;
  28785. this.setData({
  28786. value: value,
  28787. direction: direction,
  28788. parentDisabled: parentDisabled
  28789. });
  28790. },
  28791. emitChange: function emitChange(value) {
  28792. var instance = this.parent || this;
  28793. instance.$emit('input', value);
  28794. instance.$emit('change', value);
  28795. if ((0, _version.canIUseModel)()) {
  28796. instance.setData({
  28797. value: value
  28798. });
  28799. }
  28800. },
  28801. onChange: function onChange() {
  28802. if (!this.data.disabled && !this.data.parentDisabled) {
  28803. this.emitChange(this.data.name);
  28804. }
  28805. },
  28806. onClickLabel: function onClickLabel() {
  28807. var _this$data = this.data,
  28808. disabled = _this$data.disabled,
  28809. parentDisabled = _this$data.parentDisabled,
  28810. labelDisabled = _this$data.labelDisabled,
  28811. name = _this$data.name;
  28812. if (!(disabled || parentDisabled) && !labelDisabled) {
  28813. this.emitChange(name);
  28814. }
  28815. }
  28816. }
  28817. });
  28818. /***/ }),
  28819. /***/ 777:
  28820. /*!*******************************************************************************!*\
  28821. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/common/version.js ***!
  28822. \*******************************************************************************/
  28823. /*! no static exports found */
  28824. /***/ (function(module, exports, __webpack_require__) {
  28825. "use strict";
  28826. /* WEBPACK VAR INJECTION */(function(wx) {
  28827. Object.defineProperty(exports, "__esModule", {
  28828. value: true
  28829. });
  28830. exports.canIUseAnimate = canIUseAnimate;
  28831. exports.canIUseCanvas2d = canIUseCanvas2d;
  28832. exports.canIUseFormFieldButton = canIUseFormFieldButton;
  28833. exports.canIUseGetUserProfile = canIUseGetUserProfile;
  28834. exports.canIUseGroupSetData = canIUseGroupSetData;
  28835. exports.canIUseModel = canIUseModel;
  28836. exports.canIUseNextTick = canIUseNextTick;
  28837. exports.getSystemInfoSync = getSystemInfoSync;
  28838. var systemInfo;
  28839. function getSystemInfoSync() {
  28840. if (systemInfo == null) {
  28841. systemInfo = wx.getSystemInfoSync();
  28842. }
  28843. return systemInfo;
  28844. }
  28845. function compareVersion(v1, v2) {
  28846. v1 = v1.split('.');
  28847. v2 = v2.split('.');
  28848. var len = Math.max(v1.length, v2.length);
  28849. while (v1.length < len) {
  28850. v1.push('0');
  28851. }
  28852. while (v2.length < len) {
  28853. v2.push('0');
  28854. }
  28855. for (var i = 0; i < len; i++) {
  28856. var num1 = parseInt(v1[i], 10);
  28857. var num2 = parseInt(v2[i], 10);
  28858. if (num1 > num2) {
  28859. return 1;
  28860. }
  28861. if (num1 < num2) {
  28862. return -1;
  28863. }
  28864. }
  28865. return 0;
  28866. }
  28867. function gte(version) {
  28868. var system = getSystemInfoSync();
  28869. return compareVersion(system.SDKVersion, version) >= 0;
  28870. }
  28871. function canIUseModel() {
  28872. return gte('2.9.3');
  28873. }
  28874. function canIUseFormFieldButton() {
  28875. return gte('2.10.3');
  28876. }
  28877. function canIUseAnimate() {
  28878. return gte('2.9.0');
  28879. }
  28880. function canIUseGroupSetData() {
  28881. return gte('2.4.0');
  28882. }
  28883. function canIUseNextTick() {
  28884. try {
  28885. return wx.canIUse('nextTick');
  28886. } catch (e) {
  28887. return gte('2.7.1');
  28888. }
  28889. }
  28890. function canIUseCanvas2d() {
  28891. return gte('2.9.0');
  28892. }
  28893. function canIUseGetUserProfile() {
  28894. return !!wx.getUserProfile;
  28895. }
  28896. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  28897. /***/ }),
  28898. /***/ 778:
  28899. /*!*********************************************************************************!*\
  28900. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/common/component.js ***!
  28901. \*********************************************************************************/
  28902. /*! no static exports found */
  28903. /***/ (function(module, exports, __webpack_require__) {
  28904. "use strict";
  28905. Object.defineProperty(exports, "__esModule", {
  28906. value: true
  28907. });
  28908. exports.VantComponent = VantComponent;
  28909. var _basic = __webpack_require__(/*! ../mixins/basic */ 779);
  28910. function mapKeys(source, target, map) {
  28911. Object.keys(map).forEach(function (key) {
  28912. if (source[key]) {
  28913. target[map[key]] = source[key];
  28914. }
  28915. });
  28916. }
  28917. function VantComponent(vantOptions) {
  28918. var options = {};
  28919. mapKeys(vantOptions, options, {
  28920. data: 'data',
  28921. props: 'properties',
  28922. watch: 'observers',
  28923. mixins: 'behaviors',
  28924. methods: 'methods',
  28925. beforeCreate: 'created',
  28926. created: 'attached',
  28927. mounted: 'ready',
  28928. destroyed: 'detached',
  28929. classes: 'externalClasses'
  28930. });
  28931. // add default externalClasses
  28932. options.externalClasses = options.externalClasses || [];
  28933. options.externalClasses.push('custom-class');
  28934. // add default behaviors
  28935. options.behaviors = options.behaviors || [];
  28936. options.behaviors.push(_basic.basic);
  28937. // add relations
  28938. var relation = vantOptions.relation;
  28939. if (relation) {
  28940. options.relations = relation.relations;
  28941. options.behaviors.push(relation.mixin);
  28942. }
  28943. // map field to form-field behavior
  28944. if (vantOptions.field) {
  28945. options.behaviors.push('wx://form-field');
  28946. }
  28947. // add default options
  28948. options.options = {
  28949. multipleSlots: true,
  28950. addGlobalClass: true
  28951. };
  28952. Component(options);
  28953. }
  28954. /***/ }),
  28955. /***/ 779:
  28956. /*!*****************************************************************************!*\
  28957. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/mixins/basic.js ***!
  28958. \*****************************************************************************/
  28959. /*! no static exports found */
  28960. /***/ (function(module, exports, __webpack_require__) {
  28961. "use strict";
  28962. /* WEBPACK VAR INJECTION */(function(wx) {
  28963. Object.defineProperty(exports, "__esModule", {
  28964. value: true
  28965. });
  28966. exports.basic = void 0;
  28967. var basic = Behavior({
  28968. methods: {
  28969. $emit: function $emit(name, detail, options) {
  28970. this.triggerEvent(name, detail, options);
  28971. },
  28972. set: function set(data) {
  28973. this.setData(data);
  28974. return new Promise(function (resolve) {
  28975. return wx.nextTick(resolve);
  28976. });
  28977. }
  28978. }
  28979. });
  28980. exports.basic = basic;
  28981. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  28982. /***/ }),
  28983. /***/ 78:
  28984. /*!**************************************!*\
  28985. !*** ./node_modules/qs/lib/parse.js ***!
  28986. \**************************************/
  28987. /*! no static exports found */
  28988. /***/ (function(module, exports, __webpack_require__) {
  28989. "use strict";
  28990. var utils = __webpack_require__(/*! ./utils */ 76);
  28991. var has = Object.prototype.hasOwnProperty;
  28992. var isArray = Array.isArray;
  28993. var defaults = {
  28994. allowDots: false,
  28995. allowPrototypes: false,
  28996. allowSparse: false,
  28997. arrayLimit: 20,
  28998. charset: 'utf-8',
  28999. charsetSentinel: false,
  29000. comma: false,
  29001. decoder: utils.decode,
  29002. delimiter: '&',
  29003. depth: 5,
  29004. ignoreQueryPrefix: false,
  29005. interpretNumericEntities: false,
  29006. parameterLimit: 1000,
  29007. parseArrays: true,
  29008. plainObjects: false,
  29009. strictNullHandling: false
  29010. };
  29011. var interpretNumericEntities = function (str) {
  29012. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  29013. return String.fromCharCode(parseInt(numberStr, 10));
  29014. });
  29015. };
  29016. var parseArrayValue = function (val, options) {
  29017. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  29018. return val.split(',');
  29019. }
  29020. return val;
  29021. };
  29022. // This is what browsers will submit when the ✓ character occurs in an
  29023. // application/x-www-form-urlencoded body and the encoding of the page containing
  29024. // the form is iso-8859-1, or when the submitted form has an accept-charset
  29025. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  29026. // the ✓ character, such as us-ascii.
  29027. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  29028. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  29029. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  29030. var parseValues = function parseQueryStringValues(str, options) {
  29031. var obj = {};
  29032. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  29033. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  29034. var parts = cleanStr.split(options.delimiter, limit);
  29035. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  29036. var i;
  29037. var charset = options.charset;
  29038. if (options.charsetSentinel) {
  29039. for (i = 0; i < parts.length; ++i) {
  29040. if (parts[i].indexOf('utf8=') === 0) {
  29041. if (parts[i] === charsetSentinel) {
  29042. charset = 'utf-8';
  29043. } else if (parts[i] === isoSentinel) {
  29044. charset = 'iso-8859-1';
  29045. }
  29046. skipIndex = i;
  29047. i = parts.length; // The eslint settings do not allow break;
  29048. }
  29049. }
  29050. }
  29051. for (i = 0; i < parts.length; ++i) {
  29052. if (i === skipIndex) {
  29053. continue;
  29054. }
  29055. var part = parts[i];
  29056. var bracketEqualsPos = part.indexOf(']=');
  29057. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  29058. var key, val;
  29059. if (pos === -1) {
  29060. key = options.decoder(part, defaults.decoder, charset, 'key');
  29061. val = options.strictNullHandling ? null : '';
  29062. } else {
  29063. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  29064. val = utils.maybeMap(
  29065. parseArrayValue(part.slice(pos + 1), options),
  29066. function (encodedVal) {
  29067. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  29068. }
  29069. );
  29070. }
  29071. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  29072. val = interpretNumericEntities(val);
  29073. }
  29074. if (part.indexOf('[]=') > -1) {
  29075. val = isArray(val) ? [val] : val;
  29076. }
  29077. if (has.call(obj, key)) {
  29078. obj[key] = utils.combine(obj[key], val);
  29079. } else {
  29080. obj[key] = val;
  29081. }
  29082. }
  29083. return obj;
  29084. };
  29085. var parseObject = function (chain, val, options, valuesParsed) {
  29086. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  29087. for (var i = chain.length - 1; i >= 0; --i) {
  29088. var obj;
  29089. var root = chain[i];
  29090. if (root === '[]' && options.parseArrays) {
  29091. obj = [].concat(leaf);
  29092. } else {
  29093. obj = options.plainObjects ? Object.create(null) : {};
  29094. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  29095. var index = parseInt(cleanRoot, 10);
  29096. if (!options.parseArrays && cleanRoot === '') {
  29097. obj = { 0: leaf };
  29098. } else if (
  29099. !isNaN(index)
  29100. && root !== cleanRoot
  29101. && String(index) === cleanRoot
  29102. && index >= 0
  29103. && (options.parseArrays && index <= options.arrayLimit)
  29104. ) {
  29105. obj = [];
  29106. obj[index] = leaf;
  29107. } else if (cleanRoot !== '__proto__') {
  29108. obj[cleanRoot] = leaf;
  29109. }
  29110. }
  29111. leaf = obj;
  29112. }
  29113. return leaf;
  29114. };
  29115. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  29116. if (!givenKey) {
  29117. return;
  29118. }
  29119. // Transform dot notation to bracket notation
  29120. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  29121. // The regex chunks
  29122. var brackets = /(\[[^[\]]*])/;
  29123. var child = /(\[[^[\]]*])/g;
  29124. // Get the parent
  29125. var segment = options.depth > 0 && brackets.exec(key);
  29126. var parent = segment ? key.slice(0, segment.index) : key;
  29127. // Stash the parent if it exists
  29128. var keys = [];
  29129. if (parent) {
  29130. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  29131. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  29132. if (!options.allowPrototypes) {
  29133. return;
  29134. }
  29135. }
  29136. keys.push(parent);
  29137. }
  29138. // Loop through children appending to the array until we hit depth
  29139. var i = 0;
  29140. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  29141. i += 1;
  29142. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  29143. if (!options.allowPrototypes) {
  29144. return;
  29145. }
  29146. }
  29147. keys.push(segment[1]);
  29148. }
  29149. // If there's a remainder, just add whatever is left
  29150. if (segment) {
  29151. keys.push('[' + key.slice(segment.index) + ']');
  29152. }
  29153. return parseObject(keys, val, options, valuesParsed);
  29154. };
  29155. var normalizeParseOptions = function normalizeParseOptions(opts) {
  29156. if (!opts) {
  29157. return defaults;
  29158. }
  29159. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  29160. throw new TypeError('Decoder has to be a function.');
  29161. }
  29162. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  29163. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  29164. }
  29165. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  29166. return {
  29167. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  29168. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  29169. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  29170. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  29171. charset: charset,
  29172. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  29173. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  29174. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  29175. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  29176. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  29177. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  29178. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  29179. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  29180. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  29181. parseArrays: opts.parseArrays !== false,
  29182. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  29183. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  29184. };
  29185. };
  29186. module.exports = function (str, opts) {
  29187. var options = normalizeParseOptions(opts);
  29188. if (str === '' || str === null || typeof str === 'undefined') {
  29189. return options.plainObjects ? Object.create(null) : {};
  29190. }
  29191. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  29192. var obj = options.plainObjects ? Object.create(null) : {};
  29193. // Iterate over the keys and setup the new object
  29194. var keys = Object.keys(tempObj);
  29195. for (var i = 0; i < keys.length; ++i) {
  29196. var key = keys[i];
  29197. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  29198. obj = utils.merge(obj, newObj, options);
  29199. }
  29200. if (options.allowSparse === true) {
  29201. return obj;
  29202. }
  29203. return utils.compact(obj);
  29204. };
  29205. /***/ }),
  29206. /***/ 780:
  29207. /*!********************************************************************************!*\
  29208. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/common/relation.js ***!
  29209. \********************************************************************************/
  29210. /*! no static exports found */
  29211. /***/ (function(module, exports, __webpack_require__) {
  29212. "use strict";
  29213. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29214. Object.defineProperty(exports, "__esModule", {
  29215. value: true
  29216. });
  29217. exports.useChildren = useChildren;
  29218. exports.useParent = useParent;
  29219. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  29220. function useParent(name, onEffect) {
  29221. var path = "../".concat(name, "/index");
  29222. return {
  29223. relations: (0, _defineProperty2.default)({}, path, {
  29224. type: 'ancestor',
  29225. linked: function linked() {
  29226. onEffect && onEffect.call(this);
  29227. },
  29228. linkChanged: function linkChanged() {
  29229. onEffect && onEffect.call(this);
  29230. },
  29231. unlinked: function unlinked() {
  29232. onEffect && onEffect.call(this);
  29233. }
  29234. }),
  29235. mixin: Behavior({
  29236. created: function created() {
  29237. var _this = this;
  29238. Object.defineProperty(this, 'parent', {
  29239. get: function get() {
  29240. return _this.getRelationNodes(path)[0];
  29241. }
  29242. });
  29243. Object.defineProperty(this, 'index', {
  29244. // @ts-ignore
  29245. get: function get() {
  29246. var _a, _b;
  29247. return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this);
  29248. }
  29249. });
  29250. }
  29251. })
  29252. };
  29253. }
  29254. function useChildren(name, onEffect) {
  29255. var path = "../".concat(name, "/index");
  29256. return {
  29257. relations: (0, _defineProperty2.default)({}, path, {
  29258. type: 'descendant',
  29259. linked: function linked(target) {
  29260. onEffect && onEffect.call(this, target);
  29261. },
  29262. linkChanged: function linkChanged(target) {
  29263. onEffect && onEffect.call(this, target);
  29264. },
  29265. unlinked: function unlinked(target) {
  29266. onEffect && onEffect.call(this, target);
  29267. }
  29268. }),
  29269. mixin: Behavior({
  29270. created: function created() {
  29271. var _this2 = this;
  29272. Object.defineProperty(this, 'children', {
  29273. get: function get() {
  29274. return _this2.getRelationNodes(path) || [];
  29275. }
  29276. });
  29277. }
  29278. })
  29279. };
  29280. }
  29281. /***/ }),
  29282. /***/ 781:
  29283. /*!**********************************************************************************!*\
  29284. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/radio-group/index.js ***!
  29285. \**********************************************************************************/
  29286. /*! no static exports found */
  29287. /***/ (function(module, exports, __webpack_require__) {
  29288. "use strict";
  29289. var _component = __webpack_require__(/*! ../common/component */ 778);
  29290. var _relation = __webpack_require__(/*! ../common/relation */ 780);
  29291. (0, _component.VantComponent)({
  29292. field: true,
  29293. relation: (0, _relation.useChildren)('radio'),
  29294. props: {
  29295. value: {
  29296. type: null,
  29297. observer: 'updateChildren'
  29298. },
  29299. direction: String,
  29300. disabled: {
  29301. type: Boolean,
  29302. observer: 'updateChildren'
  29303. }
  29304. },
  29305. methods: {
  29306. updateChildren: function updateChildren() {
  29307. this.children.forEach(function (child) {
  29308. return child.updateFromParent();
  29309. });
  29310. }
  29311. }
  29312. });
  29313. /***/ }),
  29314. /***/ 782:
  29315. /*!***************************************************************************!*\
  29316. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/rate/index.js ***!
  29317. \***************************************************************************/
  29318. /*! no static exports found */
  29319. /***/ (function(module, exports, __webpack_require__) {
  29320. "use strict";
  29321. /* WEBPACK VAR INJECTION */(function(wx) {
  29322. var _utils = __webpack_require__(/*! ../common/utils */ 783);
  29323. var _component = __webpack_require__(/*! ../common/component */ 778);
  29324. var _version = __webpack_require__(/*! ../common/version */ 777);
  29325. (0, _component.VantComponent)({
  29326. field: true,
  29327. classes: ['icon-class'],
  29328. props: {
  29329. value: {
  29330. type: Number,
  29331. observer: function observer(value) {
  29332. if (value !== this.data.innerValue) {
  29333. this.setData({
  29334. innerValue: value
  29335. });
  29336. }
  29337. }
  29338. },
  29339. readonly: Boolean,
  29340. disabled: Boolean,
  29341. allowHalf: Boolean,
  29342. size: null,
  29343. icon: {
  29344. type: String,
  29345. value: 'star'
  29346. },
  29347. voidIcon: {
  29348. type: String,
  29349. value: 'star-o'
  29350. },
  29351. color: String,
  29352. voidColor: String,
  29353. disabledColor: String,
  29354. count: {
  29355. type: Number,
  29356. value: 5,
  29357. observer: function observer(value) {
  29358. this.setData({
  29359. innerCountArray: Array.from({
  29360. length: value
  29361. })
  29362. });
  29363. }
  29364. },
  29365. gutter: null,
  29366. touchable: {
  29367. type: Boolean,
  29368. value: true
  29369. }
  29370. },
  29371. data: {
  29372. innerValue: 0,
  29373. innerCountArray: Array.from({
  29374. length: 5
  29375. })
  29376. },
  29377. methods: {
  29378. onSelect: function onSelect(event) {
  29379. var _this = this;
  29380. var data = this.data;
  29381. var score = event.currentTarget.dataset.score;
  29382. if (!data.disabled && !data.readonly) {
  29383. this.setData({
  29384. innerValue: score + 1
  29385. });
  29386. if ((0, _version.canIUseModel)()) {
  29387. this.setData({
  29388. value: score + 1
  29389. });
  29390. }
  29391. wx.nextTick(function () {
  29392. _this.$emit('input', score + 1);
  29393. _this.$emit('change', score + 1);
  29394. });
  29395. }
  29396. },
  29397. onTouchMove: function onTouchMove(event) {
  29398. var _this2 = this;
  29399. var touchable = this.data.touchable;
  29400. if (!touchable) return;
  29401. var clientX = event.touches[0].clientX;
  29402. (0, _utils.getAllRect)(this, '.van-rate__icon').then(function (list) {
  29403. var target = list.sort(function (cur, next) {
  29404. return cur.dataset.score - next.dataset.score;
  29405. }).find(function (item) {
  29406. return clientX >= item.left && clientX <= item.right;
  29407. });
  29408. if (target != null) {
  29409. _this2.onSelect(Object.assign(Object.assign({}, event), {
  29410. currentTarget: target
  29411. }));
  29412. }
  29413. });
  29414. }
  29415. }
  29416. });
  29417. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  29418. /***/ }),
  29419. /***/ 783:
  29420. /*!*****************************************************************************!*\
  29421. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/common/utils.js ***!
  29422. \*****************************************************************************/
  29423. /*! no static exports found */
  29424. /***/ (function(module, exports, __webpack_require__) {
  29425. "use strict";
  29426. /* WEBPACK VAR INJECTION */(function(wx) {
  29427. Object.defineProperty(exports, "__esModule", {
  29428. value: true
  29429. });
  29430. exports.addUnit = addUnit;
  29431. exports.getAllRect = getAllRect;
  29432. exports.getCurrentPage = getCurrentPage;
  29433. exports.getRect = getRect;
  29434. Object.defineProperty(exports, "getSystemInfoSync", {
  29435. enumerable: true,
  29436. get: function get() {
  29437. return _version.getSystemInfoSync;
  29438. }
  29439. });
  29440. exports.groupSetData = groupSetData;
  29441. Object.defineProperty(exports, "isDef", {
  29442. enumerable: true,
  29443. get: function get() {
  29444. return _validator.isDef;
  29445. }
  29446. });
  29447. exports.nextTick = nextTick;
  29448. exports.pickExclude = pickExclude;
  29449. exports.range = range;
  29450. exports.requestAnimationFrame = requestAnimationFrame;
  29451. exports.toPromise = toPromise;
  29452. var _validator = __webpack_require__(/*! ./validator */ 784);
  29453. var _version = __webpack_require__(/*! ./version */ 777);
  29454. function range(num, min, max) {
  29455. return Math.min(Math.max(num, min), max);
  29456. }
  29457. function nextTick(cb) {
  29458. if ((0, _version.canIUseNextTick)()) {
  29459. wx.nextTick(cb);
  29460. } else {
  29461. setTimeout(function () {
  29462. cb();
  29463. }, 1000 / 30);
  29464. }
  29465. }
  29466. function addUnit(value) {
  29467. if (!(0, _validator.isDef)(value)) {
  29468. return undefined;
  29469. }
  29470. value = String(value);
  29471. return (0, _validator.isNumber)(value) ? "".concat(value, "px") : value;
  29472. }
  29473. function requestAnimationFrame(cb) {
  29474. return setTimeout(function () {
  29475. cb();
  29476. }, 1000 / 30);
  29477. }
  29478. function pickExclude(obj, keys) {
  29479. if (!(0, _validator.isPlainObject)(obj)) {
  29480. return {};
  29481. }
  29482. return Object.keys(obj).reduce(function (prev, key) {
  29483. if (!keys.includes(key)) {
  29484. prev[key] = obj[key];
  29485. }
  29486. return prev;
  29487. }, {});
  29488. }
  29489. function getRect(context, selector) {
  29490. return new Promise(function (resolve) {
  29491. wx.createSelectorQuery().in(context).select(selector).boundingClientRect().exec(function () {
  29492. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  29493. return resolve(rect[0]);
  29494. });
  29495. });
  29496. }
  29497. function getAllRect(context, selector) {
  29498. return new Promise(function (resolve) {
  29499. wx.createSelectorQuery().in(context).selectAll(selector).boundingClientRect().exec(function () {
  29500. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  29501. return resolve(rect[0]);
  29502. });
  29503. });
  29504. }
  29505. function groupSetData(context, cb) {
  29506. if ((0, _version.canIUseGroupSetData)()) {
  29507. context.groupSetData(cb);
  29508. } else {
  29509. cb();
  29510. }
  29511. }
  29512. function toPromise(promiseLike) {
  29513. if ((0, _validator.isPromise)(promiseLike)) {
  29514. return promiseLike;
  29515. }
  29516. return Promise.resolve(promiseLike);
  29517. }
  29518. function getCurrentPage() {
  29519. var pages = getCurrentPages();
  29520. return pages[pages.length - 1];
  29521. }
  29522. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  29523. /***/ }),
  29524. /***/ 784:
  29525. /*!*********************************************************************************!*\
  29526. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/common/validator.js ***!
  29527. \*********************************************************************************/
  29528. /*! no static exports found */
  29529. /***/ (function(module, exports, __webpack_require__) {
  29530. "use strict";
  29531. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29532. Object.defineProperty(exports, "__esModule", {
  29533. value: true
  29534. });
  29535. exports.isBoolean = isBoolean;
  29536. exports.isDef = isDef;
  29537. exports.isFunction = isFunction;
  29538. exports.isImageUrl = isImageUrl;
  29539. exports.isNumber = isNumber;
  29540. exports.isObj = isObj;
  29541. exports.isPlainObject = isPlainObject;
  29542. exports.isPromise = isPromise;
  29543. exports.isVideoUrl = isVideoUrl;
  29544. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  29545. // eslint-disable-next-line @typescript-eslint/ban-types
  29546. function isFunction(val) {
  29547. return typeof val === 'function';
  29548. }
  29549. function isPlainObject(val) {
  29550. return val !== null && (0, _typeof2.default)(val) === 'object' && !Array.isArray(val);
  29551. }
  29552. function isPromise(val) {
  29553. return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
  29554. }
  29555. function isDef(value) {
  29556. return value !== undefined && value !== null;
  29557. }
  29558. function isObj(x) {
  29559. var type = (0, _typeof2.default)(x);
  29560. return x !== null && (type === 'object' || type === 'function');
  29561. }
  29562. function isNumber(value) {
  29563. return /^\d+(\.\d+)?$/.test(value);
  29564. }
  29565. function isBoolean(value) {
  29566. return typeof value === 'boolean';
  29567. }
  29568. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  29569. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
  29570. function isImageUrl(url) {
  29571. return IMAGE_REGEXP.test(url);
  29572. }
  29573. function isVideoUrl(url) {
  29574. return VIDEO_REGEXP.test(url);
  29575. }
  29576. /***/ }),
  29577. /***/ 8:
  29578. /*!***************************************************************************!*\
  29579. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  29580. \***************************************************************************/
  29581. /*! no static exports found */
  29582. /***/ (function(module, exports, __webpack_require__) {
  29583. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  29584. function _unsupportedIterableToArray(o, minLen) {
  29585. if (!o) return;
  29586. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  29587. var n = Object.prototype.toString.call(o).slice(8, -1);
  29588. if (n === "Object" && o.constructor) n = o.constructor.name;
  29589. if (n === "Map" || n === "Set") return Array.from(o);
  29590. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  29591. }
  29592. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29593. /***/ }),
  29594. /***/ 804:
  29595. /*!******************************************************************************************************************!*\
  29596. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js ***!
  29597. \******************************************************************************************************************/
  29598. /*! no static exports found */
  29599. /***/ (function(module, exports, __webpack_require__) {
  29600. "use strict";
  29601. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29602. Object.defineProperty(exports, "__esModule", {
  29603. value: true
  29604. });
  29605. exports.default = void 0;
  29606. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 805));
  29607. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 806));
  29608. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 807));
  29609. var _default = {
  29610. en: _en.default,
  29611. 'zh-Hans': _zhHans.default,
  29612. 'zh-Hant': _zhHant.default
  29613. };
  29614. exports.default = _default;
  29615. /***/ }),
  29616. /***/ 805:
  29617. /*!*****************************************************************************************************************!*\
  29618. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json ***!
  29619. \*****************************************************************************************************************/
  29620. /*! 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 */
  29621. /***/ (function(module) {
  29622. 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\"}");
  29623. /***/ }),
  29624. /***/ 806:
  29625. /*!**********************************************************************************************************************!*\
  29626. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json ***!
  29627. \**********************************************************************************************************************/
  29628. /*! 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 */
  29629. /***/ (function(module) {
  29630. 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\":\"确认\"}");
  29631. /***/ }),
  29632. /***/ 807:
  29633. /*!**********************************************************************************************************************!*\
  29634. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json ***!
  29635. \**********************************************************************************************************************/
  29636. /*! 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 */
  29637. /***/ (function(module) {
  29638. 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\":\"確認\"}");
  29639. /***/ }),
  29640. /***/ 808:
  29641. /*!************************************************************************************************************!*\
  29642. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js ***!
  29643. \************************************************************************************************************/
  29644. /*! no static exports found */
  29645. /***/ (function(module, exports, __webpack_require__) {
  29646. "use strict";
  29647. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29648. Object.defineProperty(exports, "__esModule", {
  29649. value: true
  29650. });
  29651. exports.Calendar = void 0;
  29652. exports.addZero = addZero;
  29653. exports.checkDate = checkDate;
  29654. exports.dateCompare = dateCompare;
  29655. exports.fixIosDateFormat = fixIosDateFormat;
  29656. exports.getDate = getDate;
  29657. exports.getDateTime = getDateTime;
  29658. exports.getDefaultSecond = getDefaultSecond;
  29659. exports.getTime = getTime;
  29660. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  29661. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  29662. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  29663. var Calendar = /*#__PURE__*/function () {
  29664. function Calendar() {
  29665. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  29666. selected = _ref.selected,
  29667. startDate = _ref.startDate,
  29668. endDate = _ref.endDate,
  29669. range = _ref.range;
  29670. (0, _classCallCheck2.default)(this, Calendar);
  29671. // 当前日期
  29672. this.date = this.getDateObj(new Date()); // 当前初入日期
  29673. // 打点信息
  29674. this.selected = selected || [];
  29675. // 起始时间
  29676. this.startDate = startDate;
  29677. // 终止时间
  29678. this.endDate = endDate;
  29679. // 是否范围选择
  29680. this.range = range;
  29681. // 多选状态
  29682. this.cleanMultipleStatus();
  29683. // 每周日期
  29684. this.weeks = {};
  29685. this.lastHover = false;
  29686. }
  29687. /**
  29688. * 设置日期
  29689. * @param {Object} date
  29690. */
  29691. (0, _createClass2.default)(Calendar, [{
  29692. key: "setDate",
  29693. value: function setDate(date) {
  29694. var selectDate = this.getDateObj(date);
  29695. this.getWeeks(selectDate.fullDate);
  29696. }
  29697. /**
  29698. * 清理多选状态
  29699. */
  29700. }, {
  29701. key: "cleanMultipleStatus",
  29702. value: function cleanMultipleStatus() {
  29703. this.multipleStatus = {
  29704. before: '',
  29705. after: '',
  29706. data: []
  29707. };
  29708. }
  29709. }, {
  29710. key: "setStartDate",
  29711. value: function setStartDate(startDate) {
  29712. this.startDate = startDate;
  29713. }
  29714. }, {
  29715. key: "setEndDate",
  29716. value: function setEndDate(endDate) {
  29717. this.endDate = endDate;
  29718. }
  29719. }, {
  29720. key: "getPreMonthObj",
  29721. value: function getPreMonthObj(date) {
  29722. date = fixIosDateFormat(date);
  29723. date = new Date(date);
  29724. var oldMonth = date.getMonth();
  29725. date.setMonth(oldMonth - 1);
  29726. var newMonth = date.getMonth();
  29727. if (oldMonth !== 0 && newMonth - oldMonth === 0) {
  29728. date.setMonth(newMonth - 1);
  29729. }
  29730. return this.getDateObj(date);
  29731. }
  29732. }, {
  29733. key: "getNextMonthObj",
  29734. value: function getNextMonthObj(date) {
  29735. date = fixIosDateFormat(date);
  29736. date = new Date(date);
  29737. var oldMonth = date.getMonth();
  29738. date.setMonth(oldMonth + 1);
  29739. var newMonth = date.getMonth();
  29740. if (newMonth - oldMonth > 1) {
  29741. date.setMonth(newMonth - 1);
  29742. }
  29743. return this.getDateObj(date);
  29744. }
  29745. /**
  29746. * 获取指定格式Date对象
  29747. */
  29748. }, {
  29749. key: "getDateObj",
  29750. value: function getDateObj(date) {
  29751. date = fixIosDateFormat(date);
  29752. date = new Date(date);
  29753. return {
  29754. fullDate: getDate(date),
  29755. year: date.getFullYear(),
  29756. month: addZero(date.getMonth() + 1),
  29757. date: addZero(date.getDate()),
  29758. day: date.getDay()
  29759. };
  29760. }
  29761. /**
  29762. * 获取上一个月日期集合
  29763. */
  29764. }, {
  29765. key: "getPreMonthDays",
  29766. value: function getPreMonthDays(amount, dateObj) {
  29767. var result = [];
  29768. for (var i = amount - 1; i >= 0; i--) {
  29769. var month = dateObj.month - 1;
  29770. result.push({
  29771. date: new Date(dateObj.year, month, -i).getDate(),
  29772. month: month,
  29773. disable: true
  29774. });
  29775. }
  29776. return result;
  29777. }
  29778. /**
  29779. * 获取本月日期集合
  29780. */
  29781. }, {
  29782. key: "getCurrentMonthDays",
  29783. value: function getCurrentMonthDays(amount, dateObj) {
  29784. var _this = this;
  29785. var result = [];
  29786. var fullDate = this.date.fullDate;
  29787. var _loop = function _loop(i) {
  29788. var currentDate = "".concat(dateObj.year, "-").concat(dateObj.month, "-").concat(addZero(i));
  29789. var isToday = fullDate === currentDate;
  29790. // 获取打点信息
  29791. var info = _this.selected && _this.selected.find(function (item) {
  29792. if (_this.dateEqual(currentDate, item.date)) {
  29793. return item;
  29794. }
  29795. });
  29796. // 日期禁用
  29797. var disableBefore = true;
  29798. var disableAfter = true;
  29799. if (_this.startDate) {
  29800. disableBefore = dateCompare(_this.startDate, currentDate);
  29801. }
  29802. if (_this.endDate) {
  29803. disableAfter = dateCompare(currentDate, _this.endDate);
  29804. }
  29805. var multiples = _this.multipleStatus.data;
  29806. var multiplesStatus = -1;
  29807. if (_this.range && multiples) {
  29808. multiplesStatus = multiples.findIndex(function (item) {
  29809. return _this.dateEqual(item, currentDate);
  29810. });
  29811. }
  29812. var checked = multiplesStatus !== -1;
  29813. result.push({
  29814. fullDate: currentDate,
  29815. year: dateObj.year,
  29816. date: i,
  29817. multiple: _this.range ? checked : false,
  29818. beforeMultiple: _this.isLogicBefore(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  29819. afterMultiple: _this.isLogicAfter(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  29820. month: dateObj.month,
  29821. disable: _this.startDate && !dateCompare(_this.startDate, currentDate) || _this.endDate && !dateCompare(currentDate, _this.endDate),
  29822. isToday: isToday,
  29823. userChecked: false,
  29824. extraInfo: info
  29825. });
  29826. };
  29827. for (var i = 1; i <= amount; i++) {
  29828. _loop(i);
  29829. }
  29830. return result;
  29831. }
  29832. /**
  29833. * 获取下一个月日期集合
  29834. */
  29835. }, {
  29836. key: "_getNextMonthDays",
  29837. value: function _getNextMonthDays(amount, dateObj) {
  29838. var result = [];
  29839. var month = dateObj.month + 1;
  29840. for (var i = 1; i <= amount; i++) {
  29841. result.push({
  29842. date: i,
  29843. month: month,
  29844. disable: true
  29845. });
  29846. }
  29847. return result;
  29848. }
  29849. /**
  29850. * 获取当前日期详情
  29851. * @param {Object} date
  29852. */
  29853. }, {
  29854. key: "getInfo",
  29855. value: function getInfo(date) {
  29856. var _this2 = this;
  29857. if (!date) {
  29858. date = new Date();
  29859. }
  29860. return this.calendar.find(function (item) {
  29861. return item.fullDate === _this2.getDateObj(date).fullDate;
  29862. });
  29863. }
  29864. /**
  29865. * 比较时间是否相等
  29866. */
  29867. }, {
  29868. key: "dateEqual",
  29869. value: function dateEqual(before, after) {
  29870. before = new Date(fixIosDateFormat(before));
  29871. after = new Date(fixIosDateFormat(after));
  29872. return before.valueOf() === after.valueOf();
  29873. }
  29874. /**
  29875. * 比较真实起始日期
  29876. */
  29877. }, {
  29878. key: "isLogicBefore",
  29879. value: function isLogicBefore(currentDate, before, after) {
  29880. var logicBefore = before;
  29881. if (before && after) {
  29882. logicBefore = dateCompare(before, after) ? before : after;
  29883. }
  29884. return this.dateEqual(logicBefore, currentDate);
  29885. }
  29886. }, {
  29887. key: "isLogicAfter",
  29888. value: function isLogicAfter(currentDate, before, after) {
  29889. var logicAfter = after;
  29890. if (before && after) {
  29891. logicAfter = dateCompare(before, after) ? after : before;
  29892. }
  29893. return this.dateEqual(logicAfter, currentDate);
  29894. }
  29895. /**
  29896. * 获取日期范围内所有日期
  29897. * @param {Object} begin
  29898. * @param {Object} end
  29899. */
  29900. }, {
  29901. key: "geDateAll",
  29902. value: function geDateAll(begin, end) {
  29903. var arr = [];
  29904. var ab = begin.split('-');
  29905. var ae = end.split('-');
  29906. var db = new Date();
  29907. db.setFullYear(ab[0], ab[1] - 1, ab[2]);
  29908. var de = new Date();
  29909. de.setFullYear(ae[0], ae[1] - 1, ae[2]);
  29910. var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
  29911. var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
  29912. for (var k = unixDb; k <= unixDe;) {
  29913. k = k + 24 * 60 * 60 * 1000;
  29914. arr.push(this.getDateObj(new Date(parseInt(k))).fullDate);
  29915. }
  29916. return arr;
  29917. }
  29918. /**
  29919. * 获取多选状态
  29920. */
  29921. }, {
  29922. key: "setMultiple",
  29923. value: function setMultiple(fullDate) {
  29924. if (!this.range) return;
  29925. var _this$multipleStatus = this.multipleStatus,
  29926. before = _this$multipleStatus.before,
  29927. after = _this$multipleStatus.after;
  29928. if (before && after) {
  29929. if (!this.lastHover) {
  29930. this.lastHover = true;
  29931. return;
  29932. }
  29933. this.multipleStatus.before = fullDate;
  29934. this.multipleStatus.after = '';
  29935. this.multipleStatus.data = [];
  29936. this.multipleStatus.fulldate = '';
  29937. this.lastHover = false;
  29938. } else {
  29939. if (!before) {
  29940. this.multipleStatus.before = fullDate;
  29941. this.lastHover = false;
  29942. } else {
  29943. this.multipleStatus.after = fullDate;
  29944. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  29945. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  29946. } else {
  29947. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  29948. }
  29949. this.lastHover = true;
  29950. }
  29951. }
  29952. this.getWeeks(fullDate);
  29953. }
  29954. /**
  29955. * 鼠标 hover 更新多选状态
  29956. */
  29957. }, {
  29958. key: "setHoverMultiple",
  29959. value: function setHoverMultiple(fullDate) {
  29960. if (!this.range || this.lastHover) return;
  29961. var before = this.multipleStatus.before;
  29962. if (!before) {
  29963. this.multipleStatus.before = fullDate;
  29964. } else {
  29965. this.multipleStatus.after = fullDate;
  29966. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  29967. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  29968. } else {
  29969. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  29970. }
  29971. }
  29972. this.getWeeks(fullDate);
  29973. }
  29974. /**
  29975. * 更新默认值多选状态
  29976. */
  29977. }, {
  29978. key: "setDefaultMultiple",
  29979. value: function setDefaultMultiple(before, after) {
  29980. this.multipleStatus.before = before;
  29981. this.multipleStatus.after = after;
  29982. if (before && after) {
  29983. if (dateCompare(before, after)) {
  29984. this.multipleStatus.data = this.geDateAll(before, after);
  29985. this.getWeeks(after);
  29986. } else {
  29987. this.multipleStatus.data = this.geDateAll(after, before);
  29988. this.getWeeks(before);
  29989. }
  29990. }
  29991. }
  29992. /**
  29993. * 获取每周数据
  29994. * @param {Object} dateData
  29995. */
  29996. }, {
  29997. key: "getWeeks",
  29998. value: function getWeeks(dateData) {
  29999. var _this$getDateObj = this.getDateObj(dateData),
  30000. year = _this$getDateObj.year,
  30001. month = _this$getDateObj.month;
  30002. var preMonthDayAmount = new Date(year, month - 1, 1).getDay();
  30003. var preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData));
  30004. var currentMonthDayAmount = new Date(year, month, 0).getDate();
  30005. var currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData));
  30006. var nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount;
  30007. var nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData));
  30008. var calendarDays = [].concat((0, _toConsumableArray2.default)(preMonthDays), (0, _toConsumableArray2.default)(currentMonthDays), (0, _toConsumableArray2.default)(nextMonthDays));
  30009. var weeks = new Array(6);
  30010. for (var i = 0; i < calendarDays.length; i++) {
  30011. var index = Math.floor(i / 7);
  30012. if (!weeks[index]) {
  30013. weeks[index] = new Array(7);
  30014. }
  30015. weeks[index][i % 7] = calendarDays[i];
  30016. }
  30017. this.calendar = calendarDays;
  30018. this.weeks = weeks;
  30019. }
  30020. }]);
  30021. return Calendar;
  30022. }();
  30023. exports.Calendar = Calendar;
  30024. function getDateTime(date, hideSecond) {
  30025. return "".concat(getDate(date), " ").concat(getTime(date, hideSecond));
  30026. }
  30027. function getDate(date) {
  30028. date = fixIosDateFormat(date);
  30029. date = new Date(date);
  30030. var year = date.getFullYear();
  30031. var month = date.getMonth() + 1;
  30032. var day = date.getDate();
  30033. return "".concat(year, "-").concat(addZero(month), "-").concat(addZero(day));
  30034. }
  30035. function getTime(date, hideSecond) {
  30036. date = fixIosDateFormat(date);
  30037. date = new Date(date);
  30038. var hour = date.getHours();
  30039. var minute = date.getMinutes();
  30040. var second = date.getSeconds();
  30041. return hideSecond ? "".concat(addZero(hour), ":").concat(addZero(minute)) : "".concat(addZero(hour), ":").concat(addZero(minute), ":").concat(addZero(second));
  30042. }
  30043. function addZero(num) {
  30044. if (num < 10) {
  30045. num = "0".concat(num);
  30046. }
  30047. return num;
  30048. }
  30049. function getDefaultSecond(hideSecond) {
  30050. return hideSecond ? '00:00' : '00:00:00';
  30051. }
  30052. function dateCompare(startDate, endDate) {
  30053. startDate = new Date(fixIosDateFormat(startDate));
  30054. endDate = new Date(fixIosDateFormat(endDate));
  30055. return startDate <= endDate;
  30056. }
  30057. function checkDate(date) {
  30058. var dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g;
  30059. return date.match(dateReg);
  30060. }
  30061. 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])?$/;
  30062. function fixIosDateFormat(value) {
  30063. if (typeof value === 'string' && dateTimeReg.test(value)) {
  30064. value = value.replace(/-/g, '/');
  30065. }
  30066. return value;
  30067. }
  30068. /***/ }),
  30069. /***/ 831:
  30070. /*!**********************************************************************************************************************!*\
  30071. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js ***!
  30072. \**********************************************************************************************************************/
  30073. /*! no static exports found */
  30074. /***/ (function(module, exports, __webpack_require__) {
  30075. "use strict";
  30076. /* WEBPACK VAR INJECTION */(function(uni, wx, uniCloud) {
  30077. Object.defineProperty(exports, "__esModule", {
  30078. value: true
  30079. });
  30080. exports.chooseAndUploadFile = chooseAndUploadFile;
  30081. exports.uploadCloudFiles = uploadCloudFiles;
  30082. var ERR_MSG_OK = 'chooseAndUploadFile:ok';
  30083. var ERR_MSG_FAIL = 'chooseAndUploadFile:fail';
  30084. function chooseImage(opts) {
  30085. var count = opts.count,
  30086. _opts$sizeType = opts.sizeType,
  30087. sizeType = _opts$sizeType === void 0 ? ['original', 'compressed'] : _opts$sizeType,
  30088. sourceType = opts.sourceType,
  30089. extension = opts.extension;
  30090. return new Promise(function (resolve, reject) {
  30091. uni.chooseImage({
  30092. count: count,
  30093. sizeType: sizeType,
  30094. sourceType: sourceType,
  30095. extension: extension,
  30096. success: function success(res) {
  30097. resolve(normalizeChooseAndUploadFileRes(res, 'image'));
  30098. },
  30099. fail: function fail(res) {
  30100. reject({
  30101. errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL)
  30102. });
  30103. }
  30104. });
  30105. });
  30106. }
  30107. function chooseVideo(opts) {
  30108. var camera = opts.camera,
  30109. compressed = opts.compressed,
  30110. maxDuration = opts.maxDuration,
  30111. sourceType = opts.sourceType,
  30112. extension = opts.extension;
  30113. return new Promise(function (resolve, reject) {
  30114. uni.chooseVideo({
  30115. camera: camera,
  30116. compressed: compressed,
  30117. maxDuration: maxDuration,
  30118. sourceType: sourceType,
  30119. extension: extension,
  30120. success: function success(res) {
  30121. var tempFilePath = res.tempFilePath,
  30122. duration = res.duration,
  30123. size = res.size,
  30124. height = res.height,
  30125. width = res.width;
  30126. resolve(normalizeChooseAndUploadFileRes({
  30127. errMsg: 'chooseVideo:ok',
  30128. tempFilePaths: [tempFilePath],
  30129. tempFiles: [{
  30130. name: res.tempFile && res.tempFile.name || '',
  30131. path: tempFilePath,
  30132. size: size,
  30133. type: res.tempFile && res.tempFile.type || '',
  30134. width: width,
  30135. height: height,
  30136. duration: duration,
  30137. fileType: 'video',
  30138. cloudPath: ''
  30139. }]
  30140. }, 'video'));
  30141. },
  30142. fail: function fail(res) {
  30143. reject({
  30144. errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL)
  30145. });
  30146. }
  30147. });
  30148. });
  30149. }
  30150. function chooseAll(opts) {
  30151. var count = opts.count,
  30152. extension = opts.extension;
  30153. return new Promise(function (resolve, reject) {
  30154. var chooseFile = uni.chooseFile;
  30155. if (typeof wx !== 'undefined' && typeof wx.chooseMessageFile === 'function') {
  30156. chooseFile = wx.chooseMessageFile;
  30157. }
  30158. if (typeof chooseFile !== 'function') {
  30159. return reject({
  30160. errMsg: ERR_MSG_FAIL + ' 请指定 type 类型,该平台仅支持选择 image 或 video。'
  30161. });
  30162. }
  30163. chooseFile({
  30164. type: 'all',
  30165. count: count,
  30166. extension: extension,
  30167. success: function success(res) {
  30168. resolve(normalizeChooseAndUploadFileRes(res));
  30169. },
  30170. fail: function fail(res) {
  30171. reject({
  30172. errMsg: res.errMsg.replace('chooseFile:fail', ERR_MSG_FAIL)
  30173. });
  30174. }
  30175. });
  30176. });
  30177. }
  30178. function normalizeChooseAndUploadFileRes(res, fileType) {
  30179. res.tempFiles.forEach(function (item, index) {
  30180. if (!item.name) {
  30181. item.name = item.path.substring(item.path.lastIndexOf('/') + 1);
  30182. }
  30183. if (fileType) {
  30184. item.fileType = fileType;
  30185. }
  30186. item.cloudPath = Date.now() + '_' + index + item.name.substring(item.name.lastIndexOf('.'));
  30187. });
  30188. if (!res.tempFilePaths) {
  30189. res.tempFilePaths = res.tempFiles.map(function (file) {
  30190. return file.path;
  30191. });
  30192. }
  30193. return res;
  30194. }
  30195. function uploadCloudFiles(files) {
  30196. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
  30197. var _onUploadProgress = arguments.length > 2 ? arguments[2] : undefined;
  30198. files = JSON.parse(JSON.stringify(files));
  30199. var len = files.length;
  30200. var count = 0;
  30201. var self = this;
  30202. return new Promise(function (resolve) {
  30203. while (count < max) {
  30204. next();
  30205. }
  30206. function next() {
  30207. var cur = count++;
  30208. if (cur >= len) {
  30209. !files.find(function (item) {
  30210. return !item.url && !item.errMsg;
  30211. }) && resolve(files);
  30212. return;
  30213. }
  30214. var fileItem = files[cur];
  30215. var index = self.files.findIndex(function (v) {
  30216. return v.uuid === fileItem.uuid;
  30217. });
  30218. fileItem.url = '';
  30219. delete fileItem.errMsg;
  30220. uniCloud.uploadFile({
  30221. filePath: fileItem.path,
  30222. cloudPath: fileItem.cloudPath,
  30223. fileType: fileItem.fileType,
  30224. onUploadProgress: function onUploadProgress(res) {
  30225. res.index = index;
  30226. _onUploadProgress && _onUploadProgress(res);
  30227. }
  30228. }).then(function (res) {
  30229. fileItem.url = res.fileID;
  30230. fileItem.index = index;
  30231. if (cur < len) {
  30232. next();
  30233. }
  30234. }).catch(function (res) {
  30235. fileItem.errMsg = res.errMsg || res.message;
  30236. fileItem.index = index;
  30237. if (cur < len) {
  30238. next();
  30239. }
  30240. });
  30241. }
  30242. });
  30243. }
  30244. function uploadFiles(choosePromise, _ref) {
  30245. var onChooseFile = _ref.onChooseFile,
  30246. onUploadProgress = _ref.onUploadProgress;
  30247. return choosePromise.then(function (res) {
  30248. if (onChooseFile) {
  30249. var customChooseRes = onChooseFile(res);
  30250. if (typeof customChooseRes !== 'undefined') {
  30251. return Promise.resolve(customChooseRes).then(function (chooseRes) {
  30252. return typeof chooseRes === 'undefined' ? res : chooseRes;
  30253. });
  30254. }
  30255. }
  30256. return res;
  30257. }).then(function (res) {
  30258. if (res === false) {
  30259. return {
  30260. errMsg: ERR_MSG_OK,
  30261. tempFilePaths: [],
  30262. tempFiles: []
  30263. };
  30264. }
  30265. return res;
  30266. });
  30267. }
  30268. function chooseAndUploadFile() {
  30269. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  30270. type: 'all'
  30271. };
  30272. if (opts.type === 'image') {
  30273. return uploadFiles(chooseImage(opts), opts);
  30274. } else if (opts.type === 'video') {
  30275. return uploadFiles(chooseVideo(opts), opts);
  30276. }
  30277. return uploadFiles(chooseAll(opts), opts);
  30278. }
  30279. /* 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"]))
  30280. /***/ }),
  30281. /***/ 832:
  30282. /*!*****************************************************************************************************!*\
  30283. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-file-picker/components/uni-file-picker/utils.js ***!
  30284. \*****************************************************************************************************/
  30285. /*! no static exports found */
  30286. /***/ (function(module, exports, __webpack_require__) {
  30287. "use strict";
  30288. /* WEBPACK VAR INJECTION */(function(uni) {
  30289. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30290. Object.defineProperty(exports, "__esModule", {
  30291. value: true
  30292. });
  30293. exports.get_files_and_is_max = exports.get_file_info = exports.get_file_ext = exports.get_file_data = exports.get_extname = void 0;
  30294. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  30295. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  30296. /**
  30297. * 获取文件名和后缀
  30298. * @param {String} name
  30299. */
  30300. var get_file_ext = function get_file_ext(name) {
  30301. var last_len = name.lastIndexOf('.');
  30302. var len = name.length;
  30303. return {
  30304. name: name.substring(0, last_len),
  30305. ext: name.substring(last_len + 1, len)
  30306. };
  30307. };
  30308. /**
  30309. * 获取扩展名
  30310. * @param {Array} fileExtname
  30311. */
  30312. exports.get_file_ext = get_file_ext;
  30313. var get_extname = function get_extname(fileExtname) {
  30314. if (!Array.isArray(fileExtname)) {
  30315. var extname = fileExtname.replace(/(\[|\])/g, '');
  30316. return extname.split(',');
  30317. } else {
  30318. return fileExtname;
  30319. }
  30320. return [];
  30321. };
  30322. /**
  30323. * 获取文件和检测是否可选
  30324. */
  30325. exports.get_extname = get_extname;
  30326. var get_files_and_is_max = function get_files_and_is_max(res, _extname) {
  30327. var filePaths = [];
  30328. var files = [];
  30329. if (!_extname || _extname.length === 0) {
  30330. return {
  30331. filePaths: filePaths,
  30332. files: files
  30333. };
  30334. }
  30335. res.tempFiles.forEach(function (v) {
  30336. var fileFullName = get_file_ext(v.name);
  30337. var extname = fileFullName.ext.toLowerCase();
  30338. if (_extname.indexOf(extname) !== -1) {
  30339. files.push(v);
  30340. filePaths.push(v.path);
  30341. }
  30342. });
  30343. if (files.length !== res.tempFiles.length) {
  30344. uni.showToast({
  30345. 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"),
  30346. icon: 'none',
  30347. duration: 5000
  30348. });
  30349. }
  30350. return {
  30351. filePaths: filePaths,
  30352. files: files
  30353. };
  30354. };
  30355. /**
  30356. * 获取图片信息
  30357. * @param {Object} filepath
  30358. */
  30359. exports.get_files_and_is_max = get_files_and_is_max;
  30360. var get_file_info = function get_file_info(filepath) {
  30361. return new Promise(function (resolve, reject) {
  30362. uni.getImageInfo({
  30363. src: filepath,
  30364. success: function success(res) {
  30365. resolve(res);
  30366. },
  30367. fail: function fail(err) {
  30368. reject(err);
  30369. }
  30370. });
  30371. });
  30372. };
  30373. /**
  30374. * 获取封装数据
  30375. */
  30376. exports.get_file_info = get_file_info;
  30377. var get_file_data = /*#__PURE__*/function () {
  30378. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(files) {
  30379. var type,
  30380. fileFullName,
  30381. extname,
  30382. filedata,
  30383. imageinfo,
  30384. _args = arguments;
  30385. return _regenerator.default.wrap(function _callee$(_context) {
  30386. while (1) {
  30387. switch (_context.prev = _context.next) {
  30388. case 0:
  30389. type = _args.length > 1 && _args[1] !== undefined ? _args[1] : 'image';
  30390. // 最终需要上传数据库的数据
  30391. fileFullName = get_file_ext(files.name);
  30392. extname = fileFullName.ext.toLowerCase();
  30393. filedata = {
  30394. name: files.name,
  30395. uuid: files.uuid,
  30396. extname: extname || '',
  30397. cloudPath: files.cloudPath,
  30398. fileType: files.fileType,
  30399. url: files.path || files.path,
  30400. size: files.size,
  30401. //单位是字节
  30402. image: {},
  30403. path: files.path,
  30404. video: {}
  30405. };
  30406. if (!(type === 'image')) {
  30407. _context.next = 14;
  30408. break;
  30409. }
  30410. _context.next = 7;
  30411. return get_file_info(files.path);
  30412. case 7:
  30413. imageinfo = _context.sent;
  30414. delete filedata.video;
  30415. filedata.image.width = imageinfo.width;
  30416. filedata.image.height = imageinfo.height;
  30417. filedata.image.location = imageinfo.path;
  30418. _context.next = 15;
  30419. break;
  30420. case 14:
  30421. delete filedata.image;
  30422. case 15:
  30423. return _context.abrupt("return", filedata);
  30424. case 16:
  30425. case "end":
  30426. return _context.stop();
  30427. }
  30428. }
  30429. }, _callee);
  30430. }));
  30431. return function get_file_data(_x) {
  30432. return _ref.apply(this, arguments);
  30433. };
  30434. }();
  30435. exports.get_file_data = get_file_data;
  30436. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  30437. /***/ }),
  30438. /***/ 847:
  30439. /*!********************************************************************************************!*\
  30440. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  30441. \********************************************************************************************/
  30442. /*! no static exports found */
  30443. /***/ (function(module, exports, __webpack_require__) {
  30444. "use strict";
  30445. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30446. Object.defineProperty(exports, "__esModule", {
  30447. value: true
  30448. });
  30449. exports.default = void 0;
  30450. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  30451. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  30452. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  30453. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  30454. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  30455. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  30456. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  30457. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  30458. 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); }; }
  30459. 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; } }
  30460. var pattern = {
  30461. email: /^\S+?@\S+?\.\S+?$/,
  30462. 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]$/,
  30463. 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')
  30464. };
  30465. var FORMAT_MAPPING = {
  30466. "int": 'integer',
  30467. "bool": 'boolean',
  30468. "double": 'number',
  30469. "long": 'number',
  30470. "password": 'string'
  30471. // "fileurls": 'array'
  30472. };
  30473. function formatMessage(args) {
  30474. var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  30475. var defaultMessage = ['label'];
  30476. defaultMessage.forEach(function (item) {
  30477. if (args[item] === undefined) {
  30478. args[item] = '';
  30479. }
  30480. });
  30481. var str = resources;
  30482. for (var key in args) {
  30483. var reg = new RegExp('{' + key + '}');
  30484. str = str.replace(reg, args[key]);
  30485. }
  30486. return str;
  30487. }
  30488. function isEmptyValue(value, type) {
  30489. if (value === undefined || value === null) {
  30490. return true;
  30491. }
  30492. if (typeof value === 'string' && !value) {
  30493. return true;
  30494. }
  30495. if (Array.isArray(value) && !value.length) {
  30496. return true;
  30497. }
  30498. if (type === 'object' && !Object.keys(value).length) {
  30499. return true;
  30500. }
  30501. return false;
  30502. }
  30503. var types = {
  30504. integer: function integer(value) {
  30505. return types.number(value) && parseInt(value, 10) === value;
  30506. },
  30507. string: function string(value) {
  30508. return typeof value === 'string';
  30509. },
  30510. number: function number(value) {
  30511. if (isNaN(value)) {
  30512. return false;
  30513. }
  30514. return typeof value === 'number';
  30515. },
  30516. "boolean": function boolean(value) {
  30517. return typeof value === 'boolean';
  30518. },
  30519. "float": function float(value) {
  30520. return types.number(value) && !types.integer(value);
  30521. },
  30522. array: function array(value) {
  30523. return Array.isArray(value);
  30524. },
  30525. object: function object(value) {
  30526. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  30527. },
  30528. date: function date(value) {
  30529. return value instanceof Date;
  30530. },
  30531. timestamp: function timestamp(value) {
  30532. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  30533. return false;
  30534. }
  30535. return true;
  30536. },
  30537. file: function file(value) {
  30538. return typeof value.url === 'string';
  30539. },
  30540. email: function email(value) {
  30541. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  30542. },
  30543. url: function url(value) {
  30544. return typeof value === 'string' && !!value.match(pattern.url);
  30545. },
  30546. pattern: function pattern(reg, value) {
  30547. try {
  30548. return new RegExp(reg).test(value);
  30549. } catch (e) {
  30550. return false;
  30551. }
  30552. },
  30553. method: function method(value) {
  30554. return typeof value === 'function';
  30555. },
  30556. idcard: function idcard(value) {
  30557. return typeof value === 'string' && !!value.match(pattern.idcard);
  30558. },
  30559. 'url-https': function urlHttps(value) {
  30560. return this.url(value) && value.startsWith('https://');
  30561. },
  30562. 'url-scheme': function urlScheme(value) {
  30563. return value.startsWith('://');
  30564. },
  30565. 'url-web': function urlWeb(value) {
  30566. return false;
  30567. }
  30568. };
  30569. var RuleValidator = /*#__PURE__*/function () {
  30570. function RuleValidator(message) {
  30571. (0, _classCallCheck2.default)(this, RuleValidator);
  30572. this._message = message;
  30573. }
  30574. (0, _createClass2.default)(RuleValidator, [{
  30575. key: "validateRule",
  30576. value: function () {
  30577. var _validateRule = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fieldKey, fieldValue, value, data, allData) {
  30578. var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;
  30579. return _regenerator.default.wrap(function _callee$(_context) {
  30580. while (1) {
  30581. switch (_context.prev = _context.next) {
  30582. case 0:
  30583. result = null;
  30584. rules = fieldValue.rules;
  30585. hasRequired = rules.findIndex(function (item) {
  30586. return item.required;
  30587. });
  30588. if (!(hasRequired < 0)) {
  30589. _context.next = 8;
  30590. break;
  30591. }
  30592. if (!(value === null || value === undefined)) {
  30593. _context.next = 6;
  30594. break;
  30595. }
  30596. return _context.abrupt("return", result);
  30597. case 6:
  30598. if (!(typeof value === 'string' && !value.length)) {
  30599. _context.next = 8;
  30600. break;
  30601. }
  30602. return _context.abrupt("return", result);
  30603. case 8:
  30604. message = this._message;
  30605. if (!(rules === undefined)) {
  30606. _context.next = 11;
  30607. break;
  30608. }
  30609. return _context.abrupt("return", message['default']);
  30610. case 11:
  30611. i = 0;
  30612. case 12:
  30613. if (!(i < rules.length)) {
  30614. _context.next = 35;
  30615. break;
  30616. }
  30617. rule = rules[i];
  30618. vt = this._getValidateType(rule);
  30619. Object.assign(rule, {
  30620. label: fieldValue.label || "[\"".concat(fieldKey, "\"]")
  30621. });
  30622. if (!RuleValidatorHelper[vt]) {
  30623. _context.next = 20;
  30624. break;
  30625. }
  30626. result = RuleValidatorHelper[vt](rule, value, message);
  30627. if (!(result != null)) {
  30628. _context.next = 20;
  30629. break;
  30630. }
  30631. return _context.abrupt("break", 35);
  30632. case 20:
  30633. if (!rule.validateExpr) {
  30634. _context.next = 26;
  30635. break;
  30636. }
  30637. now = Date.now();
  30638. resultExpr = rule.validateExpr(value, allData, now);
  30639. if (!(resultExpr === false)) {
  30640. _context.next = 26;
  30641. break;
  30642. }
  30643. result = this._getMessage(rule, rule.errorMessage || this._message['default']);
  30644. return _context.abrupt("break", 35);
  30645. case 26:
  30646. if (!rule.validateFunction) {
  30647. _context.next = 32;
  30648. break;
  30649. }
  30650. _context.next = 29;
  30651. return this.validateFunction(rule, value, data, allData, vt);
  30652. case 29:
  30653. result = _context.sent;
  30654. if (!(result !== null)) {
  30655. _context.next = 32;
  30656. break;
  30657. }
  30658. return _context.abrupt("break", 35);
  30659. case 32:
  30660. i++;
  30661. _context.next = 12;
  30662. break;
  30663. case 35:
  30664. if (result !== null) {
  30665. result = message.TAG + result;
  30666. }
  30667. return _context.abrupt("return", result);
  30668. case 37:
  30669. case "end":
  30670. return _context.stop();
  30671. }
  30672. }
  30673. }, _callee, this);
  30674. }));
  30675. function validateRule(_x, _x2, _x3, _x4, _x5) {
  30676. return _validateRule.apply(this, arguments);
  30677. }
  30678. return validateRule;
  30679. }()
  30680. }, {
  30681. key: "validateFunction",
  30682. value: function () {
  30683. var _validateFunction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rule, value, data, allData, vt) {
  30684. var result, callbackMessage, res;
  30685. return _regenerator.default.wrap(function _callee2$(_context2) {
  30686. while (1) {
  30687. switch (_context2.prev = _context2.next) {
  30688. case 0:
  30689. result = null;
  30690. _context2.prev = 1;
  30691. callbackMessage = null;
  30692. _context2.next = 5;
  30693. return rule.validateFunction(rule, value, allData || data, function (message) {
  30694. callbackMessage = message;
  30695. });
  30696. case 5:
  30697. res = _context2.sent;
  30698. if (callbackMessage || typeof res === 'string' && res || res === false) {
  30699. result = this._getMessage(rule, callbackMessage || res, vt);
  30700. }
  30701. _context2.next = 12;
  30702. break;
  30703. case 9:
  30704. _context2.prev = 9;
  30705. _context2.t0 = _context2["catch"](1);
  30706. result = this._getMessage(rule, _context2.t0.message, vt);
  30707. case 12:
  30708. return _context2.abrupt("return", result);
  30709. case 13:
  30710. case "end":
  30711. return _context2.stop();
  30712. }
  30713. }
  30714. }, _callee2, this, [[1, 9]]);
  30715. }));
  30716. function validateFunction(_x6, _x7, _x8, _x9, _x10) {
  30717. return _validateFunction.apply(this, arguments);
  30718. }
  30719. return validateFunction;
  30720. }()
  30721. }, {
  30722. key: "_getMessage",
  30723. value: function _getMessage(rule, message, vt) {
  30724. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  30725. }
  30726. }, {
  30727. key: "_getValidateType",
  30728. value: function _getValidateType(rule) {
  30729. var result = '';
  30730. if (rule.required) {
  30731. result = 'required';
  30732. } else if (rule.format) {
  30733. result = 'format';
  30734. } else if (rule.arrayType) {
  30735. result = 'arrayTypeFormat';
  30736. } else if (rule.range) {
  30737. result = 'range';
  30738. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  30739. result = 'rangeNumber';
  30740. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  30741. result = 'rangeLength';
  30742. } else if (rule.pattern) {
  30743. result = 'pattern';
  30744. } else if (rule.validateFunction) {
  30745. result = 'validateFunction';
  30746. }
  30747. return result;
  30748. }
  30749. }]);
  30750. return RuleValidator;
  30751. }();
  30752. var RuleValidatorHelper = {
  30753. required: function required(rule, value, message) {
  30754. if (rule.required && isEmptyValue(value, rule.format || (0, _typeof2.default)(value))) {
  30755. return formatMessage(rule, rule.errorMessage || message.required);
  30756. }
  30757. return null;
  30758. },
  30759. range: function range(rule, value, message) {
  30760. var range = rule.range,
  30761. errorMessage = rule.errorMessage;
  30762. var list = new Array(range.length);
  30763. for (var i = 0; i < range.length; i++) {
  30764. var item = range[i];
  30765. if (types.object(item) && item.value !== undefined) {
  30766. list[i] = item.value;
  30767. } else {
  30768. list[i] = item;
  30769. }
  30770. }
  30771. var result = false;
  30772. if (Array.isArray(value)) {
  30773. result = new Set(value.concat(list)).size === list.length;
  30774. } else {
  30775. if (list.indexOf(value) > -1) {
  30776. result = true;
  30777. }
  30778. }
  30779. if (!result) {
  30780. return formatMessage(rule, errorMessage || message['enum']);
  30781. }
  30782. return null;
  30783. },
  30784. rangeNumber: function rangeNumber(rule, value, message) {
  30785. if (!types.number(value)) {
  30786. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  30787. }
  30788. var minimum = rule.minimum,
  30789. maximum = rule.maximum,
  30790. exclusiveMinimum = rule.exclusiveMinimum,
  30791. exclusiveMaximum = rule.exclusiveMaximum;
  30792. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  30793. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  30794. if (minimum !== undefined && min) {
  30795. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? 'exclusiveMinimum' : 'minimum']);
  30796. } else if (maximum !== undefined && max) {
  30797. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? 'exclusiveMaximum' : 'maximum']);
  30798. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  30799. return formatMessage(rule, rule.errorMessage || message['number'].range);
  30800. }
  30801. return null;
  30802. },
  30803. rangeLength: function rangeLength(rule, value, message) {
  30804. if (!types.string(value) && !types.array(value)) {
  30805. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  30806. }
  30807. var min = rule.minLength;
  30808. var max = rule.maxLength;
  30809. var val = value.length;
  30810. if (min !== undefined && val < min) {
  30811. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  30812. } else if (max !== undefined && val > max) {
  30813. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  30814. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  30815. return formatMessage(rule, rule.errorMessage || message['length'].range);
  30816. }
  30817. return null;
  30818. },
  30819. pattern: function pattern(rule, value, message) {
  30820. if (!types['pattern'](rule.pattern, value)) {
  30821. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  30822. }
  30823. return null;
  30824. },
  30825. format: function format(rule, value, message) {
  30826. var customTypes = Object.keys(types);
  30827. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  30828. if (customTypes.indexOf(format) > -1) {
  30829. if (!types[format](value)) {
  30830. return formatMessage(rule, rule.errorMessage || message.typeError);
  30831. }
  30832. }
  30833. return null;
  30834. },
  30835. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  30836. if (!Array.isArray(value)) {
  30837. return formatMessage(rule, rule.errorMessage || message.typeError);
  30838. }
  30839. for (var i = 0; i < value.length; i++) {
  30840. var element = value[i];
  30841. var formatResult = this.format(rule, element, message);
  30842. if (formatResult !== null) {
  30843. return formatResult;
  30844. }
  30845. }
  30846. return null;
  30847. }
  30848. };
  30849. var SchemaValidator = /*#__PURE__*/function (_RuleValidator) {
  30850. (0, _inherits2.default)(SchemaValidator, _RuleValidator);
  30851. var _super = _createSuper(SchemaValidator);
  30852. function SchemaValidator(schema, options) {
  30853. var _this;
  30854. (0, _classCallCheck2.default)(this, SchemaValidator);
  30855. _this = _super.call(this, SchemaValidator.message);
  30856. _this._schema = schema;
  30857. _this._options = options || null;
  30858. return _this;
  30859. }
  30860. (0, _createClass2.default)(SchemaValidator, [{
  30861. key: "updateSchema",
  30862. value: function updateSchema(schema) {
  30863. this._schema = schema;
  30864. }
  30865. }, {
  30866. key: "validate",
  30867. value: function () {
  30868. var _validate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data, allData) {
  30869. var result;
  30870. return _regenerator.default.wrap(function _callee3$(_context3) {
  30871. while (1) {
  30872. switch (_context3.prev = _context3.next) {
  30873. case 0:
  30874. result = this._checkFieldInSchema(data);
  30875. if (result) {
  30876. _context3.next = 5;
  30877. break;
  30878. }
  30879. _context3.next = 4;
  30880. return this.invokeValidate(data, false, allData);
  30881. case 4:
  30882. result = _context3.sent;
  30883. case 5:
  30884. return _context3.abrupt("return", result.length ? result[0] : null);
  30885. case 6:
  30886. case "end":
  30887. return _context3.stop();
  30888. }
  30889. }
  30890. }, _callee3, this);
  30891. }));
  30892. function validate(_x11, _x12) {
  30893. return _validate.apply(this, arguments);
  30894. }
  30895. return validate;
  30896. }()
  30897. }, {
  30898. key: "validateAll",
  30899. value: function () {
  30900. var _validateAll = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data, allData) {
  30901. var result;
  30902. return _regenerator.default.wrap(function _callee4$(_context4) {
  30903. while (1) {
  30904. switch (_context4.prev = _context4.next) {
  30905. case 0:
  30906. result = this._checkFieldInSchema(data);
  30907. if (result) {
  30908. _context4.next = 5;
  30909. break;
  30910. }
  30911. _context4.next = 4;
  30912. return this.invokeValidate(data, true, allData);
  30913. case 4:
  30914. result = _context4.sent;
  30915. case 5:
  30916. return _context4.abrupt("return", result);
  30917. case 6:
  30918. case "end":
  30919. return _context4.stop();
  30920. }
  30921. }
  30922. }, _callee4, this);
  30923. }));
  30924. function validateAll(_x13, _x14) {
  30925. return _validateAll.apply(this, arguments);
  30926. }
  30927. return validateAll;
  30928. }()
  30929. }, {
  30930. key: "validateUpdate",
  30931. value: function () {
  30932. var _validateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(data, allData) {
  30933. var result;
  30934. return _regenerator.default.wrap(function _callee5$(_context5) {
  30935. while (1) {
  30936. switch (_context5.prev = _context5.next) {
  30937. case 0:
  30938. result = this._checkFieldInSchema(data);
  30939. if (result) {
  30940. _context5.next = 5;
  30941. break;
  30942. }
  30943. _context5.next = 4;
  30944. return this.invokeValidateUpdate(data, false, allData);
  30945. case 4:
  30946. result = _context5.sent;
  30947. case 5:
  30948. return _context5.abrupt("return", result.length ? result[0] : null);
  30949. case 6:
  30950. case "end":
  30951. return _context5.stop();
  30952. }
  30953. }
  30954. }, _callee5, this);
  30955. }));
  30956. function validateUpdate(_x15, _x16) {
  30957. return _validateUpdate.apply(this, arguments);
  30958. }
  30959. return validateUpdate;
  30960. }()
  30961. }, {
  30962. key: "invokeValidate",
  30963. value: function () {
  30964. var _invokeValidate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(data, all, allData) {
  30965. var result, schema, key, value, errorMessage;
  30966. return _regenerator.default.wrap(function _callee6$(_context6) {
  30967. while (1) {
  30968. switch (_context6.prev = _context6.next) {
  30969. case 0:
  30970. result = [];
  30971. schema = this._schema;
  30972. _context6.t0 = _regenerator.default.keys(schema);
  30973. case 3:
  30974. if ((_context6.t1 = _context6.t0()).done) {
  30975. _context6.next = 15;
  30976. break;
  30977. }
  30978. key = _context6.t1.value;
  30979. value = schema[key];
  30980. _context6.next = 8;
  30981. return this.validateRule(key, value, data[key], data, allData);
  30982. case 8:
  30983. errorMessage = _context6.sent;
  30984. if (!(errorMessage != null)) {
  30985. _context6.next = 13;
  30986. break;
  30987. }
  30988. result.push({
  30989. key: key,
  30990. errorMessage: errorMessage
  30991. });
  30992. if (all) {
  30993. _context6.next = 13;
  30994. break;
  30995. }
  30996. return _context6.abrupt("break", 15);
  30997. case 13:
  30998. _context6.next = 3;
  30999. break;
  31000. case 15:
  31001. return _context6.abrupt("return", result);
  31002. case 16:
  31003. case "end":
  31004. return _context6.stop();
  31005. }
  31006. }
  31007. }, _callee6, this);
  31008. }));
  31009. function invokeValidate(_x17, _x18, _x19) {
  31010. return _invokeValidate.apply(this, arguments);
  31011. }
  31012. return invokeValidate;
  31013. }()
  31014. }, {
  31015. key: "invokeValidateUpdate",
  31016. value: function () {
  31017. var _invokeValidateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(data, all, allData) {
  31018. var result, key, errorMessage;
  31019. return _regenerator.default.wrap(function _callee7$(_context7) {
  31020. while (1) {
  31021. switch (_context7.prev = _context7.next) {
  31022. case 0:
  31023. result = [];
  31024. _context7.t0 = _regenerator.default.keys(data);
  31025. case 2:
  31026. if ((_context7.t1 = _context7.t0()).done) {
  31027. _context7.next = 13;
  31028. break;
  31029. }
  31030. key = _context7.t1.value;
  31031. _context7.next = 6;
  31032. return this.validateRule(key, this._schema[key], data[key], data, allData);
  31033. case 6:
  31034. errorMessage = _context7.sent;
  31035. if (!(errorMessage != null)) {
  31036. _context7.next = 11;
  31037. break;
  31038. }
  31039. result.push({
  31040. key: key,
  31041. errorMessage: errorMessage
  31042. });
  31043. if (all) {
  31044. _context7.next = 11;
  31045. break;
  31046. }
  31047. return _context7.abrupt("break", 13);
  31048. case 11:
  31049. _context7.next = 2;
  31050. break;
  31051. case 13:
  31052. return _context7.abrupt("return", result);
  31053. case 14:
  31054. case "end":
  31055. return _context7.stop();
  31056. }
  31057. }
  31058. }, _callee7, this);
  31059. }));
  31060. function invokeValidateUpdate(_x20, _x21, _x22) {
  31061. return _invokeValidateUpdate.apply(this, arguments);
  31062. }
  31063. return invokeValidateUpdate;
  31064. }()
  31065. }, {
  31066. key: "_checkFieldInSchema",
  31067. value: function _checkFieldInSchema(data) {
  31068. var keys = Object.keys(data);
  31069. var keys2 = Object.keys(this._schema);
  31070. if (new Set(keys.concat(keys2)).size === keys2.length) {
  31071. return '';
  31072. }
  31073. var noExistFields = keys.filter(function (key) {
  31074. return keys2.indexOf(key) < 0;
  31075. });
  31076. var errorMessage = formatMessage({
  31077. field: JSON.stringify(noExistFields)
  31078. }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  31079. return [{
  31080. key: 'invalid',
  31081. errorMessage: errorMessage
  31082. }];
  31083. }
  31084. }]);
  31085. return SchemaValidator;
  31086. }(RuleValidator);
  31087. function Message() {
  31088. return {
  31089. TAG: "",
  31090. default: '验证错误',
  31091. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  31092. validateFunction: '验证无效',
  31093. required: '{label}必填',
  31094. 'enum': '{label}超出范围',
  31095. timestamp: '{label}格式无效',
  31096. whitespace: '{label}不能为空',
  31097. typeError: '{label}类型无效',
  31098. date: {
  31099. format: '{label}日期{value}格式无效',
  31100. parse: '{label}日期无法解析,{value}无效',
  31101. invalid: '{label}日期{value}无效'
  31102. },
  31103. length: {
  31104. minLength: '{label}长度不能少于{minLength}',
  31105. maxLength: '{label}长度不能超过{maxLength}',
  31106. range: '{label}必须介于{minLength}和{maxLength}之间'
  31107. },
  31108. number: {
  31109. minimum: '{label}不能小于{minimum}',
  31110. maximum: '{label}不能大于{maximum}',
  31111. exclusiveMinimum: '{label}不能小于等于{minimum}',
  31112. exclusiveMaximum: '{label}不能大于等于{maximum}',
  31113. range: '{label}必须介于{minimum}and{maximum}之间'
  31114. },
  31115. pattern: {
  31116. mismatch: '{label}格式不匹配'
  31117. }
  31118. };
  31119. }
  31120. SchemaValidator.message = new Message();
  31121. var _default = SchemaValidator;
  31122. exports.default = _default;
  31123. /***/ }),
  31124. /***/ 848:
  31125. /*!*****************************************************************************************!*\
  31126. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  31127. \*****************************************************************************************/
  31128. /*! no static exports found */
  31129. /***/ (function(module, exports, __webpack_require__) {
  31130. "use strict";
  31131. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  31132. Object.defineProperty(exports, "__esModule", {
  31133. value: true
  31134. });
  31135. 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;
  31136. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  31137. /**
  31138. * 简单处理对象拷贝
  31139. * @param {Obejct} 被拷贝对象
  31140. * @@return {Object} 拷贝对象
  31141. */
  31142. var deepCopy = function deepCopy(val) {
  31143. return JSON.parse(JSON.stringify(val));
  31144. };
  31145. /**
  31146. * 过滤数字类型
  31147. * @param {String} format 数字类型
  31148. * @@return {Boolean} 返回是否为数字类型
  31149. */
  31150. exports.deepCopy = deepCopy;
  31151. var typeFilter = function typeFilter(format) {
  31152. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  31153. };
  31154. /**
  31155. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  31156. * @param {String} key 字段名
  31157. * @param {any} value 字段值
  31158. * @param {Object} rules 表单校验规则
  31159. */
  31160. exports.typeFilter = typeFilter;
  31161. var getValue = function getValue(key, value, rules) {
  31162. var isRuleNumType = rules.find(function (val) {
  31163. return val.format && typeFilter(val.format);
  31164. });
  31165. var isRuleBoolType = rules.find(function (val) {
  31166. return val.format && val.format === 'boolean' || val.format === 'bool';
  31167. });
  31168. // 输入类型为 number
  31169. if (!!isRuleNumType) {
  31170. if (!value && value !== 0) {
  31171. value = null;
  31172. } else {
  31173. value = isNumber(Number(value)) ? Number(value) : value;
  31174. }
  31175. }
  31176. // 输入类型为 boolean
  31177. if (!!isRuleBoolType) {
  31178. value = isBoolean(value) ? value : false;
  31179. }
  31180. return value;
  31181. };
  31182. /**
  31183. * 获取表单数据
  31184. * @param {String|Array} name 真实名称,需要使用 realName 获取
  31185. * @param {Object} data 原始数据
  31186. * @param {any} value 需要设置的值
  31187. */
  31188. exports.getValue = getValue;
  31189. var setDataValue = function setDataValue(field, formdata, value) {
  31190. formdata[field] = value;
  31191. return value || '';
  31192. };
  31193. /**
  31194. * 获取表单数据
  31195. * @param {String|Array} field 真实名称,需要使用 realName 获取
  31196. * @param {Object} data 原始数据
  31197. */
  31198. exports.setDataValue = setDataValue;
  31199. var getDataValue = function getDataValue(field, data) {
  31200. return objGet(data, field);
  31201. };
  31202. /**
  31203. * 获取表单类型
  31204. * @param {String|Array} field 真实名称,需要使用 realName 获取
  31205. */
  31206. exports.getDataValue = getDataValue;
  31207. var getDataValueType = function getDataValueType(field, data) {
  31208. var value = getDataValue(field, data);
  31209. return {
  31210. type: type(value),
  31211. value: value
  31212. };
  31213. };
  31214. /**
  31215. * 获取表单可用的真实name
  31216. * @param {String|Array} name 表单name
  31217. * @@return {String} 表单可用的真实name
  31218. */
  31219. exports.getDataValueType = getDataValueType;
  31220. var realName = function realName(name) {
  31221. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  31222. var base_name = _basePath(name);
  31223. if ((0, _typeof2.default)(base_name) === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  31224. var realname = base_name.reduce(function (a, b) {
  31225. return a += "#".concat(b);
  31226. }, '_formdata_');
  31227. return realname;
  31228. }
  31229. return base_name[0] || name;
  31230. };
  31231. /**
  31232. * 判断是否表单可用的真实name
  31233. * @param {String|Array} name 表单name
  31234. * @@return {String} 表单可用的真实name
  31235. */
  31236. exports.realName = realName;
  31237. var isRealName = function isRealName(name) {
  31238. var reg = /^_formdata_#*/;
  31239. return reg.test(name);
  31240. };
  31241. /**
  31242. * 获取表单数据的原始格式
  31243. * @@return {Object|Array} object 需要解析的数据
  31244. */
  31245. exports.isRealName = isRealName;
  31246. var rawData = function rawData() {
  31247. var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  31248. var name = arguments.length > 1 ? arguments[1] : undefined;
  31249. var newData = JSON.parse(JSON.stringify(object));
  31250. var formData = {};
  31251. for (var i in newData) {
  31252. var path = name2arr(i);
  31253. objSet(formData, path, newData[i]);
  31254. }
  31255. return formData;
  31256. };
  31257. /**
  31258. * 真实name还原为 array
  31259. * @param {*} name
  31260. */
  31261. exports.rawData = rawData;
  31262. var name2arr = function name2arr(name) {
  31263. var field = name.replace('_formdata_#', '');
  31264. field = field.split('#').map(function (v) {
  31265. return isNumber(v) ? Number(v) : v;
  31266. });
  31267. return field;
  31268. };
  31269. /**
  31270. * 对象中设置值
  31271. * @param {Object|Array} object 源数据
  31272. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  31273. * @param {String} value 需要设置的值
  31274. */
  31275. exports.name2arr = name2arr;
  31276. var objSet = function objSet(object, path, value) {
  31277. if ((0, _typeof2.default)(object) !== 'object') return object;
  31278. _basePath(path).reduce(function (o, k, i, _) {
  31279. if (i === _.length - 1) {
  31280. // 若遍历结束直接赋值
  31281. o[k] = value;
  31282. return null;
  31283. } else if (k in o) {
  31284. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  31285. return o[k];
  31286. } else {
  31287. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  31288. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  31289. return o[k];
  31290. }
  31291. }, object);
  31292. // 返回object
  31293. return object;
  31294. };
  31295. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  31296. exports.objSet = objSet;
  31297. function _basePath(path) {
  31298. // 若是数组,则直接返回
  31299. if (Array.isArray(path)) return path;
  31300. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  31301. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  31302. }
  31303. /**
  31304. * 从对象中获取值
  31305. * @param {Object|Array} object 源数据
  31306. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  31307. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  31308. */
  31309. var objGet = function objGet(object, path) {
  31310. var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  31311. // 先将path处理成统一格式
  31312. var newPath = _basePath(path);
  31313. // 递归处理,返回最后结果
  31314. var val = newPath.reduce(function (o, k) {
  31315. return (o || {})[k];
  31316. }, object);
  31317. return !val || val !== undefined ? val : defaultVal;
  31318. };
  31319. /**
  31320. * 是否为 number 类型
  31321. * @param {any} num 需要判断的值
  31322. * @return {Boolean} 是否为 number
  31323. */
  31324. exports.objGet = objGet;
  31325. var isNumber = function isNumber(num) {
  31326. return !isNaN(Number(num));
  31327. };
  31328. /**
  31329. * 是否为 boolean 类型
  31330. * @param {any} bool 需要判断的值
  31331. * @return {Boolean} 是否为 boolean
  31332. */
  31333. exports.isNumber = isNumber;
  31334. var isBoolean = function isBoolean(bool) {
  31335. return typeof bool === 'boolean';
  31336. };
  31337. /**
  31338. * 是否有必填字段
  31339. * @param {Object} rules 规则
  31340. * @return {Boolean} 是否有必填字段
  31341. */
  31342. exports.isBoolean = isBoolean;
  31343. var isRequiredField = function isRequiredField(rules) {
  31344. var isNoField = false;
  31345. for (var i = 0; i < rules.length; i++) {
  31346. var ruleData = rules[i];
  31347. if (ruleData.required) {
  31348. isNoField = true;
  31349. break;
  31350. }
  31351. }
  31352. return isNoField;
  31353. };
  31354. /**
  31355. * 获取数据类型
  31356. * @param {Any} obj 需要获取数据类型的值
  31357. */
  31358. exports.isRequiredField = isRequiredField;
  31359. var type = function type(obj) {
  31360. var class2type = {};
  31361. // 生成class2type映射
  31362. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  31363. class2type["[object " + item + "]"] = item.toLowerCase();
  31364. });
  31365. if (obj == null) {
  31366. return obj + "";
  31367. }
  31368. return (0, _typeof2.default)(obj) === "object" || typeof obj === "function" ? class2type[Object.prototype.toString.call(obj)] || "object" : (0, _typeof2.default)(obj);
  31369. };
  31370. /**
  31371. * 判断两个值是否相等
  31372. * @param {any} a 值
  31373. * @param {any} b 值
  31374. * @return {Boolean} 是否相等
  31375. */
  31376. exports.type = type;
  31377. var isEqual = function isEqual(a, b) {
  31378. //如果a和b本来就全等
  31379. if (a === b) {
  31380. //判断是否为0和-0
  31381. return a !== 0 || 1 / a === 1 / b;
  31382. }
  31383. //判断是否为null和undefined
  31384. if (a == null || b == null) {
  31385. return a === b;
  31386. }
  31387. //接下来判断a和b的数据类型
  31388. var classNameA = toString.call(a),
  31389. classNameB = toString.call(b);
  31390. //如果数据类型不相等,则返回false
  31391. if (classNameA !== classNameB) {
  31392. return false;
  31393. }
  31394. //如果数据类型相等,再根据不同数据类型分别判断
  31395. switch (classNameA) {
  31396. case '[object RegExp]':
  31397. case '[object String]':
  31398. //进行字符串转换比较
  31399. return '' + a === '' + b;
  31400. case '[object Number]':
  31401. //进行数字转换比较,判断是否为NaN
  31402. if (+a !== +a) {
  31403. return +b !== +b;
  31404. }
  31405. //判断是否为0或-0
  31406. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  31407. case '[object Date]':
  31408. case '[object Boolean]':
  31409. return +a === +b;
  31410. }
  31411. //如果是对象类型
  31412. if (classNameA == '[object Object]') {
  31413. //获取a和b的属性长度
  31414. var propsA = Object.getOwnPropertyNames(a),
  31415. propsB = Object.getOwnPropertyNames(b);
  31416. if (propsA.length != propsB.length) {
  31417. return false;
  31418. }
  31419. for (var i = 0; i < propsA.length; i++) {
  31420. var propName = propsA[i];
  31421. //如果对应属性对应值不相等,则返回false
  31422. if (a[propName] !== b[propName]) {
  31423. return false;
  31424. }
  31425. }
  31426. return true;
  31427. }
  31428. //如果是数组类型
  31429. if (classNameA == '[object Array]') {
  31430. if (a.toString() == b.toString()) {
  31431. return true;
  31432. }
  31433. return false;
  31434. }
  31435. };
  31436. exports.isEqual = isEqual;
  31437. /***/ }),
  31438. /***/ 87:
  31439. /*!******************************************************************************!*\
  31440. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/dialog/dialog.js ***!
  31441. \******************************************************************************/
  31442. /*! no static exports found */
  31443. /***/ (function(module, exports, __webpack_require__) {
  31444. "use strict";
  31445. /* WEBPACK VAR INJECTION */(function(wx) {
  31446. Object.defineProperty(exports, "__esModule", {
  31447. value: true
  31448. });
  31449. exports.default = void 0;
  31450. var queue = [];
  31451. var defaultOptions = {
  31452. show: false,
  31453. title: '',
  31454. width: null,
  31455. theme: 'default',
  31456. message: '',
  31457. zIndex: 100,
  31458. overlay: true,
  31459. selector: '#van-dialog',
  31460. className: '',
  31461. asyncClose: false,
  31462. beforeClose: null,
  31463. transition: 'scale',
  31464. customStyle: '',
  31465. messageAlign: '',
  31466. overlayStyle: '',
  31467. confirmButtonText: '确认',
  31468. cancelButtonText: '取消',
  31469. showConfirmButton: true,
  31470. showCancelButton: false,
  31471. closeOnClickOverlay: false,
  31472. confirmButtonOpenType: ''
  31473. };
  31474. var currentOptions = Object.assign({}, defaultOptions);
  31475. function getContext() {
  31476. var pages = getCurrentPages();
  31477. return pages[pages.length - 1];
  31478. }
  31479. var Dialog = function Dialog(options) {
  31480. options = Object.assign(Object.assign({}, currentOptions), options);
  31481. return new Promise(function (resolve, reject) {
  31482. var context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
  31483. var dialog = context.selectComponent(options.selector);
  31484. delete options.context;
  31485. delete options.selector;
  31486. if (dialog) {
  31487. dialog.setData(Object.assign({
  31488. callback: function callback(action, instance) {
  31489. action === 'confirm' ? resolve(instance) : reject(instance);
  31490. }
  31491. }, options));
  31492. wx.nextTick(function () {
  31493. dialog.setData({
  31494. show: true
  31495. });
  31496. });
  31497. queue.push(dialog);
  31498. } else {
  31499. console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
  31500. }
  31501. });
  31502. };
  31503. Dialog.alert = function (options) {
  31504. return Dialog(options);
  31505. };
  31506. Dialog.confirm = function (options) {
  31507. return Dialog(Object.assign({
  31508. showCancelButton: true
  31509. }, options));
  31510. };
  31511. Dialog.close = function () {
  31512. queue.forEach(function (dialog) {
  31513. dialog.close();
  31514. });
  31515. queue = [];
  31516. };
  31517. Dialog.stopLoading = function () {
  31518. queue.forEach(function (dialog) {
  31519. dialog.stopLoading();
  31520. });
  31521. };
  31522. Dialog.currentOptions = currentOptions;
  31523. Dialog.defaultOptions = defaultOptions;
  31524. Dialog.setDefaultOptions = function (options) {
  31525. currentOptions = Object.assign(Object.assign({}, currentOptions), options);
  31526. Dialog.currentOptions = currentOptions;
  31527. };
  31528. Dialog.resetDefaultOptions = function () {
  31529. currentOptions = Object.assign({}, defaultOptions);
  31530. Dialog.currentOptions = currentOptions;
  31531. };
  31532. Dialog.resetDefaultOptions();
  31533. var _default = Dialog;
  31534. exports.default = _default;
  31535. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  31536. /***/ }),
  31537. /***/ 872:
  31538. /*!*******************************************************************************!*\
  31539. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/uploader/index.js ***!
  31540. \*******************************************************************************/
  31541. /*! no static exports found */
  31542. /***/ (function(module, exports, __webpack_require__) {
  31543. "use strict";
  31544. /* WEBPACK VAR INJECTION */(function(wx) {
  31545. var _component = __webpack_require__(/*! ../common/component */ 778);
  31546. var _utils = __webpack_require__(/*! ./utils */ 873);
  31547. var _shared = __webpack_require__(/*! ./shared */ 874);
  31548. var _validator = __webpack_require__(/*! ../common/validator */ 784);
  31549. (0, _component.VantComponent)({
  31550. props: Object.assign(Object.assign(Object.assign(Object.assign({
  31551. disabled: Boolean,
  31552. multiple: Boolean,
  31553. uploadText: String,
  31554. useBeforeRead: Boolean,
  31555. afterRead: null,
  31556. beforeRead: null,
  31557. previewSize: {
  31558. type: null,
  31559. value: 80
  31560. },
  31561. name: {
  31562. type: null,
  31563. value: ''
  31564. },
  31565. accept: {
  31566. type: String,
  31567. value: 'image'
  31568. },
  31569. fileList: {
  31570. type: Array,
  31571. value: [],
  31572. observer: 'formatFileList'
  31573. },
  31574. maxSize: {
  31575. type: Number,
  31576. value: Number.MAX_VALUE
  31577. },
  31578. maxCount: {
  31579. type: Number,
  31580. value: 100
  31581. },
  31582. deletable: {
  31583. type: Boolean,
  31584. value: true
  31585. },
  31586. showUpload: {
  31587. type: Boolean,
  31588. value: true
  31589. },
  31590. previewImage: {
  31591. type: Boolean,
  31592. value: true
  31593. },
  31594. previewFullImage: {
  31595. type: Boolean,
  31596. value: true
  31597. },
  31598. imageFit: {
  31599. type: String,
  31600. value: 'scaleToFill'
  31601. },
  31602. uploadIcon: {
  31603. type: String,
  31604. value: 'photograph'
  31605. }
  31606. }, _shared.imageProps), _shared.videoProps), _shared.mediaProps), _shared.messageFileProps),
  31607. data: {
  31608. lists: [],
  31609. isInCount: true
  31610. },
  31611. methods: {
  31612. formatFileList: function formatFileList() {
  31613. var _this$data = this.data,
  31614. _this$data$fileList = _this$data.fileList,
  31615. fileList = _this$data$fileList === void 0 ? [] : _this$data$fileList,
  31616. maxCount = _this$data.maxCount;
  31617. var lists = fileList.map(function (item) {
  31618. return Object.assign(Object.assign({}, item), {
  31619. isImage: (0, _utils.isImageFile)(item),
  31620. isVideo: (0, _utils.isVideoFile)(item),
  31621. deletable: (0, _validator.isBoolean)(item.deletable) ? item.deletable : true
  31622. });
  31623. });
  31624. this.setData({
  31625. lists: lists,
  31626. isInCount: lists.length < maxCount
  31627. });
  31628. },
  31629. getDetail: function getDetail(index) {
  31630. return {
  31631. name: this.data.name,
  31632. index: index == null ? this.data.fileList.length : index
  31633. };
  31634. },
  31635. startUpload: function startUpload() {
  31636. var _this = this;
  31637. var _this$data2 = this.data,
  31638. maxCount = _this$data2.maxCount,
  31639. multiple = _this$data2.multiple,
  31640. lists = _this$data2.lists,
  31641. disabled = _this$data2.disabled;
  31642. if (disabled) return;
  31643. (0, _utils.chooseFile)(Object.assign(Object.assign({}, this.data), {
  31644. maxCount: maxCount - lists.length
  31645. })).then(function (res) {
  31646. _this.onBeforeRead(multiple ? res : res[0]);
  31647. }).catch(function (error) {
  31648. _this.$emit('error', error);
  31649. });
  31650. },
  31651. onBeforeRead: function onBeforeRead(file) {
  31652. var _this2 = this;
  31653. var _this$data3 = this.data,
  31654. beforeRead = _this$data3.beforeRead,
  31655. useBeforeRead = _this$data3.useBeforeRead;
  31656. var res = true;
  31657. if (typeof beforeRead === 'function') {
  31658. res = beforeRead(file, this.getDetail());
  31659. }
  31660. if (useBeforeRead) {
  31661. res = new Promise(function (resolve, reject) {
  31662. _this2.$emit('before-read', Object.assign(Object.assign({
  31663. file: file
  31664. }, _this2.getDetail()), {
  31665. callback: function callback(ok) {
  31666. ok ? resolve() : reject();
  31667. }
  31668. }));
  31669. });
  31670. }
  31671. if (!res) {
  31672. return;
  31673. }
  31674. if ((0, _validator.isPromise)(res)) {
  31675. res.then(function (data) {
  31676. return _this2.onAfterRead(data || file);
  31677. });
  31678. } else {
  31679. this.onAfterRead(file);
  31680. }
  31681. },
  31682. onAfterRead: function onAfterRead(file) {
  31683. var _this$data4 = this.data,
  31684. maxSize = _this$data4.maxSize,
  31685. afterRead = _this$data4.afterRead;
  31686. var oversize = Array.isArray(file) ? file.some(function (item) {
  31687. return item.size > maxSize;
  31688. }) : file.size > maxSize;
  31689. if (oversize) {
  31690. this.$emit('oversize', Object.assign({
  31691. file: file
  31692. }, this.getDetail()));
  31693. return;
  31694. }
  31695. if (typeof afterRead === 'function') {
  31696. afterRead(file, this.getDetail());
  31697. }
  31698. this.$emit('after-read', Object.assign({
  31699. file: file
  31700. }, this.getDetail()));
  31701. },
  31702. deleteItem: function deleteItem(event) {
  31703. var index = event.currentTarget.dataset.index;
  31704. this.$emit('delete', Object.assign(Object.assign({}, this.getDetail(index)), {
  31705. file: this.data.fileList[index]
  31706. }));
  31707. },
  31708. onPreviewImage: function onPreviewImage(event) {
  31709. if (!this.data.previewFullImage) return;
  31710. var index = event.currentTarget.dataset.index;
  31711. var _this$data5 = this.data,
  31712. lists = _this$data5.lists,
  31713. showmenu = _this$data5.showmenu;
  31714. var item = lists[index];
  31715. wx.previewImage({
  31716. urls: lists.filter(function (item) {
  31717. return (0, _utils.isImageFile)(item);
  31718. }).map(function (item) {
  31719. return item.url;
  31720. }),
  31721. current: item.url,
  31722. showmenu: showmenu,
  31723. fail: function fail() {
  31724. wx.showToast({
  31725. title: '预览图片失败',
  31726. icon: 'none'
  31727. });
  31728. }
  31729. });
  31730. },
  31731. onPreviewVideo: function onPreviewVideo(event) {
  31732. if (!this.data.previewFullImage) return;
  31733. var index = event.currentTarget.dataset.index;
  31734. var lists = this.data.lists;
  31735. var sources = [];
  31736. var current = lists.reduce(function (sum, cur, curIndex) {
  31737. if (!(0, _utils.isVideoFile)(cur)) {
  31738. return sum;
  31739. }
  31740. sources.push(Object.assign(Object.assign({}, cur), {
  31741. type: 'video'
  31742. }));
  31743. if (curIndex < index) {
  31744. sum++;
  31745. }
  31746. return sum;
  31747. }, 0);
  31748. wx.previewMedia({
  31749. sources: sources,
  31750. current: current,
  31751. fail: function fail() {
  31752. wx.showToast({
  31753. title: '预览视频失败',
  31754. icon: 'none'
  31755. });
  31756. }
  31757. });
  31758. },
  31759. onPreviewFile: function onPreviewFile(event) {
  31760. var index = event.currentTarget.dataset.index;
  31761. wx.openDocument({
  31762. filePath: this.data.lists[index].url,
  31763. showMenu: true
  31764. });
  31765. },
  31766. onClickPreview: function onClickPreview(event) {
  31767. var index = event.currentTarget.dataset.index;
  31768. var item = this.data.lists[index];
  31769. this.$emit('click-preview', Object.assign(Object.assign({}, item), this.getDetail(index)));
  31770. }
  31771. }
  31772. });
  31773. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  31774. /***/ }),
  31775. /***/ 873:
  31776. /*!*******************************************************************************!*\
  31777. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/uploader/utils.js ***!
  31778. \*******************************************************************************/
  31779. /*! no static exports found */
  31780. /***/ (function(module, exports, __webpack_require__) {
  31781. "use strict";
  31782. /* WEBPACK VAR INJECTION */(function(wx) {
  31783. Object.defineProperty(exports, "__esModule", {
  31784. value: true
  31785. });
  31786. exports.chooseFile = chooseFile;
  31787. exports.isImageFile = isImageFile;
  31788. exports.isVideoFile = isVideoFile;
  31789. var _utils = __webpack_require__(/*! ../common/utils */ 783);
  31790. var _validator = __webpack_require__(/*! ../common/validator */ 784);
  31791. function isImageFile(item) {
  31792. if (item.isImage != null) {
  31793. return item.isImage;
  31794. }
  31795. if (item.type) {
  31796. return item.type === 'image';
  31797. }
  31798. if (item.url) {
  31799. return (0, _validator.isImageUrl)(item.url);
  31800. }
  31801. return false;
  31802. }
  31803. function isVideoFile(item) {
  31804. if (item.isVideo != null) {
  31805. return item.isVideo;
  31806. }
  31807. if (item.type) {
  31808. return item.type === 'video';
  31809. }
  31810. if (item.url) {
  31811. return (0, _validator.isVideoUrl)(item.url);
  31812. }
  31813. return false;
  31814. }
  31815. function formatImage(res) {
  31816. return res.tempFiles.map(function (item) {
  31817. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  31818. type: 'image',
  31819. url: item.tempFilePath,
  31820. thumb: item.tempFilePath
  31821. });
  31822. });
  31823. }
  31824. function formatVideo(res) {
  31825. return [Object.assign(Object.assign({}, (0, _utils.pickExclude)(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {
  31826. type: 'video',
  31827. url: res.tempFilePath,
  31828. thumb: res.thumbTempFilePath
  31829. })];
  31830. }
  31831. function formatMedia(res) {
  31832. return res.tempFiles.map(function (item) {
  31833. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {
  31834. type: res.type,
  31835. url: item.tempFilePath,
  31836. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath
  31837. });
  31838. });
  31839. }
  31840. function formatFile(res) {
  31841. return res.tempFiles.map(function (item) {
  31842. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  31843. url: item.path
  31844. });
  31845. });
  31846. }
  31847. function chooseFile(_ref) {
  31848. var accept = _ref.accept,
  31849. multiple = _ref.multiple,
  31850. capture = _ref.capture,
  31851. compressed = _ref.compressed,
  31852. maxDuration = _ref.maxDuration,
  31853. sizeType = _ref.sizeType,
  31854. camera = _ref.camera,
  31855. maxCount = _ref.maxCount,
  31856. mediaType = _ref.mediaType,
  31857. extension = _ref.extension;
  31858. return new Promise(function (resolve, reject) {
  31859. switch (accept) {
  31860. case 'image':
  31861. wx.chooseMedia({
  31862. count: multiple ? Math.min(maxCount, 9) : 1,
  31863. mediaType: ['image'],
  31864. sourceType: capture,
  31865. maxDuration: maxDuration,
  31866. sizeType: sizeType,
  31867. camera: camera,
  31868. success: function success(res) {
  31869. return resolve(formatImage(res));
  31870. },
  31871. fail: reject
  31872. });
  31873. break;
  31874. case 'media':
  31875. wx.chooseMedia({
  31876. count: multiple ? Math.min(maxCount, 9) : 1,
  31877. mediaType: mediaType,
  31878. sourceType: capture,
  31879. maxDuration: maxDuration,
  31880. sizeType: sizeType,
  31881. camera: camera,
  31882. success: function success(res) {
  31883. return resolve(formatMedia(res));
  31884. },
  31885. fail: reject
  31886. });
  31887. break;
  31888. case 'video':
  31889. wx.chooseVideo({
  31890. sourceType: capture,
  31891. compressed: compressed,
  31892. maxDuration: maxDuration,
  31893. camera: camera,
  31894. success: function success(res) {
  31895. return resolve(formatVideo(res));
  31896. },
  31897. fail: reject
  31898. });
  31899. break;
  31900. default:
  31901. wx.chooseMessageFile(Object.assign(Object.assign({
  31902. count: multiple ? maxCount : 1,
  31903. type: accept
  31904. }, extension ? {
  31905. extension: extension
  31906. } : {}), {
  31907. success: function success(res) {
  31908. return resolve(formatFile(res));
  31909. },
  31910. fail: reject
  31911. }));
  31912. break;
  31913. }
  31914. });
  31915. }
  31916. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  31917. /***/ }),
  31918. /***/ 874:
  31919. /*!********************************************************************************!*\
  31920. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/uploader/shared.js ***!
  31921. \********************************************************************************/
  31922. /*! no static exports found */
  31923. /***/ (function(module, exports, __webpack_require__) {
  31924. "use strict";
  31925. Object.defineProperty(exports, "__esModule", {
  31926. value: true
  31927. });
  31928. exports.videoProps = exports.messageFileProps = exports.mediaProps = exports.imageProps = void 0;
  31929. // props for image
  31930. var imageProps = {
  31931. sizeType: {
  31932. type: Array,
  31933. value: ['original', 'compressed']
  31934. },
  31935. capture: {
  31936. type: Array,
  31937. value: ['album', 'camera']
  31938. },
  31939. showmenu: {
  31940. type: Boolean,
  31941. value: true
  31942. }
  31943. };
  31944. // props for video
  31945. exports.imageProps = imageProps;
  31946. var videoProps = {
  31947. capture: {
  31948. type: Array,
  31949. value: ['album', 'camera']
  31950. },
  31951. compressed: {
  31952. type: Boolean,
  31953. value: true
  31954. },
  31955. maxDuration: {
  31956. type: Number,
  31957. value: 60
  31958. },
  31959. camera: {
  31960. type: String,
  31961. value: 'back'
  31962. }
  31963. };
  31964. // props for media
  31965. exports.videoProps = videoProps;
  31966. var mediaProps = {
  31967. capture: {
  31968. type: Array,
  31969. value: ['album', 'camera']
  31970. },
  31971. mediaType: {
  31972. type: Array,
  31973. value: ['image', 'video']
  31974. },
  31975. maxDuration: {
  31976. type: Number,
  31977. value: 60
  31978. },
  31979. camera: {
  31980. type: String,
  31981. value: 'back'
  31982. }
  31983. };
  31984. // props for file
  31985. exports.mediaProps = mediaProps;
  31986. var messageFileProps = {
  31987. extension: null
  31988. };
  31989. exports.messageFileProps = messageFileProps;
  31990. /***/ }),
  31991. /***/ 880:
  31992. /*!**************************************************************************!*\
  31993. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/tab/index.js ***!
  31994. \**************************************************************************/
  31995. /*! no static exports found */
  31996. /***/ (function(module, exports, __webpack_require__) {
  31997. "use strict";
  31998. var _relation = __webpack_require__(/*! ../common/relation */ 780);
  31999. var _component = __webpack_require__(/*! ../common/component */ 778);
  32000. (0, _component.VantComponent)({
  32001. relation: (0, _relation.useParent)('tabs'),
  32002. props: {
  32003. dot: {
  32004. type: Boolean,
  32005. observer: 'update'
  32006. },
  32007. info: {
  32008. type: null,
  32009. observer: 'update'
  32010. },
  32011. title: {
  32012. type: String,
  32013. observer: 'update'
  32014. },
  32015. disabled: {
  32016. type: Boolean,
  32017. observer: 'update'
  32018. },
  32019. titleStyle: {
  32020. type: String,
  32021. observer: 'update'
  32022. },
  32023. name: {
  32024. type: null,
  32025. value: ''
  32026. }
  32027. },
  32028. data: {
  32029. active: false
  32030. },
  32031. methods: {
  32032. getComputedName: function getComputedName() {
  32033. if (this.data.name !== '') {
  32034. return this.data.name;
  32035. }
  32036. return this.index;
  32037. },
  32038. updateRender: function updateRender(active, parent) {
  32039. var parentData = parent.data;
  32040. this.inited = this.inited || active;
  32041. this.setData({
  32042. active: active,
  32043. shouldRender: this.inited || !parentData.lazyRender,
  32044. shouldShow: active || parentData.animated
  32045. });
  32046. },
  32047. update: function update() {
  32048. if (this.parent) {
  32049. this.parent.updateTabs();
  32050. }
  32051. }
  32052. }
  32053. });
  32054. /***/ }),
  32055. /***/ 881:
  32056. /*!***************************************************************************!*\
  32057. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/tabs/index.js ***!
  32058. \***************************************************************************/
  32059. /*! no static exports found */
  32060. /***/ (function(module, exports, __webpack_require__) {
  32061. "use strict";
  32062. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  32063. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  32064. var _component = __webpack_require__(/*! ../common/component */ 778);
  32065. var _touch = __webpack_require__(/*! ../mixins/touch */ 882);
  32066. var _utils = __webpack_require__(/*! ../common/utils */ 783);
  32067. var _validator = __webpack_require__(/*! ../common/validator */ 784);
  32068. var _relation = __webpack_require__(/*! ../common/relation */ 780);
  32069. (0, _component.VantComponent)({
  32070. mixins: [_touch.touch],
  32071. classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class', 'wrap-class'],
  32072. relation: (0, _relation.useChildren)('tab', function () {
  32073. this.updateTabs();
  32074. }),
  32075. props: {
  32076. sticky: Boolean,
  32077. border: Boolean,
  32078. swipeable: Boolean,
  32079. titleActiveColor: String,
  32080. titleInactiveColor: String,
  32081. color: String,
  32082. animated: {
  32083. type: Boolean,
  32084. observer: function observer() {
  32085. var _this = this;
  32086. this.children.forEach(function (child, index) {
  32087. return child.updateRender(index === _this.data.currentIndex, _this);
  32088. });
  32089. }
  32090. },
  32091. lineWidth: {
  32092. type: null,
  32093. value: 40,
  32094. observer: 'resize'
  32095. },
  32096. lineHeight: {
  32097. type: null,
  32098. value: -1
  32099. },
  32100. active: {
  32101. type: null,
  32102. value: 0,
  32103. observer: function observer(name) {
  32104. if (name !== this.getCurrentName()) {
  32105. this.setCurrentIndexByName(name);
  32106. }
  32107. }
  32108. },
  32109. type: {
  32110. type: String,
  32111. value: 'line'
  32112. },
  32113. ellipsis: {
  32114. type: Boolean,
  32115. value: true
  32116. },
  32117. duration: {
  32118. type: Number,
  32119. value: 0.3
  32120. },
  32121. zIndex: {
  32122. type: Number,
  32123. value: 1
  32124. },
  32125. swipeThreshold: {
  32126. type: Number,
  32127. value: 5,
  32128. observer: function observer(value) {
  32129. this.setData({
  32130. scrollable: this.children.length > value || !this.data.ellipsis
  32131. });
  32132. }
  32133. },
  32134. offsetTop: {
  32135. type: Number,
  32136. value: 0
  32137. },
  32138. lazyRender: {
  32139. type: Boolean,
  32140. value: true
  32141. },
  32142. useBeforeChange: {
  32143. type: Boolean,
  32144. value: false
  32145. }
  32146. },
  32147. data: {
  32148. tabs: [],
  32149. scrollLeft: 0,
  32150. scrollable: false,
  32151. currentIndex: 0,
  32152. container: null,
  32153. skipTransition: true,
  32154. scrollWithAnimation: false,
  32155. lineOffsetLeft: 0,
  32156. inited: false
  32157. },
  32158. mounted: function mounted() {
  32159. var _this2 = this;
  32160. (0, _utils.requestAnimationFrame)(function () {
  32161. _this2.swiping = true;
  32162. _this2.setData({
  32163. container: function container() {
  32164. return _this2.createSelectorQuery().select('.van-tabs');
  32165. }
  32166. });
  32167. _this2.resize();
  32168. _this2.scrollIntoView();
  32169. });
  32170. },
  32171. methods: {
  32172. updateTabs: function updateTabs() {
  32173. var _this$children = this.children,
  32174. children = _this$children === void 0 ? [] : _this$children,
  32175. data = this.data;
  32176. this.setData({
  32177. tabs: children.map(function (child) {
  32178. return child.data;
  32179. }),
  32180. scrollable: this.children.length > data.swipeThreshold || !data.ellipsis
  32181. });
  32182. this.setCurrentIndexByName(data.active || this.getCurrentName());
  32183. },
  32184. trigger: function trigger(eventName, child) {
  32185. var currentIndex = this.data.currentIndex;
  32186. var data = this.getChildData(currentIndex, child);
  32187. if (!(0, _validator.isDef)(data)) {
  32188. return;
  32189. }
  32190. this.$emit(eventName, data);
  32191. },
  32192. onTap: function onTap(event) {
  32193. var _this3 = this;
  32194. var index = event.currentTarget.dataset.index;
  32195. var child = this.children[index];
  32196. if (child.data.disabled) {
  32197. this.trigger('disabled', child);
  32198. return;
  32199. }
  32200. this.onBeforeChange(index).then(function () {
  32201. _this3.setCurrentIndex(index);
  32202. (0, _utils.nextTick)(function () {
  32203. _this3.trigger('click');
  32204. });
  32205. });
  32206. },
  32207. // correct the index of active tab
  32208. setCurrentIndexByName: function setCurrentIndexByName(name) {
  32209. var _this$children2 = this.children,
  32210. children = _this$children2 === void 0 ? [] : _this$children2;
  32211. var matched = children.filter(function (child) {
  32212. return child.getComputedName() === name;
  32213. });
  32214. if (matched.length) {
  32215. this.setCurrentIndex(matched[0].index);
  32216. }
  32217. },
  32218. setCurrentIndex: function setCurrentIndex(currentIndex) {
  32219. var _this4 = this;
  32220. var data = this.data,
  32221. _this$children3 = this.children,
  32222. children = _this$children3 === void 0 ? [] : _this$children3;
  32223. if (!(0, _validator.isDef)(currentIndex) || currentIndex >= children.length || currentIndex < 0) {
  32224. return;
  32225. }
  32226. (0, _utils.groupSetData)(this, function () {
  32227. children.forEach(function (item, index) {
  32228. var active = index === currentIndex;
  32229. if (active !== item.data.active || !item.inited) {
  32230. item.updateRender(active, _this4);
  32231. }
  32232. });
  32233. });
  32234. if (currentIndex === data.currentIndex) {
  32235. return;
  32236. }
  32237. var shouldEmitChange = data.currentIndex !== null;
  32238. this.setData({
  32239. currentIndex: currentIndex
  32240. });
  32241. (0, _utils.requestAnimationFrame)(function () {
  32242. _this4.resize();
  32243. _this4.scrollIntoView();
  32244. });
  32245. (0, _utils.nextTick)(function () {
  32246. _this4.trigger('input');
  32247. if (shouldEmitChange) {
  32248. _this4.trigger('change');
  32249. }
  32250. });
  32251. },
  32252. getCurrentName: function getCurrentName() {
  32253. var activeTab = this.children[this.data.currentIndex];
  32254. if (activeTab) {
  32255. return activeTab.getComputedName();
  32256. }
  32257. },
  32258. resize: function resize() {
  32259. var _this5 = this;
  32260. if (this.data.type !== 'line') {
  32261. return;
  32262. }
  32263. var _this$data = this.data,
  32264. currentIndex = _this$data.currentIndex,
  32265. ellipsis = _this$data.ellipsis,
  32266. skipTransition = _this$data.skipTransition;
  32267. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__line')]).then(function (_ref) {
  32268. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  32269. _ref2$ = _ref2[0],
  32270. rects = _ref2$ === void 0 ? [] : _ref2$,
  32271. lineRect = _ref2[1];
  32272. var rect = rects[currentIndex];
  32273. if (rect == null) {
  32274. return;
  32275. }
  32276. var lineOffsetLeft = rects.slice(0, currentIndex).reduce(function (prev, curr) {
  32277. return prev + curr.width;
  32278. }, 0);
  32279. lineOffsetLeft += (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
  32280. _this5.setData({
  32281. lineOffsetLeft: lineOffsetLeft,
  32282. inited: true
  32283. });
  32284. _this5.swiping = true;
  32285. if (skipTransition) {
  32286. // waiting transition end
  32287. setTimeout(function () {
  32288. _this5.setData({
  32289. skipTransition: false
  32290. });
  32291. }, _this5.data.duration);
  32292. }
  32293. });
  32294. },
  32295. // scroll active tab into view
  32296. scrollIntoView: function scrollIntoView() {
  32297. var _this6 = this;
  32298. var _this$data2 = this.data,
  32299. currentIndex = _this$data2.currentIndex,
  32300. scrollable = _this$data2.scrollable,
  32301. scrollWithAnimation = _this$data2.scrollWithAnimation;
  32302. if (!scrollable) {
  32303. return;
  32304. }
  32305. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__nav')]).then(function (_ref3) {
  32306. var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
  32307. tabRects = _ref4[0],
  32308. navRect = _ref4[1];
  32309. var tabRect = tabRects[currentIndex];
  32310. var offsetLeft = tabRects.slice(0, currentIndex).reduce(function (prev, curr) {
  32311. return prev + curr.width;
  32312. }, 0);
  32313. _this6.setData({
  32314. scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2
  32315. });
  32316. if (!scrollWithAnimation) {
  32317. (0, _utils.nextTick)(function () {
  32318. _this6.setData({
  32319. scrollWithAnimation: true
  32320. });
  32321. });
  32322. }
  32323. });
  32324. },
  32325. onTouchScroll: function onTouchScroll(event) {
  32326. this.$emit('scroll', event.detail);
  32327. },
  32328. onTouchStart: function onTouchStart(event) {
  32329. if (!this.data.swipeable) return;
  32330. this.swiping = true;
  32331. this.touchStart(event);
  32332. },
  32333. onTouchMove: function onTouchMove(event) {
  32334. if (!this.data.swipeable || !this.swiping) return;
  32335. this.touchMove(event);
  32336. },
  32337. // watch swipe touch end
  32338. onTouchEnd: function onTouchEnd() {
  32339. var _this7 = this;
  32340. if (!this.data.swipeable || !this.swiping) return;
  32341. var direction = this.direction,
  32342. deltaX = this.deltaX,
  32343. offsetX = this.offsetX;
  32344. var minSwipeDistance = 50;
  32345. if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
  32346. var index = this.getAvaiableTab(deltaX);
  32347. if (index !== -1) {
  32348. this.onBeforeChange(index).then(function () {
  32349. return _this7.setCurrentIndex(index);
  32350. });
  32351. }
  32352. }
  32353. this.swiping = false;
  32354. },
  32355. getAvaiableTab: function getAvaiableTab(direction) {
  32356. var _this$data3 = this.data,
  32357. tabs = _this$data3.tabs,
  32358. currentIndex = _this$data3.currentIndex;
  32359. var step = direction > 0 ? -1 : 1;
  32360. for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
  32361. var index = currentIndex + i;
  32362. if (index >= 0 && index < tabs.length && tabs[index] && !tabs[index].disabled) {
  32363. return index;
  32364. }
  32365. }
  32366. return -1;
  32367. },
  32368. onBeforeChange: function onBeforeChange(index) {
  32369. var _this8 = this;
  32370. var useBeforeChange = this.data.useBeforeChange;
  32371. if (!useBeforeChange) {
  32372. return Promise.resolve();
  32373. }
  32374. return new Promise(function (resolve, reject) {
  32375. _this8.$emit('before-change', Object.assign(Object.assign({}, _this8.getChildData(index)), {
  32376. callback: function callback(status) {
  32377. return status ? resolve() : reject();
  32378. }
  32379. }));
  32380. });
  32381. },
  32382. getChildData: function getChildData(index, child) {
  32383. var currentChild = child || this.children[index];
  32384. if (!(0, _validator.isDef)(currentChild)) {
  32385. return;
  32386. }
  32387. return {
  32388. index: currentChild.index,
  32389. name: currentChild.getComputedName(),
  32390. title: currentChild.data.title
  32391. };
  32392. }
  32393. }
  32394. });
  32395. /***/ }),
  32396. /***/ 882:
  32397. /*!*****************************************************************************!*\
  32398. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/mixins/touch.js ***!
  32399. \*****************************************************************************/
  32400. /*! no static exports found */
  32401. /***/ (function(module, exports, __webpack_require__) {
  32402. "use strict";
  32403. Object.defineProperty(exports, "__esModule", {
  32404. value: true
  32405. });
  32406. exports.touch = void 0;
  32407. // @ts-nocheck
  32408. var MIN_DISTANCE = 10;
  32409. function getDirection(x, y) {
  32410. if (x > y && x > MIN_DISTANCE) {
  32411. return 'horizontal';
  32412. }
  32413. if (y > x && y > MIN_DISTANCE) {
  32414. return 'vertical';
  32415. }
  32416. return '';
  32417. }
  32418. var touch = Behavior({
  32419. methods: {
  32420. resetTouchStatus: function resetTouchStatus() {
  32421. this.direction = '';
  32422. this.deltaX = 0;
  32423. this.deltaY = 0;
  32424. this.offsetX = 0;
  32425. this.offsetY = 0;
  32426. },
  32427. touchStart: function touchStart(event) {
  32428. this.resetTouchStatus();
  32429. var touch = event.touches[0];
  32430. this.startX = touch.clientX;
  32431. this.startY = touch.clientY;
  32432. },
  32433. touchMove: function touchMove(event) {
  32434. var touch = event.touches[0];
  32435. this.deltaX = touch.clientX - this.startX;
  32436. this.deltaY = touch.clientY - this.startY;
  32437. this.offsetX = Math.abs(this.deltaX);
  32438. this.offsetY = Math.abs(this.deltaY);
  32439. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  32440. }
  32441. }
  32442. });
  32443. exports.touch = touch;
  32444. /***/ }),
  32445. /***/ 883:
  32446. /*!****************************************************************************!*\
  32447. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/empty/index.js ***!
  32448. \****************************************************************************/
  32449. /*! no static exports found */
  32450. /***/ (function(module, exports, __webpack_require__) {
  32451. "use strict";
  32452. var _component = __webpack_require__(/*! ../common/component */ 778);
  32453. (0, _component.VantComponent)({
  32454. props: {
  32455. description: String,
  32456. image: {
  32457. type: String,
  32458. value: 'default'
  32459. }
  32460. }
  32461. });
  32462. /***/ }),
  32463. /***/ 889:
  32464. /*!********************************************************************************************************!*\
  32465. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js ***!
  32466. \********************************************************************************************************/
  32467. /*! no static exports found */
  32468. /***/ (function(module, exports, __webpack_require__) {
  32469. "use strict";
  32470. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  32471. Object.defineProperty(exports, "__esModule", {
  32472. value: true
  32473. });
  32474. exports.default = void 0;
  32475. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 890));
  32476. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 891));
  32477. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 892));
  32478. var _default = {
  32479. en: _en.default,
  32480. 'zh-Hans': _zhHans.default,
  32481. 'zh-Hant': _zhHant.default
  32482. };
  32483. exports.default = _default;
  32484. /***/ }),
  32485. /***/ 890:
  32486. /*!*******************************************************************************************************!*\
  32487. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json ***!
  32488. \*******************************************************************************************************/
  32489. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  32490. /***/ (function(module) {
  32491. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"Search enter content\"}");
  32492. /***/ }),
  32493. /***/ 891:
  32494. /*!************************************************************************************************************!*\
  32495. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json ***!
  32496. \************************************************************************************************************/
  32497. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  32498. /***/ (function(module) {
  32499. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"请输入搜索内容\"}");
  32500. /***/ }),
  32501. /***/ 892:
  32502. /*!************************************************************************************************************!*\
  32503. !*** D:/work/gitlabcode/product_wx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json ***!
  32504. \************************************************************************************************************/
  32505. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  32506. /***/ (function(module) {
  32507. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"請輸入搜索內容\"}");
  32508. /***/ }),
  32509. /***/ 895:
  32510. /*!**************************************************************************!*\
  32511. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/row/index.js ***!
  32512. \**************************************************************************/
  32513. /*! no static exports found */
  32514. /***/ (function(module, exports, __webpack_require__) {
  32515. "use strict";
  32516. var _component = __webpack_require__(/*! ../common/component */ 778);
  32517. var _relation = __webpack_require__(/*! ../common/relation */ 780);
  32518. (0, _component.VantComponent)({
  32519. relation: (0, _relation.useChildren)('col', function (target) {
  32520. var gutter = this.data.gutter;
  32521. if (gutter) {
  32522. target.setData({
  32523. gutter: gutter
  32524. });
  32525. }
  32526. }),
  32527. props: {
  32528. gutter: {
  32529. type: Number,
  32530. observer: 'setGutter'
  32531. }
  32532. },
  32533. methods: {
  32534. setGutter: function setGutter() {
  32535. var _this = this;
  32536. this.children.forEach(function (col) {
  32537. col.setData(_this.data);
  32538. });
  32539. }
  32540. }
  32541. });
  32542. /***/ }),
  32543. /***/ 896:
  32544. /*!**************************************************************************!*\
  32545. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/col/index.js ***!
  32546. \**************************************************************************/
  32547. /*! no static exports found */
  32548. /***/ (function(module, exports, __webpack_require__) {
  32549. "use strict";
  32550. var _relation = __webpack_require__(/*! ../common/relation */ 780);
  32551. var _component = __webpack_require__(/*! ../common/component */ 778);
  32552. (0, _component.VantComponent)({
  32553. relation: (0, _relation.useParent)('row'),
  32554. props: {
  32555. span: Number,
  32556. offset: Number
  32557. }
  32558. });
  32559. /***/ }),
  32560. /***/ 9:
  32561. /*!*****************************************************************!*\
  32562. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  32563. \*****************************************************************/
  32564. /*! no static exports found */
  32565. /***/ (function(module, exports) {
  32566. function _arrayLikeToArray(arr, len) {
  32567. if (len == null || len > arr.length) len = arr.length;
  32568. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  32569. arr2[i] = arr[i];
  32570. }
  32571. return arr2;
  32572. }
  32573. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32574. /***/ }),
  32575. /***/ 947:
  32576. /*!*****************************************************************************!*\
  32577. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/picker/index.js ***!
  32578. \*****************************************************************************/
  32579. /*! no static exports found */
  32580. /***/ (function(module, exports, __webpack_require__) {
  32581. "use strict";
  32582. var _component = __webpack_require__(/*! ../common/component */ 778);
  32583. var _shared = __webpack_require__(/*! ./shared */ 948);
  32584. (0, _component.VantComponent)({
  32585. classes: ['active-class', 'toolbar-class', 'column-class'],
  32586. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  32587. valueKey: {
  32588. type: String,
  32589. value: 'text'
  32590. },
  32591. toolbarPosition: {
  32592. type: String,
  32593. value: 'top'
  32594. },
  32595. defaultIndex: {
  32596. type: Number,
  32597. value: 0
  32598. },
  32599. columns: {
  32600. type: Array,
  32601. value: [],
  32602. observer: function observer() {
  32603. var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  32604. this.simple = columns.length && !columns[0].values;
  32605. if (Array.isArray(this.children) && this.children.length) {
  32606. this.setColumns().catch(function () {});
  32607. }
  32608. }
  32609. }
  32610. }),
  32611. beforeCreate: function beforeCreate() {
  32612. var _this = this;
  32613. Object.defineProperty(this, 'children', {
  32614. get: function get() {
  32615. return _this.selectAllComponents('.van-picker__column') || [];
  32616. }
  32617. });
  32618. },
  32619. methods: {
  32620. noop: function noop() {},
  32621. setColumns: function setColumns() {
  32622. var _this2 = this;
  32623. var data = this.data;
  32624. var columns = this.simple ? [{
  32625. values: data.columns
  32626. }] : data.columns;
  32627. var stack = columns.map(function (column, index) {
  32628. return _this2.setColumnValues(index, column.values);
  32629. });
  32630. return Promise.all(stack);
  32631. },
  32632. emit: function emit(event) {
  32633. var type = event.currentTarget.dataset.type;
  32634. if (this.simple) {
  32635. this.$emit(type, {
  32636. value: this.getColumnValue(0),
  32637. index: this.getColumnIndex(0)
  32638. });
  32639. } else {
  32640. this.$emit(type, {
  32641. value: this.getValues(),
  32642. index: this.getIndexes()
  32643. });
  32644. }
  32645. },
  32646. onChange: function onChange(event) {
  32647. if (this.simple) {
  32648. this.$emit('change', {
  32649. picker: this,
  32650. value: this.getColumnValue(0),
  32651. index: this.getColumnIndex(0)
  32652. });
  32653. } else {
  32654. this.$emit('change', {
  32655. picker: this,
  32656. value: this.getValues(),
  32657. index: event.currentTarget.dataset.index
  32658. });
  32659. }
  32660. },
  32661. // get column instance by index
  32662. getColumn: function getColumn(index) {
  32663. return this.children[index];
  32664. },
  32665. // get column value by index
  32666. getColumnValue: function getColumnValue(index) {
  32667. var column = this.getColumn(index);
  32668. return column && column.getValue();
  32669. },
  32670. // set column value by index
  32671. setColumnValue: function setColumnValue(index, value) {
  32672. var column = this.getColumn(index);
  32673. if (column == null) {
  32674. return Promise.reject(new Error('setColumnValue: 对应列不存在'));
  32675. }
  32676. return column.setValue(value);
  32677. },
  32678. // get column option index by column index
  32679. getColumnIndex: function getColumnIndex(columnIndex) {
  32680. return (this.getColumn(columnIndex) || {}).data.currentIndex;
  32681. },
  32682. // set column option index by column index
  32683. setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {
  32684. var column = this.getColumn(columnIndex);
  32685. if (column == null) {
  32686. return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
  32687. }
  32688. return column.setIndex(optionIndex);
  32689. },
  32690. // get options of column by index
  32691. getColumnValues: function getColumnValues(index) {
  32692. return (this.children[index] || {}).data.options;
  32693. },
  32694. // set options of column by index
  32695. setColumnValues: function setColumnValues(index, options) {
  32696. var needReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  32697. var column = this.children[index];
  32698. if (column == null) {
  32699. return Promise.reject(new Error('setColumnValues: 对应列不存在'));
  32700. }
  32701. var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
  32702. if (isSame) {
  32703. return Promise.resolve();
  32704. }
  32705. return column.set({
  32706. options: options
  32707. }).then(function () {
  32708. if (needReset) {
  32709. column.setIndex(0);
  32710. }
  32711. });
  32712. },
  32713. // get values of all columns
  32714. getValues: function getValues() {
  32715. return this.children.map(function (child) {
  32716. return child.getValue();
  32717. });
  32718. },
  32719. // set values of all columns
  32720. setValues: function setValues(values) {
  32721. var _this3 = this;
  32722. var stack = values.map(function (value, index) {
  32723. return _this3.setColumnValue(index, value);
  32724. });
  32725. return Promise.all(stack);
  32726. },
  32727. // get indexes of all columns
  32728. getIndexes: function getIndexes() {
  32729. return this.children.map(function (child) {
  32730. return child.data.currentIndex;
  32731. });
  32732. },
  32733. // set indexes of all columns
  32734. setIndexes: function setIndexes(indexes) {
  32735. var _this4 = this;
  32736. var stack = indexes.map(function (optionIndex, columnIndex) {
  32737. return _this4.setColumnIndex(columnIndex, optionIndex);
  32738. });
  32739. return Promise.all(stack);
  32740. }
  32741. }
  32742. });
  32743. /***/ }),
  32744. /***/ 948:
  32745. /*!******************************************************************************!*\
  32746. !*** D:/work/gitlabcode/product_wx/wxcomponents/weapp/dist/picker/shared.js ***!
  32747. \******************************************************************************/
  32748. /*! no static exports found */
  32749. /***/ (function(module, exports, __webpack_require__) {
  32750. "use strict";
  32751. Object.defineProperty(exports, "__esModule", {
  32752. value: true
  32753. });
  32754. exports.pickerProps = void 0;
  32755. var pickerProps = {
  32756. title: String,
  32757. loading: Boolean,
  32758. showToolbar: Boolean,
  32759. cancelButtonText: {
  32760. type: String,
  32761. value: '取消'
  32762. },
  32763. confirmButtonText: {
  32764. type: String,
  32765. value: '确认'
  32766. },
  32767. visibleItemCount: {
  32768. type: Number,
  32769. value: 6
  32770. },
  32771. itemHeight: {
  32772. type: Number,
  32773. value: 44
  32774. }
  32775. };
  32776. exports.pickerProps = pickerProps;
  32777. /***/ })
  32778. }]);
  32779. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map