vendor.js 1.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215
  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. /***/ 100:
  53. /*!****************************************************************!*\
  54. !*** D:/AAAcompany_product/产品化管理端/static/mine/versionicon.png ***!
  55. \****************************************************************/
  56. /*! no static exports found */
  57. /***/ (function(module, exports) {
  58. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABVBJREFUWEftWd9rHFUU/s7sJtmHtrTa7EyTWaiYgmCEFhQrVnTNpD9QHwqtTWgKCoopKiIIrX+BLRREVFpRUGilUSsNNNI2mbhKI1YU2oeIBSMWdpLOJNqGmkI2uzNH7syu3d1kd2Z2t0Kg85adc+/55tzvfOeeE8Iye2iZ4cVdwHf6xOqOcDw+en8TWCPCFoA7CaSAoLjAGSaDTYDGmTGWBenT011/1PNRNQJORdW4vYcl7pdAW8IAcMBjzPTBlBX5GkjmwqwVtqEBt8vDXQQ6RkQdZc7mAR53mCYkwrx45zBiEnEHQJ0AYsX2DL7CzK9NWltHw4AOATgVSyi5dwHqLzhgxhyAARB/bpjRi0DSBbr4ScVUJbcZTHuJ0FcKno+lzeibldeW7hYIcGvrN0qL1HyaiDa71GTkADoyl7l5eHZ252yYCK1efXr1ipZVBwB+iwhRbz++mHEWds7MPGP67eUL2AUbaU4R6IH85uNZOL2WtW3cb/Nq72X5fGcTpJNELl0gKJKxF5J+oH0AuzS4ANDD+cgOZpzr+2ZmnhdUqPtpbf1yRYt0z0kiPFuItGFFk9XoURVwQhk5WuAsMwYNK7LbP7NTsXXx3JMCwLXp6Pf+3ExFVdk+XQANCE53768UjYqAhRpIJOkFGmScG4/5RVZRzq5vQlMKwPq8w6tZZJOmueNqtePwIr3mxwI9HHa0SupRAbD46txvQrpEgmVhbwrCWVXRvyJgV6l84ZRharv9+ONxOnJJJKLgs2FGH1rqNJcErMb1vSThhBddOmRYXW/7ORTvE4r+Z1F0C0uupk3tviDrVXn0HSI+KGxtRs+UpX1Rvm5JwAlFvwBgi9DZucw/iaDSpSr6WQK2l0X4nGFqO4IAFpK3MrbyWl6nx9Km9oQv4NbWcx2xSPT3vCp8Yljay0GcCRv3WCmSImCtJ1X4K8t2MgidCj5UWf+YCC+Jv+ft3IaZme0Txf4XRbg9rr8iSTiW18akYXZ/FxSwsGtbeWYtxVpcmbqVvTUY9HT+A6yMPEUgkbhwHPRPTmsfVQWsyvrxfPmcT5uRNf6yFOZzgtgK7bdvCFow44Rhaft8AI9cIqKNAP+SNrsfCeKi2MYtvbFVb4jf5uZvvhc2wl7yjvwsihUzXzas7k1VASdk/Zq4zzqMgUlL6w0LWJX1M7crF4YMS3su7B7tsn5SIvSI+3Ta0tZVB6zonDf4LG1qL4Z1ViZtgSWt2E9C0T8F8IL4LW1qJXm2KOkSyw5wnZRoRIRDUUKV60u6RgAOlXT1ylr9gEPKWnt8uF+SpKO1Fo56AaslhcPZPzm91S1ihWdR0tVTmj0NLbkAhVaJ0KU577Smy0+9gGu6/Ainany4jyTpuEuLENfLegGXXi/t3ilr20B5HQh0gc+RtNE0n/41SBEppgQzTxhW94Yg6xTl2wej7Fyu6QIvHLTJuhYhjHhR5vEgLZJ7OsroAQIf8pKWDhpm12E/wOUtks3onrI0tz0LGGHPrKwJHTKsyE7/JhRou/e8OxKY+nvbFT+wQIOaUM9RKqbKuVTRAGUo41zv9WtG/UF6Fg1v871NFw9SchTpCcrpSuA9ztoDDR6kFCKx1KiKj8xl5mocVa04ANCdGVXdjtDiYaBou0RXAHJOGGbTT9WHgdlHwVLf/zIMLD5WoR4S8fuFWVvRu3kGj3PZuJWIO6jCuNVher2SGlSiku8wcOmFqWibvLArQpFXxTggaJLl7cZstj+csppPBVGcULIWBIi4ezSTpBFJj1f/l4HzwwI7ennbHsRHsU2NEQ7rpnH2dwE3LpZL77TsIvwvQyHlS9/f8ZQAAAAASUVORK5CYII="
  59. /***/ }),
  60. /***/ 101:
  61. /*!*****************************************************************!*\
  62. !*** D:/AAAcompany_product/产品化管理端/static/mine/editpassword.png ***!
  63. \*****************************************************************/
  64. /*! no static exports found */
  65. /***/ (function(module, exports) {
  66. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA/BJREFUWEftmE9oHGUYxp/3m80m8Q/UJJsZsxMQbKGCl0APETw0ZJIaqwdBhELFFhU8KBbsIVKlCoUq6qGHnixY0YOot9TSZHdZoYIBPQgWKhhIYGdkJtPGHgrdNbPzlplxcbPu7ny72e0azFz2sO/3vr/v+f7M+wxhhz20w3jx/wROpb5+oJ8eOgSBSTDtBWFPsHLMsAFaAfnLlp3IAVPF7a7othQeHc09miSeJ8JRAAPNYJhxm8AXSkwfrK8bTrvgbQLnB8ZV7yyDXidCoro4AyaYbxDBY5BGgF4DV4SPdwrryjlgymsVvGXgVOo7bUBJLgB0oFKMGctg/3yJN7Oue9iuhhh7cGFEDPY/BSFeJuBg1ZhLJX/jiOu+cLsV6JaAA9h+JZkn0P6/i6yVGa/+4RhZmaJjatZQCJ8CeCSK5x+K5T/nWoFuATif0FXvKhFNtlssGBceUDG0QBSp7TO+shzjiMyEgxhp4LSaOyWIz0TCIFv0N55rRZmtQPmBcc3LAPRkCF3GMcs1PpeBlgKO9m3/angTMOyiX5qo3asyxf61t+8fvE7ACIN/M+2Zx2RySAHrauYsEc1HavjHLXf2okzyuJj0yOIzIqF8w0wXTGf6jbh46S2ha9lCeD0x1gqOsq+d60gGRiYmVuGx4cX9Sp9yPTogdMZypt+VSdytmFjgh0eWDiQS4qcImJ+wnJnlbsHI5I0FDpKkU4vPB7+We+hbmaTdjIkFHh7OpQf7aG83ISq572zyys2b01azWk2BdTX7JoCPa/uFbsEzI+gtTpqOca5RjYbAQ0OX9fv6kqv3CrYCGECX/NJ4o3u+IbCuZQ4SKB8l4p/L7H8iSGxpbDqltM++ppB4q9JQMXjKtGe+r5dfCph9/0VzffbLTgHWy5PWlo4JiM9CebYN3CRBpybRU+DQiQjSZU59ZcI9A9a1zEcEOhkuLcMjwomCbZyPW4meAKe1zGEBulQNF0B7pc199q25tWbQPQHWtdxpAr9XCyZzaHsDrC69QiQCC7Tl8cv+hOXO/vKfUxgI3fRV0D8GVdYC9UThSMEAurwKgsbAFdNWnpXpn3sIDIxr2cBOBc74YsE2jsfdEMH/u8CN3u311NPVzO9EYUu6MxROa9mXiPGaV+a37Rv1m5jaifZ0S8js2e4ClzFnusaVdkBkx+ijS0dJiC861K3RvGlPfyhbvJ246i9LbbWXaTUzKYh+rDQxAF8D0a12YGLHMO8B6PGKu2nmzpt4unxC17xfq75UxtbtRAAzXzOdxESjl01TE5oeuqxTX/I0CPfENYOxwpt/vW9tPG02mnysze+Eap3MsQvcSTXr5dpVuNsK3wXVCjlLaPN+NwAAAABJRU5ErkJggg=="
  67. /***/ }),
  68. /***/ 102:
  69. /*!***************************************************************!*\
  70. !*** D:/AAAcompany_product/产品化管理端/static/mine/youjiantou.png ***!
  71. \***************************************************************/
  72. /*! no static exports found */
  73. /***/ (function(module, exports) {
  74. 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=="
  75. /***/ }),
  76. /***/ 103:
  77. /*!************************************************************!*\
  78. !*** D:/AAAcompany_product/产品化管理端/static/mine/outicon.png ***!
  79. \************************************************************/
  80. /*! no static exports found */
  81. /***/ (function(module, exports) {
  82. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABQpJREFUWEftmXGIFHUUx79vZtUlFM7LvZm7mwUPCgwKDC5CSvC8mdRUMLjSoD/6w/8KukDRoEgpSSjIwNB/wj9MlCQsSu3csfUP/xBUMhQSMjyYubuZ20sFLde7mXnx2905Nr3dmdm9/UO4/WvZmffeZ76/936/92YJj9mHHjNezAG3esVaonAm893C+dLiHcS4Yo8b38/mQ7QEOKua7wDYzwwv+Pd+5+jdjROzBd0SYE09+zGBdwnIKUz1OM664Tng2VJA+JlTuErNxDmsqWd3EPMgA3ttV/9qppWJo3BWyX3JRAMIsNMe14/EXeEEwPlUt+IflghbhHNmvmK7xvONAmuKeZcICyu+9tqu8UEc6JjA+ZTW4R8lCQMlpwzHD/j10YJxvlHg7szQAEnyoRAazPss13g/CjoWsKbkPiOinWVWvu7BW1dvq4qTEsJXd+bMckmSToOglpXGVtvVv6kHHQncrebWS6CfK06Gi/6DFYXCeqee07jAwkfXk0PLpJR8saJ0cZL9F1x3zbVa/iOA8+ms6v8BYCmAoucFK8cmXrkUtWxJgMtKDw1Isny87JfPW46xsiFgTTHfI8I+YRwwfTri9n8UBdvoPtytmEfDgvaZN426xo8zxaqjcD6VVfw/QVgqisxy5R6gr9gy4PZTGs2bf5MIKQbO2Y7elwi4SzF1mZArFxrtsp3+3XFgG1W4ZKeYh4nwlvj+z+Rk9tatV+2HY9ZUWFNznxNomzAo+t7ThcLaG60GrhYJwLuWo38dGzir5i4C1Cu2MdsxnokL24zCQD6VVf27ANIB49iIq7+ZANi8X8+w3gN0KUNbZJKPgnHHcuXOuLkvfE4LxXzNdo3nYgG3tZ1oW5RedLuR/A0DaGpulVf0hp07yXrh6TwuFbreGQtYVU8vnYd5N5sBTpJC1fdmVfMQgLfFb5ajP1JjMxbdYwcshsi03C6SXxzwsZqSRhV92E5TzJ+IsAHAsOXoPbFSopT8ijlWakoYpuXqxmwBRfnRVNMiQANw3nL0R47o2vuwYp4gwiZm3LNdeTHQ50UFa/Z6dSrWWtmawOGoLiAC8IYRxzjZLFCU/f97F3/jiLsm7BKnTWsCt7ef0p4Iz3bGD7arvxYVsNnrmpK7SkTPMjBhO3J2pv27bnupVdJCgHie1Ds2sfpys1C17LsUc7NMOFYudNpnuf0zTh91gUsTgSz9Vt4s+ILtpla2IpfFQbUwvehqpdiKRf9BT60hIXri6DAPSVJ5I2fwF7ZjbJ9tlau2MqHuh5bbv6dWjEjgyjEtVBZTh5i7BmuN9408iBj3QTRYtuVLlpNaUW8VI4GFm84lZ3plWcpPj+Wl/lja01x65NPdHf6BcPXEkDBFUyui3sPFAhbQ6pLcqpRM4hQK3yWcm2Rp6/h4/19JldWUX18E/INEtLwsLBzf8/tG/15zPcpXbGDhqCuTe1mW6Hg4lovenhnfMkv7R8ZX/x4VrKvjzEsSSdvEgRTey8w3Ai/YGAdW2CQCFgaZzEl1gbTgQHXQSkFeJ+AcQNc4YAeSPBFwoEqAyoTlBIjWSxy5058AfHDSv729UHjjXtTDhtcTA4eGWsZcCxmfENAbN9i0qsAvzLx7xDUuJLVtGDgMVCrIFG0GsIFAy2oBiH2cIZnseUfiLv9MvpoGrnZa+m8DbU+RTG3wKQ2Zi1McTLju/BtJxqR6qs8qcNLlbeT+OeBGVEti8x9q9mtLhchgzwAAAABJRU5ErkJggg=="
  83. /***/ }),
  84. /***/ 11:
  85. /*!***************************************************************!*\
  86. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  87. \***************************************************************/
  88. /*! no static exports found */
  89. /***/ (function(module, exports, __webpack_require__) {
  90. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  91. function _defineProperty(obj, key, value) {
  92. key = toPropertyKey(key);
  93. if (key in obj) {
  94. Object.defineProperty(obj, key, {
  95. value: value,
  96. enumerable: true,
  97. configurable: true,
  98. writable: true
  99. });
  100. } else {
  101. obj[key] = value;
  102. }
  103. return obj;
  104. }
  105. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  106. /***/ }),
  107. /***/ 12:
  108. /*!**************************************************************!*\
  109. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  110. \**************************************************************/
  111. /*! no static exports found */
  112. /***/ (function(module, exports, __webpack_require__) {
  113. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  114. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  115. function toPropertyKey(t) {
  116. var i = toPrimitive(t, "string");
  117. return "symbol" == _typeof(i) ? i : String(i);
  118. }
  119. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  120. /***/ }),
  121. /***/ 13:
  122. /*!*******************************************************!*\
  123. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  124. \*******************************************************/
  125. /*! no static exports found */
  126. /***/ (function(module, exports) {
  127. function _typeof(o) {
  128. "@babel/helpers - typeof";
  129. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  130. return typeof o;
  131. } : function (o) {
  132. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  133. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  134. }
  135. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  136. /***/ }),
  137. /***/ 14:
  138. /*!************************************************************!*\
  139. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  140. \************************************************************/
  141. /*! no static exports found */
  142. /***/ (function(module, exports, __webpack_require__) {
  143. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  144. function toPrimitive(t, r) {
  145. if ("object" != _typeof(t) || !t) return t;
  146. var e = t[Symbol.toPrimitive];
  147. if (void 0 !== e) {
  148. var i = e.call(t, r || "default");
  149. if ("object" != _typeof(i)) return i;
  150. throw new TypeError("@@toPrimitive must return a primitive value.");
  151. }
  152. return ("string" === r ? String : Number)(t);
  153. }
  154. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  155. /***/ }),
  156. /***/ 15:
  157. /*!**********************************************************!*\
  158. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  159. \**********************************************************/
  160. /*! no static exports found */
  161. /***/ (function(module, exports, __webpack_require__) {
  162. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  163. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  164. function _construct(t, e, r) {
  165. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  166. var o = [null];
  167. o.push.apply(o, e);
  168. var p = new (t.bind.apply(t, o))();
  169. return r && setPrototypeOf(p, r.prototype), p;
  170. }
  171. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  172. /***/ }),
  173. /***/ 16:
  174. /*!***************************************************************!*\
  175. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  176. \***************************************************************/
  177. /*! no static exports found */
  178. /***/ (function(module, exports) {
  179. function _setPrototypeOf(o, p) {
  180. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  181. o.__proto__ = p;
  182. return o;
  183. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  184. return _setPrototypeOf(o, p);
  185. }
  186. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  187. /***/ }),
  188. /***/ 17:
  189. /*!*************************************************************************!*\
  190. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  191. \*************************************************************************/
  192. /*! no static exports found */
  193. /***/ (function(module, exports) {
  194. function _isNativeReflectConstruct() {
  195. try {
  196. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  197. } catch (t) {}
  198. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  199. return !!t;
  200. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  201. }
  202. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  203. /***/ }),
  204. /***/ 18:
  205. /*!******************************************************************!*\
  206. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  207. \******************************************************************/
  208. /*! no static exports found */
  209. /***/ (function(module, exports, __webpack_require__) {
  210. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  211. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  212. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  213. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  214. function _toConsumableArray(arr) {
  215. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  216. }
  217. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  218. /***/ }),
  219. /***/ 19:
  220. /*!******************************************************************!*\
  221. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  222. \******************************************************************/
  223. /*! no static exports found */
  224. /***/ (function(module, exports, __webpack_require__) {
  225. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  226. function _arrayWithoutHoles(arr) {
  227. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  228. }
  229. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  230. /***/ }),
  231. /***/ 2:
  232. /*!************************************************************!*\
  233. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  234. \************************************************************/
  235. /*! no static exports found */
  236. /***/ (function(module, exports, __webpack_require__) {
  237. "use strict";
  238. /* WEBPACK VAR INJECTION */(function(wx, global) {
  239. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  240. Object.defineProperty(exports, "__esModule", {
  241. value: true
  242. });
  243. exports.createApp = createApp;
  244. exports.createComponent = createComponent;
  245. exports.createPage = createPage;
  246. exports.createPlugin = createPlugin;
  247. exports.createSubpackageApp = createSubpackageApp;
  248. exports.default = void 0;
  249. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  250. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  251. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  252. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  253. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  254. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  255. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  256. 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; }
  257. 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; }
  258. var realAtob;
  259. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  260. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  261. if (typeof atob !== 'function') {
  262. realAtob = function realAtob(str) {
  263. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  264. if (!b64re.test(str)) {
  265. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  266. }
  267. // Adding the padding if missing, for semplicity
  268. str += '=='.slice(2 - (str.length & 3));
  269. var bitmap;
  270. var result = '';
  271. var r1;
  272. var r2;
  273. var i = 0;
  274. for (; i < str.length;) {
  275. 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++)));
  276. 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);
  277. }
  278. return result;
  279. };
  280. } else {
  281. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  282. realAtob = atob;
  283. }
  284. function b64DecodeUnicode(str) {
  285. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  286. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  287. }).join(''));
  288. }
  289. function getCurrentUserInfo() {
  290. var token = wx.getStorageSync('uni_id_token') || '';
  291. var tokenArr = token.split('.');
  292. if (!token || tokenArr.length !== 3) {
  293. return {
  294. uid: null,
  295. role: [],
  296. permission: [],
  297. tokenExpired: 0
  298. };
  299. }
  300. var userInfo;
  301. try {
  302. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  303. } catch (error) {
  304. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  305. }
  306. userInfo.tokenExpired = userInfo.exp * 1000;
  307. delete userInfo.exp;
  308. delete userInfo.iat;
  309. return userInfo;
  310. }
  311. function uniIdMixin(Vue) {
  312. Vue.prototype.uniIDHasRole = function (roleId) {
  313. var _getCurrentUserInfo = getCurrentUserInfo(),
  314. role = _getCurrentUserInfo.role;
  315. return role.indexOf(roleId) > -1;
  316. };
  317. Vue.prototype.uniIDHasPermission = function (permissionId) {
  318. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  319. permission = _getCurrentUserInfo2.permission;
  320. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  321. };
  322. Vue.prototype.uniIDTokenValid = function () {
  323. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  324. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  325. return tokenExpired > Date.now();
  326. };
  327. }
  328. var _toString = Object.prototype.toString;
  329. var hasOwnProperty = Object.prototype.hasOwnProperty;
  330. function isFn(fn) {
  331. return typeof fn === 'function';
  332. }
  333. function isStr(str) {
  334. return typeof str === 'string';
  335. }
  336. function isObject(obj) {
  337. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  338. }
  339. function isPlainObject(obj) {
  340. return _toString.call(obj) === '[object Object]';
  341. }
  342. function hasOwn(obj, key) {
  343. return hasOwnProperty.call(obj, key);
  344. }
  345. function noop() {}
  346. /**
  347. * Create a cached version of a pure function.
  348. */
  349. function cached(fn) {
  350. var cache = Object.create(null);
  351. return function cachedFn(str) {
  352. var hit = cache[str];
  353. return hit || (cache[str] = fn(str));
  354. };
  355. }
  356. /**
  357. * Camelize a hyphen-delimited string.
  358. */
  359. var camelizeRE = /-(\w)/g;
  360. var camelize = cached(function (str) {
  361. return str.replace(camelizeRE, function (_, c) {
  362. return c ? c.toUpperCase() : '';
  363. });
  364. });
  365. function sortObject(obj) {
  366. var sortObj = {};
  367. if (isPlainObject(obj)) {
  368. Object.keys(obj).sort().forEach(function (key) {
  369. sortObj[key] = obj[key];
  370. });
  371. }
  372. return !Object.keys(sortObj) ? obj : sortObj;
  373. }
  374. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  375. var globalInterceptors = {};
  376. var scopedInterceptors = {};
  377. function mergeHook(parentVal, childVal) {
  378. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  379. return res ? dedupeHooks(res) : res;
  380. }
  381. function dedupeHooks(hooks) {
  382. var res = [];
  383. for (var i = 0; i < hooks.length; i++) {
  384. if (res.indexOf(hooks[i]) === -1) {
  385. res.push(hooks[i]);
  386. }
  387. }
  388. return res;
  389. }
  390. function removeHook(hooks, hook) {
  391. var index = hooks.indexOf(hook);
  392. if (index !== -1) {
  393. hooks.splice(index, 1);
  394. }
  395. }
  396. function mergeInterceptorHook(interceptor, option) {
  397. Object.keys(option).forEach(function (hook) {
  398. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  399. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  400. }
  401. });
  402. }
  403. function removeInterceptorHook(interceptor, option) {
  404. if (!interceptor || !option) {
  405. return;
  406. }
  407. Object.keys(option).forEach(function (hook) {
  408. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  409. removeHook(interceptor[hook], option[hook]);
  410. }
  411. });
  412. }
  413. function addInterceptor(method, option) {
  414. if (typeof method === 'string' && isPlainObject(option)) {
  415. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  416. } else if (isPlainObject(method)) {
  417. mergeInterceptorHook(globalInterceptors, method);
  418. }
  419. }
  420. function removeInterceptor(method, option) {
  421. if (typeof method === 'string') {
  422. if (isPlainObject(option)) {
  423. removeInterceptorHook(scopedInterceptors[method], option);
  424. } else {
  425. delete scopedInterceptors[method];
  426. }
  427. } else if (isPlainObject(method)) {
  428. removeInterceptorHook(globalInterceptors, method);
  429. }
  430. }
  431. function wrapperHook(hook, params) {
  432. return function (data) {
  433. return hook(data, params) || data;
  434. };
  435. }
  436. function isPromise(obj) {
  437. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  438. }
  439. function queue(hooks, data, params) {
  440. var promise = false;
  441. for (var i = 0; i < hooks.length; i++) {
  442. var hook = hooks[i];
  443. if (promise) {
  444. promise = Promise.resolve(wrapperHook(hook, params));
  445. } else {
  446. var res = hook(data, params);
  447. if (isPromise(res)) {
  448. promise = Promise.resolve(res);
  449. }
  450. if (res === false) {
  451. return {
  452. then: function then() {}
  453. };
  454. }
  455. }
  456. }
  457. return promise || {
  458. then: function then(callback) {
  459. return callback(data);
  460. }
  461. };
  462. }
  463. function wrapperOptions(interceptor) {
  464. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  465. ['success', 'fail', 'complete'].forEach(function (name) {
  466. if (Array.isArray(interceptor[name])) {
  467. var oldCallback = options[name];
  468. options[name] = function callbackInterceptor(res) {
  469. queue(interceptor[name], res, options).then(function (res) {
  470. /* eslint-disable no-mixed-operators */
  471. return isFn(oldCallback) && oldCallback(res) || res;
  472. });
  473. };
  474. }
  475. });
  476. return options;
  477. }
  478. function wrapperReturnValue(method, returnValue) {
  479. var returnValueHooks = [];
  480. if (Array.isArray(globalInterceptors.returnValue)) {
  481. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  482. }
  483. var interceptor = scopedInterceptors[method];
  484. if (interceptor && Array.isArray(interceptor.returnValue)) {
  485. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  486. }
  487. returnValueHooks.forEach(function (hook) {
  488. returnValue = hook(returnValue) || returnValue;
  489. });
  490. return returnValue;
  491. }
  492. function getApiInterceptorHooks(method) {
  493. var interceptor = Object.create(null);
  494. Object.keys(globalInterceptors).forEach(function (hook) {
  495. if (hook !== 'returnValue') {
  496. interceptor[hook] = globalInterceptors[hook].slice();
  497. }
  498. });
  499. var scopedInterceptor = scopedInterceptors[method];
  500. if (scopedInterceptor) {
  501. Object.keys(scopedInterceptor).forEach(function (hook) {
  502. if (hook !== 'returnValue') {
  503. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  504. }
  505. });
  506. }
  507. return interceptor;
  508. }
  509. function invokeApi(method, api, options) {
  510. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  511. params[_key - 3] = arguments[_key];
  512. }
  513. var interceptor = getApiInterceptorHooks(method);
  514. if (interceptor && Object.keys(interceptor).length) {
  515. if (Array.isArray(interceptor.invoke)) {
  516. var res = queue(interceptor.invoke, options);
  517. return res.then(function (options) {
  518. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  519. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  520. });
  521. } else {
  522. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  523. }
  524. }
  525. return api.apply(void 0, [options].concat(params));
  526. }
  527. var promiseInterceptor = {
  528. returnValue: function returnValue(res) {
  529. if (!isPromise(res)) {
  530. return res;
  531. }
  532. return new Promise(function (resolve, reject) {
  533. res.then(function (res) {
  534. if (res[0]) {
  535. reject(res[0]);
  536. } else {
  537. resolve(res[1]);
  538. }
  539. });
  540. });
  541. }
  542. };
  543. 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/;
  544. var CONTEXT_API_RE = /^create|Manager$/;
  545. // Context例外情况
  546. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  547. // 同步例外情况
  548. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  549. var CALLBACK_API_RE = /^on|^off/;
  550. function isContextApi(name) {
  551. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  552. }
  553. function isSyncApi(name) {
  554. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  555. }
  556. function isCallbackApi(name) {
  557. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  558. }
  559. function handlePromise(promise) {
  560. return promise.then(function (data) {
  561. return [null, data];
  562. }).catch(function (err) {
  563. return [err];
  564. });
  565. }
  566. function shouldPromise(name) {
  567. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  568. return false;
  569. }
  570. return true;
  571. }
  572. /* eslint-disable no-extend-native */
  573. if (!Promise.prototype.finally) {
  574. Promise.prototype.finally = function (callback) {
  575. var promise = this.constructor;
  576. return this.then(function (value) {
  577. return promise.resolve(callback()).then(function () {
  578. return value;
  579. });
  580. }, function (reason) {
  581. return promise.resolve(callback()).then(function () {
  582. throw reason;
  583. });
  584. });
  585. };
  586. }
  587. function promisify(name, api) {
  588. if (!shouldPromise(name) || !isFn(api)) {
  589. return api;
  590. }
  591. return function promiseApi() {
  592. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  593. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  594. params[_key2 - 1] = arguments[_key2];
  595. }
  596. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  597. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  598. }
  599. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  600. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  601. success: resolve,
  602. fail: reject
  603. })].concat(params));
  604. })));
  605. };
  606. }
  607. var EPS = 1e-4;
  608. var BASE_DEVICE_WIDTH = 750;
  609. var isIOS = false;
  610. var deviceWidth = 0;
  611. var deviceDPR = 0;
  612. function checkDeviceWidth() {
  613. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  614. platform = _wx$getSystemInfoSync.platform,
  615. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  616. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  617. deviceWidth = windowWidth;
  618. deviceDPR = pixelRatio;
  619. isIOS = platform === 'ios';
  620. }
  621. function upx2px(number, newDeviceWidth) {
  622. if (deviceWidth === 0) {
  623. checkDeviceWidth();
  624. }
  625. number = Number(number);
  626. if (number === 0) {
  627. return 0;
  628. }
  629. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  630. if (result < 0) {
  631. result = -result;
  632. }
  633. result = Math.floor(result + EPS);
  634. if (result === 0) {
  635. if (deviceDPR === 1 || !isIOS) {
  636. result = 1;
  637. } else {
  638. result = 0.5;
  639. }
  640. }
  641. return number < 0 ? -result : result;
  642. }
  643. var LOCALE_ZH_HANS = 'zh-Hans';
  644. var LOCALE_ZH_HANT = 'zh-Hant';
  645. var LOCALE_EN = 'en';
  646. var LOCALE_FR = 'fr';
  647. var LOCALE_ES = 'es';
  648. var messages = {};
  649. var locale;
  650. {
  651. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  652. }
  653. function initI18nMessages() {
  654. if (!isEnableLocale()) {
  655. return;
  656. }
  657. var localeKeys = Object.keys(__uniConfig.locales);
  658. if (localeKeys.length) {
  659. localeKeys.forEach(function (locale) {
  660. var curMessages = messages[locale];
  661. var userMessages = __uniConfig.locales[locale];
  662. if (curMessages) {
  663. Object.assign(curMessages, userMessages);
  664. } else {
  665. messages[locale] = userMessages;
  666. }
  667. });
  668. }
  669. }
  670. initI18nMessages();
  671. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  672. var t = i18n.t;
  673. var i18nMixin = i18n.mixin = {
  674. beforeCreate: function beforeCreate() {
  675. var _this = this;
  676. var unwatch = i18n.i18n.watchLocale(function () {
  677. _this.$forceUpdate();
  678. });
  679. this.$once('hook:beforeDestroy', function () {
  680. unwatch();
  681. });
  682. },
  683. methods: {
  684. $$t: function $$t(key, values) {
  685. return t(key, values);
  686. }
  687. }
  688. };
  689. var setLocale = i18n.setLocale;
  690. var getLocale = i18n.getLocale;
  691. function initAppLocale(Vue, appVm, locale) {
  692. var state = Vue.observable({
  693. locale: locale || i18n.getLocale()
  694. });
  695. var localeWatchers = [];
  696. appVm.$watchLocale = function (fn) {
  697. localeWatchers.push(fn);
  698. };
  699. Object.defineProperty(appVm, '$locale', {
  700. get: function get() {
  701. return state.locale;
  702. },
  703. set: function set(v) {
  704. state.locale = v;
  705. localeWatchers.forEach(function (watch) {
  706. return watch(v);
  707. });
  708. }
  709. });
  710. }
  711. function isEnableLocale() {
  712. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  713. }
  714. function include(str, parts) {
  715. return !!parts.find(function (part) {
  716. return str.indexOf(part) !== -1;
  717. });
  718. }
  719. function startsWith(str, parts) {
  720. return parts.find(function (part) {
  721. return str.indexOf(part) === 0;
  722. });
  723. }
  724. function normalizeLocale(locale, messages) {
  725. if (!locale) {
  726. return;
  727. }
  728. locale = locale.trim().replace(/_/g, '-');
  729. if (messages && messages[locale]) {
  730. return locale;
  731. }
  732. locale = locale.toLowerCase();
  733. if (locale === 'chinese') {
  734. // 支付宝
  735. return LOCALE_ZH_HANS;
  736. }
  737. if (locale.indexOf('zh') === 0) {
  738. if (locale.indexOf('-hans') > -1) {
  739. return LOCALE_ZH_HANS;
  740. }
  741. if (locale.indexOf('-hant') > -1) {
  742. return LOCALE_ZH_HANT;
  743. }
  744. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  745. return LOCALE_ZH_HANT;
  746. }
  747. return LOCALE_ZH_HANS;
  748. }
  749. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  750. if (lang) {
  751. return lang;
  752. }
  753. }
  754. // export function initI18n() {
  755. // const localeKeys = Object.keys(__uniConfig.locales || {})
  756. // if (localeKeys.length) {
  757. // localeKeys.forEach((locale) =>
  758. // i18n.add(locale, __uniConfig.locales[locale])
  759. // )
  760. // }
  761. // }
  762. function getLocale$1() {
  763. // 优先使用 $locale
  764. if (isFn(getApp)) {
  765. var app = getApp({
  766. allowDefault: true
  767. });
  768. if (app && app.$vm) {
  769. return app.$vm.$locale;
  770. }
  771. }
  772. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  773. }
  774. function setLocale$1(locale) {
  775. var app = isFn(getApp) ? getApp() : false;
  776. if (!app) {
  777. return false;
  778. }
  779. var oldLocale = app.$vm.$locale;
  780. if (oldLocale !== locale) {
  781. app.$vm.$locale = locale;
  782. onLocaleChangeCallbacks.forEach(function (fn) {
  783. return fn({
  784. locale: locale
  785. });
  786. });
  787. return true;
  788. }
  789. return false;
  790. }
  791. var onLocaleChangeCallbacks = [];
  792. function onLocaleChange(fn) {
  793. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  794. onLocaleChangeCallbacks.push(fn);
  795. }
  796. }
  797. if (typeof global !== 'undefined') {
  798. global.getLocale = getLocale$1;
  799. }
  800. var interceptors = {
  801. promiseInterceptor: promiseInterceptor
  802. };
  803. var baseApi = /*#__PURE__*/Object.freeze({
  804. __proto__: null,
  805. upx2px: upx2px,
  806. getLocale: getLocale$1,
  807. setLocale: setLocale$1,
  808. onLocaleChange: onLocaleChange,
  809. addInterceptor: addInterceptor,
  810. removeInterceptor: removeInterceptor,
  811. interceptors: interceptors
  812. });
  813. function findExistsPageIndex(url) {
  814. var pages = getCurrentPages();
  815. var len = pages.length;
  816. while (len--) {
  817. var page = pages[len];
  818. if (page.$page && page.$page.fullPath === url) {
  819. return len;
  820. }
  821. }
  822. return -1;
  823. }
  824. var redirectTo = {
  825. name: function name(fromArgs) {
  826. if (fromArgs.exists === 'back' && fromArgs.delta) {
  827. return 'navigateBack';
  828. }
  829. return 'redirectTo';
  830. },
  831. args: function args(fromArgs) {
  832. if (fromArgs.exists === 'back' && fromArgs.url) {
  833. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  834. if (existsPageIndex !== -1) {
  835. var delta = getCurrentPages().length - 1 - existsPageIndex;
  836. if (delta > 0) {
  837. fromArgs.delta = delta;
  838. }
  839. }
  840. }
  841. }
  842. };
  843. var previewImage = {
  844. args: function args(fromArgs) {
  845. var currentIndex = parseInt(fromArgs.current);
  846. if (isNaN(currentIndex)) {
  847. return;
  848. }
  849. var urls = fromArgs.urls;
  850. if (!Array.isArray(urls)) {
  851. return;
  852. }
  853. var len = urls.length;
  854. if (!len) {
  855. return;
  856. }
  857. if (currentIndex < 0) {
  858. currentIndex = 0;
  859. } else if (currentIndex >= len) {
  860. currentIndex = len - 1;
  861. }
  862. if (currentIndex > 0) {
  863. fromArgs.current = urls[currentIndex];
  864. fromArgs.urls = urls.filter(function (item, index) {
  865. return index < currentIndex ? item !== urls[currentIndex] : true;
  866. });
  867. } else {
  868. fromArgs.current = urls[0];
  869. }
  870. return {
  871. indicator: false,
  872. loop: false
  873. };
  874. }
  875. };
  876. var UUID_KEY = '__DC_STAT_UUID';
  877. var deviceId;
  878. function useDeviceId(result) {
  879. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  880. if (!deviceId) {
  881. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  882. wx.setStorage({
  883. key: UUID_KEY,
  884. data: deviceId
  885. });
  886. }
  887. result.deviceId = deviceId;
  888. }
  889. function addSafeAreaInsets(result) {
  890. if (result.safeArea) {
  891. var safeArea = result.safeArea;
  892. result.safeAreaInsets = {
  893. top: safeArea.top,
  894. left: safeArea.left,
  895. right: result.windowWidth - safeArea.right,
  896. bottom: result.screenHeight - safeArea.bottom
  897. };
  898. }
  899. }
  900. function populateParameters(result) {
  901. var _result$brand = result.brand,
  902. brand = _result$brand === void 0 ? '' : _result$brand,
  903. _result$model = result.model,
  904. model = _result$model === void 0 ? '' : _result$model,
  905. _result$system = result.system,
  906. system = _result$system === void 0 ? '' : _result$system,
  907. _result$language = result.language,
  908. language = _result$language === void 0 ? '' : _result$language,
  909. theme = result.theme,
  910. version = result.version,
  911. platform = result.platform,
  912. fontSizeSetting = result.fontSizeSetting,
  913. SDKVersion = result.SDKVersion,
  914. pixelRatio = result.pixelRatio,
  915. deviceOrientation = result.deviceOrientation;
  916. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  917. var extraParam = {};
  918. // osName osVersion
  919. var osName = '';
  920. var osVersion = '';
  921. {
  922. osName = system.split(' ')[0] || '';
  923. osVersion = system.split(' ')[1] || '';
  924. }
  925. var hostVersion = version;
  926. // deviceType
  927. var deviceType = getGetDeviceType(result, model);
  928. // deviceModel
  929. var deviceBrand = getDeviceBrand(brand);
  930. // hostName
  931. var _hostName = getHostName(result);
  932. // deviceOrientation
  933. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  934. // devicePixelRatio
  935. var _devicePixelRatio = pixelRatio;
  936. // SDKVersion
  937. var _SDKVersion = SDKVersion;
  938. // hostLanguage
  939. var hostLanguage = language.replace(/_/g, '-');
  940. // wx.getAccountInfoSync
  941. var parameters = {
  942. appId: "__UNI__8C5F0F6",
  943. appName: "产品化管理端",
  944. appVersion: "1.0.0",
  945. appVersionCode: "100",
  946. appLanguage: getAppLanguage(hostLanguage),
  947. uniCompileVersion: "4.08",
  948. uniRuntimeVersion: "4.08",
  949. uniPlatform: undefined || "mp-weixin",
  950. deviceBrand: deviceBrand,
  951. deviceModel: model,
  952. deviceType: deviceType,
  953. devicePixelRatio: _devicePixelRatio,
  954. deviceOrientation: _deviceOrientation,
  955. osName: osName.toLocaleLowerCase(),
  956. osVersion: osVersion,
  957. hostTheme: theme,
  958. hostVersion: hostVersion,
  959. hostLanguage: hostLanguage,
  960. hostName: _hostName,
  961. hostSDKVersion: _SDKVersion,
  962. hostFontSizeSetting: fontSizeSetting,
  963. windowTop: 0,
  964. windowBottom: 0,
  965. // TODO
  966. osLanguage: undefined,
  967. osTheme: undefined,
  968. ua: undefined,
  969. hostPackageName: undefined,
  970. browserName: undefined,
  971. browserVersion: undefined
  972. };
  973. Object.assign(result, parameters, extraParam);
  974. }
  975. function getGetDeviceType(result, model) {
  976. var deviceType = result.deviceType || 'phone';
  977. {
  978. var deviceTypeMaps = {
  979. ipad: 'pad',
  980. windows: 'pc',
  981. mac: 'pc'
  982. };
  983. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  984. var _model = model.toLocaleLowerCase();
  985. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  986. var _m = deviceTypeMapsKeys[index];
  987. if (_model.indexOf(_m) !== -1) {
  988. deviceType = deviceTypeMaps[_m];
  989. break;
  990. }
  991. }
  992. }
  993. return deviceType;
  994. }
  995. function getDeviceBrand(brand) {
  996. var deviceBrand = brand;
  997. if (deviceBrand) {
  998. deviceBrand = brand.toLocaleLowerCase();
  999. }
  1000. return deviceBrand;
  1001. }
  1002. function getAppLanguage(defaultLanguage) {
  1003. return getLocale$1 ? getLocale$1() : defaultLanguage;
  1004. }
  1005. function getHostName(result) {
  1006. var _platform = 'WeChat';
  1007. var _hostName = result.hostName || _platform; // mp-jd
  1008. {
  1009. if (result.environment) {
  1010. _hostName = result.environment;
  1011. } else if (result.host && result.host.env) {
  1012. _hostName = result.host.env;
  1013. }
  1014. }
  1015. return _hostName;
  1016. }
  1017. var getSystemInfo = {
  1018. returnValue: function returnValue(result) {
  1019. useDeviceId(result);
  1020. addSafeAreaInsets(result);
  1021. populateParameters(result);
  1022. }
  1023. };
  1024. var showActionSheet = {
  1025. args: function args(fromArgs) {
  1026. if ((0, _typeof2.default)(fromArgs) === 'object') {
  1027. fromArgs.alertText = fromArgs.title;
  1028. }
  1029. }
  1030. };
  1031. var getAppBaseInfo = {
  1032. returnValue: function returnValue(result) {
  1033. var _result = result,
  1034. version = _result.version,
  1035. language = _result.language,
  1036. SDKVersion = _result.SDKVersion,
  1037. theme = _result.theme;
  1038. var _hostName = getHostName(result);
  1039. var hostLanguage = language.replace('_', '-');
  1040. result = sortObject(Object.assign(result, {
  1041. appId: "__UNI__8C5F0F6",
  1042. appName: "产品化管理端",
  1043. appVersion: "1.0.0",
  1044. appVersionCode: "100",
  1045. appLanguage: getAppLanguage(hostLanguage),
  1046. hostVersion: version,
  1047. hostLanguage: hostLanguage,
  1048. hostName: _hostName,
  1049. hostSDKVersion: SDKVersion,
  1050. hostTheme: theme
  1051. }));
  1052. }
  1053. };
  1054. var getDeviceInfo = {
  1055. returnValue: function returnValue(result) {
  1056. var _result2 = result,
  1057. brand = _result2.brand,
  1058. model = _result2.model;
  1059. var deviceType = getGetDeviceType(result, model);
  1060. var deviceBrand = getDeviceBrand(brand);
  1061. useDeviceId(result);
  1062. result = sortObject(Object.assign(result, {
  1063. deviceType: deviceType,
  1064. deviceBrand: deviceBrand,
  1065. deviceModel: model
  1066. }));
  1067. }
  1068. };
  1069. var getWindowInfo = {
  1070. returnValue: function returnValue(result) {
  1071. addSafeAreaInsets(result);
  1072. result = sortObject(Object.assign(result, {
  1073. windowTop: 0,
  1074. windowBottom: 0
  1075. }));
  1076. }
  1077. };
  1078. var getAppAuthorizeSetting = {
  1079. returnValue: function returnValue(result) {
  1080. var locationReducedAccuracy = result.locationReducedAccuracy;
  1081. result.locationAccuracy = 'unsupported';
  1082. if (locationReducedAccuracy === true) {
  1083. result.locationAccuracy = 'reduced';
  1084. } else if (locationReducedAccuracy === false) {
  1085. result.locationAccuracy = 'full';
  1086. }
  1087. }
  1088. };
  1089. // import navigateTo from 'uni-helpers/navigate-to'
  1090. var compressImage = {
  1091. args: function args(fromArgs) {
  1092. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  1093. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  1094. fromArgs.compressHeight = fromArgs.compressedHeight;
  1095. }
  1096. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  1097. fromArgs.compressWidth = fromArgs.compressedWidth;
  1098. }
  1099. }
  1100. };
  1101. var protocols = {
  1102. redirectTo: redirectTo,
  1103. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  1104. previewImage: previewImage,
  1105. getSystemInfo: getSystemInfo,
  1106. getSystemInfoSync: getSystemInfo,
  1107. showActionSheet: showActionSheet,
  1108. getAppBaseInfo: getAppBaseInfo,
  1109. getDeviceInfo: getDeviceInfo,
  1110. getWindowInfo: getWindowInfo,
  1111. getAppAuthorizeSetting: getAppAuthorizeSetting,
  1112. compressImage: compressImage
  1113. };
  1114. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  1115. var canIUses = [];
  1116. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  1117. function processCallback(methodName, method, returnValue) {
  1118. return function (res) {
  1119. return method(processReturnValue(methodName, res, returnValue));
  1120. };
  1121. }
  1122. function processArgs(methodName, fromArgs) {
  1123. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1124. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1125. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1126. if (isPlainObject(fromArgs)) {
  1127. // 一般 api 的参数解析
  1128. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  1129. if (isFn(argsOption)) {
  1130. argsOption = argsOption(fromArgs, toArgs) || {};
  1131. }
  1132. for (var key in fromArgs) {
  1133. if (hasOwn(argsOption, key)) {
  1134. var keyOption = argsOption[key];
  1135. if (isFn(keyOption)) {
  1136. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  1137. }
  1138. if (!keyOption) {
  1139. // 不支持的参数
  1140. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  1141. } else if (isStr(keyOption)) {
  1142. // 重写参数 key
  1143. toArgs[keyOption] = fromArgs[key];
  1144. } else if (isPlainObject(keyOption)) {
  1145. // {name:newName,value:value}可重新指定参数 key:value
  1146. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  1147. }
  1148. } else if (CALLBACKS.indexOf(key) !== -1) {
  1149. if (isFn(fromArgs[key])) {
  1150. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  1151. }
  1152. } else {
  1153. if (!keepFromArgs) {
  1154. toArgs[key] = fromArgs[key];
  1155. }
  1156. }
  1157. }
  1158. return toArgs;
  1159. } else if (isFn(fromArgs)) {
  1160. fromArgs = processCallback(methodName, fromArgs, returnValue);
  1161. }
  1162. return fromArgs;
  1163. }
  1164. function processReturnValue(methodName, res, returnValue) {
  1165. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1166. if (isFn(protocols.returnValue)) {
  1167. // 处理通用 returnValue
  1168. res = protocols.returnValue(methodName, res);
  1169. }
  1170. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  1171. }
  1172. function wrapper(methodName, method) {
  1173. if (hasOwn(protocols, methodName)) {
  1174. var protocol = protocols[methodName];
  1175. if (!protocol) {
  1176. // 暂不支持的 api
  1177. return function () {
  1178. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1179. };
  1180. }
  1181. return function (arg1, arg2) {
  1182. // 目前 api 最多两个参数
  1183. var options = protocol;
  1184. if (isFn(protocol)) {
  1185. options = protocol(arg1);
  1186. }
  1187. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1188. var args = [arg1];
  1189. if (typeof arg2 !== 'undefined') {
  1190. args.push(arg2);
  1191. }
  1192. if (isFn(options.name)) {
  1193. methodName = options.name(arg1);
  1194. } else if (isStr(options.name)) {
  1195. methodName = options.name;
  1196. }
  1197. var returnValue = wx[methodName].apply(wx, args);
  1198. if (isSyncApi(methodName)) {
  1199. // 同步 api
  1200. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1201. }
  1202. return returnValue;
  1203. };
  1204. }
  1205. return method;
  1206. }
  1207. var todoApis = Object.create(null);
  1208. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1209. function createTodoApi(name) {
  1210. return function todoApi(_ref) {
  1211. var fail = _ref.fail,
  1212. complete = _ref.complete;
  1213. var res = {
  1214. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1215. };
  1216. isFn(fail) && fail(res);
  1217. isFn(complete) && complete(res);
  1218. };
  1219. }
  1220. TODOS.forEach(function (name) {
  1221. todoApis[name] = createTodoApi(name);
  1222. });
  1223. var providers = {
  1224. oauth: ['weixin'],
  1225. share: ['weixin'],
  1226. payment: ['wxpay'],
  1227. push: ['weixin']
  1228. };
  1229. function getProvider(_ref2) {
  1230. var service = _ref2.service,
  1231. success = _ref2.success,
  1232. fail = _ref2.fail,
  1233. complete = _ref2.complete;
  1234. var res = false;
  1235. if (providers[service]) {
  1236. res = {
  1237. errMsg: 'getProvider:ok',
  1238. service: service,
  1239. provider: providers[service]
  1240. };
  1241. isFn(success) && success(res);
  1242. } else {
  1243. res = {
  1244. errMsg: 'getProvider:fail service not found'
  1245. };
  1246. isFn(fail) && fail(res);
  1247. }
  1248. isFn(complete) && complete(res);
  1249. }
  1250. var extraApi = /*#__PURE__*/Object.freeze({
  1251. __proto__: null,
  1252. getProvider: getProvider
  1253. });
  1254. var getEmitter = function () {
  1255. var Emitter;
  1256. return function getUniEmitter() {
  1257. if (!Emitter) {
  1258. Emitter = new _vue.default();
  1259. }
  1260. return Emitter;
  1261. };
  1262. }();
  1263. function apply(ctx, method, args) {
  1264. return ctx[method].apply(ctx, args);
  1265. }
  1266. function $on() {
  1267. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1268. }
  1269. function $off() {
  1270. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1271. }
  1272. function $once() {
  1273. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1274. }
  1275. function $emit() {
  1276. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1277. }
  1278. var eventApi = /*#__PURE__*/Object.freeze({
  1279. __proto__: null,
  1280. $on: $on,
  1281. $off: $off,
  1282. $once: $once,
  1283. $emit: $emit
  1284. });
  1285. /**
  1286. * 框架内 try-catch
  1287. */
  1288. /**
  1289. * 开发者 try-catch
  1290. */
  1291. function tryCatch(fn) {
  1292. return function () {
  1293. try {
  1294. return fn.apply(fn, arguments);
  1295. } catch (e) {
  1296. // TODO
  1297. console.error(e);
  1298. }
  1299. };
  1300. }
  1301. function getApiCallbacks(params) {
  1302. var apiCallbacks = {};
  1303. for (var name in params) {
  1304. var param = params[name];
  1305. if (isFn(param)) {
  1306. apiCallbacks[name] = tryCatch(param);
  1307. delete params[name];
  1308. }
  1309. }
  1310. return apiCallbacks;
  1311. }
  1312. var cid;
  1313. var cidErrMsg;
  1314. var enabled;
  1315. function normalizePushMessage(message) {
  1316. try {
  1317. return JSON.parse(message);
  1318. } catch (e) {}
  1319. return message;
  1320. }
  1321. function invokePushCallback(args) {
  1322. if (args.type === 'enabled') {
  1323. enabled = true;
  1324. } else if (args.type === 'clientId') {
  1325. cid = args.cid;
  1326. cidErrMsg = args.errMsg;
  1327. invokeGetPushCidCallbacks(cid, args.errMsg);
  1328. } else if (args.type === 'pushMsg') {
  1329. var message = {
  1330. type: 'receive',
  1331. data: normalizePushMessage(args.message)
  1332. };
  1333. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1334. var callback = onPushMessageCallbacks[i];
  1335. callback(message);
  1336. // 该消息已被阻止
  1337. if (message.stopped) {
  1338. break;
  1339. }
  1340. }
  1341. } else if (args.type === 'click') {
  1342. onPushMessageCallbacks.forEach(function (callback) {
  1343. callback({
  1344. type: 'click',
  1345. data: normalizePushMessage(args.message)
  1346. });
  1347. });
  1348. }
  1349. }
  1350. var getPushCidCallbacks = [];
  1351. function invokeGetPushCidCallbacks(cid, errMsg) {
  1352. getPushCidCallbacks.forEach(function (callback) {
  1353. callback(cid, errMsg);
  1354. });
  1355. getPushCidCallbacks.length = 0;
  1356. }
  1357. function getPushClientId(args) {
  1358. if (!isPlainObject(args)) {
  1359. args = {};
  1360. }
  1361. var _getApiCallbacks = getApiCallbacks(args),
  1362. success = _getApiCallbacks.success,
  1363. fail = _getApiCallbacks.fail,
  1364. complete = _getApiCallbacks.complete;
  1365. var hasSuccess = isFn(success);
  1366. var hasFail = isFn(fail);
  1367. var hasComplete = isFn(complete);
  1368. Promise.resolve().then(function () {
  1369. if (typeof enabled === 'undefined') {
  1370. enabled = false;
  1371. cid = '';
  1372. cidErrMsg = 'uniPush is not enabled';
  1373. }
  1374. getPushCidCallbacks.push(function (cid, errMsg) {
  1375. var res;
  1376. if (cid) {
  1377. res = {
  1378. errMsg: 'getPushClientId:ok',
  1379. cid: cid
  1380. };
  1381. hasSuccess && success(res);
  1382. } else {
  1383. res = {
  1384. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1385. };
  1386. hasFail && fail(res);
  1387. }
  1388. hasComplete && complete(res);
  1389. });
  1390. if (typeof cid !== 'undefined') {
  1391. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1392. }
  1393. });
  1394. }
  1395. var onPushMessageCallbacks = [];
  1396. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1397. var onPushMessage = function onPushMessage(fn) {
  1398. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1399. onPushMessageCallbacks.push(fn);
  1400. }
  1401. };
  1402. var offPushMessage = function offPushMessage(fn) {
  1403. if (!fn) {
  1404. onPushMessageCallbacks.length = 0;
  1405. } else {
  1406. var index = onPushMessageCallbacks.indexOf(fn);
  1407. if (index > -1) {
  1408. onPushMessageCallbacks.splice(index, 1);
  1409. }
  1410. }
  1411. };
  1412. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1413. if (!baseInfo) {
  1414. baseInfo = wx.getSystemInfoSync();
  1415. }
  1416. var host = baseInfo ? baseInfo.host : null;
  1417. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1418. var api = /*#__PURE__*/Object.freeze({
  1419. __proto__: null,
  1420. shareVideoMessage: shareVideoMessage,
  1421. getPushClientId: getPushClientId,
  1422. onPushMessage: onPushMessage,
  1423. offPushMessage: offPushMessage,
  1424. invokePushCallback: invokePushCallback
  1425. });
  1426. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1427. function findVmByVueId(vm, vuePid) {
  1428. var $children = vm.$children;
  1429. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1430. for (var i = $children.length - 1; i >= 0; i--) {
  1431. var childVm = $children[i];
  1432. if (childVm.$scope._$vueId === vuePid) {
  1433. return childVm;
  1434. }
  1435. }
  1436. // 反向递归查找
  1437. var parentVm;
  1438. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1439. parentVm = findVmByVueId($children[_i], vuePid);
  1440. if (parentVm) {
  1441. return parentVm;
  1442. }
  1443. }
  1444. }
  1445. function initBehavior(options) {
  1446. return Behavior(options);
  1447. }
  1448. function isPage() {
  1449. return !!this.route;
  1450. }
  1451. function initRelation(detail) {
  1452. this.triggerEvent('__l', detail);
  1453. }
  1454. function selectAllComponents(mpInstance, selector, $refs) {
  1455. var components = mpInstance.selectAllComponents(selector) || [];
  1456. components.forEach(function (component) {
  1457. var ref = component.dataset.ref;
  1458. $refs[ref] = component.$vm || toSkip(component);
  1459. {
  1460. if (component.dataset.vueGeneric === 'scoped') {
  1461. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1462. selectAllComponents(scopedComponent, selector, $refs);
  1463. });
  1464. }
  1465. }
  1466. });
  1467. }
  1468. function syncRefs(refs, newRefs) {
  1469. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1470. var newKeys = Object.keys(newRefs);
  1471. newKeys.forEach(function (key) {
  1472. var oldValue = refs[key];
  1473. var newValue = newRefs[key];
  1474. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1475. return oldValue.includes(value);
  1476. })) {
  1477. return;
  1478. }
  1479. refs[key] = newValue;
  1480. oldKeys.delete(key);
  1481. });
  1482. oldKeys.forEach(function (key) {
  1483. delete refs[key];
  1484. });
  1485. return refs;
  1486. }
  1487. function initRefs(vm) {
  1488. var mpInstance = vm.$scope;
  1489. var refs = {};
  1490. Object.defineProperty(vm, '$refs', {
  1491. get: function get() {
  1492. var $refs = {};
  1493. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1494. // TODO 暂不考虑 for 中的 scoped
  1495. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1496. forComponents.forEach(function (component) {
  1497. var ref = component.dataset.ref;
  1498. if (!$refs[ref]) {
  1499. $refs[ref] = [];
  1500. }
  1501. $refs[ref].push(component.$vm || toSkip(component));
  1502. });
  1503. return syncRefs(refs, $refs);
  1504. }
  1505. });
  1506. }
  1507. function handleLink(event) {
  1508. var _ref3 = event.detail || event.value,
  1509. vuePid = _ref3.vuePid,
  1510. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1511. var parentVm;
  1512. if (vuePid) {
  1513. parentVm = findVmByVueId(this.$vm, vuePid);
  1514. }
  1515. if (!parentVm) {
  1516. parentVm = this.$vm;
  1517. }
  1518. vueOptions.parent = parentVm;
  1519. }
  1520. function markMPComponent(component) {
  1521. // 在 Vue 中标记为小程序组件
  1522. var IS_MP = '__v_isMPComponent';
  1523. Object.defineProperty(component, IS_MP, {
  1524. configurable: true,
  1525. enumerable: false,
  1526. value: true
  1527. });
  1528. return component;
  1529. }
  1530. function toSkip(obj) {
  1531. var OB = '__ob__';
  1532. var SKIP = '__v_skip';
  1533. if (isObject(obj) && Object.isExtensible(obj)) {
  1534. // 避免被 @vue/composition-api 观测
  1535. Object.defineProperty(obj, OB, {
  1536. configurable: true,
  1537. enumerable: false,
  1538. value: (0, _defineProperty2.default)({}, SKIP, true)
  1539. });
  1540. }
  1541. return obj;
  1542. }
  1543. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1544. function initWorkletMethods(mpMethods, vueMethods) {
  1545. if (vueMethods) {
  1546. Object.keys(vueMethods).forEach(function (name) {
  1547. var matches = name.match(WORKLET_RE);
  1548. if (matches) {
  1549. var workletName = matches[1];
  1550. mpMethods[name] = vueMethods[name];
  1551. mpMethods[workletName] = vueMethods[workletName];
  1552. }
  1553. });
  1554. }
  1555. }
  1556. var MPPage = Page;
  1557. var MPComponent = Component;
  1558. var customizeRE = /:/g;
  1559. var customize = cached(function (str) {
  1560. return camelize(str.replace(customizeRE, '-'));
  1561. });
  1562. function initTriggerEvent(mpInstance) {
  1563. var oldTriggerEvent = mpInstance.triggerEvent;
  1564. var newTriggerEvent = function newTriggerEvent(event) {
  1565. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1566. args[_key3 - 1] = arguments[_key3];
  1567. }
  1568. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1569. if (this.$vm || this.dataset && this.dataset.comType) {
  1570. event = customize(event);
  1571. } else {
  1572. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1573. var newEvent = customize(event);
  1574. if (newEvent !== event) {
  1575. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1576. }
  1577. }
  1578. return oldTriggerEvent.apply(this, [event].concat(args));
  1579. };
  1580. try {
  1581. // 京东小程序 triggerEvent 为只读
  1582. mpInstance.triggerEvent = newTriggerEvent;
  1583. } catch (error) {
  1584. mpInstance._triggerEvent = newTriggerEvent;
  1585. }
  1586. }
  1587. function initHook(name, options, isComponent) {
  1588. var oldHook = options[name];
  1589. options[name] = function () {
  1590. markMPComponent(this);
  1591. initTriggerEvent(this);
  1592. if (oldHook) {
  1593. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1594. args[_key4] = arguments[_key4];
  1595. }
  1596. return oldHook.apply(this, args);
  1597. }
  1598. };
  1599. }
  1600. if (!MPPage.__$wrappered) {
  1601. MPPage.__$wrappered = true;
  1602. Page = function Page() {
  1603. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1604. initHook('onLoad', options);
  1605. return MPPage(options);
  1606. };
  1607. Page.after = MPPage.after;
  1608. Component = function Component() {
  1609. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1610. initHook('created', options);
  1611. return MPComponent(options);
  1612. };
  1613. }
  1614. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1615. function initMocks(vm, mocks) {
  1616. var mpInstance = vm.$mp[vm.mpType];
  1617. mocks.forEach(function (mock) {
  1618. if (hasOwn(mpInstance, mock)) {
  1619. vm[mock] = mpInstance[mock];
  1620. }
  1621. });
  1622. }
  1623. function hasHook(hook, vueOptions) {
  1624. if (!vueOptions) {
  1625. return true;
  1626. }
  1627. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1628. return true;
  1629. }
  1630. vueOptions = vueOptions.default || vueOptions;
  1631. if (isFn(vueOptions)) {
  1632. if (isFn(vueOptions.extendOptions[hook])) {
  1633. return true;
  1634. }
  1635. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1636. return true;
  1637. }
  1638. return false;
  1639. }
  1640. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1641. return true;
  1642. }
  1643. var mixins = vueOptions.mixins;
  1644. if (Array.isArray(mixins)) {
  1645. return !!mixins.find(function (mixin) {
  1646. return hasHook(hook, mixin);
  1647. });
  1648. }
  1649. }
  1650. function initHooks(mpOptions, hooks, vueOptions) {
  1651. hooks.forEach(function (hook) {
  1652. if (hasHook(hook, vueOptions)) {
  1653. mpOptions[hook] = function (args) {
  1654. return this.$vm && this.$vm.__call_hook(hook, args);
  1655. };
  1656. }
  1657. });
  1658. }
  1659. function initUnknownHooks(mpOptions, vueOptions) {
  1660. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1661. findHooks(vueOptions).forEach(function (hook) {
  1662. return initHook$1(mpOptions, hook, excludes);
  1663. });
  1664. }
  1665. function findHooks(vueOptions) {
  1666. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1667. if (vueOptions) {
  1668. Object.keys(vueOptions).forEach(function (name) {
  1669. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1670. hooks.push(name);
  1671. }
  1672. });
  1673. }
  1674. return hooks;
  1675. }
  1676. function initHook$1(mpOptions, hook, excludes) {
  1677. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1678. mpOptions[hook] = function (args) {
  1679. return this.$vm && this.$vm.__call_hook(hook, args);
  1680. };
  1681. }
  1682. }
  1683. function initVueComponent(Vue, vueOptions) {
  1684. vueOptions = vueOptions.default || vueOptions;
  1685. var VueComponent;
  1686. if (isFn(vueOptions)) {
  1687. VueComponent = vueOptions;
  1688. } else {
  1689. VueComponent = Vue.extend(vueOptions);
  1690. }
  1691. vueOptions = VueComponent.options;
  1692. return [VueComponent, vueOptions];
  1693. }
  1694. function initSlots(vm, vueSlots) {
  1695. if (Array.isArray(vueSlots) && vueSlots.length) {
  1696. var $slots = Object.create(null);
  1697. vueSlots.forEach(function (slotName) {
  1698. $slots[slotName] = true;
  1699. });
  1700. vm.$scopedSlots = vm.$slots = $slots;
  1701. }
  1702. }
  1703. function initVueIds(vueIds, mpInstance) {
  1704. vueIds = (vueIds || '').split(',');
  1705. var len = vueIds.length;
  1706. if (len === 1) {
  1707. mpInstance._$vueId = vueIds[0];
  1708. } else if (len === 2) {
  1709. mpInstance._$vueId = vueIds[0];
  1710. mpInstance._$vuePid = vueIds[1];
  1711. }
  1712. }
  1713. function initData(vueOptions, context) {
  1714. var data = vueOptions.data || {};
  1715. var methods = vueOptions.methods || {};
  1716. if (typeof data === 'function') {
  1717. try {
  1718. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1719. } catch (e) {
  1720. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1721. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1722. }
  1723. }
  1724. } else {
  1725. try {
  1726. // 对 data 格式化
  1727. data = JSON.parse(JSON.stringify(data));
  1728. } catch (e) {}
  1729. }
  1730. if (!isPlainObject(data)) {
  1731. data = {};
  1732. }
  1733. Object.keys(methods).forEach(function (methodName) {
  1734. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1735. data[methodName] = methods[methodName];
  1736. }
  1737. });
  1738. return data;
  1739. }
  1740. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1741. function createObserver(name) {
  1742. return function observer(newVal, oldVal) {
  1743. if (this.$vm) {
  1744. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1745. }
  1746. };
  1747. }
  1748. function initBehaviors(vueOptions, initBehavior) {
  1749. var vueBehaviors = vueOptions.behaviors;
  1750. var vueExtends = vueOptions.extends;
  1751. var vueMixins = vueOptions.mixins;
  1752. var vueProps = vueOptions.props;
  1753. if (!vueProps) {
  1754. vueOptions.props = vueProps = [];
  1755. }
  1756. var behaviors = [];
  1757. if (Array.isArray(vueBehaviors)) {
  1758. vueBehaviors.forEach(function (behavior) {
  1759. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1760. if (behavior === 'uni://form-field') {
  1761. if (Array.isArray(vueProps)) {
  1762. vueProps.push('name');
  1763. vueProps.push('value');
  1764. } else {
  1765. vueProps.name = {
  1766. type: String,
  1767. default: ''
  1768. };
  1769. vueProps.value = {
  1770. type: [String, Number, Boolean, Array, Object, Date],
  1771. default: ''
  1772. };
  1773. }
  1774. }
  1775. });
  1776. }
  1777. if (isPlainObject(vueExtends) && vueExtends.props) {
  1778. behaviors.push(initBehavior({
  1779. properties: initProperties(vueExtends.props, true)
  1780. }));
  1781. }
  1782. if (Array.isArray(vueMixins)) {
  1783. vueMixins.forEach(function (vueMixin) {
  1784. if (isPlainObject(vueMixin) && vueMixin.props) {
  1785. behaviors.push(initBehavior({
  1786. properties: initProperties(vueMixin.props, true)
  1787. }));
  1788. }
  1789. });
  1790. }
  1791. return behaviors;
  1792. }
  1793. function parsePropType(key, type, defaultValue, file) {
  1794. // [String]=>String
  1795. if (Array.isArray(type) && type.length === 1) {
  1796. return type[0];
  1797. }
  1798. return type;
  1799. }
  1800. function initProperties(props) {
  1801. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1802. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1803. var options = arguments.length > 3 ? arguments[3] : undefined;
  1804. var properties = {};
  1805. if (!isBehavior) {
  1806. properties.vueId = {
  1807. type: String,
  1808. value: ''
  1809. };
  1810. {
  1811. if (options.virtualHost) {
  1812. properties.virtualHostStyle = {
  1813. type: null,
  1814. value: ''
  1815. };
  1816. properties.virtualHostClass = {
  1817. type: null,
  1818. value: ''
  1819. };
  1820. }
  1821. }
  1822. // scopedSlotsCompiler auto
  1823. properties.scopedSlotsCompiler = {
  1824. type: String,
  1825. value: ''
  1826. };
  1827. properties.vueSlots = {
  1828. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1829. type: null,
  1830. value: [],
  1831. observer: function observer(newVal, oldVal) {
  1832. var $slots = Object.create(null);
  1833. newVal.forEach(function (slotName) {
  1834. $slots[slotName] = true;
  1835. });
  1836. this.setData({
  1837. $slots: $slots
  1838. });
  1839. }
  1840. };
  1841. }
  1842. if (Array.isArray(props)) {
  1843. // ['title']
  1844. props.forEach(function (key) {
  1845. properties[key] = {
  1846. type: null,
  1847. observer: createObserver(key)
  1848. };
  1849. });
  1850. } else if (isPlainObject(props)) {
  1851. // {title:{type:String,default:''},content:String}
  1852. Object.keys(props).forEach(function (key) {
  1853. var opts = props[key];
  1854. if (isPlainObject(opts)) {
  1855. // title:{type:String,default:''}
  1856. var value = opts.default;
  1857. if (isFn(value)) {
  1858. value = value();
  1859. }
  1860. opts.type = parsePropType(key, opts.type);
  1861. properties[key] = {
  1862. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1863. value: value,
  1864. observer: createObserver(key)
  1865. };
  1866. } else {
  1867. // content:String
  1868. var type = parsePropType(key, opts);
  1869. properties[key] = {
  1870. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1871. observer: createObserver(key)
  1872. };
  1873. }
  1874. });
  1875. }
  1876. return properties;
  1877. }
  1878. function wrapper$1(event) {
  1879. // TODO 又得兼容 mpvue 的 mp 对象
  1880. try {
  1881. event.mp = JSON.parse(JSON.stringify(event));
  1882. } catch (e) {}
  1883. event.stopPropagation = noop;
  1884. event.preventDefault = noop;
  1885. event.target = event.target || {};
  1886. if (!hasOwn(event, 'detail')) {
  1887. event.detail = {};
  1888. }
  1889. if (hasOwn(event, 'markerId')) {
  1890. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1891. event.detail.markerId = event.markerId;
  1892. }
  1893. if (isPlainObject(event.detail)) {
  1894. event.target = Object.assign({}, event.target, event.detail);
  1895. }
  1896. return event;
  1897. }
  1898. function getExtraValue(vm, dataPathsArray) {
  1899. var context = vm;
  1900. dataPathsArray.forEach(function (dataPathArray) {
  1901. var dataPath = dataPathArray[0];
  1902. var value = dataPathArray[2];
  1903. if (dataPath || typeof value !== 'undefined') {
  1904. // ['','',index,'disable']
  1905. var propPath = dataPathArray[1];
  1906. var valuePath = dataPathArray[3];
  1907. var vFor;
  1908. if (Number.isInteger(dataPath)) {
  1909. vFor = dataPath;
  1910. } else if (!dataPath) {
  1911. vFor = context;
  1912. } else if (typeof dataPath === 'string' && dataPath) {
  1913. if (dataPath.indexOf('#s#') === 0) {
  1914. vFor = dataPath.substr(3);
  1915. } else {
  1916. vFor = vm.__get_value(dataPath, context);
  1917. }
  1918. }
  1919. if (Number.isInteger(vFor)) {
  1920. context = value;
  1921. } else if (!propPath) {
  1922. context = vFor[value];
  1923. } else {
  1924. if (Array.isArray(vFor)) {
  1925. context = vFor.find(function (vForItem) {
  1926. return vm.__get_value(propPath, vForItem) === value;
  1927. });
  1928. } else if (isPlainObject(vFor)) {
  1929. context = Object.keys(vFor).find(function (vForKey) {
  1930. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1931. });
  1932. } else {
  1933. console.error('v-for 暂不支持循环数据:', vFor);
  1934. }
  1935. }
  1936. if (valuePath) {
  1937. context = vm.__get_value(valuePath, context);
  1938. }
  1939. }
  1940. });
  1941. return context;
  1942. }
  1943. function processEventExtra(vm, extra, event, __args__) {
  1944. var extraObj = {};
  1945. if (Array.isArray(extra) && extra.length) {
  1946. /**
  1947. *[
  1948. * ['data.items', 'data.id', item.data.id],
  1949. * ['metas', 'id', meta.id]
  1950. *],
  1951. *[
  1952. * ['data.items', 'data.id', item.data.id],
  1953. * ['metas', 'id', meta.id]
  1954. *],
  1955. *'test'
  1956. */
  1957. extra.forEach(function (dataPath, index) {
  1958. if (typeof dataPath === 'string') {
  1959. if (!dataPath) {
  1960. // model,prop.sync
  1961. extraObj['$' + index] = vm;
  1962. } else {
  1963. if (dataPath === '$event') {
  1964. // $event
  1965. extraObj['$' + index] = event;
  1966. } else if (dataPath === 'arguments') {
  1967. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1968. } else if (dataPath.indexOf('$event.') === 0) {
  1969. // $event.target.value
  1970. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1971. } else {
  1972. extraObj['$' + index] = vm.__get_value(dataPath);
  1973. }
  1974. }
  1975. } else {
  1976. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1977. }
  1978. });
  1979. }
  1980. return extraObj;
  1981. }
  1982. function getObjByArray(arr) {
  1983. var obj = {};
  1984. for (var i = 1; i < arr.length; i++) {
  1985. var element = arr[i];
  1986. obj[element[0]] = element[1];
  1987. }
  1988. return obj;
  1989. }
  1990. function processEventArgs(vm, event) {
  1991. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1992. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1993. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1994. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1995. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1996. // fixed 用户直接触发 mpInstance.triggerEvent
  1997. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1998. if (isCustom) {
  1999. // 自定义事件
  2000. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  2001. if (!args.length) {
  2002. // 无参数,直接传入 event 或 detail 数组
  2003. if (isCustomMPEvent) {
  2004. return [event];
  2005. }
  2006. return __args__;
  2007. }
  2008. }
  2009. var extraObj = processEventExtra(vm, extra, event, __args__);
  2010. var ret = [];
  2011. args.forEach(function (arg) {
  2012. if (arg === '$event') {
  2013. if (methodName === '__set_model' && !isCustom) {
  2014. // input v-model value
  2015. ret.push(event.target.value);
  2016. } else {
  2017. if (isCustom && !isCustomMPEvent) {
  2018. ret.push(__args__[0]);
  2019. } else {
  2020. // wxcomponent 组件或内置组件
  2021. ret.push(event);
  2022. }
  2023. }
  2024. } else {
  2025. if (Array.isArray(arg) && arg[0] === 'o') {
  2026. ret.push(getObjByArray(arg));
  2027. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  2028. ret.push(extraObj[arg]);
  2029. } else {
  2030. ret.push(arg);
  2031. }
  2032. }
  2033. });
  2034. return ret;
  2035. }
  2036. var ONCE = '~';
  2037. var CUSTOM = '^';
  2038. function isMatchEventType(eventType, optType) {
  2039. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  2040. }
  2041. function getContextVm(vm) {
  2042. var $parent = vm.$parent;
  2043. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  2044. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  2045. $parent = $parent.$parent;
  2046. }
  2047. return $parent && $parent.$parent;
  2048. }
  2049. function handleEvent(event) {
  2050. var _this2 = this;
  2051. event = wrapper$1(event);
  2052. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  2053. var dataset = (event.currentTarget || event.target).dataset;
  2054. if (!dataset) {
  2055. return console.warn('事件信息不存在');
  2056. }
  2057. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  2058. if (!eventOpts) {
  2059. return console.warn('事件信息不存在');
  2060. }
  2061. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  2062. var eventType = event.type;
  2063. var ret = [];
  2064. eventOpts.forEach(function (eventOpt) {
  2065. var type = eventOpt[0];
  2066. var eventsArray = eventOpt[1];
  2067. var isCustom = type.charAt(0) === CUSTOM;
  2068. type = isCustom ? type.slice(1) : type;
  2069. var isOnce = type.charAt(0) === ONCE;
  2070. type = isOnce ? type.slice(1) : type;
  2071. if (eventsArray && isMatchEventType(eventType, type)) {
  2072. eventsArray.forEach(function (eventArray) {
  2073. var methodName = eventArray[0];
  2074. if (methodName) {
  2075. var handlerCtx = _this2.$vm;
  2076. if (handlerCtx.$options.generic) {
  2077. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  2078. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  2079. }
  2080. if (methodName === '$emit') {
  2081. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  2082. return;
  2083. }
  2084. var handler = handlerCtx[methodName];
  2085. if (!isFn(handler)) {
  2086. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  2087. var path = _this2.route || _this2.is;
  2088. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  2089. }
  2090. if (isOnce) {
  2091. if (handler.once) {
  2092. return;
  2093. }
  2094. handler.once = true;
  2095. }
  2096. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  2097. params = Array.isArray(params) ? params : [];
  2098. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  2099. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  2100. // eslint-disable-next-line no-sparse-arrays
  2101. params = params.concat([,,,,,,,,,, event]);
  2102. }
  2103. ret.push(handler.apply(handlerCtx, params));
  2104. }
  2105. });
  2106. }
  2107. });
  2108. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  2109. return ret[0];
  2110. }
  2111. }
  2112. var eventChannels = {};
  2113. function getEventChannel(id) {
  2114. var eventChannel = eventChannels[id];
  2115. delete eventChannels[id];
  2116. return eventChannel;
  2117. }
  2118. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  2119. function initEventChannel() {
  2120. _vue.default.prototype.getOpenerEventChannel = function () {
  2121. // 微信小程序使用自身getOpenerEventChannel
  2122. {
  2123. return this.$scope.getOpenerEventChannel();
  2124. }
  2125. };
  2126. var callHook = _vue.default.prototype.__call_hook;
  2127. _vue.default.prototype.__call_hook = function (hook, args) {
  2128. if (hook === 'onLoad' && args && args.__id__) {
  2129. this.__eventChannel__ = getEventChannel(args.__id__);
  2130. delete args.__id__;
  2131. }
  2132. return callHook.call(this, hook, args);
  2133. };
  2134. }
  2135. function initScopedSlotsParams() {
  2136. var center = {};
  2137. var parents = {};
  2138. function currentId(fn) {
  2139. var vueIds = this.$options.propsData.vueId;
  2140. if (vueIds) {
  2141. var vueId = vueIds.split(',')[0];
  2142. fn(vueId);
  2143. }
  2144. }
  2145. _vue.default.prototype.$hasSSP = function (vueId) {
  2146. var slot = center[vueId];
  2147. if (!slot) {
  2148. parents[vueId] = this;
  2149. this.$on('hook:destroyed', function () {
  2150. delete parents[vueId];
  2151. });
  2152. }
  2153. return slot;
  2154. };
  2155. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  2156. var slot = center[vueId];
  2157. if (slot) {
  2158. var params = slot[name] || [];
  2159. if (needAll) {
  2160. return params;
  2161. }
  2162. return params[0];
  2163. }
  2164. };
  2165. _vue.default.prototype.$setSSP = function (name, value) {
  2166. var index = 0;
  2167. currentId.call(this, function (vueId) {
  2168. var slot = center[vueId];
  2169. var params = slot[name] = slot[name] || [];
  2170. params.push(value);
  2171. index = params.length - 1;
  2172. });
  2173. return index;
  2174. };
  2175. _vue.default.prototype.$initSSP = function () {
  2176. currentId.call(this, function (vueId) {
  2177. center[vueId] = {};
  2178. });
  2179. };
  2180. _vue.default.prototype.$callSSP = function () {
  2181. currentId.call(this, function (vueId) {
  2182. if (parents[vueId]) {
  2183. parents[vueId].$forceUpdate();
  2184. }
  2185. });
  2186. };
  2187. _vue.default.mixin({
  2188. destroyed: function destroyed() {
  2189. var propsData = this.$options.propsData;
  2190. var vueId = propsData && propsData.vueId;
  2191. if (vueId) {
  2192. delete center[vueId];
  2193. delete parents[vueId];
  2194. }
  2195. }
  2196. });
  2197. }
  2198. function parseBaseApp(vm, _ref4) {
  2199. var mocks = _ref4.mocks,
  2200. initRefs = _ref4.initRefs;
  2201. initEventChannel();
  2202. {
  2203. initScopedSlotsParams();
  2204. }
  2205. if (vm.$options.store) {
  2206. _vue.default.prototype.$store = vm.$options.store;
  2207. }
  2208. uniIdMixin(_vue.default);
  2209. _vue.default.prototype.mpHost = "mp-weixin";
  2210. _vue.default.mixin({
  2211. beforeCreate: function beforeCreate() {
  2212. if (!this.$options.mpType) {
  2213. return;
  2214. }
  2215. this.mpType = this.$options.mpType;
  2216. this.$mp = (0, _defineProperty2.default)({
  2217. data: {}
  2218. }, this.mpType, this.$options.mpInstance);
  2219. this.$scope = this.$options.mpInstance;
  2220. delete this.$options.mpType;
  2221. delete this.$options.mpInstance;
  2222. if (this.mpType === 'page' && typeof getApp === 'function') {
  2223. // hack vue-i18n
  2224. var app = getApp();
  2225. if (app.$vm && app.$vm.$i18n) {
  2226. this._i18n = app.$vm.$i18n;
  2227. }
  2228. }
  2229. if (this.mpType !== 'app') {
  2230. initRefs(this);
  2231. initMocks(this, mocks);
  2232. }
  2233. }
  2234. });
  2235. var appOptions = {
  2236. onLaunch: function onLaunch(args) {
  2237. if (this.$vm) {
  2238. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2239. return;
  2240. }
  2241. {
  2242. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2243. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2244. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2245. }
  2246. }
  2247. this.$vm = vm;
  2248. this.$vm.$mp = {
  2249. app: this
  2250. };
  2251. this.$vm.$scope = this;
  2252. // vm 上也挂载 globalData
  2253. this.$vm.globalData = this.globalData;
  2254. this.$vm._isMounted = true;
  2255. this.$vm.__call_hook('mounted', args);
  2256. this.$vm.__call_hook('onLaunch', args);
  2257. }
  2258. };
  2259. // 兼容旧版本 globalData
  2260. appOptions.globalData = vm.$options.globalData || {};
  2261. // 将 methods 中的方法挂在 getApp() 中
  2262. var methods = vm.$options.methods;
  2263. if (methods) {
  2264. Object.keys(methods).forEach(function (name) {
  2265. appOptions[name] = methods[name];
  2266. });
  2267. }
  2268. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2269. initHooks(appOptions, hooks);
  2270. initUnknownHooks(appOptions, vm.$options);
  2271. return appOptions;
  2272. }
  2273. function parseApp(vm) {
  2274. return parseBaseApp(vm, {
  2275. mocks: mocks,
  2276. initRefs: initRefs
  2277. });
  2278. }
  2279. function createApp(vm) {
  2280. App(parseApp(vm));
  2281. return vm;
  2282. }
  2283. var encodeReserveRE = /[!'()*]/g;
  2284. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2285. return '%' + c.charCodeAt(0).toString(16);
  2286. };
  2287. var commaRE = /%2C/g;
  2288. // fixed encodeURIComponent which is more conformant to RFC3986:
  2289. // - escapes [!'()*]
  2290. // - preserve commas
  2291. var encode = function encode(str) {
  2292. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2293. };
  2294. function stringifyQuery(obj) {
  2295. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2296. var res = obj ? Object.keys(obj).map(function (key) {
  2297. var val = obj[key];
  2298. if (val === undefined) {
  2299. return '';
  2300. }
  2301. if (val === null) {
  2302. return encodeStr(key);
  2303. }
  2304. if (Array.isArray(val)) {
  2305. var result = [];
  2306. val.forEach(function (val2) {
  2307. if (val2 === undefined) {
  2308. return;
  2309. }
  2310. if (val2 === null) {
  2311. result.push(encodeStr(key));
  2312. } else {
  2313. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2314. }
  2315. });
  2316. return result.join('&');
  2317. }
  2318. return encodeStr(key) + '=' + encodeStr(val);
  2319. }).filter(function (x) {
  2320. return x.length > 0;
  2321. }).join('&') : null;
  2322. return res ? "?".concat(res) : '';
  2323. }
  2324. function parseBaseComponent(vueComponentOptions) {
  2325. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2326. isPage = _ref5.isPage,
  2327. initRelation = _ref5.initRelation;
  2328. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2329. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2330. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2331. VueComponent = _initVueComponent2[0],
  2332. vueOptions = _initVueComponent2[1];
  2333. var options = _objectSpread({
  2334. multipleSlots: true,
  2335. // styleIsolation: 'apply-shared',
  2336. addGlobalClass: true
  2337. }, vueOptions.options || {});
  2338. {
  2339. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2340. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2341. Object.assign(options, vueOptions['mp-weixin'].options);
  2342. }
  2343. }
  2344. var componentOptions = {
  2345. options: options,
  2346. data: initData(vueOptions, _vue.default.prototype),
  2347. behaviors: initBehaviors(vueOptions, initBehavior),
  2348. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2349. lifetimes: {
  2350. attached: function attached() {
  2351. var properties = this.properties;
  2352. var options = {
  2353. mpType: isPage.call(this) ? 'page' : 'component',
  2354. mpInstance: this,
  2355. propsData: properties
  2356. };
  2357. initVueIds(properties.vueId, this);
  2358. // 处理父子关系
  2359. initRelation.call(this, {
  2360. vuePid: this._$vuePid,
  2361. vueOptions: options
  2362. });
  2363. // 初始化 vue 实例
  2364. this.$vm = new VueComponent(options);
  2365. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2366. initSlots(this.$vm, properties.vueSlots);
  2367. // 触发首次 setData
  2368. this.$vm.$mount();
  2369. },
  2370. ready: function ready() {
  2371. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2372. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2373. if (this.$vm) {
  2374. this.$vm._isMounted = true;
  2375. this.$vm.__call_hook('mounted');
  2376. this.$vm.__call_hook('onReady');
  2377. }
  2378. },
  2379. detached: function detached() {
  2380. this.$vm && this.$vm.$destroy();
  2381. }
  2382. },
  2383. pageLifetimes: {
  2384. show: function show(args) {
  2385. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2386. },
  2387. hide: function hide() {
  2388. this.$vm && this.$vm.__call_hook('onPageHide');
  2389. },
  2390. resize: function resize(size) {
  2391. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2392. }
  2393. },
  2394. methods: {
  2395. __l: handleLink,
  2396. __e: handleEvent
  2397. }
  2398. };
  2399. // externalClasses
  2400. if (vueOptions.externalClasses) {
  2401. componentOptions.externalClasses = vueOptions.externalClasses;
  2402. }
  2403. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2404. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2405. componentOptions.methods[callMethod] = function (args) {
  2406. return this.$vm[callMethod](args);
  2407. };
  2408. });
  2409. }
  2410. if (needVueOptions) {
  2411. return [componentOptions, vueOptions, VueComponent];
  2412. }
  2413. if (isPage) {
  2414. return componentOptions;
  2415. }
  2416. return [componentOptions, VueComponent];
  2417. }
  2418. function parseComponent(vueComponentOptions, needVueOptions) {
  2419. return parseBaseComponent(vueComponentOptions, {
  2420. isPage: isPage,
  2421. initRelation: initRelation
  2422. }, needVueOptions);
  2423. }
  2424. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2425. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2426. function parseBasePage(vuePageOptions) {
  2427. var _parseComponent = parseComponent(vuePageOptions, true),
  2428. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2429. pageOptions = _parseComponent2[0],
  2430. vueOptions = _parseComponent2[1];
  2431. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2432. pageOptions.methods.onLoad = function (query) {
  2433. this.options = query;
  2434. var copyQuery = Object.assign({}, query);
  2435. delete copyQuery.__id__;
  2436. this.$page = {
  2437. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2438. };
  2439. this.$vm.$mp.query = query; // 兼容 mpvue
  2440. this.$vm.__call_hook('onLoad', query);
  2441. };
  2442. {
  2443. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2444. }
  2445. {
  2446. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2447. }
  2448. return pageOptions;
  2449. }
  2450. function parsePage(vuePageOptions) {
  2451. return parseBasePage(vuePageOptions);
  2452. }
  2453. function createPage(vuePageOptions) {
  2454. {
  2455. return Component(parsePage(vuePageOptions));
  2456. }
  2457. }
  2458. function createComponent(vueOptions) {
  2459. {
  2460. return Component(parseComponent(vueOptions));
  2461. }
  2462. }
  2463. function createSubpackageApp(vm) {
  2464. var appOptions = parseApp(vm);
  2465. var app = getApp({
  2466. allowDefault: true
  2467. });
  2468. vm.$scope = app;
  2469. var globalData = app.globalData;
  2470. if (globalData) {
  2471. Object.keys(appOptions.globalData).forEach(function (name) {
  2472. if (!hasOwn(globalData, name)) {
  2473. globalData[name] = appOptions.globalData[name];
  2474. }
  2475. });
  2476. }
  2477. Object.keys(appOptions).forEach(function (name) {
  2478. if (!hasOwn(app, name)) {
  2479. app[name] = appOptions[name];
  2480. }
  2481. });
  2482. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2483. wx.onAppShow(function () {
  2484. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2485. args[_key5] = arguments[_key5];
  2486. }
  2487. vm.__call_hook('onShow', args);
  2488. });
  2489. }
  2490. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2491. wx.onAppHide(function () {
  2492. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2493. args[_key6] = arguments[_key6];
  2494. }
  2495. vm.__call_hook('onHide', args);
  2496. });
  2497. }
  2498. if (isFn(appOptions.onLaunch)) {
  2499. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2500. vm.__call_hook('onLaunch', args);
  2501. }
  2502. return vm;
  2503. }
  2504. function createPlugin(vm) {
  2505. var appOptions = parseApp(vm);
  2506. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2507. wx.onAppShow(function () {
  2508. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2509. args[_key7] = arguments[_key7];
  2510. }
  2511. vm.__call_hook('onShow', args);
  2512. });
  2513. }
  2514. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2515. wx.onAppHide(function () {
  2516. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2517. args[_key8] = arguments[_key8];
  2518. }
  2519. vm.__call_hook('onHide', args);
  2520. });
  2521. }
  2522. if (isFn(appOptions.onLaunch)) {
  2523. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2524. vm.__call_hook('onLaunch', args);
  2525. }
  2526. return vm;
  2527. }
  2528. todos.forEach(function (todoApi) {
  2529. protocols[todoApi] = false;
  2530. });
  2531. canIUses.forEach(function (canIUseApi) {
  2532. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2533. if (!wx.canIUse(apiName)) {
  2534. protocols[canIUseApi] = false;
  2535. }
  2536. });
  2537. var uni = {};
  2538. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2539. uni = new Proxy({}, {
  2540. get: function get(target, name) {
  2541. if (hasOwn(target, name)) {
  2542. return target[name];
  2543. }
  2544. if (baseApi[name]) {
  2545. return baseApi[name];
  2546. }
  2547. if (api[name]) {
  2548. return promisify(name, api[name]);
  2549. }
  2550. {
  2551. if (extraApi[name]) {
  2552. return promisify(name, extraApi[name]);
  2553. }
  2554. if (todoApis[name]) {
  2555. return promisify(name, todoApis[name]);
  2556. }
  2557. }
  2558. if (eventApi[name]) {
  2559. return eventApi[name];
  2560. }
  2561. return promisify(name, wrapper(name, wx[name]));
  2562. },
  2563. set: function set(target, name, value) {
  2564. target[name] = value;
  2565. return true;
  2566. }
  2567. });
  2568. } else {
  2569. Object.keys(baseApi).forEach(function (name) {
  2570. uni[name] = baseApi[name];
  2571. });
  2572. {
  2573. Object.keys(todoApis).forEach(function (name) {
  2574. uni[name] = promisify(name, todoApis[name]);
  2575. });
  2576. Object.keys(extraApi).forEach(function (name) {
  2577. uni[name] = promisify(name, extraApi[name]);
  2578. });
  2579. }
  2580. Object.keys(eventApi).forEach(function (name) {
  2581. uni[name] = eventApi[name];
  2582. });
  2583. Object.keys(api).forEach(function (name) {
  2584. uni[name] = promisify(name, api[name]);
  2585. });
  2586. Object.keys(wx).forEach(function (name) {
  2587. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2588. uni[name] = promisify(name, wrapper(name, wx[name]));
  2589. }
  2590. });
  2591. }
  2592. wx.createApp = createApp;
  2593. wx.createPage = createPage;
  2594. wx.createComponent = createComponent;
  2595. wx.createSubpackageApp = createSubpackageApp;
  2596. wx.createPlugin = createPlugin;
  2597. var uni$1 = uni;
  2598. var _default = uni$1;
  2599. exports.default = _default;
  2600. /* 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)))
  2601. /***/ }),
  2602. /***/ 20:
  2603. /*!****************************************************************!*\
  2604. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2605. \****************************************************************/
  2606. /*! no static exports found */
  2607. /***/ (function(module, exports) {
  2608. function _iterableToArray(iter) {
  2609. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2610. }
  2611. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2612. /***/ }),
  2613. /***/ 21:
  2614. /*!******************************************************************!*\
  2615. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2616. \******************************************************************/
  2617. /*! no static exports found */
  2618. /***/ (function(module, exports) {
  2619. function _nonIterableSpread() {
  2620. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2621. }
  2622. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2623. /***/ }),
  2624. /***/ 22:
  2625. /*!*************************************************************!*\
  2626. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2627. \*************************************************************/
  2628. /*! no static exports found */
  2629. /***/ (function(module, exports, __webpack_require__) {
  2630. "use strict";
  2631. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2632. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2633. Object.defineProperty(exports, "__esModule", {
  2634. value: true
  2635. });
  2636. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2637. exports.compileI18nJsonStr = compileI18nJsonStr;
  2638. exports.hasI18nJson = hasI18nJson;
  2639. exports.initVueI18n = initVueI18n;
  2640. exports.isI18nStr = isI18nStr;
  2641. exports.isString = void 0;
  2642. exports.normalizeLocale = normalizeLocale;
  2643. exports.parseI18nJson = parseI18nJson;
  2644. exports.resolveLocale = resolveLocale;
  2645. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2646. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2647. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2648. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2649. var isObject = function isObject(val) {
  2650. return val !== null && (0, _typeof2.default)(val) === 'object';
  2651. };
  2652. var defaultDelimiters = ['{', '}'];
  2653. var BaseFormatter = /*#__PURE__*/function () {
  2654. function BaseFormatter() {
  2655. (0, _classCallCheck2.default)(this, BaseFormatter);
  2656. this._caches = Object.create(null);
  2657. }
  2658. (0, _createClass2.default)(BaseFormatter, [{
  2659. key: "interpolate",
  2660. value: function interpolate(message, values) {
  2661. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2662. if (!values) {
  2663. return [message];
  2664. }
  2665. var tokens = this._caches[message];
  2666. if (!tokens) {
  2667. tokens = parse(message, delimiters);
  2668. this._caches[message] = tokens;
  2669. }
  2670. return compile(tokens, values);
  2671. }
  2672. }]);
  2673. return BaseFormatter;
  2674. }();
  2675. exports.Formatter = BaseFormatter;
  2676. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2677. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2678. function parse(format, _ref) {
  2679. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2680. startDelimiter = _ref2[0],
  2681. endDelimiter = _ref2[1];
  2682. var tokens = [];
  2683. var position = 0;
  2684. var text = '';
  2685. while (position < format.length) {
  2686. var char = format[position++];
  2687. if (char === startDelimiter) {
  2688. if (text) {
  2689. tokens.push({
  2690. type: 'text',
  2691. value: text
  2692. });
  2693. }
  2694. text = '';
  2695. var sub = '';
  2696. char = format[position++];
  2697. while (char !== undefined && char !== endDelimiter) {
  2698. sub += char;
  2699. char = format[position++];
  2700. }
  2701. var isClosed = char === endDelimiter;
  2702. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2703. tokens.push({
  2704. value: sub,
  2705. type: type
  2706. });
  2707. }
  2708. // else if (char === '%') {
  2709. // // when found rails i18n syntax, skip text capture
  2710. // if (format[position] !== '{') {
  2711. // text += char
  2712. // }
  2713. // }
  2714. else {
  2715. text += char;
  2716. }
  2717. }
  2718. text && tokens.push({
  2719. type: 'text',
  2720. value: text
  2721. });
  2722. return tokens;
  2723. }
  2724. function compile(tokens, values) {
  2725. var compiled = [];
  2726. var index = 0;
  2727. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2728. if (mode === 'unknown') {
  2729. return compiled;
  2730. }
  2731. while (index < tokens.length) {
  2732. var token = tokens[index];
  2733. switch (token.type) {
  2734. case 'text':
  2735. compiled.push(token.value);
  2736. break;
  2737. case 'list':
  2738. compiled.push(values[parseInt(token.value, 10)]);
  2739. break;
  2740. case 'named':
  2741. if (mode === 'named') {
  2742. compiled.push(values[token.value]);
  2743. } else {
  2744. if (true) {
  2745. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2746. }
  2747. }
  2748. break;
  2749. case 'unknown':
  2750. if (true) {
  2751. console.warn("Detect 'unknown' type of token!");
  2752. }
  2753. break;
  2754. }
  2755. index++;
  2756. }
  2757. return compiled;
  2758. }
  2759. var LOCALE_ZH_HANS = 'zh-Hans';
  2760. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2761. var LOCALE_ZH_HANT = 'zh-Hant';
  2762. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2763. var LOCALE_EN = 'en';
  2764. exports.LOCALE_EN = LOCALE_EN;
  2765. var LOCALE_FR = 'fr';
  2766. exports.LOCALE_FR = LOCALE_FR;
  2767. var LOCALE_ES = 'es';
  2768. exports.LOCALE_ES = LOCALE_ES;
  2769. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2770. var hasOwn = function hasOwn(val, key) {
  2771. return hasOwnProperty.call(val, key);
  2772. };
  2773. var defaultFormatter = new BaseFormatter();
  2774. function include(str, parts) {
  2775. return !!parts.find(function (part) {
  2776. return str.indexOf(part) !== -1;
  2777. });
  2778. }
  2779. function startsWith(str, parts) {
  2780. return parts.find(function (part) {
  2781. return str.indexOf(part) === 0;
  2782. });
  2783. }
  2784. function normalizeLocale(locale, messages) {
  2785. if (!locale) {
  2786. return;
  2787. }
  2788. locale = locale.trim().replace(/_/g, '-');
  2789. if (messages && messages[locale]) {
  2790. return locale;
  2791. }
  2792. locale = locale.toLowerCase();
  2793. if (locale === 'chinese') {
  2794. // 支付宝
  2795. return LOCALE_ZH_HANS;
  2796. }
  2797. if (locale.indexOf('zh') === 0) {
  2798. if (locale.indexOf('-hans') > -1) {
  2799. return LOCALE_ZH_HANS;
  2800. }
  2801. if (locale.indexOf('-hant') > -1) {
  2802. return LOCALE_ZH_HANT;
  2803. }
  2804. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2805. return LOCALE_ZH_HANT;
  2806. }
  2807. return LOCALE_ZH_HANS;
  2808. }
  2809. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2810. if (messages && Object.keys(messages).length > 0) {
  2811. locales = Object.keys(messages);
  2812. }
  2813. var lang = startsWith(locale, locales);
  2814. if (lang) {
  2815. return lang;
  2816. }
  2817. }
  2818. var I18n = /*#__PURE__*/function () {
  2819. function I18n(_ref3) {
  2820. var locale = _ref3.locale,
  2821. fallbackLocale = _ref3.fallbackLocale,
  2822. messages = _ref3.messages,
  2823. watcher = _ref3.watcher,
  2824. formater = _ref3.formater;
  2825. (0, _classCallCheck2.default)(this, I18n);
  2826. this.locale = LOCALE_EN;
  2827. this.fallbackLocale = LOCALE_EN;
  2828. this.message = {};
  2829. this.messages = {};
  2830. this.watchers = [];
  2831. if (fallbackLocale) {
  2832. this.fallbackLocale = fallbackLocale;
  2833. }
  2834. this.formater = formater || defaultFormatter;
  2835. this.messages = messages || {};
  2836. this.setLocale(locale || LOCALE_EN);
  2837. if (watcher) {
  2838. this.watchLocale(watcher);
  2839. }
  2840. }
  2841. (0, _createClass2.default)(I18n, [{
  2842. key: "setLocale",
  2843. value: function setLocale(locale) {
  2844. var _this = this;
  2845. var oldLocale = this.locale;
  2846. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2847. if (!this.messages[this.locale]) {
  2848. // 可能初始化时不存在
  2849. this.messages[this.locale] = {};
  2850. }
  2851. this.message = this.messages[this.locale];
  2852. // 仅发生变化时,通知
  2853. if (oldLocale !== this.locale) {
  2854. this.watchers.forEach(function (watcher) {
  2855. watcher(_this.locale, oldLocale);
  2856. });
  2857. }
  2858. }
  2859. }, {
  2860. key: "getLocale",
  2861. value: function getLocale() {
  2862. return this.locale;
  2863. }
  2864. }, {
  2865. key: "watchLocale",
  2866. value: function watchLocale(fn) {
  2867. var _this2 = this;
  2868. var index = this.watchers.push(fn) - 1;
  2869. return function () {
  2870. _this2.watchers.splice(index, 1);
  2871. };
  2872. }
  2873. }, {
  2874. key: "add",
  2875. value: function add(locale, message) {
  2876. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2877. var curMessages = this.messages[locale];
  2878. if (curMessages) {
  2879. if (override) {
  2880. Object.assign(curMessages, message);
  2881. } else {
  2882. Object.keys(message).forEach(function (key) {
  2883. if (!hasOwn(curMessages, key)) {
  2884. curMessages[key] = message[key];
  2885. }
  2886. });
  2887. }
  2888. } else {
  2889. this.messages[locale] = message;
  2890. }
  2891. }
  2892. }, {
  2893. key: "f",
  2894. value: function f(message, values, delimiters) {
  2895. return this.formater.interpolate(message, values, delimiters).join('');
  2896. }
  2897. }, {
  2898. key: "t",
  2899. value: function t(key, locale, values) {
  2900. var message = this.message;
  2901. if (typeof locale === 'string') {
  2902. locale = normalizeLocale(locale, this.messages);
  2903. locale && (message = this.messages[locale]);
  2904. } else {
  2905. values = locale;
  2906. }
  2907. if (!hasOwn(message, key)) {
  2908. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2909. return key;
  2910. }
  2911. return this.formater.interpolate(message[key], values).join('');
  2912. }
  2913. }]);
  2914. return I18n;
  2915. }();
  2916. exports.I18n = I18n;
  2917. function watchAppLocale(appVm, i18n) {
  2918. // 需要保证 watch 的触发在组件渲染之前
  2919. if (appVm.$watchLocale) {
  2920. // vue2
  2921. appVm.$watchLocale(function (newLocale) {
  2922. i18n.setLocale(newLocale);
  2923. });
  2924. } else {
  2925. appVm.$watch(function () {
  2926. return appVm.$locale;
  2927. }, function (newLocale) {
  2928. i18n.setLocale(newLocale);
  2929. });
  2930. }
  2931. }
  2932. function getDefaultLocale() {
  2933. if (typeof uni !== 'undefined' && uni.getLocale) {
  2934. return uni.getLocale();
  2935. }
  2936. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  2937. if (typeof global !== 'undefined' && global.getLocale) {
  2938. return global.getLocale();
  2939. }
  2940. return LOCALE_EN;
  2941. }
  2942. function initVueI18n(locale) {
  2943. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2944. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  2945. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  2946. // 兼容旧版本入参
  2947. if (typeof locale !== 'string') {
  2948. var _ref4 = [messages, locale];
  2949. locale = _ref4[0];
  2950. messages = _ref4[1];
  2951. }
  2952. if (typeof locale !== 'string') {
  2953. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  2954. locale = getDefaultLocale();
  2955. }
  2956. if (typeof fallbackLocale !== 'string') {
  2957. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  2958. }
  2959. var i18n = new I18n({
  2960. locale: locale,
  2961. fallbackLocale: fallbackLocale,
  2962. messages: messages,
  2963. watcher: watcher
  2964. });
  2965. var _t = function t(key, values) {
  2966. if (typeof getApp !== 'function') {
  2967. // app view
  2968. /* eslint-disable no-func-assign */
  2969. _t = function t(key, values) {
  2970. return i18n.t(key, values);
  2971. };
  2972. } else {
  2973. var isWatchedAppLocale = false;
  2974. _t = function t(key, values) {
  2975. var appVm = getApp().$vm;
  2976. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  2977. // options: {
  2978. // type: Array,
  2979. // default () {
  2980. // return [{
  2981. // icon: 'shop',
  2982. // text: t("uni-goods-nav.options.shop"),
  2983. // }, {
  2984. // icon: 'cart',
  2985. // text: t("uni-goods-nav.options.cart")
  2986. // }]
  2987. // }
  2988. // },
  2989. if (appVm) {
  2990. // 触发响应式
  2991. appVm.$locale;
  2992. if (!isWatchedAppLocale) {
  2993. isWatchedAppLocale = true;
  2994. watchAppLocale(appVm, i18n);
  2995. }
  2996. }
  2997. return i18n.t(key, values);
  2998. };
  2999. }
  3000. return _t(key, values);
  3001. };
  3002. return {
  3003. i18n: i18n,
  3004. f: function f(message, values, delimiters) {
  3005. return i18n.f(message, values, delimiters);
  3006. },
  3007. t: function t(key, values) {
  3008. return _t(key, values);
  3009. },
  3010. add: function add(locale, message) {
  3011. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3012. return i18n.add(locale, message, override);
  3013. },
  3014. watch: function watch(fn) {
  3015. return i18n.watchLocale(fn);
  3016. },
  3017. getLocale: function getLocale() {
  3018. return i18n.getLocale();
  3019. },
  3020. setLocale: function setLocale(newLocale) {
  3021. return i18n.setLocale(newLocale);
  3022. }
  3023. };
  3024. }
  3025. var isString = function isString(val) {
  3026. return typeof val === 'string';
  3027. };
  3028. exports.isString = isString;
  3029. var formater;
  3030. function hasI18nJson(jsonObj, delimiters) {
  3031. if (!formater) {
  3032. formater = new BaseFormatter();
  3033. }
  3034. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3035. var value = jsonObj[key];
  3036. if (isString(value)) {
  3037. if (isI18nStr(value, delimiters)) {
  3038. return true;
  3039. }
  3040. } else {
  3041. return hasI18nJson(value, delimiters);
  3042. }
  3043. });
  3044. }
  3045. function parseI18nJson(jsonObj, values, delimiters) {
  3046. if (!formater) {
  3047. formater = new BaseFormatter();
  3048. }
  3049. walkJsonObj(jsonObj, function (jsonObj, key) {
  3050. var value = jsonObj[key];
  3051. if (isString(value)) {
  3052. if (isI18nStr(value, delimiters)) {
  3053. jsonObj[key] = compileStr(value, values, delimiters);
  3054. }
  3055. } else {
  3056. parseI18nJson(value, values, delimiters);
  3057. }
  3058. });
  3059. return jsonObj;
  3060. }
  3061. function compileI18nJsonStr(jsonStr, _ref5) {
  3062. var locale = _ref5.locale,
  3063. locales = _ref5.locales,
  3064. delimiters = _ref5.delimiters;
  3065. if (!isI18nStr(jsonStr, delimiters)) {
  3066. return jsonStr;
  3067. }
  3068. if (!formater) {
  3069. formater = new BaseFormatter();
  3070. }
  3071. var localeValues = [];
  3072. Object.keys(locales).forEach(function (name) {
  3073. if (name !== locale) {
  3074. localeValues.push({
  3075. locale: name,
  3076. values: locales[name]
  3077. });
  3078. }
  3079. });
  3080. localeValues.unshift({
  3081. locale: locale,
  3082. values: locales[locale]
  3083. });
  3084. try {
  3085. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3086. } catch (e) {}
  3087. return jsonStr;
  3088. }
  3089. function isI18nStr(value, delimiters) {
  3090. return value.indexOf(delimiters[0]) > -1;
  3091. }
  3092. function compileStr(value, values, delimiters) {
  3093. return formater.interpolate(value, values, delimiters).join('');
  3094. }
  3095. function compileValue(jsonObj, key, localeValues, delimiters) {
  3096. var value = jsonObj[key];
  3097. if (isString(value)) {
  3098. // 存在国际化
  3099. if (isI18nStr(value, delimiters)) {
  3100. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3101. if (localeValues.length > 1) {
  3102. // 格式化国际化语言
  3103. var valueLocales = jsonObj[key + 'Locales'] = {};
  3104. localeValues.forEach(function (localValue) {
  3105. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3106. });
  3107. }
  3108. }
  3109. } else {
  3110. compileJsonObj(value, localeValues, delimiters);
  3111. }
  3112. }
  3113. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3114. walkJsonObj(jsonObj, function (jsonObj, key) {
  3115. compileValue(jsonObj, key, localeValues, delimiters);
  3116. });
  3117. return jsonObj;
  3118. }
  3119. function walkJsonObj(jsonObj, walk) {
  3120. if (Array.isArray(jsonObj)) {
  3121. for (var i = 0; i < jsonObj.length; i++) {
  3122. if (walk(jsonObj, i)) {
  3123. return true;
  3124. }
  3125. }
  3126. } else if (isObject(jsonObj)) {
  3127. for (var key in jsonObj) {
  3128. if (walk(jsonObj, key)) {
  3129. return true;
  3130. }
  3131. }
  3132. }
  3133. return false;
  3134. }
  3135. function resolveLocale(locales) {
  3136. return function (locale) {
  3137. if (!locale) {
  3138. return locale;
  3139. }
  3140. locale = normalizeLocale(locale) || locale;
  3141. return resolveLocaleChain(locale).find(function (locale) {
  3142. return locales.indexOf(locale) > -1;
  3143. });
  3144. };
  3145. }
  3146. function resolveLocaleChain(locale) {
  3147. var chain = [];
  3148. var tokens = locale.split('-');
  3149. while (tokens.length) {
  3150. chain.push(tokens.join('-'));
  3151. tokens.pop();
  3152. }
  3153. return chain;
  3154. }
  3155. /* 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)))
  3156. /***/ }),
  3157. /***/ 23:
  3158. /*!***************************************************************!*\
  3159. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3160. \***************************************************************/
  3161. /*! no static exports found */
  3162. /***/ (function(module, exports) {
  3163. function _classCallCheck(instance, Constructor) {
  3164. if (!(instance instanceof Constructor)) {
  3165. throw new TypeError("Cannot call a class as a function");
  3166. }
  3167. }
  3168. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3169. /***/ }),
  3170. /***/ 24:
  3171. /*!************************************************************!*\
  3172. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3173. \************************************************************/
  3174. /*! no static exports found */
  3175. /***/ (function(module, exports, __webpack_require__) {
  3176. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3177. function _defineProperties(target, props) {
  3178. for (var i = 0; i < props.length; i++) {
  3179. var descriptor = props[i];
  3180. descriptor.enumerable = descriptor.enumerable || false;
  3181. descriptor.configurable = true;
  3182. if ("value" in descriptor) descriptor.writable = true;
  3183. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3184. }
  3185. }
  3186. function _createClass(Constructor, protoProps, staticProps) {
  3187. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3188. if (staticProps) _defineProperties(Constructor, staticProps);
  3189. Object.defineProperty(Constructor, "prototype", {
  3190. writable: false
  3191. });
  3192. return Constructor;
  3193. }
  3194. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3195. /***/ }),
  3196. /***/ 25:
  3197. /*!******************************************************************************************!*\
  3198. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3199. \******************************************************************************************/
  3200. /*! exports provided: default */
  3201. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3202. "use strict";
  3203. __webpack_require__.r(__webpack_exports__);
  3204. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3205. * Vue.js v2.6.11
  3206. * (c) 2014-2023 Evan You
  3207. * Released under the MIT License.
  3208. */
  3209. /* */
  3210. var emptyObject = Object.freeze({});
  3211. // These helpers produce better VM code in JS engines due to their
  3212. // explicitness and function inlining.
  3213. function isUndef (v) {
  3214. return v === undefined || v === null
  3215. }
  3216. function isDef (v) {
  3217. return v !== undefined && v !== null
  3218. }
  3219. function isTrue (v) {
  3220. return v === true
  3221. }
  3222. function isFalse (v) {
  3223. return v === false
  3224. }
  3225. /**
  3226. * Check if value is primitive.
  3227. */
  3228. function isPrimitive (value) {
  3229. return (
  3230. typeof value === 'string' ||
  3231. typeof value === 'number' ||
  3232. // $flow-disable-line
  3233. typeof value === 'symbol' ||
  3234. typeof value === 'boolean'
  3235. )
  3236. }
  3237. /**
  3238. * Quick object check - this is primarily used to tell
  3239. * Objects from primitive values when we know the value
  3240. * is a JSON-compliant type.
  3241. */
  3242. function isObject (obj) {
  3243. return obj !== null && typeof obj === 'object'
  3244. }
  3245. /**
  3246. * Get the raw type string of a value, e.g., [object Object].
  3247. */
  3248. var _toString = Object.prototype.toString;
  3249. function toRawType (value) {
  3250. return _toString.call(value).slice(8, -1)
  3251. }
  3252. /**
  3253. * Strict object type check. Only returns true
  3254. * for plain JavaScript objects.
  3255. */
  3256. function isPlainObject (obj) {
  3257. return _toString.call(obj) === '[object Object]'
  3258. }
  3259. function isRegExp (v) {
  3260. return _toString.call(v) === '[object RegExp]'
  3261. }
  3262. /**
  3263. * Check if val is a valid array index.
  3264. */
  3265. function isValidArrayIndex (val) {
  3266. var n = parseFloat(String(val));
  3267. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3268. }
  3269. function isPromise (val) {
  3270. return (
  3271. isDef(val) &&
  3272. typeof val.then === 'function' &&
  3273. typeof val.catch === 'function'
  3274. )
  3275. }
  3276. /**
  3277. * Convert a value to a string that is actually rendered.
  3278. */
  3279. function toString (val) {
  3280. return val == null
  3281. ? ''
  3282. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3283. ? JSON.stringify(val, null, 2)
  3284. : String(val)
  3285. }
  3286. /**
  3287. * Convert an input value to a number for persistence.
  3288. * If the conversion fails, return original string.
  3289. */
  3290. function toNumber (val) {
  3291. var n = parseFloat(val);
  3292. return isNaN(n) ? val : n
  3293. }
  3294. /**
  3295. * Make a map and return a function for checking if a key
  3296. * is in that map.
  3297. */
  3298. function makeMap (
  3299. str,
  3300. expectsLowerCase
  3301. ) {
  3302. var map = Object.create(null);
  3303. var list = str.split(',');
  3304. for (var i = 0; i < list.length; i++) {
  3305. map[list[i]] = true;
  3306. }
  3307. return expectsLowerCase
  3308. ? function (val) { return map[val.toLowerCase()]; }
  3309. : function (val) { return map[val]; }
  3310. }
  3311. /**
  3312. * Check if a tag is a built-in tag.
  3313. */
  3314. var isBuiltInTag = makeMap('slot,component', true);
  3315. /**
  3316. * Check if an attribute is a reserved attribute.
  3317. */
  3318. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3319. /**
  3320. * Remove an item from an array.
  3321. */
  3322. function remove (arr, item) {
  3323. if (arr.length) {
  3324. var index = arr.indexOf(item);
  3325. if (index > -1) {
  3326. return arr.splice(index, 1)
  3327. }
  3328. }
  3329. }
  3330. /**
  3331. * Check whether an object has the property.
  3332. */
  3333. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3334. function hasOwn (obj, key) {
  3335. return hasOwnProperty.call(obj, key)
  3336. }
  3337. /**
  3338. * Create a cached version of a pure function.
  3339. */
  3340. function cached (fn) {
  3341. var cache = Object.create(null);
  3342. return (function cachedFn (str) {
  3343. var hit = cache[str];
  3344. return hit || (cache[str] = fn(str))
  3345. })
  3346. }
  3347. /**
  3348. * Camelize a hyphen-delimited string.
  3349. */
  3350. var camelizeRE = /-(\w)/g;
  3351. var camelize = cached(function (str) {
  3352. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3353. });
  3354. /**
  3355. * Capitalize a string.
  3356. */
  3357. var capitalize = cached(function (str) {
  3358. return str.charAt(0).toUpperCase() + str.slice(1)
  3359. });
  3360. /**
  3361. * Hyphenate a camelCase string.
  3362. */
  3363. var hyphenateRE = /\B([A-Z])/g;
  3364. var hyphenate = cached(function (str) {
  3365. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3366. });
  3367. /**
  3368. * Simple bind polyfill for environments that do not support it,
  3369. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3370. * since native bind is now performant enough in most browsers.
  3371. * But removing it would mean breaking code that was able to run in
  3372. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3373. */
  3374. /* istanbul ignore next */
  3375. function polyfillBind (fn, ctx) {
  3376. function boundFn (a) {
  3377. var l = arguments.length;
  3378. return l
  3379. ? l > 1
  3380. ? fn.apply(ctx, arguments)
  3381. : fn.call(ctx, a)
  3382. : fn.call(ctx)
  3383. }
  3384. boundFn._length = fn.length;
  3385. return boundFn
  3386. }
  3387. function nativeBind (fn, ctx) {
  3388. return fn.bind(ctx)
  3389. }
  3390. var bind = Function.prototype.bind
  3391. ? nativeBind
  3392. : polyfillBind;
  3393. /**
  3394. * Convert an Array-like object to a real Array.
  3395. */
  3396. function toArray (list, start) {
  3397. start = start || 0;
  3398. var i = list.length - start;
  3399. var ret = new Array(i);
  3400. while (i--) {
  3401. ret[i] = list[i + start];
  3402. }
  3403. return ret
  3404. }
  3405. /**
  3406. * Mix properties into target object.
  3407. */
  3408. function extend (to, _from) {
  3409. for (var key in _from) {
  3410. to[key] = _from[key];
  3411. }
  3412. return to
  3413. }
  3414. /**
  3415. * Merge an Array of Objects into a single Object.
  3416. */
  3417. function toObject (arr) {
  3418. var res = {};
  3419. for (var i = 0; i < arr.length; i++) {
  3420. if (arr[i]) {
  3421. extend(res, arr[i]);
  3422. }
  3423. }
  3424. return res
  3425. }
  3426. /* eslint-disable no-unused-vars */
  3427. /**
  3428. * Perform no operation.
  3429. * Stubbing args to make Flow happy without leaving useless transpiled code
  3430. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3431. */
  3432. function noop (a, b, c) {}
  3433. /**
  3434. * Always return false.
  3435. */
  3436. var no = function (a, b, c) { return false; };
  3437. /* eslint-enable no-unused-vars */
  3438. /**
  3439. * Return the same value.
  3440. */
  3441. var identity = function (_) { return _; };
  3442. /**
  3443. * Check if two values are loosely equal - that is,
  3444. * if they are plain objects, do they have the same shape?
  3445. */
  3446. function looseEqual (a, b) {
  3447. if (a === b) { return true }
  3448. var isObjectA = isObject(a);
  3449. var isObjectB = isObject(b);
  3450. if (isObjectA && isObjectB) {
  3451. try {
  3452. var isArrayA = Array.isArray(a);
  3453. var isArrayB = Array.isArray(b);
  3454. if (isArrayA && isArrayB) {
  3455. return a.length === b.length && a.every(function (e, i) {
  3456. return looseEqual(e, b[i])
  3457. })
  3458. } else if (a instanceof Date && b instanceof Date) {
  3459. return a.getTime() === b.getTime()
  3460. } else if (!isArrayA && !isArrayB) {
  3461. var keysA = Object.keys(a);
  3462. var keysB = Object.keys(b);
  3463. return keysA.length === keysB.length && keysA.every(function (key) {
  3464. return looseEqual(a[key], b[key])
  3465. })
  3466. } else {
  3467. /* istanbul ignore next */
  3468. return false
  3469. }
  3470. } catch (e) {
  3471. /* istanbul ignore next */
  3472. return false
  3473. }
  3474. } else if (!isObjectA && !isObjectB) {
  3475. return String(a) === String(b)
  3476. } else {
  3477. return false
  3478. }
  3479. }
  3480. /**
  3481. * Return the first index at which a loosely equal value can be
  3482. * found in the array (if value is a plain object, the array must
  3483. * contain an object of the same shape), or -1 if it is not present.
  3484. */
  3485. function looseIndexOf (arr, val) {
  3486. for (var i = 0; i < arr.length; i++) {
  3487. if (looseEqual(arr[i], val)) { return i }
  3488. }
  3489. return -1
  3490. }
  3491. /**
  3492. * Ensure a function is called only once.
  3493. */
  3494. function once (fn) {
  3495. var called = false;
  3496. return function () {
  3497. if (!called) {
  3498. called = true;
  3499. fn.apply(this, arguments);
  3500. }
  3501. }
  3502. }
  3503. var ASSET_TYPES = [
  3504. 'component',
  3505. 'directive',
  3506. 'filter'
  3507. ];
  3508. var LIFECYCLE_HOOKS = [
  3509. 'beforeCreate',
  3510. 'created',
  3511. 'beforeMount',
  3512. 'mounted',
  3513. 'beforeUpdate',
  3514. 'updated',
  3515. 'beforeDestroy',
  3516. 'destroyed',
  3517. 'activated',
  3518. 'deactivated',
  3519. 'errorCaptured',
  3520. 'serverPrefetch'
  3521. ];
  3522. /* */
  3523. var config = ({
  3524. /**
  3525. * Option merge strategies (used in core/util/options)
  3526. */
  3527. // $flow-disable-line
  3528. optionMergeStrategies: Object.create(null),
  3529. /**
  3530. * Whether to suppress warnings.
  3531. */
  3532. silent: false,
  3533. /**
  3534. * Show production mode tip message on boot?
  3535. */
  3536. productionTip: "development" !== 'production',
  3537. /**
  3538. * Whether to enable devtools
  3539. */
  3540. devtools: "development" !== 'production',
  3541. /**
  3542. * Whether to record perf
  3543. */
  3544. performance: false,
  3545. /**
  3546. * Error handler for watcher errors
  3547. */
  3548. errorHandler: null,
  3549. /**
  3550. * Warn handler for watcher warns
  3551. */
  3552. warnHandler: null,
  3553. /**
  3554. * Ignore certain custom elements
  3555. */
  3556. ignoredElements: [],
  3557. /**
  3558. * Custom user key aliases for v-on
  3559. */
  3560. // $flow-disable-line
  3561. keyCodes: Object.create(null),
  3562. /**
  3563. * Check if a tag is reserved so that it cannot be registered as a
  3564. * component. This is platform-dependent and may be overwritten.
  3565. */
  3566. isReservedTag: no,
  3567. /**
  3568. * Check if an attribute is reserved so that it cannot be used as a component
  3569. * prop. This is platform-dependent and may be overwritten.
  3570. */
  3571. isReservedAttr: no,
  3572. /**
  3573. * Check if a tag is an unknown element.
  3574. * Platform-dependent.
  3575. */
  3576. isUnknownElement: no,
  3577. /**
  3578. * Get the namespace of an element
  3579. */
  3580. getTagNamespace: noop,
  3581. /**
  3582. * Parse the real tag name for the specific platform.
  3583. */
  3584. parsePlatformTagName: identity,
  3585. /**
  3586. * Check if an attribute must be bound using property, e.g. value
  3587. * Platform-dependent.
  3588. */
  3589. mustUseProp: no,
  3590. /**
  3591. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3592. * This will significantly reduce performance if set to false.
  3593. */
  3594. async: true,
  3595. /**
  3596. * Exposed for legacy reasons
  3597. */
  3598. _lifecycleHooks: LIFECYCLE_HOOKS
  3599. });
  3600. /* */
  3601. /**
  3602. * unicode letters used for parsing html tags, component names and property paths.
  3603. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3604. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3605. */
  3606. 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/;
  3607. /**
  3608. * Check if a string starts with $ or _
  3609. */
  3610. function isReserved (str) {
  3611. var c = (str + '').charCodeAt(0);
  3612. return c === 0x24 || c === 0x5F
  3613. }
  3614. /**
  3615. * Define a property.
  3616. */
  3617. function def (obj, key, val, enumerable) {
  3618. Object.defineProperty(obj, key, {
  3619. value: val,
  3620. enumerable: !!enumerable,
  3621. writable: true,
  3622. configurable: true
  3623. });
  3624. }
  3625. /**
  3626. * Parse simple path.
  3627. */
  3628. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3629. function parsePath (path) {
  3630. if (bailRE.test(path)) {
  3631. return
  3632. }
  3633. var segments = path.split('.');
  3634. return function (obj) {
  3635. for (var i = 0; i < segments.length; i++) {
  3636. if (!obj) { return }
  3637. obj = obj[segments[i]];
  3638. }
  3639. return obj
  3640. }
  3641. }
  3642. /* */
  3643. // can we use __proto__?
  3644. var hasProto = '__proto__' in {};
  3645. // Browser environment sniffing
  3646. var inBrowser = typeof window !== 'undefined';
  3647. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3648. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3649. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3650. var isIE = UA && /msie|trident/.test(UA);
  3651. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3652. var isEdge = UA && UA.indexOf('edge/') > 0;
  3653. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3654. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3655. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3656. var isPhantomJS = UA && /phantomjs/.test(UA);
  3657. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3658. // Firefox has a "watch" function on Object.prototype...
  3659. var nativeWatch = ({}).watch;
  3660. if (inBrowser) {
  3661. try {
  3662. var opts = {};
  3663. Object.defineProperty(opts, 'passive', ({
  3664. get: function get () {
  3665. }
  3666. })); // https://github.com/facebook/flow/issues/285
  3667. window.addEventListener('test-passive', null, opts);
  3668. } catch (e) {}
  3669. }
  3670. // this needs to be lazy-evaled because vue may be required before
  3671. // vue-server-renderer can set VUE_ENV
  3672. var _isServer;
  3673. var isServerRendering = function () {
  3674. if (_isServer === undefined) {
  3675. /* istanbul ignore if */
  3676. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3677. // detect presence of vue-server-renderer and avoid
  3678. // Webpack shimming the process
  3679. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3680. } else {
  3681. _isServer = false;
  3682. }
  3683. }
  3684. return _isServer
  3685. };
  3686. // detect devtools
  3687. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3688. /* istanbul ignore next */
  3689. function isNative (Ctor) {
  3690. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3691. }
  3692. var hasSymbol =
  3693. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3694. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3695. var _Set;
  3696. /* istanbul ignore if */ // $flow-disable-line
  3697. if (typeof Set !== 'undefined' && isNative(Set)) {
  3698. // use native Set when available.
  3699. _Set = Set;
  3700. } else {
  3701. // a non-standard Set polyfill that only works with primitive keys.
  3702. _Set = /*@__PURE__*/(function () {
  3703. function Set () {
  3704. this.set = Object.create(null);
  3705. }
  3706. Set.prototype.has = function has (key) {
  3707. return this.set[key] === true
  3708. };
  3709. Set.prototype.add = function add (key) {
  3710. this.set[key] = true;
  3711. };
  3712. Set.prototype.clear = function clear () {
  3713. this.set = Object.create(null);
  3714. };
  3715. return Set;
  3716. }());
  3717. }
  3718. /* */
  3719. var warn = noop;
  3720. var tip = noop;
  3721. var generateComponentTrace = (noop); // work around flow check
  3722. var formatComponentName = (noop);
  3723. if (true) {
  3724. var hasConsole = typeof console !== 'undefined';
  3725. var classifyRE = /(?:^|[-_])(\w)/g;
  3726. var classify = function (str) { return str
  3727. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3728. .replace(/[-_]/g, ''); };
  3729. warn = function (msg, vm) {
  3730. var trace = vm ? generateComponentTrace(vm) : '';
  3731. if (config.warnHandler) {
  3732. config.warnHandler.call(null, msg, vm, trace);
  3733. } else if (hasConsole && (!config.silent)) {
  3734. console.error(("[Vue warn]: " + msg + trace));
  3735. }
  3736. };
  3737. tip = function (msg, vm) {
  3738. if (hasConsole && (!config.silent)) {
  3739. console.warn("[Vue tip]: " + msg + (
  3740. vm ? generateComponentTrace(vm) : ''
  3741. ));
  3742. }
  3743. };
  3744. formatComponentName = function (vm, includeFile) {
  3745. if (vm.$root === vm) {
  3746. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3747. return ('') + vm.$options.__file
  3748. }
  3749. return '<Root>'
  3750. }
  3751. var options = typeof vm === 'function' && vm.cid != null
  3752. ? vm.options
  3753. : vm._isVue
  3754. ? vm.$options || vm.constructor.options
  3755. : vm;
  3756. var name = options.name || options._componentTag;
  3757. var file = options.__file;
  3758. if (!name && file) {
  3759. var match = file.match(/([^/\\]+)\.vue$/);
  3760. name = match && match[1];
  3761. }
  3762. return (
  3763. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3764. (file && includeFile !== false ? (" at " + file) : '')
  3765. )
  3766. };
  3767. var repeat = function (str, n) {
  3768. var res = '';
  3769. while (n) {
  3770. if (n % 2 === 1) { res += str; }
  3771. if (n > 1) { str += str; }
  3772. n >>= 1;
  3773. }
  3774. return res
  3775. };
  3776. generateComponentTrace = function (vm) {
  3777. if (vm._isVue && vm.$parent) {
  3778. var tree = [];
  3779. var currentRecursiveSequence = 0;
  3780. while (vm && vm.$options.name !== 'PageBody') {
  3781. if (tree.length > 0) {
  3782. var last = tree[tree.length - 1];
  3783. if (last.constructor === vm.constructor) {
  3784. currentRecursiveSequence++;
  3785. vm = vm.$parent;
  3786. continue
  3787. } else if (currentRecursiveSequence > 0) {
  3788. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3789. currentRecursiveSequence = 0;
  3790. }
  3791. }
  3792. !vm.$options.isReserved && tree.push(vm);
  3793. vm = vm.$parent;
  3794. }
  3795. return '\n\nfound in\n\n' + tree
  3796. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3797. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3798. : formatComponentName(vm))); })
  3799. .join('\n')
  3800. } else {
  3801. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3802. }
  3803. };
  3804. }
  3805. /* */
  3806. var uid = 0;
  3807. /**
  3808. * A dep is an observable that can have multiple
  3809. * directives subscribing to it.
  3810. */
  3811. var Dep = function Dep () {
  3812. this.id = uid++;
  3813. this.subs = [];
  3814. };
  3815. Dep.prototype.addSub = function addSub (sub) {
  3816. this.subs.push(sub);
  3817. };
  3818. Dep.prototype.removeSub = function removeSub (sub) {
  3819. remove(this.subs, sub);
  3820. };
  3821. Dep.prototype.depend = function depend () {
  3822. if (Dep.SharedObject.target) {
  3823. Dep.SharedObject.target.addDep(this);
  3824. }
  3825. };
  3826. Dep.prototype.notify = function notify () {
  3827. // stabilize the subscriber list first
  3828. var subs = this.subs.slice();
  3829. if ( true && !config.async) {
  3830. // subs aren't sorted in scheduler if not running async
  3831. // we need to sort them now to make sure they fire in correct
  3832. // order
  3833. subs.sort(function (a, b) { return a.id - b.id; });
  3834. }
  3835. for (var i = 0, l = subs.length; i < l; i++) {
  3836. subs[i].update();
  3837. }
  3838. };
  3839. // The current target watcher being evaluated.
  3840. // This is globally unique because only one watcher
  3841. // can be evaluated at a time.
  3842. // fixed by xxxxxx (nvue shared vuex)
  3843. /* eslint-disable no-undef */
  3844. Dep.SharedObject = {};
  3845. Dep.SharedObject.target = null;
  3846. Dep.SharedObject.targetStack = [];
  3847. function pushTarget (target) {
  3848. Dep.SharedObject.targetStack.push(target);
  3849. Dep.SharedObject.target = target;
  3850. Dep.target = target;
  3851. }
  3852. function popTarget () {
  3853. Dep.SharedObject.targetStack.pop();
  3854. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3855. Dep.target = Dep.SharedObject.target;
  3856. }
  3857. /* */
  3858. var VNode = function VNode (
  3859. tag,
  3860. data,
  3861. children,
  3862. text,
  3863. elm,
  3864. context,
  3865. componentOptions,
  3866. asyncFactory
  3867. ) {
  3868. this.tag = tag;
  3869. this.data = data;
  3870. this.children = children;
  3871. this.text = text;
  3872. this.elm = elm;
  3873. this.ns = undefined;
  3874. this.context = context;
  3875. this.fnContext = undefined;
  3876. this.fnOptions = undefined;
  3877. this.fnScopeId = undefined;
  3878. this.key = data && data.key;
  3879. this.componentOptions = componentOptions;
  3880. this.componentInstance = undefined;
  3881. this.parent = undefined;
  3882. this.raw = false;
  3883. this.isStatic = false;
  3884. this.isRootInsert = true;
  3885. this.isComment = false;
  3886. this.isCloned = false;
  3887. this.isOnce = false;
  3888. this.asyncFactory = asyncFactory;
  3889. this.asyncMeta = undefined;
  3890. this.isAsyncPlaceholder = false;
  3891. };
  3892. var prototypeAccessors = { child: { configurable: true } };
  3893. // DEPRECATED: alias for componentInstance for backwards compat.
  3894. /* istanbul ignore next */
  3895. prototypeAccessors.child.get = function () {
  3896. return this.componentInstance
  3897. };
  3898. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3899. var createEmptyVNode = function (text) {
  3900. if ( text === void 0 ) text = '';
  3901. var node = new VNode();
  3902. node.text = text;
  3903. node.isComment = true;
  3904. return node
  3905. };
  3906. function createTextVNode (val) {
  3907. return new VNode(undefined, undefined, undefined, String(val))
  3908. }
  3909. // optimized shallow clone
  3910. // used for static nodes and slot nodes because they may be reused across
  3911. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3912. // on their elm reference.
  3913. function cloneVNode (vnode) {
  3914. var cloned = new VNode(
  3915. vnode.tag,
  3916. vnode.data,
  3917. // #7975
  3918. // clone children array to avoid mutating original in case of cloning
  3919. // a child.
  3920. vnode.children && vnode.children.slice(),
  3921. vnode.text,
  3922. vnode.elm,
  3923. vnode.context,
  3924. vnode.componentOptions,
  3925. vnode.asyncFactory
  3926. );
  3927. cloned.ns = vnode.ns;
  3928. cloned.isStatic = vnode.isStatic;
  3929. cloned.key = vnode.key;
  3930. cloned.isComment = vnode.isComment;
  3931. cloned.fnContext = vnode.fnContext;
  3932. cloned.fnOptions = vnode.fnOptions;
  3933. cloned.fnScopeId = vnode.fnScopeId;
  3934. cloned.asyncMeta = vnode.asyncMeta;
  3935. cloned.isCloned = true;
  3936. return cloned
  3937. }
  3938. /*
  3939. * not type checking this file because flow doesn't play well with
  3940. * dynamically accessing methods on Array prototype
  3941. */
  3942. var arrayProto = Array.prototype;
  3943. var arrayMethods = Object.create(arrayProto);
  3944. var methodsToPatch = [
  3945. 'push',
  3946. 'pop',
  3947. 'shift',
  3948. 'unshift',
  3949. 'splice',
  3950. 'sort',
  3951. 'reverse'
  3952. ];
  3953. /**
  3954. * Intercept mutating methods and emit events
  3955. */
  3956. methodsToPatch.forEach(function (method) {
  3957. // cache original method
  3958. var original = arrayProto[method];
  3959. def(arrayMethods, method, function mutator () {
  3960. var args = [], len = arguments.length;
  3961. while ( len-- ) args[ len ] = arguments[ len ];
  3962. var result = original.apply(this, args);
  3963. var ob = this.__ob__;
  3964. var inserted;
  3965. switch (method) {
  3966. case 'push':
  3967. case 'unshift':
  3968. inserted = args;
  3969. break
  3970. case 'splice':
  3971. inserted = args.slice(2);
  3972. break
  3973. }
  3974. if (inserted) { ob.observeArray(inserted); }
  3975. // notify change
  3976. ob.dep.notify();
  3977. return result
  3978. });
  3979. });
  3980. /* */
  3981. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  3982. /**
  3983. * In some cases we may want to disable observation inside a component's
  3984. * update computation.
  3985. */
  3986. var shouldObserve = true;
  3987. function toggleObserving (value) {
  3988. shouldObserve = value;
  3989. }
  3990. /**
  3991. * Observer class that is attached to each observed
  3992. * object. Once attached, the observer converts the target
  3993. * object's property keys into getter/setters that
  3994. * collect dependencies and dispatch updates.
  3995. */
  3996. var Observer = function Observer (value) {
  3997. this.value = value;
  3998. this.dep = new Dep();
  3999. this.vmCount = 0;
  4000. def(value, '__ob__', this);
  4001. if (Array.isArray(value)) {
  4002. if (hasProto) {
  4003. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4004. if(value.push !== value.__proto__.push){
  4005. copyAugment(value, arrayMethods, arrayKeys);
  4006. } else {
  4007. protoAugment(value, arrayMethods);
  4008. }
  4009. }
  4010. } else {
  4011. copyAugment(value, arrayMethods, arrayKeys);
  4012. }
  4013. this.observeArray(value);
  4014. } else {
  4015. this.walk(value);
  4016. }
  4017. };
  4018. /**
  4019. * Walk through all properties and convert them into
  4020. * getter/setters. This method should only be called when
  4021. * value type is Object.
  4022. */
  4023. Observer.prototype.walk = function walk (obj) {
  4024. var keys = Object.keys(obj);
  4025. for (var i = 0; i < keys.length; i++) {
  4026. defineReactive$$1(obj, keys[i]);
  4027. }
  4028. };
  4029. /**
  4030. * Observe a list of Array items.
  4031. */
  4032. Observer.prototype.observeArray = function observeArray (items) {
  4033. for (var i = 0, l = items.length; i < l; i++) {
  4034. observe(items[i]);
  4035. }
  4036. };
  4037. // helpers
  4038. /**
  4039. * Augment a target Object or Array by intercepting
  4040. * the prototype chain using __proto__
  4041. */
  4042. function protoAugment (target, src) {
  4043. /* eslint-disable no-proto */
  4044. target.__proto__ = src;
  4045. /* eslint-enable no-proto */
  4046. }
  4047. /**
  4048. * Augment a target Object or Array by defining
  4049. * hidden properties.
  4050. */
  4051. /* istanbul ignore next */
  4052. function copyAugment (target, src, keys) {
  4053. for (var i = 0, l = keys.length; i < l; i++) {
  4054. var key = keys[i];
  4055. def(target, key, src[key]);
  4056. }
  4057. }
  4058. /**
  4059. * Attempt to create an observer instance for a value,
  4060. * returns the new observer if successfully observed,
  4061. * or the existing observer if the value already has one.
  4062. */
  4063. function observe (value, asRootData) {
  4064. if (!isObject(value) || value instanceof VNode) {
  4065. return
  4066. }
  4067. var ob;
  4068. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4069. ob = value.__ob__;
  4070. } else if (
  4071. shouldObserve &&
  4072. !isServerRendering() &&
  4073. (Array.isArray(value) || isPlainObject(value)) &&
  4074. Object.isExtensible(value) &&
  4075. !value._isVue &&
  4076. !value.__v_isMPComponent
  4077. ) {
  4078. ob = new Observer(value);
  4079. }
  4080. if (asRootData && ob) {
  4081. ob.vmCount++;
  4082. }
  4083. return ob
  4084. }
  4085. /**
  4086. * Define a reactive property on an Object.
  4087. */
  4088. function defineReactive$$1 (
  4089. obj,
  4090. key,
  4091. val,
  4092. customSetter,
  4093. shallow
  4094. ) {
  4095. var dep = new Dep();
  4096. var property = Object.getOwnPropertyDescriptor(obj, key);
  4097. if (property && property.configurable === false) {
  4098. return
  4099. }
  4100. // cater for pre-defined getter/setters
  4101. var getter = property && property.get;
  4102. var setter = property && property.set;
  4103. if ((!getter || setter) && arguments.length === 2) {
  4104. val = obj[key];
  4105. }
  4106. var childOb = !shallow && observe(val);
  4107. Object.defineProperty(obj, key, {
  4108. enumerable: true,
  4109. configurable: true,
  4110. get: function reactiveGetter () {
  4111. var value = getter ? getter.call(obj) : val;
  4112. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4113. dep.depend();
  4114. if (childOb) {
  4115. childOb.dep.depend();
  4116. if (Array.isArray(value)) {
  4117. dependArray(value);
  4118. }
  4119. }
  4120. }
  4121. return value
  4122. },
  4123. set: function reactiveSetter (newVal) {
  4124. var value = getter ? getter.call(obj) : val;
  4125. /* eslint-disable no-self-compare */
  4126. if (newVal === value || (newVal !== newVal && value !== value)) {
  4127. return
  4128. }
  4129. /* eslint-enable no-self-compare */
  4130. if ( true && customSetter) {
  4131. customSetter();
  4132. }
  4133. // #7981: for accessor properties without setter
  4134. if (getter && !setter) { return }
  4135. if (setter) {
  4136. setter.call(obj, newVal);
  4137. } else {
  4138. val = newVal;
  4139. }
  4140. childOb = !shallow && observe(newVal);
  4141. dep.notify();
  4142. }
  4143. });
  4144. }
  4145. /**
  4146. * Set a property on an object. Adds the new property and
  4147. * triggers change notification if the property doesn't
  4148. * already exist.
  4149. */
  4150. function set (target, key, val) {
  4151. if ( true &&
  4152. (isUndef(target) || isPrimitive(target))
  4153. ) {
  4154. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4155. }
  4156. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4157. target.length = Math.max(target.length, key);
  4158. target.splice(key, 1, val);
  4159. return val
  4160. }
  4161. if (key in target && !(key in Object.prototype)) {
  4162. target[key] = val;
  4163. return val
  4164. }
  4165. var ob = (target).__ob__;
  4166. if (target._isVue || (ob && ob.vmCount)) {
  4167. true && warn(
  4168. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4169. 'at runtime - declare it upfront in the data option.'
  4170. );
  4171. return val
  4172. }
  4173. if (!ob) {
  4174. target[key] = val;
  4175. return val
  4176. }
  4177. defineReactive$$1(ob.value, key, val);
  4178. ob.dep.notify();
  4179. return val
  4180. }
  4181. /**
  4182. * Delete a property and trigger change if necessary.
  4183. */
  4184. function del (target, key) {
  4185. if ( true &&
  4186. (isUndef(target) || isPrimitive(target))
  4187. ) {
  4188. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4189. }
  4190. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4191. target.splice(key, 1);
  4192. return
  4193. }
  4194. var ob = (target).__ob__;
  4195. if (target._isVue || (ob && ob.vmCount)) {
  4196. true && warn(
  4197. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4198. '- just set it to null.'
  4199. );
  4200. return
  4201. }
  4202. if (!hasOwn(target, key)) {
  4203. return
  4204. }
  4205. delete target[key];
  4206. if (!ob) {
  4207. return
  4208. }
  4209. ob.dep.notify();
  4210. }
  4211. /**
  4212. * Collect dependencies on array elements when the array is touched, since
  4213. * we cannot intercept array element access like property getters.
  4214. */
  4215. function dependArray (value) {
  4216. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4217. e = value[i];
  4218. e && e.__ob__ && e.__ob__.dep.depend();
  4219. if (Array.isArray(e)) {
  4220. dependArray(e);
  4221. }
  4222. }
  4223. }
  4224. /* */
  4225. /**
  4226. * Option overwriting strategies are functions that handle
  4227. * how to merge a parent option value and a child option
  4228. * value into the final value.
  4229. */
  4230. var strats = config.optionMergeStrategies;
  4231. /**
  4232. * Options with restrictions
  4233. */
  4234. if (true) {
  4235. strats.el = strats.propsData = function (parent, child, vm, key) {
  4236. if (!vm) {
  4237. warn(
  4238. "option \"" + key + "\" can only be used during instance " +
  4239. 'creation with the `new` keyword.'
  4240. );
  4241. }
  4242. return defaultStrat(parent, child)
  4243. };
  4244. }
  4245. /**
  4246. * Helper that recursively merges two data objects together.
  4247. */
  4248. function mergeData (to, from) {
  4249. if (!from) { return to }
  4250. var key, toVal, fromVal;
  4251. var keys = hasSymbol
  4252. ? Reflect.ownKeys(from)
  4253. : Object.keys(from);
  4254. for (var i = 0; i < keys.length; i++) {
  4255. key = keys[i];
  4256. // in case the object is already observed...
  4257. if (key === '__ob__') { continue }
  4258. toVal = to[key];
  4259. fromVal = from[key];
  4260. if (!hasOwn(to, key)) {
  4261. set(to, key, fromVal);
  4262. } else if (
  4263. toVal !== fromVal &&
  4264. isPlainObject(toVal) &&
  4265. isPlainObject(fromVal)
  4266. ) {
  4267. mergeData(toVal, fromVal);
  4268. }
  4269. }
  4270. return to
  4271. }
  4272. /**
  4273. * Data
  4274. */
  4275. function mergeDataOrFn (
  4276. parentVal,
  4277. childVal,
  4278. vm
  4279. ) {
  4280. if (!vm) {
  4281. // in a Vue.extend merge, both should be functions
  4282. if (!childVal) {
  4283. return parentVal
  4284. }
  4285. if (!parentVal) {
  4286. return childVal
  4287. }
  4288. // when parentVal & childVal are both present,
  4289. // we need to return a function that returns the
  4290. // merged result of both functions... no need to
  4291. // check if parentVal is a function here because
  4292. // it has to be a function to pass previous merges.
  4293. return function mergedDataFn () {
  4294. return mergeData(
  4295. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4296. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4297. )
  4298. }
  4299. } else {
  4300. return function mergedInstanceDataFn () {
  4301. // instance merge
  4302. var instanceData = typeof childVal === 'function'
  4303. ? childVal.call(vm, vm)
  4304. : childVal;
  4305. var defaultData = typeof parentVal === 'function'
  4306. ? parentVal.call(vm, vm)
  4307. : parentVal;
  4308. if (instanceData) {
  4309. return mergeData(instanceData, defaultData)
  4310. } else {
  4311. return defaultData
  4312. }
  4313. }
  4314. }
  4315. }
  4316. strats.data = function (
  4317. parentVal,
  4318. childVal,
  4319. vm
  4320. ) {
  4321. if (!vm) {
  4322. if (childVal && typeof childVal !== 'function') {
  4323. true && warn(
  4324. 'The "data" option should be a function ' +
  4325. 'that returns a per-instance value in component ' +
  4326. 'definitions.',
  4327. vm
  4328. );
  4329. return parentVal
  4330. }
  4331. return mergeDataOrFn(parentVal, childVal)
  4332. }
  4333. return mergeDataOrFn(parentVal, childVal, vm)
  4334. };
  4335. /**
  4336. * Hooks and props are merged as arrays.
  4337. */
  4338. function mergeHook (
  4339. parentVal,
  4340. childVal
  4341. ) {
  4342. var res = childVal
  4343. ? parentVal
  4344. ? parentVal.concat(childVal)
  4345. : Array.isArray(childVal)
  4346. ? childVal
  4347. : [childVal]
  4348. : parentVal;
  4349. return res
  4350. ? dedupeHooks(res)
  4351. : res
  4352. }
  4353. function dedupeHooks (hooks) {
  4354. var res = [];
  4355. for (var i = 0; i < hooks.length; i++) {
  4356. if (res.indexOf(hooks[i]) === -1) {
  4357. res.push(hooks[i]);
  4358. }
  4359. }
  4360. return res
  4361. }
  4362. LIFECYCLE_HOOKS.forEach(function (hook) {
  4363. strats[hook] = mergeHook;
  4364. });
  4365. /**
  4366. * Assets
  4367. *
  4368. * When a vm is present (instance creation), we need to do
  4369. * a three-way merge between constructor options, instance
  4370. * options and parent options.
  4371. */
  4372. function mergeAssets (
  4373. parentVal,
  4374. childVal,
  4375. vm,
  4376. key
  4377. ) {
  4378. var res = Object.create(parentVal || null);
  4379. if (childVal) {
  4380. true && assertObjectType(key, childVal, vm);
  4381. return extend(res, childVal)
  4382. } else {
  4383. return res
  4384. }
  4385. }
  4386. ASSET_TYPES.forEach(function (type) {
  4387. strats[type + 's'] = mergeAssets;
  4388. });
  4389. /**
  4390. * Watchers.
  4391. *
  4392. * Watchers hashes should not overwrite one
  4393. * another, so we merge them as arrays.
  4394. */
  4395. strats.watch = function (
  4396. parentVal,
  4397. childVal,
  4398. vm,
  4399. key
  4400. ) {
  4401. // work around Firefox's Object.prototype.watch...
  4402. if (parentVal === nativeWatch) { parentVal = undefined; }
  4403. if (childVal === nativeWatch) { childVal = undefined; }
  4404. /* istanbul ignore if */
  4405. if (!childVal) { return Object.create(parentVal || null) }
  4406. if (true) {
  4407. assertObjectType(key, childVal, vm);
  4408. }
  4409. if (!parentVal) { return childVal }
  4410. var ret = {};
  4411. extend(ret, parentVal);
  4412. for (var key$1 in childVal) {
  4413. var parent = ret[key$1];
  4414. var child = childVal[key$1];
  4415. if (parent && !Array.isArray(parent)) {
  4416. parent = [parent];
  4417. }
  4418. ret[key$1] = parent
  4419. ? parent.concat(child)
  4420. : Array.isArray(child) ? child : [child];
  4421. }
  4422. return ret
  4423. };
  4424. /**
  4425. * Other object hashes.
  4426. */
  4427. strats.props =
  4428. strats.methods =
  4429. strats.inject =
  4430. strats.computed = function (
  4431. parentVal,
  4432. childVal,
  4433. vm,
  4434. key
  4435. ) {
  4436. if (childVal && "development" !== 'production') {
  4437. assertObjectType(key, childVal, vm);
  4438. }
  4439. if (!parentVal) { return childVal }
  4440. var ret = Object.create(null);
  4441. extend(ret, parentVal);
  4442. if (childVal) { extend(ret, childVal); }
  4443. return ret
  4444. };
  4445. strats.provide = mergeDataOrFn;
  4446. /**
  4447. * Default strategy.
  4448. */
  4449. var defaultStrat = function (parentVal, childVal) {
  4450. return childVal === undefined
  4451. ? parentVal
  4452. : childVal
  4453. };
  4454. /**
  4455. * Validate component names
  4456. */
  4457. function checkComponents (options) {
  4458. for (var key in options.components) {
  4459. validateComponentName(key);
  4460. }
  4461. }
  4462. function validateComponentName (name) {
  4463. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4464. warn(
  4465. 'Invalid component name: "' + name + '". Component names ' +
  4466. 'should conform to valid custom element name in html5 specification.'
  4467. );
  4468. }
  4469. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4470. warn(
  4471. 'Do not use built-in or reserved HTML elements as component ' +
  4472. 'id: ' + name
  4473. );
  4474. }
  4475. }
  4476. /**
  4477. * Ensure all props option syntax are normalized into the
  4478. * Object-based format.
  4479. */
  4480. function normalizeProps (options, vm) {
  4481. var props = options.props;
  4482. if (!props) { return }
  4483. var res = {};
  4484. var i, val, name;
  4485. if (Array.isArray(props)) {
  4486. i = props.length;
  4487. while (i--) {
  4488. val = props[i];
  4489. if (typeof val === 'string') {
  4490. name = camelize(val);
  4491. res[name] = { type: null };
  4492. } else if (true) {
  4493. warn('props must be strings when using array syntax.');
  4494. }
  4495. }
  4496. } else if (isPlainObject(props)) {
  4497. for (var key in props) {
  4498. val = props[key];
  4499. name = camelize(key);
  4500. res[name] = isPlainObject(val)
  4501. ? val
  4502. : { type: val };
  4503. }
  4504. } else if (true) {
  4505. warn(
  4506. "Invalid value for option \"props\": expected an Array or an Object, " +
  4507. "but got " + (toRawType(props)) + ".",
  4508. vm
  4509. );
  4510. }
  4511. options.props = res;
  4512. }
  4513. /**
  4514. * Normalize all injections into Object-based format
  4515. */
  4516. function normalizeInject (options, vm) {
  4517. var inject = options.inject;
  4518. if (!inject) { return }
  4519. var normalized = options.inject = {};
  4520. if (Array.isArray(inject)) {
  4521. for (var i = 0; i < inject.length; i++) {
  4522. normalized[inject[i]] = { from: inject[i] };
  4523. }
  4524. } else if (isPlainObject(inject)) {
  4525. for (var key in inject) {
  4526. var val = inject[key];
  4527. normalized[key] = isPlainObject(val)
  4528. ? extend({ from: key }, val)
  4529. : { from: val };
  4530. }
  4531. } else if (true) {
  4532. warn(
  4533. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4534. "but got " + (toRawType(inject)) + ".",
  4535. vm
  4536. );
  4537. }
  4538. }
  4539. /**
  4540. * Normalize raw function directives into object format.
  4541. */
  4542. function normalizeDirectives (options) {
  4543. var dirs = options.directives;
  4544. if (dirs) {
  4545. for (var key in dirs) {
  4546. var def$$1 = dirs[key];
  4547. if (typeof def$$1 === 'function') {
  4548. dirs[key] = { bind: def$$1, update: def$$1 };
  4549. }
  4550. }
  4551. }
  4552. }
  4553. function assertObjectType (name, value, vm) {
  4554. if (!isPlainObject(value)) {
  4555. warn(
  4556. "Invalid value for option \"" + name + "\": expected an Object, " +
  4557. "but got " + (toRawType(value)) + ".",
  4558. vm
  4559. );
  4560. }
  4561. }
  4562. /**
  4563. * Merge two option objects into a new one.
  4564. * Core utility used in both instantiation and inheritance.
  4565. */
  4566. function mergeOptions (
  4567. parent,
  4568. child,
  4569. vm
  4570. ) {
  4571. if (true) {
  4572. checkComponents(child);
  4573. }
  4574. if (typeof child === 'function') {
  4575. child = child.options;
  4576. }
  4577. normalizeProps(child, vm);
  4578. normalizeInject(child, vm);
  4579. normalizeDirectives(child);
  4580. // Apply extends and mixins on the child options,
  4581. // but only if it is a raw options object that isn't
  4582. // the result of another mergeOptions call.
  4583. // Only merged options has the _base property.
  4584. if (!child._base) {
  4585. if (child.extends) {
  4586. parent = mergeOptions(parent, child.extends, vm);
  4587. }
  4588. if (child.mixins) {
  4589. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4590. parent = mergeOptions(parent, child.mixins[i], vm);
  4591. }
  4592. }
  4593. }
  4594. var options = {};
  4595. var key;
  4596. for (key in parent) {
  4597. mergeField(key);
  4598. }
  4599. for (key in child) {
  4600. if (!hasOwn(parent, key)) {
  4601. mergeField(key);
  4602. }
  4603. }
  4604. function mergeField (key) {
  4605. var strat = strats[key] || defaultStrat;
  4606. options[key] = strat(parent[key], child[key], vm, key);
  4607. }
  4608. return options
  4609. }
  4610. /**
  4611. * Resolve an asset.
  4612. * This function is used because child instances need access
  4613. * to assets defined in its ancestor chain.
  4614. */
  4615. function resolveAsset (
  4616. options,
  4617. type,
  4618. id,
  4619. warnMissing
  4620. ) {
  4621. /* istanbul ignore if */
  4622. if (typeof id !== 'string') {
  4623. return
  4624. }
  4625. var assets = options[type];
  4626. // check local registration variations first
  4627. if (hasOwn(assets, id)) { return assets[id] }
  4628. var camelizedId = camelize(id);
  4629. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4630. var PascalCaseId = capitalize(camelizedId);
  4631. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4632. // fallback to prototype chain
  4633. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4634. if ( true && warnMissing && !res) {
  4635. warn(
  4636. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4637. options
  4638. );
  4639. }
  4640. return res
  4641. }
  4642. /* */
  4643. function validateProp (
  4644. key,
  4645. propOptions,
  4646. propsData,
  4647. vm
  4648. ) {
  4649. var prop = propOptions[key];
  4650. var absent = !hasOwn(propsData, key);
  4651. var value = propsData[key];
  4652. // boolean casting
  4653. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4654. if (booleanIndex > -1) {
  4655. if (absent && !hasOwn(prop, 'default')) {
  4656. value = false;
  4657. } else if (value === '' || value === hyphenate(key)) {
  4658. // only cast empty string / same name to boolean if
  4659. // boolean has higher priority
  4660. var stringIndex = getTypeIndex(String, prop.type);
  4661. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4662. value = true;
  4663. }
  4664. }
  4665. }
  4666. // check default value
  4667. if (value === undefined) {
  4668. value = getPropDefaultValue(vm, prop, key);
  4669. // since the default value is a fresh copy,
  4670. // make sure to observe it.
  4671. var prevShouldObserve = shouldObserve;
  4672. toggleObserving(true);
  4673. observe(value);
  4674. toggleObserving(prevShouldObserve);
  4675. }
  4676. if (
  4677. true
  4678. ) {
  4679. assertProp(prop, key, value, vm, absent);
  4680. }
  4681. return value
  4682. }
  4683. /**
  4684. * Get the default value of a prop.
  4685. */
  4686. function getPropDefaultValue (vm, prop, key) {
  4687. // no default, return undefined
  4688. if (!hasOwn(prop, 'default')) {
  4689. return undefined
  4690. }
  4691. var def = prop.default;
  4692. // warn against non-factory defaults for Object & Array
  4693. if ( true && isObject(def)) {
  4694. warn(
  4695. 'Invalid default value for prop "' + key + '": ' +
  4696. 'Props with type Object/Array must use a factory function ' +
  4697. 'to return the default value.',
  4698. vm
  4699. );
  4700. }
  4701. // the raw prop value was also undefined from previous render,
  4702. // return previous default value to avoid unnecessary watcher trigger
  4703. if (vm && vm.$options.propsData &&
  4704. vm.$options.propsData[key] === undefined &&
  4705. vm._props[key] !== undefined
  4706. ) {
  4707. return vm._props[key]
  4708. }
  4709. // call factory function for non-Function types
  4710. // a value is Function if its prototype is function even across different execution context
  4711. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4712. ? def.call(vm)
  4713. : def
  4714. }
  4715. /**
  4716. * Assert whether a prop is valid.
  4717. */
  4718. function assertProp (
  4719. prop,
  4720. name,
  4721. value,
  4722. vm,
  4723. absent
  4724. ) {
  4725. if (prop.required && absent) {
  4726. warn(
  4727. 'Missing required prop: "' + name + '"',
  4728. vm
  4729. );
  4730. return
  4731. }
  4732. if (value == null && !prop.required) {
  4733. return
  4734. }
  4735. var type = prop.type;
  4736. var valid = !type || type === true;
  4737. var expectedTypes = [];
  4738. if (type) {
  4739. if (!Array.isArray(type)) {
  4740. type = [type];
  4741. }
  4742. for (var i = 0; i < type.length && !valid; i++) {
  4743. var assertedType = assertType(value, type[i]);
  4744. expectedTypes.push(assertedType.expectedType || '');
  4745. valid = assertedType.valid;
  4746. }
  4747. }
  4748. if (!valid) {
  4749. warn(
  4750. getInvalidTypeMessage(name, value, expectedTypes),
  4751. vm
  4752. );
  4753. return
  4754. }
  4755. var validator = prop.validator;
  4756. if (validator) {
  4757. if (!validator(value)) {
  4758. warn(
  4759. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4760. vm
  4761. );
  4762. }
  4763. }
  4764. }
  4765. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4766. function assertType (value, type) {
  4767. var valid;
  4768. var expectedType = getType(type);
  4769. if (simpleCheckRE.test(expectedType)) {
  4770. var t = typeof value;
  4771. valid = t === expectedType.toLowerCase();
  4772. // for primitive wrapper objects
  4773. if (!valid && t === 'object') {
  4774. valid = value instanceof type;
  4775. }
  4776. } else if (expectedType === 'Object') {
  4777. valid = isPlainObject(value);
  4778. } else if (expectedType === 'Array') {
  4779. valid = Array.isArray(value);
  4780. } else {
  4781. valid = value instanceof type;
  4782. }
  4783. return {
  4784. valid: valid,
  4785. expectedType: expectedType
  4786. }
  4787. }
  4788. /**
  4789. * Use function string name to check built-in types,
  4790. * because a simple equality check will fail when running
  4791. * across different vms / iframes.
  4792. */
  4793. function getType (fn) {
  4794. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4795. return match ? match[1] : ''
  4796. }
  4797. function isSameType (a, b) {
  4798. return getType(a) === getType(b)
  4799. }
  4800. function getTypeIndex (type, expectedTypes) {
  4801. if (!Array.isArray(expectedTypes)) {
  4802. return isSameType(expectedTypes, type) ? 0 : -1
  4803. }
  4804. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4805. if (isSameType(expectedTypes[i], type)) {
  4806. return i
  4807. }
  4808. }
  4809. return -1
  4810. }
  4811. function getInvalidTypeMessage (name, value, expectedTypes) {
  4812. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4813. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4814. var expectedType = expectedTypes[0];
  4815. var receivedType = toRawType(value);
  4816. var expectedValue = styleValue(value, expectedType);
  4817. var receivedValue = styleValue(value, receivedType);
  4818. // check if we need to specify expected value
  4819. if (expectedTypes.length === 1 &&
  4820. isExplicable(expectedType) &&
  4821. !isBoolean(expectedType, receivedType)) {
  4822. message += " with value " + expectedValue;
  4823. }
  4824. message += ", got " + receivedType + " ";
  4825. // check if we need to specify received value
  4826. if (isExplicable(receivedType)) {
  4827. message += "with value " + receivedValue + ".";
  4828. }
  4829. return message
  4830. }
  4831. function styleValue (value, type) {
  4832. if (type === 'String') {
  4833. return ("\"" + value + "\"")
  4834. } else if (type === 'Number') {
  4835. return ("" + (Number(value)))
  4836. } else {
  4837. return ("" + value)
  4838. }
  4839. }
  4840. function isExplicable (value) {
  4841. var explicitTypes = ['string', 'number', 'boolean'];
  4842. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4843. }
  4844. function isBoolean () {
  4845. var args = [], len = arguments.length;
  4846. while ( len-- ) args[ len ] = arguments[ len ];
  4847. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4848. }
  4849. /* */
  4850. function handleError (err, vm, info) {
  4851. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4852. // See: https://github.com/vuejs/vuex/issues/1505
  4853. pushTarget();
  4854. try {
  4855. if (vm) {
  4856. var cur = vm;
  4857. while ((cur = cur.$parent)) {
  4858. var hooks = cur.$options.errorCaptured;
  4859. if (hooks) {
  4860. for (var i = 0; i < hooks.length; i++) {
  4861. try {
  4862. var capture = hooks[i].call(cur, err, vm, info) === false;
  4863. if (capture) { return }
  4864. } catch (e) {
  4865. globalHandleError(e, cur, 'errorCaptured hook');
  4866. }
  4867. }
  4868. }
  4869. }
  4870. }
  4871. globalHandleError(err, vm, info);
  4872. } finally {
  4873. popTarget();
  4874. }
  4875. }
  4876. function invokeWithErrorHandling (
  4877. handler,
  4878. context,
  4879. args,
  4880. vm,
  4881. info
  4882. ) {
  4883. var res;
  4884. try {
  4885. res = args ? handler.apply(context, args) : handler.call(context);
  4886. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4887. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4888. // issue #9511
  4889. // avoid catch triggering multiple times when nested calls
  4890. res._handled = true;
  4891. }
  4892. } catch (e) {
  4893. handleError(e, vm, info);
  4894. }
  4895. return res
  4896. }
  4897. function globalHandleError (err, vm, info) {
  4898. if (config.errorHandler) {
  4899. try {
  4900. return config.errorHandler.call(null, err, vm, info)
  4901. } catch (e) {
  4902. // if the user intentionally throws the original error in the handler,
  4903. // do not log it twice
  4904. if (e !== err) {
  4905. logError(e, null, 'config.errorHandler');
  4906. }
  4907. }
  4908. }
  4909. logError(err, vm, info);
  4910. }
  4911. function logError (err, vm, info) {
  4912. if (true) {
  4913. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4914. }
  4915. /* istanbul ignore else */
  4916. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4917. console.error(err);
  4918. } else {
  4919. throw err
  4920. }
  4921. }
  4922. /* */
  4923. var callbacks = [];
  4924. var pending = false;
  4925. function flushCallbacks () {
  4926. pending = false;
  4927. var copies = callbacks.slice(0);
  4928. callbacks.length = 0;
  4929. for (var i = 0; i < copies.length; i++) {
  4930. copies[i]();
  4931. }
  4932. }
  4933. // Here we have async deferring wrappers using microtasks.
  4934. // In 2.5 we used (macro) tasks (in combination with microtasks).
  4935. // However, it has subtle problems when state is changed right before repaint
  4936. // (e.g. #6813, out-in transitions).
  4937. // Also, using (macro) tasks in event handler would cause some weird behaviors
  4938. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  4939. // So we now use microtasks everywhere, again.
  4940. // A major drawback of this tradeoff is that there are some scenarios
  4941. // where microtasks have too high a priority and fire in between supposedly
  4942. // sequential events (e.g. #4521, #6690, which have workarounds)
  4943. // or even between bubbling of the same event (#6566).
  4944. var timerFunc;
  4945. // The nextTick behavior leverages the microtask queue, which can be accessed
  4946. // via either native Promise.then or MutationObserver.
  4947. // MutationObserver has wider support, however it is seriously bugged in
  4948. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  4949. // completely stops working after triggering a few times... so, if native
  4950. // Promise is available, we will use it:
  4951. /* istanbul ignore next, $flow-disable-line */
  4952. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  4953. var p = Promise.resolve();
  4954. timerFunc = function () {
  4955. p.then(flushCallbacks);
  4956. // In problematic UIWebViews, Promise.then doesn't completely break, but
  4957. // it can get stuck in a weird state where callbacks are pushed into the
  4958. // microtask queue but the queue isn't being flushed, until the browser
  4959. // needs to do some other work, e.g. handle a timer. Therefore we can
  4960. // "force" the microtask queue to be flushed by adding an empty timer.
  4961. if (isIOS) { setTimeout(noop); }
  4962. };
  4963. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  4964. isNative(MutationObserver) ||
  4965. // PhantomJS and iOS 7.x
  4966. MutationObserver.toString() === '[object MutationObserverConstructor]'
  4967. )) {
  4968. // Use MutationObserver where native Promise is not available,
  4969. // e.g. PhantomJS, iOS7, Android 4.4
  4970. // (#6466 MutationObserver is unreliable in IE11)
  4971. var counter = 1;
  4972. var observer = new MutationObserver(flushCallbacks);
  4973. var textNode = document.createTextNode(String(counter));
  4974. observer.observe(textNode, {
  4975. characterData: true
  4976. });
  4977. timerFunc = function () {
  4978. counter = (counter + 1) % 2;
  4979. textNode.data = String(counter);
  4980. };
  4981. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  4982. // Fallback to setImmediate.
  4983. // Technically it leverages the (macro) task queue,
  4984. // but it is still a better choice than setTimeout.
  4985. timerFunc = function () {
  4986. setImmediate(flushCallbacks);
  4987. };
  4988. } else {
  4989. // Fallback to setTimeout.
  4990. timerFunc = function () {
  4991. setTimeout(flushCallbacks, 0);
  4992. };
  4993. }
  4994. function nextTick (cb, ctx) {
  4995. var _resolve;
  4996. callbacks.push(function () {
  4997. if (cb) {
  4998. try {
  4999. cb.call(ctx);
  5000. } catch (e) {
  5001. handleError(e, ctx, 'nextTick');
  5002. }
  5003. } else if (_resolve) {
  5004. _resolve(ctx);
  5005. }
  5006. });
  5007. if (!pending) {
  5008. pending = true;
  5009. timerFunc();
  5010. }
  5011. // $flow-disable-line
  5012. if (!cb && typeof Promise !== 'undefined') {
  5013. return new Promise(function (resolve) {
  5014. _resolve = resolve;
  5015. })
  5016. }
  5017. }
  5018. /* */
  5019. /* not type checking this file because flow doesn't play well with Proxy */
  5020. var initProxy;
  5021. if (true) {
  5022. var allowedGlobals = makeMap(
  5023. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5024. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5025. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5026. 'require' // for Webpack/Browserify
  5027. );
  5028. var warnNonPresent = function (target, key) {
  5029. warn(
  5030. "Property or method \"" + key + "\" is not defined on the instance but " +
  5031. 'referenced during render. Make sure that this property is reactive, ' +
  5032. 'either in the data option, or for class-based components, by ' +
  5033. 'initializing the property. ' +
  5034. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5035. target
  5036. );
  5037. };
  5038. var warnReservedPrefix = function (target, key) {
  5039. warn(
  5040. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5041. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5042. 'prevent conflicts with Vue internals. ' +
  5043. 'See: https://vuejs.org/v2/api/#data',
  5044. target
  5045. );
  5046. };
  5047. var hasProxy =
  5048. typeof Proxy !== 'undefined' && isNative(Proxy);
  5049. if (hasProxy) {
  5050. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5051. config.keyCodes = new Proxy(config.keyCodes, {
  5052. set: function set (target, key, value) {
  5053. if (isBuiltInModifier(key)) {
  5054. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5055. return false
  5056. } else {
  5057. target[key] = value;
  5058. return true
  5059. }
  5060. }
  5061. });
  5062. }
  5063. var hasHandler = {
  5064. has: function has (target, key) {
  5065. var has = key in target;
  5066. var isAllowed = allowedGlobals(key) ||
  5067. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5068. if (!has && !isAllowed) {
  5069. if (key in target.$data) { warnReservedPrefix(target, key); }
  5070. else { warnNonPresent(target, key); }
  5071. }
  5072. return has || !isAllowed
  5073. }
  5074. };
  5075. var getHandler = {
  5076. get: function get (target, key) {
  5077. if (typeof key === 'string' && !(key in target)) {
  5078. if (key in target.$data) { warnReservedPrefix(target, key); }
  5079. else { warnNonPresent(target, key); }
  5080. }
  5081. return target[key]
  5082. }
  5083. };
  5084. initProxy = function initProxy (vm) {
  5085. if (hasProxy) {
  5086. // determine which proxy handler to use
  5087. var options = vm.$options;
  5088. var handlers = options.render && options.render._withStripped
  5089. ? getHandler
  5090. : hasHandler;
  5091. vm._renderProxy = new Proxy(vm, handlers);
  5092. } else {
  5093. vm._renderProxy = vm;
  5094. }
  5095. };
  5096. }
  5097. /* */
  5098. var seenObjects = new _Set();
  5099. /**
  5100. * Recursively traverse an object to evoke all converted
  5101. * getters, so that every nested property inside the object
  5102. * is collected as a "deep" dependency.
  5103. */
  5104. function traverse (val) {
  5105. _traverse(val, seenObjects);
  5106. seenObjects.clear();
  5107. }
  5108. function _traverse (val, seen) {
  5109. var i, keys;
  5110. var isA = Array.isArray(val);
  5111. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5112. return
  5113. }
  5114. if (val.__ob__) {
  5115. var depId = val.__ob__.dep.id;
  5116. if (seen.has(depId)) {
  5117. return
  5118. }
  5119. seen.add(depId);
  5120. }
  5121. if (isA) {
  5122. i = val.length;
  5123. while (i--) { _traverse(val[i], seen); }
  5124. } else {
  5125. keys = Object.keys(val);
  5126. i = keys.length;
  5127. while (i--) { _traverse(val[keys[i]], seen); }
  5128. }
  5129. }
  5130. var mark;
  5131. var measure;
  5132. if (true) {
  5133. var perf = inBrowser && window.performance;
  5134. /* istanbul ignore if */
  5135. if (
  5136. perf &&
  5137. perf.mark &&
  5138. perf.measure &&
  5139. perf.clearMarks &&
  5140. perf.clearMeasures
  5141. ) {
  5142. mark = function (tag) { return perf.mark(tag); };
  5143. measure = function (name, startTag, endTag) {
  5144. perf.measure(name, startTag, endTag);
  5145. perf.clearMarks(startTag);
  5146. perf.clearMarks(endTag);
  5147. // perf.clearMeasures(name)
  5148. };
  5149. }
  5150. }
  5151. /* */
  5152. var normalizeEvent = cached(function (name) {
  5153. var passive = name.charAt(0) === '&';
  5154. name = passive ? name.slice(1) : name;
  5155. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5156. name = once$$1 ? name.slice(1) : name;
  5157. var capture = name.charAt(0) === '!';
  5158. name = capture ? name.slice(1) : name;
  5159. return {
  5160. name: name,
  5161. once: once$$1,
  5162. capture: capture,
  5163. passive: passive
  5164. }
  5165. });
  5166. function createFnInvoker (fns, vm) {
  5167. function invoker () {
  5168. var arguments$1 = arguments;
  5169. var fns = invoker.fns;
  5170. if (Array.isArray(fns)) {
  5171. var cloned = fns.slice();
  5172. for (var i = 0; i < cloned.length; i++) {
  5173. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5174. }
  5175. } else {
  5176. // return handler return value for single handlers
  5177. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5178. }
  5179. }
  5180. invoker.fns = fns;
  5181. return invoker
  5182. }
  5183. function updateListeners (
  5184. on,
  5185. oldOn,
  5186. add,
  5187. remove$$1,
  5188. createOnceHandler,
  5189. vm
  5190. ) {
  5191. var name, def$$1, cur, old, event;
  5192. for (name in on) {
  5193. def$$1 = cur = on[name];
  5194. old = oldOn[name];
  5195. event = normalizeEvent(name);
  5196. if (isUndef(cur)) {
  5197. true && warn(
  5198. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5199. vm
  5200. );
  5201. } else if (isUndef(old)) {
  5202. if (isUndef(cur.fns)) {
  5203. cur = on[name] = createFnInvoker(cur, vm);
  5204. }
  5205. if (isTrue(event.once)) {
  5206. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5207. }
  5208. add(event.name, cur, event.capture, event.passive, event.params);
  5209. } else if (cur !== old) {
  5210. old.fns = cur;
  5211. on[name] = old;
  5212. }
  5213. }
  5214. for (name in oldOn) {
  5215. if (isUndef(on[name])) {
  5216. event = normalizeEvent(name);
  5217. remove$$1(event.name, oldOn[name], event.capture);
  5218. }
  5219. }
  5220. }
  5221. /* */
  5222. /* */
  5223. // fixed by xxxxxx (mp properties)
  5224. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5225. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5226. if (isUndef(propOptions)) {
  5227. return res
  5228. }
  5229. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5230. var attrs = data.attrs;
  5231. var props = data.props;
  5232. if (isDef(attrs) || isDef(props)) {
  5233. for (var key in propOptions) {
  5234. var altKey = hyphenate(key);
  5235. var result = checkProp(res, props, key, altKey, true) ||
  5236. checkProp(res, attrs, key, altKey, false);
  5237. // externalClass
  5238. if (
  5239. result &&
  5240. res[key] &&
  5241. externalClasses.indexOf(altKey) !== -1 &&
  5242. context[camelize(res[key])]
  5243. ) {
  5244. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5245. res[key] = context[camelize(res[key])];
  5246. }
  5247. }
  5248. }
  5249. return res
  5250. }
  5251. function extractPropsFromVNodeData (
  5252. data,
  5253. Ctor,
  5254. tag,
  5255. context// fixed by xxxxxx
  5256. ) {
  5257. // we are only extracting raw values here.
  5258. // validation and default values are handled in the child
  5259. // component itself.
  5260. var propOptions = Ctor.options.props;
  5261. if (isUndef(propOptions)) {
  5262. // fixed by xxxxxx
  5263. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5264. }
  5265. var res = {};
  5266. var attrs = data.attrs;
  5267. var props = data.props;
  5268. if (isDef(attrs) || isDef(props)) {
  5269. for (var key in propOptions) {
  5270. var altKey = hyphenate(key);
  5271. if (true) {
  5272. var keyInLowerCase = key.toLowerCase();
  5273. if (
  5274. key !== keyInLowerCase &&
  5275. attrs && hasOwn(attrs, keyInLowerCase)
  5276. ) {
  5277. tip(
  5278. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5279. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5280. " \"" + key + "\". " +
  5281. "Note that HTML attributes are case-insensitive and camelCased " +
  5282. "props need to use their kebab-case equivalents when using in-DOM " +
  5283. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5284. );
  5285. }
  5286. }
  5287. checkProp(res, props, key, altKey, true) ||
  5288. checkProp(res, attrs, key, altKey, false);
  5289. }
  5290. }
  5291. // fixed by xxxxxx
  5292. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5293. }
  5294. function checkProp (
  5295. res,
  5296. hash,
  5297. key,
  5298. altKey,
  5299. preserve
  5300. ) {
  5301. if (isDef(hash)) {
  5302. if (hasOwn(hash, key)) {
  5303. res[key] = hash[key];
  5304. if (!preserve) {
  5305. delete hash[key];
  5306. }
  5307. return true
  5308. } else if (hasOwn(hash, altKey)) {
  5309. res[key] = hash[altKey];
  5310. if (!preserve) {
  5311. delete hash[altKey];
  5312. }
  5313. return true
  5314. }
  5315. }
  5316. return false
  5317. }
  5318. /* */
  5319. // The template compiler attempts to minimize the need for normalization by
  5320. // statically analyzing the template at compile time.
  5321. //
  5322. // For plain HTML markup, normalization can be completely skipped because the
  5323. // generated render function is guaranteed to return Array<VNode>. There are
  5324. // two cases where extra normalization is needed:
  5325. // 1. When the children contains components - because a functional component
  5326. // may return an Array instead of a single root. In this case, just a simple
  5327. // normalization is needed - if any child is an Array, we flatten the whole
  5328. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5329. // because functional components already normalize their own children.
  5330. function simpleNormalizeChildren (children) {
  5331. for (var i = 0; i < children.length; i++) {
  5332. if (Array.isArray(children[i])) {
  5333. return Array.prototype.concat.apply([], children)
  5334. }
  5335. }
  5336. return children
  5337. }
  5338. // 2. When the children contains constructs that always generated nested Arrays,
  5339. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5340. // with hand-written render functions / JSX. In such cases a full normalization
  5341. // is needed to cater to all possible types of children values.
  5342. function normalizeChildren (children) {
  5343. return isPrimitive(children)
  5344. ? [createTextVNode(children)]
  5345. : Array.isArray(children)
  5346. ? normalizeArrayChildren(children)
  5347. : undefined
  5348. }
  5349. function isTextNode (node) {
  5350. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5351. }
  5352. function normalizeArrayChildren (children, nestedIndex) {
  5353. var res = [];
  5354. var i, c, lastIndex, last;
  5355. for (i = 0; i < children.length; i++) {
  5356. c = children[i];
  5357. if (isUndef(c) || typeof c === 'boolean') { continue }
  5358. lastIndex = res.length - 1;
  5359. last = res[lastIndex];
  5360. // nested
  5361. if (Array.isArray(c)) {
  5362. if (c.length > 0) {
  5363. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5364. // merge adjacent text nodes
  5365. if (isTextNode(c[0]) && isTextNode(last)) {
  5366. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5367. c.shift();
  5368. }
  5369. res.push.apply(res, c);
  5370. }
  5371. } else if (isPrimitive(c)) {
  5372. if (isTextNode(last)) {
  5373. // merge adjacent text nodes
  5374. // this is necessary for SSR hydration because text nodes are
  5375. // essentially merged when rendered to HTML strings
  5376. res[lastIndex] = createTextVNode(last.text + c);
  5377. } else if (c !== '') {
  5378. // convert primitive to vnode
  5379. res.push(createTextVNode(c));
  5380. }
  5381. } else {
  5382. if (isTextNode(c) && isTextNode(last)) {
  5383. // merge adjacent text nodes
  5384. res[lastIndex] = createTextVNode(last.text + c.text);
  5385. } else {
  5386. // default key for nested array children (likely generated by v-for)
  5387. if (isTrue(children._isVList) &&
  5388. isDef(c.tag) &&
  5389. isUndef(c.key) &&
  5390. isDef(nestedIndex)) {
  5391. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5392. }
  5393. res.push(c);
  5394. }
  5395. }
  5396. }
  5397. return res
  5398. }
  5399. /* */
  5400. function initProvide (vm) {
  5401. var provide = vm.$options.provide;
  5402. if (provide) {
  5403. vm._provided = typeof provide === 'function'
  5404. ? provide.call(vm)
  5405. : provide;
  5406. }
  5407. }
  5408. function initInjections (vm) {
  5409. var result = resolveInject(vm.$options.inject, vm);
  5410. if (result) {
  5411. toggleObserving(false);
  5412. Object.keys(result).forEach(function (key) {
  5413. /* istanbul ignore else */
  5414. if (true) {
  5415. defineReactive$$1(vm, key, result[key], function () {
  5416. warn(
  5417. "Avoid mutating an injected value directly since the changes will be " +
  5418. "overwritten whenever the provided component re-renders. " +
  5419. "injection being mutated: \"" + key + "\"",
  5420. vm
  5421. );
  5422. });
  5423. } else {}
  5424. });
  5425. toggleObserving(true);
  5426. }
  5427. }
  5428. function resolveInject (inject, vm) {
  5429. if (inject) {
  5430. // inject is :any because flow is not smart enough to figure out cached
  5431. var result = Object.create(null);
  5432. var keys = hasSymbol
  5433. ? Reflect.ownKeys(inject)
  5434. : Object.keys(inject);
  5435. for (var i = 0; i < keys.length; i++) {
  5436. var key = keys[i];
  5437. // #6574 in case the inject object is observed...
  5438. if (key === '__ob__') { continue }
  5439. var provideKey = inject[key].from;
  5440. var source = vm;
  5441. while (source) {
  5442. if (source._provided && hasOwn(source._provided, provideKey)) {
  5443. result[key] = source._provided[provideKey];
  5444. break
  5445. }
  5446. source = source.$parent;
  5447. }
  5448. if (!source) {
  5449. if ('default' in inject[key]) {
  5450. var provideDefault = inject[key].default;
  5451. result[key] = typeof provideDefault === 'function'
  5452. ? provideDefault.call(vm)
  5453. : provideDefault;
  5454. } else if (true) {
  5455. warn(("Injection \"" + key + "\" not found"), vm);
  5456. }
  5457. }
  5458. }
  5459. return result
  5460. }
  5461. }
  5462. /* */
  5463. /**
  5464. * Runtime helper for resolving raw children VNodes into a slot object.
  5465. */
  5466. function resolveSlots (
  5467. children,
  5468. context
  5469. ) {
  5470. if (!children || !children.length) {
  5471. return {}
  5472. }
  5473. var slots = {};
  5474. for (var i = 0, l = children.length; i < l; i++) {
  5475. var child = children[i];
  5476. var data = child.data;
  5477. // remove slot attribute if the node is resolved as a Vue slot node
  5478. if (data && data.attrs && data.attrs.slot) {
  5479. delete data.attrs.slot;
  5480. }
  5481. // named slots should only be respected if the vnode was rendered in the
  5482. // same context.
  5483. if ((child.context === context || child.fnContext === context) &&
  5484. data && data.slot != null
  5485. ) {
  5486. var name = data.slot;
  5487. var slot = (slots[name] || (slots[name] = []));
  5488. if (child.tag === 'template') {
  5489. slot.push.apply(slot, child.children || []);
  5490. } else {
  5491. slot.push(child);
  5492. }
  5493. } else {
  5494. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5495. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5496. (slots['page'] || (slots['page'] = [])).push(child);
  5497. }else{
  5498. (slots.default || (slots.default = [])).push(child);
  5499. }
  5500. }
  5501. }
  5502. // ignore slots that contains only whitespace
  5503. for (var name$1 in slots) {
  5504. if (slots[name$1].every(isWhitespace)) {
  5505. delete slots[name$1];
  5506. }
  5507. }
  5508. return slots
  5509. }
  5510. function isWhitespace (node) {
  5511. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5512. }
  5513. /* */
  5514. function normalizeScopedSlots (
  5515. slots,
  5516. normalSlots,
  5517. prevSlots
  5518. ) {
  5519. var res;
  5520. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5521. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5522. var key = slots && slots.$key;
  5523. if (!slots) {
  5524. res = {};
  5525. } else if (slots._normalized) {
  5526. // fast path 1: child component re-render only, parent did not change
  5527. return slots._normalized
  5528. } else if (
  5529. isStable &&
  5530. prevSlots &&
  5531. prevSlots !== emptyObject &&
  5532. key === prevSlots.$key &&
  5533. !hasNormalSlots &&
  5534. !prevSlots.$hasNormal
  5535. ) {
  5536. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5537. // only need to normalize once
  5538. return prevSlots
  5539. } else {
  5540. res = {};
  5541. for (var key$1 in slots) {
  5542. if (slots[key$1] && key$1[0] !== '$') {
  5543. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5544. }
  5545. }
  5546. }
  5547. // expose normal slots on scopedSlots
  5548. for (var key$2 in normalSlots) {
  5549. if (!(key$2 in res)) {
  5550. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5551. }
  5552. }
  5553. // avoriaz seems to mock a non-extensible $scopedSlots object
  5554. // and when that is passed down this would cause an error
  5555. if (slots && Object.isExtensible(slots)) {
  5556. (slots)._normalized = res;
  5557. }
  5558. def(res, '$stable', isStable);
  5559. def(res, '$key', key);
  5560. def(res, '$hasNormal', hasNormalSlots);
  5561. return res
  5562. }
  5563. function normalizeScopedSlot(normalSlots, key, fn) {
  5564. var normalized = function () {
  5565. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5566. res = res && typeof res === 'object' && !Array.isArray(res)
  5567. ? [res] // single vnode
  5568. : normalizeChildren(res);
  5569. return res && (
  5570. res.length === 0 ||
  5571. (res.length === 1 && res[0].isComment) // #9658
  5572. ) ? undefined
  5573. : res
  5574. };
  5575. // this is a slot using the new v-slot syntax without scope. although it is
  5576. // compiled as a scoped slot, render fn users would expect it to be present
  5577. // on this.$slots because the usage is semantically a normal slot.
  5578. if (fn.proxy) {
  5579. Object.defineProperty(normalSlots, key, {
  5580. get: normalized,
  5581. enumerable: true,
  5582. configurable: true
  5583. });
  5584. }
  5585. return normalized
  5586. }
  5587. function proxyNormalSlot(slots, key) {
  5588. return function () { return slots[key]; }
  5589. }
  5590. /* */
  5591. /**
  5592. * Runtime helper for rendering v-for lists.
  5593. */
  5594. function renderList (
  5595. val,
  5596. render
  5597. ) {
  5598. var ret, i, l, keys, key;
  5599. if (Array.isArray(val) || typeof val === 'string') {
  5600. ret = new Array(val.length);
  5601. for (i = 0, l = val.length; i < l; i++) {
  5602. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5603. }
  5604. } else if (typeof val === 'number') {
  5605. ret = new Array(val);
  5606. for (i = 0; i < val; i++) {
  5607. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5608. }
  5609. } else if (isObject(val)) {
  5610. if (hasSymbol && val[Symbol.iterator]) {
  5611. ret = [];
  5612. var iterator = val[Symbol.iterator]();
  5613. var result = iterator.next();
  5614. while (!result.done) {
  5615. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5616. result = iterator.next();
  5617. }
  5618. } else {
  5619. keys = Object.keys(val);
  5620. ret = new Array(keys.length);
  5621. for (i = 0, l = keys.length; i < l; i++) {
  5622. key = keys[i];
  5623. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5624. }
  5625. }
  5626. }
  5627. if (!isDef(ret)) {
  5628. ret = [];
  5629. }
  5630. (ret)._isVList = true;
  5631. return ret
  5632. }
  5633. /* */
  5634. /**
  5635. * Runtime helper for rendering <slot>
  5636. */
  5637. function renderSlot (
  5638. name,
  5639. fallback,
  5640. props,
  5641. bindObject
  5642. ) {
  5643. var scopedSlotFn = this.$scopedSlots[name];
  5644. var nodes;
  5645. if (scopedSlotFn) { // scoped slot
  5646. props = props || {};
  5647. if (bindObject) {
  5648. if ( true && !isObject(bindObject)) {
  5649. warn(
  5650. 'slot v-bind without argument expects an Object',
  5651. this
  5652. );
  5653. }
  5654. props = extend(extend({}, bindObject), props);
  5655. }
  5656. // fixed by xxxxxx app-plus scopedSlot
  5657. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5658. } else {
  5659. nodes = this.$slots[name] || fallback;
  5660. }
  5661. var target = props && props.slot;
  5662. if (target) {
  5663. return this.$createElement('template', { slot: target }, nodes)
  5664. } else {
  5665. return nodes
  5666. }
  5667. }
  5668. /* */
  5669. /**
  5670. * Runtime helper for resolving filters
  5671. */
  5672. function resolveFilter (id) {
  5673. return resolveAsset(this.$options, 'filters', id, true) || identity
  5674. }
  5675. /* */
  5676. function isKeyNotMatch (expect, actual) {
  5677. if (Array.isArray(expect)) {
  5678. return expect.indexOf(actual) === -1
  5679. } else {
  5680. return expect !== actual
  5681. }
  5682. }
  5683. /**
  5684. * Runtime helper for checking keyCodes from config.
  5685. * exposed as Vue.prototype._k
  5686. * passing in eventKeyName as last argument separately for backwards compat
  5687. */
  5688. function checkKeyCodes (
  5689. eventKeyCode,
  5690. key,
  5691. builtInKeyCode,
  5692. eventKeyName,
  5693. builtInKeyName
  5694. ) {
  5695. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5696. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5697. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5698. } else if (mappedKeyCode) {
  5699. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5700. } else if (eventKeyName) {
  5701. return hyphenate(eventKeyName) !== key
  5702. }
  5703. }
  5704. /* */
  5705. /**
  5706. * Runtime helper for merging v-bind="object" into a VNode's data.
  5707. */
  5708. function bindObjectProps (
  5709. data,
  5710. tag,
  5711. value,
  5712. asProp,
  5713. isSync
  5714. ) {
  5715. if (value) {
  5716. if (!isObject(value)) {
  5717. true && warn(
  5718. 'v-bind without argument expects an Object or Array value',
  5719. this
  5720. );
  5721. } else {
  5722. if (Array.isArray(value)) {
  5723. value = toObject(value);
  5724. }
  5725. var hash;
  5726. var loop = function ( key ) {
  5727. if (
  5728. key === 'class' ||
  5729. key === 'style' ||
  5730. isReservedAttribute(key)
  5731. ) {
  5732. hash = data;
  5733. } else {
  5734. var type = data.attrs && data.attrs.type;
  5735. hash = asProp || config.mustUseProp(tag, type, key)
  5736. ? data.domProps || (data.domProps = {})
  5737. : data.attrs || (data.attrs = {});
  5738. }
  5739. var camelizedKey = camelize(key);
  5740. var hyphenatedKey = hyphenate(key);
  5741. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5742. hash[key] = value[key];
  5743. if (isSync) {
  5744. var on = data.on || (data.on = {});
  5745. on[("update:" + key)] = function ($event) {
  5746. value[key] = $event;
  5747. };
  5748. }
  5749. }
  5750. };
  5751. for (var key in value) loop( key );
  5752. }
  5753. }
  5754. return data
  5755. }
  5756. /* */
  5757. /**
  5758. * Runtime helper for rendering static trees.
  5759. */
  5760. function renderStatic (
  5761. index,
  5762. isInFor
  5763. ) {
  5764. var cached = this._staticTrees || (this._staticTrees = []);
  5765. var tree = cached[index];
  5766. // if has already-rendered static tree and not inside v-for,
  5767. // we can reuse the same tree.
  5768. if (tree && !isInFor) {
  5769. return tree
  5770. }
  5771. // otherwise, render a fresh tree.
  5772. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5773. this._renderProxy,
  5774. null,
  5775. this // for render fns generated for functional component templates
  5776. );
  5777. markStatic(tree, ("__static__" + index), false);
  5778. return tree
  5779. }
  5780. /**
  5781. * Runtime helper for v-once.
  5782. * Effectively it means marking the node as static with a unique key.
  5783. */
  5784. function markOnce (
  5785. tree,
  5786. index,
  5787. key
  5788. ) {
  5789. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5790. return tree
  5791. }
  5792. function markStatic (
  5793. tree,
  5794. key,
  5795. isOnce
  5796. ) {
  5797. if (Array.isArray(tree)) {
  5798. for (var i = 0; i < tree.length; i++) {
  5799. if (tree[i] && typeof tree[i] !== 'string') {
  5800. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5801. }
  5802. }
  5803. } else {
  5804. markStaticNode(tree, key, isOnce);
  5805. }
  5806. }
  5807. function markStaticNode (node, key, isOnce) {
  5808. node.isStatic = true;
  5809. node.key = key;
  5810. node.isOnce = isOnce;
  5811. }
  5812. /* */
  5813. function bindObjectListeners (data, value) {
  5814. if (value) {
  5815. if (!isPlainObject(value)) {
  5816. true && warn(
  5817. 'v-on without argument expects an Object value',
  5818. this
  5819. );
  5820. } else {
  5821. var on = data.on = data.on ? extend({}, data.on) : {};
  5822. for (var key in value) {
  5823. var existing = on[key];
  5824. var ours = value[key];
  5825. on[key] = existing ? [].concat(existing, ours) : ours;
  5826. }
  5827. }
  5828. }
  5829. return data
  5830. }
  5831. /* */
  5832. function resolveScopedSlots (
  5833. fns, // see flow/vnode
  5834. res,
  5835. // the following are added in 2.6
  5836. hasDynamicKeys,
  5837. contentHashKey
  5838. ) {
  5839. res = res || { $stable: !hasDynamicKeys };
  5840. for (var i = 0; i < fns.length; i++) {
  5841. var slot = fns[i];
  5842. if (Array.isArray(slot)) {
  5843. resolveScopedSlots(slot, res, hasDynamicKeys);
  5844. } else if (slot) {
  5845. // marker for reverse proxying v-slot without scope on this.$slots
  5846. if (slot.proxy) {
  5847. slot.fn.proxy = true;
  5848. }
  5849. res[slot.key] = slot.fn;
  5850. }
  5851. }
  5852. if (contentHashKey) {
  5853. (res).$key = contentHashKey;
  5854. }
  5855. return res
  5856. }
  5857. /* */
  5858. function bindDynamicKeys (baseObj, values) {
  5859. for (var i = 0; i < values.length; i += 2) {
  5860. var key = values[i];
  5861. if (typeof key === 'string' && key) {
  5862. baseObj[values[i]] = values[i + 1];
  5863. } else if ( true && key !== '' && key !== null) {
  5864. // null is a special value for explicitly removing a binding
  5865. warn(
  5866. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5867. this
  5868. );
  5869. }
  5870. }
  5871. return baseObj
  5872. }
  5873. // helper to dynamically append modifier runtime markers to event names.
  5874. // ensure only append when value is already string, otherwise it will be cast
  5875. // to string and cause the type check to miss.
  5876. function prependModifier (value, symbol) {
  5877. return typeof value === 'string' ? symbol + value : value
  5878. }
  5879. /* */
  5880. function installRenderHelpers (target) {
  5881. target._o = markOnce;
  5882. target._n = toNumber;
  5883. target._s = toString;
  5884. target._l = renderList;
  5885. target._t = renderSlot;
  5886. target._q = looseEqual;
  5887. target._i = looseIndexOf;
  5888. target._m = renderStatic;
  5889. target._f = resolveFilter;
  5890. target._k = checkKeyCodes;
  5891. target._b = bindObjectProps;
  5892. target._v = createTextVNode;
  5893. target._e = createEmptyVNode;
  5894. target._u = resolveScopedSlots;
  5895. target._g = bindObjectListeners;
  5896. target._d = bindDynamicKeys;
  5897. target._p = prependModifier;
  5898. }
  5899. /* */
  5900. function FunctionalRenderContext (
  5901. data,
  5902. props,
  5903. children,
  5904. parent,
  5905. Ctor
  5906. ) {
  5907. var this$1 = this;
  5908. var options = Ctor.options;
  5909. // ensure the createElement function in functional components
  5910. // gets a unique context - this is necessary for correct named slot check
  5911. var contextVm;
  5912. if (hasOwn(parent, '_uid')) {
  5913. contextVm = Object.create(parent);
  5914. // $flow-disable-line
  5915. contextVm._original = parent;
  5916. } else {
  5917. // the context vm passed in is a functional context as well.
  5918. // in this case we want to make sure we are able to get a hold to the
  5919. // real context instance.
  5920. contextVm = parent;
  5921. // $flow-disable-line
  5922. parent = parent._original;
  5923. }
  5924. var isCompiled = isTrue(options._compiled);
  5925. var needNormalization = !isCompiled;
  5926. this.data = data;
  5927. this.props = props;
  5928. this.children = children;
  5929. this.parent = parent;
  5930. this.listeners = data.on || emptyObject;
  5931. this.injections = resolveInject(options.inject, parent);
  5932. this.slots = function () {
  5933. if (!this$1.$slots) {
  5934. normalizeScopedSlots(
  5935. data.scopedSlots,
  5936. this$1.$slots = resolveSlots(children, parent)
  5937. );
  5938. }
  5939. return this$1.$slots
  5940. };
  5941. Object.defineProperty(this, 'scopedSlots', ({
  5942. enumerable: true,
  5943. get: function get () {
  5944. return normalizeScopedSlots(data.scopedSlots, this.slots())
  5945. }
  5946. }));
  5947. // support for compiled functional template
  5948. if (isCompiled) {
  5949. // exposing $options for renderStatic()
  5950. this.$options = options;
  5951. // pre-resolve slots for renderSlot()
  5952. this.$slots = this.slots();
  5953. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  5954. }
  5955. if (options._scopeId) {
  5956. this._c = function (a, b, c, d) {
  5957. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  5958. if (vnode && !Array.isArray(vnode)) {
  5959. vnode.fnScopeId = options._scopeId;
  5960. vnode.fnContext = parent;
  5961. }
  5962. return vnode
  5963. };
  5964. } else {
  5965. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  5966. }
  5967. }
  5968. installRenderHelpers(FunctionalRenderContext.prototype);
  5969. function createFunctionalComponent (
  5970. Ctor,
  5971. propsData,
  5972. data,
  5973. contextVm,
  5974. children
  5975. ) {
  5976. var options = Ctor.options;
  5977. var props = {};
  5978. var propOptions = options.props;
  5979. if (isDef(propOptions)) {
  5980. for (var key in propOptions) {
  5981. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  5982. }
  5983. } else {
  5984. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  5985. if (isDef(data.props)) { mergeProps(props, data.props); }
  5986. }
  5987. var renderContext = new FunctionalRenderContext(
  5988. data,
  5989. props,
  5990. children,
  5991. contextVm,
  5992. Ctor
  5993. );
  5994. var vnode = options.render.call(null, renderContext._c, renderContext);
  5995. if (vnode instanceof VNode) {
  5996. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  5997. } else if (Array.isArray(vnode)) {
  5998. var vnodes = normalizeChildren(vnode) || [];
  5999. var res = new Array(vnodes.length);
  6000. for (var i = 0; i < vnodes.length; i++) {
  6001. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6002. }
  6003. return res
  6004. }
  6005. }
  6006. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6007. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6008. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6009. // that should not be matched to match.
  6010. var clone = cloneVNode(vnode);
  6011. clone.fnContext = contextVm;
  6012. clone.fnOptions = options;
  6013. if (true) {
  6014. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6015. }
  6016. if (data.slot) {
  6017. (clone.data || (clone.data = {})).slot = data.slot;
  6018. }
  6019. return clone
  6020. }
  6021. function mergeProps (to, from) {
  6022. for (var key in from) {
  6023. to[camelize(key)] = from[key];
  6024. }
  6025. }
  6026. /* */
  6027. /* */
  6028. /* */
  6029. /* */
  6030. // inline hooks to be invoked on component VNodes during patch
  6031. var componentVNodeHooks = {
  6032. init: function init (vnode, hydrating) {
  6033. if (
  6034. vnode.componentInstance &&
  6035. !vnode.componentInstance._isDestroyed &&
  6036. vnode.data.keepAlive
  6037. ) {
  6038. // kept-alive components, treat as a patch
  6039. var mountedNode = vnode; // work around flow
  6040. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6041. } else {
  6042. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6043. vnode,
  6044. activeInstance
  6045. );
  6046. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6047. }
  6048. },
  6049. prepatch: function prepatch (oldVnode, vnode) {
  6050. var options = vnode.componentOptions;
  6051. var child = vnode.componentInstance = oldVnode.componentInstance;
  6052. updateChildComponent(
  6053. child,
  6054. options.propsData, // updated props
  6055. options.listeners, // updated listeners
  6056. vnode, // new parent vnode
  6057. options.children // new children
  6058. );
  6059. },
  6060. insert: function insert (vnode) {
  6061. var context = vnode.context;
  6062. var componentInstance = vnode.componentInstance;
  6063. if (!componentInstance._isMounted) {
  6064. callHook(componentInstance, 'onServiceCreated');
  6065. callHook(componentInstance, 'onServiceAttached');
  6066. componentInstance._isMounted = true;
  6067. callHook(componentInstance, 'mounted');
  6068. }
  6069. if (vnode.data.keepAlive) {
  6070. if (context._isMounted) {
  6071. // vue-router#1212
  6072. // During updates, a kept-alive component's child components may
  6073. // change, so directly walking the tree here may call activated hooks
  6074. // on incorrect children. Instead we push them into a queue which will
  6075. // be processed after the whole patch process ended.
  6076. queueActivatedComponent(componentInstance);
  6077. } else {
  6078. activateChildComponent(componentInstance, true /* direct */);
  6079. }
  6080. }
  6081. },
  6082. destroy: function destroy (vnode) {
  6083. var componentInstance = vnode.componentInstance;
  6084. if (!componentInstance._isDestroyed) {
  6085. if (!vnode.data.keepAlive) {
  6086. componentInstance.$destroy();
  6087. } else {
  6088. deactivateChildComponent(componentInstance, true /* direct */);
  6089. }
  6090. }
  6091. }
  6092. };
  6093. var hooksToMerge = Object.keys(componentVNodeHooks);
  6094. function createComponent (
  6095. Ctor,
  6096. data,
  6097. context,
  6098. children,
  6099. tag
  6100. ) {
  6101. if (isUndef(Ctor)) {
  6102. return
  6103. }
  6104. var baseCtor = context.$options._base;
  6105. // plain options object: turn it into a constructor
  6106. if (isObject(Ctor)) {
  6107. Ctor = baseCtor.extend(Ctor);
  6108. }
  6109. // if at this stage it's not a constructor or an async component factory,
  6110. // reject.
  6111. if (typeof Ctor !== 'function') {
  6112. if (true) {
  6113. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6114. }
  6115. return
  6116. }
  6117. // async component
  6118. var asyncFactory;
  6119. if (isUndef(Ctor.cid)) {
  6120. asyncFactory = Ctor;
  6121. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6122. if (Ctor === undefined) {
  6123. // return a placeholder node for async component, which is rendered
  6124. // as a comment node but preserves all the raw information for the node.
  6125. // the information will be used for async server-rendering and hydration.
  6126. return createAsyncPlaceholder(
  6127. asyncFactory,
  6128. data,
  6129. context,
  6130. children,
  6131. tag
  6132. )
  6133. }
  6134. }
  6135. data = data || {};
  6136. // resolve constructor options in case global mixins are applied after
  6137. // component constructor creation
  6138. resolveConstructorOptions(Ctor);
  6139. // transform component v-model data into props & events
  6140. if (isDef(data.model)) {
  6141. transformModel(Ctor.options, data);
  6142. }
  6143. // extract props
  6144. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6145. // functional component
  6146. if (isTrue(Ctor.options.functional)) {
  6147. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6148. }
  6149. // extract listeners, since these needs to be treated as
  6150. // child component listeners instead of DOM listeners
  6151. var listeners = data.on;
  6152. // replace with listeners with .native modifier
  6153. // so it gets processed during parent component patch.
  6154. data.on = data.nativeOn;
  6155. if (isTrue(Ctor.options.abstract)) {
  6156. // abstract components do not keep anything
  6157. // other than props & listeners & slot
  6158. // work around flow
  6159. var slot = data.slot;
  6160. data = {};
  6161. if (slot) {
  6162. data.slot = slot;
  6163. }
  6164. }
  6165. // install component management hooks onto the placeholder node
  6166. installComponentHooks(data);
  6167. // return a placeholder vnode
  6168. var name = Ctor.options.name || tag;
  6169. var vnode = new VNode(
  6170. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6171. data, undefined, undefined, undefined, context,
  6172. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6173. asyncFactory
  6174. );
  6175. return vnode
  6176. }
  6177. function createComponentInstanceForVnode (
  6178. vnode, // we know it's MountedComponentVNode but flow doesn't
  6179. parent // activeInstance in lifecycle state
  6180. ) {
  6181. var options = {
  6182. _isComponent: true,
  6183. _parentVnode: vnode,
  6184. parent: parent
  6185. };
  6186. // check inline-template render functions
  6187. var inlineTemplate = vnode.data.inlineTemplate;
  6188. if (isDef(inlineTemplate)) {
  6189. options.render = inlineTemplate.render;
  6190. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6191. }
  6192. return new vnode.componentOptions.Ctor(options)
  6193. }
  6194. function installComponentHooks (data) {
  6195. var hooks = data.hook || (data.hook = {});
  6196. for (var i = 0; i < hooksToMerge.length; i++) {
  6197. var key = hooksToMerge[i];
  6198. var existing = hooks[key];
  6199. var toMerge = componentVNodeHooks[key];
  6200. if (existing !== toMerge && !(existing && existing._merged)) {
  6201. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6202. }
  6203. }
  6204. }
  6205. function mergeHook$1 (f1, f2) {
  6206. var merged = function (a, b) {
  6207. // flow complains about extra args which is why we use any
  6208. f1(a, b);
  6209. f2(a, b);
  6210. };
  6211. merged._merged = true;
  6212. return merged
  6213. }
  6214. // transform component v-model info (value and callback) into
  6215. // prop and event handler respectively.
  6216. function transformModel (options, data) {
  6217. var prop = (options.model && options.model.prop) || 'value';
  6218. var event = (options.model && options.model.event) || 'input'
  6219. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6220. var on = data.on || (data.on = {});
  6221. var existing = on[event];
  6222. var callback = data.model.callback;
  6223. if (isDef(existing)) {
  6224. if (
  6225. Array.isArray(existing)
  6226. ? existing.indexOf(callback) === -1
  6227. : existing !== callback
  6228. ) {
  6229. on[event] = [callback].concat(existing);
  6230. }
  6231. } else {
  6232. on[event] = callback;
  6233. }
  6234. }
  6235. /* */
  6236. var SIMPLE_NORMALIZE = 1;
  6237. var ALWAYS_NORMALIZE = 2;
  6238. // wrapper function for providing a more flexible interface
  6239. // without getting yelled at by flow
  6240. function createElement (
  6241. context,
  6242. tag,
  6243. data,
  6244. children,
  6245. normalizationType,
  6246. alwaysNormalize
  6247. ) {
  6248. if (Array.isArray(data) || isPrimitive(data)) {
  6249. normalizationType = children;
  6250. children = data;
  6251. data = undefined;
  6252. }
  6253. if (isTrue(alwaysNormalize)) {
  6254. normalizationType = ALWAYS_NORMALIZE;
  6255. }
  6256. return _createElement(context, tag, data, children, normalizationType)
  6257. }
  6258. function _createElement (
  6259. context,
  6260. tag,
  6261. data,
  6262. children,
  6263. normalizationType
  6264. ) {
  6265. if (isDef(data) && isDef((data).__ob__)) {
  6266. true && warn(
  6267. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6268. 'Always create fresh vnode data objects in each render!',
  6269. context
  6270. );
  6271. return createEmptyVNode()
  6272. }
  6273. // object syntax in v-bind
  6274. if (isDef(data) && isDef(data.is)) {
  6275. tag = data.is;
  6276. }
  6277. if (!tag) {
  6278. // in case of component :is set to falsy value
  6279. return createEmptyVNode()
  6280. }
  6281. // warn against non-primitive key
  6282. if ( true &&
  6283. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6284. ) {
  6285. {
  6286. warn(
  6287. 'Avoid using non-primitive value as key, ' +
  6288. 'use string/number value instead.',
  6289. context
  6290. );
  6291. }
  6292. }
  6293. // support single function children as default scoped slot
  6294. if (Array.isArray(children) &&
  6295. typeof children[0] === 'function'
  6296. ) {
  6297. data = data || {};
  6298. data.scopedSlots = { default: children[0] };
  6299. children.length = 0;
  6300. }
  6301. if (normalizationType === ALWAYS_NORMALIZE) {
  6302. children = normalizeChildren(children);
  6303. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6304. children = simpleNormalizeChildren(children);
  6305. }
  6306. var vnode, ns;
  6307. if (typeof tag === 'string') {
  6308. var Ctor;
  6309. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6310. if (config.isReservedTag(tag)) {
  6311. // platform built-in elements
  6312. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6313. warn(
  6314. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6315. context
  6316. );
  6317. }
  6318. vnode = new VNode(
  6319. config.parsePlatformTagName(tag), data, children,
  6320. undefined, undefined, context
  6321. );
  6322. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6323. // component
  6324. vnode = createComponent(Ctor, data, context, children, tag);
  6325. } else {
  6326. // unknown or unlisted namespaced elements
  6327. // check at runtime because it may get assigned a namespace when its
  6328. // parent normalizes children
  6329. vnode = new VNode(
  6330. tag, data, children,
  6331. undefined, undefined, context
  6332. );
  6333. }
  6334. } else {
  6335. // direct component options / constructor
  6336. vnode = createComponent(tag, data, context, children);
  6337. }
  6338. if (Array.isArray(vnode)) {
  6339. return vnode
  6340. } else if (isDef(vnode)) {
  6341. if (isDef(ns)) { applyNS(vnode, ns); }
  6342. if (isDef(data)) { registerDeepBindings(data); }
  6343. return vnode
  6344. } else {
  6345. return createEmptyVNode()
  6346. }
  6347. }
  6348. function applyNS (vnode, ns, force) {
  6349. vnode.ns = ns;
  6350. if (vnode.tag === 'foreignObject') {
  6351. // use default namespace inside foreignObject
  6352. ns = undefined;
  6353. force = true;
  6354. }
  6355. if (isDef(vnode.children)) {
  6356. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6357. var child = vnode.children[i];
  6358. if (isDef(child.tag) && (
  6359. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6360. applyNS(child, ns, force);
  6361. }
  6362. }
  6363. }
  6364. }
  6365. // ref #5318
  6366. // necessary to ensure parent re-render when deep bindings like :style and
  6367. // :class are used on slot nodes
  6368. function registerDeepBindings (data) {
  6369. if (isObject(data.style)) {
  6370. traverse(data.style);
  6371. }
  6372. if (isObject(data.class)) {
  6373. traverse(data.class);
  6374. }
  6375. }
  6376. /* */
  6377. function initRender (vm) {
  6378. vm._vnode = null; // the root of the child tree
  6379. vm._staticTrees = null; // v-once cached trees
  6380. var options = vm.$options;
  6381. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6382. var renderContext = parentVnode && parentVnode.context;
  6383. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6384. vm.$scopedSlots = emptyObject;
  6385. // bind the createElement fn to this instance
  6386. // so that we get proper render context inside it.
  6387. // args order: tag, data, children, normalizationType, alwaysNormalize
  6388. // internal version is used by render functions compiled from templates
  6389. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6390. // normalization is always applied for the public version, used in
  6391. // user-written render functions.
  6392. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6393. // $attrs & $listeners are exposed for easier HOC creation.
  6394. // they need to be reactive so that HOCs using them are always updated
  6395. var parentData = parentVnode && parentVnode.data;
  6396. /* istanbul ignore else */
  6397. if (true) {
  6398. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6399. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6400. }, true);
  6401. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6402. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6403. }, true);
  6404. } else {}
  6405. }
  6406. var currentRenderingInstance = null;
  6407. function renderMixin (Vue) {
  6408. // install runtime convenience helpers
  6409. installRenderHelpers(Vue.prototype);
  6410. Vue.prototype.$nextTick = function (fn) {
  6411. return nextTick(fn, this)
  6412. };
  6413. Vue.prototype._render = function () {
  6414. var vm = this;
  6415. var ref = vm.$options;
  6416. var render = ref.render;
  6417. var _parentVnode = ref._parentVnode;
  6418. if (_parentVnode) {
  6419. vm.$scopedSlots = normalizeScopedSlots(
  6420. _parentVnode.data.scopedSlots,
  6421. vm.$slots,
  6422. vm.$scopedSlots
  6423. );
  6424. }
  6425. // set parent vnode. this allows render functions to have access
  6426. // to the data on the placeholder node.
  6427. vm.$vnode = _parentVnode;
  6428. // render self
  6429. var vnode;
  6430. try {
  6431. // There's no need to maintain a stack because all render fns are called
  6432. // separately from one another. Nested component's render fns are called
  6433. // when parent component is patched.
  6434. currentRenderingInstance = vm;
  6435. vnode = render.call(vm._renderProxy, vm.$createElement);
  6436. } catch (e) {
  6437. handleError(e, vm, "render");
  6438. // return error render result,
  6439. // or previous vnode to prevent render error causing blank component
  6440. /* istanbul ignore else */
  6441. if ( true && vm.$options.renderError) {
  6442. try {
  6443. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6444. } catch (e) {
  6445. handleError(e, vm, "renderError");
  6446. vnode = vm._vnode;
  6447. }
  6448. } else {
  6449. vnode = vm._vnode;
  6450. }
  6451. } finally {
  6452. currentRenderingInstance = null;
  6453. }
  6454. // if the returned array contains only a single node, allow it
  6455. if (Array.isArray(vnode) && vnode.length === 1) {
  6456. vnode = vnode[0];
  6457. }
  6458. // return empty vnode in case the render function errored out
  6459. if (!(vnode instanceof VNode)) {
  6460. if ( true && Array.isArray(vnode)) {
  6461. warn(
  6462. 'Multiple root nodes returned from render function. Render function ' +
  6463. 'should return a single root node.',
  6464. vm
  6465. );
  6466. }
  6467. vnode = createEmptyVNode();
  6468. }
  6469. // set parent
  6470. vnode.parent = _parentVnode;
  6471. return vnode
  6472. };
  6473. }
  6474. /* */
  6475. function ensureCtor (comp, base) {
  6476. if (
  6477. comp.__esModule ||
  6478. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6479. ) {
  6480. comp = comp.default;
  6481. }
  6482. return isObject(comp)
  6483. ? base.extend(comp)
  6484. : comp
  6485. }
  6486. function createAsyncPlaceholder (
  6487. factory,
  6488. data,
  6489. context,
  6490. children,
  6491. tag
  6492. ) {
  6493. var node = createEmptyVNode();
  6494. node.asyncFactory = factory;
  6495. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6496. return node
  6497. }
  6498. function resolveAsyncComponent (
  6499. factory,
  6500. baseCtor
  6501. ) {
  6502. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6503. return factory.errorComp
  6504. }
  6505. if (isDef(factory.resolved)) {
  6506. return factory.resolved
  6507. }
  6508. var owner = currentRenderingInstance;
  6509. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6510. // already pending
  6511. factory.owners.push(owner);
  6512. }
  6513. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6514. return factory.loadingComp
  6515. }
  6516. if (owner && !isDef(factory.owners)) {
  6517. var owners = factory.owners = [owner];
  6518. var sync = true;
  6519. var timerLoading = null;
  6520. var timerTimeout = null
  6521. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6522. var forceRender = function (renderCompleted) {
  6523. for (var i = 0, l = owners.length; i < l; i++) {
  6524. (owners[i]).$forceUpdate();
  6525. }
  6526. if (renderCompleted) {
  6527. owners.length = 0;
  6528. if (timerLoading !== null) {
  6529. clearTimeout(timerLoading);
  6530. timerLoading = null;
  6531. }
  6532. if (timerTimeout !== null) {
  6533. clearTimeout(timerTimeout);
  6534. timerTimeout = null;
  6535. }
  6536. }
  6537. };
  6538. var resolve = once(function (res) {
  6539. // cache resolved
  6540. factory.resolved = ensureCtor(res, baseCtor);
  6541. // invoke callbacks only if this is not a synchronous resolve
  6542. // (async resolves are shimmed as synchronous during SSR)
  6543. if (!sync) {
  6544. forceRender(true);
  6545. } else {
  6546. owners.length = 0;
  6547. }
  6548. });
  6549. var reject = once(function (reason) {
  6550. true && warn(
  6551. "Failed to resolve async component: " + (String(factory)) +
  6552. (reason ? ("\nReason: " + reason) : '')
  6553. );
  6554. if (isDef(factory.errorComp)) {
  6555. factory.error = true;
  6556. forceRender(true);
  6557. }
  6558. });
  6559. var res = factory(resolve, reject);
  6560. if (isObject(res)) {
  6561. if (isPromise(res)) {
  6562. // () => Promise
  6563. if (isUndef(factory.resolved)) {
  6564. res.then(resolve, reject);
  6565. }
  6566. } else if (isPromise(res.component)) {
  6567. res.component.then(resolve, reject);
  6568. if (isDef(res.error)) {
  6569. factory.errorComp = ensureCtor(res.error, baseCtor);
  6570. }
  6571. if (isDef(res.loading)) {
  6572. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6573. if (res.delay === 0) {
  6574. factory.loading = true;
  6575. } else {
  6576. timerLoading = setTimeout(function () {
  6577. timerLoading = null;
  6578. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6579. factory.loading = true;
  6580. forceRender(false);
  6581. }
  6582. }, res.delay || 200);
  6583. }
  6584. }
  6585. if (isDef(res.timeout)) {
  6586. timerTimeout = setTimeout(function () {
  6587. timerTimeout = null;
  6588. if (isUndef(factory.resolved)) {
  6589. reject(
  6590. true
  6591. ? ("timeout (" + (res.timeout) + "ms)")
  6592. : undefined
  6593. );
  6594. }
  6595. }, res.timeout);
  6596. }
  6597. }
  6598. }
  6599. sync = false;
  6600. // return in case resolved synchronously
  6601. return factory.loading
  6602. ? factory.loadingComp
  6603. : factory.resolved
  6604. }
  6605. }
  6606. /* */
  6607. function isAsyncPlaceholder (node) {
  6608. return node.isComment && node.asyncFactory
  6609. }
  6610. /* */
  6611. function getFirstComponentChild (children) {
  6612. if (Array.isArray(children)) {
  6613. for (var i = 0; i < children.length; i++) {
  6614. var c = children[i];
  6615. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6616. return c
  6617. }
  6618. }
  6619. }
  6620. }
  6621. /* */
  6622. /* */
  6623. function initEvents (vm) {
  6624. vm._events = Object.create(null);
  6625. vm._hasHookEvent = false;
  6626. // init parent attached events
  6627. var listeners = vm.$options._parentListeners;
  6628. if (listeners) {
  6629. updateComponentListeners(vm, listeners);
  6630. }
  6631. }
  6632. var target;
  6633. function add (event, fn) {
  6634. target.$on(event, fn);
  6635. }
  6636. function remove$1 (event, fn) {
  6637. target.$off(event, fn);
  6638. }
  6639. function createOnceHandler (event, fn) {
  6640. var _target = target;
  6641. return function onceHandler () {
  6642. var res = fn.apply(null, arguments);
  6643. if (res !== null) {
  6644. _target.$off(event, onceHandler);
  6645. }
  6646. }
  6647. }
  6648. function updateComponentListeners (
  6649. vm,
  6650. listeners,
  6651. oldListeners
  6652. ) {
  6653. target = vm;
  6654. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6655. target = undefined;
  6656. }
  6657. function eventsMixin (Vue) {
  6658. var hookRE = /^hook:/;
  6659. Vue.prototype.$on = function (event, fn) {
  6660. var vm = this;
  6661. if (Array.isArray(event)) {
  6662. for (var i = 0, l = event.length; i < l; i++) {
  6663. vm.$on(event[i], fn);
  6664. }
  6665. } else {
  6666. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6667. // optimize hook:event cost by using a boolean flag marked at registration
  6668. // instead of a hash lookup
  6669. if (hookRE.test(event)) {
  6670. vm._hasHookEvent = true;
  6671. }
  6672. }
  6673. return vm
  6674. };
  6675. Vue.prototype.$once = function (event, fn) {
  6676. var vm = this;
  6677. function on () {
  6678. vm.$off(event, on);
  6679. fn.apply(vm, arguments);
  6680. }
  6681. on.fn = fn;
  6682. vm.$on(event, on);
  6683. return vm
  6684. };
  6685. Vue.prototype.$off = function (event, fn) {
  6686. var vm = this;
  6687. // all
  6688. if (!arguments.length) {
  6689. vm._events = Object.create(null);
  6690. return vm
  6691. }
  6692. // array of events
  6693. if (Array.isArray(event)) {
  6694. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6695. vm.$off(event[i$1], fn);
  6696. }
  6697. return vm
  6698. }
  6699. // specific event
  6700. var cbs = vm._events[event];
  6701. if (!cbs) {
  6702. return vm
  6703. }
  6704. if (!fn) {
  6705. vm._events[event] = null;
  6706. return vm
  6707. }
  6708. // specific handler
  6709. var cb;
  6710. var i = cbs.length;
  6711. while (i--) {
  6712. cb = cbs[i];
  6713. if (cb === fn || cb.fn === fn) {
  6714. cbs.splice(i, 1);
  6715. break
  6716. }
  6717. }
  6718. return vm
  6719. };
  6720. Vue.prototype.$emit = function (event) {
  6721. var vm = this;
  6722. if (true) {
  6723. var lowerCaseEvent = event.toLowerCase();
  6724. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6725. tip(
  6726. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6727. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6728. "Note that HTML attributes are case-insensitive and you cannot use " +
  6729. "v-on to listen to camelCase events when using in-DOM templates. " +
  6730. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6731. );
  6732. }
  6733. }
  6734. var cbs = vm._events[event];
  6735. if (cbs) {
  6736. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6737. var args = toArray(arguments, 1);
  6738. var info = "event handler for \"" + event + "\"";
  6739. for (var i = 0, l = cbs.length; i < l; i++) {
  6740. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6741. }
  6742. }
  6743. return vm
  6744. };
  6745. }
  6746. /* */
  6747. var activeInstance = null;
  6748. var isUpdatingChildComponent = false;
  6749. function setActiveInstance(vm) {
  6750. var prevActiveInstance = activeInstance;
  6751. activeInstance = vm;
  6752. return function () {
  6753. activeInstance = prevActiveInstance;
  6754. }
  6755. }
  6756. function initLifecycle (vm) {
  6757. var options = vm.$options;
  6758. // locate first non-abstract parent
  6759. var parent = options.parent;
  6760. if (parent && !options.abstract) {
  6761. while (parent.$options.abstract && parent.$parent) {
  6762. parent = parent.$parent;
  6763. }
  6764. parent.$children.push(vm);
  6765. }
  6766. vm.$parent = parent;
  6767. vm.$root = parent ? parent.$root : vm;
  6768. vm.$children = [];
  6769. vm.$refs = {};
  6770. vm._watcher = null;
  6771. vm._inactive = null;
  6772. vm._directInactive = false;
  6773. vm._isMounted = false;
  6774. vm._isDestroyed = false;
  6775. vm._isBeingDestroyed = false;
  6776. }
  6777. function lifecycleMixin (Vue) {
  6778. Vue.prototype._update = function (vnode, hydrating) {
  6779. var vm = this;
  6780. var prevEl = vm.$el;
  6781. var prevVnode = vm._vnode;
  6782. var restoreActiveInstance = setActiveInstance(vm);
  6783. vm._vnode = vnode;
  6784. // Vue.prototype.__patch__ is injected in entry points
  6785. // based on the rendering backend used.
  6786. if (!prevVnode) {
  6787. // initial render
  6788. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6789. } else {
  6790. // updates
  6791. vm.$el = vm.__patch__(prevVnode, vnode);
  6792. }
  6793. restoreActiveInstance();
  6794. // update __vue__ reference
  6795. if (prevEl) {
  6796. prevEl.__vue__ = null;
  6797. }
  6798. if (vm.$el) {
  6799. vm.$el.__vue__ = vm;
  6800. }
  6801. // if parent is an HOC, update its $el as well
  6802. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6803. vm.$parent.$el = vm.$el;
  6804. }
  6805. // updated hook is called by the scheduler to ensure that children are
  6806. // updated in a parent's updated hook.
  6807. };
  6808. Vue.prototype.$forceUpdate = function () {
  6809. var vm = this;
  6810. if (vm._watcher) {
  6811. vm._watcher.update();
  6812. }
  6813. };
  6814. Vue.prototype.$destroy = function () {
  6815. var vm = this;
  6816. if (vm._isBeingDestroyed) {
  6817. return
  6818. }
  6819. callHook(vm, 'beforeDestroy');
  6820. vm._isBeingDestroyed = true;
  6821. // remove self from parent
  6822. var parent = vm.$parent;
  6823. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6824. remove(parent.$children, vm);
  6825. }
  6826. // teardown watchers
  6827. if (vm._watcher) {
  6828. vm._watcher.teardown();
  6829. }
  6830. var i = vm._watchers.length;
  6831. while (i--) {
  6832. vm._watchers[i].teardown();
  6833. }
  6834. // remove reference from data ob
  6835. // frozen object may not have observer.
  6836. if (vm._data.__ob__) {
  6837. vm._data.__ob__.vmCount--;
  6838. }
  6839. // call the last hook...
  6840. vm._isDestroyed = true;
  6841. // invoke destroy hooks on current rendered tree
  6842. vm.__patch__(vm._vnode, null);
  6843. // fire destroyed hook
  6844. callHook(vm, 'destroyed');
  6845. // turn off all instance listeners.
  6846. vm.$off();
  6847. // remove __vue__ reference
  6848. if (vm.$el) {
  6849. vm.$el.__vue__ = null;
  6850. }
  6851. // release circular reference (#6759)
  6852. if (vm.$vnode) {
  6853. vm.$vnode.parent = null;
  6854. }
  6855. };
  6856. }
  6857. function updateChildComponent (
  6858. vm,
  6859. propsData,
  6860. listeners,
  6861. parentVnode,
  6862. renderChildren
  6863. ) {
  6864. if (true) {
  6865. isUpdatingChildComponent = true;
  6866. }
  6867. // determine whether component has slot children
  6868. // we need to do this before overwriting $options._renderChildren.
  6869. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6870. // dynamic slot names). Static scoped slots compiled from template has the
  6871. // "$stable" marker.
  6872. var newScopedSlots = parentVnode.data.scopedSlots;
  6873. var oldScopedSlots = vm.$scopedSlots;
  6874. var hasDynamicScopedSlot = !!(
  6875. (newScopedSlots && !newScopedSlots.$stable) ||
  6876. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6877. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6878. );
  6879. // Any static slot children from the parent may have changed during parent's
  6880. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6881. // update is necessary to ensure correctness.
  6882. var needsForceUpdate = !!(
  6883. renderChildren || // has new static slots
  6884. vm.$options._renderChildren || // has old static slots
  6885. hasDynamicScopedSlot
  6886. );
  6887. vm.$options._parentVnode = parentVnode;
  6888. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6889. if (vm._vnode) { // update child tree's parent
  6890. vm._vnode.parent = parentVnode;
  6891. }
  6892. vm.$options._renderChildren = renderChildren;
  6893. // update $attrs and $listeners hash
  6894. // these are also reactive so they may trigger child update if the child
  6895. // used them during render
  6896. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6897. vm.$listeners = listeners || emptyObject;
  6898. // update props
  6899. if (propsData && vm.$options.props) {
  6900. toggleObserving(false);
  6901. var props = vm._props;
  6902. var propKeys = vm.$options._propKeys || [];
  6903. for (var i = 0; i < propKeys.length; i++) {
  6904. var key = propKeys[i];
  6905. var propOptions = vm.$options.props; // wtf flow?
  6906. props[key] = validateProp(key, propOptions, propsData, vm);
  6907. }
  6908. toggleObserving(true);
  6909. // keep a copy of raw propsData
  6910. vm.$options.propsData = propsData;
  6911. }
  6912. // fixed by xxxxxx update properties(mp runtime)
  6913. vm._$updateProperties && vm._$updateProperties(vm);
  6914. // update listeners
  6915. listeners = listeners || emptyObject;
  6916. var oldListeners = vm.$options._parentListeners;
  6917. vm.$options._parentListeners = listeners;
  6918. updateComponentListeners(vm, listeners, oldListeners);
  6919. // resolve slots + force update if has children
  6920. if (needsForceUpdate) {
  6921. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6922. vm.$forceUpdate();
  6923. }
  6924. if (true) {
  6925. isUpdatingChildComponent = false;
  6926. }
  6927. }
  6928. function isInInactiveTree (vm) {
  6929. while (vm && (vm = vm.$parent)) {
  6930. if (vm._inactive) { return true }
  6931. }
  6932. return false
  6933. }
  6934. function activateChildComponent (vm, direct) {
  6935. if (direct) {
  6936. vm._directInactive = false;
  6937. if (isInInactiveTree(vm)) {
  6938. return
  6939. }
  6940. } else if (vm._directInactive) {
  6941. return
  6942. }
  6943. if (vm._inactive || vm._inactive === null) {
  6944. vm._inactive = false;
  6945. for (var i = 0; i < vm.$children.length; i++) {
  6946. activateChildComponent(vm.$children[i]);
  6947. }
  6948. callHook(vm, 'activated');
  6949. }
  6950. }
  6951. function deactivateChildComponent (vm, direct) {
  6952. if (direct) {
  6953. vm._directInactive = true;
  6954. if (isInInactiveTree(vm)) {
  6955. return
  6956. }
  6957. }
  6958. if (!vm._inactive) {
  6959. vm._inactive = true;
  6960. for (var i = 0; i < vm.$children.length; i++) {
  6961. deactivateChildComponent(vm.$children[i]);
  6962. }
  6963. callHook(vm, 'deactivated');
  6964. }
  6965. }
  6966. function callHook (vm, hook) {
  6967. // #7573 disable dep collection when invoking lifecycle hooks
  6968. pushTarget();
  6969. var handlers = vm.$options[hook];
  6970. var info = hook + " hook";
  6971. if (handlers) {
  6972. for (var i = 0, j = handlers.length; i < j; i++) {
  6973. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  6974. }
  6975. }
  6976. if (vm._hasHookEvent) {
  6977. vm.$emit('hook:' + hook);
  6978. }
  6979. popTarget();
  6980. }
  6981. /* */
  6982. var MAX_UPDATE_COUNT = 100;
  6983. var queue = [];
  6984. var activatedChildren = [];
  6985. var has = {};
  6986. var circular = {};
  6987. var waiting = false;
  6988. var flushing = false;
  6989. var index = 0;
  6990. /**
  6991. * Reset the scheduler's state.
  6992. */
  6993. function resetSchedulerState () {
  6994. index = queue.length = activatedChildren.length = 0;
  6995. has = {};
  6996. if (true) {
  6997. circular = {};
  6998. }
  6999. waiting = flushing = false;
  7000. }
  7001. // Async edge case #6566 requires saving the timestamp when event listeners are
  7002. // attached. However, calling performance.now() has a perf overhead especially
  7003. // if the page has thousands of event listeners. Instead, we take a timestamp
  7004. // every time the scheduler flushes and use that for all event listeners
  7005. // attached during that flush.
  7006. var currentFlushTimestamp = 0;
  7007. // Async edge case fix requires storing an event listener's attach timestamp.
  7008. var getNow = Date.now;
  7009. // Determine what event timestamp the browser is using. Annoyingly, the
  7010. // timestamp can either be hi-res (relative to page load) or low-res
  7011. // (relative to UNIX epoch), so in order to compare time we have to use the
  7012. // same timestamp type when saving the flush timestamp.
  7013. // All IE versions use low-res event timestamps, and have problematic clock
  7014. // implementations (#9632)
  7015. if (inBrowser && !isIE) {
  7016. var performance = window.performance;
  7017. if (
  7018. performance &&
  7019. typeof performance.now === 'function' &&
  7020. getNow() > document.createEvent('Event').timeStamp
  7021. ) {
  7022. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7023. // smaller than it, it means the event is using a hi-res timestamp,
  7024. // and we need to use the hi-res version for event listener timestamps as
  7025. // well.
  7026. getNow = function () { return performance.now(); };
  7027. }
  7028. }
  7029. /**
  7030. * Flush both queues and run the watchers.
  7031. */
  7032. function flushSchedulerQueue () {
  7033. currentFlushTimestamp = getNow();
  7034. flushing = true;
  7035. var watcher, id;
  7036. // Sort queue before flush.
  7037. // This ensures that:
  7038. // 1. Components are updated from parent to child. (because parent is always
  7039. // created before the child)
  7040. // 2. A component's user watchers are run before its render watcher (because
  7041. // user watchers are created before the render watcher)
  7042. // 3. If a component is destroyed during a parent component's watcher run,
  7043. // its watchers can be skipped.
  7044. queue.sort(function (a, b) { return a.id - b.id; });
  7045. // do not cache length because more watchers might be pushed
  7046. // as we run existing watchers
  7047. for (index = 0; index < queue.length; index++) {
  7048. watcher = queue[index];
  7049. if (watcher.before) {
  7050. watcher.before();
  7051. }
  7052. id = watcher.id;
  7053. has[id] = null;
  7054. watcher.run();
  7055. // in dev build, check and stop circular updates.
  7056. if ( true && has[id] != null) {
  7057. circular[id] = (circular[id] || 0) + 1;
  7058. if (circular[id] > MAX_UPDATE_COUNT) {
  7059. warn(
  7060. 'You may have an infinite update loop ' + (
  7061. watcher.user
  7062. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7063. : "in a component render function."
  7064. ),
  7065. watcher.vm
  7066. );
  7067. break
  7068. }
  7069. }
  7070. }
  7071. // keep copies of post queues before resetting state
  7072. var activatedQueue = activatedChildren.slice();
  7073. var updatedQueue = queue.slice();
  7074. resetSchedulerState();
  7075. // call component updated and activated hooks
  7076. callActivatedHooks(activatedQueue);
  7077. callUpdatedHooks(updatedQueue);
  7078. // devtool hook
  7079. /* istanbul ignore if */
  7080. if (devtools && config.devtools) {
  7081. devtools.emit('flush');
  7082. }
  7083. }
  7084. function callUpdatedHooks (queue) {
  7085. var i = queue.length;
  7086. while (i--) {
  7087. var watcher = queue[i];
  7088. var vm = watcher.vm;
  7089. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7090. callHook(vm, 'updated');
  7091. }
  7092. }
  7093. }
  7094. /**
  7095. * Queue a kept-alive component that was activated during patch.
  7096. * The queue will be processed after the entire tree has been patched.
  7097. */
  7098. function queueActivatedComponent (vm) {
  7099. // setting _inactive to false here so that a render function can
  7100. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7101. vm._inactive = false;
  7102. activatedChildren.push(vm);
  7103. }
  7104. function callActivatedHooks (queue) {
  7105. for (var i = 0; i < queue.length; i++) {
  7106. queue[i]._inactive = true;
  7107. activateChildComponent(queue[i], true /* true */);
  7108. }
  7109. }
  7110. /**
  7111. * Push a watcher into the watcher queue.
  7112. * Jobs with duplicate IDs will be skipped unless it's
  7113. * pushed when the queue is being flushed.
  7114. */
  7115. function queueWatcher (watcher) {
  7116. var id = watcher.id;
  7117. if (has[id] == null) {
  7118. has[id] = true;
  7119. if (!flushing) {
  7120. queue.push(watcher);
  7121. } else {
  7122. // if already flushing, splice the watcher based on its id
  7123. // if already past its id, it will be run next immediately.
  7124. var i = queue.length - 1;
  7125. while (i > index && queue[i].id > watcher.id) {
  7126. i--;
  7127. }
  7128. queue.splice(i + 1, 0, watcher);
  7129. }
  7130. // queue the flush
  7131. if (!waiting) {
  7132. waiting = true;
  7133. if ( true && !config.async) {
  7134. flushSchedulerQueue();
  7135. return
  7136. }
  7137. nextTick(flushSchedulerQueue);
  7138. }
  7139. }
  7140. }
  7141. /* */
  7142. var uid$2 = 0;
  7143. /**
  7144. * A watcher parses an expression, collects dependencies,
  7145. * and fires callback when the expression value changes.
  7146. * This is used for both the $watch() api and directives.
  7147. */
  7148. var Watcher = function Watcher (
  7149. vm,
  7150. expOrFn,
  7151. cb,
  7152. options,
  7153. isRenderWatcher
  7154. ) {
  7155. this.vm = vm;
  7156. if (isRenderWatcher) {
  7157. vm._watcher = this;
  7158. }
  7159. vm._watchers.push(this);
  7160. // options
  7161. if (options) {
  7162. this.deep = !!options.deep;
  7163. this.user = !!options.user;
  7164. this.lazy = !!options.lazy;
  7165. this.sync = !!options.sync;
  7166. this.before = options.before;
  7167. } else {
  7168. this.deep = this.user = this.lazy = this.sync = false;
  7169. }
  7170. this.cb = cb;
  7171. this.id = ++uid$2; // uid for batching
  7172. this.active = true;
  7173. this.dirty = this.lazy; // for lazy watchers
  7174. this.deps = [];
  7175. this.newDeps = [];
  7176. this.depIds = new _Set();
  7177. this.newDepIds = new _Set();
  7178. this.expression = true
  7179. ? expOrFn.toString()
  7180. : undefined;
  7181. // parse expression for getter
  7182. if (typeof expOrFn === 'function') {
  7183. this.getter = expOrFn;
  7184. } else {
  7185. this.getter = parsePath(expOrFn);
  7186. if (!this.getter) {
  7187. this.getter = noop;
  7188. true && warn(
  7189. "Failed watching path: \"" + expOrFn + "\" " +
  7190. 'Watcher only accepts simple dot-delimited paths. ' +
  7191. 'For full control, use a function instead.',
  7192. vm
  7193. );
  7194. }
  7195. }
  7196. this.value = this.lazy
  7197. ? undefined
  7198. : this.get();
  7199. };
  7200. /**
  7201. * Evaluate the getter, and re-collect dependencies.
  7202. */
  7203. Watcher.prototype.get = function get () {
  7204. pushTarget(this);
  7205. var value;
  7206. var vm = this.vm;
  7207. try {
  7208. value = this.getter.call(vm, vm);
  7209. } catch (e) {
  7210. if (this.user) {
  7211. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7212. } else {
  7213. throw e
  7214. }
  7215. } finally {
  7216. // "touch" every property so they are all tracked as
  7217. // dependencies for deep watching
  7218. if (this.deep) {
  7219. traverse(value);
  7220. }
  7221. popTarget();
  7222. this.cleanupDeps();
  7223. }
  7224. return value
  7225. };
  7226. /**
  7227. * Add a dependency to this directive.
  7228. */
  7229. Watcher.prototype.addDep = function addDep (dep) {
  7230. var id = dep.id;
  7231. if (!this.newDepIds.has(id)) {
  7232. this.newDepIds.add(id);
  7233. this.newDeps.push(dep);
  7234. if (!this.depIds.has(id)) {
  7235. dep.addSub(this);
  7236. }
  7237. }
  7238. };
  7239. /**
  7240. * Clean up for dependency collection.
  7241. */
  7242. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7243. var i = this.deps.length;
  7244. while (i--) {
  7245. var dep = this.deps[i];
  7246. if (!this.newDepIds.has(dep.id)) {
  7247. dep.removeSub(this);
  7248. }
  7249. }
  7250. var tmp = this.depIds;
  7251. this.depIds = this.newDepIds;
  7252. this.newDepIds = tmp;
  7253. this.newDepIds.clear();
  7254. tmp = this.deps;
  7255. this.deps = this.newDeps;
  7256. this.newDeps = tmp;
  7257. this.newDeps.length = 0;
  7258. };
  7259. /**
  7260. * Subscriber interface.
  7261. * Will be called when a dependency changes.
  7262. */
  7263. Watcher.prototype.update = function update () {
  7264. /* istanbul ignore else */
  7265. if (this.lazy) {
  7266. this.dirty = true;
  7267. } else if (this.sync) {
  7268. this.run();
  7269. } else {
  7270. queueWatcher(this);
  7271. }
  7272. };
  7273. /**
  7274. * Scheduler job interface.
  7275. * Will be called by the scheduler.
  7276. */
  7277. Watcher.prototype.run = function run () {
  7278. if (this.active) {
  7279. var value = this.get();
  7280. if (
  7281. value !== this.value ||
  7282. // Deep watchers and watchers on Object/Arrays should fire even
  7283. // when the value is the same, because the value may
  7284. // have mutated.
  7285. isObject(value) ||
  7286. this.deep
  7287. ) {
  7288. // set new value
  7289. var oldValue = this.value;
  7290. this.value = value;
  7291. if (this.user) {
  7292. try {
  7293. this.cb.call(this.vm, value, oldValue);
  7294. } catch (e) {
  7295. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7296. }
  7297. } else {
  7298. this.cb.call(this.vm, value, oldValue);
  7299. }
  7300. }
  7301. }
  7302. };
  7303. /**
  7304. * Evaluate the value of the watcher.
  7305. * This only gets called for lazy watchers.
  7306. */
  7307. Watcher.prototype.evaluate = function evaluate () {
  7308. this.value = this.get();
  7309. this.dirty = false;
  7310. };
  7311. /**
  7312. * Depend on all deps collected by this watcher.
  7313. */
  7314. Watcher.prototype.depend = function depend () {
  7315. var i = this.deps.length;
  7316. while (i--) {
  7317. this.deps[i].depend();
  7318. }
  7319. };
  7320. /**
  7321. * Remove self from all dependencies' subscriber list.
  7322. */
  7323. Watcher.prototype.teardown = function teardown () {
  7324. if (this.active) {
  7325. // remove self from vm's watcher list
  7326. // this is a somewhat expensive operation so we skip it
  7327. // if the vm is being destroyed.
  7328. if (!this.vm._isBeingDestroyed) {
  7329. remove(this.vm._watchers, this);
  7330. }
  7331. var i = this.deps.length;
  7332. while (i--) {
  7333. this.deps[i].removeSub(this);
  7334. }
  7335. this.active = false;
  7336. }
  7337. };
  7338. /* */
  7339. var sharedPropertyDefinition = {
  7340. enumerable: true,
  7341. configurable: true,
  7342. get: noop,
  7343. set: noop
  7344. };
  7345. function proxy (target, sourceKey, key) {
  7346. sharedPropertyDefinition.get = function proxyGetter () {
  7347. return this[sourceKey][key]
  7348. };
  7349. sharedPropertyDefinition.set = function proxySetter (val) {
  7350. this[sourceKey][key] = val;
  7351. };
  7352. Object.defineProperty(target, key, sharedPropertyDefinition);
  7353. }
  7354. function initState (vm) {
  7355. vm._watchers = [];
  7356. var opts = vm.$options;
  7357. if (opts.props) { initProps(vm, opts.props); }
  7358. if (opts.methods) { initMethods(vm, opts.methods); }
  7359. if (opts.data) {
  7360. initData(vm);
  7361. } else {
  7362. observe(vm._data = {}, true /* asRootData */);
  7363. }
  7364. if (opts.computed) { initComputed(vm, opts.computed); }
  7365. if (opts.watch && opts.watch !== nativeWatch) {
  7366. initWatch(vm, opts.watch);
  7367. }
  7368. }
  7369. function initProps (vm, propsOptions) {
  7370. var propsData = vm.$options.propsData || {};
  7371. var props = vm._props = {};
  7372. // cache prop keys so that future props updates can iterate using Array
  7373. // instead of dynamic object key enumeration.
  7374. var keys = vm.$options._propKeys = [];
  7375. var isRoot = !vm.$parent;
  7376. // root instance props should be converted
  7377. if (!isRoot) {
  7378. toggleObserving(false);
  7379. }
  7380. var loop = function ( key ) {
  7381. keys.push(key);
  7382. var value = validateProp(key, propsOptions, propsData, vm);
  7383. /* istanbul ignore else */
  7384. if (true) {
  7385. var hyphenatedKey = hyphenate(key);
  7386. if (isReservedAttribute(hyphenatedKey) ||
  7387. config.isReservedAttr(hyphenatedKey)) {
  7388. warn(
  7389. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7390. vm
  7391. );
  7392. }
  7393. defineReactive$$1(props, key, value, function () {
  7394. if (!isRoot && !isUpdatingChildComponent) {
  7395. {
  7396. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7397. return
  7398. }
  7399. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7400. if(
  7401. key === 'value' &&
  7402. Array.isArray(vm.$options.behaviors) &&
  7403. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7404. ){
  7405. return
  7406. }
  7407. if(vm._getFormData){
  7408. return
  7409. }
  7410. var $parent = vm.$parent;
  7411. while($parent){
  7412. if($parent.__next_tick_pending){
  7413. return
  7414. }
  7415. $parent = $parent.$parent;
  7416. }
  7417. }
  7418. warn(
  7419. "Avoid mutating a prop directly since the value will be " +
  7420. "overwritten whenever the parent component re-renders. " +
  7421. "Instead, use a data or computed property based on the prop's " +
  7422. "value. Prop being mutated: \"" + key + "\"",
  7423. vm
  7424. );
  7425. }
  7426. });
  7427. } else {}
  7428. // static props are already proxied on the component's prototype
  7429. // during Vue.extend(). We only need to proxy props defined at
  7430. // instantiation here.
  7431. if (!(key in vm)) {
  7432. proxy(vm, "_props", key);
  7433. }
  7434. };
  7435. for (var key in propsOptions) loop( key );
  7436. toggleObserving(true);
  7437. }
  7438. function initData (vm) {
  7439. var data = vm.$options.data;
  7440. data = vm._data = typeof data === 'function'
  7441. ? getData(data, vm)
  7442. : data || {};
  7443. if (!isPlainObject(data)) {
  7444. data = {};
  7445. true && warn(
  7446. 'data functions should return an object:\n' +
  7447. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7448. vm
  7449. );
  7450. }
  7451. // proxy data on instance
  7452. var keys = Object.keys(data);
  7453. var props = vm.$options.props;
  7454. var methods = vm.$options.methods;
  7455. var i = keys.length;
  7456. while (i--) {
  7457. var key = keys[i];
  7458. if (true) {
  7459. if (methods && hasOwn(methods, key)) {
  7460. warn(
  7461. ("Method \"" + key + "\" has already been defined as a data property."),
  7462. vm
  7463. );
  7464. }
  7465. }
  7466. if (props && hasOwn(props, key)) {
  7467. true && warn(
  7468. "The data property \"" + key + "\" is already declared as a prop. " +
  7469. "Use prop default value instead.",
  7470. vm
  7471. );
  7472. } else if (!isReserved(key)) {
  7473. proxy(vm, "_data", key);
  7474. }
  7475. }
  7476. // observe data
  7477. observe(data, true /* asRootData */);
  7478. }
  7479. function getData (data, vm) {
  7480. // #7573 disable dep collection when invoking data getters
  7481. pushTarget();
  7482. try {
  7483. return data.call(vm, vm)
  7484. } catch (e) {
  7485. handleError(e, vm, "data()");
  7486. return {}
  7487. } finally {
  7488. popTarget();
  7489. }
  7490. }
  7491. var computedWatcherOptions = { lazy: true };
  7492. function initComputed (vm, computed) {
  7493. // $flow-disable-line
  7494. var watchers = vm._computedWatchers = Object.create(null);
  7495. // computed properties are just getters during SSR
  7496. var isSSR = isServerRendering();
  7497. for (var key in computed) {
  7498. var userDef = computed[key];
  7499. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7500. if ( true && getter == null) {
  7501. warn(
  7502. ("Getter is missing for computed property \"" + key + "\"."),
  7503. vm
  7504. );
  7505. }
  7506. if (!isSSR) {
  7507. // create internal watcher for the computed property.
  7508. watchers[key] = new Watcher(
  7509. vm,
  7510. getter || noop,
  7511. noop,
  7512. computedWatcherOptions
  7513. );
  7514. }
  7515. // component-defined computed properties are already defined on the
  7516. // component prototype. We only need to define computed properties defined
  7517. // at instantiation here.
  7518. if (!(key in vm)) {
  7519. defineComputed(vm, key, userDef);
  7520. } else if (true) {
  7521. if (key in vm.$data) {
  7522. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7523. } else if (vm.$options.props && key in vm.$options.props) {
  7524. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7525. }
  7526. }
  7527. }
  7528. }
  7529. function defineComputed (
  7530. target,
  7531. key,
  7532. userDef
  7533. ) {
  7534. var shouldCache = !isServerRendering();
  7535. if (typeof userDef === 'function') {
  7536. sharedPropertyDefinition.get = shouldCache
  7537. ? createComputedGetter(key)
  7538. : createGetterInvoker(userDef);
  7539. sharedPropertyDefinition.set = noop;
  7540. } else {
  7541. sharedPropertyDefinition.get = userDef.get
  7542. ? shouldCache && userDef.cache !== false
  7543. ? createComputedGetter(key)
  7544. : createGetterInvoker(userDef.get)
  7545. : noop;
  7546. sharedPropertyDefinition.set = userDef.set || noop;
  7547. }
  7548. if ( true &&
  7549. sharedPropertyDefinition.set === noop) {
  7550. sharedPropertyDefinition.set = function () {
  7551. warn(
  7552. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7553. this
  7554. );
  7555. };
  7556. }
  7557. Object.defineProperty(target, key, sharedPropertyDefinition);
  7558. }
  7559. function createComputedGetter (key) {
  7560. return function computedGetter () {
  7561. var watcher = this._computedWatchers && this._computedWatchers[key];
  7562. if (watcher) {
  7563. if (watcher.dirty) {
  7564. watcher.evaluate();
  7565. }
  7566. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7567. watcher.depend();
  7568. }
  7569. return watcher.value
  7570. }
  7571. }
  7572. }
  7573. function createGetterInvoker(fn) {
  7574. return function computedGetter () {
  7575. return fn.call(this, this)
  7576. }
  7577. }
  7578. function initMethods (vm, methods) {
  7579. var props = vm.$options.props;
  7580. for (var key in methods) {
  7581. if (true) {
  7582. if (typeof methods[key] !== 'function') {
  7583. warn(
  7584. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7585. "Did you reference the function correctly?",
  7586. vm
  7587. );
  7588. }
  7589. if (props && hasOwn(props, key)) {
  7590. warn(
  7591. ("Method \"" + key + "\" has already been defined as a prop."),
  7592. vm
  7593. );
  7594. }
  7595. if ((key in vm) && isReserved(key)) {
  7596. warn(
  7597. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7598. "Avoid defining component methods that start with _ or $."
  7599. );
  7600. }
  7601. }
  7602. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7603. }
  7604. }
  7605. function initWatch (vm, watch) {
  7606. for (var key in watch) {
  7607. var handler = watch[key];
  7608. if (Array.isArray(handler)) {
  7609. for (var i = 0; i < handler.length; i++) {
  7610. createWatcher(vm, key, handler[i]);
  7611. }
  7612. } else {
  7613. createWatcher(vm, key, handler);
  7614. }
  7615. }
  7616. }
  7617. function createWatcher (
  7618. vm,
  7619. expOrFn,
  7620. handler,
  7621. options
  7622. ) {
  7623. if (isPlainObject(handler)) {
  7624. options = handler;
  7625. handler = handler.handler;
  7626. }
  7627. if (typeof handler === 'string') {
  7628. handler = vm[handler];
  7629. }
  7630. return vm.$watch(expOrFn, handler, options)
  7631. }
  7632. function stateMixin (Vue) {
  7633. // flow somehow has problems with directly declared definition object
  7634. // when using Object.defineProperty, so we have to procedurally build up
  7635. // the object here.
  7636. var dataDef = {};
  7637. dataDef.get = function () { return this._data };
  7638. var propsDef = {};
  7639. propsDef.get = function () { return this._props };
  7640. if (true) {
  7641. dataDef.set = function () {
  7642. warn(
  7643. 'Avoid replacing instance root $data. ' +
  7644. 'Use nested data properties instead.',
  7645. this
  7646. );
  7647. };
  7648. propsDef.set = function () {
  7649. warn("$props is readonly.", this);
  7650. };
  7651. }
  7652. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7653. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7654. Vue.prototype.$set = set;
  7655. Vue.prototype.$delete = del;
  7656. Vue.prototype.$watch = function (
  7657. expOrFn,
  7658. cb,
  7659. options
  7660. ) {
  7661. var vm = this;
  7662. if (isPlainObject(cb)) {
  7663. return createWatcher(vm, expOrFn, cb, options)
  7664. }
  7665. options = options || {};
  7666. options.user = true;
  7667. var watcher = new Watcher(vm, expOrFn, cb, options);
  7668. if (options.immediate) {
  7669. try {
  7670. cb.call(vm, watcher.value);
  7671. } catch (error) {
  7672. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7673. }
  7674. }
  7675. return function unwatchFn () {
  7676. watcher.teardown();
  7677. }
  7678. };
  7679. }
  7680. /* */
  7681. var uid$3 = 0;
  7682. function initMixin (Vue) {
  7683. Vue.prototype._init = function (options) {
  7684. var vm = this;
  7685. // a uid
  7686. vm._uid = uid$3++;
  7687. var startTag, endTag;
  7688. /* istanbul ignore if */
  7689. if ( true && config.performance && mark) {
  7690. startTag = "vue-perf-start:" + (vm._uid);
  7691. endTag = "vue-perf-end:" + (vm._uid);
  7692. mark(startTag);
  7693. }
  7694. // a flag to avoid this being observed
  7695. vm._isVue = true;
  7696. // merge options
  7697. if (options && options._isComponent) {
  7698. // optimize internal component instantiation
  7699. // since dynamic options merging is pretty slow, and none of the
  7700. // internal component options needs special treatment.
  7701. initInternalComponent(vm, options);
  7702. } else {
  7703. vm.$options = mergeOptions(
  7704. resolveConstructorOptions(vm.constructor),
  7705. options || {},
  7706. vm
  7707. );
  7708. }
  7709. /* istanbul ignore else */
  7710. if (true) {
  7711. initProxy(vm);
  7712. } else {}
  7713. // expose real self
  7714. vm._self = vm;
  7715. initLifecycle(vm);
  7716. initEvents(vm);
  7717. initRender(vm);
  7718. callHook(vm, 'beforeCreate');
  7719. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7720. initState(vm);
  7721. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7722. !vm._$fallback && callHook(vm, 'created');
  7723. /* istanbul ignore if */
  7724. if ( true && config.performance && mark) {
  7725. vm._name = formatComponentName(vm, false);
  7726. mark(endTag);
  7727. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7728. }
  7729. if (vm.$options.el) {
  7730. vm.$mount(vm.$options.el);
  7731. }
  7732. };
  7733. }
  7734. function initInternalComponent (vm, options) {
  7735. var opts = vm.$options = Object.create(vm.constructor.options);
  7736. // doing this because it's faster than dynamic enumeration.
  7737. var parentVnode = options._parentVnode;
  7738. opts.parent = options.parent;
  7739. opts._parentVnode = parentVnode;
  7740. var vnodeComponentOptions = parentVnode.componentOptions;
  7741. opts.propsData = vnodeComponentOptions.propsData;
  7742. opts._parentListeners = vnodeComponentOptions.listeners;
  7743. opts._renderChildren = vnodeComponentOptions.children;
  7744. opts._componentTag = vnodeComponentOptions.tag;
  7745. if (options.render) {
  7746. opts.render = options.render;
  7747. opts.staticRenderFns = options.staticRenderFns;
  7748. }
  7749. }
  7750. function resolveConstructorOptions (Ctor) {
  7751. var options = Ctor.options;
  7752. if (Ctor.super) {
  7753. var superOptions = resolveConstructorOptions(Ctor.super);
  7754. var cachedSuperOptions = Ctor.superOptions;
  7755. if (superOptions !== cachedSuperOptions) {
  7756. // super option changed,
  7757. // need to resolve new options.
  7758. Ctor.superOptions = superOptions;
  7759. // check if there are any late-modified/attached options (#4976)
  7760. var modifiedOptions = resolveModifiedOptions(Ctor);
  7761. // update base extend options
  7762. if (modifiedOptions) {
  7763. extend(Ctor.extendOptions, modifiedOptions);
  7764. }
  7765. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7766. if (options.name) {
  7767. options.components[options.name] = Ctor;
  7768. }
  7769. }
  7770. }
  7771. return options
  7772. }
  7773. function resolveModifiedOptions (Ctor) {
  7774. var modified;
  7775. var latest = Ctor.options;
  7776. var sealed = Ctor.sealedOptions;
  7777. for (var key in latest) {
  7778. if (latest[key] !== sealed[key]) {
  7779. if (!modified) { modified = {}; }
  7780. modified[key] = latest[key];
  7781. }
  7782. }
  7783. return modified
  7784. }
  7785. function Vue (options) {
  7786. if ( true &&
  7787. !(this instanceof Vue)
  7788. ) {
  7789. warn('Vue is a constructor and should be called with the `new` keyword');
  7790. }
  7791. this._init(options);
  7792. }
  7793. initMixin(Vue);
  7794. stateMixin(Vue);
  7795. eventsMixin(Vue);
  7796. lifecycleMixin(Vue);
  7797. renderMixin(Vue);
  7798. /* */
  7799. function initUse (Vue) {
  7800. Vue.use = function (plugin) {
  7801. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7802. if (installedPlugins.indexOf(plugin) > -1) {
  7803. return this
  7804. }
  7805. // additional parameters
  7806. var args = toArray(arguments, 1);
  7807. args.unshift(this);
  7808. if (typeof plugin.install === 'function') {
  7809. plugin.install.apply(plugin, args);
  7810. } else if (typeof plugin === 'function') {
  7811. plugin.apply(null, args);
  7812. }
  7813. installedPlugins.push(plugin);
  7814. return this
  7815. };
  7816. }
  7817. /* */
  7818. function initMixin$1 (Vue) {
  7819. Vue.mixin = function (mixin) {
  7820. this.options = mergeOptions(this.options, mixin);
  7821. return this
  7822. };
  7823. }
  7824. /* */
  7825. function initExtend (Vue) {
  7826. /**
  7827. * Each instance constructor, including Vue, has a unique
  7828. * cid. This enables us to create wrapped "child
  7829. * constructors" for prototypal inheritance and cache them.
  7830. */
  7831. Vue.cid = 0;
  7832. var cid = 1;
  7833. /**
  7834. * Class inheritance
  7835. */
  7836. Vue.extend = function (extendOptions) {
  7837. extendOptions = extendOptions || {};
  7838. var Super = this;
  7839. var SuperId = Super.cid;
  7840. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7841. if (cachedCtors[SuperId]) {
  7842. return cachedCtors[SuperId]
  7843. }
  7844. var name = extendOptions.name || Super.options.name;
  7845. if ( true && name) {
  7846. validateComponentName(name);
  7847. }
  7848. var Sub = function VueComponent (options) {
  7849. this._init(options);
  7850. };
  7851. Sub.prototype = Object.create(Super.prototype);
  7852. Sub.prototype.constructor = Sub;
  7853. Sub.cid = cid++;
  7854. Sub.options = mergeOptions(
  7855. Super.options,
  7856. extendOptions
  7857. );
  7858. Sub['super'] = Super;
  7859. // For props and computed properties, we define the proxy getters on
  7860. // the Vue instances at extension time, on the extended prototype. This
  7861. // avoids Object.defineProperty calls for each instance created.
  7862. if (Sub.options.props) {
  7863. initProps$1(Sub);
  7864. }
  7865. if (Sub.options.computed) {
  7866. initComputed$1(Sub);
  7867. }
  7868. // allow further extension/mixin/plugin usage
  7869. Sub.extend = Super.extend;
  7870. Sub.mixin = Super.mixin;
  7871. Sub.use = Super.use;
  7872. // create asset registers, so extended classes
  7873. // can have their private assets too.
  7874. ASSET_TYPES.forEach(function (type) {
  7875. Sub[type] = Super[type];
  7876. });
  7877. // enable recursive self-lookup
  7878. if (name) {
  7879. Sub.options.components[name] = Sub;
  7880. }
  7881. // keep a reference to the super options at extension time.
  7882. // later at instantiation we can check if Super's options have
  7883. // been updated.
  7884. Sub.superOptions = Super.options;
  7885. Sub.extendOptions = extendOptions;
  7886. Sub.sealedOptions = extend({}, Sub.options);
  7887. // cache constructor
  7888. cachedCtors[SuperId] = Sub;
  7889. return Sub
  7890. };
  7891. }
  7892. function initProps$1 (Comp) {
  7893. var props = Comp.options.props;
  7894. for (var key in props) {
  7895. proxy(Comp.prototype, "_props", key);
  7896. }
  7897. }
  7898. function initComputed$1 (Comp) {
  7899. var computed = Comp.options.computed;
  7900. for (var key in computed) {
  7901. defineComputed(Comp.prototype, key, computed[key]);
  7902. }
  7903. }
  7904. /* */
  7905. function initAssetRegisters (Vue) {
  7906. /**
  7907. * Create asset registration methods.
  7908. */
  7909. ASSET_TYPES.forEach(function (type) {
  7910. Vue[type] = function (
  7911. id,
  7912. definition
  7913. ) {
  7914. if (!definition) {
  7915. return this.options[type + 's'][id]
  7916. } else {
  7917. /* istanbul ignore if */
  7918. if ( true && type === 'component') {
  7919. validateComponentName(id);
  7920. }
  7921. if (type === 'component' && isPlainObject(definition)) {
  7922. definition.name = definition.name || id;
  7923. definition = this.options._base.extend(definition);
  7924. }
  7925. if (type === 'directive' && typeof definition === 'function') {
  7926. definition = { bind: definition, update: definition };
  7927. }
  7928. this.options[type + 's'][id] = definition;
  7929. return definition
  7930. }
  7931. };
  7932. });
  7933. }
  7934. /* */
  7935. function getComponentName (opts) {
  7936. return opts && (opts.Ctor.options.name || opts.tag)
  7937. }
  7938. function matches (pattern, name) {
  7939. if (Array.isArray(pattern)) {
  7940. return pattern.indexOf(name) > -1
  7941. } else if (typeof pattern === 'string') {
  7942. return pattern.split(',').indexOf(name) > -1
  7943. } else if (isRegExp(pattern)) {
  7944. return pattern.test(name)
  7945. }
  7946. /* istanbul ignore next */
  7947. return false
  7948. }
  7949. function pruneCache (keepAliveInstance, filter) {
  7950. var cache = keepAliveInstance.cache;
  7951. var keys = keepAliveInstance.keys;
  7952. var _vnode = keepAliveInstance._vnode;
  7953. for (var key in cache) {
  7954. var cachedNode = cache[key];
  7955. if (cachedNode) {
  7956. var name = getComponentName(cachedNode.componentOptions);
  7957. if (name && !filter(name)) {
  7958. pruneCacheEntry(cache, key, keys, _vnode);
  7959. }
  7960. }
  7961. }
  7962. }
  7963. function pruneCacheEntry (
  7964. cache,
  7965. key,
  7966. keys,
  7967. current
  7968. ) {
  7969. var cached$$1 = cache[key];
  7970. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  7971. cached$$1.componentInstance.$destroy();
  7972. }
  7973. cache[key] = null;
  7974. remove(keys, key);
  7975. }
  7976. var patternTypes = [String, RegExp, Array];
  7977. var KeepAlive = {
  7978. name: 'keep-alive',
  7979. abstract: true,
  7980. props: {
  7981. include: patternTypes,
  7982. exclude: patternTypes,
  7983. max: [String, Number]
  7984. },
  7985. created: function created () {
  7986. this.cache = Object.create(null);
  7987. this.keys = [];
  7988. },
  7989. destroyed: function destroyed () {
  7990. for (var key in this.cache) {
  7991. pruneCacheEntry(this.cache, key, this.keys);
  7992. }
  7993. },
  7994. mounted: function mounted () {
  7995. var this$1 = this;
  7996. this.$watch('include', function (val) {
  7997. pruneCache(this$1, function (name) { return matches(val, name); });
  7998. });
  7999. this.$watch('exclude', function (val) {
  8000. pruneCache(this$1, function (name) { return !matches(val, name); });
  8001. });
  8002. },
  8003. render: function render () {
  8004. var slot = this.$slots.default;
  8005. var vnode = getFirstComponentChild(slot);
  8006. var componentOptions = vnode && vnode.componentOptions;
  8007. if (componentOptions) {
  8008. // check pattern
  8009. var name = getComponentName(componentOptions);
  8010. var ref = this;
  8011. var include = ref.include;
  8012. var exclude = ref.exclude;
  8013. if (
  8014. // not included
  8015. (include && (!name || !matches(include, name))) ||
  8016. // excluded
  8017. (exclude && name && matches(exclude, name))
  8018. ) {
  8019. return vnode
  8020. }
  8021. var ref$1 = this;
  8022. var cache = ref$1.cache;
  8023. var keys = ref$1.keys;
  8024. var key = vnode.key == null
  8025. // same constructor may get registered as different local components
  8026. // so cid alone is not enough (#3269)
  8027. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8028. : vnode.key;
  8029. if (cache[key]) {
  8030. vnode.componentInstance = cache[key].componentInstance;
  8031. // make current key freshest
  8032. remove(keys, key);
  8033. keys.push(key);
  8034. } else {
  8035. cache[key] = vnode;
  8036. keys.push(key);
  8037. // prune oldest entry
  8038. if (this.max && keys.length > parseInt(this.max)) {
  8039. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8040. }
  8041. }
  8042. vnode.data.keepAlive = true;
  8043. }
  8044. return vnode || (slot && slot[0])
  8045. }
  8046. };
  8047. var builtInComponents = {
  8048. KeepAlive: KeepAlive
  8049. };
  8050. /* */
  8051. function initGlobalAPI (Vue) {
  8052. // config
  8053. var configDef = {};
  8054. configDef.get = function () { return config; };
  8055. if (true) {
  8056. configDef.set = function () {
  8057. warn(
  8058. 'Do not replace the Vue.config object, set individual fields instead.'
  8059. );
  8060. };
  8061. }
  8062. Object.defineProperty(Vue, 'config', configDef);
  8063. // exposed util methods.
  8064. // NOTE: these are not considered part of the public API - avoid relying on
  8065. // them unless you are aware of the risk.
  8066. Vue.util = {
  8067. warn: warn,
  8068. extend: extend,
  8069. mergeOptions: mergeOptions,
  8070. defineReactive: defineReactive$$1
  8071. };
  8072. Vue.set = set;
  8073. Vue.delete = del;
  8074. Vue.nextTick = nextTick;
  8075. // 2.6 explicit observable API
  8076. Vue.observable = function (obj) {
  8077. observe(obj);
  8078. return obj
  8079. };
  8080. Vue.options = Object.create(null);
  8081. ASSET_TYPES.forEach(function (type) {
  8082. Vue.options[type + 's'] = Object.create(null);
  8083. });
  8084. // this is used to identify the "base" constructor to extend all plain-object
  8085. // components with in Weex's multi-instance scenarios.
  8086. Vue.options._base = Vue;
  8087. extend(Vue.options.components, builtInComponents);
  8088. initUse(Vue);
  8089. initMixin$1(Vue);
  8090. initExtend(Vue);
  8091. initAssetRegisters(Vue);
  8092. }
  8093. initGlobalAPI(Vue);
  8094. Object.defineProperty(Vue.prototype, '$isServer', {
  8095. get: isServerRendering
  8096. });
  8097. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8098. get: function get () {
  8099. /* istanbul ignore next */
  8100. return this.$vnode && this.$vnode.ssrContext
  8101. }
  8102. });
  8103. // expose FunctionalRenderContext for ssr runtime helper installation
  8104. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8105. value: FunctionalRenderContext
  8106. });
  8107. Vue.version = '2.6.11';
  8108. /**
  8109. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8110. */
  8111. var ARRAYTYPE = '[object Array]';
  8112. var OBJECTTYPE = '[object Object]';
  8113. var NULLTYPE = '[object Null]';
  8114. var UNDEFINEDTYPE = '[object Undefined]';
  8115. // const FUNCTIONTYPE = '[object Function]'
  8116. function diff(current, pre) {
  8117. var result = {};
  8118. syncKeys(current, pre);
  8119. _diff(current, pre, '', result);
  8120. return result
  8121. }
  8122. function syncKeys(current, pre) {
  8123. if (current === pre) { return }
  8124. var rootCurrentType = type(current);
  8125. var rootPreType = type(pre);
  8126. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8127. if(Object.keys(current).length >= Object.keys(pre).length){
  8128. for (var key in pre) {
  8129. var currentValue = current[key];
  8130. if (currentValue === undefined) {
  8131. current[key] = null;
  8132. } else {
  8133. syncKeys(currentValue, pre[key]);
  8134. }
  8135. }
  8136. }
  8137. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8138. if (current.length >= pre.length) {
  8139. pre.forEach(function (item, index) {
  8140. syncKeys(current[index], item);
  8141. });
  8142. }
  8143. }
  8144. }
  8145. function nullOrUndefined(currentType, preType) {
  8146. if(
  8147. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8148. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8149. ) {
  8150. return false
  8151. }
  8152. return true
  8153. }
  8154. function _diff(current, pre, path, result) {
  8155. if (current === pre) { return }
  8156. var rootCurrentType = type(current);
  8157. var rootPreType = type(pre);
  8158. if (rootCurrentType == OBJECTTYPE) {
  8159. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8160. setResult(result, path, current);
  8161. } else {
  8162. var loop = function ( key ) {
  8163. var currentValue = current[key];
  8164. var preValue = pre[key];
  8165. var currentType = type(currentValue);
  8166. var preType = type(preValue);
  8167. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8168. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8169. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8170. }
  8171. } else if (currentType == ARRAYTYPE) {
  8172. if (preType != ARRAYTYPE) {
  8173. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8174. } else {
  8175. if (currentValue.length < preValue.length) {
  8176. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8177. } else {
  8178. currentValue.forEach(function (item, index) {
  8179. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8180. });
  8181. }
  8182. }
  8183. } else if (currentType == OBJECTTYPE) {
  8184. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8185. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8186. } else {
  8187. for (var subKey in currentValue) {
  8188. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8189. }
  8190. }
  8191. }
  8192. };
  8193. for (var key in current) loop( key );
  8194. }
  8195. } else if (rootCurrentType == ARRAYTYPE) {
  8196. if (rootPreType != ARRAYTYPE) {
  8197. setResult(result, path, current);
  8198. } else {
  8199. if (current.length < pre.length) {
  8200. setResult(result, path, current);
  8201. } else {
  8202. current.forEach(function (item, index) {
  8203. _diff(item, pre[index], path + '[' + index + ']', result);
  8204. });
  8205. }
  8206. }
  8207. } else {
  8208. setResult(result, path, current);
  8209. }
  8210. }
  8211. function setResult(result, k, v) {
  8212. // if (type(v) != FUNCTIONTYPE) {
  8213. result[k] = v;
  8214. // }
  8215. }
  8216. function type(obj) {
  8217. return Object.prototype.toString.call(obj)
  8218. }
  8219. /* */
  8220. function flushCallbacks$1(vm) {
  8221. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8222. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8223. var mpInstance = vm.$scope;
  8224. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8225. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8226. }
  8227. var copies = vm.__next_tick_callbacks.slice(0);
  8228. vm.__next_tick_callbacks.length = 0;
  8229. for (var i = 0; i < copies.length; i++) {
  8230. copies[i]();
  8231. }
  8232. }
  8233. }
  8234. function hasRenderWatcher(vm) {
  8235. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8236. }
  8237. function nextTick$1(vm, cb) {
  8238. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8239. //2.nextTick 之前存在 render watcher
  8240. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8241. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8242. var mpInstance = vm.$scope;
  8243. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8244. ']:nextVueTick');
  8245. }
  8246. return nextTick(cb, vm)
  8247. }else{
  8248. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8249. var mpInstance$1 = vm.$scope;
  8250. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8251. ']:nextMPTick');
  8252. }
  8253. }
  8254. var _resolve;
  8255. if (!vm.__next_tick_callbacks) {
  8256. vm.__next_tick_callbacks = [];
  8257. }
  8258. vm.__next_tick_callbacks.push(function () {
  8259. if (cb) {
  8260. try {
  8261. cb.call(vm);
  8262. } catch (e) {
  8263. handleError(e, vm, 'nextTick');
  8264. }
  8265. } else if (_resolve) {
  8266. _resolve(vm);
  8267. }
  8268. });
  8269. // $flow-disable-line
  8270. if (!cb && typeof Promise !== 'undefined') {
  8271. return new Promise(function (resolve) {
  8272. _resolve = resolve;
  8273. })
  8274. }
  8275. }
  8276. /* */
  8277. function clearInstance(key, value) {
  8278. // 简易去除 Vue 和小程序组件实例
  8279. if (value) {
  8280. if (value._isVue || value.__v_isMPComponent) {
  8281. return {}
  8282. }
  8283. }
  8284. return value
  8285. }
  8286. function cloneWithData(vm) {
  8287. // 确保当前 vm 所有数据被同步
  8288. var ret = Object.create(null);
  8289. var dataKeys = [].concat(
  8290. Object.keys(vm._data || {}),
  8291. Object.keys(vm._computedWatchers || {}));
  8292. dataKeys.reduce(function(ret, key) {
  8293. ret[key] = vm[key];
  8294. return ret
  8295. }, ret);
  8296. // vue-composition-api
  8297. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8298. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8299. if (rawBindings) {
  8300. Object.keys(rawBindings).forEach(function (key) {
  8301. ret[key] = vm[key];
  8302. });
  8303. }
  8304. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8305. Object.assign(ret, vm.$mp.data || {});
  8306. if (
  8307. Array.isArray(vm.$options.behaviors) &&
  8308. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8309. ) { //form-field
  8310. ret['name'] = vm.name;
  8311. ret['value'] = vm.value;
  8312. }
  8313. return JSON.parse(JSON.stringify(ret, clearInstance))
  8314. }
  8315. var patch = function(oldVnode, vnode) {
  8316. var this$1 = this;
  8317. if (vnode === null) { //destroy
  8318. return
  8319. }
  8320. if (this.mpType === 'page' || this.mpType === 'component') {
  8321. var mpInstance = this.$scope;
  8322. var data = Object.create(null);
  8323. try {
  8324. data = cloneWithData(this);
  8325. } catch (err) {
  8326. console.error(err);
  8327. }
  8328. data.__webviewId__ = mpInstance.data.__webviewId__;
  8329. var mpData = Object.create(null);
  8330. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8331. mpData[key] = mpInstance.data[key];
  8332. });
  8333. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8334. if (Object.keys(diffData).length) {
  8335. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"产品化管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8336. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8337. ']差量更新',
  8338. JSON.stringify(diffData));
  8339. }
  8340. this.__next_tick_pending = true;
  8341. mpInstance.setData(diffData, function () {
  8342. this$1.__next_tick_pending = false;
  8343. flushCallbacks$1(this$1);
  8344. });
  8345. } else {
  8346. flushCallbacks$1(this);
  8347. }
  8348. }
  8349. };
  8350. /* */
  8351. function createEmptyRender() {
  8352. }
  8353. function mountComponent$1(
  8354. vm,
  8355. el,
  8356. hydrating
  8357. ) {
  8358. if (!vm.mpType) {//main.js 中的 new Vue
  8359. return vm
  8360. }
  8361. if (vm.mpType === 'app') {
  8362. vm.$options.render = createEmptyRender;
  8363. }
  8364. if (!vm.$options.render) {
  8365. vm.$options.render = createEmptyRender;
  8366. if (true) {
  8367. /* istanbul ignore if */
  8368. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8369. vm.$options.el || el) {
  8370. warn(
  8371. 'You are using the runtime-only build of Vue where the template ' +
  8372. 'compiler is not available. Either pre-compile the templates into ' +
  8373. 'render functions, or use the compiler-included build.',
  8374. vm
  8375. );
  8376. } else {
  8377. warn(
  8378. 'Failed to mount component: template or render function not defined.',
  8379. vm
  8380. );
  8381. }
  8382. }
  8383. }
  8384. !vm._$fallback && callHook(vm, 'beforeMount');
  8385. var updateComponent = function () {
  8386. vm._update(vm._render(), hydrating);
  8387. };
  8388. // we set this to vm._watcher inside the watcher's constructor
  8389. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8390. // component's mounted hook), which relies on vm._watcher being already defined
  8391. new Watcher(vm, updateComponent, noop, {
  8392. before: function before() {
  8393. if (vm._isMounted && !vm._isDestroyed) {
  8394. callHook(vm, 'beforeUpdate');
  8395. }
  8396. }
  8397. }, true /* isRenderWatcher */);
  8398. hydrating = false;
  8399. return vm
  8400. }
  8401. /* */
  8402. function renderClass (
  8403. staticClass,
  8404. dynamicClass
  8405. ) {
  8406. if (isDef(staticClass) || isDef(dynamicClass)) {
  8407. return concat(staticClass, stringifyClass(dynamicClass))
  8408. }
  8409. /* istanbul ignore next */
  8410. return ''
  8411. }
  8412. function concat (a, b) {
  8413. return a ? b ? (a + ' ' + b) : a : (b || '')
  8414. }
  8415. function stringifyClass (value) {
  8416. if (Array.isArray(value)) {
  8417. return stringifyArray(value)
  8418. }
  8419. if (isObject(value)) {
  8420. return stringifyObject(value)
  8421. }
  8422. if (typeof value === 'string') {
  8423. return value
  8424. }
  8425. /* istanbul ignore next */
  8426. return ''
  8427. }
  8428. function stringifyArray (value) {
  8429. var res = '';
  8430. var stringified;
  8431. for (var i = 0, l = value.length; i < l; i++) {
  8432. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8433. if (res) { res += ' '; }
  8434. res += stringified;
  8435. }
  8436. }
  8437. return res
  8438. }
  8439. function stringifyObject (value) {
  8440. var res = '';
  8441. for (var key in value) {
  8442. if (value[key]) {
  8443. if (res) { res += ' '; }
  8444. res += key;
  8445. }
  8446. }
  8447. return res
  8448. }
  8449. /* */
  8450. var parseStyleText = cached(function (cssText) {
  8451. var res = {};
  8452. var listDelimiter = /;(?![^(]*\))/g;
  8453. var propertyDelimiter = /:(.+)/;
  8454. cssText.split(listDelimiter).forEach(function (item) {
  8455. if (item) {
  8456. var tmp = item.split(propertyDelimiter);
  8457. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8458. }
  8459. });
  8460. return res
  8461. });
  8462. // normalize possible array / string values into Object
  8463. function normalizeStyleBinding (bindingStyle) {
  8464. if (Array.isArray(bindingStyle)) {
  8465. return toObject(bindingStyle)
  8466. }
  8467. if (typeof bindingStyle === 'string') {
  8468. return parseStyleText(bindingStyle)
  8469. }
  8470. return bindingStyle
  8471. }
  8472. /* */
  8473. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8474. function getTarget(obj, path) {
  8475. var parts = path.split('.');
  8476. var key = parts[0];
  8477. if (key.indexOf('__$n') === 0) { //number index
  8478. key = parseInt(key.replace('__$n', ''));
  8479. }
  8480. if (parts.length === 1) {
  8481. return obj[key]
  8482. }
  8483. return getTarget(obj[key], parts.slice(1).join('.'))
  8484. }
  8485. function internalMixin(Vue) {
  8486. Vue.config.errorHandler = function(err, vm, info) {
  8487. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8488. console.error(err);
  8489. /* eslint-disable no-undef */
  8490. var app = typeof getApp === 'function' && getApp();
  8491. if (app && app.onError) {
  8492. app.onError(err);
  8493. }
  8494. };
  8495. var oldEmit = Vue.prototype.$emit;
  8496. Vue.prototype.$emit = function(event) {
  8497. if (this.$scope && event) {
  8498. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8499. if (triggerEvent) {
  8500. try {
  8501. triggerEvent.call(this.$scope, event, {
  8502. __args__: toArray(arguments, 1)
  8503. });
  8504. } catch (error) {
  8505. }
  8506. }
  8507. }
  8508. return oldEmit.apply(this, arguments)
  8509. };
  8510. Vue.prototype.$nextTick = function(fn) {
  8511. return nextTick$1(this, fn)
  8512. };
  8513. MP_METHODS.forEach(function (method) {
  8514. Vue.prototype[method] = function(args) {
  8515. if (this.$scope && this.$scope[method]) {
  8516. return this.$scope[method](args)
  8517. }
  8518. // mp-alipay
  8519. if (typeof my === 'undefined') {
  8520. return
  8521. }
  8522. if (method === 'createSelectorQuery') {
  8523. /* eslint-disable no-undef */
  8524. return my.createSelectorQuery(args)
  8525. } else if (method === 'createIntersectionObserver') {
  8526. /* eslint-disable no-undef */
  8527. return my.createIntersectionObserver(args)
  8528. }
  8529. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8530. };
  8531. });
  8532. Vue.prototype.__init_provide = initProvide;
  8533. Vue.prototype.__init_injections = initInjections;
  8534. Vue.prototype.__call_hook = function(hook, args) {
  8535. var vm = this;
  8536. // #7573 disable dep collection when invoking lifecycle hooks
  8537. pushTarget();
  8538. var handlers = vm.$options[hook];
  8539. var info = hook + " hook";
  8540. var ret;
  8541. if (handlers) {
  8542. for (var i = 0, j = handlers.length; i < j; i++) {
  8543. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8544. }
  8545. }
  8546. if (vm._hasHookEvent) {
  8547. vm.$emit('hook:' + hook, args);
  8548. }
  8549. popTarget();
  8550. return ret
  8551. };
  8552. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8553. if (Array.isArray(modifiers)) {
  8554. if (modifiers.indexOf('trim') !== -1) {
  8555. value = value.trim();
  8556. }
  8557. if (modifiers.indexOf('number') !== -1) {
  8558. value = this._n(value);
  8559. }
  8560. }
  8561. if (!target) {
  8562. target = this;
  8563. }
  8564. // 解决动态属性添加
  8565. Vue.set(target, key, value);
  8566. };
  8567. Vue.prototype.__set_sync = function(target, key, value) {
  8568. if (!target) {
  8569. target = this;
  8570. }
  8571. // 解决动态属性添加
  8572. Vue.set(target, key, value);
  8573. };
  8574. Vue.prototype.__get_orig = function(item) {
  8575. if (isPlainObject(item)) {
  8576. return item['$orig'] || item
  8577. }
  8578. return item
  8579. };
  8580. Vue.prototype.__get_value = function(dataPath, target) {
  8581. return getTarget(target || this, dataPath)
  8582. };
  8583. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8584. return renderClass(staticClass, dynamicClass)
  8585. };
  8586. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8587. if (!dynamicStyle && !staticStyle) {
  8588. return ''
  8589. }
  8590. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8591. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8592. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8593. };
  8594. Vue.prototype.__map = function(val, iteratee) {
  8595. //TODO 暂不考虑 string
  8596. var ret, i, l, keys, key;
  8597. if (Array.isArray(val)) {
  8598. ret = new Array(val.length);
  8599. for (i = 0, l = val.length; i < l; i++) {
  8600. ret[i] = iteratee(val[i], i);
  8601. }
  8602. return ret
  8603. } else if (isObject(val)) {
  8604. keys = Object.keys(val);
  8605. ret = Object.create(null);
  8606. for (i = 0, l = keys.length; i < l; i++) {
  8607. key = keys[i];
  8608. ret[key] = iteratee(val[key], key, i);
  8609. }
  8610. return ret
  8611. } else if (typeof val === 'number') {
  8612. ret = new Array(val);
  8613. for (i = 0, l = val; i < l; i++) {
  8614. // 第一个参数暂时仍和小程序一致
  8615. ret[i] = iteratee(i, i);
  8616. }
  8617. return ret
  8618. }
  8619. return []
  8620. };
  8621. }
  8622. /* */
  8623. var LIFECYCLE_HOOKS$1 = [
  8624. //App
  8625. 'onLaunch',
  8626. 'onShow',
  8627. 'onHide',
  8628. 'onUniNViewMessage',
  8629. 'onPageNotFound',
  8630. 'onThemeChange',
  8631. 'onError',
  8632. 'onUnhandledRejection',
  8633. //Page
  8634. 'onInit',
  8635. 'onLoad',
  8636. // 'onShow',
  8637. 'onReady',
  8638. // 'onHide',
  8639. 'onUnload',
  8640. 'onPullDownRefresh',
  8641. 'onReachBottom',
  8642. 'onTabItemTap',
  8643. 'onAddToFavorites',
  8644. 'onShareTimeline',
  8645. 'onShareAppMessage',
  8646. 'onResize',
  8647. 'onPageScroll',
  8648. 'onNavigationBarButtonTap',
  8649. 'onBackPress',
  8650. 'onNavigationBarSearchInputChanged',
  8651. 'onNavigationBarSearchInputConfirmed',
  8652. 'onNavigationBarSearchInputClicked',
  8653. 'onUploadDouyinVideo',
  8654. 'onNFCReadMessage',
  8655. //Component
  8656. // 'onReady', // 兼容旧版本,应该移除该事件
  8657. 'onPageShow',
  8658. 'onPageHide',
  8659. 'onPageResize'
  8660. ];
  8661. function lifecycleMixin$1(Vue) {
  8662. //fixed vue-class-component
  8663. var oldExtend = Vue.extend;
  8664. Vue.extend = function(extendOptions) {
  8665. extendOptions = extendOptions || {};
  8666. var methods = extendOptions.methods;
  8667. if (methods) {
  8668. Object.keys(methods).forEach(function (methodName) {
  8669. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8670. extendOptions[methodName] = methods[methodName];
  8671. delete methods[methodName];
  8672. }
  8673. });
  8674. }
  8675. return oldExtend.call(this, extendOptions)
  8676. };
  8677. var strategies = Vue.config.optionMergeStrategies;
  8678. var mergeHook = strategies.created;
  8679. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8680. strategies[hook] = mergeHook;
  8681. });
  8682. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8683. }
  8684. /* */
  8685. // install platform patch function
  8686. Vue.prototype.__patch__ = patch;
  8687. // public mount method
  8688. Vue.prototype.$mount = function(
  8689. el ,
  8690. hydrating
  8691. ) {
  8692. return mountComponent$1(this, el, hydrating)
  8693. };
  8694. lifecycleMixin$1(Vue);
  8695. internalMixin(Vue);
  8696. /* */
  8697. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8698. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8699. /***/ }),
  8700. /***/ 26:
  8701. /*!***********************************************!*\
  8702. !*** D:/AAAcompany_product/产品化管理端/pages.json ***!
  8703. \***********************************************/
  8704. /*! no static exports found */
  8705. /***/ (function(module, exports) {
  8706. /***/ }),
  8707. /***/ 27:
  8708. /*!*******************************************************************!*\
  8709. !*** ./node_modules/@dcloudio/uni-stat/dist/uni-cloud-stat.es.js ***!
  8710. \*******************************************************************/
  8711. /*! no static exports found */
  8712. /***/ (function(module, exports, __webpack_require__) {
  8713. /* WEBPACK VAR INJECTION */(function(uni, uniCloud) {var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ 33);
  8714. var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34);
  8715. var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35);
  8716. var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23);
  8717. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 24);
  8718. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  8719. var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11);
  8720. 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); }; }
  8721. 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; } }
  8722. /**
  8723. * 获取系统信息
  8724. */
  8725. var sys = uni.getSystemInfoSync();
  8726. // 访问开始即启动小程序,访问结束结分为:进入后台超过5min、在前台无任何操作超过30min、在新的来源打开小程序;
  8727. var STAT_VERSION = "4.08";
  8728. var STAT_URL = 'https://tongji.dcloud.io/uni/stat';
  8729. var STAT_H5_URL = 'https://tongji.dcloud.io/uni/stat.gif';
  8730. var PAGE_PVER_TIME = 1800; // 页面在前台无操作结束访问时间 单位s
  8731. var APP_PVER_TIME = 300; // 应用在后台结束访问时间 单位s
  8732. var OPERATING_TIME = 10; // 数据上报时间 单位s
  8733. var DIFF_TIME = 60 * 1000 * 60 * 24;
  8734. var appid = "__UNI__8C5F0F6"; // 做应用隔离
  8735. var dbSet = function dbSet(name, value) {
  8736. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8737. if (!data) {
  8738. data = {};
  8739. }
  8740. data[name] = value;
  8741. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8742. };
  8743. var dbGet = function dbGet(name) {
  8744. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8745. if (!data[name]) {
  8746. var dbdata = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  8747. if (!dbdata) {
  8748. dbdata = {};
  8749. }
  8750. if (!dbdata[name]) {
  8751. return undefined;
  8752. }
  8753. data[name] = dbdata[name];
  8754. }
  8755. return data[name];
  8756. };
  8757. var dbRemove = function dbRemove(name) {
  8758. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8759. if (data[name]) {
  8760. delete data[name];
  8761. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8762. } else {
  8763. data = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  8764. if (data[name]) {
  8765. delete data[name];
  8766. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8767. }
  8768. }
  8769. };
  8770. // 获取 manifest.json 中统计配置
  8771. var uniStatisticsConfig = {"version":"2","enable":true};
  8772. var statConfig = {
  8773. appid: "__UNI__8C5F0F6"
  8774. };
  8775. var titleJsons = {};
  8776. var debug = false || false;
  8777. // eslint-disable-next-line no-restricted-globals
  8778. var pagesTitle = __webpack_require__(/*! uni-pages?{"type":"style"} */ 40).default;
  8779. var pagesData = pagesTitle.pages;
  8780. for (var i in pagesData) {
  8781. var _style$navigationBar;
  8782. var style = pagesData[i];
  8783. var titleText =
  8784. // MP
  8785. style.navigationBarTitleText ||
  8786. // ali
  8787. style.defaultTitle || ( // H5 || App
  8788. (_style$navigationBar = style.navigationBar) === null || _style$navigationBar === void 0 ? void 0 : _style$navigationBar.titleText) || '';
  8789. if (titleText) {
  8790. titleJsons[i] = titleText;
  8791. }
  8792. }
  8793. // TODO 在云函数中获取,暂时注释
  8794. var UUID_KEY = '__DC_STAT_UUID';
  8795. var UUID_VALUE = '__DC_UUID_VALUE';
  8796. function getUuid() {
  8797. var uuid = '';
  8798. if (get_platform_name() === 'n') {
  8799. try {
  8800. uuid = plus.runtime.getDCloudId();
  8801. } catch (e) {
  8802. uuid = '';
  8803. }
  8804. return uuid;
  8805. }
  8806. try {
  8807. uuid = uni.getStorageSync(UUID_KEY);
  8808. } catch (e) {
  8809. uuid = UUID_VALUE;
  8810. }
  8811. if (!uuid) {
  8812. uuid = Date.now() + '' + Math.floor(Math.random() * 1e7);
  8813. try {
  8814. uni.setStorageSync(UUID_KEY, uuid);
  8815. } catch (e) {
  8816. uni.setStorageSync(UUID_KEY, UUID_VALUE);
  8817. }
  8818. }
  8819. return uuid;
  8820. }
  8821. var get_uuid = function get_uuid(statData) {
  8822. // 有可能不存在 deviceId(一般不存在就是出bug了),就自己生成一个
  8823. return sys.deviceId || getUuid();
  8824. };
  8825. /**
  8826. * 获取老版的 deviceid ,兼容以前的错误 deviceid
  8827. * @param {*} statData
  8828. * @returns
  8829. */
  8830. var get_odid = function get_odid(statData) {
  8831. var odid = '';
  8832. if (get_platform_name() === 'n') {
  8833. try {
  8834. odid = plus.device.uuid;
  8835. } catch (e) {
  8836. odid = '';
  8837. }
  8838. return odid;
  8839. }
  8840. return sys.deviceId || getUuid();
  8841. };
  8842. /**
  8843. * 获取配置信息 如 appid
  8844. */
  8845. var stat_config = statConfig;
  8846. var get_sgin = function get_sgin(statData) {
  8847. var arr = Object.keys(statData);
  8848. var sortArr = arr.sort();
  8849. var sgin = {};
  8850. var sginStr = '';
  8851. for (var i in sortArr) {
  8852. sgin[sortArr[i]] = statData[sortArr[i]];
  8853. sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&';
  8854. }
  8855. return {
  8856. sign: '',
  8857. options: sginStr.substr(0, sginStr.length - 1)
  8858. };
  8859. };
  8860. var get_encodeURIComponent_options = function get_encodeURIComponent_options(statData) {
  8861. var data = {};
  8862. for (var prop in statData) {
  8863. data[prop] = encodeURIComponent(statData[prop]);
  8864. }
  8865. return data;
  8866. };
  8867. /**
  8868. * 获取当前平台
  8869. * 移动端 : 'n',
  8870. * h5 : 'h5',
  8871. * 微信 : 'wx',
  8872. * 阿里 : 'ali',
  8873. * 百度 : 'bd',
  8874. * 头条 : 'tt',
  8875. * qq : 'qq',
  8876. * 快应用 : 'qn',
  8877. * 快手 : 'ks',
  8878. * 飞书 : 'lark',
  8879. * 快应用 : 'qw',
  8880. * 钉钉 : 'dt'
  8881. */
  8882. var get_platform_name = function get_platform_name() {
  8883. var _platformList;
  8884. // 苹果审核代码中禁止出现 alipay 字样 ,需要特殊处理一下
  8885. var aliArr = ['y', 'a', 'p', 'mp-ali'];
  8886. var platformList = (_platformList = {
  8887. app: 'n',
  8888. 'app-plus': 'n',
  8889. h5: 'h5',
  8890. 'mp-weixin': 'wx'
  8891. }, _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);
  8892. if (platformList["mp-weixin"] === 'ali') {
  8893. if (my && my.env) {
  8894. var clientName = my.env.clientName;
  8895. if (clientName === 'ap') return 'ali';
  8896. if (clientName === 'dingtalk') return 'dt';
  8897. // TODO 缺少 ali 下的其他平台
  8898. }
  8899. }
  8900. return platformList["mp-weixin"];
  8901. };
  8902. /**
  8903. * 获取小程序 appid
  8904. */
  8905. var get_pack_name = function get_pack_name() {
  8906. var packName = '';
  8907. if (get_platform_name() === 'wx' || get_platform_name() === 'qq') {
  8908. // 兼容微信小程序低版本基础库
  8909. if (uni.canIUse('getAccountInfoSync')) {
  8910. packName = uni.getAccountInfoSync().miniProgram.appId || '';
  8911. }
  8912. }
  8913. if (get_platform_name() === 'n') ;
  8914. return packName;
  8915. };
  8916. /**
  8917. * 应用版本
  8918. */
  8919. var get_version = function get_version() {
  8920. return get_platform_name() === 'n' ? plus.runtime.version : '';
  8921. };
  8922. /**
  8923. * 获取渠道
  8924. */
  8925. var get_channel = function get_channel() {
  8926. var platformName = get_platform_name();
  8927. var channel = '';
  8928. if (platformName === 'n') {
  8929. channel = plus.runtime.channel;
  8930. }
  8931. return channel;
  8932. };
  8933. /**
  8934. * 获取小程序场景值
  8935. * @param {Object} options 页面信息
  8936. */
  8937. var get_scene = function get_scene(options) {
  8938. var platformName = get_platform_name();
  8939. var scene = '';
  8940. if (options) {
  8941. return options;
  8942. }
  8943. if (platformName === 'wx') {
  8944. scene = uni.getLaunchOptionsSync().scene;
  8945. }
  8946. return scene;
  8947. };
  8948. /**
  8949. * 获取页面url,不包含参数
  8950. */
  8951. var get_route$1 = function get_route$1(pageVm) {
  8952. var _self = pageVm || get_page_vm();
  8953. if (get_platform_name() === 'bd') {
  8954. var mp_route = _self.$mp && _self.$mp.page && _self.$mp.page.is;
  8955. var scope_route = _self.$scope && _self.$scope.is;
  8956. return mp_route || scope_route || '';
  8957. } else {
  8958. return _self.route || _self.$scope && _self.$scope.route || _self.$mp && _self.$mp.page.route;
  8959. }
  8960. };
  8961. /**
  8962. * 获取页面url, 包含参数
  8963. */
  8964. var get_page_route = function get_page_route(pageVm) {
  8965. // 从 app 进入应用 ,没有 $page ,获取不到路由 ,需要获取页面 尝试从 getCurrentPages 获取也页面实例
  8966. // FIXME 尽量不使用 getCurrentPages ,大部分获取路由是从 onHide 获取 ,这时可以获取到,如果是 onload ,则可能获取不到,比如 百度
  8967. var page = pageVm && (pageVm.$page || pageVm.$scope && pageVm.$scope.$page);
  8968. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  8969. if (!page) return lastPageRoute || '';
  8970. // 如果找不到 fullPath 就取 route 的值
  8971. return page.fullPath === '/' ? page.route : page.fullPath || page.route;
  8972. };
  8973. /**
  8974. * 获取页面实例
  8975. */
  8976. var get_page_vm = function get_page_vm() {
  8977. var pages = getCurrentPages();
  8978. var $page = pages[pages.length - 1];
  8979. if (!$page) return null;
  8980. return $page.$vm;
  8981. };
  8982. /**
  8983. * 获取页面类型
  8984. */
  8985. var get_page_types = function get_page_types(self) {
  8986. // XXX 百度有问题 ,获取的都是 componet ,等待修复
  8987. if (self.mpType === 'page' || self.$mpType === 'page' || self.$mp && self.$mp.mpType === 'page' || self.$options.mpType === 'page') {
  8988. return 'page';
  8989. }
  8990. if (self.mpType === 'app' || self.$mpType === 'app' || self.$mp && self.$mp.mpType === 'app' || self.$options.mpType === 'app') {
  8991. return 'app';
  8992. }
  8993. return null;
  8994. };
  8995. /**
  8996. * 处理上报参数
  8997. * @param {Object} 需要处理的数据
  8998. */
  8999. var handle_data = function handle_data(statData) {
  9000. var firstArr = [];
  9001. var contentArr = [];
  9002. var lastArr = [];
  9003. var _loop = function _loop(_i) {
  9004. var rd = statData[_i];
  9005. rd.forEach(function (elm) {
  9006. var newData = '';
  9007. {
  9008. newData = elm;
  9009. }
  9010. if (_i === 0) {
  9011. firstArr.push(newData);
  9012. } else if (_i === 3) {
  9013. lastArr.push(newData);
  9014. } else {
  9015. contentArr.push(newData);
  9016. }
  9017. });
  9018. };
  9019. for (var _i in statData) {
  9020. _loop(_i);
  9021. }
  9022. firstArr.push.apply(firstArr, contentArr.concat(lastArr));
  9023. // 参数需要处理成字符串,方便上传
  9024. return JSON.stringify(firstArr);
  9025. };
  9026. /**
  9027. * 自定义事件参数校验
  9028. */
  9029. var calibration = function calibration(eventName, options) {
  9030. // login 、 share 、pay_success 、pay_fail 、register 、title
  9031. if (!eventName) {
  9032. console.error("uni.report Missing [eventName] parameter");
  9033. return true;
  9034. }
  9035. if (typeof eventName !== 'string') {
  9036. console.error("uni.report [eventName] Parameter type error, it can only be of type String");
  9037. return true;
  9038. }
  9039. if (eventName.length > 255) {
  9040. console.error("uni.report [eventName] Parameter length cannot be greater than 255");
  9041. return true;
  9042. }
  9043. if (typeof options !== 'string' && _typeof(options) !== 'object') {
  9044. console.error('uni.report [options] Parameter type error, Only supports String or Object type');
  9045. return true;
  9046. }
  9047. if (typeof options === 'string' && options.length > 255) {
  9048. console.error("uni.report [options] Parameter length cannot be greater than 255");
  9049. return true;
  9050. }
  9051. if (eventName === 'title' && typeof options !== 'string') {
  9052. console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String");
  9053. return true;
  9054. }
  9055. };
  9056. var get_page_name = function get_page_name(routepath) {
  9057. return titleJsons && titleJsons[routepath] || '';
  9058. };
  9059. var Report_Data_Time = 'Report_Data_Time';
  9060. var Report_Status = 'Report_Status';
  9061. var is_report_data = function is_report_data() {
  9062. return new Promise(function (resolve, reject) {
  9063. var start_time = '';
  9064. var end_time = new Date().getTime();
  9065. var diff_time = DIFF_TIME;
  9066. var report_status = 1;
  9067. try {
  9068. start_time = uni.getStorageSync(Report_Data_Time);
  9069. report_status = uni.getStorageSync(Report_Status);
  9070. } catch (e) {
  9071. start_time = '';
  9072. report_status = 1;
  9073. }
  9074. if (report_status === '') {
  9075. requestData(function (_ref) {
  9076. var enable = _ref.enable;
  9077. uni.setStorageSync(Report_Data_Time, end_time);
  9078. uni.setStorageSync(Report_Status, enable);
  9079. if (enable === 1) {
  9080. resolve();
  9081. }
  9082. });
  9083. return;
  9084. }
  9085. if (report_status === 1) {
  9086. resolve();
  9087. }
  9088. if (!start_time) {
  9089. uni.setStorageSync(Report_Data_Time, end_time);
  9090. start_time = end_time;
  9091. }
  9092. if (end_time - start_time > diff_time) {
  9093. requestData(function (_ref2) {
  9094. var enable = _ref2.enable;
  9095. uni.setStorageSync(Report_Data_Time, end_time);
  9096. uni.setStorageSync(Report_Status, enable);
  9097. });
  9098. }
  9099. });
  9100. };
  9101. var requestData = function requestData(done) {
  9102. var appid = "__UNI__8C5F0F6";
  9103. var formData = {
  9104. usv: STAT_VERSION,
  9105. conf: JSON.stringify({
  9106. ak: appid
  9107. })
  9108. };
  9109. uni.request({
  9110. url: STAT_URL,
  9111. method: 'GET',
  9112. data: formData,
  9113. success: function success(res) {
  9114. var data = res.data;
  9115. if (data.ret === 0) {
  9116. typeof done === 'function' && done({
  9117. enable: data.enable
  9118. });
  9119. }
  9120. },
  9121. fail: function fail(e) {
  9122. var report_status_code = 1;
  9123. try {
  9124. report_status_code = uni.getStorageSync(Report_Status);
  9125. } catch (e) {
  9126. report_status_code = 1;
  9127. }
  9128. if (report_status_code === '') {
  9129. report_status_code = 1;
  9130. }
  9131. typeof done === 'function' && done({
  9132. enable: report_status_code
  9133. });
  9134. }
  9135. });
  9136. };
  9137. /**
  9138. * 获取uniCloud服务空间配置
  9139. * @returns {Object}
  9140. */
  9141. var uni_cloud_config = function uni_cloud_config() {
  9142. return {} || {};
  9143. };
  9144. /**
  9145. * 获取服务空间
  9146. * @param {*} config
  9147. * @returns
  9148. */
  9149. var get_space = function get_space(config) {
  9150. var uniCloudConfig = uni_cloud_config();
  9151. var spaceId = uniCloudConfig.spaceId,
  9152. provider = uniCloudConfig.provider,
  9153. clientSecret = uniCloudConfig.clientSecret,
  9154. secretKey = uniCloudConfig.secretKey,
  9155. secretId = uniCloudConfig.secretId;
  9156. var space_type = ['tcb', 'tencent', 'aliyun', 'alipay'];
  9157. var is_provider = space_type.indexOf(provider) !== -1;
  9158. var is_aliyun = provider === 'aliyun' && spaceId && clientSecret;
  9159. var is_tcb = (provider === 'tcb' || provider === 'tencent') && spaceId;
  9160. var is_alipay = provider === 'alipay' && spaceId && secretKey && secretId;
  9161. if (is_provider && (is_aliyun || is_tcb || is_alipay)) {
  9162. return uniCloudConfig;
  9163. } else {
  9164. if (config && config.spaceId) {
  9165. return config;
  9166. }
  9167. }
  9168. return null;
  9169. };
  9170. /**
  9171. * 是否开启 debug 模式
  9172. */
  9173. var is_debug = debug;
  9174. /**
  9175. * 日志输出
  9176. * @param {*} data
  9177. */
  9178. var log = function log(data, type) {
  9179. var msg_type = '';
  9180. switch (data.lt) {
  9181. case '1':
  9182. msg_type = '应用启动';
  9183. break;
  9184. case '3':
  9185. msg_type = '应用进入后台';
  9186. break;
  9187. case '11':
  9188. msg_type = '页面切换';
  9189. break;
  9190. case '21':
  9191. msg_type = '事件触发';
  9192. break;
  9193. case '31':
  9194. msg_type = '应用错误';
  9195. break;
  9196. case '101':
  9197. msg_type = 'PUSH';
  9198. break;
  9199. }
  9200. if (type) {
  9201. console.log("=== \u7EDF\u8BA1\u961F\u5217\u6570\u636E\u4E0A\u62A5 ===");
  9202. console.log(data);
  9203. console.log("=== \u4E0A\u62A5\u7ED3\u675F ===");
  9204. return;
  9205. }
  9206. if (msg_type) {
  9207. console.log("=== \u7EDF\u8BA1\u6570\u636E\u91C7\u96C6\uFF1A".concat(msg_type, " ==="));
  9208. console.log(data);
  9209. console.log("=== \u91C7\u96C6\u7ED3\u675F ===");
  9210. }
  9211. };
  9212. /**
  9213. * 获取上报时间间隔
  9214. * @param {*} defaultTime 默认上报间隔时间 单位s
  9215. */
  9216. var get_report_Interval = function get_report_Interval(defaultTime) {
  9217. var time = uniStatisticsConfig.reportInterval;
  9218. // 如果上报时间配置为0 相当于立即上报
  9219. if (Number(time) === 0) return 0;
  9220. time = time || defaultTime;
  9221. var reg = /(^[1-9]\d*$)/;
  9222. // 如果不是整数,则默认为上报间隔时间
  9223. if (!reg.test(time)) return defaultTime;
  9224. return Number(time);
  9225. };
  9226. /**
  9227. * 获取隐私协议配置
  9228. */
  9229. var is_push_clientid = function is_push_clientid() {
  9230. if (uniStatisticsConfig.collectItems) {
  9231. var ClientID = uniStatisticsConfig.collectItems.uniPushClientID;
  9232. return typeof ClientID === 'boolean' ? ClientID : false;
  9233. }
  9234. return false;
  9235. };
  9236. /**
  9237. * 是否上报页面数据
  9238. * @returns
  9239. */
  9240. var is_page_report = function is_page_report() {
  9241. if (uniStatisticsConfig.collectItems) {
  9242. var statPageLog = uniStatisticsConfig.collectItems.uniStatPageLog;
  9243. // 如果字段不存在返回 true , 如果是boolean 值按原值返回,如果是其他类型 返回false
  9244. if (statPageLog === undefined) return true;
  9245. return typeof statPageLog === 'boolean' ? statPageLog : true;
  9246. }
  9247. return true;
  9248. };
  9249. /**
  9250. * 是否已处理设备 DeviceId
  9251. * 如果值为 1 则表示已处理
  9252. */
  9253. var IS_HANDLE_DEVECE_ID = 'is_handle_device_id';
  9254. var is_handle_device = function is_handle_device() {
  9255. var isHandleDevice = dbGet(IS_HANDLE_DEVECE_ID) || '';
  9256. dbSet(IS_HANDLE_DEVECE_ID, '1');
  9257. return isHandleDevice === '1';
  9258. };
  9259. // 首次访问时间
  9260. var FIRST_VISIT_TIME_KEY = '__first__visit__time';
  9261. // 最后访问时间
  9262. var LAST_VISIT_TIME_KEY = '__last__visit__time';
  9263. /**
  9264. * 获取当前时间
  9265. */
  9266. var get_time = function get_time() {
  9267. return parseInt(new Date().getTime() / 1000);
  9268. };
  9269. /**
  9270. * 获取首次访问时间
  9271. */
  9272. var get_first_visit_time = function get_first_visit_time() {
  9273. var timeStorge = dbGet(FIRST_VISIT_TIME_KEY);
  9274. var time = 0;
  9275. if (timeStorge) {
  9276. time = timeStorge;
  9277. } else {
  9278. time = get_time();
  9279. dbSet(FIRST_VISIT_TIME_KEY, time);
  9280. // 首次访问需要 将最后访问时间置 0
  9281. dbRemove(LAST_VISIT_TIME_KEY);
  9282. }
  9283. return time;
  9284. };
  9285. /**
  9286. * 最后访问时间
  9287. */
  9288. var get_last_visit_time = function get_last_visit_time() {
  9289. var timeStorge = dbGet(LAST_VISIT_TIME_KEY);
  9290. var time = 0;
  9291. if (timeStorge) {
  9292. time = timeStorge;
  9293. }
  9294. dbSet(LAST_VISIT_TIME_KEY, get_time());
  9295. return time;
  9296. };
  9297. // 页面停留时间记录key
  9298. var PAGE_RESIDENCE_TIME = '__page__residence__time';
  9299. var First_Page_Residence_Time = 0;
  9300. var Last_Page_Residence_Time = 0;
  9301. /**
  9302. * 设置页面停留时间
  9303. */
  9304. var set_page_residence_time = function set_page_residence_time() {
  9305. First_Page_Residence_Time = get_time();
  9306. dbSet(PAGE_RESIDENCE_TIME, First_Page_Residence_Time);
  9307. return First_Page_Residence_Time;
  9308. };
  9309. /**
  9310. * 获取页面停留时间
  9311. */
  9312. var get_page_residence_time = function get_page_residence_time() {
  9313. Last_Page_Residence_Time = get_time();
  9314. First_Page_Residence_Time = dbGet(PAGE_RESIDENCE_TIME);
  9315. return Last_Page_Residence_Time - First_Page_Residence_Time;
  9316. };
  9317. /**
  9318. * 获取总访问次数
  9319. */
  9320. var TOTAL_VISIT_COUNT = '__total__visit__count';
  9321. var get_total_visit_count = function get_total_visit_count() {
  9322. var timeStorge = dbGet(TOTAL_VISIT_COUNT);
  9323. var count = 1;
  9324. if (timeStorge) {
  9325. count = timeStorge;
  9326. count++;
  9327. }
  9328. dbSet(TOTAL_VISIT_COUNT, count);
  9329. return count;
  9330. };
  9331. var FIRST_TIME = '__first_time';
  9332. /**
  9333. * 设置页面首次访问时间,用户获取页面/应用停留时常
  9334. */
  9335. var set_first_time = function set_first_time() {
  9336. // 获取当前时间 ,以下代码获取到是毫秒级时间戳 ,实际上用到是秒级时间戳,所以需要除以1000
  9337. // const time = new Date().getTime()
  9338. var time = get_time();
  9339. var timeStorge = dbSet(FIRST_TIME, time);
  9340. return timeStorge;
  9341. };
  9342. /**
  9343. * 获取最后一次时间 ,暂时用不到,直接获取当前时间即可
  9344. */
  9345. // export const get_last_time = () => {
  9346. // let time = new Date().getTime()
  9347. // Set__Last__Time = time
  9348. // return time
  9349. // }
  9350. /**
  9351. * 获取页面 \ 应用停留时间
  9352. */
  9353. var get_residence_time = function get_residence_time(type) {
  9354. var residenceTime = 0;
  9355. var first_time = dbGet(FIRST_TIME);
  9356. var last_time = get_time();
  9357. if (first_time !== 0) {
  9358. residenceTime = last_time - first_time;
  9359. }
  9360. // 将毫秒级时间戳转换为秒级时间戳,因为直接获取的是秒级时间戳,所以不需要转换
  9361. // residenceTime = parseInt(residenceTime / 1000)
  9362. residenceTime = residenceTime < 1 ? 1 : residenceTime;
  9363. if (type === 'app') {
  9364. var overtime = residenceTime > APP_PVER_TIME ? true : false;
  9365. return {
  9366. residenceTime: residenceTime,
  9367. overtime: overtime
  9368. };
  9369. }
  9370. if (type === 'page') {
  9371. var _overtime = residenceTime > PAGE_PVER_TIME ? true : false;
  9372. return {
  9373. residenceTime: residenceTime,
  9374. overtime: _overtime
  9375. };
  9376. }
  9377. return {
  9378. residenceTime: residenceTime
  9379. };
  9380. };
  9381. var eport_Interval = get_report_Interval(OPERATING_TIME);
  9382. // 统计数据默认值
  9383. var statData = {
  9384. uuid: get_uuid(),
  9385. // 设备标识
  9386. ak: stat_config.appid,
  9387. // uni-app 应用 Appid
  9388. p: sys.platform === 'android' ? 'a' : 'i',
  9389. // 手机系统
  9390. ut: get_platform_name(),
  9391. // 平台类型
  9392. mpn: get_pack_name(),
  9393. // 原生平台包名、小程序 appid
  9394. usv: STAT_VERSION,
  9395. // 统计 sdk 版本
  9396. v: get_version(),
  9397. // 应用版本,仅app
  9398. ch: get_channel(),
  9399. // 渠道信息
  9400. cn: '',
  9401. // 国家
  9402. pn: '',
  9403. // 省份
  9404. ct: '',
  9405. // 城市
  9406. t: get_time(),
  9407. // 上报数据时的时间戳
  9408. tt: '',
  9409. brand: sys.brand || '',
  9410. // 手机品牌
  9411. md: sys.model,
  9412. // 手机型号
  9413. sv: sys.system.replace(/(Android|iOS)\s/, ''),
  9414. // 手机系统版本
  9415. mpsdk: sys.SDKVersion || '',
  9416. // x程序 sdk version
  9417. mpv: sys.version || '',
  9418. // 小程序平台版本 ,如微信、支付宝
  9419. lang: sys.language,
  9420. // 语言
  9421. pr: sys.pixelRatio,
  9422. // pixelRatio 设备像素比
  9423. ww: sys.windowWidth,
  9424. // windowWidth 可使用窗口宽度
  9425. wh: sys.windowHeight,
  9426. // windowHeight 可使用窗口高度
  9427. sw: sys.screenWidth,
  9428. // screenWidth 屏幕宽度
  9429. sh: sys.screenHeight // screenHeight 屏幕高度
  9430. };
  9431. var Report = /*#__PURE__*/function () {
  9432. "use strict";
  9433. function Report() {
  9434. _classCallCheck(this, Report);
  9435. // 页面实例
  9436. this.self = '';
  9437. // 进入应用标识
  9438. this.__licationShow = false;
  9439. // 离开应用标识
  9440. this.__licationHide = false;
  9441. // 统计默认值
  9442. this.statData = statData;
  9443. // 标题默认值
  9444. this._navigationBarTitle = {
  9445. config: '',
  9446. page: '',
  9447. report: '',
  9448. lt: ''
  9449. };
  9450. // 页面参数
  9451. this._query = {};
  9452. // 页面最后停留页面的 url
  9453. // this._lastPageRoute = ''
  9454. // 注册拦截器
  9455. var registerInterceptor = typeof uni.addInterceptor === 'function';
  9456. if (registerInterceptor) {
  9457. this.addInterceptorInit();
  9458. this.interceptLogin();
  9459. this.interceptShare(true);
  9460. this.interceptRequestPayment();
  9461. }
  9462. }
  9463. _createClass(Report, [{
  9464. key: "addInterceptorInit",
  9465. value: function addInterceptorInit() {
  9466. var self = this;
  9467. uni.addInterceptor('setNavigationBarTitle', {
  9468. invoke: function invoke(args) {
  9469. self._navigationBarTitle.page = args.title;
  9470. }
  9471. });
  9472. }
  9473. }, {
  9474. key: "interceptLogin",
  9475. value: function interceptLogin() {
  9476. var self = this;
  9477. uni.addInterceptor('login', {
  9478. complete: function complete() {
  9479. self._login();
  9480. }
  9481. });
  9482. }
  9483. }, {
  9484. key: "interceptShare",
  9485. value: function interceptShare(type) {
  9486. var self = this;
  9487. if (!type) {
  9488. self._share();
  9489. return;
  9490. }
  9491. uni.addInterceptor('share', {
  9492. success: function success() {
  9493. self._share();
  9494. },
  9495. fail: function fail() {
  9496. self._share();
  9497. }
  9498. });
  9499. }
  9500. }, {
  9501. key: "interceptRequestPayment",
  9502. value: function interceptRequestPayment() {
  9503. var self = this;
  9504. uni.addInterceptor('requestPayment', {
  9505. success: function success() {
  9506. self._payment('pay_success');
  9507. },
  9508. fail: function fail() {
  9509. self._payment('pay_fail');
  9510. }
  9511. });
  9512. }
  9513. }, {
  9514. key: "_login",
  9515. value: function _login() {
  9516. this.sendEventRequest({
  9517. key: 'login'
  9518. }, 0);
  9519. }
  9520. }, {
  9521. key: "_share",
  9522. value: function _share() {
  9523. this.sendEventRequest({
  9524. key: 'share'
  9525. }, 0);
  9526. }
  9527. }, {
  9528. key: "_payment",
  9529. value: function _payment(key) {
  9530. this.sendEventRequest({
  9531. key: key
  9532. }, 0);
  9533. }
  9534. /**
  9535. * 进入应用触发
  9536. */
  9537. }, {
  9538. key: "applicationShow",
  9539. value: function applicationShow() {
  9540. // 通过 __licationHide 判断保证是进入后台后在次进入应用,避免重复上报数据
  9541. if (this.__licationHide) {
  9542. var time = get_residence_time('app');
  9543. // 需要判断进入后台是否超过时限 ,默认是 30min ,是的话需要执行进入应用的上报
  9544. if (time.overtime) {
  9545. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  9546. var options = {
  9547. path: lastPageRoute,
  9548. scene: this.statData.sc,
  9549. cst: 2
  9550. };
  9551. this.sendReportRequest(options);
  9552. }
  9553. // 状态重置
  9554. this.__licationHide = false;
  9555. }
  9556. }
  9557. /**
  9558. * 离开应用触发
  9559. * @param {Object} self
  9560. * @param {Object} type
  9561. */
  9562. }, {
  9563. key: "applicationHide",
  9564. value: function applicationHide(self, type) {
  9565. if (!self) {
  9566. // 表示应用切换到后台 ,此时需要从页面栈获取页面实例
  9567. self = get_page_vm();
  9568. }
  9569. // 进入应用后台保存状态,方便进入前台后判断是否上报应用数据
  9570. this.__licationHide = true;
  9571. var time = get_residence_time();
  9572. var route = get_page_route(self);
  9573. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9574. this.sendHideRequest({
  9575. urlref: route,
  9576. urlref_ts: time.residenceTime
  9577. }, type);
  9578. // 更新页面首次访问时间
  9579. set_first_time();
  9580. }
  9581. /**
  9582. * 进入页面触发
  9583. */
  9584. }, {
  9585. key: "pageShow",
  9586. value: function pageShow(self) {
  9587. // 清空值 ,初始化 ,避免污染后面的上报数据
  9588. this._navigationBarTitle = {
  9589. config: '',
  9590. page: '',
  9591. report: '',
  9592. lt: ''
  9593. };
  9594. var route = get_page_route(self);
  9595. var routepath = get_route$1(self);
  9596. this._navigationBarTitle.config = get_page_name(routepath);
  9597. // 表示应用触发 ,页面切换不触发之后的逻辑
  9598. if (this.__licationShow) {
  9599. // 更新页面首次访问时间
  9600. set_first_time();
  9601. // this._lastPageRoute = route
  9602. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9603. this.__licationShow = false;
  9604. return;
  9605. }
  9606. var time = get_residence_time('page');
  9607. // 停留时间
  9608. if (time.overtime) {
  9609. var options = {
  9610. path: route,
  9611. scene: this.statData.sc,
  9612. cst: 3
  9613. };
  9614. this.sendReportRequest(options);
  9615. }
  9616. // 更新页面首次访问时间
  9617. set_first_time();
  9618. }
  9619. /**
  9620. * 离开页面触发
  9621. */
  9622. }, {
  9623. key: "pageHide",
  9624. value: function pageHide(self) {
  9625. if (!this.__licationHide) {
  9626. var time = get_residence_time('page');
  9627. var route = get_page_route(self);
  9628. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  9629. if (!lastPageRoute) {
  9630. lastPageRoute = route;
  9631. }
  9632. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9633. this.sendPageRequest({
  9634. url: route,
  9635. urlref: lastPageRoute,
  9636. urlref_ts: time.residenceTime
  9637. });
  9638. // this._lastPageRoute = route
  9639. return;
  9640. }
  9641. }
  9642. /**
  9643. * 发送请求,应用维度上报
  9644. * @param {Object} options 页面信息
  9645. * @param {Boolean} type 是否立即上报
  9646. */
  9647. }, {
  9648. key: "sendReportRequest",
  9649. value: function sendReportRequest(options, type) {
  9650. this._navigationBarTitle.lt = '1';
  9651. this._navigationBarTitle.config = get_page_name(options.path);
  9652. var is_opt = options.query && JSON.stringify(options.query) !== '{}';
  9653. var query = is_opt ? '?' + JSON.stringify(options.query) : '';
  9654. var last_time = get_last_visit_time();
  9655. // 非老用户
  9656. if (last_time !== 0 || !last_time) {
  9657. var odid = get_odid();
  9658. // 2.0 处理规则
  9659. {
  9660. var have_device = is_handle_device();
  9661. // 如果没有上报过设备信息 ,则需要上报设备信息
  9662. if (!have_device) {
  9663. this.statData.odid = odid;
  9664. }
  9665. }
  9666. }
  9667. Object.assign(this.statData, {
  9668. lt: '1',
  9669. url: options.path + query || '',
  9670. t: get_time(),
  9671. sc: get_scene(options.scene),
  9672. fvts: get_first_visit_time(),
  9673. lvts: last_time,
  9674. tvc: get_total_visit_count(),
  9675. // create session type 上报类型 ,1 应用进入 2.后台30min进入 3.页面30min进入
  9676. cst: options.cst || 1
  9677. });
  9678. if (get_platform_name() === 'n') {
  9679. this.getProperty(type);
  9680. } else {
  9681. this.getNetworkInfo(type);
  9682. }
  9683. }
  9684. /**
  9685. * 发送请求,页面维度上报
  9686. * @param {Object} opt
  9687. */
  9688. }, {
  9689. key: "sendPageRequest",
  9690. value: function sendPageRequest(opt) {
  9691. var url = opt.url,
  9692. urlref = opt.urlref,
  9693. urlref_ts = opt.urlref_ts;
  9694. this._navigationBarTitle.lt = '11';
  9695. var options = {
  9696. ak: this.statData.ak,
  9697. uuid: this.statData.uuid,
  9698. p: this.statData.p,
  9699. lt: '11',
  9700. ut: this.statData.ut,
  9701. url: url,
  9702. tt: this.statData.tt,
  9703. urlref: urlref,
  9704. urlref_ts: urlref_ts,
  9705. ch: this.statData.ch,
  9706. usv: this.statData.usv,
  9707. t: get_time()
  9708. };
  9709. this.request(options);
  9710. }
  9711. /**
  9712. * 进入后台上报数据
  9713. * @param {Object} opt
  9714. * @param {Object} type
  9715. */
  9716. }, {
  9717. key: "sendHideRequest",
  9718. value: function sendHideRequest(opt, type) {
  9719. var urlref = opt.urlref,
  9720. urlref_ts = opt.urlref_ts;
  9721. var options = {
  9722. ak: this.statData.ak,
  9723. uuid: this.statData.uuid,
  9724. p: this.statData.p,
  9725. lt: '3',
  9726. ut: this.statData.ut,
  9727. urlref: urlref,
  9728. urlref_ts: urlref_ts,
  9729. ch: this.statData.ch,
  9730. usv: this.statData.usv,
  9731. t: get_time()
  9732. };
  9733. this.request(options, type);
  9734. }
  9735. /**
  9736. * 自定义事件上报
  9737. */
  9738. }, {
  9739. key: "sendEventRequest",
  9740. value: function sendEventRequest() {
  9741. var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  9742. _ref3$key = _ref3.key,
  9743. key = _ref3$key === void 0 ? '' : _ref3$key,
  9744. _ref3$value = _ref3.value,
  9745. value = _ref3$value === void 0 ? '' : _ref3$value;
  9746. var routepath = '';
  9747. try {
  9748. routepath = get_route$1();
  9749. } catch (error) {
  9750. var launch_options = dbGet('__launch_options');
  9751. routepath = launch_options.path;
  9752. }
  9753. this._navigationBarTitle.config = get_page_name(routepath);
  9754. this._navigationBarTitle.lt = '21';
  9755. var options = {
  9756. ak: this.statData.ak,
  9757. uuid: this.statData.uuid,
  9758. p: this.statData.p,
  9759. lt: '21',
  9760. ut: this.statData.ut,
  9761. url: routepath,
  9762. ch: this.statData.ch,
  9763. e_n: key,
  9764. e_v: _typeof(value) === 'object' ? JSON.stringify(value) : value.toString(),
  9765. usv: this.statData.usv,
  9766. t: get_time()
  9767. };
  9768. this.request(options);
  9769. }
  9770. }, {
  9771. key: "sendPushRequest",
  9772. value: function sendPushRequest(options, cid) {
  9773. var _this = this;
  9774. var time = get_time();
  9775. var statData = {
  9776. lt: '101',
  9777. cid: cid,
  9778. t: time,
  9779. ut: this.statData.ut
  9780. };
  9781. // debug 打印打点信息
  9782. if (is_debug) {
  9783. log(statData);
  9784. }
  9785. var stat_data = handle_data({
  9786. 101: [statData]
  9787. });
  9788. var optionsData = {
  9789. usv: STAT_VERSION,
  9790. //统计 SDK 版本号
  9791. t: time,
  9792. //发送请求时的时间戮
  9793. requests: stat_data
  9794. };
  9795. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  9796. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  9797. setTimeout(function () {
  9798. _this.sendRequest(optionsData);
  9799. }, 200);
  9800. return;
  9801. }
  9802. this.sendRequest(optionsData);
  9803. }
  9804. /**
  9805. * 获取wgt资源版本
  9806. */
  9807. }, {
  9808. key: "getProperty",
  9809. value: function getProperty(type) {
  9810. var _this2 = this;
  9811. plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
  9812. _this2.statData.v = wgtinfo.version || '';
  9813. _this2.getNetworkInfo(type);
  9814. });
  9815. }
  9816. /**
  9817. * 获取网络信息
  9818. */
  9819. }, {
  9820. key: "getNetworkInfo",
  9821. value: function getNetworkInfo(type) {
  9822. var _this3 = this;
  9823. uni.getNetworkType({
  9824. success: function success(result) {
  9825. _this3.statData.net = result.networkType;
  9826. _this3.getLocation(type);
  9827. }
  9828. });
  9829. }
  9830. /**
  9831. * 获取位置信息
  9832. */
  9833. }, {
  9834. key: "getLocation",
  9835. value: function getLocation(type) {
  9836. var _this4 = this;
  9837. if (stat_config.getLocation) {
  9838. uni.getLocation({
  9839. type: 'wgs84',
  9840. geocode: true,
  9841. success: function success(result) {
  9842. if (result.address) {
  9843. _this4.statData.cn = result.address.country;
  9844. _this4.statData.pn = result.address.province;
  9845. _this4.statData.ct = result.address.city;
  9846. }
  9847. _this4.statData.lat = result.latitude;
  9848. _this4.statData.lng = result.longitude;
  9849. _this4.request(_this4.statData, type);
  9850. }
  9851. });
  9852. } else {
  9853. this.statData.lat = 0;
  9854. this.statData.lng = 0;
  9855. this.request(this.statData, type);
  9856. }
  9857. }
  9858. /**
  9859. * 发送请求
  9860. * @param {Object} data 上报数据
  9861. * @param {Object} type 类型
  9862. */
  9863. }, {
  9864. key: "request",
  9865. value: function request(data, type) {
  9866. var _this5 = this;
  9867. var time = get_time();
  9868. var title = this._navigationBarTitle;
  9869. Object.assign(data, {
  9870. ttn: title.page,
  9871. ttpj: title.config,
  9872. ttc: title.report
  9873. });
  9874. var uniStatData = dbGet('__UNI__STAT__DATA') || {};
  9875. if (!uniStatData[data.lt]) {
  9876. uniStatData[data.lt] = [];
  9877. }
  9878. // 加入队列
  9879. uniStatData[data.lt].push(data);
  9880. dbSet('__UNI__STAT__DATA', uniStatData);
  9881. var page_residence_time = get_page_residence_time();
  9882. // debug 打印打点信息
  9883. if (is_debug) {
  9884. log(data);
  9885. }
  9886. // 判断时候到达上报时间 ,默认 10 秒上报
  9887. if (page_residence_time < eport_Interval && !type) return;
  9888. // 时间超过,重新获取时间戳
  9889. set_page_residence_time();
  9890. var stat_data = handle_data(uniStatData);
  9891. var optionsData = {
  9892. usv: STAT_VERSION,
  9893. //统计 SDK 版本号
  9894. t: time,
  9895. //发送请求时的时间戮
  9896. requests: stat_data
  9897. };
  9898. // 重置队列
  9899. dbRemove('__UNI__STAT__DATA');
  9900. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  9901. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  9902. setTimeout(function () {
  9903. _this5.sendRequest(optionsData);
  9904. }, 200);
  9905. return;
  9906. }
  9907. this.sendRequest(optionsData);
  9908. }
  9909. }, {
  9910. key: "getIsReportData",
  9911. value: function getIsReportData() {
  9912. return is_report_data();
  9913. }
  9914. /**
  9915. * 数据上报
  9916. * @param {Object} optionsData 需要上报的数据
  9917. */
  9918. }, {
  9919. key: "sendRequest",
  9920. value: function sendRequest(optionsData) {
  9921. {
  9922. if (!uni.__stat_uniCloud_space) {
  9923. console.error('应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.');
  9924. return;
  9925. }
  9926. var uniCloudObj = uni.__stat_uniCloud_space.importObject('uni-stat-receiver', {
  9927. customUI: true
  9928. });
  9929. uniCloudObj.report(optionsData).then(function () {
  9930. if (is_debug) {
  9931. log(optionsData, true);
  9932. }
  9933. }).catch(function (err) {
  9934. if (is_debug) {
  9935. console.warn('=== 统计上报错误');
  9936. console.error(err);
  9937. }
  9938. });
  9939. }
  9940. }
  9941. /**
  9942. * h5 请求
  9943. */
  9944. }, {
  9945. key: "imageRequest",
  9946. value: function imageRequest(data) {
  9947. this.getIsReportData().then(function () {
  9948. var image = new Image();
  9949. var options = get_sgin(get_encodeURIComponent_options(data)).options;
  9950. image.src = STAT_H5_URL + '?' + options;
  9951. if (is_debug) {
  9952. log(data, true);
  9953. }
  9954. });
  9955. }
  9956. }, {
  9957. key: "sendEvent",
  9958. value: function sendEvent(key, value) {
  9959. // 校验 type 参数
  9960. if (calibration(key, value)) return;
  9961. if (key === 'title') {
  9962. this._navigationBarTitle.report = value;
  9963. return;
  9964. }
  9965. this.sendEventRequest({
  9966. key: key,
  9967. value: _typeof(value) === 'object' ? JSON.stringify(value) : value
  9968. }, 1);
  9969. }
  9970. }]);
  9971. return Report;
  9972. }();
  9973. var Stat = /*#__PURE__*/function (_Report) {
  9974. "use strict";
  9975. _inherits(Stat, _Report);
  9976. var _super = _createSuper(Stat);
  9977. function Stat() {
  9978. _classCallCheck(this, Stat);
  9979. return _super.call(this);
  9980. }
  9981. /**
  9982. * 获取推送id
  9983. */
  9984. _createClass(Stat, [{
  9985. key: "pushEvent",
  9986. value: function pushEvent(options) {
  9987. var _this6 = this;
  9988. var ClientID = is_push_clientid();
  9989. if (uni.getPushClientId && ClientID) {
  9990. uni.getPushClientId({
  9991. success: function success(res) {
  9992. var cid = res.cid || false;
  9993. // 只有获取到才会上传
  9994. if (cid) {
  9995. _this6.sendPushRequest(options, cid);
  9996. }
  9997. }
  9998. });
  9999. }
  10000. }
  10001. /**
  10002. * 进入应用
  10003. * @param {Object} options 页面参数
  10004. * @param {Object} self 当前页面实例
  10005. */
  10006. }, {
  10007. key: "launch",
  10008. value: function launch(options, self) {
  10009. // 初始化页面停留时间 start
  10010. set_page_residence_time();
  10011. this.__licationShow = true;
  10012. dbSet('__launch_options', options);
  10013. // 应用初始上报参数为1
  10014. options.cst = 1;
  10015. this.sendReportRequest(options, true);
  10016. }
  10017. }, {
  10018. key: "load",
  10019. value: function load(options, self) {
  10020. this.self = self;
  10021. this._query = options;
  10022. }
  10023. }, {
  10024. key: "appHide",
  10025. value: function appHide(self) {
  10026. this.applicationHide(self, true);
  10027. }
  10028. }, {
  10029. key: "appShow",
  10030. value: function appShow(self) {
  10031. this.applicationShow(self);
  10032. }
  10033. }, {
  10034. key: "show",
  10035. value: function show(self) {
  10036. this.self = self;
  10037. if (get_page_types(self) === 'page') {
  10038. var isPageReport = is_page_report();
  10039. if (isPageReport) {
  10040. this.pageShow(self);
  10041. }
  10042. }
  10043. if (get_page_types(self) === 'app') {
  10044. this.appShow();
  10045. }
  10046. }
  10047. }, {
  10048. key: "hide",
  10049. value: function hide(self) {
  10050. this.self = self;
  10051. if (get_page_types(self) === 'page') {
  10052. var isPageReport = is_page_report();
  10053. if (isPageReport) {
  10054. this.pageHide(self);
  10055. }
  10056. }
  10057. if (get_page_types(self) === 'app') {
  10058. this.appHide();
  10059. }
  10060. }
  10061. }, {
  10062. key: "error",
  10063. value: function error(em) {
  10064. // 开发工具内不上报错误
  10065. // if (this._platform === 'devtools') {
  10066. // if (process.env.NODE_ENV === 'development') {
  10067. // console.info('当前运行环境为开发者工具,不上报数据。')
  10068. // return
  10069. // }
  10070. // }
  10071. var emVal = '';
  10072. if (!em.message) {
  10073. emVal = JSON.stringify(em);
  10074. } else {
  10075. emVal = em.stack;
  10076. }
  10077. var route = '';
  10078. try {
  10079. route = get_route();
  10080. } catch (e) {
  10081. // 未获取到页面路径
  10082. route = '';
  10083. }
  10084. var options = {
  10085. ak: this.statData.ak,
  10086. uuid: this.statData.uuid,
  10087. p: this.statData.p,
  10088. lt: '31',
  10089. url: route,
  10090. ut: this.statData.ut,
  10091. ch: this.statData.ch,
  10092. mpsdk: this.statData.mpsdk,
  10093. mpv: this.statData.mpv,
  10094. v: this.statData.v,
  10095. em: emVal,
  10096. usv: this.statData.usv,
  10097. t: parseInt(new Date().getTime() / 1000)
  10098. };
  10099. this.request(options);
  10100. }
  10101. }], [{
  10102. key: "getInstance",
  10103. value: function getInstance() {
  10104. if (!uni.__stat_instance) {
  10105. uni.__stat_instance = new Stat();
  10106. }
  10107. // 2.0 init 服务空间
  10108. {
  10109. var space = get_space(uniCloud.config);
  10110. if (!uni.__stat_uniCloud_space) {
  10111. // 判断不为空对象
  10112. if (space && Object.keys(space).length !== 0) {
  10113. var spaceData = {
  10114. provider: space.provider,
  10115. spaceId: space.spaceId,
  10116. clientSecret: space.clientSecret
  10117. };
  10118. if (space.endpoint) {
  10119. spaceData.endpoint = space.endpoint;
  10120. }
  10121. if (space.provider === 'alipay') {
  10122. spaceData.secretKey = space.secretKey;
  10123. spaceData.accessKey = space.accessKey || space.secretId;
  10124. spaceData.spaceAppId = space.spaceAppId || space.appId;
  10125. }
  10126. uni.__stat_uniCloud_space = uniCloud.init(spaceData);
  10127. // console.log(
  10128. // '=== 当前绑定的统计服务空间spaceId:' +
  10129. // uni.__stat_uniCloud_space.config.spaceId
  10130. // )
  10131. } else {
  10132. console.error('应用未关联服务空间,请在uniCloud目录右键关联服务空间');
  10133. }
  10134. }
  10135. }
  10136. return uni.__stat_instance;
  10137. }
  10138. }]);
  10139. return Stat;
  10140. }(Report);
  10141. var Stat$1 = Stat;
  10142. var stat = Stat$1.getInstance();
  10143. // 用于判断是隐藏页面还是卸载页面
  10144. var isHide = false;
  10145. var lifecycle = {
  10146. onLaunch: function onLaunch(options) {
  10147. // 进入应用上报数据
  10148. stat.launch(options, this);
  10149. // 上报push推送id
  10150. stat.pushEvent(options);
  10151. },
  10152. onLoad: function onLoad(options) {
  10153. stat.load(options, this);
  10154. // 重写分享,获取分享上报事件
  10155. if (this.$scope && this.$scope.onShareAppMessage) {
  10156. var oldShareAppMessage = this.$scope.onShareAppMessage;
  10157. this.$scope.onShareAppMessage = function (options) {
  10158. stat.interceptShare(false);
  10159. return oldShareAppMessage.call(this, options);
  10160. };
  10161. }
  10162. },
  10163. onShow: function onShow() {
  10164. isHide = false;
  10165. stat.show(this);
  10166. },
  10167. onHide: function onHide() {
  10168. isHide = true;
  10169. stat.hide(this);
  10170. },
  10171. onUnload: function onUnload() {
  10172. if (isHide) {
  10173. isHide = false;
  10174. return;
  10175. }
  10176. stat.hide(this);
  10177. },
  10178. onError: function onError(e) {
  10179. stat.error(e);
  10180. }
  10181. };
  10182. // 加载统计代码
  10183. function load_stat() {
  10184. // eslint-disable-next-line no-restricted-globals
  10185. var Vue = __webpack_require__(/*! vue */ 25);
  10186. (Vue.default || Vue).mixin(lifecycle);
  10187. uni.report = function (type, options) {
  10188. stat.sendEvent(type, options);
  10189. };
  10190. }
  10191. function main() {
  10192. if (is_debug) {
  10193. {
  10194. console.log('=== uni统计开启,version:2.0 ===');
  10195. }
  10196. load_stat();
  10197. } else {
  10198. if (true) {
  10199. uni.report = function (type, options) {};
  10200. } else {}
  10201. }
  10202. }
  10203. main();
  10204. /* 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"]))
  10205. /***/ }),
  10206. /***/ 28:
  10207. /*!************************************************************************************!*\
  10208. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  10209. \************************************************************************************/
  10210. /*! no static exports found */
  10211. /***/ (function(module, exports, __webpack_require__) {
  10212. "use strict";
  10213. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  10214. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10215. Object.defineProperty(exports, "__esModule", {
  10216. value: true
  10217. });
  10218. exports.default = void 0;
  10219. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  10220. var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 31));
  10221. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  10222. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10223. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  10224. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  10225. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10226. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  10227. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  10228. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  10229. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 36));
  10230. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  10231. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  10232. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 38));
  10233. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e34) { throw _e34; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e35) { didErr = true; err = _e35; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  10234. 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); }
  10235. 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; }
  10236. 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; }
  10237. 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; }
  10238. 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); }; }
  10239. 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; } }
  10240. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  10241. function t(e) {
  10242. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  10243. }
  10244. function n(e, t, n) {
  10245. return e(n = {
  10246. path: t,
  10247. exports: {},
  10248. require: function require(e, t) {
  10249. return function () {
  10250. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  10251. }(null == t && n.path);
  10252. }
  10253. }, n.exports), n.exports;
  10254. }
  10255. var s = n(function (e, t) {
  10256. var n;
  10257. e.exports = (n = n || function (e, t) {
  10258. var n = Object.create || function () {
  10259. function e() {}
  10260. return function (t) {
  10261. var n;
  10262. return e.prototype = t, n = new e(), e.prototype = null, n;
  10263. };
  10264. }(),
  10265. s = {},
  10266. r = s.lib = {},
  10267. i = r.Base = {
  10268. extend: function extend(e) {
  10269. var t = n(this);
  10270. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  10271. t.$super.init.apply(this, arguments);
  10272. }), t.init.prototype = t, t.$super = this, t;
  10273. },
  10274. create: function create() {
  10275. var e = this.extend();
  10276. return e.init.apply(e, arguments), e;
  10277. },
  10278. init: function init() {},
  10279. mixIn: function mixIn(e) {
  10280. for (var t in e) {
  10281. e.hasOwnProperty(t) && (this[t] = e[t]);
  10282. }
  10283. e.hasOwnProperty("toString") && (this.toString = e.toString);
  10284. },
  10285. clone: function clone() {
  10286. return this.init.prototype.extend(this);
  10287. }
  10288. },
  10289. o = r.WordArray = i.extend({
  10290. init: function init(e, n) {
  10291. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  10292. },
  10293. toString: function toString(e) {
  10294. return (e || c).stringify(this);
  10295. },
  10296. concat: function concat(e) {
  10297. var t = this.words,
  10298. n = e.words,
  10299. s = this.sigBytes,
  10300. r = e.sigBytes;
  10301. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  10302. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  10303. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  10304. } else for (i = 0; i < r; i += 4) {
  10305. t[s + i >>> 2] = n[i >>> 2];
  10306. }
  10307. return this.sigBytes += r, this;
  10308. },
  10309. clamp: function clamp() {
  10310. var t = this.words,
  10311. n = this.sigBytes;
  10312. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  10313. },
  10314. clone: function clone() {
  10315. var e = i.clone.call(this);
  10316. return e.words = this.words.slice(0), e;
  10317. },
  10318. random: function random(t) {
  10319. for (var n, s = [], r = function r(t) {
  10320. t = t;
  10321. var n = 987654321,
  10322. s = 4294967295;
  10323. return function () {
  10324. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  10325. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  10326. };
  10327. }, i = 0; i < t; i += 4) {
  10328. var a = r(4294967296 * (n || e.random()));
  10329. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  10330. }
  10331. return new o.init(s, t);
  10332. }
  10333. }),
  10334. a = s.enc = {},
  10335. c = a.Hex = {
  10336. stringify: function stringify(e) {
  10337. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  10338. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  10339. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  10340. }
  10341. return s.join("");
  10342. },
  10343. parse: function parse(e) {
  10344. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  10345. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  10346. }
  10347. return new o.init(n, t / 2);
  10348. }
  10349. },
  10350. u = a.Latin1 = {
  10351. stringify: function stringify(e) {
  10352. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  10353. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  10354. s.push(String.fromCharCode(i));
  10355. }
  10356. return s.join("");
  10357. },
  10358. parse: function parse(e) {
  10359. for (var t = e.length, n = [], s = 0; s < t; s++) {
  10360. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  10361. }
  10362. return new o.init(n, t);
  10363. }
  10364. },
  10365. h = a.Utf8 = {
  10366. stringify: function stringify(e) {
  10367. try {
  10368. return decodeURIComponent(escape(u.stringify(e)));
  10369. } catch (e) {
  10370. throw new Error("Malformed UTF-8 data");
  10371. }
  10372. },
  10373. parse: function parse(e) {
  10374. return u.parse(unescape(encodeURIComponent(e)));
  10375. }
  10376. },
  10377. l = r.BufferedBlockAlgorithm = i.extend({
  10378. reset: function reset() {
  10379. this._data = new o.init(), this._nDataBytes = 0;
  10380. },
  10381. _append: function _append(e) {
  10382. "string" == typeof e && (e = h.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  10383. },
  10384. _process: function _process(t) {
  10385. var n = this._data,
  10386. s = n.words,
  10387. r = n.sigBytes,
  10388. i = this.blockSize,
  10389. a = r / (4 * i),
  10390. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  10391. u = e.min(4 * c, r);
  10392. if (c) {
  10393. for (var h = 0; h < c; h += i) {
  10394. this._doProcessBlock(s, h);
  10395. }
  10396. var l = s.splice(0, c);
  10397. n.sigBytes -= u;
  10398. }
  10399. return new o.init(l, u);
  10400. },
  10401. clone: function clone() {
  10402. var e = i.clone.call(this);
  10403. return e._data = this._data.clone(), e;
  10404. },
  10405. _minBufferSize: 0
  10406. });
  10407. r.Hasher = l.extend({
  10408. cfg: i.extend(),
  10409. init: function init(e) {
  10410. this.cfg = this.cfg.extend(e), this.reset();
  10411. },
  10412. reset: function reset() {
  10413. l.reset.call(this), this._doReset();
  10414. },
  10415. update: function update(e) {
  10416. return this._append(e), this._process(), this;
  10417. },
  10418. finalize: function finalize(e) {
  10419. return e && this._append(e), this._doFinalize();
  10420. },
  10421. blockSize: 16,
  10422. _createHelper: function _createHelper(e) {
  10423. return function (t, n) {
  10424. return new e.init(n).finalize(t);
  10425. };
  10426. },
  10427. _createHmacHelper: function _createHmacHelper(e) {
  10428. return function (t, n) {
  10429. return new d.HMAC.init(e, n).finalize(t);
  10430. };
  10431. }
  10432. });
  10433. var d = s.algo = {};
  10434. return s;
  10435. }(Math), n);
  10436. }),
  10437. r = s,
  10438. i = (n(function (e, t) {
  10439. var n;
  10440. e.exports = (n = r, function (e) {
  10441. var t = n,
  10442. s = t.lib,
  10443. r = s.WordArray,
  10444. i = s.Hasher,
  10445. o = t.algo,
  10446. a = [];
  10447. !function () {
  10448. for (var t = 0; t < 64; t++) {
  10449. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  10450. }
  10451. }();
  10452. var c = o.MD5 = i.extend({
  10453. _doReset: function _doReset() {
  10454. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  10455. },
  10456. _doProcessBlock: function _doProcessBlock(e, t) {
  10457. for (var n = 0; n < 16; n++) {
  10458. var s = t + n,
  10459. r = e[s];
  10460. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  10461. }
  10462. var i = this._hash.words,
  10463. o = e[t + 0],
  10464. c = e[t + 1],
  10465. p = e[t + 2],
  10466. f = e[t + 3],
  10467. g = e[t + 4],
  10468. m = e[t + 5],
  10469. y = e[t + 6],
  10470. _ = e[t + 7],
  10471. w = e[t + 8],
  10472. v = e[t + 9],
  10473. I = e[t + 10],
  10474. S = e[t + 11],
  10475. b = e[t + 12],
  10476. k = e[t + 13],
  10477. A = e[t + 14],
  10478. P = e[t + 15],
  10479. T = i[0],
  10480. C = i[1],
  10481. x = i[2],
  10482. O = i[3];
  10483. T = u(T, C, x, O, o, 7, a[0]), O = u(O, T, C, x, c, 12, a[1]), x = u(x, O, T, C, p, 17, a[2]), C = u(C, x, O, T, f, 22, a[3]), T = u(T, C, x, O, g, 7, a[4]), O = u(O, T, C, x, m, 12, a[5]), x = u(x, O, T, C, y, 17, a[6]), C = u(C, x, O, T, _, 22, a[7]), T = u(T, C, x, O, w, 7, a[8]), O = u(O, T, C, x, v, 12, a[9]), x = u(x, O, T, C, I, 17, a[10]), C = u(C, x, O, T, S, 22, a[11]), T = u(T, C, x, O, b, 7, a[12]), O = u(O, T, C, x, k, 12, a[13]), x = u(x, O, T, C, A, 17, a[14]), T = h(T, C = u(C, x, O, T, P, 22, a[15]), x, O, c, 5, a[16]), O = h(O, T, C, x, y, 9, a[17]), x = h(x, O, T, C, S, 14, a[18]), C = h(C, x, O, T, o, 20, a[19]), T = h(T, C, x, O, m, 5, a[20]), O = h(O, T, C, x, I, 9, a[21]), x = h(x, O, T, C, P, 14, a[22]), C = h(C, x, O, T, g, 20, a[23]), T = h(T, C, x, O, v, 5, a[24]), O = h(O, T, C, x, A, 9, a[25]), x = h(x, O, T, C, f, 14, a[26]), C = h(C, x, O, T, w, 20, a[27]), T = h(T, C, x, O, k, 5, a[28]), O = h(O, T, C, x, p, 9, a[29]), x = h(x, O, T, C, _, 14, a[30]), T = l(T, C = h(C, x, O, T, b, 20, a[31]), x, O, m, 4, a[32]), O = l(O, T, C, x, w, 11, a[33]), x = l(x, O, T, C, S, 16, a[34]), C = l(C, x, O, T, A, 23, a[35]), T = l(T, C, x, O, c, 4, a[36]), O = l(O, T, C, x, g, 11, a[37]), x = l(x, O, T, C, _, 16, a[38]), C = l(C, x, O, T, I, 23, a[39]), T = l(T, C, x, O, k, 4, a[40]), O = l(O, T, C, x, o, 11, a[41]), x = l(x, O, T, C, f, 16, a[42]), C = l(C, x, O, T, y, 23, a[43]), T = l(T, C, x, O, v, 4, a[44]), O = l(O, T, C, x, b, 11, a[45]), x = l(x, O, T, C, P, 16, a[46]), T = d(T, C = l(C, x, O, T, p, 23, a[47]), x, O, o, 6, a[48]), O = d(O, T, C, x, _, 10, a[49]), x = d(x, O, T, C, A, 15, a[50]), C = d(C, x, O, T, m, 21, a[51]), T = d(T, C, x, O, b, 6, a[52]), O = d(O, T, C, x, f, 10, a[53]), x = d(x, O, T, C, I, 15, a[54]), C = d(C, x, O, T, c, 21, a[55]), T = d(T, C, x, O, w, 6, a[56]), O = d(O, T, C, x, P, 10, a[57]), x = d(x, O, T, C, y, 15, a[58]), C = d(C, x, O, T, k, 21, a[59]), T = d(T, C, x, O, g, 6, a[60]), O = d(O, T, C, x, S, 10, a[61]), x = d(x, O, T, C, p, 15, a[62]), C = d(C, x, O, T, v, 21, a[63]), i[0] = i[0] + T | 0, i[1] = i[1] + C | 0, i[2] = i[2] + x | 0, i[3] = i[3] + O | 0;
  10484. },
  10485. _doFinalize: function _doFinalize() {
  10486. var t = this._data,
  10487. n = t.words,
  10488. s = 8 * this._nDataBytes,
  10489. r = 8 * t.sigBytes;
  10490. n[r >>> 5] |= 128 << 24 - r % 32;
  10491. var i = e.floor(s / 4294967296),
  10492. o = s;
  10493. 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();
  10494. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  10495. var h = c[u];
  10496. c[u] = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8);
  10497. }
  10498. return a;
  10499. },
  10500. clone: function clone() {
  10501. var e = i.clone.call(this);
  10502. return e._hash = this._hash.clone(), e;
  10503. }
  10504. });
  10505. function u(e, t, n, s, r, i, o) {
  10506. var a = e + (t & n | ~t & s) + r + o;
  10507. return (a << i | a >>> 32 - i) + t;
  10508. }
  10509. function h(e, t, n, s, r, i, o) {
  10510. var a = e + (t & s | n & ~s) + r + o;
  10511. return (a << i | a >>> 32 - i) + t;
  10512. }
  10513. function l(e, t, n, s, r, i, o) {
  10514. var a = e + (t ^ n ^ s) + r + o;
  10515. return (a << i | a >>> 32 - i) + t;
  10516. }
  10517. function d(e, t, n, s, r, i, o) {
  10518. var a = e + (n ^ (t | ~s)) + r + o;
  10519. return (a << i | a >>> 32 - i) + t;
  10520. }
  10521. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  10522. }(Math), n.MD5);
  10523. }), n(function (e, t) {
  10524. var n;
  10525. e.exports = (n = r, void function () {
  10526. var e = n,
  10527. t = e.lib.Base,
  10528. s = e.enc.Utf8;
  10529. e.algo.HMAC = t.extend({
  10530. init: function init(e, t) {
  10531. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  10532. var n = e.blockSize,
  10533. r = 4 * n;
  10534. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  10535. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  10536. a[u] ^= 1549556828, c[u] ^= 909522486;
  10537. }
  10538. i.sigBytes = o.sigBytes = r, this.reset();
  10539. },
  10540. reset: function reset() {
  10541. var e = this._hasher;
  10542. e.reset(), e.update(this._iKey);
  10543. },
  10544. update: function update(e) {
  10545. return this._hasher.update(e), this;
  10546. },
  10547. finalize: function finalize(e) {
  10548. var t = this._hasher,
  10549. n = t.finalize(e);
  10550. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  10551. }
  10552. });
  10553. }());
  10554. }), n(function (e, t) {
  10555. e.exports = r.HmacMD5;
  10556. })),
  10557. o = n(function (e, t) {
  10558. e.exports = r.enc.Utf8;
  10559. }),
  10560. a = n(function (e, t) {
  10561. var n;
  10562. e.exports = (n = r, function () {
  10563. var e = n,
  10564. t = e.lib.WordArray;
  10565. function s(e, n, s) {
  10566. for (var r = [], i = 0, o = 0; o < n; o++) {
  10567. if (o % 4) {
  10568. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  10569. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  10570. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  10571. }
  10572. }
  10573. return t.create(r, i);
  10574. }
  10575. e.enc.Base64 = {
  10576. stringify: function stringify(e) {
  10577. var t = e.words,
  10578. n = e.sigBytes,
  10579. s = this._map;
  10580. e.clamp();
  10581. for (var r = [], i = 0; i < n; i += 3) {
  10582. 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++) {
  10583. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  10584. }
  10585. }
  10586. var c = s.charAt(64);
  10587. if (c) for (; r.length % 4;) {
  10588. r.push(c);
  10589. }
  10590. return r.join("");
  10591. },
  10592. parse: function parse(e) {
  10593. var t = e.length,
  10594. n = this._map,
  10595. r = this._reverseMap;
  10596. if (!r) {
  10597. r = this._reverseMap = [];
  10598. for (var i = 0; i < n.length; i++) {
  10599. r[n.charCodeAt(i)] = i;
  10600. }
  10601. }
  10602. var o = n.charAt(64);
  10603. if (o) {
  10604. var a = e.indexOf(o);
  10605. -1 !== a && (t = a);
  10606. }
  10607. return s(e, t, r);
  10608. },
  10609. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  10610. };
  10611. }(), n.enc.Base64);
  10612. });
  10613. var c = "FUNCTION",
  10614. u = "OBJECT",
  10615. h = "CLIENT_DB",
  10616. l = "pending",
  10617. d = "fulfilled",
  10618. p = "rejected";
  10619. function f(e) {
  10620. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  10621. }
  10622. function g(e) {
  10623. return "object" === f(e);
  10624. }
  10625. function m(e) {
  10626. return "function" == typeof e;
  10627. }
  10628. function y(e) {
  10629. return function () {
  10630. try {
  10631. return e.apply(e, arguments);
  10632. } catch (e) {
  10633. console.error(e);
  10634. }
  10635. };
  10636. }
  10637. var _ = "REJECTED",
  10638. w = "NOT_PENDING";
  10639. var v = /*#__PURE__*/function () {
  10640. function v() {
  10641. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  10642. e = _ref.createPromise,
  10643. _ref$retryRule = _ref.retryRule,
  10644. t = _ref$retryRule === void 0 ? _ : _ref$retryRule;
  10645. (0, _classCallCheck2.default)(this, v);
  10646. this.createPromise = e, this.status = null, this.promise = null, this.retryRule = t;
  10647. }
  10648. (0, _createClass2.default)(v, [{
  10649. key: "needRetry",
  10650. get: function get() {
  10651. if (!this.status) return !0;
  10652. switch (this.retryRule) {
  10653. case _:
  10654. return this.status === p;
  10655. case w:
  10656. return this.status !== l;
  10657. }
  10658. }
  10659. }, {
  10660. key: "exec",
  10661. value: function exec() {
  10662. var _this = this;
  10663. return this.needRetry ? (this.status = l, this.promise = this.createPromise().then(function (e) {
  10664. return _this.status = d, Promise.resolve(e);
  10665. }, function (e) {
  10666. return _this.status = p, Promise.reject(e);
  10667. }), this.promise) : this.promise;
  10668. }
  10669. }]);
  10670. return v;
  10671. }();
  10672. function I(e) {
  10673. return e && "string" == typeof e ? JSON.parse(e) : e;
  10674. }
  10675. var S = "development" === "development",
  10676. b = "mp-weixin",
  10677. k = "true" === undefined || !0 === undefined,
  10678. A = I([]),
  10679. P = "h5" === b ? "web" : "app-plus" === b ? "app" : b,
  10680. T = I(undefined),
  10681. C = I([]) || [],
  10682. x = true;
  10683. var O = "";
  10684. try {
  10685. O = (__webpack_require__(/*! uni-stat-config */ 39).default || __webpack_require__(/*! uni-stat-config */ 39)).appid;
  10686. } catch (e) {}
  10687. var E = {};
  10688. function L(e) {
  10689. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10690. var n, s;
  10691. return n = E, s = e, Object.prototype.hasOwnProperty.call(n, s) || (E[e] = t), E[e];
  10692. }
  10693. "app" === P && (E = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  10694. var R = ["invoke", "success", "fail", "complete"],
  10695. U = L("_globalUniCloudInterceptor");
  10696. function N(e, t) {
  10697. U[e] || (U[e] = {}), g(t) && Object.keys(t).forEach(function (n) {
  10698. R.indexOf(n) > -1 && function (e, t, n) {
  10699. var s = U[e][t];
  10700. s || (s = U[e][t] = []), -1 === s.indexOf(n) && m(n) && s.push(n);
  10701. }(e, n, t[n]);
  10702. });
  10703. }
  10704. function D(e, t) {
  10705. U[e] || (U[e] = {}), g(t) ? Object.keys(t).forEach(function (n) {
  10706. R.indexOf(n) > -1 && function (e, t, n) {
  10707. var s = U[e][t];
  10708. if (!s) return;
  10709. var r = s.indexOf(n);
  10710. r > -1 && s.splice(r, 1);
  10711. }(e, n, t[n]);
  10712. }) : delete U[e];
  10713. }
  10714. function M(e, t) {
  10715. return e && 0 !== e.length ? e.reduce(function (e, n) {
  10716. return e.then(function () {
  10717. return n(t);
  10718. });
  10719. }, Promise.resolve()) : Promise.resolve();
  10720. }
  10721. function q(e, t) {
  10722. return U[e] && U[e][t] || [];
  10723. }
  10724. function F(e) {
  10725. N("callObject", e);
  10726. }
  10727. var K = L("_globalUniCloudListener"),
  10728. j = "response",
  10729. $ = "needLogin",
  10730. B = "refreshToken",
  10731. W = "clientdb",
  10732. H = "cloudfunction",
  10733. z = "cloudobject";
  10734. function J(e) {
  10735. return K[e] || (K[e] = []), K[e];
  10736. }
  10737. function G(e, t) {
  10738. var n = J(e);
  10739. n.includes(t) || n.push(t);
  10740. }
  10741. function V(e, t) {
  10742. var n = J(e),
  10743. s = n.indexOf(t);
  10744. -1 !== s && n.splice(s, 1);
  10745. }
  10746. function Y(e, t) {
  10747. var n = J(e);
  10748. for (var _e2 = 0; _e2 < n.length; _e2++) {
  10749. (0, n[_e2])(t);
  10750. }
  10751. }
  10752. var Q,
  10753. X = !1;
  10754. function Z() {
  10755. return Q || (Q = new Promise(function (e) {
  10756. X && e(), function t() {
  10757. if ("function" == typeof getCurrentPages) {
  10758. var _t2 = getCurrentPages();
  10759. _t2 && _t2[0] && (X = !0, e());
  10760. }
  10761. X || setTimeout(function () {
  10762. t();
  10763. }, 30);
  10764. }();
  10765. }), Q);
  10766. }
  10767. function ee(e) {
  10768. var t = {};
  10769. for (var _n2 in e) {
  10770. var _s2 = e[_n2];
  10771. m(_s2) && (t[_n2] = y(_s2));
  10772. }
  10773. return t;
  10774. }
  10775. var te = /*#__PURE__*/function (_Error) {
  10776. (0, _inherits2.default)(te, _Error);
  10777. var _super = _createSuper(te);
  10778. function te(e) {
  10779. var _this2;
  10780. (0, _classCallCheck2.default)(this, te);
  10781. _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;
  10782. return _this2;
  10783. }
  10784. (0, _createClass2.default)(te, [{
  10785. key: "toJson",
  10786. value: function toJson() {
  10787. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  10788. if (!(e >= 10)) return e++, {
  10789. errCode: this.errCode,
  10790. errMsg: this.errMsg,
  10791. errSubject: this.errSubject,
  10792. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  10793. };
  10794. }
  10795. }]);
  10796. return te;
  10797. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  10798. var ne = {
  10799. request: function request(e) {
  10800. return uni.request(e);
  10801. },
  10802. uploadFile: function uploadFile(e) {
  10803. return uni.uploadFile(e);
  10804. },
  10805. setStorageSync: function setStorageSync(e, t) {
  10806. return uni.setStorageSync(e, t);
  10807. },
  10808. getStorageSync: function getStorageSync(e) {
  10809. return uni.getStorageSync(e);
  10810. },
  10811. removeStorageSync: function removeStorageSync(e) {
  10812. return uni.removeStorageSync(e);
  10813. },
  10814. clearStorageSync: function clearStorageSync() {
  10815. return uni.clearStorageSync();
  10816. }
  10817. };
  10818. function se() {
  10819. return {
  10820. token: ne.getStorageSync("uni_id_token") || ne.getStorageSync("uniIdToken"),
  10821. tokenExpired: ne.getStorageSync("uni_id_token_expired")
  10822. };
  10823. }
  10824. function re() {
  10825. var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  10826. e = _ref2.token,
  10827. t = _ref2.tokenExpired;
  10828. e && ne.setStorageSync("uni_id_token", e), t && ne.setStorageSync("uni_id_token_expired", t);
  10829. }
  10830. var ie, oe;
  10831. function ae() {
  10832. return ie || (ie = uni.getSystemInfoSync()), ie;
  10833. }
  10834. function ce() {
  10835. var e, t;
  10836. try {
  10837. if (uni.getLaunchOptionsSync) {
  10838. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  10839. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  10840. _n3 = _uni$getLaunchOptions.scene,
  10841. _s3 = _uni$getLaunchOptions.channel;
  10842. e = _s3, t = _n3;
  10843. }
  10844. } catch (e) {}
  10845. return {
  10846. channel: e,
  10847. scene: t
  10848. };
  10849. }
  10850. function ue() {
  10851. var e = uni.getLocale && uni.getLocale() || "en";
  10852. if (oe) return _objectSpread(_objectSpread({}, oe), {}, {
  10853. locale: e,
  10854. LOCALE: e
  10855. });
  10856. var t = ae(),
  10857. n = t.deviceId,
  10858. s = t.osName,
  10859. r = t.uniPlatform,
  10860. i = t.appId,
  10861. o = ["pixelRatio", "brand", "model", "system", "language", "version", "platform", "host", "SDKVersion", "swanNativeVersion", "app", "AppPlatform", "fontSizeSetting"];
  10862. for (var _e3 = 0; _e3 < o.length; _e3++) {
  10863. delete t[o[_e3]];
  10864. }
  10865. return oe = _objectSpread(_objectSpread({
  10866. PLATFORM: r,
  10867. OS: s,
  10868. APPID: i,
  10869. DEVICEID: n
  10870. }, ce()), t), _objectSpread(_objectSpread({}, oe), {}, {
  10871. locale: e,
  10872. LOCALE: e
  10873. });
  10874. }
  10875. var he = {
  10876. sign: function sign(e, t) {
  10877. var n = "";
  10878. return Object.keys(e).sort().forEach(function (t) {
  10879. e[t] && (n = n + "&" + t + "=" + e[t]);
  10880. }), n = n.slice(1), i(n, t).toString();
  10881. },
  10882. wrappedRequest: function wrappedRequest(e, t) {
  10883. return new Promise(function (n, s) {
  10884. t(Object.assign(e, {
  10885. complete: function complete(e) {
  10886. e || (e = {}), S && "web" === P && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  10887. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  10888. if (!e.statusCode || e.statusCode >= 400) return s(new te({
  10889. code: "SYS_ERR",
  10890. message: e.errMsg || "request:fail",
  10891. requestId: t
  10892. }));
  10893. var r = e.data;
  10894. if (r.error) return s(new te({
  10895. code: r.error.code,
  10896. message: r.error.message,
  10897. requestId: t
  10898. }));
  10899. r.result = r.data, r.requestId = t, delete r.data, n(r);
  10900. }
  10901. }));
  10902. });
  10903. },
  10904. toBase64: function toBase64(e) {
  10905. return a.stringify(o.parse(e));
  10906. }
  10907. };
  10908. var le = /*#__PURE__*/function () {
  10909. function le(e) {
  10910. var _this3 = this;
  10911. (0, _classCallCheck2.default)(this, le);
  10912. ["spaceId", "clientSecret"].forEach(function (t) {
  10913. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  10914. }), this.config = Object.assign({}, {
  10915. endpoint: 0 === e.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com"
  10916. }, 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({
  10917. createPromise: function createPromise() {
  10918. return _this3.requestAuth(_this3.setupRequest({
  10919. method: "serverless.auth.user.anonymousAuthorize",
  10920. params: "{}"
  10921. }, "auth")).then(function (e) {
  10922. if (!e.result || !e.result.accessToken) throw new te({
  10923. code: "AUTH_FAILED",
  10924. message: "获取accessToken失败"
  10925. });
  10926. _this3.setAccessToken(e.result.accessToken);
  10927. });
  10928. },
  10929. retryRule: w
  10930. });
  10931. }
  10932. (0, _createClass2.default)(le, [{
  10933. key: "hasAccessToken",
  10934. get: function get() {
  10935. return !!this.accessToken;
  10936. }
  10937. }, {
  10938. key: "setAccessToken",
  10939. value: function setAccessToken(e) {
  10940. this.accessToken = e;
  10941. }
  10942. }, {
  10943. key: "requestWrapped",
  10944. value: function requestWrapped(e) {
  10945. return he.wrappedRequest(e, this.adapter.request);
  10946. }
  10947. }, {
  10948. key: "requestAuth",
  10949. value: function requestAuth(e) {
  10950. return this.requestWrapped(e);
  10951. }
  10952. }, {
  10953. key: "request",
  10954. value: function request(e, t) {
  10955. var _this4 = this;
  10956. return Promise.resolve().then(function () {
  10957. return _this4.hasAccessToken ? t ? _this4.requestWrapped(e) : _this4.requestWrapped(e).catch(function (t) {
  10958. return new Promise(function (e, n) {
  10959. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  10960. }).then(function () {
  10961. return _this4.getAccessToken();
  10962. }).then(function () {
  10963. var t = _this4.rebuildRequest(e);
  10964. return _this4.request(t, !0);
  10965. });
  10966. }) : _this4.getAccessToken().then(function () {
  10967. var t = _this4.rebuildRequest(e);
  10968. return _this4.request(t, !0);
  10969. });
  10970. });
  10971. }
  10972. }, {
  10973. key: "rebuildRequest",
  10974. value: function rebuildRequest(e) {
  10975. var t = Object.assign({}, e);
  10976. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = he.sign(t.data, this.config.clientSecret), t;
  10977. }
  10978. }, {
  10979. key: "setupRequest",
  10980. value: function setupRequest(e, t) {
  10981. var n = Object.assign({}, e, {
  10982. spaceId: this.config.spaceId,
  10983. timestamp: Date.now()
  10984. }),
  10985. s = {
  10986. "Content-Type": "application/json"
  10987. };
  10988. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = he.sign(n, this.config.clientSecret), {
  10989. url: this.config.requestUrl,
  10990. method: "POST",
  10991. data: n,
  10992. dataType: "json",
  10993. header: s
  10994. };
  10995. }
  10996. }, {
  10997. key: "getAccessToken",
  10998. value: function getAccessToken() {
  10999. return this._getAccessTokenPromiseHub.exec();
  11000. }
  11001. }, {
  11002. key: "authorize",
  11003. value: function () {
  11004. var _authorize = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  11005. return _regenerator.default.wrap(function _callee$(_context) {
  11006. while (1) {
  11007. switch (_context.prev = _context.next) {
  11008. case 0:
  11009. _context.next = 2;
  11010. return this.getAccessToken();
  11011. case 2:
  11012. case "end":
  11013. return _context.stop();
  11014. }
  11015. }
  11016. }, _callee, this);
  11017. }));
  11018. function authorize() {
  11019. return _authorize.apply(this, arguments);
  11020. }
  11021. return authorize;
  11022. }()
  11023. }, {
  11024. key: "callFunction",
  11025. value: function callFunction(e) {
  11026. var t = {
  11027. method: "serverless.function.runtime.invoke",
  11028. params: JSON.stringify({
  11029. functionTarget: e.name,
  11030. functionArgs: e.data || {}
  11031. })
  11032. };
  11033. return this.request(this.setupRequest(t));
  11034. }
  11035. }, {
  11036. key: "getOSSUploadOptionsFromPath",
  11037. value: function getOSSUploadOptionsFromPath(e) {
  11038. var t = {
  11039. method: "serverless.file.resource.generateProximalSign",
  11040. params: JSON.stringify(e)
  11041. };
  11042. return this.request(this.setupRequest(t));
  11043. }
  11044. }, {
  11045. key: "uploadFileToOSS",
  11046. value: function uploadFileToOSS(_ref3) {
  11047. var _this5 = this;
  11048. var e = _ref3.url,
  11049. t = _ref3.formData,
  11050. n = _ref3.name,
  11051. s = _ref3.filePath,
  11052. r = _ref3.fileType,
  11053. i = _ref3.onUploadProgress;
  11054. return new Promise(function (o, a) {
  11055. var c = _this5.adapter.uploadFile({
  11056. url: e,
  11057. formData: t,
  11058. name: n,
  11059. filePath: s,
  11060. fileType: r,
  11061. header: {
  11062. "X-OSS-server-side-encrpytion": "AES256"
  11063. },
  11064. success: function success(e) {
  11065. e && e.statusCode < 400 ? o(e) : a(new te({
  11066. code: "UPLOAD_FAILED",
  11067. message: "文件上传失败"
  11068. }));
  11069. },
  11070. fail: function fail(e) {
  11071. a(new te({
  11072. code: e.code || "UPLOAD_FAILED",
  11073. message: e.message || e.errMsg || "文件上传失败"
  11074. }));
  11075. }
  11076. });
  11077. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  11078. i({
  11079. loaded: e.totalBytesSent,
  11080. total: e.totalBytesExpectedToSend
  11081. });
  11082. });
  11083. });
  11084. }
  11085. }, {
  11086. key: "reportOSSUpload",
  11087. value: function reportOSSUpload(e) {
  11088. var t = {
  11089. method: "serverless.file.resource.report",
  11090. params: JSON.stringify(e)
  11091. };
  11092. return this.request(this.setupRequest(t));
  11093. }
  11094. }, {
  11095. key: "uploadFile",
  11096. value: function () {
  11097. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref4) {
  11098. var e, t, _ref4$fileType, n, _ref4$cloudPathAsReal, s, r, i, o, a, c, u, h, l, d, p, g, m, y, _, _e4, w;
  11099. return _regenerator.default.wrap(function _callee2$(_context2) {
  11100. while (1) {
  11101. switch (_context2.prev = _context2.next) {
  11102. case 0:
  11103. 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;
  11104. if (!("string" !== f(t))) {
  11105. _context2.next = 3;
  11106. break;
  11107. }
  11108. throw new te({
  11109. code: "INVALID_PARAM",
  11110. message: "cloudPath必须为字符串类型"
  11111. });
  11112. case 3:
  11113. if (t = t.trim()) {
  11114. _context2.next = 5;
  11115. break;
  11116. }
  11117. throw new te({
  11118. code: "INVALID_PARAM",
  11119. message: "cloudPath不可为空"
  11120. });
  11121. case 5:
  11122. if (!/:\/\//.test(t)) {
  11123. _context2.next = 7;
  11124. break;
  11125. }
  11126. throw new te({
  11127. code: "INVALID_PARAM",
  11128. message: "cloudPath不合法"
  11129. });
  11130. case 7:
  11131. o = i && i.envType || this.config.envType;
  11132. if (!(s && ("/" !== t[0] && (t = "/" + t), t.indexOf("\\") > -1))) {
  11133. _context2.next = 10;
  11134. break;
  11135. }
  11136. throw new te({
  11137. code: "INVALID_PARAM",
  11138. message: "使用cloudPath作为路径时,cloudPath不可包含“\\”"
  11139. });
  11140. case 10:
  11141. _context2.next = 12;
  11142. return this.getOSSUploadOptionsFromPath({
  11143. env: o,
  11144. filename: s ? t.split("/").pop() : t,
  11145. fileId: s ? t : void 0
  11146. });
  11147. case 12:
  11148. a = _context2.sent.result;
  11149. c = "https://" + a.cdnDomain + "/" + a.ossPath;
  11150. u = a.securityToken;
  11151. h = a.accessKeyId;
  11152. l = a.signature;
  11153. d = a.host;
  11154. p = a.ossPath;
  11155. g = a.id;
  11156. m = a.policy;
  11157. y = a.ossCallbackUrl;
  11158. _ = {
  11159. "Cache-Control": "max-age=2592000",
  11160. "Content-Disposition": "attachment",
  11161. OSSAccessKeyId: h,
  11162. Signature: l,
  11163. host: d,
  11164. id: g,
  11165. key: p,
  11166. policy: m,
  11167. success_action_status: 200
  11168. };
  11169. if (u && (_["x-oss-security-token"] = u), y) {
  11170. _e4 = JSON.stringify({
  11171. callbackUrl: y,
  11172. callbackBody: JSON.stringify({
  11173. fileId: g,
  11174. spaceId: this.config.spaceId
  11175. }),
  11176. callbackBodyType: "application/json"
  11177. });
  11178. _.callback = he.toBase64(_e4);
  11179. }
  11180. w = {
  11181. url: "https://" + a.host,
  11182. formData: _,
  11183. fileName: "file",
  11184. name: "file",
  11185. filePath: e,
  11186. fileType: n
  11187. };
  11188. _context2.next = 27;
  11189. return this.uploadFileToOSS(Object.assign({}, w, {
  11190. onUploadProgress: r
  11191. }));
  11192. case 27:
  11193. if (!y) {
  11194. _context2.next = 29;
  11195. break;
  11196. }
  11197. return _context2.abrupt("return", {
  11198. success: !0,
  11199. filePath: e,
  11200. fileID: c
  11201. });
  11202. case 29:
  11203. _context2.next = 31;
  11204. return this.reportOSSUpload({
  11205. id: g
  11206. });
  11207. case 31:
  11208. if (!_context2.sent.success) {
  11209. _context2.next = 33;
  11210. break;
  11211. }
  11212. return _context2.abrupt("return", {
  11213. success: !0,
  11214. filePath: e,
  11215. fileID: c
  11216. });
  11217. case 33:
  11218. throw new te({
  11219. code: "UPLOAD_FAILED",
  11220. message: "文件上传失败"
  11221. });
  11222. case 34:
  11223. case "end":
  11224. return _context2.stop();
  11225. }
  11226. }
  11227. }, _callee2, this);
  11228. }));
  11229. function uploadFile(_x) {
  11230. return _uploadFile.apply(this, arguments);
  11231. }
  11232. return uploadFile;
  11233. }()
  11234. }, {
  11235. key: "getTempFileURL",
  11236. value: function getTempFileURL() {
  11237. var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  11238. e = _ref5.fileList;
  11239. return new Promise(function (t, n) {
  11240. Array.isArray(e) && 0 !== e.length || n(new te({
  11241. code: "INVALID_PARAM",
  11242. message: "fileList的元素必须是非空的字符串"
  11243. })), t({
  11244. fileList: e.map(function (e) {
  11245. return {
  11246. fileID: e,
  11247. tempFileURL: e
  11248. };
  11249. })
  11250. });
  11251. });
  11252. }
  11253. }, {
  11254. key: "getFileInfo",
  11255. value: function () {
  11256. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  11257. var _ref6,
  11258. e,
  11259. t,
  11260. _args3 = arguments;
  11261. return _regenerator.default.wrap(function _callee3$(_context3) {
  11262. while (1) {
  11263. switch (_context3.prev = _context3.next) {
  11264. case 0:
  11265. _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref6.fileList;
  11266. if (!(!Array.isArray(e) || 0 === e.length)) {
  11267. _context3.next = 3;
  11268. break;
  11269. }
  11270. throw new te({
  11271. code: "INVALID_PARAM",
  11272. message: "fileList的元素必须是非空的字符串"
  11273. });
  11274. case 3:
  11275. t = {
  11276. method: "serverless.file.resource.info",
  11277. params: JSON.stringify({
  11278. id: e.map(function (e) {
  11279. return e.split("?")[0];
  11280. }).join(",")
  11281. })
  11282. };
  11283. _context3.next = 6;
  11284. return this.request(this.setupRequest(t));
  11285. case 6:
  11286. _context3.t0 = _context3.sent.result;
  11287. return _context3.abrupt("return", {
  11288. fileList: _context3.t0
  11289. });
  11290. case 8:
  11291. case "end":
  11292. return _context3.stop();
  11293. }
  11294. }
  11295. }, _callee3, this);
  11296. }));
  11297. function getFileInfo() {
  11298. return _getFileInfo.apply(this, arguments);
  11299. }
  11300. return getFileInfo;
  11301. }()
  11302. }]);
  11303. return le;
  11304. }();
  11305. var de = {
  11306. init: function init(e) {
  11307. var t = new le(e),
  11308. n = {
  11309. signInAnonymously: function signInAnonymously() {
  11310. return t.authorize();
  11311. },
  11312. getLoginState: function getLoginState() {
  11313. return Promise.resolve(!1);
  11314. }
  11315. };
  11316. return t.auth = function () {
  11317. return n;
  11318. }, t.customAuth = t.auth, t;
  11319. }
  11320. };
  11321. var pe = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  11322. var fe;
  11323. !function (e) {
  11324. e.local = "local", e.none = "none", e.session = "session";
  11325. }(fe || (fe = {}));
  11326. var ge = function ge() {},
  11327. me = n(function (e, t) {
  11328. var n;
  11329. e.exports = (n = r, function (e) {
  11330. var t = n,
  11331. s = t.lib,
  11332. r = s.WordArray,
  11333. i = s.Hasher,
  11334. o = t.algo,
  11335. a = [],
  11336. c = [];
  11337. !function () {
  11338. function t(t) {
  11339. for (var n = e.sqrt(t), s = 2; s <= n; s++) {
  11340. if (!(t % s)) return !1;
  11341. }
  11342. return !0;
  11343. }
  11344. function n(e) {
  11345. return 4294967296 * (e - (0 | e)) | 0;
  11346. }
  11347. for (var s = 2, r = 0; r < 64;) {
  11348. t(s) && (r < 8 && (a[r] = n(e.pow(s, .5))), c[r] = n(e.pow(s, 1 / 3)), r++), s++;
  11349. }
  11350. }();
  11351. var u = [],
  11352. h = o.SHA256 = i.extend({
  11353. _doReset: function _doReset() {
  11354. this._hash = new r.init(a.slice(0));
  11355. },
  11356. _doProcessBlock: function _doProcessBlock(e, t) {
  11357. 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++) {
  11358. if (p < 16) u[p] = 0 | e[t + p];else {
  11359. var f = u[p - 15],
  11360. g = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3,
  11361. m = u[p - 2],
  11362. y = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
  11363. u[p] = g + u[p - 7] + y + u[p - 16];
  11364. }
  11365. var _ = s & r ^ s & i ^ r & i,
  11366. w = (s << 30 | s >>> 2) ^ (s << 19 | s >>> 13) ^ (s << 10 | s >>> 22),
  11367. v = d + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & h ^ ~a & l) + c[p] + u[p];
  11368. d = l, l = h, h = a, a = o + v | 0, o = i, i = r, r = s, s = v + (w + _) | 0;
  11369. }
  11370. 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;
  11371. },
  11372. _doFinalize: function _doFinalize() {
  11373. var t = this._data,
  11374. n = t.words,
  11375. s = 8 * this._nDataBytes,
  11376. r = 8 * t.sigBytes;
  11377. 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;
  11378. },
  11379. clone: function clone() {
  11380. var e = i.clone.call(this);
  11381. return e._hash = this._hash.clone(), e;
  11382. }
  11383. });
  11384. t.SHA256 = i._createHelper(h), t.HmacSHA256 = i._createHmacHelper(h);
  11385. }(Math), n.SHA256);
  11386. }),
  11387. ye = me,
  11388. _e = n(function (e, t) {
  11389. e.exports = r.HmacSHA256;
  11390. });
  11391. var we = function we() {
  11392. var e;
  11393. if (!Promise) {
  11394. e = function e() {}, e.promise = {};
  11395. var _t3 = function _t3() {
  11396. throw new te({
  11397. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  11398. });
  11399. };
  11400. return Object.defineProperty(e.promise, "then", {
  11401. get: _t3
  11402. }), Object.defineProperty(e.promise, "catch", {
  11403. get: _t3
  11404. }), e;
  11405. }
  11406. var t = new Promise(function (t, n) {
  11407. e = function e(_e5, s) {
  11408. return _e5 ? n(_e5) : t(s);
  11409. };
  11410. });
  11411. return e.promise = t, e;
  11412. };
  11413. function ve(e) {
  11414. return void 0 === e;
  11415. }
  11416. function Ie(e) {
  11417. return "[object Null]" === Object.prototype.toString.call(e);
  11418. }
  11419. var Se;
  11420. function be(e) {
  11421. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  11422. var n;
  11423. var _iterator = _createForOfIteratorHelper(t),
  11424. _step;
  11425. try {
  11426. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  11427. var _e6 = _step.value;
  11428. var _t4 = _e6.isMatch,
  11429. _n4 = _e6.genAdapter,
  11430. _s4 = _e6.runtime;
  11431. if (_t4()) return {
  11432. adapter: _n4(),
  11433. runtime: _s4
  11434. };
  11435. }
  11436. } catch (err) {
  11437. _iterator.e(err);
  11438. } finally {
  11439. _iterator.f();
  11440. }
  11441. }
  11442. !function (e) {
  11443. e.WEB = "web", e.WX_MP = "wx_mp";
  11444. }(Se || (Se = {}));
  11445. var ke = {
  11446. adapter: null,
  11447. runtime: void 0
  11448. },
  11449. Ae = ["anonymousUuidKey"];
  11450. var Pe = /*#__PURE__*/function (_ge) {
  11451. (0, _inherits2.default)(Pe, _ge);
  11452. var _super2 = _createSuper(Pe);
  11453. function Pe() {
  11454. var _this6;
  11455. (0, _classCallCheck2.default)(this, Pe);
  11456. _this6 = _super2.call(this), ke.adapter.root.tcbObject || (ke.adapter.root.tcbObject = {});
  11457. return _this6;
  11458. }
  11459. (0, _createClass2.default)(Pe, [{
  11460. key: "setItem",
  11461. value: function setItem(e, t) {
  11462. ke.adapter.root.tcbObject[e] = t;
  11463. }
  11464. }, {
  11465. key: "getItem",
  11466. value: function getItem(e) {
  11467. return ke.adapter.root.tcbObject[e];
  11468. }
  11469. }, {
  11470. key: "removeItem",
  11471. value: function removeItem(e) {
  11472. delete ke.adapter.root.tcbObject[e];
  11473. }
  11474. }, {
  11475. key: "clear",
  11476. value: function clear() {
  11477. delete ke.adapter.root.tcbObject;
  11478. }
  11479. }]);
  11480. return Pe;
  11481. }(ge);
  11482. function Te(e, t) {
  11483. switch (e) {
  11484. case "local":
  11485. return t.localStorage || new Pe();
  11486. case "none":
  11487. return new Pe();
  11488. default:
  11489. return t.sessionStorage || new Pe();
  11490. }
  11491. }
  11492. var Ce = /*#__PURE__*/function () {
  11493. function Ce(e) {
  11494. (0, _classCallCheck2.default)(this, Ce);
  11495. if (!this._storage) {
  11496. this._persistence = ke.adapter.primaryStorage || e.persistence, this._storage = Te(this._persistence, ke.adapter);
  11497. var _t5 = "access_token_".concat(e.env),
  11498. _n5 = "access_token_expire_".concat(e.env),
  11499. _s5 = "refresh_token_".concat(e.env),
  11500. _r = "anonymous_uuid_".concat(e.env),
  11501. _i = "login_type_".concat(e.env),
  11502. _o = "user_info_".concat(e.env);
  11503. this.keys = {
  11504. accessTokenKey: _t5,
  11505. accessTokenExpireKey: _n5,
  11506. refreshTokenKey: _s5,
  11507. anonymousUuidKey: _r,
  11508. loginTypeKey: _i,
  11509. userInfoKey: _o
  11510. };
  11511. }
  11512. }
  11513. (0, _createClass2.default)(Ce, [{
  11514. key: "updatePersistence",
  11515. value: function updatePersistence(e) {
  11516. if (e === this._persistence) return;
  11517. var t = "local" === this._persistence;
  11518. this._persistence = e;
  11519. var n = Te(e, ke.adapter);
  11520. for (var _e7 in this.keys) {
  11521. var _s6 = this.keys[_e7];
  11522. if (t && Ae.includes(_e7)) continue;
  11523. var _r2 = this._storage.getItem(_s6);
  11524. ve(_r2) || Ie(_r2) || (n.setItem(_s6, _r2), this._storage.removeItem(_s6));
  11525. }
  11526. this._storage = n;
  11527. }
  11528. }, {
  11529. key: "setStore",
  11530. value: function setStore(e, t, n) {
  11531. if (!this._storage) return;
  11532. var s = {
  11533. version: n || "localCachev1",
  11534. content: t
  11535. },
  11536. r = JSON.stringify(s);
  11537. try {
  11538. this._storage.setItem(e, r);
  11539. } catch (e) {
  11540. throw e;
  11541. }
  11542. }
  11543. }, {
  11544. key: "getStore",
  11545. value: function getStore(e, t) {
  11546. try {
  11547. if (!this._storage) return;
  11548. } catch (e) {
  11549. return "";
  11550. }
  11551. t = t || "localCachev1";
  11552. var n = this._storage.getItem(e);
  11553. if (!n) return "";
  11554. if (n.indexOf(t) >= 0) {
  11555. return JSON.parse(n).content;
  11556. }
  11557. return "";
  11558. }
  11559. }, {
  11560. key: "removeStore",
  11561. value: function removeStore(e) {
  11562. this._storage.removeItem(e);
  11563. }
  11564. }]);
  11565. return Ce;
  11566. }();
  11567. var xe = {},
  11568. Oe = {};
  11569. function Ee(e) {
  11570. return xe[e];
  11571. }
  11572. var Le = /*#__PURE__*/(0, _createClass2.default)(function Le(e, t) {
  11573. (0, _classCallCheck2.default)(this, Le);
  11574. this.data = t || null, this.name = e;
  11575. });
  11576. var Re = /*#__PURE__*/function (_Le) {
  11577. (0, _inherits2.default)(Re, _Le);
  11578. var _super3 = _createSuper(Re);
  11579. function Re(e, t) {
  11580. var _this7;
  11581. (0, _classCallCheck2.default)(this, Re);
  11582. _this7 = _super3.call(this, "error", {
  11583. error: e,
  11584. data: t
  11585. }), _this7.error = e;
  11586. return _this7;
  11587. }
  11588. return (0, _createClass2.default)(Re);
  11589. }(Le);
  11590. var Ue = new ( /*#__PURE__*/function () {
  11591. function _class() {
  11592. (0, _classCallCheck2.default)(this, _class);
  11593. this._listeners = {};
  11594. }
  11595. (0, _createClass2.default)(_class, [{
  11596. key: "on",
  11597. value: function on(e, t) {
  11598. return function (e, t, n) {
  11599. n[e] = n[e] || [], n[e].push(t);
  11600. }(e, t, this._listeners), this;
  11601. }
  11602. }, {
  11603. key: "off",
  11604. value: function off(e, t) {
  11605. return function (e, t, n) {
  11606. if (n && n[e]) {
  11607. var _s7 = n[e].indexOf(t);
  11608. -1 !== _s7 && n[e].splice(_s7, 1);
  11609. }
  11610. }(e, t, this._listeners), this;
  11611. }
  11612. }, {
  11613. key: "fire",
  11614. value: function fire(e, t) {
  11615. if (e instanceof Re) return console.error(e.error), this;
  11616. var n = "string" == typeof e ? new Le(e, t || {}) : e;
  11617. var s = n.name;
  11618. if (this._listens(s)) {
  11619. n.target = this;
  11620. var _e8 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  11621. var _iterator2 = _createForOfIteratorHelper(_e8),
  11622. _step2;
  11623. try {
  11624. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  11625. var _t6 = _step2.value;
  11626. _t6.call(this, n);
  11627. }
  11628. } catch (err) {
  11629. _iterator2.e(err);
  11630. } finally {
  11631. _iterator2.f();
  11632. }
  11633. }
  11634. return this;
  11635. }
  11636. }, {
  11637. key: "_listens",
  11638. value: function _listens(e) {
  11639. return this._listeners[e] && this._listeners[e].length > 0;
  11640. }
  11641. }]);
  11642. return _class;
  11643. }())();
  11644. function Ne(e, t) {
  11645. Ue.on(e, t);
  11646. }
  11647. function De(e) {
  11648. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11649. Ue.fire(e, t);
  11650. }
  11651. function Me(e, t) {
  11652. Ue.off(e, t);
  11653. }
  11654. var qe = "loginStateChanged",
  11655. Fe = "loginStateExpire",
  11656. Ke = "loginTypeChanged",
  11657. je = "anonymousConverted",
  11658. $e = "refreshAccessToken";
  11659. var Be;
  11660. !function (e) {
  11661. 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";
  11662. }(Be || (Be = {}));
  11663. var We = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  11664. He = {
  11665. "X-SDK-Version": "1.3.5"
  11666. };
  11667. function ze(e, t, n) {
  11668. var s = e[t];
  11669. e[t] = function (t) {
  11670. var r = {},
  11671. i = {};
  11672. n.forEach(function (n) {
  11673. var _n$call = n.call(e, t),
  11674. s = _n$call.data,
  11675. o = _n$call.headers;
  11676. Object.assign(r, s), Object.assign(i, o);
  11677. });
  11678. var o = t.data;
  11679. return o && function () {
  11680. var e;
  11681. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e9 in r) {
  11682. o.append(_e9, r[_e9]);
  11683. }
  11684. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  11685. };
  11686. }
  11687. function Je() {
  11688. var e = Math.random().toString(16).slice(2);
  11689. return {
  11690. data: {
  11691. seqId: e
  11692. },
  11693. headers: _objectSpread(_objectSpread({}, He), {}, {
  11694. "x-seqid": e
  11695. })
  11696. };
  11697. }
  11698. var Ge = /*#__PURE__*/function () {
  11699. function Ge() {
  11700. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  11701. (0, _classCallCheck2.default)(this, Ge);
  11702. var t;
  11703. this.config = e, this._reqClass = new ke.adapter.reqClass({
  11704. timeout: this.config.timeout,
  11705. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  11706. restrictedMethods: ["post"]
  11707. }), this._cache = Ee(this.config.env), this._localCache = (t = this.config.env, Oe[t]), ze(this._reqClass, "post", [Je]), ze(this._reqClass, "upload", [Je]), ze(this._reqClass, "download", [Je]);
  11708. }
  11709. (0, _createClass2.default)(Ge, [{
  11710. key: "post",
  11711. value: function () {
  11712. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(e) {
  11713. return _regenerator.default.wrap(function _callee4$(_context4) {
  11714. while (1) {
  11715. switch (_context4.prev = _context4.next) {
  11716. case 0:
  11717. _context4.next = 2;
  11718. return this._reqClass.post(e);
  11719. case 2:
  11720. return _context4.abrupt("return", _context4.sent);
  11721. case 3:
  11722. case "end":
  11723. return _context4.stop();
  11724. }
  11725. }
  11726. }, _callee4, this);
  11727. }));
  11728. function post(_x2) {
  11729. return _post.apply(this, arguments);
  11730. }
  11731. return post;
  11732. }()
  11733. }, {
  11734. key: "upload",
  11735. value: function () {
  11736. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e) {
  11737. return _regenerator.default.wrap(function _callee5$(_context5) {
  11738. while (1) {
  11739. switch (_context5.prev = _context5.next) {
  11740. case 0:
  11741. _context5.next = 2;
  11742. return this._reqClass.upload(e);
  11743. case 2:
  11744. return _context5.abrupt("return", _context5.sent);
  11745. case 3:
  11746. case "end":
  11747. return _context5.stop();
  11748. }
  11749. }
  11750. }, _callee5, this);
  11751. }));
  11752. function upload(_x3) {
  11753. return _upload.apply(this, arguments);
  11754. }
  11755. return upload;
  11756. }()
  11757. }, {
  11758. key: "download",
  11759. value: function () {
  11760. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(e) {
  11761. return _regenerator.default.wrap(function _callee6$(_context6) {
  11762. while (1) {
  11763. switch (_context6.prev = _context6.next) {
  11764. case 0:
  11765. _context6.next = 2;
  11766. return this._reqClass.download(e);
  11767. case 2:
  11768. return _context6.abrupt("return", _context6.sent);
  11769. case 3:
  11770. case "end":
  11771. return _context6.stop();
  11772. }
  11773. }
  11774. }, _callee6, this);
  11775. }));
  11776. function download(_x4) {
  11777. return _download.apply(this, arguments);
  11778. }
  11779. return download;
  11780. }()
  11781. }, {
  11782. key: "refreshAccessToken",
  11783. value: function () {
  11784. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  11785. var e, t;
  11786. return _regenerator.default.wrap(function _callee7$(_context7) {
  11787. while (1) {
  11788. switch (_context7.prev = _context7.next) {
  11789. case 0:
  11790. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  11791. _context7.prev = 1;
  11792. _context7.next = 4;
  11793. return this._refreshAccessTokenPromise;
  11794. case 4:
  11795. e = _context7.sent;
  11796. _context7.next = 10;
  11797. break;
  11798. case 7:
  11799. _context7.prev = 7;
  11800. _context7.t0 = _context7["catch"](1);
  11801. t = _context7.t0;
  11802. case 10:
  11803. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  11804. _context7.next = 12;
  11805. break;
  11806. }
  11807. throw t;
  11808. case 12:
  11809. return _context7.abrupt("return", e);
  11810. case 13:
  11811. case "end":
  11812. return _context7.stop();
  11813. }
  11814. }
  11815. }, _callee7, this, [[1, 7]]);
  11816. }));
  11817. function refreshAccessToken() {
  11818. return _refreshAccessToken2.apply(this, arguments);
  11819. }
  11820. return refreshAccessToken;
  11821. }()
  11822. }, {
  11823. key: "_refreshAccessToken",
  11824. value: function () {
  11825. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  11826. var _this$_cache$keys, e, t, n, s, r, i, o, a, _e10, _e11, _t7, _s8;
  11827. return _regenerator.default.wrap(function _callee8$(_context8) {
  11828. while (1) {
  11829. switch (_context8.prev = _context8.next) {
  11830. case 0:
  11831. _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;
  11832. this._cache.removeStore(e), this._cache.removeStore(t);
  11833. i = this._cache.getStore(n);
  11834. if (i) {
  11835. _context8.next = 5;
  11836. break;
  11837. }
  11838. throw new te({
  11839. message: "未登录CloudBase"
  11840. });
  11841. case 5:
  11842. o = {
  11843. refresh_token: i
  11844. };
  11845. _context8.next = 8;
  11846. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  11847. case 8:
  11848. a = _context8.sent;
  11849. if (!a.data.code) {
  11850. _context8.next = 21;
  11851. break;
  11852. }
  11853. _e10 = a.data.code;
  11854. if (!("SIGN_PARAM_INVALID" === _e10 || "REFRESH_TOKEN_EXPIRED" === _e10 || "INVALID_REFRESH_TOKEN" === _e10)) {
  11855. _context8.next = 20;
  11856. break;
  11857. }
  11858. if (!(this._cache.getStore(s) === Be.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e10)) {
  11859. _context8.next = 19;
  11860. break;
  11861. }
  11862. _e11 = this._cache.getStore(r);
  11863. _t7 = this._cache.getStore(n);
  11864. _context8.next = 17;
  11865. return this.send("auth.signInAnonymously", {
  11866. anonymous_uuid: _e11,
  11867. refresh_token: _t7
  11868. });
  11869. case 17:
  11870. _s8 = _context8.sent;
  11871. return _context8.abrupt("return", (this.setRefreshToken(_s8.refresh_token), this._refreshAccessToken()));
  11872. case 19:
  11873. De(Fe), this._cache.removeStore(n);
  11874. case 20:
  11875. throw new te({
  11876. code: a.data.code,
  11877. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  11878. });
  11879. case 21:
  11880. if (!a.data.access_token) {
  11881. _context8.next = 23;
  11882. break;
  11883. }
  11884. return _context8.abrupt("return", (De($e), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  11885. accessToken: a.data.access_token,
  11886. accessTokenExpire: a.data.access_token_expire
  11887. }));
  11888. case 23:
  11889. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  11890. case 24:
  11891. case "end":
  11892. return _context8.stop();
  11893. }
  11894. }
  11895. }, _callee8, this);
  11896. }));
  11897. function _refreshAccessToken() {
  11898. return _refreshAccessToken3.apply(this, arguments);
  11899. }
  11900. return _refreshAccessToken;
  11901. }()
  11902. }, {
  11903. key: "getAccessToken",
  11904. value: function () {
  11905. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  11906. var _this$_cache$keys2, e, t, n, s, r, i;
  11907. return _regenerator.default.wrap(function _callee9$(_context9) {
  11908. while (1) {
  11909. switch (_context9.prev = _context9.next) {
  11910. case 0:
  11911. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;
  11912. if (this._cache.getStore(n)) {
  11913. _context9.next = 3;
  11914. break;
  11915. }
  11916. throw new te({
  11917. message: "refresh token不存在,登录状态异常"
  11918. });
  11919. case 3:
  11920. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  11921. _context9.t0 = this._shouldRefreshAccessTokenHook;
  11922. if (!_context9.t0) {
  11923. _context9.next = 9;
  11924. break;
  11925. }
  11926. _context9.next = 8;
  11927. return this._shouldRefreshAccessTokenHook(s, r);
  11928. case 8:
  11929. _context9.t0 = !_context9.sent;
  11930. case 9:
  11931. _context9.t1 = _context9.t0;
  11932. if (!_context9.t1) {
  11933. _context9.next = 12;
  11934. break;
  11935. }
  11936. i = !1;
  11937. case 12:
  11938. return _context9.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  11939. accessToken: s,
  11940. accessTokenExpire: r
  11941. });
  11942. case 13:
  11943. case "end":
  11944. return _context9.stop();
  11945. }
  11946. }
  11947. }, _callee9, this);
  11948. }));
  11949. function getAccessToken() {
  11950. return _getAccessToken.apply(this, arguments);
  11951. }
  11952. return getAccessToken;
  11953. }()
  11954. }, {
  11955. key: "request",
  11956. value: function () {
  11957. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, t, n) {
  11958. var s, r, i, _e12, o, _e13, _e14, a, c, u, h, l, d, p, f, g;
  11959. return _regenerator.default.wrap(function _callee10$(_context10) {
  11960. while (1) {
  11961. switch (_context10.prev = _context10.next) {
  11962. case 0:
  11963. s = "x-tcb-trace_".concat(this.config.env);
  11964. r = "application/x-www-form-urlencoded";
  11965. i = _objectSpread({
  11966. action: e,
  11967. env: this.config.env,
  11968. dataVersion: "2019-08-16"
  11969. }, t);
  11970. if (!(-1 === We.indexOf(e))) {
  11971. _context10.next = 10;
  11972. break;
  11973. }
  11974. _e12 = this._cache.keys.refreshTokenKey;
  11975. _context10.t0 = this._cache.getStore(_e12);
  11976. if (!_context10.t0) {
  11977. _context10.next = 10;
  11978. break;
  11979. }
  11980. _context10.next = 9;
  11981. return this.getAccessToken();
  11982. case 9:
  11983. i.access_token = _context10.sent.accessToken;
  11984. case 10:
  11985. if ("storage.uploadFile" === e) {
  11986. o = new FormData();
  11987. for (_e13 in o) {
  11988. o.hasOwnProperty(_e13) && void 0 !== o[_e13] && o.append(_e13, i[_e13]);
  11989. }
  11990. r = "multipart/form-data";
  11991. } else {
  11992. r = "application/json", o = {};
  11993. for (_e14 in i) {
  11994. void 0 !== i[_e14] && (o[_e14] = i[_e14]);
  11995. }
  11996. }
  11997. a = {
  11998. headers: {
  11999. "content-type": r
  12000. }
  12001. };
  12002. n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  12003. c = this._localCache.getStore(s);
  12004. c && (a.headers["X-TCB-Trace"] = c);
  12005. u = t.parse, h = t.inQuery, l = t.search;
  12006. d = {
  12007. env: this.config.env
  12008. };
  12009. u && (d.parse = !0), h && (d = _objectSpread(_objectSpread({}, h), d));
  12010. p = function (e, t) {
  12011. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12012. var s = /\?/.test(t);
  12013. var r = "";
  12014. for (var _e15 in n) {
  12015. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e15, "=").concat(encodeURIComponent(n[_e15]));
  12016. }
  12017. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  12018. }(pe, "//tcb-api.tencentcloudapi.com/web", d);
  12019. l && (p += l);
  12020. _context10.next = 22;
  12021. return this.post(_objectSpread({
  12022. url: p,
  12023. data: o
  12024. }, a));
  12025. case 22:
  12026. f = _context10.sent;
  12027. g = f.header && f.header["x-tcb-trace"];
  12028. if (!(g && this._localCache.setStore(s, g), 200 !== Number(f.status) && 200 !== Number(f.statusCode) || !f.data)) {
  12029. _context10.next = 26;
  12030. break;
  12031. }
  12032. throw new te({
  12033. code: "NETWORK_ERROR",
  12034. message: "network request error"
  12035. });
  12036. case 26:
  12037. return _context10.abrupt("return", f);
  12038. case 27:
  12039. case "end":
  12040. return _context10.stop();
  12041. }
  12042. }
  12043. }, _callee10, this);
  12044. }));
  12045. function request(_x5, _x6, _x7) {
  12046. return _request.apply(this, arguments);
  12047. }
  12048. return request;
  12049. }()
  12050. }, {
  12051. key: "send",
  12052. value: function () {
  12053. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(e) {
  12054. var t,
  12055. n,
  12056. _n6,
  12057. _args11 = arguments;
  12058. return _regenerator.default.wrap(function _callee11$(_context11) {
  12059. while (1) {
  12060. switch (_context11.prev = _context11.next) {
  12061. case 0:
  12062. t = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
  12063. _context11.next = 3;
  12064. return this.request(e, t, {
  12065. onUploadProgress: t.onUploadProgress
  12066. });
  12067. case 3:
  12068. n = _context11.sent;
  12069. if (!("ACCESS_TOKEN_EXPIRED" === n.data.code && -1 === We.indexOf(e))) {
  12070. _context11.next = 13;
  12071. break;
  12072. }
  12073. _context11.next = 7;
  12074. return this.refreshAccessToken();
  12075. case 7:
  12076. _context11.next = 9;
  12077. return this.request(e, t, {
  12078. onUploadProgress: t.onUploadProgress
  12079. });
  12080. case 9:
  12081. _n6 = _context11.sent;
  12082. if (!_n6.data.code) {
  12083. _context11.next = 12;
  12084. break;
  12085. }
  12086. throw new te({
  12087. code: _n6.data.code,
  12088. message: _n6.data.message
  12089. });
  12090. case 12:
  12091. return _context11.abrupt("return", _n6.data);
  12092. case 13:
  12093. if (!n.data.code) {
  12094. _context11.next = 15;
  12095. break;
  12096. }
  12097. throw new te({
  12098. code: n.data.code,
  12099. message: n.data.message
  12100. });
  12101. case 15:
  12102. return _context11.abrupt("return", n.data);
  12103. case 16:
  12104. case "end":
  12105. return _context11.stop();
  12106. }
  12107. }
  12108. }, _callee11, this);
  12109. }));
  12110. function send(_x8) {
  12111. return _send.apply(this, arguments);
  12112. }
  12113. return send;
  12114. }()
  12115. }, {
  12116. key: "setRefreshToken",
  12117. value: function setRefreshToken(e) {
  12118. var _this$_cache$keys3 = this._cache.keys,
  12119. t = _this$_cache$keys3.accessTokenKey,
  12120. n = _this$_cache$keys3.accessTokenExpireKey,
  12121. s = _this$_cache$keys3.refreshTokenKey;
  12122. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  12123. }
  12124. }]);
  12125. return Ge;
  12126. }();
  12127. var Ve = {};
  12128. function Ye(e) {
  12129. return Ve[e];
  12130. }
  12131. var Qe = /*#__PURE__*/function () {
  12132. function Qe(e) {
  12133. (0, _classCallCheck2.default)(this, Qe);
  12134. this.config = e, this._cache = Ee(e.env), this._request = Ye(e.env);
  12135. }
  12136. (0, _createClass2.default)(Qe, [{
  12137. key: "setRefreshToken",
  12138. value: function setRefreshToken(e) {
  12139. var _this$_cache$keys4 = this._cache.keys,
  12140. t = _this$_cache$keys4.accessTokenKey,
  12141. n = _this$_cache$keys4.accessTokenExpireKey,
  12142. s = _this$_cache$keys4.refreshTokenKey;
  12143. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  12144. }
  12145. }, {
  12146. key: "setAccessToken",
  12147. value: function setAccessToken(e, t) {
  12148. var _this$_cache$keys5 = this._cache.keys,
  12149. n = _this$_cache$keys5.accessTokenKey,
  12150. s = _this$_cache$keys5.accessTokenExpireKey;
  12151. this._cache.setStore(n, e), this._cache.setStore(s, t);
  12152. }
  12153. }, {
  12154. key: "refreshUserInfo",
  12155. value: function () {
  12156. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  12157. var _yield$this$_request$, e;
  12158. return _regenerator.default.wrap(function _callee12$(_context12) {
  12159. while (1) {
  12160. switch (_context12.prev = _context12.next) {
  12161. case 0:
  12162. _context12.next = 2;
  12163. return this._request.send("auth.getUserInfo", {});
  12164. case 2:
  12165. _yield$this$_request$ = _context12.sent;
  12166. e = _yield$this$_request$.data;
  12167. return _context12.abrupt("return", (this.setLocalUserInfo(e), e));
  12168. case 5:
  12169. case "end":
  12170. return _context12.stop();
  12171. }
  12172. }
  12173. }, _callee12, this);
  12174. }));
  12175. function refreshUserInfo() {
  12176. return _refreshUserInfo.apply(this, arguments);
  12177. }
  12178. return refreshUserInfo;
  12179. }()
  12180. }, {
  12181. key: "setLocalUserInfo",
  12182. value: function setLocalUserInfo(e) {
  12183. var t = this._cache.keys.userInfoKey;
  12184. this._cache.setStore(t, e);
  12185. }
  12186. }]);
  12187. return Qe;
  12188. }();
  12189. var Xe = /*#__PURE__*/function () {
  12190. function Xe(e) {
  12191. (0, _classCallCheck2.default)(this, Xe);
  12192. if (!e) throw new te({
  12193. code: "PARAM_ERROR",
  12194. message: "envId is not defined"
  12195. });
  12196. this._envId = e, this._cache = Ee(this._envId), this._request = Ye(this._envId), this.setUserInfo();
  12197. }
  12198. (0, _createClass2.default)(Xe, [{
  12199. key: "linkWithTicket",
  12200. value: function linkWithTicket(e) {
  12201. if ("string" != typeof e) throw new te({
  12202. code: "PARAM_ERROR",
  12203. message: "ticket must be string"
  12204. });
  12205. return this._request.send("auth.linkWithTicket", {
  12206. ticket: e
  12207. });
  12208. }
  12209. }, {
  12210. key: "linkWithRedirect",
  12211. value: function linkWithRedirect(e) {
  12212. e.signInWithRedirect();
  12213. }
  12214. }, {
  12215. key: "updatePassword",
  12216. value: function updatePassword(e, t) {
  12217. return this._request.send("auth.updatePassword", {
  12218. oldPassword: t,
  12219. newPassword: e
  12220. });
  12221. }
  12222. }, {
  12223. key: "updateEmail",
  12224. value: function updateEmail(e) {
  12225. return this._request.send("auth.updateEmail", {
  12226. newEmail: e
  12227. });
  12228. }
  12229. }, {
  12230. key: "updateUsername",
  12231. value: function updateUsername(e) {
  12232. if ("string" != typeof e) throw new te({
  12233. code: "PARAM_ERROR",
  12234. message: "username must be a string"
  12235. });
  12236. return this._request.send("auth.updateUsername", {
  12237. username: e
  12238. });
  12239. }
  12240. }, {
  12241. key: "getLinkedUidList",
  12242. value: function () {
  12243. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
  12244. var _yield$this$_request$2, e, t, n;
  12245. return _regenerator.default.wrap(function _callee13$(_context13) {
  12246. while (1) {
  12247. switch (_context13.prev = _context13.next) {
  12248. case 0:
  12249. _context13.next = 2;
  12250. return this._request.send("auth.getLinkedUidList", {});
  12251. case 2:
  12252. _yield$this$_request$2 = _context13.sent;
  12253. e = _yield$this$_request$2.data;
  12254. t = !1;
  12255. n = e.users;
  12256. return _context13.abrupt("return", (n.forEach(function (e) {
  12257. e.wxOpenId && e.wxPublicId && (t = !0);
  12258. }), {
  12259. users: n,
  12260. hasPrimaryUid: t
  12261. }));
  12262. case 7:
  12263. case "end":
  12264. return _context13.stop();
  12265. }
  12266. }
  12267. }, _callee13, this);
  12268. }));
  12269. function getLinkedUidList() {
  12270. return _getLinkedUidList.apply(this, arguments);
  12271. }
  12272. return getLinkedUidList;
  12273. }()
  12274. }, {
  12275. key: "setPrimaryUid",
  12276. value: function setPrimaryUid(e) {
  12277. return this._request.send("auth.setPrimaryUid", {
  12278. uid: e
  12279. });
  12280. }
  12281. }, {
  12282. key: "unlink",
  12283. value: function unlink(e) {
  12284. return this._request.send("auth.unlink", {
  12285. platform: e
  12286. });
  12287. }
  12288. }, {
  12289. key: "update",
  12290. value: function () {
  12291. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {
  12292. var t, n, s, r, i, o, _yield$this$_request$3, a;
  12293. return _regenerator.default.wrap(function _callee14$(_context14) {
  12294. while (1) {
  12295. switch (_context14.prev = _context14.next) {
  12296. case 0:
  12297. t = e.nickName;
  12298. n = e.gender;
  12299. s = e.avatarUrl;
  12300. r = e.province;
  12301. i = e.country;
  12302. o = e.city;
  12303. _context14.next = 8;
  12304. return this._request.send("auth.updateUserInfo", {
  12305. nickName: t,
  12306. gender: n,
  12307. avatarUrl: s,
  12308. province: r,
  12309. country: i,
  12310. city: o
  12311. });
  12312. case 8:
  12313. _yield$this$_request$3 = _context14.sent;
  12314. a = _yield$this$_request$3.data;
  12315. this.setLocalUserInfo(a);
  12316. case 11:
  12317. case "end":
  12318. return _context14.stop();
  12319. }
  12320. }
  12321. }, _callee14, this);
  12322. }));
  12323. function update(_x9) {
  12324. return _update.apply(this, arguments);
  12325. }
  12326. return update;
  12327. }()
  12328. }, {
  12329. key: "refresh",
  12330. value: function () {
  12331. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
  12332. var _yield$this$_request$4, e;
  12333. return _regenerator.default.wrap(function _callee15$(_context15) {
  12334. while (1) {
  12335. switch (_context15.prev = _context15.next) {
  12336. case 0:
  12337. _context15.next = 2;
  12338. return this._request.send("auth.getUserInfo", {});
  12339. case 2:
  12340. _yield$this$_request$4 = _context15.sent;
  12341. e = _yield$this$_request$4.data;
  12342. return _context15.abrupt("return", (this.setLocalUserInfo(e), e));
  12343. case 5:
  12344. case "end":
  12345. return _context15.stop();
  12346. }
  12347. }
  12348. }, _callee15, this);
  12349. }));
  12350. function refresh() {
  12351. return _refresh.apply(this, arguments);
  12352. }
  12353. return refresh;
  12354. }()
  12355. }, {
  12356. key: "setUserInfo",
  12357. value: function setUserInfo() {
  12358. var _this8 = this;
  12359. var e = this._cache.keys.userInfoKey,
  12360. t = this._cache.getStore(e);
  12361. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  12362. _this8[e] = t[e];
  12363. }), this.location = {
  12364. country: t.country,
  12365. province: t.province,
  12366. city: t.city
  12367. };
  12368. }
  12369. }, {
  12370. key: "setLocalUserInfo",
  12371. value: function setLocalUserInfo(e) {
  12372. var t = this._cache.keys.userInfoKey;
  12373. this._cache.setStore(t, e), this.setUserInfo();
  12374. }
  12375. }]);
  12376. return Xe;
  12377. }();
  12378. var Ze = /*#__PURE__*/function () {
  12379. function Ze(e) {
  12380. (0, _classCallCheck2.default)(this, Ze);
  12381. if (!e) throw new te({
  12382. code: "PARAM_ERROR",
  12383. message: "envId is not defined"
  12384. });
  12385. this._cache = Ee(e);
  12386. var _this$_cache$keys6 = this._cache.keys,
  12387. t = _this$_cache$keys6.refreshTokenKey,
  12388. n = _this$_cache$keys6.accessTokenKey,
  12389. s = _this$_cache$keys6.accessTokenExpireKey,
  12390. r = this._cache.getStore(t),
  12391. i = this._cache.getStore(n),
  12392. o = this._cache.getStore(s);
  12393. this.credential = {
  12394. refreshToken: r,
  12395. accessToken: i,
  12396. accessTokenExpire: o
  12397. }, this.user = new Xe(e);
  12398. }
  12399. (0, _createClass2.default)(Ze, [{
  12400. key: "isAnonymousAuth",
  12401. get: function get() {
  12402. return this.loginType === Be.ANONYMOUS;
  12403. }
  12404. }, {
  12405. key: "isCustomAuth",
  12406. get: function get() {
  12407. return this.loginType === Be.CUSTOM;
  12408. }
  12409. }, {
  12410. key: "isWeixinAuth",
  12411. get: function get() {
  12412. return this.loginType === Be.WECHAT || this.loginType === Be.WECHAT_OPEN || this.loginType === Be.WECHAT_PUBLIC;
  12413. }
  12414. }, {
  12415. key: "loginType",
  12416. get: function get() {
  12417. return this._cache.getStore(this._cache.keys.loginTypeKey);
  12418. }
  12419. }]);
  12420. return Ze;
  12421. }();
  12422. var et = /*#__PURE__*/function (_Qe) {
  12423. (0, _inherits2.default)(et, _Qe);
  12424. var _super4 = _createSuper(et);
  12425. function et() {
  12426. (0, _classCallCheck2.default)(this, et);
  12427. return _super4.apply(this, arguments);
  12428. }
  12429. (0, _createClass2.default)(et, [{
  12430. key: "signIn",
  12431. value: function () {
  12432. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
  12433. var _this$_cache$keys7, e, t, n, s, r, _e16;
  12434. return _regenerator.default.wrap(function _callee16$(_context16) {
  12435. while (1) {
  12436. switch (_context16.prev = _context16.next) {
  12437. case 0:
  12438. this._cache.updatePersistence("local");
  12439. _this$_cache$keys7 = this._cache.keys;
  12440. e = _this$_cache$keys7.anonymousUuidKey;
  12441. t = _this$_cache$keys7.refreshTokenKey;
  12442. n = this._cache.getStore(e) || void 0;
  12443. s = this._cache.getStore(t) || void 0;
  12444. _context16.next = 8;
  12445. return this._request.send("auth.signInAnonymously", {
  12446. anonymous_uuid: n,
  12447. refresh_token: s
  12448. });
  12449. case 8:
  12450. r = _context16.sent;
  12451. if (!(r.uuid && r.refresh_token)) {
  12452. _context16.next = 20;
  12453. break;
  12454. }
  12455. this._setAnonymousUUID(r.uuid);
  12456. this.setRefreshToken(r.refresh_token);
  12457. _context16.next = 14;
  12458. return this._request.refreshAccessToken();
  12459. case 14:
  12460. De(qe);
  12461. De(Ke, {
  12462. env: this.config.env,
  12463. loginType: Be.ANONYMOUS,
  12464. persistence: "local"
  12465. });
  12466. _e16 = new Ze(this.config.env);
  12467. _context16.next = 19;
  12468. return _e16.user.refresh();
  12469. case 19:
  12470. return _context16.abrupt("return", _e16);
  12471. case 20:
  12472. throw new te({
  12473. message: "匿名登录失败"
  12474. });
  12475. case 21:
  12476. case "end":
  12477. return _context16.stop();
  12478. }
  12479. }
  12480. }, _callee16, this);
  12481. }));
  12482. function signIn() {
  12483. return _signIn.apply(this, arguments);
  12484. }
  12485. return signIn;
  12486. }()
  12487. }, {
  12488. key: "linkAndRetrieveDataWithTicket",
  12489. value: function () {
  12490. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {
  12491. var _this$_cache$keys8, t, n, s, r, i;
  12492. return _regenerator.default.wrap(function _callee17$(_context17) {
  12493. while (1) {
  12494. switch (_context17.prev = _context17.next) {
  12495. case 0:
  12496. _this$_cache$keys8 = this._cache.keys;
  12497. t = _this$_cache$keys8.anonymousUuidKey;
  12498. n = _this$_cache$keys8.refreshTokenKey;
  12499. s = this._cache.getStore(t);
  12500. r = this._cache.getStore(n);
  12501. _context17.next = 7;
  12502. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  12503. anonymous_uuid: s,
  12504. refresh_token: r,
  12505. ticket: e
  12506. });
  12507. case 7:
  12508. i = _context17.sent;
  12509. if (!i.refresh_token) {
  12510. _context17.next = 16;
  12511. break;
  12512. }
  12513. this._clearAnonymousUUID();
  12514. this.setRefreshToken(i.refresh_token);
  12515. _context17.next = 13;
  12516. return this._request.refreshAccessToken();
  12517. case 13:
  12518. De(je, {
  12519. env: this.config.env
  12520. });
  12521. De(Ke, {
  12522. loginType: Be.CUSTOM,
  12523. persistence: "local"
  12524. });
  12525. return _context17.abrupt("return", {
  12526. credential: {
  12527. refreshToken: i.refresh_token
  12528. }
  12529. });
  12530. case 16:
  12531. throw new te({
  12532. message: "匿名转化失败"
  12533. });
  12534. case 17:
  12535. case "end":
  12536. return _context17.stop();
  12537. }
  12538. }
  12539. }, _callee17, this);
  12540. }));
  12541. function linkAndRetrieveDataWithTicket(_x10) {
  12542. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  12543. }
  12544. return linkAndRetrieveDataWithTicket;
  12545. }()
  12546. }, {
  12547. key: "_setAnonymousUUID",
  12548. value: function _setAnonymousUUID(e) {
  12549. var _this$_cache$keys9 = this._cache.keys,
  12550. t = _this$_cache$keys9.anonymousUuidKey,
  12551. n = _this$_cache$keys9.loginTypeKey;
  12552. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, Be.ANONYMOUS);
  12553. }
  12554. }, {
  12555. key: "_clearAnonymousUUID",
  12556. value: function _clearAnonymousUUID() {
  12557. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  12558. }
  12559. }]);
  12560. return et;
  12561. }(Qe);
  12562. var tt = /*#__PURE__*/function (_Qe2) {
  12563. (0, _inherits2.default)(tt, _Qe2);
  12564. var _super5 = _createSuper(tt);
  12565. function tt() {
  12566. (0, _classCallCheck2.default)(this, tt);
  12567. return _super5.apply(this, arguments);
  12568. }
  12569. (0, _createClass2.default)(tt, [{
  12570. key: "signIn",
  12571. value: function () {
  12572. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(e) {
  12573. var t, n;
  12574. return _regenerator.default.wrap(function _callee18$(_context18) {
  12575. while (1) {
  12576. switch (_context18.prev = _context18.next) {
  12577. case 0:
  12578. if (!("string" != typeof e)) {
  12579. _context18.next = 2;
  12580. break;
  12581. }
  12582. throw new te({
  12583. code: "PARAM_ERROR",
  12584. message: "ticket must be a string"
  12585. });
  12586. case 2:
  12587. t = this._cache.keys.refreshTokenKey;
  12588. _context18.next = 5;
  12589. return this._request.send("auth.signInWithTicket", {
  12590. ticket: e,
  12591. refresh_token: this._cache.getStore(t) || ""
  12592. });
  12593. case 5:
  12594. n = _context18.sent;
  12595. if (!n.refresh_token) {
  12596. _context18.next = 15;
  12597. break;
  12598. }
  12599. this.setRefreshToken(n.refresh_token);
  12600. _context18.next = 10;
  12601. return this._request.refreshAccessToken();
  12602. case 10:
  12603. De(qe);
  12604. De(Ke, {
  12605. env: this.config.env,
  12606. loginType: Be.CUSTOM,
  12607. persistence: this.config.persistence
  12608. });
  12609. _context18.next = 14;
  12610. return this.refreshUserInfo();
  12611. case 14:
  12612. return _context18.abrupt("return", new Ze(this.config.env));
  12613. case 15:
  12614. throw new te({
  12615. message: "自定义登录失败"
  12616. });
  12617. case 16:
  12618. case "end":
  12619. return _context18.stop();
  12620. }
  12621. }
  12622. }, _callee18, this);
  12623. }));
  12624. function signIn(_x11) {
  12625. return _signIn2.apply(this, arguments);
  12626. }
  12627. return signIn;
  12628. }()
  12629. }]);
  12630. return tt;
  12631. }(Qe);
  12632. var nt = /*#__PURE__*/function (_Qe3) {
  12633. (0, _inherits2.default)(nt, _Qe3);
  12634. var _super6 = _createSuper(nt);
  12635. function nt() {
  12636. (0, _classCallCheck2.default)(this, nt);
  12637. return _super6.apply(this, arguments);
  12638. }
  12639. (0, _createClass2.default)(nt, [{
  12640. key: "signIn",
  12641. value: function () {
  12642. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t) {
  12643. var n, s, r, i, o;
  12644. return _regenerator.default.wrap(function _callee19$(_context19) {
  12645. while (1) {
  12646. switch (_context19.prev = _context19.next) {
  12647. case 0:
  12648. if (!("string" != typeof e)) {
  12649. _context19.next = 2;
  12650. break;
  12651. }
  12652. throw new te({
  12653. code: "PARAM_ERROR",
  12654. message: "email must be a string"
  12655. });
  12656. case 2:
  12657. n = this._cache.keys.refreshTokenKey;
  12658. _context19.next = 5;
  12659. return this._request.send("auth.signIn", {
  12660. loginType: "EMAIL",
  12661. email: e,
  12662. password: t,
  12663. refresh_token: this._cache.getStore(n) || ""
  12664. });
  12665. case 5:
  12666. s = _context19.sent;
  12667. r = s.refresh_token;
  12668. i = s.access_token;
  12669. o = s.access_token_expire;
  12670. if (!r) {
  12671. _context19.next = 22;
  12672. break;
  12673. }
  12674. this.setRefreshToken(r);
  12675. if (!(i && o)) {
  12676. _context19.next = 15;
  12677. break;
  12678. }
  12679. this.setAccessToken(i, o);
  12680. _context19.next = 17;
  12681. break;
  12682. case 15:
  12683. _context19.next = 17;
  12684. return this._request.refreshAccessToken();
  12685. case 17:
  12686. _context19.next = 19;
  12687. return this.refreshUserInfo();
  12688. case 19:
  12689. De(qe);
  12690. De(Ke, {
  12691. env: this.config.env,
  12692. loginType: Be.EMAIL,
  12693. persistence: this.config.persistence
  12694. });
  12695. return _context19.abrupt("return", new Ze(this.config.env));
  12696. case 22:
  12697. throw s.code ? new te({
  12698. code: s.code,
  12699. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  12700. }) : new te({
  12701. message: "邮箱登录失败"
  12702. });
  12703. case 23:
  12704. case "end":
  12705. return _context19.stop();
  12706. }
  12707. }
  12708. }, _callee19, this);
  12709. }));
  12710. function signIn(_x12, _x13) {
  12711. return _signIn3.apply(this, arguments);
  12712. }
  12713. return signIn;
  12714. }()
  12715. }, {
  12716. key: "activate",
  12717. value: function () {
  12718. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e) {
  12719. return _regenerator.default.wrap(function _callee20$(_context20) {
  12720. while (1) {
  12721. switch (_context20.prev = _context20.next) {
  12722. case 0:
  12723. return _context20.abrupt("return", this._request.send("auth.activateEndUserMail", {
  12724. token: e
  12725. }));
  12726. case 1:
  12727. case "end":
  12728. return _context20.stop();
  12729. }
  12730. }
  12731. }, _callee20, this);
  12732. }));
  12733. function activate(_x14) {
  12734. return _activate.apply(this, arguments);
  12735. }
  12736. return activate;
  12737. }()
  12738. }, {
  12739. key: "resetPasswordWithToken",
  12740. value: function () {
  12741. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {
  12742. return _regenerator.default.wrap(function _callee21$(_context21) {
  12743. while (1) {
  12744. switch (_context21.prev = _context21.next) {
  12745. case 0:
  12746. return _context21.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  12747. token: e,
  12748. newPassword: t
  12749. }));
  12750. case 1:
  12751. case "end":
  12752. return _context21.stop();
  12753. }
  12754. }
  12755. }, _callee21, this);
  12756. }));
  12757. function resetPasswordWithToken(_x15, _x16) {
  12758. return _resetPasswordWithToken.apply(this, arguments);
  12759. }
  12760. return resetPasswordWithToken;
  12761. }()
  12762. }]);
  12763. return nt;
  12764. }(Qe);
  12765. var st = /*#__PURE__*/function (_Qe4) {
  12766. (0, _inherits2.default)(st, _Qe4);
  12767. var _super7 = _createSuper(st);
  12768. function st() {
  12769. (0, _classCallCheck2.default)(this, st);
  12770. return _super7.apply(this, arguments);
  12771. }
  12772. (0, _createClass2.default)(st, [{
  12773. key: "signIn",
  12774. value: function () {
  12775. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(e, t) {
  12776. var n, s, r, i, o;
  12777. return _regenerator.default.wrap(function _callee22$(_context22) {
  12778. while (1) {
  12779. switch (_context22.prev = _context22.next) {
  12780. case 0:
  12781. if (!("string" != typeof e)) {
  12782. _context22.next = 2;
  12783. break;
  12784. }
  12785. throw new te({
  12786. code: "PARAM_ERROR",
  12787. message: "username must be a string"
  12788. });
  12789. case 2:
  12790. "string" != typeof t && (t = "", console.warn("password is empty"));
  12791. n = this._cache.keys.refreshTokenKey;
  12792. _context22.next = 6;
  12793. return this._request.send("auth.signIn", {
  12794. loginType: Be.USERNAME,
  12795. username: e,
  12796. password: t,
  12797. refresh_token: this._cache.getStore(n) || ""
  12798. });
  12799. case 6:
  12800. s = _context22.sent;
  12801. r = s.refresh_token;
  12802. i = s.access_token_expire;
  12803. o = s.access_token;
  12804. if (!r) {
  12805. _context22.next = 23;
  12806. break;
  12807. }
  12808. this.setRefreshToken(r);
  12809. if (!(o && i)) {
  12810. _context22.next = 16;
  12811. break;
  12812. }
  12813. this.setAccessToken(o, i);
  12814. _context22.next = 18;
  12815. break;
  12816. case 16:
  12817. _context22.next = 18;
  12818. return this._request.refreshAccessToken();
  12819. case 18:
  12820. _context22.next = 20;
  12821. return this.refreshUserInfo();
  12822. case 20:
  12823. De(qe);
  12824. De(Ke, {
  12825. env: this.config.env,
  12826. loginType: Be.USERNAME,
  12827. persistence: this.config.persistence
  12828. });
  12829. return _context22.abrupt("return", new Ze(this.config.env));
  12830. case 23:
  12831. throw s.code ? new te({
  12832. code: s.code,
  12833. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  12834. }) : new te({
  12835. message: "用户名密码登录失败"
  12836. });
  12837. case 24:
  12838. case "end":
  12839. return _context22.stop();
  12840. }
  12841. }
  12842. }, _callee22, this);
  12843. }));
  12844. function signIn(_x17, _x18) {
  12845. return _signIn4.apply(this, arguments);
  12846. }
  12847. return signIn;
  12848. }()
  12849. }]);
  12850. return st;
  12851. }(Qe);
  12852. var rt = /*#__PURE__*/function () {
  12853. function rt(e) {
  12854. (0, _classCallCheck2.default)(this, rt);
  12855. this.config = e, this._cache = Ee(e.env), this._request = Ye(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), Ne(Ke, this._onLoginTypeChanged);
  12856. }
  12857. (0, _createClass2.default)(rt, [{
  12858. key: "currentUser",
  12859. get: function get() {
  12860. var e = this.hasLoginState();
  12861. return e && e.user || null;
  12862. }
  12863. }, {
  12864. key: "loginType",
  12865. get: function get() {
  12866. return this._cache.getStore(this._cache.keys.loginTypeKey);
  12867. }
  12868. }, {
  12869. key: "anonymousAuthProvider",
  12870. value: function anonymousAuthProvider() {
  12871. return new et(this.config);
  12872. }
  12873. }, {
  12874. key: "customAuthProvider",
  12875. value: function customAuthProvider() {
  12876. return new tt(this.config);
  12877. }
  12878. }, {
  12879. key: "emailAuthProvider",
  12880. value: function emailAuthProvider() {
  12881. return new nt(this.config);
  12882. }
  12883. }, {
  12884. key: "usernameAuthProvider",
  12885. value: function usernameAuthProvider() {
  12886. return new st(this.config);
  12887. }
  12888. }, {
  12889. key: "signInAnonymously",
  12890. value: function () {
  12891. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23() {
  12892. return _regenerator.default.wrap(function _callee23$(_context23) {
  12893. while (1) {
  12894. switch (_context23.prev = _context23.next) {
  12895. case 0:
  12896. return _context23.abrupt("return", new et(this.config).signIn());
  12897. case 1:
  12898. case "end":
  12899. return _context23.stop();
  12900. }
  12901. }
  12902. }, _callee23, this);
  12903. }));
  12904. function signInAnonymously() {
  12905. return _signInAnonymously.apply(this, arguments);
  12906. }
  12907. return signInAnonymously;
  12908. }()
  12909. }, {
  12910. key: "signInWithEmailAndPassword",
  12911. value: function () {
  12912. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(e, t) {
  12913. return _regenerator.default.wrap(function _callee24$(_context24) {
  12914. while (1) {
  12915. switch (_context24.prev = _context24.next) {
  12916. case 0:
  12917. return _context24.abrupt("return", new nt(this.config).signIn(e, t));
  12918. case 1:
  12919. case "end":
  12920. return _context24.stop();
  12921. }
  12922. }
  12923. }, _callee24, this);
  12924. }));
  12925. function signInWithEmailAndPassword(_x19, _x20) {
  12926. return _signInWithEmailAndPassword.apply(this, arguments);
  12927. }
  12928. return signInWithEmailAndPassword;
  12929. }()
  12930. }, {
  12931. key: "signInWithUsernameAndPassword",
  12932. value: function signInWithUsernameAndPassword(e, t) {
  12933. return new st(this.config).signIn(e, t);
  12934. }
  12935. }, {
  12936. key: "linkAndRetrieveDataWithTicket",
  12937. value: function () {
  12938. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(e) {
  12939. return _regenerator.default.wrap(function _callee25$(_context25) {
  12940. while (1) {
  12941. switch (_context25.prev = _context25.next) {
  12942. case 0:
  12943. this._anonymousAuthProvider || (this._anonymousAuthProvider = new et(this.config)), Ne(je, this._onAnonymousConverted);
  12944. _context25.next = 3;
  12945. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  12946. case 3:
  12947. return _context25.abrupt("return", _context25.sent);
  12948. case 4:
  12949. case "end":
  12950. return _context25.stop();
  12951. }
  12952. }
  12953. }, _callee25, this);
  12954. }));
  12955. function linkAndRetrieveDataWithTicket(_x21) {
  12956. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  12957. }
  12958. return linkAndRetrieveDataWithTicket;
  12959. }()
  12960. }, {
  12961. key: "signOut",
  12962. value: function () {
  12963. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26() {
  12964. var _this$_cache$keys10, e, t, n, s, r;
  12965. return _regenerator.default.wrap(function _callee26$(_context26) {
  12966. while (1) {
  12967. switch (_context26.prev = _context26.next) {
  12968. case 0:
  12969. if (!(this.loginType === Be.ANONYMOUS)) {
  12970. _context26.next = 2;
  12971. break;
  12972. }
  12973. throw new te({
  12974. message: "匿名用户不支持登出操作"
  12975. });
  12976. case 2:
  12977. _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);
  12978. if (s) {
  12979. _context26.next = 5;
  12980. break;
  12981. }
  12982. return _context26.abrupt("return");
  12983. case 5:
  12984. _context26.next = 7;
  12985. return this._request.send("auth.logout", {
  12986. refresh_token: s
  12987. });
  12988. case 7:
  12989. r = _context26.sent;
  12990. return _context26.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), De(qe), De(Ke, {
  12991. env: this.config.env,
  12992. loginType: Be.NULL,
  12993. persistence: this.config.persistence
  12994. }), r));
  12995. case 9:
  12996. case "end":
  12997. return _context26.stop();
  12998. }
  12999. }
  13000. }, _callee26, this);
  13001. }));
  13002. function signOut() {
  13003. return _signOut.apply(this, arguments);
  13004. }
  13005. return signOut;
  13006. }()
  13007. }, {
  13008. key: "signUpWithEmailAndPassword",
  13009. value: function () {
  13010. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e, t) {
  13011. return _regenerator.default.wrap(function _callee27$(_context27) {
  13012. while (1) {
  13013. switch (_context27.prev = _context27.next) {
  13014. case 0:
  13015. return _context27.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  13016. email: e,
  13017. password: t
  13018. }));
  13019. case 1:
  13020. case "end":
  13021. return _context27.stop();
  13022. }
  13023. }
  13024. }, _callee27, this);
  13025. }));
  13026. function signUpWithEmailAndPassword(_x22, _x23) {
  13027. return _signUpWithEmailAndPassword.apply(this, arguments);
  13028. }
  13029. return signUpWithEmailAndPassword;
  13030. }()
  13031. }, {
  13032. key: "sendPasswordResetEmail",
  13033. value: function () {
  13034. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(e) {
  13035. return _regenerator.default.wrap(function _callee28$(_context28) {
  13036. while (1) {
  13037. switch (_context28.prev = _context28.next) {
  13038. case 0:
  13039. return _context28.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  13040. email: e
  13041. }));
  13042. case 1:
  13043. case "end":
  13044. return _context28.stop();
  13045. }
  13046. }
  13047. }, _callee28, this);
  13048. }));
  13049. function sendPasswordResetEmail(_x24) {
  13050. return _sendPasswordResetEmail.apply(this, arguments);
  13051. }
  13052. return sendPasswordResetEmail;
  13053. }()
  13054. }, {
  13055. key: "onLoginStateChanged",
  13056. value: function onLoginStateChanged(e) {
  13057. var _this9 = this;
  13058. Ne(qe, function () {
  13059. var t = _this9.hasLoginState();
  13060. e.call(_this9, t);
  13061. });
  13062. var t = this.hasLoginState();
  13063. e.call(this, t);
  13064. }
  13065. }, {
  13066. key: "onLoginStateExpired",
  13067. value: function onLoginStateExpired(e) {
  13068. Ne(Fe, e.bind(this));
  13069. }
  13070. }, {
  13071. key: "onAccessTokenRefreshed",
  13072. value: function onAccessTokenRefreshed(e) {
  13073. Ne($e, e.bind(this));
  13074. }
  13075. }, {
  13076. key: "onAnonymousConverted",
  13077. value: function onAnonymousConverted(e) {
  13078. Ne(je, e.bind(this));
  13079. }
  13080. }, {
  13081. key: "onLoginTypeChanged",
  13082. value: function onLoginTypeChanged(e) {
  13083. var _this10 = this;
  13084. Ne(Ke, function () {
  13085. var t = _this10.hasLoginState();
  13086. e.call(_this10, t);
  13087. });
  13088. }
  13089. }, {
  13090. key: "getAccessToken",
  13091. value: function () {
  13092. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29() {
  13093. return _regenerator.default.wrap(function _callee29$(_context29) {
  13094. while (1) {
  13095. switch (_context29.prev = _context29.next) {
  13096. case 0:
  13097. _context29.next = 2;
  13098. return this._request.getAccessToken();
  13099. case 2:
  13100. _context29.t0 = _context29.sent.accessToken;
  13101. _context29.t1 = this.config.env;
  13102. return _context29.abrupt("return", {
  13103. accessToken: _context29.t0,
  13104. env: _context29.t1
  13105. });
  13106. case 5:
  13107. case "end":
  13108. return _context29.stop();
  13109. }
  13110. }
  13111. }, _callee29, this);
  13112. }));
  13113. function getAccessToken() {
  13114. return _getAccessToken2.apply(this, arguments);
  13115. }
  13116. return getAccessToken;
  13117. }()
  13118. }, {
  13119. key: "hasLoginState",
  13120. value: function hasLoginState() {
  13121. var e = this._cache.keys.refreshTokenKey;
  13122. return this._cache.getStore(e) ? new Ze(this.config.env) : null;
  13123. }
  13124. }, {
  13125. key: "isUsernameRegistered",
  13126. value: function () {
  13127. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e) {
  13128. var _yield$this$_request$5, t;
  13129. return _regenerator.default.wrap(function _callee30$(_context30) {
  13130. while (1) {
  13131. switch (_context30.prev = _context30.next) {
  13132. case 0:
  13133. if (!("string" != typeof e)) {
  13134. _context30.next = 2;
  13135. break;
  13136. }
  13137. throw new te({
  13138. code: "PARAM_ERROR",
  13139. message: "username must be a string"
  13140. });
  13141. case 2:
  13142. _context30.next = 4;
  13143. return this._request.send("auth.isUsernameRegistered", {
  13144. username: e
  13145. });
  13146. case 4:
  13147. _yield$this$_request$5 = _context30.sent;
  13148. t = _yield$this$_request$5.data;
  13149. return _context30.abrupt("return", t && t.isRegistered);
  13150. case 7:
  13151. case "end":
  13152. return _context30.stop();
  13153. }
  13154. }
  13155. }, _callee30, this);
  13156. }));
  13157. function isUsernameRegistered(_x25) {
  13158. return _isUsernameRegistered.apply(this, arguments);
  13159. }
  13160. return isUsernameRegistered;
  13161. }()
  13162. }, {
  13163. key: "getLoginState",
  13164. value: function getLoginState() {
  13165. return Promise.resolve(this.hasLoginState());
  13166. }
  13167. }, {
  13168. key: "signInWithTicket",
  13169. value: function () {
  13170. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(e) {
  13171. return _regenerator.default.wrap(function _callee31$(_context31) {
  13172. while (1) {
  13173. switch (_context31.prev = _context31.next) {
  13174. case 0:
  13175. return _context31.abrupt("return", new tt(this.config).signIn(e));
  13176. case 1:
  13177. case "end":
  13178. return _context31.stop();
  13179. }
  13180. }
  13181. }, _callee31, this);
  13182. }));
  13183. function signInWithTicket(_x26) {
  13184. return _signInWithTicket.apply(this, arguments);
  13185. }
  13186. return signInWithTicket;
  13187. }()
  13188. }, {
  13189. key: "shouldRefreshAccessToken",
  13190. value: function shouldRefreshAccessToken(e) {
  13191. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  13192. }
  13193. }, {
  13194. key: "getUserInfo",
  13195. value: function getUserInfo() {
  13196. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  13197. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  13198. requestId: e.seqId
  13199. });
  13200. });
  13201. }
  13202. }, {
  13203. key: "getAuthHeader",
  13204. value: function getAuthHeader() {
  13205. var _this$_cache$keys11 = this._cache.keys,
  13206. e = _this$_cache$keys11.refreshTokenKey,
  13207. t = _this$_cache$keys11.accessTokenKey,
  13208. n = this._cache.getStore(e);
  13209. return {
  13210. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  13211. };
  13212. }
  13213. }, {
  13214. key: "_onAnonymousConverted",
  13215. value: function _onAnonymousConverted(e) {
  13216. var t = e.data.env;
  13217. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  13218. }
  13219. }, {
  13220. key: "_onLoginTypeChanged",
  13221. value: function _onLoginTypeChanged(e) {
  13222. var _e$data = e.data,
  13223. t = _e$data.loginType,
  13224. n = _e$data.persistence,
  13225. s = _e$data.env;
  13226. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  13227. }
  13228. }]);
  13229. return rt;
  13230. }();
  13231. var it = function it(e, t) {
  13232. t = t || we();
  13233. var n = Ye(this.config.env),
  13234. s = e.cloudPath,
  13235. r = e.filePath,
  13236. i = e.onUploadProgress,
  13237. _e$fileType = e.fileType,
  13238. o = _e$fileType === void 0 ? "image" : _e$fileType;
  13239. return n.send("storage.getUploadMetadata", {
  13240. path: s
  13241. }).then(function (e) {
  13242. var _e$data2 = e.data,
  13243. a = _e$data2.url,
  13244. c = _e$data2.authorization,
  13245. u = _e$data2.token,
  13246. h = _e$data2.fileId,
  13247. l = _e$data2.cosFileId,
  13248. d = e.requestId,
  13249. p = {
  13250. key: s,
  13251. signature: c,
  13252. "x-cos-meta-fileid": l,
  13253. success_action_status: "201",
  13254. "x-cos-security-token": u
  13255. };
  13256. n.upload({
  13257. url: a,
  13258. data: p,
  13259. file: r,
  13260. name: s,
  13261. fileType: o,
  13262. onUploadProgress: i
  13263. }).then(function (e) {
  13264. 201 === e.statusCode ? t(null, {
  13265. fileID: h,
  13266. requestId: d
  13267. }) : t(new te({
  13268. code: "STORAGE_REQUEST_FAIL",
  13269. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  13270. }));
  13271. }).catch(function (e) {
  13272. t(e);
  13273. });
  13274. }).catch(function (e) {
  13275. t(e);
  13276. }), t.promise;
  13277. },
  13278. ot = function ot(e, t) {
  13279. t = t || we();
  13280. var n = Ye(this.config.env),
  13281. s = e.cloudPath;
  13282. return n.send("storage.getUploadMetadata", {
  13283. path: s
  13284. }).then(function (e) {
  13285. t(null, e);
  13286. }).catch(function (e) {
  13287. t(e);
  13288. }), t.promise;
  13289. },
  13290. at = function at(_ref7, t) {
  13291. var e = _ref7.fileList;
  13292. if (t = t || we(), !e || !Array.isArray(e)) return {
  13293. code: "INVALID_PARAM",
  13294. message: "fileList必须是非空的数组"
  13295. };
  13296. var _iterator3 = _createForOfIteratorHelper(e),
  13297. _step3;
  13298. try {
  13299. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  13300. var _t8 = _step3.value;
  13301. if (!_t8 || "string" != typeof _t8) return {
  13302. code: "INVALID_PARAM",
  13303. message: "fileList的元素必须是非空的字符串"
  13304. };
  13305. }
  13306. } catch (err) {
  13307. _iterator3.e(err);
  13308. } finally {
  13309. _iterator3.f();
  13310. }
  13311. var n = {
  13312. fileid_list: e
  13313. };
  13314. return Ye(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  13315. e.code ? t(null, e) : t(null, {
  13316. fileList: e.data.delete_list,
  13317. requestId: e.requestId
  13318. });
  13319. }).catch(function (e) {
  13320. t(e);
  13321. }), t.promise;
  13322. },
  13323. ct = function ct(_ref8, t) {
  13324. var e = _ref8.fileList;
  13325. t = t || we(), e && Array.isArray(e) || t(null, {
  13326. code: "INVALID_PARAM",
  13327. message: "fileList必须是非空的数组"
  13328. });
  13329. var n = [];
  13330. var _iterator4 = _createForOfIteratorHelper(e),
  13331. _step4;
  13332. try {
  13333. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  13334. var _s9 = _step4.value;
  13335. "object" == (0, _typeof2.default)(_s9) ? (_s9.hasOwnProperty("fileID") && _s9.hasOwnProperty("maxAge") || t(null, {
  13336. code: "INVALID_PARAM",
  13337. message: "fileList的元素必须是包含fileID和maxAge的对象"
  13338. }), n.push({
  13339. fileid: _s9.fileID,
  13340. max_age: _s9.maxAge
  13341. })) : "string" == typeof _s9 ? n.push({
  13342. fileid: _s9
  13343. }) : t(null, {
  13344. code: "INVALID_PARAM",
  13345. message: "fileList的元素必须是字符串"
  13346. });
  13347. }
  13348. } catch (err) {
  13349. _iterator4.e(err);
  13350. } finally {
  13351. _iterator4.f();
  13352. }
  13353. var s = {
  13354. file_list: n
  13355. };
  13356. return Ye(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  13357. e.code ? t(null, e) : t(null, {
  13358. fileList: e.data.download_list,
  13359. requestId: e.requestId
  13360. });
  13361. }).catch(function (e) {
  13362. t(e);
  13363. }), t.promise;
  13364. },
  13365. ut = /*#__PURE__*/function () {
  13366. var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(_ref9, t) {
  13367. var e, n, s, r;
  13368. return _regenerator.default.wrap(function _callee32$(_context32) {
  13369. while (1) {
  13370. switch (_context32.prev = _context32.next) {
  13371. case 0:
  13372. e = _ref9.fileID;
  13373. _context32.next = 3;
  13374. return ct.call(this, {
  13375. fileList: [{
  13376. fileID: e,
  13377. maxAge: 600
  13378. }]
  13379. });
  13380. case 3:
  13381. n = _context32.sent.fileList[0];
  13382. if (!("SUCCESS" !== n.code)) {
  13383. _context32.next = 6;
  13384. break;
  13385. }
  13386. return _context32.abrupt("return", t ? t(n) : new Promise(function (e) {
  13387. e(n);
  13388. }));
  13389. case 6:
  13390. s = Ye(this.config.env);
  13391. r = n.download_url;
  13392. if (!(r = encodeURI(r), !t)) {
  13393. _context32.next = 10;
  13394. break;
  13395. }
  13396. return _context32.abrupt("return", s.download({
  13397. url: r
  13398. }));
  13399. case 10:
  13400. _context32.t0 = t;
  13401. _context32.next = 13;
  13402. return s.download({
  13403. url: r
  13404. });
  13405. case 13:
  13406. _context32.t1 = _context32.sent;
  13407. (0, _context32.t0)(_context32.t1);
  13408. case 15:
  13409. case "end":
  13410. return _context32.stop();
  13411. }
  13412. }
  13413. }, _callee32, this);
  13414. }));
  13415. return function ut(_x27, _x28) {
  13416. return _ref10.apply(this, arguments);
  13417. };
  13418. }(),
  13419. ht = function ht(_ref11, i) {
  13420. var e = _ref11.name,
  13421. t = _ref11.data,
  13422. n = _ref11.query,
  13423. s = _ref11.parse,
  13424. r = _ref11.search;
  13425. var o = i || we();
  13426. var a;
  13427. try {
  13428. a = t ? JSON.stringify(t) : "";
  13429. } catch (e) {
  13430. return Promise.reject(e);
  13431. }
  13432. if (!e) return Promise.reject(new te({
  13433. code: "PARAM_ERROR",
  13434. message: "函数名不能为空"
  13435. }));
  13436. var c = {
  13437. inQuery: n,
  13438. parse: s,
  13439. search: r,
  13440. function_name: e,
  13441. request_data: a
  13442. };
  13443. return Ye(this.config.env).send("functions.invokeFunction", c).then(function (e) {
  13444. if (e.code) o(null, e);else {
  13445. var _t9 = e.data.response_data;
  13446. if (s) o(null, {
  13447. result: _t9,
  13448. requestId: e.requestId
  13449. });else try {
  13450. _t9 = JSON.parse(e.data.response_data), o(null, {
  13451. result: _t9,
  13452. requestId: e.requestId
  13453. });
  13454. } catch (e) {
  13455. o(new te({
  13456. message: "response data must be json"
  13457. }));
  13458. }
  13459. }
  13460. return o.promise;
  13461. }).catch(function (e) {
  13462. o(e);
  13463. }), o.promise;
  13464. },
  13465. lt = {
  13466. timeout: 15e3,
  13467. persistence: "session"
  13468. },
  13469. dt = {};
  13470. var pt = /*#__PURE__*/function () {
  13471. function pt(e) {
  13472. (0, _classCallCheck2.default)(this, pt);
  13473. this.config = e || this.config, this.authObj = void 0;
  13474. }
  13475. (0, _createClass2.default)(pt, [{
  13476. key: "init",
  13477. value: function init(e) {
  13478. switch (ke.adapter || (this.requestClient = new ke.adapter.reqClass({
  13479. timeout: e.timeout || 5e3,
  13480. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  13481. })), this.config = _objectSpread(_objectSpread({}, lt), e), !0) {
  13482. case this.config.timeout > 6e5:
  13483. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;
  13484. break;
  13485. case this.config.timeout < 100:
  13486. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  13487. }
  13488. return new pt(this.config);
  13489. }
  13490. }, {
  13491. key: "auth",
  13492. value: function auth() {
  13493. var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13494. e = _ref12.persistence;
  13495. if (this.authObj) return this.authObj;
  13496. var t = e || ke.adapter.primaryStorage || lt.persistence;
  13497. var n;
  13498. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  13499. var t = e.env;
  13500. xe[t] = new Ce(e), Oe[t] = new Ce(_objectSpread(_objectSpread({}, e), {}, {
  13501. persistence: "local"
  13502. }));
  13503. }(this.config), n = this.config, Ve[n.env] = new Ge(n), this.authObj = new rt(this.config), this.authObj;
  13504. }
  13505. }, {
  13506. key: "on",
  13507. value: function on(e, t) {
  13508. return Ne.apply(this, [e, t]);
  13509. }
  13510. }, {
  13511. key: "off",
  13512. value: function off(e, t) {
  13513. return Me.apply(this, [e, t]);
  13514. }
  13515. }, {
  13516. key: "callFunction",
  13517. value: function callFunction(e, t) {
  13518. return ht.apply(this, [e, t]);
  13519. }
  13520. }, {
  13521. key: "deleteFile",
  13522. value: function deleteFile(e, t) {
  13523. return at.apply(this, [e, t]);
  13524. }
  13525. }, {
  13526. key: "getTempFileURL",
  13527. value: function getTempFileURL(e, t) {
  13528. return ct.apply(this, [e, t]);
  13529. }
  13530. }, {
  13531. key: "downloadFile",
  13532. value: function downloadFile(e, t) {
  13533. return ut.apply(this, [e, t]);
  13534. }
  13535. }, {
  13536. key: "uploadFile",
  13537. value: function uploadFile(e, t) {
  13538. return it.apply(this, [e, t]);
  13539. }
  13540. }, {
  13541. key: "getUploadMetadata",
  13542. value: function getUploadMetadata(e, t) {
  13543. return ot.apply(this, [e, t]);
  13544. }
  13545. }, {
  13546. key: "registerExtension",
  13547. value: function registerExtension(e) {
  13548. dt[e.name] = e;
  13549. }
  13550. }, {
  13551. key: "invokeExtension",
  13552. value: function () {
  13553. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {
  13554. var n;
  13555. return _regenerator.default.wrap(function _callee33$(_context33) {
  13556. while (1) {
  13557. switch (_context33.prev = _context33.next) {
  13558. case 0:
  13559. n = dt[e];
  13560. if (n) {
  13561. _context33.next = 3;
  13562. break;
  13563. }
  13564. throw new te({
  13565. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  13566. });
  13567. case 3:
  13568. _context33.next = 5;
  13569. return n.invoke(t, this);
  13570. case 5:
  13571. return _context33.abrupt("return", _context33.sent);
  13572. case 6:
  13573. case "end":
  13574. return _context33.stop();
  13575. }
  13576. }
  13577. }, _callee33, this);
  13578. }));
  13579. function invokeExtension(_x29, _x30) {
  13580. return _invokeExtension.apply(this, arguments);
  13581. }
  13582. return invokeExtension;
  13583. }()
  13584. }, {
  13585. key: "useAdapters",
  13586. value: function useAdapters(e) {
  13587. var _ref13 = be(e) || {},
  13588. t = _ref13.adapter,
  13589. n = _ref13.runtime;
  13590. t && (ke.adapter = t), n && (ke.runtime = n);
  13591. }
  13592. }]);
  13593. return pt;
  13594. }();
  13595. var ft = new pt();
  13596. function gt(e, t, n) {
  13597. void 0 === n && (n = {});
  13598. var s = /\?/.test(t),
  13599. r = "";
  13600. for (var i in n) {
  13601. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  13602. }
  13603. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  13604. }
  13605. var mt = /*#__PURE__*/function () {
  13606. function mt() {
  13607. (0, _classCallCheck2.default)(this, mt);
  13608. }
  13609. (0, _createClass2.default)(mt, [{
  13610. key: "post",
  13611. value: function post(e) {
  13612. var t = e.url,
  13613. n = e.data,
  13614. s = e.headers;
  13615. return new Promise(function (e, r) {
  13616. ne.request({
  13617. url: gt("https:", t),
  13618. data: n,
  13619. method: "POST",
  13620. header: s,
  13621. success: function success(t) {
  13622. e(t);
  13623. },
  13624. fail: function fail(e) {
  13625. r(e);
  13626. }
  13627. });
  13628. });
  13629. }
  13630. }, {
  13631. key: "upload",
  13632. value: function upload(e) {
  13633. return new Promise(function (t, n) {
  13634. var s = e.url,
  13635. r = e.file,
  13636. i = e.data,
  13637. o = e.headers,
  13638. a = e.fileType,
  13639. c = ne.uploadFile({
  13640. url: gt("https:", s),
  13641. name: "file",
  13642. formData: Object.assign({}, i),
  13643. filePath: r,
  13644. fileType: a,
  13645. header: o,
  13646. success: function success(e) {
  13647. var n = {
  13648. statusCode: e.statusCode,
  13649. data: e.data || {}
  13650. };
  13651. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  13652. },
  13653. fail: function fail(e) {
  13654. n(new Error(e.errMsg || "uploadFile:fail"));
  13655. }
  13656. });
  13657. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  13658. e.onUploadProgress({
  13659. loaded: t.totalBytesSent,
  13660. total: t.totalBytesExpectedToSend
  13661. });
  13662. });
  13663. });
  13664. }
  13665. }]);
  13666. return mt;
  13667. }();
  13668. var yt = {
  13669. setItem: function setItem(e, t) {
  13670. ne.setStorageSync(e, t);
  13671. },
  13672. getItem: function getItem(e) {
  13673. return ne.getStorageSync(e);
  13674. },
  13675. removeItem: function removeItem(e) {
  13676. ne.removeStorageSync(e);
  13677. },
  13678. clear: function clear() {
  13679. ne.clearStorageSync();
  13680. }
  13681. };
  13682. var _t = {
  13683. genAdapter: function genAdapter() {
  13684. return {
  13685. root: {},
  13686. reqClass: mt,
  13687. localStorage: yt,
  13688. primaryStorage: "local"
  13689. };
  13690. },
  13691. isMatch: function isMatch() {
  13692. return !0;
  13693. },
  13694. runtime: "uni_app"
  13695. };
  13696. ft.useAdapters(_t);
  13697. var wt = ft,
  13698. vt = wt.init;
  13699. wt.init = function (e) {
  13700. e.env = e.spaceId;
  13701. var t = vt.call(this, e);
  13702. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  13703. var n = t.auth;
  13704. return t.auth = function (e) {
  13705. var t = n.call(this, e);
  13706. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  13707. var n;
  13708. t[e] = (n = t[e], function (e) {
  13709. e = e || {};
  13710. var _ee = ee(e),
  13711. t = _ee.success,
  13712. s = _ee.fail,
  13713. r = _ee.complete;
  13714. if (!(t || s || r)) return n.call(this, e);
  13715. n.call(this, e).then(function (e) {
  13716. t && t(e), r && r(e);
  13717. }, function (e) {
  13718. s && s(e), r && r(e);
  13719. });
  13720. }).bind(t);
  13721. }), t;
  13722. }, t.customAuth = t.auth, t;
  13723. };
  13724. var It = wt;
  13725. var St = /*#__PURE__*/function (_le) {
  13726. (0, _inherits2.default)(St, _le);
  13727. var _super8 = _createSuper(St);
  13728. function St() {
  13729. (0, _classCallCheck2.default)(this, St);
  13730. return _super8.apply(this, arguments);
  13731. }
  13732. (0, _createClass2.default)(St, [{
  13733. key: "getAccessToken",
  13734. value: function getAccessToken() {
  13735. var _this11 = this;
  13736. return new Promise(function (e, t) {
  13737. var n = "Anonymous_Access_token";
  13738. _this11.setAccessToken(n), e(n);
  13739. });
  13740. }
  13741. }, {
  13742. key: "setupRequest",
  13743. value: function setupRequest(e, t) {
  13744. var n = Object.assign({}, e, {
  13745. spaceId: this.config.spaceId,
  13746. timestamp: Date.now()
  13747. }),
  13748. s = {
  13749. "Content-Type": "application/json"
  13750. };
  13751. "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = he.sign(n, this.config.clientSecret);
  13752. var r = ue();
  13753. s["x-client-info"] = encodeURIComponent(JSON.stringify(r));
  13754. var _se = se(),
  13755. i = _se.token;
  13756. return s["x-client-token"] = i, {
  13757. url: this.config.requestUrl,
  13758. method: "POST",
  13759. data: n,
  13760. dataType: "json",
  13761. header: JSON.parse(JSON.stringify(s))
  13762. };
  13763. }
  13764. }, {
  13765. key: "uploadFileToOSS",
  13766. value: function uploadFileToOSS(_ref14) {
  13767. var _this12 = this;
  13768. var e = _ref14.url,
  13769. t = _ref14.formData,
  13770. n = _ref14.name,
  13771. s = _ref14.filePath,
  13772. r = _ref14.fileType,
  13773. i = _ref14.onUploadProgress;
  13774. return new Promise(function (o, a) {
  13775. var c = _this12.adapter.uploadFile({
  13776. url: e,
  13777. formData: t,
  13778. name: n,
  13779. filePath: s,
  13780. fileType: r,
  13781. success: function success(e) {
  13782. e && e.statusCode < 400 ? o(e) : a(new te({
  13783. code: "UPLOAD_FAILED",
  13784. message: "文件上传失败"
  13785. }));
  13786. },
  13787. fail: function fail(e) {
  13788. a(new te({
  13789. code: e.code || "UPLOAD_FAILED",
  13790. message: e.message || e.errMsg || "文件上传失败"
  13791. }));
  13792. }
  13793. });
  13794. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  13795. i({
  13796. loaded: e.totalBytesSent,
  13797. total: e.totalBytesExpectedToSend
  13798. });
  13799. });
  13800. });
  13801. }
  13802. }, {
  13803. key: "uploadFile",
  13804. value: function uploadFile(_ref15) {
  13805. var _this13 = this;
  13806. var e = _ref15.filePath,
  13807. t = _ref15.cloudPath,
  13808. _ref15$fileType = _ref15.fileType,
  13809. n = _ref15$fileType === void 0 ? "image" : _ref15$fileType,
  13810. s = _ref15.onUploadProgress;
  13811. if (!t) throw new te({
  13812. code: "CLOUDPATH_REQUIRED",
  13813. message: "cloudPath不可为空"
  13814. });
  13815. var r;
  13816. return this.getOSSUploadOptionsFromPath({
  13817. cloudPath: t
  13818. }).then(function (t) {
  13819. var _t$result = t.result,
  13820. i = _t$result.url,
  13821. o = _t$result.formData,
  13822. a = _t$result.name;
  13823. r = t.result.fileUrl;
  13824. var c = {
  13825. url: i,
  13826. formData: o,
  13827. name: a,
  13828. filePath: e,
  13829. fileType: n
  13830. };
  13831. return _this13.uploadFileToOSS(Object.assign({}, c, {
  13832. onUploadProgress: s
  13833. }));
  13834. }).then(function () {
  13835. return _this13.reportOSSUpload({
  13836. cloudPath: t
  13837. });
  13838. }).then(function (t) {
  13839. return new Promise(function (n, s) {
  13840. t.success ? n({
  13841. success: !0,
  13842. filePath: e,
  13843. fileID: r
  13844. }) : s(new te({
  13845. code: "UPLOAD_FAILED",
  13846. message: "文件上传失败"
  13847. }));
  13848. });
  13849. });
  13850. }
  13851. }, {
  13852. key: "deleteFile",
  13853. value: function deleteFile(_ref16) {
  13854. var e = _ref16.fileList;
  13855. var t = {
  13856. method: "serverless.file.resource.delete",
  13857. params: JSON.stringify({
  13858. fileList: e
  13859. })
  13860. };
  13861. return this.request(this.setupRequest(t)).then(function (e) {
  13862. if (e.success) return e.result;
  13863. throw new te({
  13864. code: "DELETE_FILE_FAILED",
  13865. message: "删除文件失败"
  13866. });
  13867. });
  13868. }
  13869. }, {
  13870. key: "getTempFileURL",
  13871. value: function getTempFileURL() {
  13872. var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13873. e = _ref17.fileList,
  13874. t = _ref17.maxAge;
  13875. if (!Array.isArray(e) || 0 === e.length) throw new te({
  13876. code: "INVALID_PARAM",
  13877. message: "fileList的元素必须是非空的字符串"
  13878. });
  13879. var n = {
  13880. method: "serverless.file.resource.getTempFileURL",
  13881. params: JSON.stringify({
  13882. fileList: e,
  13883. maxAge: t
  13884. })
  13885. };
  13886. return this.request(this.setupRequest(n)).then(function (e) {
  13887. if (e.success) return {
  13888. fileList: e.result.fileList.map(function (e) {
  13889. return {
  13890. fileID: e.fileID,
  13891. tempFileURL: e.tempFileURL
  13892. };
  13893. })
  13894. };
  13895. throw new te({
  13896. code: "GET_TEMP_FILE_URL_FAILED",
  13897. message: "获取临时文件链接失败"
  13898. });
  13899. });
  13900. }
  13901. }]);
  13902. return St;
  13903. }(le);
  13904. var bt = {
  13905. init: function init(e) {
  13906. var t = new St(e),
  13907. n = {
  13908. signInAnonymously: function signInAnonymously() {
  13909. return t.authorize();
  13910. },
  13911. getLoginState: function getLoginState() {
  13912. return Promise.resolve(!1);
  13913. }
  13914. };
  13915. return t.auth = function () {
  13916. return n;
  13917. }, t.customAuth = t.auth, t;
  13918. }
  13919. },
  13920. kt = n(function (e, t) {
  13921. e.exports = r.enc.Hex;
  13922. });
  13923. function At() {
  13924. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  13925. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13926. var n = t.data,
  13927. s = t.functionName,
  13928. r = t.method,
  13929. i = t.headers,
  13930. _t$signHeaderKeys = t.signHeaderKeys,
  13931. o = _t$signHeaderKeys === void 0 ? [] : _t$signHeaderKeys,
  13932. a = t.config,
  13933. c = Date.now(),
  13934. u = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
  13935. var t = 16 * Math.random() | 0;
  13936. return ("x" === e ? t : 3 & t | 8).toString(16);
  13937. }),
  13938. h = Object.assign({}, i, {
  13939. "x-from-app-id": a.spaceAppId,
  13940. "x-from-env-id": a.spaceId,
  13941. "x-to-env-id": a.spaceId,
  13942. "x-from-instance-id": c,
  13943. "x-from-function-name": s,
  13944. "x-client-timestamp": c,
  13945. "x-alipay-source": "client",
  13946. "x-request-id": u,
  13947. "x-alipay-callid": u,
  13948. "x-trace-id": u
  13949. }),
  13950. 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),
  13951. _ref18 = e.split("?") || [],
  13952. _ref19 = (0, _slicedToArray2.default)(_ref18, 2),
  13953. _ref19$ = _ref19[0],
  13954. d = _ref19$ === void 0 ? "" : _ref19$,
  13955. _ref19$2 = _ref19[1],
  13956. p = _ref19$2 === void 0 ? "" : _ref19$2,
  13957. f = function (e) {
  13958. var t = e.signedHeaders.join(";"),
  13959. n = e.signedHeaders.map(function (t) {
  13960. return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
  13961. }).join(""),
  13962. s = ye(e.body).toString(kt),
  13963. r = "".concat(e.method.toUpperCase(), "\n").concat(e.path, "\n").concat(e.query, "\n").concat(n, "\n").concat(t, "\n").concat(s, "\n"),
  13964. i = ye(r).toString(kt),
  13965. o = "HMAC-SHA256\n".concat(e.timestamp, "\n").concat(i, "\n"),
  13966. a = _e(o, e.secretKey).toString(kt);
  13967. return "HMAC-SHA256 Credential=".concat(e.secretId, ", SignedHeaders=").concat(t, ", Signature=").concat(a);
  13968. }({
  13969. path: d,
  13970. query: p,
  13971. method: r,
  13972. headers: h,
  13973. timestamp: c,
  13974. body: JSON.stringify(n),
  13975. secretId: a.accessKey,
  13976. secretKey: a.secretKey,
  13977. signedHeaders: l.sort()
  13978. });
  13979. return {
  13980. url: "".concat(a.endpoint).concat(e),
  13981. headers: Object.assign({}, h, {
  13982. Authorization: f
  13983. })
  13984. };
  13985. }
  13986. function Pt(_ref20) {
  13987. var e = _ref20.url,
  13988. t = _ref20.data,
  13989. _ref20$method = _ref20.method,
  13990. n = _ref20$method === void 0 ? "POST" : _ref20$method,
  13991. _ref20$headers = _ref20.headers,
  13992. s = _ref20$headers === void 0 ? {} : _ref20$headers;
  13993. return new Promise(function (r, i) {
  13994. ne.request({
  13995. url: e,
  13996. method: n,
  13997. data: t,
  13998. header: s,
  13999. dataType: "json",
  14000. complete: function complete() {
  14001. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14002. var t = s["x-trace-id"] || "";
  14003. if (!e.statusCode || e.statusCode >= 400) {
  14004. var _ref21 = e.data || {},
  14005. _n7 = _ref21.message,
  14006. _s10 = _ref21.errMsg,
  14007. _r3 = _ref21.trace_id;
  14008. return i(new te({
  14009. code: "SYS_ERR",
  14010. message: _n7 || _s10 || "request:fail",
  14011. requestId: _r3 || t
  14012. }));
  14013. }
  14014. r({
  14015. status: e.statusCode,
  14016. data: e.data,
  14017. headers: e.header,
  14018. requestId: t
  14019. });
  14020. }
  14021. });
  14022. });
  14023. }
  14024. function Tt(e, t) {
  14025. var n = e.path,
  14026. s = e.data,
  14027. _e$method = e.method,
  14028. r = _e$method === void 0 ? "GET" : _e$method,
  14029. _At = At(n, {
  14030. functionName: "",
  14031. data: s,
  14032. method: r,
  14033. headers: {
  14034. "x-alipay-cloud-mode": "oss",
  14035. "x-data-api-type": "oss",
  14036. "x-expire-timestamp": Date.now() + 6e4
  14037. },
  14038. signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"],
  14039. config: t
  14040. }),
  14041. i = _At.url,
  14042. o = _At.headers;
  14043. return Pt({
  14044. url: i,
  14045. data: s,
  14046. method: r,
  14047. headers: o
  14048. }).then(function (e) {
  14049. var t = e.data || {};
  14050. if (!t.success) throw new te({
  14051. code: e.errCode,
  14052. message: e.errMsg,
  14053. requestId: e.requestId
  14054. });
  14055. return t.data || {};
  14056. }).catch(function (e) {
  14057. throw new te({
  14058. code: e.errCode,
  14059. message: e.errMsg,
  14060. requestId: e.requestId
  14061. });
  14062. });
  14063. }
  14064. function Ct() {
  14065. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  14066. var t = e.trim().replace(/^cloud:\/\//, ""),
  14067. n = t.indexOf("/");
  14068. if (n <= 0) throw new te({
  14069. code: "INVALID_PARAM",
  14070. message: "fileID不合法"
  14071. });
  14072. var s = t.substring(0, n),
  14073. r = t.substring(n + 1);
  14074. return s !== this.config.spaceId && console.warn("file ".concat(e, " does not belong to env ").concat(this.config.spaceId)), r;
  14075. }
  14076. function xt() {
  14077. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  14078. return "cloud://".concat(this.config.spaceId, "/").concat(e.replace(/^\/+/, ""));
  14079. }
  14080. var Ot = /*#__PURE__*/function () {
  14081. function Ot(e) {
  14082. (0, _classCallCheck2.default)(this, Ot);
  14083. if (["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach(function (t) {
  14084. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  14085. }), e.endpoint) {
  14086. if ("string" != typeof e.endpoint) throw new Error("endpoint must be string");
  14087. if (!/^https:\/\//.test(e.endpoint)) throw new Error("endpoint must start with https://");
  14088. e.endpoint = e.endpoint.replace(/\/$/, "");
  14089. }
  14090. this.config = Object.assign({}, e, {
  14091. endpoint: e.endpoint || "https://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn")
  14092. });
  14093. }
  14094. (0, _createClass2.default)(Ot, [{
  14095. key: "callFunction",
  14096. value: function callFunction(e) {
  14097. return function (e, t) {
  14098. var n = e.name,
  14099. s = e.data,
  14100. r = "POST",
  14101. _At2 = At("/functions/invokeFunction", {
  14102. functionName: n,
  14103. data: s,
  14104. method: r,
  14105. headers: {
  14106. "x-to-function-name": n
  14107. },
  14108. signHeaderKeys: ["x-to-function-name"],
  14109. config: t
  14110. }),
  14111. i = _At2.url,
  14112. o = _At2.headers;
  14113. return Pt({
  14114. url: i,
  14115. data: s,
  14116. method: r,
  14117. headers: o
  14118. }).then(function (e) {
  14119. return {
  14120. errCode: 0,
  14121. success: !0,
  14122. requestId: e.requestId,
  14123. result: e.data
  14124. };
  14125. }).catch(function (e) {
  14126. throw new te({
  14127. code: e.errCode,
  14128. message: e.errMsg,
  14129. requestId: e.requestId
  14130. });
  14131. });
  14132. }(e, this.config);
  14133. }
  14134. }, {
  14135. key: "uploadFileToOSS",
  14136. value: function uploadFileToOSS(_ref22) {
  14137. var e = _ref22.url,
  14138. t = _ref22.filePath,
  14139. n = _ref22.fileType,
  14140. s = _ref22.formData,
  14141. r = _ref22.onUploadProgress;
  14142. return new Promise(function (i, o) {
  14143. var a = ne.uploadFile({
  14144. url: e,
  14145. filePath: t,
  14146. fileType: n,
  14147. formData: s,
  14148. name: "file",
  14149. success: function success(e) {
  14150. e && e.statusCode < 400 ? i(e) : o(new te({
  14151. code: "UPLOAD_FAILED",
  14152. message: "文件上传失败"
  14153. }));
  14154. },
  14155. fail: function fail(e) {
  14156. o(new te({
  14157. code: e.code || "UPLOAD_FAILED",
  14158. message: e.message || e.errMsg || "文件上传失败"
  14159. }));
  14160. }
  14161. });
  14162. "function" == typeof r && a && "function" == typeof a.onProgressUpdate && a.onProgressUpdate(function (e) {
  14163. r({
  14164. loaded: e.totalBytesSent,
  14165. total: e.totalBytesExpectedToSend
  14166. });
  14167. });
  14168. });
  14169. }
  14170. }, {
  14171. key: "uploadFile",
  14172. value: function () {
  14173. var _uploadFile2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(_ref23) {
  14174. var e, _ref23$cloudPath, t, _ref23$fileType, n, s, r, i, o, a, c;
  14175. return _regenerator.default.wrap(function _callee34$(_context34) {
  14176. while (1) {
  14177. switch (_context34.prev = _context34.next) {
  14178. case 0:
  14179. 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;
  14180. if (!("string" !== f(t))) {
  14181. _context34.next = 3;
  14182. break;
  14183. }
  14184. throw new te({
  14185. code: "INVALID_PARAM",
  14186. message: "cloudPath必须为字符串类型"
  14187. });
  14188. case 3:
  14189. if (t = t.trim()) {
  14190. _context34.next = 5;
  14191. break;
  14192. }
  14193. throw new te({
  14194. code: "INVALID_PARAM",
  14195. message: "cloudPath不可为空"
  14196. });
  14197. case 5:
  14198. if (!/:\/\//.test(t)) {
  14199. _context34.next = 7;
  14200. break;
  14201. }
  14202. throw new te({
  14203. code: "INVALID_PARAM",
  14204. message: "cloudPath不合法"
  14205. });
  14206. case 7:
  14207. _context34.next = 9;
  14208. return Tt({
  14209. path: "/".concat(t.replace(/^\//, ""), "?post_url")
  14210. }, this.config);
  14211. case 9:
  14212. r = _context34.sent;
  14213. i = r.file_id;
  14214. o = r.upload_url;
  14215. a = r.form_data;
  14216. c = a && a.reduce(function (e, t) {
  14217. return e[t.key] = t.value, e;
  14218. }, {});
  14219. return _context34.abrupt("return", this.uploadFileToOSS({
  14220. url: o,
  14221. filePath: e,
  14222. fileType: n,
  14223. formData: c,
  14224. onUploadProgress: s
  14225. }).then(function () {
  14226. return {
  14227. fileID: i
  14228. };
  14229. }));
  14230. case 15:
  14231. case "end":
  14232. return _context34.stop();
  14233. }
  14234. }
  14235. }, _callee34, this);
  14236. }));
  14237. function uploadFile(_x31) {
  14238. return _uploadFile2.apply(this, arguments);
  14239. }
  14240. return uploadFile;
  14241. }()
  14242. }, {
  14243. key: "getTempFileURL",
  14244. value: function () {
  14245. var _getTempFileURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35(_ref24) {
  14246. var _this14 = this;
  14247. var e;
  14248. return _regenerator.default.wrap(function _callee35$(_context35) {
  14249. while (1) {
  14250. switch (_context35.prev = _context35.next) {
  14251. case 0:
  14252. e = _ref24.fileList;
  14253. return _context35.abrupt("return", new Promise(function (t, n) {
  14254. (!e || e.length < 0) && n(new te({
  14255. errCode: "INVALID_PARAM",
  14256. errMsg: "fileList不能为空数组"
  14257. })), e.length > 50 && n(new te({
  14258. errCode: "INVALID_PARAM",
  14259. errMsg: "fileList数组长度不能超过50"
  14260. }));
  14261. var s = [];
  14262. var _iterator5 = _createForOfIteratorHelper(e),
  14263. _step5;
  14264. try {
  14265. for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
  14266. var _t10 = _step5.value;
  14267. "string" !== f(_t10) && n(new te({
  14268. errCode: "INVALID_PARAM",
  14269. errMsg: "fileList的元素必须是非空的字符串"
  14270. }));
  14271. var _e17 = Ct.call(_this14, _t10);
  14272. s.push({
  14273. file_id: _e17,
  14274. expire: 600
  14275. });
  14276. }
  14277. } catch (err) {
  14278. _iterator5.e(err);
  14279. } finally {
  14280. _iterator5.f();
  14281. }
  14282. Tt({
  14283. path: "/?download_url",
  14284. data: {
  14285. file_list: s
  14286. },
  14287. method: "POST"
  14288. }, _this14.config).then(function (e) {
  14289. var _e$file_list = e.file_list,
  14290. n = _e$file_list === void 0 ? [] : _e$file_list;
  14291. t({
  14292. fileList: n.map(function (e) {
  14293. return {
  14294. fileID: xt.call(_this14, e.file_id),
  14295. tempFileURL: e.download_url
  14296. };
  14297. })
  14298. });
  14299. }).catch(function (e) {
  14300. return n(e);
  14301. });
  14302. }));
  14303. case 2:
  14304. case "end":
  14305. return _context35.stop();
  14306. }
  14307. }
  14308. }, _callee35);
  14309. }));
  14310. function getTempFileURL(_x32) {
  14311. return _getTempFileURL.apply(this, arguments);
  14312. }
  14313. return getTempFileURL;
  14314. }()
  14315. }]);
  14316. return Ot;
  14317. }();
  14318. var Et = {
  14319. init: function init(e) {
  14320. e.provider = "alipay";
  14321. var t = new Ot(e);
  14322. return t.auth = function () {
  14323. return {
  14324. signInAnonymously: function signInAnonymously() {
  14325. return Promise.resolve();
  14326. },
  14327. getLoginState: function getLoginState() {
  14328. return Promise.resolve(!0);
  14329. }
  14330. };
  14331. }, t;
  14332. }
  14333. };
  14334. function Lt(_ref25) {
  14335. var e = _ref25.data;
  14336. var t;
  14337. t = ue();
  14338. var n = JSON.parse(JSON.stringify(e || {}));
  14339. if (Object.assign(n, {
  14340. clientInfo: t
  14341. }), !n.uniIdToken) {
  14342. var _se2 = se(),
  14343. _e18 = _se2.token;
  14344. _e18 && (n.uniIdToken = _e18);
  14345. }
  14346. return n;
  14347. }
  14348. function Rt() {
  14349. return _Rt.apply(this, arguments);
  14350. }
  14351. function _Rt() {
  14352. _Rt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee56() {
  14353. var _this27 = this;
  14354. var _ref67,
  14355. e,
  14356. t,
  14357. _this$__dev__,
  14358. n,
  14359. s,
  14360. r,
  14361. i,
  14362. o,
  14363. a,
  14364. _args6 = arguments;
  14365. return _regenerator.default.wrap(function _callee56$(_context56) {
  14366. while (1) {
  14367. switch (_context56.prev = _context56.next) {
  14368. case 0:
  14369. _ref67 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, e = _ref67.name, t = _ref67.data;
  14370. _context56.next = 3;
  14371. return this.__dev__.initLocalNetwork();
  14372. case 3:
  14373. _this$__dev__ = this.__dev__, n = _this$__dev__.localAddress, s = _this$__dev__.localPort, r = {
  14374. aliyun: "aliyun",
  14375. tencent: "tcb",
  14376. alipay: "alipay"
  14377. }[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);
  14378. return _context56.abrupt("return", new Promise(function (t, n) {
  14379. ne.request({
  14380. method: "POST",
  14381. url: o,
  14382. data: {
  14383. name: e,
  14384. platform: P,
  14385. provider: r,
  14386. spaceId: i
  14387. },
  14388. timeout: 3e3,
  14389. success: function success(e) {
  14390. t(e);
  14391. },
  14392. fail: function fail() {
  14393. t({
  14394. data: {
  14395. code: "NETWORK_ERROR",
  14396. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  14397. }
  14398. });
  14399. }
  14400. });
  14401. }).then(function () {
  14402. var _ref68 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14403. e = _ref68.data;
  14404. var _ref69 = e || {},
  14405. t = _ref69.code,
  14406. n = _ref69.message;
  14407. return {
  14408. code: 0 === t ? 0 : t || "SYS_ERR",
  14409. message: n || "SYS_ERR"
  14410. };
  14411. }).then(function (_ref70) {
  14412. var n = _ref70.code,
  14413. s = _ref70.message;
  14414. if (0 !== n) {
  14415. switch (n) {
  14416. case "MODULE_ENCRYPTED":
  14417. 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"));
  14418. break;
  14419. case "FUNCTION_ENCRYPTED":
  14420. 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"));
  14421. break;
  14422. case "ACTION_ENCRYPTED":
  14423. console.error(s || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  14424. break;
  14425. case "NETWORK_ERROR":
  14426. {
  14427. var _e30 = "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";
  14428. throw console.error(_e30), new Error(_e30);
  14429. }
  14430. case "SWITCH_TO_CLOUD":
  14431. break;
  14432. default:
  14433. {
  14434. var _e31 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(s, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");
  14435. throw console.error(_e31), new Error(_e31);
  14436. }
  14437. }
  14438. return _this27._callCloudFunction({
  14439. name: e,
  14440. data: t
  14441. });
  14442. }
  14443. return new Promise(function (e, n) {
  14444. var s = Lt.call(_this27, {
  14445. data: t
  14446. });
  14447. ne.request({
  14448. method: "POST",
  14449. url: a,
  14450. data: {
  14451. provider: r,
  14452. platform: P,
  14453. param: s
  14454. },
  14455. success: function success() {
  14456. var _ref71 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14457. t = _ref71.statusCode,
  14458. s = _ref71.data;
  14459. return !t || t >= 400 ? n(new te({
  14460. code: s.code || "SYS_ERR",
  14461. message: s.message || "request:fail"
  14462. })) : e({
  14463. result: s
  14464. });
  14465. },
  14466. fail: function fail(e) {
  14467. n(new te({
  14468. code: e.code || e.errCode || "SYS_ERR",
  14469. message: e.message || e.errMsg || "request:fail"
  14470. }));
  14471. }
  14472. });
  14473. });
  14474. }));
  14475. case 5:
  14476. case "end":
  14477. return _context56.stop();
  14478. }
  14479. }
  14480. }, _callee56, this);
  14481. }));
  14482. return _Rt.apply(this, arguments);
  14483. }
  14484. var Ut = [{
  14485. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  14486. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  14487. mode: "append"
  14488. }];
  14489. var Nt = /[\\^$.*+?()[\]{}|]/g,
  14490. Dt = RegExp(Nt.source);
  14491. function Mt(e, t, n) {
  14492. return e.replace(new RegExp((s = t) && Dt.test(s) ? s.replace(Nt, "\\$&") : s, "g"), n);
  14493. var s;
  14494. }
  14495. var qt = "none",
  14496. Ft = "request",
  14497. Kt = "response",
  14498. jt = "both";
  14499. var $t = /*#__PURE__*/function () {
  14500. function $t() {
  14501. var _ref26 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14502. e = _ref26.secretType,
  14503. t = _ref26.uniCloudIns;
  14504. (0, _classCallCheck2.default)(this, $t);
  14505. this.clientType = "", this.secretType = e || qt, this.uniCloudIns = t;
  14506. var _this$uniCloudIns$con = this.uniCloudIns.config,
  14507. n = _this$uniCloudIns$con.provider,
  14508. s = _this$uniCloudIns$con.spaceId;
  14509. var r;
  14510. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", r.config.spaceId)));
  14511. }
  14512. (0, _createClass2.default)($t, [{
  14513. key: "getSystemInfo",
  14514. value: function getSystemInfo() {
  14515. return this._systemInfo || (this._systemInfo = ae()), this._systemInfo;
  14516. }
  14517. }, {
  14518. key: "appId",
  14519. get: function get() {
  14520. return this.getSystemInfo().appId;
  14521. }
  14522. }, {
  14523. key: "deviceId",
  14524. get: function get() {
  14525. return this.getSystemInfo().deviceId;
  14526. }
  14527. }, {
  14528. key: "encryptData",
  14529. value: function () {
  14530. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(e) {
  14531. return _regenerator.default.wrap(function _callee36$(_context36) {
  14532. while (1) {
  14533. switch (_context36.prev = _context36.next) {
  14534. case 0:
  14535. return _context36.abrupt("return", this.secretType === qt ? e : this.platformEncryptData(e));
  14536. case 1:
  14537. case "end":
  14538. return _context36.stop();
  14539. }
  14540. }
  14541. }, _callee36, this);
  14542. }));
  14543. function encryptData(_x33) {
  14544. return _encryptData.apply(this, arguments);
  14545. }
  14546. return encryptData;
  14547. }()
  14548. }, {
  14549. key: "decryptResult",
  14550. value: function () {
  14551. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(e) {
  14552. var _ref27, t, n;
  14553. return _regenerator.default.wrap(function _callee37$(_context37) {
  14554. while (1) {
  14555. switch (_context37.prev = _context37.next) {
  14556. case 0:
  14557. if (!(this.secretType === qt)) {
  14558. _context37.next = 2;
  14559. break;
  14560. }
  14561. return _context37.abrupt("return", e);
  14562. case 2:
  14563. _ref27 = e || {}, t = _ref27.errCode, n = _ref27.content;
  14564. return _context37.abrupt("return", t || !n ? e : this.secretType === Ft ? n : this.platformDecryptResult(e));
  14565. case 4:
  14566. case "end":
  14567. return _context37.stop();
  14568. }
  14569. }
  14570. }, _callee37, this);
  14571. }));
  14572. function decryptResult(_x34) {
  14573. return _decryptResult.apply(this, arguments);
  14574. }
  14575. return decryptResult;
  14576. }()
  14577. }, {
  14578. key: "wrapVerifyClientCallFunction",
  14579. value: function wrapVerifyClientCallFunction(e) {
  14580. var t = this;
  14581. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38() {
  14582. var _ref29,
  14583. n,
  14584. _ref29$data,
  14585. s,
  14586. r,
  14587. _args38 = arguments;
  14588. return _regenerator.default.wrap(function _callee38$(_context38) {
  14589. while (1) {
  14590. switch (_context38.prev = _context38.next) {
  14591. case 0:
  14592. _ref29 = _args38.length > 0 && _args38[0] !== undefined ? _args38[0] : {}, n = _ref29.name, _ref29$data = _ref29.data, s = _ref29$data === void 0 ? {} : _ref29$data;
  14593. _context38.next = 3;
  14594. return t.prepare();
  14595. case 3:
  14596. _context38.next = 5;
  14597. return t.platformGetSignOption();
  14598. case 5:
  14599. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context38.sent;
  14600. _context38.next = 8;
  14601. return e({
  14602. name: n,
  14603. data: s
  14604. });
  14605. case 8:
  14606. r = _context38.sent;
  14607. _context38.t0 = t.isClientKeyNotFound(r);
  14608. if (!_context38.t0) {
  14609. _context38.next = 19;
  14610. break;
  14611. }
  14612. _context38.next = 13;
  14613. return t.prepare({
  14614. forceUpdate: !0
  14615. });
  14616. case 13:
  14617. _context38.next = 15;
  14618. return t.platformGetSignOption();
  14619. case 15:
  14620. s._uniCloudOptions = _context38.sent;
  14621. _context38.next = 18;
  14622. return e({
  14623. name: n,
  14624. data: s
  14625. });
  14626. case 18:
  14627. r = _context38.sent;
  14628. case 19:
  14629. return _context38.abrupt("return", r);
  14630. case 20:
  14631. case "end":
  14632. return _context38.stop();
  14633. }
  14634. }
  14635. }, _callee38);
  14636. }));
  14637. }
  14638. }, {
  14639. key: "wrapEncryptDataCallFunction",
  14640. value: function wrapEncryptDataCallFunction(e) {
  14641. var t = this;
  14642. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39() {
  14643. var _ref31,
  14644. n,
  14645. _ref31$data,
  14646. s,
  14647. r,
  14648. i,
  14649. _r4,
  14650. _args39 = arguments;
  14651. return _regenerator.default.wrap(function _callee39$(_context39) {
  14652. while (1) {
  14653. switch (_context39.prev = _context39.next) {
  14654. case 0:
  14655. _ref31 = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {}, n = _ref31.name, _ref31$data = _ref31.data, s = _ref31$data === void 0 ? {} : _ref31$data;
  14656. _context39.next = 3;
  14657. return t.prepare();
  14658. case 3:
  14659. _context39.next = 5;
  14660. return t.encryptData(s);
  14661. case 5:
  14662. r = _context39.sent;
  14663. _context39.next = 8;
  14664. return e({
  14665. name: n,
  14666. data: r
  14667. });
  14668. case 8:
  14669. i = _context39.sent;
  14670. if (!t.isClientKeyNotFound(i)) {
  14671. _context39.next = 21;
  14672. break;
  14673. }
  14674. _context39.next = 12;
  14675. return t.prepare({
  14676. forceUpdate: !0
  14677. });
  14678. case 12:
  14679. _context39.next = 14;
  14680. return t.encryptData(s);
  14681. case 14:
  14682. _r4 = _context39.sent;
  14683. _context39.next = 17;
  14684. return t.platformGetSignOption();
  14685. case 17:
  14686. s._uniCloudOptions = _context39.sent;
  14687. _context39.next = 20;
  14688. return e({
  14689. name: n,
  14690. data: _r4
  14691. });
  14692. case 20:
  14693. i = _context39.sent;
  14694. case 21:
  14695. _context39.next = 23;
  14696. return t.decryptResult(i.result);
  14697. case 23:
  14698. i.result = _context39.sent;
  14699. return _context39.abrupt("return", i);
  14700. case 25:
  14701. case "end":
  14702. return _context39.stop();
  14703. }
  14704. }
  14705. }, _callee39);
  14706. }));
  14707. }
  14708. }]);
  14709. return $t;
  14710. }();
  14711. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  14712. function Bt(e) {
  14713. return parseInt(e) === e;
  14714. }
  14715. function Wt(e) {
  14716. if (!Bt(e.length)) return !1;
  14717. for (var t = 0; t < e.length; t++) {
  14718. if (!Bt(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  14719. }
  14720. return !0;
  14721. }
  14722. function Ht(e, t) {
  14723. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  14724. if (Array.isArray(e)) {
  14725. if (!Wt(e)) throw new Error("Array contains invalid value: " + e);
  14726. return new Uint8Array(e);
  14727. }
  14728. if (Bt(e.length) && Wt(e)) return new Uint8Array(e);
  14729. throw new Error("unsupported array-like object");
  14730. }
  14731. function zt(e) {
  14732. return new Uint8Array(e);
  14733. }
  14734. function Jt(e, t, n, s, r) {
  14735. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  14736. }
  14737. var Gt,
  14738. Vt = {
  14739. toBytes: function toBytes(e) {
  14740. var t = [],
  14741. n = 0;
  14742. for (e = encodeURI(e); n < e.length;) {
  14743. var s = e.charCodeAt(n++);
  14744. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  14745. }
  14746. return Ht(t);
  14747. },
  14748. fromBytes: function fromBytes(e) {
  14749. for (var t = [], n = 0; n < e.length;) {
  14750. var s = e[n];
  14751. 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);
  14752. }
  14753. return t.join("");
  14754. }
  14755. },
  14756. Yt = (Gt = "0123456789abcdef", {
  14757. toBytes: function toBytes(e) {
  14758. for (var t = [], n = 0; n < e.length; n += 2) {
  14759. t.push(parseInt(e.substr(n, 2), 16));
  14760. }
  14761. return t;
  14762. },
  14763. fromBytes: function fromBytes(e) {
  14764. for (var t = [], n = 0; n < e.length; n++) {
  14765. var s = e[n];
  14766. t.push(Gt[(240 & s) >> 4] + Gt[15 & s]);
  14767. }
  14768. return t.join("");
  14769. }
  14770. }),
  14771. Qt = {
  14772. 16: 10,
  14773. 24: 12,
  14774. 32: 14
  14775. },
  14776. Xt = [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],
  14777. Zt = [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],
  14778. en = [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],
  14779. tn = [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],
  14780. nn = [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],
  14781. sn = [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],
  14782. rn = [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],
  14783. on = [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],
  14784. an = [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],
  14785. cn = [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],
  14786. un = [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],
  14787. hn = [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],
  14788. ln = [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],
  14789. dn = [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],
  14790. pn = [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];
  14791. function fn(e) {
  14792. for (var t = [], n = 0; n < e.length; n += 4) {
  14793. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  14794. }
  14795. return t;
  14796. }
  14797. var gn = /*#__PURE__*/function () {
  14798. function gn(e) {
  14799. (0, _classCallCheck2.default)(this, gn);
  14800. if (!(this instanceof gn)) throw Error("AES must be instanitated with `new`");
  14801. Object.defineProperty(this, "key", {
  14802. value: Ht(e, !0)
  14803. }), this._prepare();
  14804. }
  14805. (0, _createClass2.default)(gn, [{
  14806. key: "_prepare",
  14807. value: function _prepare() {
  14808. var e = Qt[this.key.length];
  14809. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  14810. this._Ke = [], this._Kd = [];
  14811. for (var t = 0; t <= e; t++) {
  14812. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  14813. }
  14814. var n,
  14815. s = 4 * (e + 1),
  14816. r = this.key.length / 4,
  14817. i = fn(this.key);
  14818. for (t = 0; t < r; t++) {
  14819. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  14820. }
  14821. for (var o, a = 0, c = r; c < s;) {
  14822. if (o = i[r - 1], i[0] ^= Zt[o >> 16 & 255] << 24 ^ Zt[o >> 8 & 255] << 16 ^ Zt[255 & o] << 8 ^ Zt[o >> 24 & 255] ^ Xt[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  14823. i[t] ^= i[t - 1];
  14824. } else {
  14825. for (t = 1; t < r / 2; t++) {
  14826. i[t] ^= i[t - 1];
  14827. }
  14828. o = i[r / 2 - 1], i[r / 2] ^= Zt[255 & o] ^ Zt[o >> 8 & 255] << 8 ^ Zt[o >> 16 & 255] << 16 ^ Zt[o >> 24 & 255] << 24;
  14829. for (t = r / 2 + 1; t < r; t++) {
  14830. i[t] ^= i[t - 1];
  14831. }
  14832. }
  14833. for (t = 0; t < r && c < s;) {
  14834. u = c >> 2, h = c % 4, this._Ke[u][h] = i[t], this._Kd[e - u][h] = i[t++], c++;
  14835. }
  14836. }
  14837. for (var u = 1; u < e; u++) {
  14838. for (var h = 0; h < 4; h++) {
  14839. o = this._Kd[u][h], this._Kd[u][h] = hn[o >> 24 & 255] ^ ln[o >> 16 & 255] ^ dn[o >> 8 & 255] ^ pn[255 & o];
  14840. }
  14841. }
  14842. }
  14843. }, {
  14844. key: "encrypt",
  14845. value: function encrypt(e) {
  14846. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  14847. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = fn(e), r = 0; r < 4; r++) {
  14848. s[r] ^= this._Ke[0][r];
  14849. }
  14850. for (var i = 1; i < t; i++) {
  14851. for (r = 0; r < 4; r++) {
  14852. n[r] = tn[s[r] >> 24 & 255] ^ nn[s[(r + 1) % 4] >> 16 & 255] ^ sn[s[(r + 2) % 4] >> 8 & 255] ^ rn[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  14853. }
  14854. s = n.slice();
  14855. }
  14856. var o,
  14857. a = zt(16);
  14858. for (r = 0; r < 4; r++) {
  14859. o = this._Ke[t][r], a[4 * r] = 255 & (Zt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Zt[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Zt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Zt[255 & s[(r + 3) % 4]] ^ o);
  14860. }
  14861. return a;
  14862. }
  14863. }, {
  14864. key: "decrypt",
  14865. value: function decrypt(e) {
  14866. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  14867. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = fn(e), r = 0; r < 4; r++) {
  14868. s[r] ^= this._Kd[0][r];
  14869. }
  14870. for (var i = 1; i < t; i++) {
  14871. for (r = 0; r < 4; r++) {
  14872. n[r] = on[s[r] >> 24 & 255] ^ an[s[(r + 3) % 4] >> 16 & 255] ^ cn[s[(r + 2) % 4] >> 8 & 255] ^ un[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  14873. }
  14874. s = n.slice();
  14875. }
  14876. var o,
  14877. a = zt(16);
  14878. for (r = 0; r < 4; r++) {
  14879. o = this._Kd[t][r], a[4 * r] = 255 & (en[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (en[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (en[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (en[255 & s[(r + 1) % 4]] ^ o);
  14880. }
  14881. return a;
  14882. }
  14883. }]);
  14884. return gn;
  14885. }();
  14886. var mn = /*#__PURE__*/function () {
  14887. function mn(e) {
  14888. (0, _classCallCheck2.default)(this, mn);
  14889. if (!(this instanceof mn)) throw Error("AES must be instanitated with `new`");
  14890. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new gn(e);
  14891. }
  14892. (0, _createClass2.default)(mn, [{
  14893. key: "encrypt",
  14894. value: function encrypt(e) {
  14895. if ((e = Ht(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  14896. for (var t = zt(e.length), n = zt(16), s = 0; s < e.length; s += 16) {
  14897. Jt(e, n, 0, s, s + 16), Jt(n = this._aes.encrypt(n), t, s);
  14898. }
  14899. return t;
  14900. }
  14901. }, {
  14902. key: "decrypt",
  14903. value: function decrypt(e) {
  14904. if ((e = Ht(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  14905. for (var t = zt(e.length), n = zt(16), s = 0; s < e.length; s += 16) {
  14906. Jt(e, n, 0, s, s + 16), Jt(n = this._aes.decrypt(n), t, s);
  14907. }
  14908. return t;
  14909. }
  14910. }]);
  14911. return mn;
  14912. }();
  14913. var yn = /*#__PURE__*/function () {
  14914. function yn(e, t) {
  14915. (0, _classCallCheck2.default)(this, yn);
  14916. if (!(this instanceof yn)) throw Error("AES must be instanitated with `new`");
  14917. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  14918. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  14919. } else t = zt(16);
  14920. this._lastCipherblock = Ht(t, !0), this._aes = new gn(e);
  14921. }
  14922. (0, _createClass2.default)(yn, [{
  14923. key: "encrypt",
  14924. value: function encrypt(e) {
  14925. if ((e = Ht(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  14926. for (var t = zt(e.length), n = zt(16), s = 0; s < e.length; s += 16) {
  14927. Jt(e, n, 0, s, s + 16);
  14928. for (var r = 0; r < 16; r++) {
  14929. n[r] ^= this._lastCipherblock[r];
  14930. }
  14931. this._lastCipherblock = this._aes.encrypt(n), Jt(this._lastCipherblock, t, s);
  14932. }
  14933. return t;
  14934. }
  14935. }, {
  14936. key: "decrypt",
  14937. value: function decrypt(e) {
  14938. if ((e = Ht(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  14939. for (var t = zt(e.length), n = zt(16), s = 0; s < e.length; s += 16) {
  14940. Jt(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  14941. for (var r = 0; r < 16; r++) {
  14942. t[s + r] = n[r] ^ this._lastCipherblock[r];
  14943. }
  14944. Jt(e, this._lastCipherblock, 0, s, s + 16);
  14945. }
  14946. return t;
  14947. }
  14948. }]);
  14949. return yn;
  14950. }();
  14951. var _n = /*#__PURE__*/function () {
  14952. function _n(e, t, n) {
  14953. (0, _classCallCheck2.default)(this, _n);
  14954. if (!(this instanceof _n)) throw Error("AES must be instanitated with `new`");
  14955. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  14956. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  14957. } else t = zt(16);
  14958. n || (n = 1), this.segmentSize = n, this._shiftRegister = Ht(t, !0), this._aes = new gn(e);
  14959. }
  14960. (0, _createClass2.default)(_n, [{
  14961. key: "encrypt",
  14962. value: function encrypt(e) {
  14963. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  14964. for (var t, n = Ht(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  14965. t = this._aes.encrypt(this._shiftRegister);
  14966. for (var r = 0; r < this.segmentSize; r++) {
  14967. n[s + r] ^= t[r];
  14968. }
  14969. Jt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Jt(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  14970. }
  14971. return n;
  14972. }
  14973. }, {
  14974. key: "decrypt",
  14975. value: function decrypt(e) {
  14976. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  14977. for (var t, n = Ht(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  14978. t = this._aes.encrypt(this._shiftRegister);
  14979. for (var r = 0; r < this.segmentSize; r++) {
  14980. n[s + r] ^= t[r];
  14981. }
  14982. Jt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Jt(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  14983. }
  14984. return n;
  14985. }
  14986. }]);
  14987. return _n;
  14988. }();
  14989. var wn = /*#__PURE__*/function () {
  14990. function wn(e, t) {
  14991. (0, _classCallCheck2.default)(this, wn);
  14992. if (!(this instanceof wn)) throw Error("AES must be instanitated with `new`");
  14993. if (this.description = "Output Feedback", this.name = "ofb", t) {
  14994. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  14995. } else t = zt(16);
  14996. this._lastPrecipher = Ht(t, !0), this._lastPrecipherIndex = 16, this._aes = new gn(e);
  14997. }
  14998. (0, _createClass2.default)(wn, [{
  14999. key: "encrypt",
  15000. value: function encrypt(e) {
  15001. for (var t = Ht(e, !0), n = 0; n < t.length; n++) {
  15002. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  15003. }
  15004. return t;
  15005. }
  15006. }, {
  15007. key: "decrypt",
  15008. value: function decrypt(e) {
  15009. return this.encrypt(e);
  15010. }
  15011. }]);
  15012. return wn;
  15013. }();
  15014. var vn = /*#__PURE__*/function () {
  15015. function vn(e) {
  15016. (0, _classCallCheck2.default)(this, vn);
  15017. if (!(this instanceof vn)) throw Error("Counter must be instanitated with `new`");
  15018. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = zt(16), this.setValue(e)) : this.setBytes(e);
  15019. }
  15020. (0, _createClass2.default)(vn, [{
  15021. key: "setValue",
  15022. value: function setValue(e) {
  15023. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  15024. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  15025. for (var t = 15; t >= 0; --t) {
  15026. this._counter[t] = e % 256, e = parseInt(e / 256);
  15027. }
  15028. }
  15029. }, {
  15030. key: "setBytes",
  15031. value: function setBytes(e) {
  15032. if (16 != (e = Ht(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  15033. this._counter = e;
  15034. }
  15035. }, {
  15036. key: "increment",
  15037. value: function increment() {
  15038. for (var e = 15; e >= 0; e--) {
  15039. if (255 !== this._counter[e]) {
  15040. this._counter[e]++;
  15041. break;
  15042. }
  15043. this._counter[e] = 0;
  15044. }
  15045. }
  15046. }]);
  15047. return vn;
  15048. }();
  15049. var In = /*#__PURE__*/function () {
  15050. function In(e, t) {
  15051. (0, _classCallCheck2.default)(this, In);
  15052. if (!(this instanceof In)) throw Error("AES must be instanitated with `new`");
  15053. this.description = "Counter", this.name = "ctr", t instanceof vn || (t = new vn(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new gn(e);
  15054. }
  15055. (0, _createClass2.default)(In, [{
  15056. key: "encrypt",
  15057. value: function encrypt(e) {
  15058. for (var t = Ht(e, !0), n = 0; n < t.length; n++) {
  15059. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  15060. }
  15061. return t;
  15062. }
  15063. }, {
  15064. key: "decrypt",
  15065. value: function decrypt(e) {
  15066. return this.encrypt(e);
  15067. }
  15068. }]);
  15069. return In;
  15070. }();
  15071. var Sn = {
  15072. AES: gn,
  15073. Counter: vn,
  15074. ModeOfOperation: {
  15075. ecb: mn,
  15076. cbc: yn,
  15077. cfb: _n,
  15078. ofb: wn,
  15079. ctr: In
  15080. },
  15081. utils: {
  15082. hex: Yt,
  15083. utf8: Vt
  15084. },
  15085. padding: {
  15086. pkcs7: {
  15087. pad: function pad(e) {
  15088. var t = 16 - (e = Ht(e, !0)).length % 16,
  15089. n = zt(e.length + t);
  15090. Jt(e, n);
  15091. for (var s = e.length; s < n.length; s++) {
  15092. n[s] = t;
  15093. }
  15094. return n;
  15095. },
  15096. strip: function strip(e) {
  15097. if ((e = Ht(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  15098. var t = e[e.length - 1];
  15099. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  15100. for (var n = e.length - t, s = 0; s < t; s++) {
  15101. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  15102. }
  15103. var r = zt(n);
  15104. return Jt(e, r, 0, 0, n), r;
  15105. }
  15106. }
  15107. },
  15108. _arrayTest: {
  15109. coerceArray: Ht,
  15110. createArray: zt,
  15111. copyArray: Jt
  15112. }
  15113. };
  15114. function bn(e, t, n) {
  15115. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  15116. r = Sn.utils.utf8.toBytes(n),
  15117. i = Sn.utils.utf8.toBytes(e),
  15118. o = new Sn.ModeOfOperation.cbc(s, r),
  15119. a = Sn.padding.pkcs7.pad(i),
  15120. c = o.encrypt(a);
  15121. return uni.arrayBufferToBase64(c);
  15122. }
  15123. var kn = {
  15124. code: 2e4,
  15125. message: "System error"
  15126. },
  15127. An = {
  15128. code: 20101,
  15129. message: "Invalid client"
  15130. },
  15131. Pn = {
  15132. code: 20102,
  15133. message: "Get encrypt key failed"
  15134. },
  15135. Tn = {
  15136. 10001: "Secure network is not supported on current playground or unimpsdk",
  15137. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  15138. 10009: "Encrypt payload failed",
  15139. 10010: "Decrypt response failed"
  15140. };
  15141. function Cn(e) {
  15142. var _ref32 = e || {},
  15143. t = _ref32.errSubject,
  15144. n = _ref32.subject,
  15145. s = _ref32.errCode,
  15146. r = _ref32.errMsg,
  15147. i = _ref32.code,
  15148. o = _ref32.message,
  15149. a = _ref32.cause;
  15150. return new te({
  15151. subject: t || n || "uni-secure-network",
  15152. code: s || i || kn.code,
  15153. message: r || o,
  15154. cause: a
  15155. });
  15156. }
  15157. var xn,
  15158. On,
  15159. En = null;
  15160. var Ln = /*#__PURE__*/function (_$t) {
  15161. (0, _inherits2.default)(Ln, _$t);
  15162. var _super9 = _createSuper(Ln);
  15163. function Ln(e) {
  15164. var _this15;
  15165. (0, _classCallCheck2.default)(this, Ln);
  15166. _this15 = _super9.call(this, e), _this15.clientType = "mp-weixin", _this15.userEncryptKey = null;
  15167. return _this15;
  15168. }
  15169. (0, _createClass2.default)(Ln, [{
  15170. key: "isLogin",
  15171. value: function isLogin() {
  15172. return !!this.scopedGlobalCache.mpWeixinCode || !!this.scopedGlobalCache.mpWeixinOpenid;
  15173. }
  15174. }, {
  15175. key: "prepare",
  15176. value: function () {
  15177. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40() {
  15178. return _regenerator.default.wrap(function _callee40$(_context40) {
  15179. while (1) {
  15180. switch (_context40.prev = _context40.next) {
  15181. case 0:
  15182. if (this.isLogin()) {
  15183. _context40.next = 7;
  15184. break;
  15185. }
  15186. if (this.scopedGlobalCache.initPromise) {
  15187. _context40.next = 3;
  15188. break;
  15189. }
  15190. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  15191. case 3:
  15192. _context40.next = 5;
  15193. return this.scopedGlobalCache.initPromise;
  15194. case 5:
  15195. if (this.isLogin()) {
  15196. _context40.next = 7;
  15197. break;
  15198. }
  15199. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  15200. case 7:
  15201. case "end":
  15202. return _context40.stop();
  15203. }
  15204. }
  15205. }, _callee40, this);
  15206. }));
  15207. function prepare() {
  15208. return _prepare2.apply(this, arguments);
  15209. }
  15210. return prepare;
  15211. }()
  15212. }, {
  15213. key: "getUserEncryptKey",
  15214. value: function () {
  15215. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41() {
  15216. var _this16 = this;
  15217. var e;
  15218. return _regenerator.default.wrap(function _callee41$(_context41) {
  15219. while (1) {
  15220. switch (_context41.prev = _context41.next) {
  15221. case 0:
  15222. if (!this.userEncryptKey) {
  15223. _context41.next = 2;
  15224. break;
  15225. }
  15226. return _context41.abrupt("return", this.userEncryptKey);
  15227. case 2:
  15228. if (!(En && En.expireTime)) {
  15229. _context41.next = 6;
  15230. break;
  15231. }
  15232. e = Date.now();
  15233. if (!(En.expireTime - e > 0)) {
  15234. _context41.next = 6;
  15235. break;
  15236. }
  15237. return _context41.abrupt("return", (this.userEncryptKey = En, this.userEncryptKey));
  15238. case 6:
  15239. return _context41.abrupt("return", new Promise(function (e, t) {
  15240. uni.getUserCryptoManager().getLatestUserKey({
  15241. success: function success(t) {
  15242. En = t, _this16.userEncryptKey = t, e(_this16.userEncryptKey);
  15243. },
  15244. fail: function fail(e) {
  15245. t(Cn(_objectSpread(_objectSpread({}, Pn), {}, {
  15246. cause: e
  15247. })));
  15248. }
  15249. });
  15250. }));
  15251. case 7:
  15252. case "end":
  15253. return _context41.stop();
  15254. }
  15255. }
  15256. }, _callee41, this);
  15257. }));
  15258. function getUserEncryptKey() {
  15259. return _getUserEncryptKey.apply(this, arguments);
  15260. }
  15261. return getUserEncryptKey;
  15262. }()
  15263. }, {
  15264. key: "getWxAppId",
  15265. value: function getWxAppId() {
  15266. return wx.getAccountInfoSync().miniProgram.appId;
  15267. }
  15268. }, {
  15269. key: "platformGetSignOption",
  15270. value: function () {
  15271. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
  15272. var _yield$this$getUserEn, e, t, n;
  15273. return _regenerator.default.wrap(function _callee42$(_context42) {
  15274. while (1) {
  15275. switch (_context42.prev = _context42.next) {
  15276. case 0:
  15277. _context42.next = 2;
  15278. return this.getUserEncryptKey();
  15279. case 2:
  15280. _yield$this$getUserEn = _context42.sent;
  15281. e = _yield$this$getUserEn.encryptKey;
  15282. t = _yield$this$getUserEn.iv;
  15283. n = _yield$this$getUserEn.version;
  15284. return _context42.abrupt("return", {
  15285. verifyClientSign: bn(JSON.stringify({
  15286. data: JSON.stringify({}),
  15287. appId: this.appId,
  15288. deviceId: this.deviceId,
  15289. wxAppId: this.getWxAppId(),
  15290. simulator: "devtools" === ae().platform,
  15291. timestamp: Date.now()
  15292. }), e, t),
  15293. encryptKeyId: n,
  15294. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  15295. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  15296. });
  15297. case 7:
  15298. case "end":
  15299. return _context42.stop();
  15300. }
  15301. }
  15302. }, _callee42, this);
  15303. }));
  15304. function platformGetSignOption() {
  15305. return _platformGetSignOption.apply(this, arguments);
  15306. }
  15307. return platformGetSignOption;
  15308. }()
  15309. }, {
  15310. key: "platformEncryptData",
  15311. value: function () {
  15312. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43(e) {
  15313. var _yield$this$getUserEn2, t, n, s, r;
  15314. return _regenerator.default.wrap(function _callee43$(_context43) {
  15315. while (1) {
  15316. switch (_context43.prev = _context43.next) {
  15317. case 0:
  15318. _context43.next = 2;
  15319. return this.getUserEncryptKey();
  15320. case 2:
  15321. _yield$this$getUserEn2 = _context43.sent;
  15322. t = _yield$this$getUserEn2.encryptKey;
  15323. n = _yield$this$getUserEn2.iv;
  15324. s = _yield$this$getUserEn2.version;
  15325. r = {
  15326. secretType: this.secretType,
  15327. encryptKeyId: s,
  15328. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  15329. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  15330. };
  15331. return _context43.abrupt("return", this.secretType === Kt ? {
  15332. content: e,
  15333. _uniCloudOptions: r
  15334. } : {
  15335. content: bn(JSON.stringify({
  15336. data: JSON.stringify(e),
  15337. appId: this.appId,
  15338. deviceId: this.deviceId,
  15339. wxAppId: this.getWxAppId(),
  15340. simulator: "devtools" === ae().platform,
  15341. timestamp: Date.now()
  15342. }), t, n),
  15343. _uniCloudOptions: r
  15344. });
  15345. case 8:
  15346. case "end":
  15347. return _context43.stop();
  15348. }
  15349. }
  15350. }, _callee43, this);
  15351. }));
  15352. function platformEncryptData(_x35) {
  15353. return _platformEncryptData.apply(this, arguments);
  15354. }
  15355. return platformEncryptData;
  15356. }()
  15357. }, {
  15358. key: "platformDecryptResult",
  15359. value: function () {
  15360. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44(e) {
  15361. var t, _yield$this$getUserEn3, n, s;
  15362. return _regenerator.default.wrap(function _callee44$(_context44) {
  15363. while (1) {
  15364. switch (_context44.prev = _context44.next) {
  15365. case 0:
  15366. t = e.content;
  15367. _context44.next = 3;
  15368. return this.getUserEncryptKey();
  15369. case 3:
  15370. _yield$this$getUserEn3 = _context44.sent;
  15371. n = _yield$this$getUserEn3.encryptKey;
  15372. s = _yield$this$getUserEn3.iv;
  15373. return _context44.abrupt("return", JSON.parse(function (e, t, n) {
  15374. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  15375. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  15376. i = Sn.utils.utf8.toBytes(n),
  15377. o = new Sn.ModeOfOperation.cbc(r, i),
  15378. a = Sn.padding.pkcs7.strip(o.decrypt(s));
  15379. return Sn.utils.utf8.fromBytes(a);
  15380. }(t, n, s)));
  15381. case 7:
  15382. case "end":
  15383. return _context44.stop();
  15384. }
  15385. }
  15386. }, _callee44, this);
  15387. }));
  15388. function platformDecryptResult(_x36) {
  15389. return _platformDecryptResult.apply(this, arguments);
  15390. }
  15391. return platformDecryptResult;
  15392. }()
  15393. }, {
  15394. key: "isClientKeyNotFound",
  15395. value: function isClientKeyNotFound() {
  15396. return !1;
  15397. }
  15398. }]);
  15399. return Ln;
  15400. }($t);
  15401. function Rn(e) {
  15402. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  15403. n = {};
  15404. var _loop = function _loop(_s11) {
  15405. var r = t[_s11];
  15406. n[r] = function () {
  15407. for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
  15408. t[_key] = arguments[_key];
  15409. }
  15410. return new Promise(function (n, s) {
  15411. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  15412. var _ref33 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15413. e = _ref33.type,
  15414. t = _ref33.data,
  15415. r = _ref33.errCode,
  15416. i = _ref33.errMsg,
  15417. o = _ref33.errSubject,
  15418. a = _ref33.message;
  15419. "success" === e ? n(t) : s(Cn({
  15420. errCode: r,
  15421. errMsg: Tn[r] || i || a,
  15422. errSubject: o
  15423. }));
  15424. }])) : s(Cn({
  15425. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  15426. }));
  15427. });
  15428. };
  15429. };
  15430. for (var _s11 = 0; _s11 < t.length; _s11++) {
  15431. _loop(_s11);
  15432. }
  15433. return n;
  15434. }
  15435. var Un = /*#__PURE__*/function (_$t2) {
  15436. (0, _inherits2.default)(Un, _$t2);
  15437. var _super10 = _createSuper(Un);
  15438. function Un(e) {
  15439. var _this17;
  15440. (0, _classCallCheck2.default)(this, Un);
  15441. _this17 = _super10.call(this, e), _this17.clientType = "app", _this17.appUtils = _objectSpread({}, Rn(uni.requireNativePlugin("plus"))), _this17.systemInfo = xn || (xn = ae());
  15442. return _this17;
  15443. }
  15444. (0, _createClass2.default)(Un, [{
  15445. key: "hasClientKey",
  15446. value: function () {
  15447. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45() {
  15448. return _regenerator.default.wrap(function _callee45$(_context45) {
  15449. while (1) {
  15450. switch (_context45.prev = _context45.next) {
  15451. case 0:
  15452. _context45.next = 2;
  15453. return this.appUtils.hasClientKey({
  15454. provider: this.provider,
  15455. spaceId: this.spaceId
  15456. });
  15457. case 2:
  15458. this._hasClientKey = _context45.sent;
  15459. return _context45.abrupt("return", this._hasClientKey);
  15460. case 4:
  15461. case "end":
  15462. return _context45.stop();
  15463. }
  15464. }
  15465. }, _callee45, this);
  15466. }));
  15467. function hasClientKey() {
  15468. return _hasClientKey.apply(this, arguments);
  15469. }
  15470. return hasClientKey;
  15471. }()
  15472. }, {
  15473. key: "getAppClientKey",
  15474. value: function () {
  15475. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46() {
  15476. var _yield$this$appUtils$, e, t, n, s, r;
  15477. return _regenerator.default.wrap(function _callee46$(_context46) {
  15478. while (1) {
  15479. switch (_context46.prev = _context46.next) {
  15480. case 0:
  15481. _context46.next = 2;
  15482. return this.appUtils.encryptGetClientKeyPayload({
  15483. data: JSON.stringify({})
  15484. });
  15485. case 2:
  15486. _yield$this$appUtils$ = _context46.sent;
  15487. e = _yield$this$appUtils$.data;
  15488. t = _yield$this$appUtils$.key;
  15489. _context46.next = 7;
  15490. return this.uniCloudIns.callFunction({
  15491. name: "DCloud-clientDB",
  15492. data: {
  15493. redirectTo: "encryption",
  15494. action: "getAppClientKey",
  15495. data: e,
  15496. key: t
  15497. }
  15498. });
  15499. case 7:
  15500. _context46.t0 = _context46.sent.result;
  15501. if (_context46.t0) {
  15502. _context46.next = 10;
  15503. break;
  15504. }
  15505. _context46.t0 = {};
  15506. case 10:
  15507. n = _context46.t0;
  15508. if (!(0 !== n.errCode)) {
  15509. _context46.next = 13;
  15510. break;
  15511. }
  15512. throw function (e) {
  15513. return new te({
  15514. subject: e.errSubject || "uni-secure-network",
  15515. code: e.errCode || e.code || kn.code,
  15516. message: e.errMsg || e.message
  15517. });
  15518. }(n);
  15519. case 13:
  15520. s = n.clientKey, r = n.key;
  15521. _context46.next = 16;
  15522. return this.appUtils.setClientKey({
  15523. provider: this.provider,
  15524. spaceId: this.spaceId,
  15525. clientKey: s,
  15526. key: r
  15527. });
  15528. case 16:
  15529. case "end":
  15530. return _context46.stop();
  15531. }
  15532. }
  15533. }, _callee46, this);
  15534. }));
  15535. function getAppClientKey() {
  15536. return _getAppClientKey.apply(this, arguments);
  15537. }
  15538. return getAppClientKey;
  15539. }()
  15540. }, {
  15541. key: "ensureClientKey",
  15542. value: function () {
  15543. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47() {
  15544. var _this18 = this;
  15545. var _ref34,
  15546. _ref34$forceUpdate,
  15547. e,
  15548. _args47 = arguments;
  15549. return _regenerator.default.wrap(function _callee47$(_context47) {
  15550. while (1) {
  15551. switch (_context47.prev = _context47.next) {
  15552. case 0:
  15553. _ref34 = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {}, _ref34$forceUpdate = _ref34.forceUpdate, e = _ref34$forceUpdate === void 0 ? !1 : _ref34$forceUpdate;
  15554. _context47.t1 = !0;
  15555. _context47.next = 4;
  15556. return this.hasClientKey();
  15557. case 4:
  15558. _context47.t2 = _context47.sent;
  15559. _context47.t0 = _context47.t1 !== _context47.t2;
  15560. if (_context47.t0) {
  15561. _context47.next = 8;
  15562. break;
  15563. }
  15564. _context47.t0 = e;
  15565. case 8:
  15566. if (!_context47.t0) {
  15567. _context47.next = 10;
  15568. break;
  15569. }
  15570. return _context47.abrupt("return", (e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus === l || !e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus !== p || (this.scopedGlobalCache.initPromise = this.getAppClientKey(), this.scopedGlobalCache.initPromise.then(function (e) {
  15571. _this18.scopedGlobalCache.initStatus = d;
  15572. }).catch(function (e) {
  15573. throw _this18.scopedGlobalCache.initStatus = p, e;
  15574. }), this.scopedGlobalCache.initStatus = l), this.scopedGlobalCache.initPromise));
  15575. case 10:
  15576. case "end":
  15577. return _context47.stop();
  15578. }
  15579. }
  15580. }, _callee47, this);
  15581. }));
  15582. function ensureClientKey() {
  15583. return _ensureClientKey.apply(this, arguments);
  15584. }
  15585. return ensureClientKey;
  15586. }()
  15587. }, {
  15588. key: "prepare",
  15589. value: function () {
  15590. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48() {
  15591. var _ref35,
  15592. _ref35$forceUpdate,
  15593. e,
  15594. _args48 = arguments;
  15595. return _regenerator.default.wrap(function _callee48$(_context48) {
  15596. while (1) {
  15597. switch (_context48.prev = _context48.next) {
  15598. case 0:
  15599. _ref35 = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {}, _ref35$forceUpdate = _ref35.forceUpdate, e = _ref35$forceUpdate === void 0 ? !1 : _ref35$forceUpdate;
  15600. _context48.next = 3;
  15601. return this.ensureClientKey({
  15602. forceUpdate: e
  15603. });
  15604. case 3:
  15605. case "end":
  15606. return _context48.stop();
  15607. }
  15608. }
  15609. }, _callee48, this);
  15610. }));
  15611. function prepare() {
  15612. return _prepare3.apply(this, arguments);
  15613. }
  15614. return prepare;
  15615. }()
  15616. }, {
  15617. key: "platformGetSignOption",
  15618. value: function () {
  15619. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49() {
  15620. var _yield$this$appUtils$2, e, t;
  15621. return _regenerator.default.wrap(function _callee49$(_context49) {
  15622. while (1) {
  15623. switch (_context49.prev = _context49.next) {
  15624. case 0:
  15625. _context49.next = 2;
  15626. return this.appUtils.encrypt({
  15627. provider: this.provider,
  15628. spaceId: this.spaceId,
  15629. data: JSON.stringify({})
  15630. });
  15631. case 2:
  15632. _yield$this$appUtils$2 = _context49.sent;
  15633. e = _yield$this$appUtils$2.data;
  15634. t = _yield$this$appUtils$2.key;
  15635. return _context49.abrupt("return", {
  15636. verifyClientSign: e,
  15637. encryptKeyId: t
  15638. });
  15639. case 6:
  15640. case "end":
  15641. return _context49.stop();
  15642. }
  15643. }
  15644. }, _callee49, this);
  15645. }));
  15646. function platformGetSignOption() {
  15647. return _platformGetSignOption2.apply(this, arguments);
  15648. }
  15649. return platformGetSignOption;
  15650. }()
  15651. }, {
  15652. key: "platformEncryptData",
  15653. value: function () {
  15654. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50(e) {
  15655. var _yield$this$appUtils$3, t, n, s;
  15656. return _regenerator.default.wrap(function _callee50$(_context50) {
  15657. while (1) {
  15658. switch (_context50.prev = _context50.next) {
  15659. case 0:
  15660. _context50.next = 2;
  15661. return this.appUtils.encrypt({
  15662. provider: this.provider,
  15663. spaceId: this.spaceId,
  15664. data: JSON.stringify(e)
  15665. });
  15666. case 2:
  15667. _yield$this$appUtils$3 = _context50.sent;
  15668. t = _yield$this$appUtils$3.data;
  15669. n = _yield$this$appUtils$3.key;
  15670. s = {
  15671. secretType: this.secretType,
  15672. encryptKeyId: n
  15673. };
  15674. return _context50.abrupt("return", this.secretType === Kt ? {
  15675. content: e,
  15676. _uniCloudOptions: s
  15677. } : {
  15678. content: t,
  15679. _uniCloudOptions: s
  15680. });
  15681. case 7:
  15682. case "end":
  15683. return _context50.stop();
  15684. }
  15685. }
  15686. }, _callee50, this);
  15687. }));
  15688. function platformEncryptData(_x37) {
  15689. return _platformEncryptData2.apply(this, arguments);
  15690. }
  15691. return platformEncryptData;
  15692. }()
  15693. }, {
  15694. key: "platformDecryptResult",
  15695. value: function () {
  15696. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51(e) {
  15697. var t, _e$_uniCloudOptions, n, s, r;
  15698. return _regenerator.default.wrap(function _callee51$(_context51) {
  15699. while (1) {
  15700. switch (_context51.prev = _context51.next) {
  15701. case 0:
  15702. t = e.content;
  15703. _e$_uniCloudOptions = e._uniCloudOptions;
  15704. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  15705. s = n.encryptKeyId;
  15706. _context51.next = 6;
  15707. return this.appUtils.decrypt({
  15708. provider: this.provider,
  15709. spaceId: this.spaceId,
  15710. data: t,
  15711. key: s
  15712. });
  15713. case 6:
  15714. r = _context51.sent;
  15715. return _context51.abrupt("return", JSON.parse(r.data));
  15716. case 8:
  15717. case "end":
  15718. return _context51.stop();
  15719. }
  15720. }
  15721. }, _callee51, this);
  15722. }));
  15723. function platformDecryptResult(_x38) {
  15724. return _platformDecryptResult2.apply(this, arguments);
  15725. }
  15726. return platformDecryptResult;
  15727. }()
  15728. }, {
  15729. key: "isClientKeyNotFound",
  15730. value: function isClientKeyNotFound() {
  15731. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15732. var t = e.result || {};
  15733. return 70009 === t.errCode && "uni-secure-network" === t.errSubject;
  15734. }
  15735. }]);
  15736. return Un;
  15737. }($t);
  15738. function Nn() {
  15739. var _ref36 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15740. e = _ref36.secretType;
  15741. return e === Ft || e === Kt || e === jt;
  15742. }
  15743. function Dn() {
  15744. var _ref37 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15745. e = _ref37.name,
  15746. _ref37$data = _ref37.data,
  15747. t = _ref37$data === void 0 ? {} : _ref37$data;
  15748. return "app" === P && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  15749. }
  15750. function Mn() {
  15751. var _ref38 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15752. e = _ref38.provider,
  15753. t = _ref38.spaceId,
  15754. n = _ref38.functionName;
  15755. var _ae = ae(),
  15756. s = _ae.appId,
  15757. r = _ae.uniPlatform,
  15758. i = _ae.osName;
  15759. var o = r;
  15760. "app" === r && (o = i);
  15761. var a = function () {
  15762. var _ref39 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15763. e = _ref39.provider,
  15764. t = _ref39.spaceId;
  15765. var n = A;
  15766. if (!n) return {};
  15767. e = function (e) {
  15768. return "tencent" === e ? "tcb" : e;
  15769. }(e);
  15770. var s = n.find(function (n) {
  15771. return n.provider === e && n.spaceId === t;
  15772. });
  15773. return s && s.config;
  15774. }({
  15775. provider: e,
  15776. spaceId: t
  15777. });
  15778. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  15779. var c = a.accessControl.function || {},
  15780. u = Object.keys(c);
  15781. if (0 === u.length) return !0;
  15782. var h = function (e, t) {
  15783. var n, s, r;
  15784. for (var _i2 = 0; _i2 < e.length; _i2++) {
  15785. var _o2 = e[_i2];
  15786. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  15787. return e.trim();
  15788. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  15789. }
  15790. return n || s || r;
  15791. }(u, n);
  15792. if (!h) return !1;
  15793. if ((c[h] || []).find(function () {
  15794. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15795. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  15796. })) return !0;
  15797. 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")), Cn(An);
  15798. }
  15799. function qn(_ref40) {
  15800. var e = _ref40.functionName,
  15801. t = _ref40.result,
  15802. n = _ref40.logPvd;
  15803. if (S && this.__dev__.debugLog && t && t.requestId) {
  15804. var _s12 = JSON.stringify({
  15805. spaceId: this.config.spaceId,
  15806. functionName: e,
  15807. requestId: t.requestId
  15808. });
  15809. console.log("[".concat(n, "-request]").concat(_s12, "[/").concat(n, "-request]"));
  15810. }
  15811. }
  15812. function Fn(e) {
  15813. var t = e.callFunction,
  15814. n = function n(_n8) {
  15815. var _this19 = this;
  15816. var s = _n8.name;
  15817. _n8.data = Lt.call(e, {
  15818. data: _n8.data
  15819. });
  15820. var r = {
  15821. aliyun: "aliyun",
  15822. tencent: "tcb",
  15823. tcb: "tcb",
  15824. alipay: "alipay"
  15825. }[this.config.provider],
  15826. i = Nn(_n8),
  15827. o = Dn(_n8),
  15828. a = i || o;
  15829. return t.call(this, _n8).then(function (e) {
  15830. return e.errCode = 0, !a && qn.call(_this19, {
  15831. functionName: s,
  15832. result: e,
  15833. logPvd: r
  15834. }), Promise.resolve(e);
  15835. }, function (e) {
  15836. return !a && qn.call(_this19, {
  15837. functionName: s,
  15838. result: e,
  15839. logPvd: r
  15840. }), e && e.message && (e.message = function () {
  15841. var _ref41 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15842. _ref41$message = _ref41.message,
  15843. e = _ref41$message === void 0 ? "" : _ref41$message,
  15844. _ref41$extraInfo = _ref41.extraInfo,
  15845. t = _ref41$extraInfo === void 0 ? {} : _ref41$extraInfo,
  15846. _ref41$formatter = _ref41.formatter,
  15847. n = _ref41$formatter === void 0 ? [] : _ref41$formatter;
  15848. for (var _s13 = 0; _s13 < n.length; _s13++) {
  15849. var _n$_s = n[_s13],
  15850. _r5 = _n$_s.rule,
  15851. _i3 = _n$_s.content,
  15852. _o3 = _n$_s.mode,
  15853. _a = e.match(_r5);
  15854. if (!_a) continue;
  15855. var _c = _i3;
  15856. for (var _e19 = 1; _e19 < _a.length; _e19++) {
  15857. _c = Mt(_c, "{$".concat(_e19, "}"), _a[_e19]);
  15858. }
  15859. for (var _e20 in t) {
  15860. _c = Mt(_c, "{".concat(_e20, "}"), t[_e20]);
  15861. }
  15862. return "replace" === _o3 ? _c : e + _c;
  15863. }
  15864. return e;
  15865. }({
  15866. message: "[".concat(_n8.name, "]: ").concat(e.message),
  15867. formatter: Ut,
  15868. extraInfo: {
  15869. functionName: s
  15870. }
  15871. })), Promise.reject(e);
  15872. });
  15873. };
  15874. e.callFunction = function (t) {
  15875. var _e$config = e.config,
  15876. s = _e$config.provider,
  15877. r = _e$config.spaceId,
  15878. i = t.name;
  15879. var o, a;
  15880. if (t.data = t.data || {}, S && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && C ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = Rt), o = Rt) : o = n, o = o.bind(e), Dn(t)) a = n.call(e, t);else if (function (_ref42) {
  15881. var e = _ref42.name,
  15882. _ref42$data = _ref42.data,
  15883. t = _ref42$data === void 0 ? {} : _ref42$data;
  15884. return "mp-weixin" === P && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  15885. }(t)) a = o.call(e, t);else if (Nn(t)) {
  15886. a = new On({
  15887. secretType: t.secretType,
  15888. uniCloudIns: e
  15889. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  15890. } else if (Mn({
  15891. provider: s,
  15892. spaceId: r,
  15893. functionName: i
  15894. })) {
  15895. a = new On({
  15896. secretType: t.secretType,
  15897. uniCloudIns: e
  15898. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  15899. } else a = o(t);
  15900. return Object.defineProperty(a, "result", {
  15901. get: function get() {
  15902. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  15903. }
  15904. }), a.then(function (e) {
  15905. return "undefined" != typeof UTSJSONObject && (e.result = new UTSJSONObject(e.result)), e;
  15906. });
  15907. };
  15908. }
  15909. On = "mp-weixin" !== P && "app" !== P ? /*#__PURE__*/function () {
  15910. function _class2() {
  15911. (0, _classCallCheck2.default)(this, _class2);
  15912. throw Cn({
  15913. message: "Platform ".concat(P, " is not supported by secure network")
  15914. });
  15915. }
  15916. return (0, _createClass2.default)(_class2);
  15917. }() : k ? "mp-weixin" === P ? Ln : Un : /*#__PURE__*/function () {
  15918. function _class3() {
  15919. (0, _classCallCheck2.default)(this, _class3);
  15920. throw Cn({
  15921. message: "Platform ".concat(P, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  15922. });
  15923. }
  15924. return (0, _createClass2.default)(_class3);
  15925. }();
  15926. var Kn = Symbol("CLIENT_DB_INTERNAL");
  15927. function jn(e, t) {
  15928. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Kn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  15929. get: function get(e, n, s) {
  15930. if ("_uniClient" === n) return null;
  15931. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  15932. if (n in e || "string" != typeof n) {
  15933. var _t11 = e[n];
  15934. return "function" == typeof _t11 ? _t11.bind(e) : _t11;
  15935. }
  15936. return t.get(e, n, s);
  15937. }
  15938. });
  15939. }
  15940. function $n(e) {
  15941. return {
  15942. on: function on(t, n) {
  15943. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  15944. },
  15945. off: function off(t, n) {
  15946. e[t] = e[t] || [];
  15947. var s = e[t].indexOf(n);
  15948. -1 !== s && e[t].splice(s, 1);
  15949. }
  15950. };
  15951. }
  15952. var Bn = ["db.Geo", "db.command", "command.aggregate"];
  15953. function Wn(e, t) {
  15954. return Bn.indexOf("".concat(e, ".").concat(t)) > -1;
  15955. }
  15956. function Hn(e) {
  15957. switch (f(e)) {
  15958. case "array":
  15959. return e.map(function (e) {
  15960. return Hn(e);
  15961. });
  15962. case "object":
  15963. return e._internalType === Kn || Object.keys(e).forEach(function (t) {
  15964. e[t] = Hn(e[t]);
  15965. }), e;
  15966. case "regexp":
  15967. return {
  15968. $regexp: {
  15969. source: e.source,
  15970. flags: e.flags
  15971. }
  15972. };
  15973. case "date":
  15974. return {
  15975. $date: e.toISOString()
  15976. };
  15977. default:
  15978. return e;
  15979. }
  15980. }
  15981. function zn(e) {
  15982. return e && e.content && e.content.$method;
  15983. }
  15984. var Jn = /*#__PURE__*/function () {
  15985. function Jn(e, t, n) {
  15986. (0, _classCallCheck2.default)(this, Jn);
  15987. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  15988. }
  15989. (0, _createClass2.default)(Jn, [{
  15990. key: "toJSON",
  15991. value: function toJSON() {
  15992. var e = this;
  15993. var t = [e.content];
  15994. for (; e.prevStage;) {
  15995. e = e.prevStage, t.push(e.content);
  15996. }
  15997. return {
  15998. $db: t.reverse().map(function (e) {
  15999. return {
  16000. $method: e.$method,
  16001. $param: Hn(e.$param)
  16002. };
  16003. })
  16004. };
  16005. }
  16006. }, {
  16007. key: "toString",
  16008. value: function toString() {
  16009. return JSON.stringify(this.toJSON());
  16010. }
  16011. }, {
  16012. key: "getAction",
  16013. value: function getAction() {
  16014. var e = this.toJSON().$db.find(function (e) {
  16015. return "action" === e.$method;
  16016. });
  16017. return e && e.$param && e.$param[0];
  16018. }
  16019. }, {
  16020. key: "getCommand",
  16021. value: function getCommand() {
  16022. return {
  16023. $db: this.toJSON().$db.filter(function (e) {
  16024. return "action" !== e.$method;
  16025. })
  16026. };
  16027. }
  16028. }, {
  16029. key: "isAggregate",
  16030. get: function get() {
  16031. var e = this;
  16032. for (; e;) {
  16033. var t = zn(e),
  16034. _n9 = zn(e.prevStage);
  16035. if ("aggregate" === t && "collection" === _n9 || "pipeline" === t) return !0;
  16036. e = e.prevStage;
  16037. }
  16038. return !1;
  16039. }
  16040. }, {
  16041. key: "isCommand",
  16042. get: function get() {
  16043. var e = this;
  16044. for (; e;) {
  16045. if ("command" === zn(e)) return !0;
  16046. e = e.prevStage;
  16047. }
  16048. return !1;
  16049. }
  16050. }, {
  16051. key: "isAggregateCommand",
  16052. get: function get() {
  16053. var e = this;
  16054. for (; e;) {
  16055. var t = zn(e),
  16056. _n10 = zn(e.prevStage);
  16057. if ("aggregate" === t && "command" === _n10) return !0;
  16058. e = e.prevStage;
  16059. }
  16060. return !1;
  16061. }
  16062. }, {
  16063. key: "getNextStageFn",
  16064. value: function getNextStageFn(e) {
  16065. var t = this;
  16066. return function () {
  16067. return Gn({
  16068. $method: e,
  16069. $param: Hn(Array.from(arguments))
  16070. }, t, t._database);
  16071. };
  16072. }
  16073. }, {
  16074. key: "count",
  16075. get: function get() {
  16076. return this.isAggregate ? this.getNextStageFn("count") : function () {
  16077. return this._send("count", Array.from(arguments));
  16078. };
  16079. }
  16080. }, {
  16081. key: "remove",
  16082. get: function get() {
  16083. return this.isCommand ? this.getNextStageFn("remove") : function () {
  16084. return this._send("remove", Array.from(arguments));
  16085. };
  16086. }
  16087. }, {
  16088. key: "get",
  16089. value: function get() {
  16090. return this._send("get", Array.from(arguments));
  16091. }
  16092. }, {
  16093. key: "add",
  16094. get: function get() {
  16095. return this.isCommand ? this.getNextStageFn("add") : function () {
  16096. return this._send("add", Array.from(arguments));
  16097. };
  16098. }
  16099. }, {
  16100. key: "update",
  16101. value: function update() {
  16102. return this._send("update", Array.from(arguments));
  16103. }
  16104. }, {
  16105. key: "end",
  16106. value: function end() {
  16107. return this._send("end", Array.from(arguments));
  16108. }
  16109. }, {
  16110. key: "set",
  16111. get: function get() {
  16112. return this.isCommand ? this.getNextStageFn("set") : function () {
  16113. throw new Error("JQL禁止使用set方法");
  16114. };
  16115. }
  16116. }, {
  16117. key: "_send",
  16118. value: function _send(e, t) {
  16119. var n = this.getAction(),
  16120. s = this.getCommand();
  16121. if (s.$db.push({
  16122. $method: e,
  16123. $param: Hn(t)
  16124. }), S) {
  16125. var _e21 = s.$db.find(function (e) {
  16126. return "collection" === e.$method;
  16127. }),
  16128. _t12 = _e21 && _e21.$param;
  16129. _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- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  16130. }
  16131. return this._database._callCloudFunction({
  16132. action: n,
  16133. command: s
  16134. });
  16135. }
  16136. }]);
  16137. return Jn;
  16138. }();
  16139. function Gn(e, t, n) {
  16140. return jn(new Jn(e, t, n), {
  16141. get: function get(e, t) {
  16142. var s = "db";
  16143. return e && e.content && (s = e.content.$method), Wn(s, t) ? Gn({
  16144. $method: t
  16145. }, e, n) : function () {
  16146. return Gn({
  16147. $method: t,
  16148. $param: Hn(Array.from(arguments))
  16149. }, e, n);
  16150. };
  16151. }
  16152. });
  16153. }
  16154. function Vn(_ref43) {
  16155. var e = _ref43.path,
  16156. t = _ref43.method;
  16157. return /*#__PURE__*/function () {
  16158. function _class4() {
  16159. (0, _classCallCheck2.default)(this, _class4);
  16160. this.param = Array.from(arguments);
  16161. }
  16162. (0, _createClass2.default)(_class4, [{
  16163. key: "toJSON",
  16164. value: function toJSON() {
  16165. return {
  16166. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  16167. return {
  16168. $method: e
  16169. };
  16170. })), [{
  16171. $method: t,
  16172. $param: this.param
  16173. }])
  16174. };
  16175. }
  16176. }, {
  16177. key: "toString",
  16178. value: function toString() {
  16179. return JSON.stringify(this.toJSON());
  16180. }
  16181. }]);
  16182. return _class4;
  16183. }();
  16184. }
  16185. function Yn(e) {
  16186. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16187. return jn(new e(t), {
  16188. get: function get(e, t) {
  16189. return Wn("db", t) ? Gn({
  16190. $method: t
  16191. }, null, e) : function () {
  16192. return Gn({
  16193. $method: t,
  16194. $param: Hn(Array.from(arguments))
  16195. }, null, e);
  16196. };
  16197. }
  16198. });
  16199. }
  16200. var Qn = /*#__PURE__*/function (_ref44) {
  16201. (0, _inherits2.default)(Qn, _ref44);
  16202. var _super11 = _createSuper(Qn);
  16203. function Qn() {
  16204. (0, _classCallCheck2.default)(this, Qn);
  16205. return _super11.apply(this, arguments);
  16206. }
  16207. (0, _createClass2.default)(Qn, [{
  16208. key: "_parseResult",
  16209. value: function _parseResult(e) {
  16210. return this._isJQL ? e.result : e;
  16211. }
  16212. }, {
  16213. key: "_callCloudFunction",
  16214. value: function _callCloudFunction(_ref45) {
  16215. var _this20 = this;
  16216. var e = _ref45.action,
  16217. t = _ref45.command,
  16218. n = _ref45.multiCommand,
  16219. s = _ref45.queryList;
  16220. function r(e, t) {
  16221. if (n && s) for (var _n11 = 0; _n11 < s.length; _n11++) {
  16222. var _r6 = s[_n11];
  16223. _r6.udb && "function" == typeof _r6.udb.setResult && (t ? _r6.udb.setResult(t) : _r6.udb.setResult(e.result.dataList[_n11]));
  16224. }
  16225. }
  16226. var i = this,
  16227. o = this._isJQL ? "databaseForJQL" : "database";
  16228. function a(e) {
  16229. return i._callback("error", [e]), M(q(o, "fail"), e).then(function () {
  16230. return M(q(o, "complete"), e);
  16231. }).then(function () {
  16232. return r(null, e), Y(j, {
  16233. type: W,
  16234. content: e
  16235. }), Promise.reject(e);
  16236. });
  16237. }
  16238. var c = M(q(o, "invoke")),
  16239. u = this._uniClient;
  16240. return c.then(function () {
  16241. return u.callFunction({
  16242. name: "DCloud-clientDB",
  16243. type: h,
  16244. data: {
  16245. action: e,
  16246. command: t,
  16247. multiCommand: n
  16248. }
  16249. });
  16250. }).then(function (e) {
  16251. var _e$result = e.result,
  16252. t = _e$result.code,
  16253. n = _e$result.message,
  16254. s = _e$result.token,
  16255. c = _e$result.tokenExpired,
  16256. _e$result$systemInfo = _e$result.systemInfo,
  16257. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  16258. if (u) for (var _e22 = 0; _e22 < u.length; _e22++) {
  16259. var _u$_e = u[_e22],
  16260. _t13 = _u$_e.level,
  16261. _n12 = _u$_e.message,
  16262. _s14 = _u$_e.detail,
  16263. _r7 = console["app" === P && "warn" === _t13 ? "error" : _t13] || console.log;
  16264. var _i4 = "[System Info]" + _n12;
  16265. _s14 && (_i4 = "".concat(_i4, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s14)), _r7(_i4);
  16266. }
  16267. if (t) {
  16268. return a(new te({
  16269. code: t,
  16270. message: n,
  16271. requestId: e.requestId
  16272. }));
  16273. }
  16274. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (re({
  16275. token: s,
  16276. tokenExpired: c
  16277. }), _this20._callbackAuth("refreshToken", [{
  16278. token: s,
  16279. tokenExpired: c
  16280. }]), _this20._callback("refreshToken", [{
  16281. token: s,
  16282. tokenExpired: c
  16283. }]), Y(B, {
  16284. token: s,
  16285. tokenExpired: c
  16286. }));
  16287. var h = [{
  16288. prop: "affectedDocs",
  16289. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  16290. }, {
  16291. prop: "code",
  16292. tips: "code不再推荐使用,请使用errCode替代"
  16293. }, {
  16294. prop: "message",
  16295. tips: "message不再推荐使用,请使用errMsg替代"
  16296. }];
  16297. var _loop2 = function _loop2(_t14) {
  16298. var _h$_t = h[_t14],
  16299. n = _h$_t.prop,
  16300. s = _h$_t.tips;
  16301. if (n in e.result) {
  16302. var _t15 = e.result[n];
  16303. Object.defineProperty(e.result, n, {
  16304. get: function get() {
  16305. return console.warn(s), _t15;
  16306. }
  16307. });
  16308. }
  16309. };
  16310. for (var _t14 = 0; _t14 < h.length; _t14++) {
  16311. _loop2(_t14);
  16312. }
  16313. return function (e) {
  16314. return M(q(o, "success"), e).then(function () {
  16315. return M(q(o, "complete"), e);
  16316. }).then(function () {
  16317. r(e, null);
  16318. var t = i._parseResult(e);
  16319. return Y(j, {
  16320. type: W,
  16321. content: t
  16322. }), Promise.resolve(t);
  16323. });
  16324. }(e);
  16325. }, function (e) {
  16326. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  16327. return a(new te({
  16328. code: e.code || "SYSTEM_ERROR",
  16329. message: e.message,
  16330. requestId: e.requestId
  16331. }));
  16332. });
  16333. }
  16334. }]);
  16335. return Qn;
  16336. }( /*#__PURE__*/function () {
  16337. function _class5() {
  16338. var _ref46 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16339. _ref46$uniClient = _ref46.uniClient,
  16340. e = _ref46$uniClient === void 0 ? {} : _ref46$uniClient,
  16341. _ref46$isJQL = _ref46.isJQL,
  16342. t = _ref46$isJQL === void 0 ? !1 : _ref46$isJQL;
  16343. (0, _classCallCheck2.default)(this, _class5);
  16344. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e._isDefault && (this._dbCallBacks = L("_globalUniCloudDatabaseCallback")), t || (this.auth = $n(this._authCallBacks)), this._isJQL = t, Object.assign(this, $n(this._dbCallBacks)), this.env = jn({}, {
  16345. get: function get(e, t) {
  16346. return {
  16347. $env: t
  16348. };
  16349. }
  16350. }), this.Geo = jn({}, {
  16351. get: function get(e, t) {
  16352. return Vn({
  16353. path: ["Geo"],
  16354. method: t
  16355. });
  16356. }
  16357. }), this.serverDate = Vn({
  16358. path: [],
  16359. method: "serverDate"
  16360. }), this.RegExp = Vn({
  16361. path: [],
  16362. method: "RegExp"
  16363. });
  16364. }
  16365. (0, _createClass2.default)(_class5, [{
  16366. key: "getCloudEnv",
  16367. value: function getCloudEnv(e) {
  16368. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  16369. return {
  16370. $env: e.replace("$cloudEnv_", "")
  16371. };
  16372. }
  16373. }, {
  16374. key: "_callback",
  16375. value: function _callback(e, t) {
  16376. var n = this._dbCallBacks;
  16377. n[e] && n[e].forEach(function (e) {
  16378. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  16379. });
  16380. }
  16381. }, {
  16382. key: "_callbackAuth",
  16383. value: function _callbackAuth(e, t) {
  16384. var n = this._authCallBacks;
  16385. n[e] && n[e].forEach(function (e) {
  16386. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  16387. });
  16388. }
  16389. }, {
  16390. key: "multiSend",
  16391. value: function multiSend() {
  16392. var e = Array.from(arguments),
  16393. t = e.map(function (e) {
  16394. var t = e.getAction(),
  16395. n = e.getCommand();
  16396. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  16397. return {
  16398. action: t,
  16399. command: n
  16400. };
  16401. });
  16402. return this._callCloudFunction({
  16403. multiCommand: t,
  16404. queryList: e
  16405. });
  16406. }
  16407. }]);
  16408. return _class5;
  16409. }());
  16410. var Xn = "token无效,跳转登录页面",
  16411. Zn = "token过期,跳转登录页面",
  16412. es = {
  16413. TOKEN_INVALID_TOKEN_EXPIRED: Zn,
  16414. TOKEN_INVALID_INVALID_CLIENTID: Xn,
  16415. TOKEN_INVALID: Xn,
  16416. TOKEN_INVALID_WRONG_TOKEN: Xn,
  16417. TOKEN_INVALID_ANONYMOUS_USER: Xn
  16418. },
  16419. ts = {
  16420. "uni-id-token-expired": Zn,
  16421. "uni-id-check-token-failed": Xn,
  16422. "uni-id-token-not-exist": Xn,
  16423. "uni-id-check-device-feature-failed": Xn
  16424. };
  16425. function ns(e, t) {
  16426. var n = "";
  16427. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  16428. }
  16429. function ss() {
  16430. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16431. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  16432. var n = [],
  16433. s = [];
  16434. return e.forEach(function (e) {
  16435. !0 === e.needLogin ? n.push(ns(t, e.path)) : !1 === e.needLogin && s.push(ns(t, e.path));
  16436. }), {
  16437. needLoginPage: n,
  16438. notNeedLoginPage: s
  16439. };
  16440. }
  16441. function rs(e) {
  16442. return e.split("?")[0].replace(/^\//, "");
  16443. }
  16444. function is() {
  16445. return function (e) {
  16446. var t = e && e.$page && e.$page.fullPath || "";
  16447. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  16448. }(function () {
  16449. var e = getCurrentPages();
  16450. return e[e.length - 1];
  16451. }());
  16452. }
  16453. function os() {
  16454. return rs(is());
  16455. }
  16456. function as() {
  16457. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16458. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16459. if (!e) return !1;
  16460. if (!(t && t.list && t.list.length)) return !1;
  16461. var n = t.list,
  16462. s = rs(e);
  16463. return n.some(function (e) {
  16464. return e.pagePath === s;
  16465. });
  16466. }
  16467. var cs = !!_pages.default.uniIdRouter;
  16468. var _ref47 = function () {
  16469. var _ref28 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  16470. _ref28$pages = _ref28.pages,
  16471. t = _ref28$pages === void 0 ? [] : _ref28$pages,
  16472. _ref28$subPackages = _ref28.subPackages,
  16473. n = _ref28$subPackages === void 0 ? [] : _ref28$subPackages,
  16474. _ref28$uniIdRouter = _ref28.uniIdRouter,
  16475. s = _ref28$uniIdRouter === void 0 ? {} : _ref28$uniIdRouter,
  16476. _ref28$tabBar = _ref28.tabBar,
  16477. r = _ref28$tabBar === void 0 ? {} : _ref28$tabBar;
  16478. var i = s.loginPage,
  16479. _s$needLogin = s.needLogin,
  16480. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  16481. _s$resToLogin = s.resToLogin,
  16482. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  16483. _ss = ss(t),
  16484. c = _ss.needLoginPage,
  16485. u = _ss.notNeedLoginPage,
  16486. _ref30 = function () {
  16487. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16488. var t = [],
  16489. n = [];
  16490. return e.forEach(function (e) {
  16491. var s = e.root,
  16492. _e$pages = e.pages,
  16493. r = _e$pages === void 0 ? [] : _e$pages,
  16494. _ss2 = ss(r, s),
  16495. i = _ss2.needLoginPage,
  16496. o = _ss2.notNeedLoginPage;
  16497. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  16498. }), {
  16499. needLoginPage: t,
  16500. notNeedLoginPage: n
  16501. };
  16502. }(n),
  16503. h = _ref30.needLoginPage,
  16504. l = _ref30.notNeedLoginPage;
  16505. return {
  16506. loginPage: i,
  16507. routerNeedLogin: o,
  16508. resToLogin: a,
  16509. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(h)),
  16510. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(l)),
  16511. loginPageInTabBar: as(i, r)
  16512. };
  16513. }(),
  16514. us = _ref47.loginPage,
  16515. hs = _ref47.routerNeedLogin,
  16516. ls = _ref47.resToLogin,
  16517. ds = _ref47.needLoginPage,
  16518. ps = _ref47.notNeedLoginPage,
  16519. fs = _ref47.loginPageInTabBar;
  16520. if (ds.indexOf(us) > -1) throw new Error("Login page [".concat(us, "] should not be \"needLogin\", please check your pages.json"));
  16521. function gs(e) {
  16522. var t = os();
  16523. if ("/" === e.charAt(0)) return e;
  16524. var _e$split = e.split("?"),
  16525. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  16526. n = _e$split2[0],
  16527. s = _e$split2[1],
  16528. r = n.replace(/^\//, "").split("/"),
  16529. i = t.split("/");
  16530. i.pop();
  16531. for (var _e23 = 0; _e23 < r.length; _e23++) {
  16532. var _t16 = r[_e23];
  16533. ".." === _t16 ? i.pop() : "." !== _t16 && i.push(_t16);
  16534. }
  16535. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  16536. }
  16537. function ms(e) {
  16538. var t = rs(gs(e));
  16539. return !(ps.indexOf(t) > -1) && (ds.indexOf(t) > -1 || hs.some(function (t) {
  16540. return function (e, t) {
  16541. return new RegExp(t).test(e);
  16542. }(e, t);
  16543. }));
  16544. }
  16545. function ys(_ref48) {
  16546. var e = _ref48.redirect;
  16547. var t = rs(e),
  16548. n = rs(us);
  16549. return os() !== n && t !== n;
  16550. }
  16551. function _s() {
  16552. var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16553. e = _ref49.api,
  16554. t = _ref49.redirect;
  16555. if (!t || !ys({
  16556. redirect: t
  16557. })) return;
  16558. var n = function (e, t) {
  16559. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  16560. }(us, t);
  16561. fs ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  16562. var s = {
  16563. navigateTo: uni.navigateTo,
  16564. redirectTo: uni.redirectTo,
  16565. switchTab: uni.switchTab,
  16566. reLaunch: uni.reLaunch
  16567. };
  16568. setTimeout(function () {
  16569. s[e]({
  16570. url: n
  16571. });
  16572. });
  16573. }
  16574. function ws() {
  16575. var _ref50 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16576. e = _ref50.url;
  16577. var t = {
  16578. abortLoginPageJump: !1,
  16579. autoToLoginPage: !1
  16580. },
  16581. n = function () {
  16582. var _se3 = se(),
  16583. e = _se3.token,
  16584. t = _se3.tokenExpired;
  16585. var n;
  16586. if (e) {
  16587. if (t < Date.now()) {
  16588. var _e24 = "uni-id-token-expired";
  16589. n = {
  16590. errCode: _e24,
  16591. errMsg: ts[_e24]
  16592. };
  16593. }
  16594. } else {
  16595. var _e25 = "uni-id-check-token-failed";
  16596. n = {
  16597. errCode: _e25,
  16598. errMsg: ts[_e25]
  16599. };
  16600. }
  16601. return n;
  16602. }();
  16603. if (ms(e) && n) {
  16604. n.uniIdRedirectUrl = e;
  16605. if (J($).length > 0) return setTimeout(function () {
  16606. Y($, n);
  16607. }, 0), t.abortLoginPageJump = !0, t;
  16608. t.autoToLoginPage = !0;
  16609. }
  16610. return t;
  16611. }
  16612. function vs() {
  16613. !function () {
  16614. var e = is(),
  16615. _ws = ws({
  16616. url: e
  16617. }),
  16618. t = _ws.abortLoginPageJump,
  16619. n = _ws.autoToLoginPage;
  16620. t || n && _s({
  16621. api: "redirectTo",
  16622. redirect: e
  16623. });
  16624. }();
  16625. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  16626. var _loop3 = function _loop3(_t17) {
  16627. var n = e[_t17];
  16628. uni.addInterceptor(n, {
  16629. invoke: function invoke(e) {
  16630. var _ws2 = ws({
  16631. url: e.url
  16632. }),
  16633. t = _ws2.abortLoginPageJump,
  16634. s = _ws2.autoToLoginPage;
  16635. return t ? e : s ? (_s({
  16636. api: n,
  16637. redirect: gs(e.url)
  16638. }), !1) : e;
  16639. }
  16640. });
  16641. };
  16642. for (var _t17 = 0; _t17 < e.length; _t17++) {
  16643. _loop3(_t17);
  16644. }
  16645. }
  16646. function Is() {
  16647. this.onResponse(function (e) {
  16648. var t = e.type,
  16649. n = e.content;
  16650. var s = !1;
  16651. switch (t) {
  16652. case "cloudobject":
  16653. s = function (e) {
  16654. if ("object" != (0, _typeof2.default)(e)) return !1;
  16655. var _ref51 = e || {},
  16656. t = _ref51.errCode;
  16657. return t in ts;
  16658. }(n);
  16659. break;
  16660. case "clientdb":
  16661. s = function (e) {
  16662. if ("object" != (0, _typeof2.default)(e)) return !1;
  16663. var _ref52 = e || {},
  16664. t = _ref52.errCode;
  16665. return t in es;
  16666. }(n);
  16667. }
  16668. s && function () {
  16669. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16670. var t = J($);
  16671. Z().then(function () {
  16672. var n = is();
  16673. if (n && ys({
  16674. redirect: n
  16675. })) return t.length > 0 ? Y($, Object.assign({
  16676. uniIdRedirectUrl: n
  16677. }, e)) : void (us && _s({
  16678. api: "navigateTo",
  16679. redirect: n
  16680. }));
  16681. });
  16682. }(n);
  16683. });
  16684. }
  16685. function Ss(e) {
  16686. !function (e) {
  16687. e.onResponse = function (e) {
  16688. G(j, e);
  16689. }, e.offResponse = function (e) {
  16690. V(j, e);
  16691. };
  16692. }(e), function (e) {
  16693. e.onNeedLogin = function (e) {
  16694. G($, e);
  16695. }, e.offNeedLogin = function (e) {
  16696. V($, e);
  16697. }, cs && (L("_globalUniCloudStatus").needLoginInit || (L("_globalUniCloudStatus").needLoginInit = !0, Z().then(function () {
  16698. vs.call(e);
  16699. }), ls && Is.call(e)));
  16700. }(e), function (e) {
  16701. e.onRefreshToken = function (e) {
  16702. G(B, e);
  16703. }, e.offRefreshToken = function (e) {
  16704. V(B, e);
  16705. };
  16706. }(e);
  16707. }
  16708. var bs;
  16709. var ks = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  16710. As = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  16711. function Ps() {
  16712. var e = se().token || "",
  16713. t = e.split(".");
  16714. if (!e || 3 !== t.length) return {
  16715. uid: null,
  16716. role: [],
  16717. permission: [],
  16718. tokenExpired: 0
  16719. };
  16720. var n;
  16721. try {
  16722. n = JSON.parse((s = t[1], decodeURIComponent(bs(s).split("").map(function (e) {
  16723. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  16724. }).join(""))));
  16725. } catch (e) {
  16726. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  16727. }
  16728. var s;
  16729. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  16730. }
  16731. bs = "function" != typeof atob ? function (e) {
  16732. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !As.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  16733. var t;
  16734. e += "==".slice(2 - (3 & e.length));
  16735. for (var n, s, r = "", i = 0; i < e.length;) {
  16736. t = ks.indexOf(e.charAt(i++)) << 18 | ks.indexOf(e.charAt(i++)) << 12 | (n = ks.indexOf(e.charAt(i++))) << 6 | (s = ks.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);
  16737. }
  16738. return r;
  16739. } : atob;
  16740. var Ts = n(function (e, t) {
  16741. Object.defineProperty(t, "__esModule", {
  16742. value: !0
  16743. });
  16744. var n = "chooseAndUploadFile:ok",
  16745. s = "chooseAndUploadFile:fail";
  16746. function r(e, t) {
  16747. return e.tempFiles.forEach(function (e, n) {
  16748. 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("."));
  16749. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  16750. return e.path;
  16751. })), e;
  16752. }
  16753. function i(e, t, _ref53) {
  16754. var s = _ref53.onChooseFile,
  16755. r = _ref53.onUploadProgress;
  16756. return t.then(function (e) {
  16757. if (s) {
  16758. var _t18 = s(e);
  16759. if (void 0 !== _t18) return Promise.resolve(_t18).then(function (t) {
  16760. return void 0 === t ? e : t;
  16761. });
  16762. }
  16763. return e;
  16764. }).then(function (t) {
  16765. return !1 === t ? {
  16766. errMsg: n,
  16767. tempFilePaths: [],
  16768. tempFiles: []
  16769. } : function (e, t) {
  16770. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  16771. var r = arguments.length > 3 ? arguments[3] : undefined;
  16772. (t = Object.assign({}, t)).errMsg = n;
  16773. var i = t.tempFiles,
  16774. o = i.length;
  16775. var a = 0;
  16776. return new Promise(function (n) {
  16777. for (; a < s;) {
  16778. c();
  16779. }
  16780. function c() {
  16781. var s = a++;
  16782. if (s >= o) return void (!i.find(function (e) {
  16783. return !e.url && !e.errMsg;
  16784. }) && n(t));
  16785. var u = i[s];
  16786. e.uploadFile({
  16787. provider: u.provider,
  16788. filePath: u.path,
  16789. cloudPath: u.cloudPath,
  16790. fileType: u.fileType,
  16791. cloudPathAsRealPath: u.cloudPathAsRealPath,
  16792. onUploadProgress: function onUploadProgress(e) {
  16793. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  16794. }
  16795. }).then(function (e) {
  16796. u.url = e.fileID, s < o && c();
  16797. }).catch(function (e) {
  16798. u.errMsg = e.errMsg || e.message, s < o && c();
  16799. });
  16800. }
  16801. });
  16802. }(e, t, 5, r);
  16803. });
  16804. }
  16805. t.initChooseAndUploadFile = function (e) {
  16806. return function () {
  16807. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  16808. type: "all"
  16809. };
  16810. return "image" === t.type ? i(e, function (e) {
  16811. var t = e.count,
  16812. n = e.sizeType,
  16813. _e$sourceType = e.sourceType,
  16814. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  16815. o = e.extension;
  16816. return new Promise(function (e, a) {
  16817. uni.chooseImage({
  16818. count: t,
  16819. sizeType: n,
  16820. sourceType: i,
  16821. extension: o,
  16822. success: function success(t) {
  16823. e(r(t, "image"));
  16824. },
  16825. fail: function fail(e) {
  16826. a({
  16827. errMsg: e.errMsg.replace("chooseImage:fail", s)
  16828. });
  16829. }
  16830. });
  16831. });
  16832. }(t), t) : "video" === t.type ? i(e, function (e) {
  16833. var t = e.camera,
  16834. n = e.compressed,
  16835. i = e.maxDuration,
  16836. _e$sourceType2 = e.sourceType,
  16837. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  16838. a = e.extension;
  16839. return new Promise(function (e, c) {
  16840. uni.chooseVideo({
  16841. camera: t,
  16842. compressed: n,
  16843. maxDuration: i,
  16844. sourceType: o,
  16845. extension: a,
  16846. success: function success(t) {
  16847. var n = t.tempFilePath,
  16848. s = t.duration,
  16849. i = t.size,
  16850. o = t.height,
  16851. a = t.width;
  16852. e(r({
  16853. errMsg: "chooseVideo:ok",
  16854. tempFilePaths: [n],
  16855. tempFiles: [{
  16856. name: t.tempFile && t.tempFile.name || "",
  16857. path: n,
  16858. size: i,
  16859. type: t.tempFile && t.tempFile.type || "",
  16860. width: a,
  16861. height: o,
  16862. duration: s,
  16863. fileType: "video",
  16864. cloudPath: ""
  16865. }]
  16866. }, "video"));
  16867. },
  16868. fail: function fail(e) {
  16869. c({
  16870. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  16871. });
  16872. }
  16873. });
  16874. });
  16875. }(t), t) : i(e, function (e) {
  16876. var t = e.count,
  16877. n = e.extension;
  16878. return new Promise(function (e, i) {
  16879. var o = uni.chooseFile;
  16880. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  16881. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  16882. });
  16883. o({
  16884. type: "all",
  16885. count: t,
  16886. extension: n,
  16887. success: function success(t) {
  16888. e(r(t));
  16889. },
  16890. fail: function fail(e) {
  16891. i({
  16892. errMsg: e.errMsg.replace("chooseFile:fail", s)
  16893. });
  16894. }
  16895. });
  16896. });
  16897. }(t), t);
  16898. };
  16899. };
  16900. }),
  16901. Cs = t(Ts);
  16902. var xs = "manual";
  16903. function Os(e) {
  16904. return {
  16905. props: {
  16906. localdata: {
  16907. type: Array,
  16908. default: function _default() {
  16909. return [];
  16910. }
  16911. },
  16912. options: {
  16913. type: [Object, Array],
  16914. default: function _default() {
  16915. return {};
  16916. }
  16917. },
  16918. spaceInfo: {
  16919. type: Object,
  16920. default: function _default() {
  16921. return {};
  16922. }
  16923. },
  16924. collection: {
  16925. type: [String, Array],
  16926. default: ""
  16927. },
  16928. action: {
  16929. type: String,
  16930. default: ""
  16931. },
  16932. field: {
  16933. type: String,
  16934. default: ""
  16935. },
  16936. orderby: {
  16937. type: String,
  16938. default: ""
  16939. },
  16940. where: {
  16941. type: [String, Object],
  16942. default: ""
  16943. },
  16944. pageData: {
  16945. type: String,
  16946. default: "add"
  16947. },
  16948. pageCurrent: {
  16949. type: Number,
  16950. default: 1
  16951. },
  16952. pageSize: {
  16953. type: Number,
  16954. default: 20
  16955. },
  16956. getcount: {
  16957. type: [Boolean, String],
  16958. default: !1
  16959. },
  16960. gettree: {
  16961. type: [Boolean, String],
  16962. default: !1
  16963. },
  16964. gettreepath: {
  16965. type: [Boolean, String],
  16966. default: !1
  16967. },
  16968. startwith: {
  16969. type: String,
  16970. default: ""
  16971. },
  16972. limitlevel: {
  16973. type: Number,
  16974. default: 10
  16975. },
  16976. groupby: {
  16977. type: String,
  16978. default: ""
  16979. },
  16980. groupField: {
  16981. type: String,
  16982. default: ""
  16983. },
  16984. distinct: {
  16985. type: [Boolean, String],
  16986. default: !1
  16987. },
  16988. foreignKey: {
  16989. type: String,
  16990. default: ""
  16991. },
  16992. loadtime: {
  16993. type: String,
  16994. default: "auto"
  16995. },
  16996. manual: {
  16997. type: Boolean,
  16998. default: !1
  16999. }
  17000. },
  17001. data: function data() {
  17002. return {
  17003. mixinDatacomLoading: !1,
  17004. mixinDatacomHasMore: !1,
  17005. mixinDatacomResData: [],
  17006. mixinDatacomErrorMessage: "",
  17007. mixinDatacomPage: {},
  17008. mixinDatacomError: null
  17009. };
  17010. },
  17011. created: function created() {
  17012. var _this21 = this;
  17013. this.mixinDatacomPage = {
  17014. current: this.pageCurrent,
  17015. size: this.pageSize,
  17016. count: 0
  17017. }, this.$watch(function () {
  17018. var e = [];
  17019. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  17020. e.push(_this21[t]);
  17021. }), e;
  17022. }, function (e, t) {
  17023. if (_this21.loadtime === xs) return;
  17024. var n = !1;
  17025. var s = [];
  17026. for (var _r8 = 2; _r8 < e.length; _r8++) {
  17027. e[_r8] !== t[_r8] && (s.push(e[_r8]), n = !0);
  17028. }
  17029. e[0] !== t[0] && (_this21.mixinDatacomPage.current = _this21.pageCurrent), _this21.mixinDatacomPage.size = _this21.pageSize, _this21.onMixinDatacomPropsChange(n, s);
  17030. });
  17031. },
  17032. methods: {
  17033. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  17034. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  17035. var _this22 = this;
  17036. var _ref54 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17037. _ref54$getone = _ref54.getone,
  17038. e = _ref54$getone === void 0 ? !1 : _ref54$getone,
  17039. t = _ref54.success,
  17040. n = _ref54.fail;
  17041. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomError = null, this.mixinDatacomGet().then(function (n) {
  17042. _this22.mixinDatacomLoading = !1;
  17043. var _n$result = n.result,
  17044. s = _n$result.data,
  17045. r = _n$result.count;
  17046. _this22.getcount && (_this22.mixinDatacomPage.count = r), _this22.mixinDatacomHasMore = s.length < _this22.pageSize;
  17047. var i = e ? s.length ? s[0] : void 0 : s;
  17048. _this22.mixinDatacomResData = i, t && t(i);
  17049. }).catch(function (e) {
  17050. _this22.mixinDatacomLoading = !1, _this22.mixinDatacomErrorMessage = e, _this22.mixinDatacomError = e, n && n(e);
  17051. }));
  17052. },
  17053. mixinDatacomGet: function mixinDatacomGet() {
  17054. var _n13;
  17055. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  17056. var n;
  17057. t = t || {}, n = "undefined" != typeof __uniX && __uniX ? e.databaseForJQL(this.spaceInfo) : e.database(this.spaceInfo);
  17058. var s = t.action || this.action;
  17059. s && (n = n.action(s));
  17060. var r = t.collection || this.collection;
  17061. n = Array.isArray(r) ? (_n13 = n).collection.apply(_n13, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  17062. var i = t.where || this.where;
  17063. i && Object.keys(i).length && (n = n.where(i));
  17064. var o = t.field || this.field;
  17065. o && (n = n.field(o));
  17066. var a = t.foreignKey || this.foreignKey;
  17067. a && (n = n.foreignKey(a));
  17068. var c = t.groupby || this.groupby;
  17069. c && (n = n.groupBy(c));
  17070. var u = t.groupField || this.groupField;
  17071. u && (n = n.groupField(u));
  17072. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  17073. var h = t.orderby || this.orderby;
  17074. h && (n = n.orderBy(h));
  17075. var l = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  17076. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  17077. p = void 0 !== t.getcount ? t.getcount : this.getcount,
  17078. f = void 0 !== t.gettree ? t.gettree : this.gettree,
  17079. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  17080. m = {
  17081. getCount: p
  17082. },
  17083. y = {
  17084. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  17085. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  17086. };
  17087. return f && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (l - 1)).limit(d).get(m), n;
  17088. }
  17089. }
  17090. };
  17091. }
  17092. function Es(e) {
  17093. return function (t) {
  17094. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  17095. n = function (e) {
  17096. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  17097. 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;
  17098. }({
  17099. customUI: !1,
  17100. loadingOptions: {
  17101. title: "加载中...",
  17102. mask: !0
  17103. },
  17104. errorOptions: {
  17105. type: "modal",
  17106. retry: !1
  17107. }
  17108. }, n);
  17109. var _n14 = n,
  17110. s = _n14.customUI,
  17111. r = _n14.loadingOptions,
  17112. i = _n14.errorOptions,
  17113. o = _n14.parseSystemError,
  17114. a = !s;
  17115. return new Proxy({}, {
  17116. get: function get(s, c) {
  17117. switch (c) {
  17118. case "toString":
  17119. return "[object UniCloudObject]";
  17120. case "toJSON":
  17121. return {};
  17122. }
  17123. return function () {
  17124. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17125. e = _ref55.fn,
  17126. t = _ref55.interceptorName,
  17127. n = _ref55.getCallbackArgs;
  17128. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52() {
  17129. var _len2,
  17130. s,
  17131. _key2,
  17132. r,
  17133. i,
  17134. o,
  17135. _args = arguments;
  17136. return _regenerator.default.wrap(function _callee52$(_context52) {
  17137. while (1) {
  17138. switch (_context52.prev = _context52.next) {
  17139. case 0:
  17140. for (_len2 = _args.length, s = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  17141. s[_key2] = _args[_key2];
  17142. }
  17143. r = n ? n({
  17144. params: s
  17145. }) : {};
  17146. _context52.prev = 2;
  17147. _context52.next = 5;
  17148. return M(q(t, "invoke"), _objectSpread({}, r));
  17149. case 5:
  17150. _context52.next = 7;
  17151. return e.apply(void 0, s);
  17152. case 7:
  17153. i = _context52.sent;
  17154. _context52.next = 10;
  17155. return M(q(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  17156. result: i
  17157. }));
  17158. case 10:
  17159. return _context52.abrupt("return", i);
  17160. case 13:
  17161. _context52.prev = 13;
  17162. _context52.t0 = _context52["catch"](2);
  17163. o = _context52.t0;
  17164. _context52.next = 18;
  17165. return M(q(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  17166. error: o
  17167. }));
  17168. case 18:
  17169. throw o;
  17170. case 19:
  17171. _context52.prev = 19;
  17172. _context52.next = 22;
  17173. return M(q(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  17174. error: o
  17175. }) : _objectSpread(_objectSpread({}, r), {}, {
  17176. result: i
  17177. }));
  17178. case 22:
  17179. return _context52.finish(19);
  17180. case 23:
  17181. case "end":
  17182. return _context52.stop();
  17183. }
  17184. }
  17185. }, _callee52, null, [[2, 13, 19, 23]]);
  17186. }));
  17187. }({
  17188. fn: function () {
  17189. var _s15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54() {
  17190. var l,
  17191. _len3,
  17192. h,
  17193. _key3,
  17194. d,
  17195. p,
  17196. _ref57,
  17197. f,
  17198. g,
  17199. m,
  17200. y,
  17201. _e26,
  17202. _yield,
  17203. _t19,
  17204. _n15,
  17205. _args4 = arguments;
  17206. return _regenerator.default.wrap(function _callee54$(_context54) {
  17207. while (1) {
  17208. switch (_context54.prev = _context54.next) {
  17209. case 0:
  17210. a && uni.showLoading({
  17211. title: r.title,
  17212. mask: r.mask
  17213. });
  17214. for (_len3 = _args4.length, h = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  17215. h[_key3] = _args4[_key3];
  17216. }
  17217. d = {
  17218. name: t,
  17219. type: u,
  17220. data: {
  17221. method: c,
  17222. params: h
  17223. }
  17224. };
  17225. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  17226. var n = t.data.method,
  17227. s = e.secretMethods || {},
  17228. r = s[n] || s["*"];
  17229. r && (t.secretType = r);
  17230. }(n, d);
  17231. p = !1;
  17232. _context54.prev = 5;
  17233. _context54.next = 8;
  17234. return e.callFunction(d);
  17235. case 8:
  17236. l = _context54.sent;
  17237. _context54.next = 14;
  17238. break;
  17239. case 11:
  17240. _context54.prev = 11;
  17241. _context54.t0 = _context54["catch"](5);
  17242. p = !0, l = {
  17243. result: new te(_context54.t0)
  17244. };
  17245. case 14:
  17246. _ref57 = l.result || {}, f = _ref57.errSubject, g = _ref57.errCode, m = _ref57.errMsg, y = _ref57.newToken;
  17247. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (re(y), Y(B, _objectSpread({}, y))), g)) {
  17248. _context54.next = 39;
  17249. break;
  17250. }
  17251. _e26 = m;
  17252. if (!(p && o)) {
  17253. _context54.next = 24;
  17254. break;
  17255. }
  17256. _context54.next = 20;
  17257. return o({
  17258. objectName: t,
  17259. methodName: c,
  17260. params: h,
  17261. errSubject: f,
  17262. errCode: g,
  17263. errMsg: m
  17264. });
  17265. case 20:
  17266. _context54.t1 = _context54.sent.errMsg;
  17267. if (_context54.t1) {
  17268. _context54.next = 23;
  17269. break;
  17270. }
  17271. _context54.t1 = m;
  17272. case 23:
  17273. _e26 = _context54.t1;
  17274. case 24:
  17275. if (!a) {
  17276. _context54.next = 37;
  17277. break;
  17278. }
  17279. if (!("toast" === i.type)) {
  17280. _context54.next = 29;
  17281. break;
  17282. }
  17283. uni.showToast({
  17284. title: _e26,
  17285. icon: "none"
  17286. });
  17287. _context54.next = 37;
  17288. break;
  17289. case 29:
  17290. if (!("modal" !== i.type)) {
  17291. _context54.next = 31;
  17292. break;
  17293. }
  17294. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  17295. case 31:
  17296. _context54.next = 33;
  17297. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53() {
  17298. var _ref59,
  17299. e,
  17300. t,
  17301. n,
  17302. s,
  17303. r,
  17304. _args2 = arguments;
  17305. return _regenerator.default.wrap(function _callee53$(_context53) {
  17306. while (1) {
  17307. switch (_context53.prev = _context53.next) {
  17308. case 0:
  17309. _ref59 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref59.title, t = _ref59.content, n = _ref59.showCancel, s = _ref59.cancelText, r = _ref59.confirmText;
  17310. return _context53.abrupt("return", new Promise(function (i, o) {
  17311. uni.showModal({
  17312. title: e,
  17313. content: t,
  17314. showCancel: n,
  17315. cancelText: s,
  17316. confirmText: r,
  17317. success: function success(e) {
  17318. i(e);
  17319. },
  17320. fail: function fail() {
  17321. i({
  17322. confirm: !1,
  17323. cancel: !0
  17324. });
  17325. }
  17326. });
  17327. }));
  17328. case 2:
  17329. case "end":
  17330. return _context53.stop();
  17331. }
  17332. }
  17333. }, _callee53);
  17334. }))({
  17335. title: "提示",
  17336. content: _e26,
  17337. showCancel: i.retry,
  17338. cancelText: "取消",
  17339. confirmText: i.retry ? "重试" : "确定"
  17340. });
  17341. case 33:
  17342. _yield = _context54.sent;
  17343. _t19 = _yield.confirm;
  17344. if (!(i.retry && _t19)) {
  17345. _context54.next = 37;
  17346. break;
  17347. }
  17348. return _context54.abrupt("return", s.apply(void 0, h));
  17349. case 37:
  17350. _n15 = new te({
  17351. subject: f,
  17352. code: g,
  17353. message: m,
  17354. requestId: l.requestId
  17355. });
  17356. throw _n15.detail = l.result, Y(j, {
  17357. type: z,
  17358. content: _n15
  17359. }), _n15;
  17360. case 39:
  17361. return _context54.abrupt("return", (Y(j, {
  17362. type: z,
  17363. content: l.result
  17364. }), l.result));
  17365. case 40:
  17366. case "end":
  17367. return _context54.stop();
  17368. }
  17369. }
  17370. }, _callee54, null, [[5, 11]]);
  17371. }));
  17372. function s() {
  17373. return _s15.apply(this, arguments);
  17374. }
  17375. return s;
  17376. }(),
  17377. interceptorName: "callObject",
  17378. getCallbackArgs: function getCallbackArgs() {
  17379. var _ref60 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17380. e = _ref60.params;
  17381. return {
  17382. objectName: t,
  17383. methodName: c,
  17384. params: e
  17385. };
  17386. }
  17387. });
  17388. }
  17389. });
  17390. };
  17391. }
  17392. function Ls(e) {
  17393. return L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
  17394. }
  17395. function Rs() {
  17396. return _Rs.apply(this, arguments);
  17397. }
  17398. function _Rs() {
  17399. _Rs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57() {
  17400. var _ref72,
  17401. e,
  17402. _ref72$callLoginByWei,
  17403. t,
  17404. n,
  17405. s,
  17406. r,
  17407. _args7 = arguments;
  17408. return _regenerator.default.wrap(function _callee57$(_context57) {
  17409. while (1) {
  17410. switch (_context57.prev = _context57.next) {
  17411. case 0:
  17412. _ref72 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, e = _ref72.openid, _ref72$callLoginByWei = _ref72.callLoginByWeixin, t = _ref72$callLoginByWei === void 0 ? !1 : _ref72$callLoginByWei;
  17413. n = Ls(this);
  17414. if (!("mp-weixin" !== P)) {
  17415. _context57.next = 4;
  17416. break;
  17417. }
  17418. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(P, "`"));
  17419. case 4:
  17420. if (!(e && t)) {
  17421. _context57.next = 6;
  17422. break;
  17423. }
  17424. throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");
  17425. case 6:
  17426. if (!e) {
  17427. _context57.next = 8;
  17428. break;
  17429. }
  17430. return _context57.abrupt("return", (n.mpWeixinOpenid = e, {}));
  17431. case 8:
  17432. _context57.next = 10;
  17433. return new Promise(function (e, t) {
  17434. uni.login({
  17435. success: function success(t) {
  17436. e(t.code);
  17437. },
  17438. fail: function fail(e) {
  17439. t(new Error(e.errMsg));
  17440. }
  17441. });
  17442. });
  17443. case 10:
  17444. s = _context57.sent;
  17445. r = this.importObject("uni-id-co", {
  17446. customUI: !0
  17447. });
  17448. _context57.next = 14;
  17449. return r.secureNetworkHandshakeByWeixin({
  17450. code: s,
  17451. callLoginByWeixin: t
  17452. });
  17453. case 14:
  17454. n.mpWeixinCode = s;
  17455. return _context57.abrupt("return", {
  17456. code: s
  17457. });
  17458. case 16:
  17459. case "end":
  17460. return _context57.stop();
  17461. }
  17462. }
  17463. }, _callee57, this);
  17464. }));
  17465. return _Rs.apply(this, arguments);
  17466. }
  17467. function Us(_x39) {
  17468. return _Us.apply(this, arguments);
  17469. }
  17470. function _Us() {
  17471. _Us = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58(e) {
  17472. var t;
  17473. return _regenerator.default.wrap(function _callee58$(_context58) {
  17474. while (1) {
  17475. switch (_context58.prev = _context58.next) {
  17476. case 0:
  17477. t = Ls(this);
  17478. return _context58.abrupt("return", (t.initPromise || (t.initPromise = Rs.call(this, e).then(function (e) {
  17479. return e;
  17480. }).catch(function (e) {
  17481. throw delete t.initPromise, e;
  17482. })), t.initPromise));
  17483. case 2:
  17484. case "end":
  17485. return _context58.stop();
  17486. }
  17487. }
  17488. }, _callee58, this);
  17489. }));
  17490. return _Us.apply(this, arguments);
  17491. }
  17492. function Ns(e) {
  17493. return function () {
  17494. var _ref61 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17495. t = _ref61.openid,
  17496. _ref61$callLoginByWei = _ref61.callLoginByWeixin,
  17497. n = _ref61$callLoginByWei === void 0 ? !1 : _ref61$callLoginByWei;
  17498. return Us.call(e, {
  17499. openid: t,
  17500. callLoginByWeixin: n
  17501. });
  17502. };
  17503. }
  17504. function Ds(e) {
  17505. var t = {
  17506. getSystemInfo: uni.getSystemInfo,
  17507. getPushClientId: uni.getPushClientId
  17508. };
  17509. return function (n) {
  17510. return new Promise(function (s, r) {
  17511. t[e](_objectSpread(_objectSpread({}, n), {}, {
  17512. success: function success(e) {
  17513. s(e);
  17514. },
  17515. fail: function fail(e) {
  17516. r(e);
  17517. }
  17518. }));
  17519. });
  17520. };
  17521. }
  17522. var Ms = /*#__PURE__*/function (_ref62) {
  17523. (0, _inherits2.default)(Ms, _ref62);
  17524. var _super12 = _createSuper(Ms);
  17525. function Ms() {
  17526. var _this23;
  17527. (0, _classCallCheck2.default)(this, Ms);
  17528. _this23 = _super12.call(this), _this23._uniPushMessageCallback = _this23._receivePushMessage.bind((0, _assertThisInitialized2.default)(_this23)), _this23._currentMessageId = -1, _this23._payloadQueue = [];
  17529. return _this23;
  17530. }
  17531. (0, _createClass2.default)(Ms, [{
  17532. key: "init",
  17533. value: function init() {
  17534. var _this24 = this;
  17535. return Promise.all([Ds("getSystemInfo")(), Ds("getPushClientId")()]).then(function () {
  17536. var _ref63 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [],
  17537. _ref64 = (0, _slicedToArray2.default)(_ref63, 2),
  17538. _ref64$ = _ref64[0];
  17539. _ref64$ = _ref64$ === void 0 ? {} : _ref64$;
  17540. var e = _ref64$.appId,
  17541. _ref64$2 = _ref64[1];
  17542. _ref64$2 = _ref64$2 === void 0 ? {} : _ref64$2;
  17543. var t = _ref64$2.cid;
  17544. if (!e) throw new Error("Invalid appId, please check the manifest.json file");
  17545. if (!t) throw new Error("Invalid push client id");
  17546. _this24._appId = e, _this24._pushClientId = t, _this24._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), _this24.emit("open"), _this24._initMessageListener();
  17547. }, function (e) {
  17548. throw _this24.emit("error", e), _this24.close(), e;
  17549. });
  17550. }
  17551. }, {
  17552. key: "open",
  17553. value: function () {
  17554. var _open = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55() {
  17555. return _regenerator.default.wrap(function _callee55$(_context55) {
  17556. while (1) {
  17557. switch (_context55.prev = _context55.next) {
  17558. case 0:
  17559. return _context55.abrupt("return", this.init());
  17560. case 1:
  17561. case "end":
  17562. return _context55.stop();
  17563. }
  17564. }
  17565. }, _callee55, this);
  17566. }));
  17567. function open() {
  17568. return _open.apply(this, arguments);
  17569. }
  17570. return open;
  17571. }()
  17572. }, {
  17573. key: "_isUniCloudSSE",
  17574. value: function _isUniCloudSSE(e) {
  17575. if ("receive" !== e.type) return !1;
  17576. var t = e && e.data && e.data.payload;
  17577. return !(!t || "UNI_CLOUD_SSE" !== t.channel || t.seqId !== this._seqId);
  17578. }
  17579. }, {
  17580. key: "_receivePushMessage",
  17581. value: function _receivePushMessage(e) {
  17582. if (!this._isUniCloudSSE(e)) return;
  17583. var t = e && e.data && e.data.payload,
  17584. n = t.action,
  17585. s = t.messageId,
  17586. r = t.message;
  17587. this._payloadQueue.push({
  17588. action: n,
  17589. messageId: s,
  17590. message: r
  17591. }), this._consumMessage();
  17592. }
  17593. }, {
  17594. key: "_consumMessage",
  17595. value: function _consumMessage() {
  17596. var _this25 = this;
  17597. for (;;) {
  17598. var _e27 = this._payloadQueue.find(function (e) {
  17599. return e.messageId === _this25._currentMessageId + 1;
  17600. });
  17601. if (!_e27) break;
  17602. this._currentMessageId++, this._parseMessagePayload(_e27);
  17603. }
  17604. }
  17605. }, {
  17606. key: "_parseMessagePayload",
  17607. value: function _parseMessagePayload(e) {
  17608. var t = e.action,
  17609. n = e.messageId,
  17610. s = e.message;
  17611. "end" === t ? this._end({
  17612. messageId: n,
  17613. message: s
  17614. }) : "message" === t && this._appendMessage({
  17615. messageId: n,
  17616. message: s
  17617. });
  17618. }
  17619. }, {
  17620. key: "_appendMessage",
  17621. value: function _appendMessage() {
  17622. var _ref65 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17623. e = _ref65.messageId,
  17624. t = _ref65.message;
  17625. this.emit("message", t);
  17626. }
  17627. }, {
  17628. key: "_end",
  17629. value: function _end() {
  17630. var _ref66 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17631. e = _ref66.messageId,
  17632. t = _ref66.message;
  17633. this.emit("end", t), this.close();
  17634. }
  17635. }, {
  17636. key: "_initMessageListener",
  17637. value: function _initMessageListener() {
  17638. uni.onPushMessage(this._uniPushMessageCallback);
  17639. }
  17640. }, {
  17641. key: "_destroy",
  17642. value: function _destroy() {
  17643. uni.offPushMessage(this._uniPushMessageCallback);
  17644. }
  17645. }, {
  17646. key: "toJSON",
  17647. value: function toJSON() {
  17648. return {
  17649. appId: this._appId,
  17650. pushClientId: this._pushClientId,
  17651. seqId: this._seqId
  17652. };
  17653. }
  17654. }, {
  17655. key: "close",
  17656. value: function close() {
  17657. this._destroy(), this.emit("close");
  17658. }
  17659. }]);
  17660. return Ms;
  17661. }( /*#__PURE__*/function () {
  17662. function _class6() {
  17663. (0, _classCallCheck2.default)(this, _class6);
  17664. this._callback = {};
  17665. }
  17666. (0, _createClass2.default)(_class6, [{
  17667. key: "addListener",
  17668. value: function addListener(e, t) {
  17669. this._callback[e] || (this._callback[e] = []), this._callback[e].push(t);
  17670. }
  17671. }, {
  17672. key: "on",
  17673. value: function on(e, t) {
  17674. return this.addListener(e, t);
  17675. }
  17676. }, {
  17677. key: "removeListener",
  17678. value: function removeListener(e, t) {
  17679. if (!t) throw new Error('The "listener" argument must be of type function. Received undefined');
  17680. var n = this._callback[e];
  17681. if (!n) return;
  17682. var s = function (e, t) {
  17683. for (var _n16 = e.length - 1; _n16 >= 0; _n16--) {
  17684. if (e[_n16] === t) return _n16;
  17685. }
  17686. return -1;
  17687. }(n, t);
  17688. n.splice(s, 1);
  17689. }
  17690. }, {
  17691. key: "off",
  17692. value: function off(e, t) {
  17693. return this.removeListener(e, t);
  17694. }
  17695. }, {
  17696. key: "removeAllListener",
  17697. value: function removeAllListener(e) {
  17698. delete this._callback[e];
  17699. }
  17700. }, {
  17701. key: "emit",
  17702. value: function emit(e) {
  17703. var n = this._callback[e];
  17704. for (var _len4 = arguments.length, t = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  17705. t[_key4 - 1] = arguments[_key4];
  17706. }
  17707. if (n) for (var _e28 = 0; _e28 < n.length; _e28++) {
  17708. n[_e28].apply(n, t);
  17709. }
  17710. }
  17711. }]);
  17712. return _class6;
  17713. }());
  17714. function qs(_x40, _x41) {
  17715. return _qs.apply(this, arguments);
  17716. }
  17717. function _qs() {
  17718. _qs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59(e, t) {
  17719. var n, _e32, s;
  17720. return _regenerator.default.wrap(function _callee59$(_context59) {
  17721. while (1) {
  17722. switch (_context59.prev = _context59.next) {
  17723. case 0:
  17724. n = "http://".concat(e, ":").concat(t, "/system/ping");
  17725. _context59.prev = 1;
  17726. _context59.next = 4;
  17727. return s = {
  17728. url: n,
  17729. timeout: 500
  17730. }, new Promise(function (e, t) {
  17731. ne.request(_objectSpread(_objectSpread({}, s), {}, {
  17732. success: function success(t) {
  17733. e(t);
  17734. },
  17735. fail: function fail(e) {
  17736. t(e);
  17737. }
  17738. }));
  17739. });
  17740. case 4:
  17741. _e32 = _context59.sent;
  17742. return _context59.abrupt("return", !(!_e32.data || 0 !== _e32.data.code));
  17743. case 8:
  17744. _context59.prev = 8;
  17745. _context59.t0 = _context59["catch"](1);
  17746. return _context59.abrupt("return", !1);
  17747. case 11:
  17748. case "end":
  17749. return _context59.stop();
  17750. }
  17751. }
  17752. }, _callee59, null, [[1, 8]]);
  17753. }));
  17754. return _qs.apply(this, arguments);
  17755. }
  17756. function Fs(_x42) {
  17757. return _Fs.apply(this, arguments);
  17758. }
  17759. function _Fs() {
  17760. _Fs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61(e) {
  17761. var _ae2, _e33, _t21, t, _t$debugInfo, n, s, _yield2, r, i, o;
  17762. return _regenerator.default.wrap(function _callee61$(_context61) {
  17763. while (1) {
  17764. switch (_context61.prev = _context61.next) {
  17765. case 0:
  17766. if (S) {
  17767. _context61.next = 2;
  17768. break;
  17769. }
  17770. return _context61.abrupt("return", Promise.resolve());
  17771. case 2:
  17772. if ("app" === P) {
  17773. _ae2 = ae(), _e33 = _ae2.osName, _t21 = _ae2.osVersion;
  17774. "ios" === _e33 && function (e) {
  17775. if (!e || "string" != typeof e) return 0;
  17776. var t = e.match(/^(\d+)./);
  17777. return t && t[1] ? parseInt(t[1]) : 0;
  17778. }(_t21) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)");
  17779. }
  17780. t = e.__dev__;
  17781. if (t.debugInfo) {
  17782. _context61.next = 6;
  17783. break;
  17784. }
  17785. return _context61.abrupt("return");
  17786. case 6:
  17787. _t$debugInfo = t.debugInfo;
  17788. n = _t$debugInfo.address;
  17789. s = _t$debugInfo.servePort;
  17790. _context61.next = 11;
  17791. return function () {
  17792. var _ref73 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee60(e, t) {
  17793. var n, _s16, _r9;
  17794. return _regenerator.default.wrap(function _callee60$(_context60) {
  17795. while (1) {
  17796. switch (_context60.prev = _context60.next) {
  17797. case 0:
  17798. _s16 = 0;
  17799. case 1:
  17800. if (!(_s16 < e.length)) {
  17801. _context60.next = 11;
  17802. break;
  17803. }
  17804. _r9 = e[_s16];
  17805. _context60.next = 5;
  17806. return qs(_r9, t);
  17807. case 5:
  17808. if (!_context60.sent) {
  17809. _context60.next = 8;
  17810. break;
  17811. }
  17812. n = _r9;
  17813. return _context60.abrupt("break", 11);
  17814. case 8:
  17815. _s16++;
  17816. _context60.next = 1;
  17817. break;
  17818. case 11:
  17819. return _context60.abrupt("return", {
  17820. address: n,
  17821. port: t
  17822. });
  17823. case 12:
  17824. case "end":
  17825. return _context60.stop();
  17826. }
  17827. }
  17828. }, _callee60);
  17829. }));
  17830. return function (_x43, _x44) {
  17831. return _ref73.apply(this, arguments);
  17832. };
  17833. }()(n, s);
  17834. case 11:
  17835. _yield2 = _context61.sent;
  17836. r = _yield2.address;
  17837. if (!r) {
  17838. _context61.next = 15;
  17839. break;
  17840. }
  17841. return _context61.abrupt("return", (t.localAddress = r, void (t.localPort = s)));
  17842. case 15:
  17843. i = console["app" === P ? "error" : "warn"];
  17844. o = "";
  17845. if (!("remote" === t.debugInfo.initialLaunchType ? (t.debugInfo.forceRemote = !0, o = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。") : o = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。", o += "\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数", "web" === P && (o += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), 0 === P.indexOf("mp-") && (o += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), !t.debugInfo.forceRemote)) {
  17846. _context61.next = 19;
  17847. break;
  17848. }
  17849. throw new Error(o);
  17850. case 19:
  17851. i(o);
  17852. case 20:
  17853. case "end":
  17854. return _context61.stop();
  17855. }
  17856. }
  17857. }, _callee61);
  17858. }));
  17859. return _Fs.apply(this, arguments);
  17860. }
  17861. function Ks(e) {
  17862. e._initPromiseHub || (e._initPromiseHub = new v({
  17863. createPromise: function createPromise() {
  17864. var t = Promise.resolve();
  17865. var n;
  17866. n = 1, t = new Promise(function (e) {
  17867. setTimeout(function () {
  17868. e();
  17869. }, n);
  17870. });
  17871. var s = e.auth();
  17872. return t.then(function () {
  17873. return s.getLoginState();
  17874. }).then(function (e) {
  17875. return e ? Promise.resolve() : s.signInAnonymously();
  17876. });
  17877. }
  17878. }));
  17879. }
  17880. var js = {
  17881. tcb: It,
  17882. tencent: It,
  17883. aliyun: de,
  17884. private: bt,
  17885. alipay: Et
  17886. };
  17887. var $s = new ( /*#__PURE__*/function () {
  17888. function _class7() {
  17889. (0, _classCallCheck2.default)(this, _class7);
  17890. }
  17891. (0, _createClass2.default)(_class7, [{
  17892. key: "init",
  17893. value: function init(e) {
  17894. var t = {};
  17895. var n = js[e.provider];
  17896. if (!n) throw new Error("未提供正确的provider参数");
  17897. t = n.init(e), S && function (e) {
  17898. if (!S) return;
  17899. var t = {};
  17900. e.__dev__ = t, t.debugLog = S && ("web" === P && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === P);
  17901. var n = T;
  17902. n && !n.code && (t.debugInfo = n);
  17903. var s = new v({
  17904. createPromise: function createPromise() {
  17905. return Fs(e);
  17906. }
  17907. });
  17908. t.initLocalNetwork = function () {
  17909. return s.exec();
  17910. };
  17911. }(t), Ks(t), Fn(t), function (e) {
  17912. var t = e.uploadFile;
  17913. e.uploadFile = function (e) {
  17914. return t.call(this, e);
  17915. };
  17916. }(t), function (e) {
  17917. e.database = function (t) {
  17918. if (t && Object.keys(t).length > 0) return e.init(t).database();
  17919. if (this._database) return this._database;
  17920. var n = Yn(Qn, {
  17921. uniClient: e
  17922. });
  17923. return this._database = n, n;
  17924. }, e.databaseForJQL = function (t) {
  17925. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  17926. if (this._databaseForJQL) return this._databaseForJQL;
  17927. var n = Yn(Qn, {
  17928. uniClient: e,
  17929. isJQL: !0
  17930. });
  17931. return this._databaseForJQL = n, n;
  17932. };
  17933. }(t), function (e) {
  17934. e.getCurrentUserInfo = Ps, e.chooseAndUploadFile = Cs.initChooseAndUploadFile(e), Object.assign(e, {
  17935. get mixinDatacom() {
  17936. return Os(e);
  17937. }
  17938. }), e.SSEChannel = Ms, e.initSecureNetworkByWeixin = Ns(e), e.importObject = Es(e);
  17939. }(t);
  17940. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  17941. if (!t[e]) return;
  17942. var n = t[e];
  17943. t[e] = function () {
  17944. return n.apply(t, Array.from(arguments));
  17945. }, t[e] = function (e, t) {
  17946. return function (n) {
  17947. var _this26 = this;
  17948. var s = !1;
  17949. if ("callFunction" === t) {
  17950. var _e29 = n && n.type || c;
  17951. s = _e29 !== c;
  17952. }
  17953. var r = "callFunction" === t && !s,
  17954. i = this._initPromiseHub.exec();
  17955. n = n || {};
  17956. var _ee2 = ee(n),
  17957. o = _ee2.success,
  17958. a = _ee2.fail,
  17959. u = _ee2.complete,
  17960. h = i.then(function () {
  17961. return s ? Promise.resolve() : M(q(t, "invoke"), n);
  17962. }).then(function () {
  17963. return e.call(_this26, n);
  17964. }).then(function (e) {
  17965. return s ? Promise.resolve(e) : M(q(t, "success"), e).then(function () {
  17966. return M(q(t, "complete"), e);
  17967. }).then(function () {
  17968. return r && Y(j, {
  17969. type: H,
  17970. content: e
  17971. }), Promise.resolve(e);
  17972. });
  17973. }, function (e) {
  17974. return s ? Promise.reject(e) : M(q(t, "fail"), e).then(function () {
  17975. return M(q(t, "complete"), e);
  17976. }).then(function () {
  17977. return Y(j, {
  17978. type: H,
  17979. content: e
  17980. }), Promise.reject(e);
  17981. });
  17982. });
  17983. if (!(o || a || u)) return h;
  17984. h.then(function (e) {
  17985. o && o(e), u && u(e), r && Y(j, {
  17986. type: H,
  17987. content: e
  17988. });
  17989. }, function (e) {
  17990. a && a(e), u && u(e), r && Y(j, {
  17991. type: H,
  17992. content: e
  17993. });
  17994. });
  17995. };
  17996. }(t[e], e).bind(t);
  17997. }), t.init = this.init, t;
  17998. }
  17999. }]);
  18000. return _class7;
  18001. }())();
  18002. (function () {
  18003. var e = C;
  18004. var t = {};
  18005. if (e && 1 === e.length) t = e[0], $s = $s.init(t), $s._isDefault = !0;else {
  18006. var _t20 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];
  18007. var _n17;
  18008. _n17 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : x ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t20.forEach(function (e) {
  18009. $s[e] = function () {
  18010. return console.error(_n17), Promise.reject(new te({
  18011. code: "SYS_ERR",
  18012. message: _n17
  18013. }));
  18014. };
  18015. });
  18016. }
  18017. Object.assign($s, {
  18018. get mixinDatacom() {
  18019. return Os($s);
  18020. }
  18021. }), Ss($s), $s.addInterceptor = N, $s.removeInterceptor = D, $s.interceptObject = F, S && "web" === P && (window.uniCloud = $s);
  18022. })();
  18023. var Bs = $s;
  18024. exports.default = Bs;
  18025. /* 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"]))
  18026. /***/ }),
  18027. /***/ 29:
  18028. /*!************************************************************************************************!*\
  18029. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  18030. \************************************************************************************************/
  18031. /*! no static exports found */
  18032. /***/ (function(module, exports, __webpack_require__) {
  18033. // TODO(Babel 8): Remove this file.
  18034. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 30)();
  18035. module.exports = runtime;
  18036. /***/ }),
  18037. /***/ 3:
  18038. /*!***********************************!*\
  18039. !*** (webpack)/buildin/global.js ***!
  18040. \***********************************/
  18041. /*! no static exports found */
  18042. /***/ (function(module, exports) {
  18043. var g;
  18044. // This works in non-strict mode
  18045. g = (function() {
  18046. return this;
  18047. })();
  18048. try {
  18049. // This works if eval is allowed (see CSP)
  18050. g = g || new Function("return this")();
  18051. } catch (e) {
  18052. // This works if the window reference is available
  18053. if (typeof window === "object") g = window;
  18054. }
  18055. // g can still be undefined, but nothing to do about it...
  18056. // We return undefined, instead of nothing here, so it's
  18057. // easier to handle this case. if(!global) { ...}
  18058. module.exports = g;
  18059. /***/ }),
  18060. /***/ 30:
  18061. /*!*******************************************************************!*\
  18062. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  18063. \*******************************************************************/
  18064. /*! no static exports found */
  18065. /***/ (function(module, exports, __webpack_require__) {
  18066. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18067. function _regeneratorRuntime() {
  18068. "use strict";
  18069. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  18070. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  18071. return e;
  18072. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18073. var t,
  18074. e = {},
  18075. r = Object.prototype,
  18076. n = r.hasOwnProperty,
  18077. o = Object.defineProperty || function (t, e, r) {
  18078. t[e] = r.value;
  18079. },
  18080. i = "function" == typeof Symbol ? Symbol : {},
  18081. a = i.iterator || "@@iterator",
  18082. c = i.asyncIterator || "@@asyncIterator",
  18083. u = i.toStringTag || "@@toStringTag";
  18084. function define(t, e, r) {
  18085. return Object.defineProperty(t, e, {
  18086. value: r,
  18087. enumerable: !0,
  18088. configurable: !0,
  18089. writable: !0
  18090. }), t[e];
  18091. }
  18092. try {
  18093. define({}, "");
  18094. } catch (t) {
  18095. define = function define(t, e, r) {
  18096. return t[e] = r;
  18097. };
  18098. }
  18099. function wrap(t, e, r, n) {
  18100. var i = e && e.prototype instanceof Generator ? e : Generator,
  18101. a = Object.create(i.prototype),
  18102. c = new Context(n || []);
  18103. return o(a, "_invoke", {
  18104. value: makeInvokeMethod(t, r, c)
  18105. }), a;
  18106. }
  18107. function tryCatch(t, e, r) {
  18108. try {
  18109. return {
  18110. type: "normal",
  18111. arg: t.call(e, r)
  18112. };
  18113. } catch (t) {
  18114. return {
  18115. type: "throw",
  18116. arg: t
  18117. };
  18118. }
  18119. }
  18120. e.wrap = wrap;
  18121. var h = "suspendedStart",
  18122. l = "suspendedYield",
  18123. f = "executing",
  18124. s = "completed",
  18125. y = {};
  18126. function Generator() {}
  18127. function GeneratorFunction() {}
  18128. function GeneratorFunctionPrototype() {}
  18129. var p = {};
  18130. define(p, a, function () {
  18131. return this;
  18132. });
  18133. var d = Object.getPrototypeOf,
  18134. v = d && d(d(values([])));
  18135. v && v !== r && n.call(v, a) && (p = v);
  18136. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  18137. function defineIteratorMethods(t) {
  18138. ["next", "throw", "return"].forEach(function (e) {
  18139. define(t, e, function (t) {
  18140. return this._invoke(e, t);
  18141. });
  18142. });
  18143. }
  18144. function AsyncIterator(t, e) {
  18145. function invoke(r, o, i, a) {
  18146. var c = tryCatch(t[r], t, o);
  18147. if ("throw" !== c.type) {
  18148. var u = c.arg,
  18149. h = u.value;
  18150. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  18151. invoke("next", t, i, a);
  18152. }, function (t) {
  18153. invoke("throw", t, i, a);
  18154. }) : e.resolve(h).then(function (t) {
  18155. u.value = t, i(u);
  18156. }, function (t) {
  18157. return invoke("throw", t, i, a);
  18158. });
  18159. }
  18160. a(c.arg);
  18161. }
  18162. var r;
  18163. o(this, "_invoke", {
  18164. value: function value(t, n) {
  18165. function callInvokeWithMethodAndArg() {
  18166. return new e(function (e, r) {
  18167. invoke(t, n, e, r);
  18168. });
  18169. }
  18170. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  18171. }
  18172. });
  18173. }
  18174. function makeInvokeMethod(e, r, n) {
  18175. var o = h;
  18176. return function (i, a) {
  18177. if (o === f) throw new Error("Generator is already running");
  18178. if (o === s) {
  18179. if ("throw" === i) throw a;
  18180. return {
  18181. value: t,
  18182. done: !0
  18183. };
  18184. }
  18185. for (n.method = i, n.arg = a;;) {
  18186. var c = n.delegate;
  18187. if (c) {
  18188. var u = maybeInvokeDelegate(c, n);
  18189. if (u) {
  18190. if (u === y) continue;
  18191. return u;
  18192. }
  18193. }
  18194. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  18195. if (o === h) throw o = s, n.arg;
  18196. n.dispatchException(n.arg);
  18197. } else "return" === n.method && n.abrupt("return", n.arg);
  18198. o = f;
  18199. var p = tryCatch(e, r, n);
  18200. if ("normal" === p.type) {
  18201. if (o = n.done ? s : l, p.arg === y) continue;
  18202. return {
  18203. value: p.arg,
  18204. done: n.done
  18205. };
  18206. }
  18207. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  18208. }
  18209. };
  18210. }
  18211. function maybeInvokeDelegate(e, r) {
  18212. var n = r.method,
  18213. o = e.iterator[n];
  18214. 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;
  18215. var i = tryCatch(o, e.iterator, r.arg);
  18216. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  18217. var a = i.arg;
  18218. 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);
  18219. }
  18220. function pushTryEntry(t) {
  18221. var e = {
  18222. tryLoc: t[0]
  18223. };
  18224. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  18225. }
  18226. function resetTryEntry(t) {
  18227. var e = t.completion || {};
  18228. e.type = "normal", delete e.arg, t.completion = e;
  18229. }
  18230. function Context(t) {
  18231. this.tryEntries = [{
  18232. tryLoc: "root"
  18233. }], t.forEach(pushTryEntry, this), this.reset(!0);
  18234. }
  18235. function values(e) {
  18236. if (e || "" === e) {
  18237. var r = e[a];
  18238. if (r) return r.call(e);
  18239. if ("function" == typeof e.next) return e;
  18240. if (!isNaN(e.length)) {
  18241. var o = -1,
  18242. i = function next() {
  18243. for (; ++o < e.length;) {
  18244. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  18245. }
  18246. return next.value = t, next.done = !0, next;
  18247. };
  18248. return i.next = i;
  18249. }
  18250. }
  18251. throw new TypeError(_typeof(e) + " is not iterable");
  18252. }
  18253. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  18254. value: GeneratorFunctionPrototype,
  18255. configurable: !0
  18256. }), o(GeneratorFunctionPrototype, "constructor", {
  18257. value: GeneratorFunction,
  18258. configurable: !0
  18259. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  18260. var e = "function" == typeof t && t.constructor;
  18261. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  18262. }, e.mark = function (t) {
  18263. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  18264. }, e.awrap = function (t) {
  18265. return {
  18266. __await: t
  18267. };
  18268. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  18269. return this;
  18270. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  18271. void 0 === i && (i = Promise);
  18272. var a = new AsyncIterator(wrap(t, r, n, o), i);
  18273. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  18274. return t.done ? t.value : a.next();
  18275. });
  18276. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  18277. return this;
  18278. }), define(g, "toString", function () {
  18279. return "[object Generator]";
  18280. }), e.keys = function (t) {
  18281. var e = Object(t),
  18282. r = [];
  18283. for (var n in e) {
  18284. r.push(n);
  18285. }
  18286. return r.reverse(), function next() {
  18287. for (; r.length;) {
  18288. var t = r.pop();
  18289. if (t in e) return next.value = t, next.done = !1, next;
  18290. }
  18291. return next.done = !0, next;
  18292. };
  18293. }, e.values = values, Context.prototype = {
  18294. constructor: Context,
  18295. reset: function reset(e) {
  18296. 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) {
  18297. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  18298. }
  18299. },
  18300. stop: function stop() {
  18301. this.done = !0;
  18302. var t = this.tryEntries[0].completion;
  18303. if ("throw" === t.type) throw t.arg;
  18304. return this.rval;
  18305. },
  18306. dispatchException: function dispatchException(e) {
  18307. if (this.done) throw e;
  18308. var r = this;
  18309. function handle(n, o) {
  18310. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  18311. }
  18312. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  18313. var i = this.tryEntries[o],
  18314. a = i.completion;
  18315. if ("root" === i.tryLoc) return handle("end");
  18316. if (i.tryLoc <= this.prev) {
  18317. var c = n.call(i, "catchLoc"),
  18318. u = n.call(i, "finallyLoc");
  18319. if (c && u) {
  18320. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  18321. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  18322. } else if (c) {
  18323. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  18324. } else {
  18325. if (!u) throw new Error("try statement without catch or finally");
  18326. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  18327. }
  18328. }
  18329. }
  18330. },
  18331. abrupt: function abrupt(t, e) {
  18332. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  18333. var o = this.tryEntries[r];
  18334. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  18335. var i = o;
  18336. break;
  18337. }
  18338. }
  18339. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  18340. var a = i ? i.completion : {};
  18341. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  18342. },
  18343. complete: function complete(t, e) {
  18344. if ("throw" === t.type) throw t.arg;
  18345. 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;
  18346. },
  18347. finish: function finish(t) {
  18348. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  18349. var r = this.tryEntries[e];
  18350. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  18351. }
  18352. },
  18353. "catch": function _catch(t) {
  18354. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  18355. var r = this.tryEntries[e];
  18356. if (r.tryLoc === t) {
  18357. var n = r.completion;
  18358. if ("throw" === n.type) {
  18359. var o = n.arg;
  18360. resetTryEntry(r);
  18361. }
  18362. return o;
  18363. }
  18364. }
  18365. throw new Error("illegal catch attempt");
  18366. },
  18367. delegateYield: function delegateYield(e, r, n) {
  18368. return this.delegate = {
  18369. iterator: values(e),
  18370. resultName: r,
  18371. nextLoc: n
  18372. }, "next" === this.method && (this.arg = t), y;
  18373. }
  18374. }, e;
  18375. }
  18376. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18377. /***/ }),
  18378. /***/ 31:
  18379. /*!**********************************************************************!*\
  18380. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  18381. \**********************************************************************/
  18382. /*! no static exports found */
  18383. /***/ (function(module, exports) {
  18384. function _assertThisInitialized(self) {
  18385. if (self === void 0) {
  18386. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  18387. }
  18388. return self;
  18389. }
  18390. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18391. /***/ }),
  18392. /***/ 32:
  18393. /*!*****************************************************************!*\
  18394. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  18395. \*****************************************************************/
  18396. /*! no static exports found */
  18397. /***/ (function(module, exports) {
  18398. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  18399. try {
  18400. var info = gen[key](arg);
  18401. var value = info.value;
  18402. } catch (error) {
  18403. reject(error);
  18404. return;
  18405. }
  18406. if (info.done) {
  18407. resolve(value);
  18408. } else {
  18409. Promise.resolve(value).then(_next, _throw);
  18410. }
  18411. }
  18412. function _asyncToGenerator(fn) {
  18413. return function () {
  18414. var self = this,
  18415. args = arguments;
  18416. return new Promise(function (resolve, reject) {
  18417. var gen = fn.apply(self, args);
  18418. function _next(value) {
  18419. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  18420. }
  18421. function _throw(err) {
  18422. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  18423. }
  18424. _next(undefined);
  18425. });
  18426. };
  18427. }
  18428. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18429. /***/ }),
  18430. /***/ 33:
  18431. /*!*********************************************************!*\
  18432. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  18433. \*********************************************************/
  18434. /*! no static exports found */
  18435. /***/ (function(module, exports, __webpack_require__) {
  18436. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  18437. function _inherits(subClass, superClass) {
  18438. if (typeof superClass !== "function" && superClass !== null) {
  18439. throw new TypeError("Super expression must either be null or a function");
  18440. }
  18441. subClass.prototype = Object.create(superClass && superClass.prototype, {
  18442. constructor: {
  18443. value: subClass,
  18444. writable: true,
  18445. configurable: true
  18446. }
  18447. });
  18448. Object.defineProperty(subClass, "prototype", {
  18449. writable: false
  18450. });
  18451. if (superClass) setPrototypeOf(subClass, superClass);
  18452. }
  18453. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18454. /***/ }),
  18455. /***/ 34:
  18456. /*!**************************************************************************!*\
  18457. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  18458. \**************************************************************************/
  18459. /*! no static exports found */
  18460. /***/ (function(module, exports, __webpack_require__) {
  18461. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18462. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 31);
  18463. function _possibleConstructorReturn(self, call) {
  18464. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  18465. return call;
  18466. } else if (call !== void 0) {
  18467. throw new TypeError("Derived constructors may only return object or undefined");
  18468. }
  18469. return assertThisInitialized(self);
  18470. }
  18471. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18472. /***/ }),
  18473. /***/ 35:
  18474. /*!***************************************************************!*\
  18475. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  18476. \***************************************************************/
  18477. /*! no static exports found */
  18478. /***/ (function(module, exports) {
  18479. function _getPrototypeOf(o) {
  18480. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  18481. return o.__proto__ || Object.getPrototypeOf(o);
  18482. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18483. return _getPrototypeOf(o);
  18484. }
  18485. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18486. /***/ }),
  18487. /***/ 36:
  18488. /*!****************************************************************!*\
  18489. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  18490. \****************************************************************/
  18491. /*! no static exports found */
  18492. /***/ (function(module, exports, __webpack_require__) {
  18493. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 35);
  18494. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  18495. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 37);
  18496. var construct = __webpack_require__(/*! ./construct.js */ 15);
  18497. function _wrapNativeSuper(Class) {
  18498. var _cache = typeof Map === "function" ? new Map() : undefined;
  18499. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  18500. if (Class === null || !isNativeFunction(Class)) return Class;
  18501. if (typeof Class !== "function") {
  18502. throw new TypeError("Super expression must either be null or a function");
  18503. }
  18504. if (typeof _cache !== "undefined") {
  18505. if (_cache.has(Class)) return _cache.get(Class);
  18506. _cache.set(Class, Wrapper);
  18507. }
  18508. function Wrapper() {
  18509. return construct(Class, arguments, getPrototypeOf(this).constructor);
  18510. }
  18511. Wrapper.prototype = Object.create(Class.prototype, {
  18512. constructor: {
  18513. value: Wrapper,
  18514. enumerable: false,
  18515. writable: true,
  18516. configurable: true
  18517. }
  18518. });
  18519. return setPrototypeOf(Wrapper, Class);
  18520. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18521. return _wrapNativeSuper(Class);
  18522. }
  18523. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18524. /***/ }),
  18525. /***/ 37:
  18526. /*!*****************************************************************!*\
  18527. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  18528. \*****************************************************************/
  18529. /*! no static exports found */
  18530. /***/ (function(module, exports) {
  18531. function _isNativeFunction(fn) {
  18532. try {
  18533. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  18534. } catch (e) {
  18535. return typeof fn === "function";
  18536. }
  18537. }
  18538. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18539. /***/ }),
  18540. /***/ 38:
  18541. /*!****************************************************************************!*\
  18542. !*** D:/AAAcompany_product/产品化管理端/pages.json?{"type":"origin-pages-json"} ***!
  18543. \****************************************************************************/
  18544. /*! no static exports found */
  18545. /***/ (function(module, exports, __webpack_require__) {
  18546. "use strict";
  18547. Object.defineProperty(exports, "__esModule", {
  18548. value: true
  18549. });
  18550. exports.default = void 0;
  18551. var _default = {
  18552. "pages": [{
  18553. "path": "pages/login/login",
  18554. "style": {
  18555. "navigationBarTitleText": "登录",
  18556. "app-plus": {
  18557. "titleNView": {
  18558. "buttons": [{
  18559. "text": "",
  18560. "fontSrc": "/static/uni.ttf",
  18561. "fontSize": "22px",
  18562. "color": "#FFFFFF"
  18563. }]
  18564. }
  18565. },
  18566. "usingComponents": {
  18567. "van-button": "/wxcomponents/weapp/dist/button/index",
  18568. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18569. "van-field": "/wxcomponents/weapp/dist/field/index",
  18570. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18571. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18572. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  18573. }
  18574. }
  18575. }, {
  18576. "path": "pages/index/index",
  18577. "style": {
  18578. "navigationBarTitleText": "首页"
  18579. }
  18580. }, {
  18581. "path": "pages/mine/mine",
  18582. "style": {
  18583. "navigationBarTitleText": "我的",
  18584. "app-plus": {
  18585. "bounce": "vertical",
  18586. "titleNView": {
  18587. "buttons": [{
  18588. "text": "",
  18589. "fontSrc": "/static/uni.ttf",
  18590. "fontSize": "22px",
  18591. "color": "#FFFFFF"
  18592. }]
  18593. }
  18594. },
  18595. "usingComponents": {
  18596. "van-button": "/wxcomponents/weapp/dist/button/index",
  18597. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18598. "van-field": "/wxcomponents/weapp/dist/field/index",
  18599. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18600. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18601. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18602. "van-icon": "/wxcomponents/weapp/dist/icon/index"
  18603. }
  18604. }
  18605. }],
  18606. "subPackages": [{
  18607. "root": "pages/subPackages",
  18608. "pages": [{
  18609. "path": "gocompnay/index",
  18610. "style": {
  18611. "navigationBarTitleText": "企业端",
  18612. "enablePullDownRefresh": true,
  18613. "onReachBottomDistance": 100,
  18614. "app-plus": {
  18615. "bounce": "vertical",
  18616. "titleNView": {
  18617. "buttons": [{
  18618. "text": "",
  18619. "fontSrc": "/static/uni.ttf",
  18620. "fontSize": "22px",
  18621. "color": "#FFFFFF"
  18622. }]
  18623. }
  18624. },
  18625. "component": true
  18626. }
  18627. }, {
  18628. "path": "peripheralService/index",
  18629. "style": {
  18630. "navigationBarTitleText": "周边发布",
  18631. "enablePullDownRefresh": true,
  18632. "onReachBottomDistance": 100,
  18633. "app-plus": {
  18634. "bounce": "vertical",
  18635. "titleNView": {
  18636. "buttons": [{
  18637. "text": "",
  18638. "fontSrc": "/static/uni.ttf",
  18639. "fontSize": "22px",
  18640. "color": "#FFFFFF"
  18641. }]
  18642. }
  18643. },
  18644. "component": true,
  18645. "usingComponents": {
  18646. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18647. "van-button": "/wxcomponents/weapp/dist/button/index",
  18648. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18649. "van-field": "/wxcomponents/weapp/dist/field/index",
  18650. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18651. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18652. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18653. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18654. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18655. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18656. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18657. }
  18658. }
  18659. }, {
  18660. "path": "eventRelease/index",
  18661. "style": {
  18662. "navigationBarTitleText": "活动发布",
  18663. "enablePullDownRefresh": true,
  18664. "onReachBottomDistance": 100,
  18665. "app-plus": {
  18666. "bounce": "vertical",
  18667. "titleNView": {
  18668. "buttons": [{
  18669. "text": "",
  18670. "fontSrc": "/static/uni.ttf",
  18671. "fontSize": "22px",
  18672. "color": "#FFFFFF"
  18673. }]
  18674. }
  18675. },
  18676. "component": true,
  18677. "usingComponents": {
  18678. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18679. "van-button": "/wxcomponents/weapp/dist/button/index",
  18680. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18681. "van-field": "/wxcomponents/weapp/dist/field/index",
  18682. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18683. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18684. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18685. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18686. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18687. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18688. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18689. }
  18690. }
  18691. }, {
  18692. "path": "eventRelease/add",
  18693. "style": {
  18694. "navigationBarTitleText": "活动发布",
  18695. "enablePullDownRefresh": true,
  18696. "onReachBottomDistance": 100,
  18697. "app-plus": {
  18698. "bounce": "vertical",
  18699. "titleNView": {
  18700. "buttons": [{
  18701. "text": "",
  18702. "fontSrc": "/static/uni.ttf",
  18703. "fontSize": "22px",
  18704. "color": "#FFFFFF"
  18705. }]
  18706. }
  18707. },
  18708. "component": true,
  18709. "usingComponents": {
  18710. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18711. "van-button": "/wxcomponents/weapp/dist/button/index",
  18712. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18713. "van-field": "/wxcomponents/weapp/dist/field/index",
  18714. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18715. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18716. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18717. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18718. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18719. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18720. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  18721. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18722. }
  18723. }
  18724. }, {
  18725. "path": "meetingroom/meetingroom",
  18726. "style": {
  18727. "navigationBarTitleText": "会议室审核",
  18728. "enablePullDownRefresh": true,
  18729. "onReachBottomDistance": 100,
  18730. "app-plus": {
  18731. "bounce": "vertical",
  18732. "titleNView": {
  18733. "buttons": [{
  18734. "text": "",
  18735. "fontSrc": "/static/uni.ttf",
  18736. "fontSize": "22px",
  18737. "color": "#FFFFFF"
  18738. }]
  18739. }
  18740. },
  18741. "component": true,
  18742. "usingComponents": {
  18743. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18744. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18745. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18746. "van-button": "/wxcomponents/weapp/dist/button/index",
  18747. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18748. "van-field": "/wxcomponents/weapp/dist/field/index",
  18749. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18750. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18751. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18752. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18753. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18754. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18755. }
  18756. }
  18757. }, {
  18758. "path": "venueRoom/meetingroom",
  18759. "style": {
  18760. "navigationBarTitleText": "场馆审核",
  18761. "enablePullDownRefresh": true,
  18762. "onReachBottomDistance": 100,
  18763. "app-plus": {
  18764. "bounce": "vertical",
  18765. "titleNView": {
  18766. "buttons": [{
  18767. "text": "",
  18768. "fontSrc": "/static/uni.ttf",
  18769. "fontSize": "22px",
  18770. "color": "#FFFFFF"
  18771. }]
  18772. }
  18773. },
  18774. "component": true,
  18775. "usingComponents": {
  18776. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18777. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18778. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18779. "van-button": "/wxcomponents/weapp/dist/button/index",
  18780. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18781. "van-field": "/wxcomponents/weapp/dist/field/index",
  18782. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18783. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18784. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18785. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18786. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18787. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18788. }
  18789. }
  18790. }, {
  18791. "path": "activity/index",
  18792. "style": {
  18793. "navigationBarTitleText": "活动核销签到",
  18794. "enablePullDownRefresh": true,
  18795. "onReachBottomDistance": 100,
  18796. "app-plus": {
  18797. "bounce": "vertical",
  18798. "titleNView": {
  18799. "buttons": [{
  18800. "text": "",
  18801. "fontSrc": "/static/uni.ttf",
  18802. "fontSize": "22px",
  18803. "color": "#FFFFFF"
  18804. }]
  18805. }
  18806. },
  18807. "component": true,
  18808. "usingComponents": {
  18809. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18810. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18811. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18812. "van-button": "/wxcomponents/weapp/dist/button/index",
  18813. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18814. "van-field": "/wxcomponents/weapp/dist/field/index",
  18815. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18816. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18817. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18818. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18819. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18820. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18821. }
  18822. }
  18823. }, {
  18824. "path": "activity/code",
  18825. "style": {
  18826. "navigationBarTitleText": "活动核销扫码确认签到",
  18827. "enablePullDownRefresh": true,
  18828. "onReachBottomDistance": 100,
  18829. "app-plus": {
  18830. "bounce": "vertical",
  18831. "titleNView": {
  18832. "buttons": [{
  18833. "text": "",
  18834. "fontSrc": "/static/uni.ttf",
  18835. "fontSize": "22px",
  18836. "color": "#FFFFFF"
  18837. }]
  18838. }
  18839. },
  18840. "component": true,
  18841. "usingComponents": {
  18842. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18843. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18844. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18845. "van-button": "/wxcomponents/weapp/dist/button/index",
  18846. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18847. "van-field": "/wxcomponents/weapp/dist/field/index",
  18848. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18849. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18850. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18851. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18852. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18853. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18854. }
  18855. }
  18856. }, {
  18857. "path": "password/index",
  18858. "style": {
  18859. "navigationBarTitleText": "修改密码",
  18860. "enablePullDownRefresh": true,
  18861. "onReachBottomDistance": 100,
  18862. "app-plus": {
  18863. "bounce": "vertical",
  18864. "titleNView": {
  18865. "buttons": [{
  18866. "text": "",
  18867. "fontSrc": "/static/uni.ttf",
  18868. "fontSize": "22px",
  18869. "color": "#FFFFFF"
  18870. }]
  18871. }
  18872. },
  18873. "component": true,
  18874. "usingComponents": {
  18875. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18876. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18877. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18878. "van-button": "/wxcomponents/weapp/dist/button/index",
  18879. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18880. "van-field": "/wxcomponents/weapp/dist/field/index",
  18881. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18882. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18883. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18884. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18885. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18886. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18887. }
  18888. }
  18889. }, {
  18890. "path": "secureselfplan/addplan",
  18891. "style": {
  18892. "navigationBarTitleText": "安全自检计划-新增",
  18893. "enablePullDownRefresh": true,
  18894. "onReachBottomDistance": 100,
  18895. "app-plus": {
  18896. "bounce": "vertical",
  18897. "titleNView": {
  18898. "buttons": [{
  18899. "text": "",
  18900. "fontSrc": "/static/uni.ttf",
  18901. "fontSize": "22px",
  18902. "color": "#FFFFFF"
  18903. }]
  18904. }
  18905. },
  18906. "component": true,
  18907. "usingComponents": {
  18908. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18909. "van-button": "/wxcomponents/weapp/dist/button/index",
  18910. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18911. "van-field": "/wxcomponents/weapp/dist/field/index",
  18912. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18913. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18914. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18915. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18916. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18917. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18918. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18919. }
  18920. }
  18921. }, {
  18922. "path": "secureselfplan/index",
  18923. "style": {
  18924. "navigationBarTitleText": "安全自检计划",
  18925. "enablePullDownRefresh": true,
  18926. "onReachBottomDistance": 100,
  18927. "app-plus": {
  18928. "bounce": "vertical",
  18929. "titleNView": {
  18930. "buttons": [{
  18931. "text": "",
  18932. "fontSrc": "/static/uni.ttf",
  18933. "fontSize": "22px",
  18934. "color": "#FFFFFF"
  18935. }]
  18936. }
  18937. },
  18938. "component": true,
  18939. "usingComponents": {
  18940. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18941. "van-button": "/wxcomponents/weapp/dist/button/index",
  18942. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18943. "van-field": "/wxcomponents/weapp/dist/field/index",
  18944. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18945. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18946. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18947. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18948. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18949. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18950. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18951. }
  18952. }
  18953. }, {
  18954. "path": "repairDispatch-app/detail",
  18955. "style": {
  18956. "navigationBarTitleText": "报修派单-详情",
  18957. "enablePullDownRefresh": true,
  18958. "onReachBottomDistance": 100,
  18959. "app-plus": {
  18960. "bounce": "vertical",
  18961. "titleNView": {
  18962. "buttons": [{
  18963. "text": "",
  18964. "fontSrc": "/static/uni.ttf",
  18965. "fontSize": "22px",
  18966. "color": "#FFFFFF"
  18967. }]
  18968. }
  18969. },
  18970. "component": true,
  18971. "usingComponents": {
  18972. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  18973. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18974. "van-button": "/wxcomponents/weapp/dist/button/index",
  18975. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18976. "van-field": "/wxcomponents/weapp/dist/field/index",
  18977. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18978. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18979. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18980. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18981. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18982. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  18983. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  18984. }
  18985. }
  18986. }, {
  18987. "path": "repairDispatch-app/index",
  18988. "style": {
  18989. "navigationBarTitleText": "报修派单",
  18990. "enablePullDownRefresh": true,
  18991. "onReachBottomDistance": 100,
  18992. "app-plus": {
  18993. "bounce": "vertical",
  18994. "titleNView": {
  18995. "buttons": [{
  18996. "text": "",
  18997. "fontSrc": "/static/uni.ttf",
  18998. "fontSize": "22px",
  18999. "color": "#FFFFFF"
  19000. }]
  19001. }
  19002. },
  19003. "component": true,
  19004. "usingComponents": {
  19005. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19006. "van-button": "/wxcomponents/weapp/dist/button/index",
  19007. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19008. "van-field": "/wxcomponents/weapp/dist/field/index",
  19009. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19010. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19011. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19012. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19013. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19014. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19015. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19016. }
  19017. }
  19018. }, {
  19019. "path": "repairDispatch-app/add",
  19020. "style": {
  19021. "navigationBarTitleText": "新增报修派单",
  19022. "enablePullDownRefresh": true,
  19023. "onReachBottomDistance": 100,
  19024. "app-plus": {
  19025. "bounce": "vertical",
  19026. "titleNView": {
  19027. "buttons": [{
  19028. "text": "",
  19029. "fontSrc": "/static/uni.ttf",
  19030. "fontSize": "22px",
  19031. "color": "#FFFFFF"
  19032. }]
  19033. }
  19034. },
  19035. "component": true,
  19036. "usingComponents": {
  19037. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19038. "van-button": "/wxcomponents/weapp/dist/button/index",
  19039. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19040. "van-field": "/wxcomponents/weapp/dist/field/index",
  19041. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19042. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19043. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19044. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19045. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19046. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19047. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19048. }
  19049. }
  19050. }, {
  19051. "path": "repairprocessing-app/detail",
  19052. "style": {
  19053. "navigationBarTitleText": "报修处理-详情",
  19054. "enablePullDownRefresh": true,
  19055. "onReachBottomDistance": 100,
  19056. "app-plus": {
  19057. "bounce": "vertical",
  19058. "titleNView": {
  19059. "buttons": [{
  19060. "text": "",
  19061. "fontSrc": "/static/uni.ttf",
  19062. "fontSize": "22px",
  19063. "color": "#FFFFFF"
  19064. }]
  19065. }
  19066. },
  19067. "component": true,
  19068. "usingComponents": {
  19069. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  19070. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19071. "van-button": "/wxcomponents/weapp/dist/button/index",
  19072. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19073. "van-field": "/wxcomponents/weapp/dist/field/index",
  19074. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19075. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19076. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19077. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19078. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19079. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19080. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19081. }
  19082. }
  19083. }, {
  19084. "path": "repairprocessing-app/index",
  19085. "style": {
  19086. "navigationBarTitleText": "报修处理",
  19087. "enablePullDownRefresh": true,
  19088. "onReachBottomDistance": 100,
  19089. "app-plus": {
  19090. "bounce": "vertical",
  19091. "titleNView": {
  19092. "buttons": [{
  19093. "text": "",
  19094. "fontSrc": "/static/uni.ttf",
  19095. "fontSize": "22px",
  19096. "color": "#FFFFFF"
  19097. }]
  19098. }
  19099. },
  19100. "component": true,
  19101. "usingComponents": {
  19102. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19103. "van-button": "/wxcomponents/weapp/dist/button/index",
  19104. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19105. "van-field": "/wxcomponents/weapp/dist/field/index",
  19106. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19107. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19108. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19109. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19110. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19111. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19112. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19113. }
  19114. }
  19115. }, {
  19116. "path": "modifySend/index",
  19117. "style": {
  19118. "navigationBarTitleText": "整改派单",
  19119. "enablePullDownRefresh": true,
  19120. "onReachBottomDistance": 100,
  19121. "app-plus": {
  19122. "bounce": "vertical",
  19123. "titleNView": {
  19124. "buttons": [{
  19125. "text": "",
  19126. "fontSrc": "/static/uni.ttf",
  19127. "fontSize": "22px",
  19128. "color": "#FFFFFF"
  19129. }]
  19130. }
  19131. },
  19132. "component": true,
  19133. "usingComponents": {
  19134. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19135. "van-button": "/wxcomponents/weapp/dist/button/index",
  19136. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19137. "van-field": "/wxcomponents/weapp/dist/field/index",
  19138. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19139. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19140. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19141. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19142. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19143. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19144. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19145. }
  19146. }
  19147. }, {
  19148. "path": "modifyReport/index",
  19149. "style": {
  19150. "navigationBarTitleText": "整改填报",
  19151. "enablePullDownRefresh": true,
  19152. "onReachBottomDistance": 100,
  19153. "app-plus": {
  19154. "bounce": "vertical",
  19155. "titleNView": {
  19156. "buttons": [{
  19157. "text": "",
  19158. "fontSrc": "/static/uni.ttf",
  19159. "fontSize": "22px",
  19160. "color": "#FFFFFF"
  19161. }]
  19162. }
  19163. },
  19164. "component": true,
  19165. "usingComponents": {
  19166. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19167. "van-button": "/wxcomponents/weapp/dist/button/index",
  19168. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19169. "van-field": "/wxcomponents/weapp/dist/field/index",
  19170. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19171. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19172. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19173. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19174. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19175. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19176. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19177. }
  19178. }
  19179. }, {
  19180. "path": "modifyReport/detail",
  19181. "style": {
  19182. "navigationBarTitleText": "整改详情",
  19183. "enablePullDownRefresh": true,
  19184. "onReachBottomDistance": 100,
  19185. "app-plus": {
  19186. "bounce": "vertical",
  19187. "titleNView": {
  19188. "buttons": [{
  19189. "text": "",
  19190. "fontSrc": "/static/uni.ttf",
  19191. "fontSize": "22px",
  19192. "color": "#FFFFFF"
  19193. }]
  19194. }
  19195. },
  19196. "component": true,
  19197. "usingComponents": {
  19198. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19199. "van-button": "/wxcomponents/weapp/dist/button/index",
  19200. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19201. "van-field": "/wxcomponents/weapp/dist/field/index",
  19202. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19203. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19204. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19205. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19206. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19207. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19208. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19209. }
  19210. }
  19211. }, {
  19212. "path": "modifyHandle/handle",
  19213. "style": {
  19214. "navigationBarTitleText": "整改处理 ",
  19215. "enablePullDownRefresh": true,
  19216. "onReachBottomDistance": 100,
  19217. "app-plus": {
  19218. "bounce": "vertical",
  19219. "titleNView": {
  19220. "buttons": [{
  19221. "text": "",
  19222. "fontSrc": "/static/uni.ttf",
  19223. "fontSize": "22px",
  19224. "color": "#FFFFFF"
  19225. }]
  19226. }
  19227. },
  19228. "component": true,
  19229. "usingComponents": {
  19230. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19231. "van-button": "/wxcomponents/weapp/dist/button/index",
  19232. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19233. "van-field": "/wxcomponents/weapp/dist/field/index",
  19234. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19235. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19236. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19237. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19238. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19239. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19240. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19241. }
  19242. }
  19243. }, {
  19244. "path": "modifySend/confirm",
  19245. "style": {
  19246. "navigationBarTitleText": "整改确认",
  19247. "enablePullDownRefresh": true,
  19248. "onReachBottomDistance": 100,
  19249. "app-plus": {
  19250. "bounce": "vertical",
  19251. "titleNView": {
  19252. "buttons": [{
  19253. "text": "",
  19254. "fontSrc": "/static/uni.ttf",
  19255. "fontSize": "22px",
  19256. "color": "#FFFFFF"
  19257. }]
  19258. }
  19259. },
  19260. "component": true,
  19261. "usingComponents": {
  19262. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19263. "van-button": "/wxcomponents/weapp/dist/button/index",
  19264. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19265. "van-field": "/wxcomponents/weapp/dist/field/index",
  19266. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19267. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19268. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19269. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19270. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19271. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19272. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19273. }
  19274. }
  19275. }, {
  19276. "path": "modifyHandle/index",
  19277. "style": {
  19278. "navigationBarTitleText": "整改处理",
  19279. "enablePullDownRefresh": true,
  19280. "onReachBottomDistance": 100,
  19281. "app-plus": {
  19282. "bounce": "vertical",
  19283. "titleNView": {
  19284. "buttons": [{
  19285. "text": "",
  19286. "fontSrc": "/static/uni.ttf",
  19287. "fontSize": "22px",
  19288. "color": "#FFFFFF"
  19289. }]
  19290. }
  19291. },
  19292. "component": true,
  19293. "usingComponents": {
  19294. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19295. "van-button": "/wxcomponents/weapp/dist/button/index",
  19296. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19297. "van-field": "/wxcomponents/weapp/dist/field/index",
  19298. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19299. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19300. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19301. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19302. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19303. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19304. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19305. }
  19306. }
  19307. }, {
  19308. "path": "modifyReport/add",
  19309. "style": {
  19310. "navigationBarTitleText": "整改新增",
  19311. "enablePullDownRefresh": true,
  19312. "onReachBottomDistance": 100,
  19313. "app-plus": {
  19314. "bounce": "vertical",
  19315. "titleNView": {
  19316. "buttons": [{
  19317. "text": "",
  19318. "fontSrc": "/static/uni.ttf",
  19319. "fontSize": "22px",
  19320. "color": "#FFFFFF"
  19321. }]
  19322. }
  19323. },
  19324. "component": true,
  19325. "usingComponents": {
  19326. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19327. "van-button": "/wxcomponents/weapp/dist/button/index",
  19328. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19329. "van-field": "/wxcomponents/weapp/dist/field/index",
  19330. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19331. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19332. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19333. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19334. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19335. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19336. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19337. }
  19338. }
  19339. }, {
  19340. "path": "secureselftest/report",
  19341. "style": {
  19342. "navigationBarTitleText": "新增自检上报",
  19343. "enablePullDownRefresh": true,
  19344. "onReachBottomDistance": 100,
  19345. "app-plus": {
  19346. "bounce": "vertical",
  19347. "titleNView": {
  19348. "buttons": [{
  19349. "text": "",
  19350. "fontSrc": "/static/uni.ttf",
  19351. "fontSize": "22px",
  19352. "color": "#FFFFFF"
  19353. }]
  19354. }
  19355. },
  19356. "component": true,
  19357. "usingComponents": {
  19358. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19359. "van-button": "/wxcomponents/weapp/dist/button/index",
  19360. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19361. "van-field": "/wxcomponents/weapp/dist/field/index",
  19362. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19363. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19364. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19365. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19366. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19367. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19368. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19369. }
  19370. }
  19371. }, {
  19372. "path": "toread/index",
  19373. "style": {
  19374. "navigationBarTitleText": "我的待阅",
  19375. "enablePullDownRefresh": true,
  19376. "onReachBottomDistance": 100,
  19377. "app-plus": {
  19378. "bounce": "vertical",
  19379. "titleNView": {
  19380. "buttons": [{
  19381. "text": "",
  19382. "fontSrc": "/static/uni.ttf",
  19383. "fontSize": "22px",
  19384. "color": "#FFFFFF"
  19385. }]
  19386. }
  19387. },
  19388. "component": true,
  19389. "usingComponents": {
  19390. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19391. "van-button": "/wxcomponents/weapp/dist/button/index",
  19392. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19393. "van-field": "/wxcomponents/weapp/dist/field/index",
  19394. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19395. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19396. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19397. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19398. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19399. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19400. }
  19401. }
  19402. }, {
  19403. "path": "todo/index",
  19404. "style": {
  19405. "navigationBarTitleText": "我的待办",
  19406. "enablePullDownRefresh": true,
  19407. "onReachBottomDistance": 100,
  19408. "app-plus": {
  19409. "bounce": "vertical",
  19410. "titleNView": {
  19411. "buttons": [{
  19412. "text": "",
  19413. "fontSrc": "/static/uni.ttf",
  19414. "fontSize": "22px",
  19415. "color": "#FFFFFF"
  19416. }]
  19417. }
  19418. },
  19419. "component": true,
  19420. "usingComponents": {
  19421. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19422. "van-button": "/wxcomponents/weapp/dist/button/index",
  19423. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19424. "van-field": "/wxcomponents/weapp/dist/field/index",
  19425. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19426. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19427. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19428. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19429. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19430. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19431. }
  19432. }
  19433. }, {
  19434. "path": "secureselftest/index",
  19435. "style": {
  19436. "navigationBarTitleText": "安全管理统计",
  19437. "enablePullDownRefresh": true,
  19438. "onReachBottomDistance": 100,
  19439. "app-plus": {
  19440. "bounce": "vertical",
  19441. "titleNView": {
  19442. "buttons": [{
  19443. "text": "",
  19444. "fontSrc": "/static/uni.ttf",
  19445. "fontSize": "22px",
  19446. "color": "#FFFFFF"
  19447. }]
  19448. }
  19449. },
  19450. "component": true,
  19451. "usingComponents": {
  19452. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19453. "van-button": "/wxcomponents/weapp/dist/button/index",
  19454. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19455. "van-field": "/wxcomponents/weapp/dist/field/index",
  19456. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19457. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19458. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19459. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19460. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19461. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19462. }
  19463. }
  19464. }, {
  19465. "path": "secureselftest2/index",
  19466. "style": {
  19467. "navigationBarTitleText": "安全管理自检",
  19468. "enablePullDownRefresh": true,
  19469. "onReachBottomDistance": 100,
  19470. "app-plus": {
  19471. "bounce": "vertical",
  19472. "titleNView": {
  19473. "buttons": [{
  19474. "text": "",
  19475. "fontSrc": "/static/uni.ttf",
  19476. "fontSize": "22px",
  19477. "color": "#FFFFFF"
  19478. }]
  19479. }
  19480. },
  19481. "component": true,
  19482. "usingComponents": {
  19483. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19484. "van-button": "/wxcomponents/weapp/dist/button/index",
  19485. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19486. "van-field": "/wxcomponents/weapp/dist/field/index",
  19487. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19488. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19489. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19490. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19491. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19492. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19493. }
  19494. }
  19495. }, {
  19496. "path": "venueRoom/confirm",
  19497. "style": {
  19498. "navigationBarTitleText": "场馆-审核",
  19499. "enablePullDownRefresh": true,
  19500. "onReachBottomDistance": 100,
  19501. "app-plus": {
  19502. "bounce": "vertical",
  19503. "titleNView": {
  19504. "buttons": [{
  19505. "text": "",
  19506. "fontSrc": "/static/uni.ttf",
  19507. "fontSize": "22px",
  19508. "color": "#FFFFFF"
  19509. }]
  19510. }
  19511. },
  19512. "component": true,
  19513. "usingComponents": {
  19514. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19515. "van-button": "/wxcomponents/weapp/dist/button/index",
  19516. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19517. "van-field": "/wxcomponents/weapp/dist/field/index",
  19518. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19519. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19520. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19521. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19522. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19523. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19524. }
  19525. }
  19526. }, {
  19527. "path": "meetingroom/confirm",
  19528. "style": {
  19529. "navigationBarTitleText": "会议室-审核",
  19530. "enablePullDownRefresh": true,
  19531. "onReachBottomDistance": 100,
  19532. "app-plus": {
  19533. "bounce": "vertical",
  19534. "titleNView": {
  19535. "buttons": [{
  19536. "text": "",
  19537. "fontSrc": "/static/uni.ttf",
  19538. "fontSize": "22px",
  19539. "color": "#FFFFFF"
  19540. }]
  19541. }
  19542. },
  19543. "component": true,
  19544. "usingComponents": {
  19545. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19546. "van-button": "/wxcomponents/weapp/dist/button/index",
  19547. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19548. "van-field": "/wxcomponents/weapp/dist/field/index",
  19549. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19550. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19551. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19552. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19553. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19554. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19555. }
  19556. }
  19557. }, {
  19558. "path": "venueRoom/audit",
  19559. "style": {
  19560. "navigationBarTitleText": "场馆-审核",
  19561. "enablePullDownRefresh": true,
  19562. "onReachBottomDistance": 100,
  19563. "app-plus": {
  19564. "bounce": "vertical",
  19565. "titleNView": {
  19566. "buttons": [{
  19567. "text": "",
  19568. "fontSrc": "/static/uni.ttf",
  19569. "fontSize": "22px",
  19570. "color": "#FFFFFF"
  19571. }]
  19572. }
  19573. },
  19574. "component": true,
  19575. "usingComponents": {
  19576. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19577. "van-button": "/wxcomponents/weapp/dist/button/index",
  19578. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19579. "van-field": "/wxcomponents/weapp/dist/field/index",
  19580. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19581. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19582. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19583. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19584. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19585. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19586. }
  19587. }
  19588. }, {
  19589. "path": "meetingroom/audit",
  19590. "style": {
  19591. "navigationBarTitleText": "会议室-审核",
  19592. "enablePullDownRefresh": true,
  19593. "onReachBottomDistance": 100,
  19594. "app-plus": {
  19595. "bounce": "vertical",
  19596. "titleNView": {
  19597. "buttons": [{
  19598. "text": "",
  19599. "fontSrc": "/static/uni.ttf",
  19600. "fontSize": "22px",
  19601. "color": "#FFFFFF"
  19602. }]
  19603. }
  19604. },
  19605. "component": true,
  19606. "usingComponents": {
  19607. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19608. "van-button": "/wxcomponents/weapp/dist/button/index",
  19609. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19610. "van-field": "/wxcomponents/weapp/dist/field/index",
  19611. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19612. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19613. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19614. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19615. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19616. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19617. }
  19618. }
  19619. }, {
  19620. "path": "housedetails/housedetails",
  19621. "style": {
  19622. "navigationBarTitleText": "房源详情",
  19623. "enablePullDownRefresh": true,
  19624. "onReachBottomDistance": 100,
  19625. "app-plus": {
  19626. "bounce": "vertical",
  19627. "titleNView": {
  19628. "buttons": [{
  19629. "text": "",
  19630. "fontSrc": "/static/uni.ttf",
  19631. "fontSize": "22px",
  19632. "color": "#FFFFFF"
  19633. }]
  19634. }
  19635. },
  19636. "component": true,
  19637. "usingComponents": {
  19638. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19639. "van-button": "/wxcomponents/weapp/dist/button/index",
  19640. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19641. "van-field": "/wxcomponents/weapp/dist/field/index",
  19642. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19643. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19644. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19645. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19646. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19647. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19648. }
  19649. }
  19650. }, {
  19651. "path": "addintention/addintention",
  19652. "style": {
  19653. "navigationBarTitleText": "新增意向",
  19654. "enablePullDownRefresh": true,
  19655. "onReachBottomDistance": 100,
  19656. "app-plus": {
  19657. "bounce": "vertical",
  19658. "titleNView": {
  19659. "buttons": [{
  19660. "text": "",
  19661. "fontSrc": "/static/uni.ttf",
  19662. "fontSize": "22px",
  19663. "color": "#FFFFFF"
  19664. }]
  19665. }
  19666. },
  19667. "component": true,
  19668. "usingComponents": {
  19669. "van-button": "/wxcomponents/weapp/dist/button/index",
  19670. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19671. "van-field": "/wxcomponents/weapp/dist/field/index",
  19672. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19673. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19674. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19675. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19676. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19677. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19678. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19679. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19680. }
  19681. }
  19682. }, {
  19683. "path": "chosseHouse/chosseHouse",
  19684. "style": {
  19685. "navigationBarTitleText": "选择房源",
  19686. "enablePullDownRefresh": true,
  19687. "onReachBottomDistance": 100,
  19688. "app-plus": {
  19689. "bounce": "vertical",
  19690. "titleNView": {
  19691. "buttons": [{
  19692. "text": "",
  19693. "fontSrc": "/static/uni.ttf",
  19694. "fontSize": "22px",
  19695. "color": "#FFFFFF"
  19696. }]
  19697. }
  19698. },
  19699. "component": true,
  19700. "usingComponents": {
  19701. "van-button": "/wxcomponents/weapp/dist/button/index",
  19702. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19703. "van-field": "/wxcomponents/weapp/dist/field/index",
  19704. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19705. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19706. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19707. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19708. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19709. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19710. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19711. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19712. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19713. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19714. }
  19715. }
  19716. }, {
  19717. "path": "companyreport/components/reportDetails",
  19718. "style": {
  19719. "navigationBarTitleText": "走访上报-详情",
  19720. "enablePullDownRefresh": true,
  19721. "onReachBottomDistance": 100,
  19722. "app-plus": {
  19723. "bounce": "vertical",
  19724. "titleNView": {
  19725. "buttons": [{
  19726. "text": "",
  19727. "fontSrc": "/static/uni.ttf",
  19728. "fontSize": "22px",
  19729. "color": "#FFFFFF"
  19730. }]
  19731. }
  19732. },
  19733. "component": true,
  19734. "usingComponents": {
  19735. "van-button": "/wxcomponents/weapp/dist/button/index",
  19736. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19737. "van-field": "/wxcomponents/weapp/dist/field/index",
  19738. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19739. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19740. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19741. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19742. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19743. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19744. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19745. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19746. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19747. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19748. }
  19749. }
  19750. }, {
  19751. "path": "companyreport/companyreport",
  19752. "style": {
  19753. "navigationBarTitleText": "走访上报",
  19754. "enablePullDownRefresh": true,
  19755. "onReachBottomDistance": 100,
  19756. "app-plus": {
  19757. "bounce": "vertical",
  19758. "titleNView": {
  19759. "buttons": [{
  19760. "text": "",
  19761. "fontSrc": "/static/uni.ttf",
  19762. "fontSize": "22px",
  19763. "color": "#FFFFFF"
  19764. }]
  19765. }
  19766. },
  19767. "component": true,
  19768. "usingComponents": {
  19769. "van-button": "/wxcomponents/weapp/dist/button/index",
  19770. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19771. "van-field": "/wxcomponents/weapp/dist/field/index",
  19772. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19773. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19774. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19775. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19776. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19777. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19778. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19779. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19780. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19781. }
  19782. }
  19783. }],
  19784. "network": "all"
  19785. }],
  19786. "globalStyle": {
  19787. "pageOrientation": "portrait",
  19788. "navigationBarTitleText": "Hello uniapp",
  19789. "navigationBarTextStyle": "black",
  19790. "navigationBarBackgroundColor": "#FFFFFF",
  19791. "backgroundColor": "#FFFFFF",
  19792. "backgroundColorTop": "#FFFFFF",
  19793. "backgroundColorBottom": "#F4F5F6",
  19794. "usingComponents": {
  19795. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19796. "van-button": "/wxcomponents/weapp/dist/button/index",
  19797. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19798. "van-field": "/wxcomponents/weapp/dist/field/index",
  19799. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19800. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19801. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19802. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19803. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19804. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19805. "van-row": "/wxcomponents/weapp/dist/row/index",
  19806. "van-col": "/wxcomponents/weapp/dist/col/index"
  19807. }
  19808. },
  19809. "tabBar": {
  19810. "color": "#7A7E83",
  19811. "selectedColor": "#2527AA",
  19812. "borderStyle": "black",
  19813. "backgroundColor": "#F8F8F8",
  19814. "list": [{
  19815. "pagePath": "pages/index/index",
  19816. "iconPath": "static/home.png",
  19817. "selectedIconPath": "static/homeselect.png",
  19818. "text": "首页"
  19819. }, {
  19820. "pagePath": "pages/mine/mine",
  19821. "iconPath": "static/mine.png",
  19822. "selectedIconPath": "static/mineselect.png",
  19823. "text": "我的"
  19824. }]
  19825. },
  19826. "window": {
  19827. "backgroundTextStyle": "dark",
  19828. "navigationBarBackgroundColor": "#ffffff",
  19829. "navigationBarTitleText": "Demo",
  19830. "navigationBarTextStyle": "black",
  19831. "enablePullDownRefresh": true
  19832. },
  19833. "lazyCodeLoading": "requiredComponents"
  19834. };
  19835. exports.default = _default;
  19836. /***/ }),
  19837. /***/ 39:
  19838. /*!***************************************************************!*\
  19839. !*** D:/AAAcompany_product/产品化管理端/pages.json?{"type":"stat"} ***!
  19840. \***************************************************************/
  19841. /*! no static exports found */
  19842. /***/ (function(module, exports, __webpack_require__) {
  19843. "use strict";
  19844. Object.defineProperty(exports, "__esModule", {
  19845. value: true
  19846. });
  19847. exports.default = void 0;
  19848. var _default = {
  19849. "appid": "__UNI__8C5F0F6"
  19850. };
  19851. exports.default = _default;
  19852. /***/ }),
  19853. /***/ 4:
  19854. /*!**********************************************************************!*\
  19855. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  19856. \**********************************************************************/
  19857. /*! no static exports found */
  19858. /***/ (function(module, exports) {
  19859. function _interopRequireDefault(obj) {
  19860. return obj && obj.__esModule ? obj : {
  19861. "default": obj
  19862. };
  19863. }
  19864. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  19865. /***/ }),
  19866. /***/ 40:
  19867. /*!****************************************************************!*\
  19868. !*** D:/AAAcompany_product/产品化管理端/pages.json?{"type":"style"} ***!
  19869. \****************************************************************/
  19870. /*! no static exports found */
  19871. /***/ (function(module, exports, __webpack_require__) {
  19872. "use strict";
  19873. Object.defineProperty(exports, "__esModule", {
  19874. value: true
  19875. });
  19876. exports.default = void 0;
  19877. var _default = {
  19878. "pages": {
  19879. "pages/login/login": {
  19880. "navigationBarTitleText": "登录"
  19881. },
  19882. "pages/index/index": {
  19883. "navigationBarTitleText": "首页"
  19884. },
  19885. "pages/mine/mine": {
  19886. "navigationBarTitleText": "我的"
  19887. },
  19888. "pages/subPackages/gocompnay/index": {
  19889. "navigationBarTitleText": "企业端",
  19890. "enablePullDownRefresh": true,
  19891. "onReachBottomDistance": 100,
  19892. "component": true
  19893. },
  19894. "pages/subPackages/peripheralService/index": {
  19895. "navigationBarTitleText": "周边发布",
  19896. "enablePullDownRefresh": true,
  19897. "onReachBottomDistance": 100,
  19898. "component": true
  19899. },
  19900. "pages/subPackages/eventRelease/index": {
  19901. "navigationBarTitleText": "活动发布",
  19902. "enablePullDownRefresh": true,
  19903. "onReachBottomDistance": 100,
  19904. "component": true
  19905. },
  19906. "pages/subPackages/eventRelease/add": {
  19907. "navigationBarTitleText": "活动发布",
  19908. "enablePullDownRefresh": true,
  19909. "onReachBottomDistance": 100,
  19910. "component": true
  19911. },
  19912. "pages/subPackages/meetingroom/meetingroom": {
  19913. "navigationBarTitleText": "会议室审核",
  19914. "enablePullDownRefresh": true,
  19915. "onReachBottomDistance": 100,
  19916. "component": true
  19917. },
  19918. "pages/subPackages/venueRoom/meetingroom": {
  19919. "navigationBarTitleText": "场馆审核",
  19920. "enablePullDownRefresh": true,
  19921. "onReachBottomDistance": 100,
  19922. "component": true
  19923. },
  19924. "pages/subPackages/activity/index": {
  19925. "navigationBarTitleText": "活动核销签到",
  19926. "enablePullDownRefresh": true,
  19927. "onReachBottomDistance": 100,
  19928. "component": true
  19929. },
  19930. "pages/subPackages/activity/code": {
  19931. "navigationBarTitleText": "活动核销扫码确认签到",
  19932. "enablePullDownRefresh": true,
  19933. "onReachBottomDistance": 100,
  19934. "component": true
  19935. },
  19936. "pages/subPackages/password/index": {
  19937. "navigationBarTitleText": "修改密码",
  19938. "enablePullDownRefresh": true,
  19939. "onReachBottomDistance": 100,
  19940. "component": true
  19941. },
  19942. "pages/subPackages/secureselfplan/addplan": {
  19943. "navigationBarTitleText": "安全自检计划-新增",
  19944. "enablePullDownRefresh": true,
  19945. "onReachBottomDistance": 100,
  19946. "component": true
  19947. },
  19948. "pages/subPackages/secureselfplan/index": {
  19949. "navigationBarTitleText": "安全自检计划",
  19950. "enablePullDownRefresh": true,
  19951. "onReachBottomDistance": 100,
  19952. "component": true
  19953. },
  19954. "pages/subPackages/repairDispatch-app/detail": {
  19955. "navigationBarTitleText": "报修派单-详情",
  19956. "enablePullDownRefresh": true,
  19957. "onReachBottomDistance": 100,
  19958. "component": true
  19959. },
  19960. "pages/subPackages/repairDispatch-app/index": {
  19961. "navigationBarTitleText": "报修派单",
  19962. "enablePullDownRefresh": true,
  19963. "onReachBottomDistance": 100,
  19964. "component": true
  19965. },
  19966. "pages/subPackages/repairDispatch-app/add": {
  19967. "navigationBarTitleText": "新增报修派单",
  19968. "enablePullDownRefresh": true,
  19969. "onReachBottomDistance": 100,
  19970. "component": true
  19971. },
  19972. "pages/subPackages/repairprocessing-app/detail": {
  19973. "navigationBarTitleText": "报修处理-详情",
  19974. "enablePullDownRefresh": true,
  19975. "onReachBottomDistance": 100,
  19976. "component": true
  19977. },
  19978. "pages/subPackages/repairprocessing-app/index": {
  19979. "navigationBarTitleText": "报修处理",
  19980. "enablePullDownRefresh": true,
  19981. "onReachBottomDistance": 100,
  19982. "component": true
  19983. },
  19984. "pages/subPackages/modifySend/index": {
  19985. "navigationBarTitleText": "整改派单",
  19986. "enablePullDownRefresh": true,
  19987. "onReachBottomDistance": 100,
  19988. "component": true
  19989. },
  19990. "pages/subPackages/modifyReport/index": {
  19991. "navigationBarTitleText": "整改填报",
  19992. "enablePullDownRefresh": true,
  19993. "onReachBottomDistance": 100,
  19994. "component": true
  19995. },
  19996. "pages/subPackages/modifyReport/detail": {
  19997. "navigationBarTitleText": "整改详情",
  19998. "enablePullDownRefresh": true,
  19999. "onReachBottomDistance": 100,
  20000. "component": true
  20001. },
  20002. "pages/subPackages/modifyHandle/handle": {
  20003. "navigationBarTitleText": "整改处理 ",
  20004. "enablePullDownRefresh": true,
  20005. "onReachBottomDistance": 100,
  20006. "component": true
  20007. },
  20008. "pages/subPackages/modifySend/confirm": {
  20009. "navigationBarTitleText": "整改确认",
  20010. "enablePullDownRefresh": true,
  20011. "onReachBottomDistance": 100,
  20012. "component": true
  20013. },
  20014. "pages/subPackages/modifyHandle/index": {
  20015. "navigationBarTitleText": "整改处理",
  20016. "enablePullDownRefresh": true,
  20017. "onReachBottomDistance": 100,
  20018. "component": true
  20019. },
  20020. "pages/subPackages/modifyReport/add": {
  20021. "navigationBarTitleText": "整改新增",
  20022. "enablePullDownRefresh": true,
  20023. "onReachBottomDistance": 100,
  20024. "component": true
  20025. },
  20026. "pages/subPackages/secureselftest/report": {
  20027. "navigationBarTitleText": "新增自检上报",
  20028. "enablePullDownRefresh": true,
  20029. "onReachBottomDistance": 100,
  20030. "component": true
  20031. },
  20032. "pages/subPackages/toread/index": {
  20033. "navigationBarTitleText": "我的待阅",
  20034. "enablePullDownRefresh": true,
  20035. "onReachBottomDistance": 100,
  20036. "component": true
  20037. },
  20038. "pages/subPackages/todo/index": {
  20039. "navigationBarTitleText": "我的待办",
  20040. "enablePullDownRefresh": true,
  20041. "onReachBottomDistance": 100,
  20042. "component": true
  20043. },
  20044. "pages/subPackages/secureselftest/index": {
  20045. "navigationBarTitleText": "安全管理统计",
  20046. "enablePullDownRefresh": true,
  20047. "onReachBottomDistance": 100,
  20048. "component": true
  20049. },
  20050. "pages/subPackages/secureselftest2/index": {
  20051. "navigationBarTitleText": "安全管理自检",
  20052. "enablePullDownRefresh": true,
  20053. "onReachBottomDistance": 100,
  20054. "component": true
  20055. },
  20056. "pages/subPackages/venueRoom/confirm": {
  20057. "navigationBarTitleText": "场馆-审核",
  20058. "enablePullDownRefresh": true,
  20059. "onReachBottomDistance": 100,
  20060. "component": true
  20061. },
  20062. "pages/subPackages/meetingroom/confirm": {
  20063. "navigationBarTitleText": "会议室-审核",
  20064. "enablePullDownRefresh": true,
  20065. "onReachBottomDistance": 100,
  20066. "component": true
  20067. },
  20068. "pages/subPackages/venueRoom/audit": {
  20069. "navigationBarTitleText": "场馆-审核",
  20070. "enablePullDownRefresh": true,
  20071. "onReachBottomDistance": 100,
  20072. "component": true
  20073. },
  20074. "pages/subPackages/meetingroom/audit": {
  20075. "navigationBarTitleText": "会议室-审核",
  20076. "enablePullDownRefresh": true,
  20077. "onReachBottomDistance": 100,
  20078. "component": true
  20079. },
  20080. "pages/subPackages/housedetails/housedetails": {
  20081. "navigationBarTitleText": "房源详情",
  20082. "enablePullDownRefresh": true,
  20083. "onReachBottomDistance": 100,
  20084. "component": true
  20085. },
  20086. "pages/subPackages/addintention/addintention": {
  20087. "navigationBarTitleText": "新增意向",
  20088. "enablePullDownRefresh": true,
  20089. "onReachBottomDistance": 100,
  20090. "component": true
  20091. },
  20092. "pages/subPackages/chosseHouse/chosseHouse": {
  20093. "navigationBarTitleText": "选择房源",
  20094. "enablePullDownRefresh": true,
  20095. "onReachBottomDistance": 100,
  20096. "component": true
  20097. },
  20098. "pages/subPackages/companyreport/components/reportDetails": {
  20099. "navigationBarTitleText": "走访上报-详情",
  20100. "enablePullDownRefresh": true,
  20101. "onReachBottomDistance": 100,
  20102. "component": true
  20103. },
  20104. "pages/subPackages/companyreport/companyreport": {
  20105. "navigationBarTitleText": "走访上报",
  20106. "enablePullDownRefresh": true,
  20107. "onReachBottomDistance": 100,
  20108. "component": true
  20109. }
  20110. },
  20111. "globalStyle": {
  20112. "pageOrientation": "portrait",
  20113. "navigationBarTitleText": "Hello uniapp",
  20114. "navigationBarTextStyle": "black",
  20115. "navigationBarBackgroundColor": "#FFFFFF",
  20116. "backgroundColor": "#FFFFFF",
  20117. "backgroundColorTop": "#FFFFFF",
  20118. "backgroundColorBottom": "#F4F5F6"
  20119. }
  20120. };
  20121. exports.default = _default;
  20122. /***/ }),
  20123. /***/ 46:
  20124. /*!**********************************************************************************************************!*\
  20125. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  20126. \**********************************************************************************************************/
  20127. /*! exports provided: default */
  20128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20129. "use strict";
  20130. __webpack_require__.r(__webpack_exports__);
  20131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  20132. /* globals __VUE_SSR_CONTEXT__ */
  20133. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  20134. // This module is a runtime utility for cleaner component module output and will
  20135. // be included in the final webpack user bundle.
  20136. function normalizeComponent (
  20137. scriptExports,
  20138. render,
  20139. staticRenderFns,
  20140. functionalTemplate,
  20141. injectStyles,
  20142. scopeId,
  20143. moduleIdentifier, /* server only */
  20144. shadowMode, /* vue-cli only */
  20145. components, // fixed by xxxxxx auto components
  20146. renderjs // fixed by xxxxxx renderjs
  20147. ) {
  20148. // Vue.extend constructor export interop
  20149. var options = typeof scriptExports === 'function'
  20150. ? scriptExports.options
  20151. : scriptExports
  20152. // fixed by xxxxxx auto components
  20153. if (components) {
  20154. if (!options.components) {
  20155. options.components = {}
  20156. }
  20157. var hasOwn = Object.prototype.hasOwnProperty
  20158. for (var name in components) {
  20159. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  20160. options.components[name] = components[name]
  20161. }
  20162. }
  20163. }
  20164. // fixed by xxxxxx renderjs
  20165. if (renderjs) {
  20166. if(typeof renderjs.beforeCreate === 'function'){
  20167. renderjs.beforeCreate = [renderjs.beforeCreate]
  20168. }
  20169. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  20170. this[renderjs.__module] = this
  20171. });
  20172. (options.mixins || (options.mixins = [])).push(renderjs)
  20173. }
  20174. // render functions
  20175. if (render) {
  20176. options.render = render
  20177. options.staticRenderFns = staticRenderFns
  20178. options._compiled = true
  20179. }
  20180. // functional template
  20181. if (functionalTemplate) {
  20182. options.functional = true
  20183. }
  20184. // scopedId
  20185. if (scopeId) {
  20186. options._scopeId = 'data-v-' + scopeId
  20187. }
  20188. var hook
  20189. if (moduleIdentifier) { // server build
  20190. hook = function (context) {
  20191. // 2.3 injection
  20192. context =
  20193. context || // cached call
  20194. (this.$vnode && this.$vnode.ssrContext) || // stateful
  20195. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  20196. // 2.2 with runInNewContext: true
  20197. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  20198. context = __VUE_SSR_CONTEXT__
  20199. }
  20200. // inject component styles
  20201. if (injectStyles) {
  20202. injectStyles.call(this, context)
  20203. }
  20204. // register component module identifier for async chunk inferrence
  20205. if (context && context._registeredComponents) {
  20206. context._registeredComponents.add(moduleIdentifier)
  20207. }
  20208. }
  20209. // used by ssr in case component is cached and beforeCreate
  20210. // never gets called
  20211. options._ssrRegister = hook
  20212. } else if (injectStyles) {
  20213. hook = shadowMode
  20214. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  20215. : injectStyles
  20216. }
  20217. if (hook) {
  20218. if (options.functional) {
  20219. // for template-only hot-reload because in that case the render fn doesn't
  20220. // go through the normalizer
  20221. options._injectStyles = hook
  20222. // register for functioal component in vue file
  20223. var originalRender = options.render
  20224. options.render = function renderWithStyleInjection (h, context) {
  20225. hook.call(context)
  20226. return originalRender(h, context)
  20227. }
  20228. } else {
  20229. // inject component registration as beforeCreate hook
  20230. var existing = options.beforeCreate
  20231. options.beforeCreate = existing
  20232. ? [].concat(existing, hook)
  20233. : [hook]
  20234. }
  20235. }
  20236. return {
  20237. exports: scriptExports,
  20238. options: options
  20239. }
  20240. }
  20241. /***/ }),
  20242. /***/ 47:
  20243. /*!***************************************************!*\
  20244. !*** D:/AAAcompany_product/产品化管理端/store/index.js ***!
  20245. \***************************************************/
  20246. /*! no static exports found */
  20247. /***/ (function(module, exports, __webpack_require__) {
  20248. "use strict";
  20249. /* WEBPACK VAR INJECTION */(function(uni) {
  20250. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20251. Object.defineProperty(exports, "__esModule", {
  20252. value: true
  20253. });
  20254. exports.default = void 0;
  20255. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  20256. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 48));
  20257. _vue.default.use(_vuex.default);
  20258. var store = new _vuex.default.Store({
  20259. state: {
  20260. userInfo: null,
  20261. token: null,
  20262. isRefresh: true,
  20263. kickbackData: []
  20264. },
  20265. getters: {
  20266. kickbackDataLen: function kickbackDataLen(state) {
  20267. return state.kickbackData.length;
  20268. }
  20269. },
  20270. mutations: {
  20271. setData: function setData(state, _ref) {
  20272. var payload = _ref.payload;
  20273. for (var v in payload) {
  20274. state[v] = payload[v];
  20275. uni.setStorageSync(v, payload[v]);
  20276. }
  20277. }
  20278. },
  20279. actions: {}
  20280. });
  20281. var _default = store;
  20282. exports.default = _default;
  20283. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20284. /***/ }),
  20285. /***/ 475:
  20286. /*!***************************************************************************!*\
  20287. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/popup/index.js ***!
  20288. \***************************************************************************/
  20289. /*! no static exports found */
  20290. /***/ (function(module, exports, __webpack_require__) {
  20291. "use strict";
  20292. var _component = __webpack_require__(/*! ../common/component */ 476);
  20293. var _transition = __webpack_require__(/*! ../mixins/transition */ 478);
  20294. (0, _component.VantComponent)({
  20295. classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class', 'close-icon-class'],
  20296. mixins: [(0, _transition.transition)(false)],
  20297. props: {
  20298. round: Boolean,
  20299. closeable: Boolean,
  20300. customStyle: String,
  20301. overlayStyle: String,
  20302. transition: {
  20303. type: String,
  20304. observer: 'observeClass'
  20305. },
  20306. zIndex: {
  20307. type: Number,
  20308. value: 100
  20309. },
  20310. overlay: {
  20311. type: Boolean,
  20312. value: true
  20313. },
  20314. closeIcon: {
  20315. type: String,
  20316. value: 'cross'
  20317. },
  20318. closeIconPosition: {
  20319. type: String,
  20320. value: 'top-right'
  20321. },
  20322. closeOnClickOverlay: {
  20323. type: Boolean,
  20324. value: true
  20325. },
  20326. position: {
  20327. type: String,
  20328. value: 'center',
  20329. observer: 'observeClass'
  20330. },
  20331. safeAreaInsetBottom: {
  20332. type: Boolean,
  20333. value: true
  20334. },
  20335. safeAreaInsetTop: {
  20336. type: Boolean,
  20337. value: false
  20338. },
  20339. safeAreaTabBar: {
  20340. type: Boolean,
  20341. value: false
  20342. },
  20343. lockScroll: {
  20344. type: Boolean,
  20345. value: true
  20346. },
  20347. rootPortal: {
  20348. type: Boolean,
  20349. value: false
  20350. }
  20351. },
  20352. created: function created() {
  20353. this.observeClass();
  20354. },
  20355. methods: {
  20356. onClickCloseIcon: function onClickCloseIcon() {
  20357. this.$emit('close');
  20358. },
  20359. onClickOverlay: function onClickOverlay() {
  20360. this.$emit('click-overlay');
  20361. if (this.data.closeOnClickOverlay) {
  20362. this.$emit('close');
  20363. }
  20364. },
  20365. observeClass: function observeClass() {
  20366. var _this$data = this.data,
  20367. transition = _this$data.transition,
  20368. position = _this$data.position,
  20369. duration = _this$data.duration;
  20370. var updateData = {
  20371. name: transition || position
  20372. };
  20373. if (transition === 'none') {
  20374. updateData.duration = 0;
  20375. this.originDuration = duration;
  20376. } else if (this.originDuration != null) {
  20377. updateData.duration = this.originDuration;
  20378. }
  20379. this.setData(updateData);
  20380. }
  20381. }
  20382. });
  20383. /***/ }),
  20384. /***/ 476:
  20385. /*!********************************************************************************!*\
  20386. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/common/component.js ***!
  20387. \********************************************************************************/
  20388. /*! no static exports found */
  20389. /***/ (function(module, exports, __webpack_require__) {
  20390. "use strict";
  20391. Object.defineProperty(exports, "__esModule", {
  20392. value: true
  20393. });
  20394. exports.VantComponent = VantComponent;
  20395. var _basic = __webpack_require__(/*! ../mixins/basic */ 477);
  20396. function mapKeys(source, target, map) {
  20397. Object.keys(map).forEach(function (key) {
  20398. if (source[key]) {
  20399. target[map[key]] = source[key];
  20400. }
  20401. });
  20402. }
  20403. function VantComponent(vantOptions) {
  20404. var options = {};
  20405. mapKeys(vantOptions, options, {
  20406. data: 'data',
  20407. props: 'properties',
  20408. watch: 'observers',
  20409. mixins: 'behaviors',
  20410. methods: 'methods',
  20411. beforeCreate: 'created',
  20412. created: 'attached',
  20413. mounted: 'ready',
  20414. destroyed: 'detached',
  20415. classes: 'externalClasses'
  20416. });
  20417. // add default externalClasses
  20418. options.externalClasses = options.externalClasses || [];
  20419. options.externalClasses.push('custom-class');
  20420. // add default behaviors
  20421. options.behaviors = options.behaviors || [];
  20422. options.behaviors.push(_basic.basic);
  20423. // add relations
  20424. var relation = vantOptions.relation;
  20425. if (relation) {
  20426. options.relations = relation.relations;
  20427. options.behaviors.push(relation.mixin);
  20428. }
  20429. // map field to form-field behavior
  20430. if (vantOptions.field) {
  20431. options.behaviors.push('wx://form-field');
  20432. }
  20433. // add default options
  20434. options.options = {
  20435. multipleSlots: true,
  20436. addGlobalClass: true
  20437. };
  20438. Component(options);
  20439. }
  20440. /***/ }),
  20441. /***/ 477:
  20442. /*!****************************************************************************!*\
  20443. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/mixins/basic.js ***!
  20444. \****************************************************************************/
  20445. /*! no static exports found */
  20446. /***/ (function(module, exports, __webpack_require__) {
  20447. "use strict";
  20448. /* WEBPACK VAR INJECTION */(function(wx) {
  20449. Object.defineProperty(exports, "__esModule", {
  20450. value: true
  20451. });
  20452. exports.basic = void 0;
  20453. var basic = Behavior({
  20454. methods: {
  20455. $emit: function $emit(name, detail, options) {
  20456. this.triggerEvent(name, detail, options);
  20457. },
  20458. set: function set(data) {
  20459. this.setData(data);
  20460. return new Promise(function (resolve) {
  20461. return wx.nextTick(resolve);
  20462. });
  20463. }
  20464. }
  20465. });
  20466. exports.basic = basic;
  20467. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20468. /***/ }),
  20469. /***/ 478:
  20470. /*!*********************************************************************************!*\
  20471. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/mixins/transition.js ***!
  20472. \*********************************************************************************/
  20473. /*! no static exports found */
  20474. /***/ (function(module, exports, __webpack_require__) {
  20475. "use strict";
  20476. Object.defineProperty(exports, "__esModule", {
  20477. value: true
  20478. });
  20479. exports.transition = transition;
  20480. var _utils = __webpack_require__(/*! ../common/utils */ 479);
  20481. var _validator = __webpack_require__(/*! ../common/validator */ 480);
  20482. // @ts-nocheck
  20483. var getClassNames = function getClassNames(name) {
  20484. return {
  20485. enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
  20486. 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
  20487. leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
  20488. 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class")
  20489. };
  20490. };
  20491. function transition(showDefaultValue) {
  20492. return Behavior({
  20493. properties: {
  20494. customStyle: String,
  20495. // @ts-ignore
  20496. show: {
  20497. type: Boolean,
  20498. value: showDefaultValue,
  20499. observer: 'observeShow'
  20500. },
  20501. // @ts-ignore
  20502. duration: {
  20503. type: null,
  20504. value: 300,
  20505. observer: 'observeDuration'
  20506. },
  20507. name: {
  20508. type: String,
  20509. value: 'fade'
  20510. }
  20511. },
  20512. data: {
  20513. type: '',
  20514. inited: false,
  20515. display: false
  20516. },
  20517. ready: function ready() {
  20518. if (this.data.show === true) {
  20519. this.observeShow(true, false);
  20520. }
  20521. },
  20522. methods: {
  20523. observeShow: function observeShow(value, old) {
  20524. if (value === old) {
  20525. return;
  20526. }
  20527. value ? this.enter() : this.leave();
  20528. },
  20529. enter: function enter() {
  20530. var _this = this;
  20531. var _this$data = this.data,
  20532. duration = _this$data.duration,
  20533. name = _this$data.name;
  20534. var classNames = getClassNames(name);
  20535. var currentDuration = (0, _validator.isObj)(duration) ? duration.enter : duration;
  20536. if (this.status === 'enter') {
  20537. return;
  20538. }
  20539. this.status = 'enter';
  20540. this.$emit('before-enter');
  20541. (0, _utils.requestAnimationFrame)(function () {
  20542. if (_this.status !== 'enter') {
  20543. return;
  20544. }
  20545. _this.$emit('enter');
  20546. _this.setData({
  20547. inited: true,
  20548. display: true,
  20549. classes: classNames.enter,
  20550. currentDuration: currentDuration
  20551. });
  20552. (0, _utils.requestAnimationFrame)(function () {
  20553. if (_this.status !== 'enter') {
  20554. return;
  20555. }
  20556. _this.transitionEnded = false;
  20557. _this.setData({
  20558. classes: classNames['enter-to']
  20559. });
  20560. });
  20561. });
  20562. },
  20563. leave: function leave() {
  20564. var _this2 = this;
  20565. if (!this.data.display) {
  20566. return;
  20567. }
  20568. var _this$data2 = this.data,
  20569. duration = _this$data2.duration,
  20570. name = _this$data2.name;
  20571. var classNames = getClassNames(name);
  20572. var currentDuration = (0, _validator.isObj)(duration) ? duration.leave : duration;
  20573. this.status = 'leave';
  20574. this.$emit('before-leave');
  20575. (0, _utils.requestAnimationFrame)(function () {
  20576. if (_this2.status !== 'leave') {
  20577. return;
  20578. }
  20579. _this2.$emit('leave');
  20580. _this2.setData({
  20581. classes: classNames.leave,
  20582. currentDuration: currentDuration
  20583. });
  20584. (0, _utils.requestAnimationFrame)(function () {
  20585. if (_this2.status !== 'leave') {
  20586. return;
  20587. }
  20588. _this2.transitionEnded = false;
  20589. setTimeout(function () {
  20590. return _this2.onTransitionEnd();
  20591. }, currentDuration);
  20592. _this2.setData({
  20593. classes: classNames['leave-to']
  20594. });
  20595. });
  20596. });
  20597. },
  20598. onTransitionEnd: function onTransitionEnd() {
  20599. if (this.transitionEnded) {
  20600. return;
  20601. }
  20602. this.transitionEnded = true;
  20603. this.$emit("after-".concat(this.status));
  20604. var _this$data3 = this.data,
  20605. show = _this$data3.show,
  20606. display = _this$data3.display;
  20607. if (!show && display) {
  20608. this.setData({
  20609. display: false
  20610. });
  20611. }
  20612. }
  20613. }
  20614. });
  20615. }
  20616. /***/ }),
  20617. /***/ 479:
  20618. /*!****************************************************************************!*\
  20619. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/common/utils.js ***!
  20620. \****************************************************************************/
  20621. /*! no static exports found */
  20622. /***/ (function(module, exports, __webpack_require__) {
  20623. "use strict";
  20624. /* WEBPACK VAR INJECTION */(function(wx) {
  20625. Object.defineProperty(exports, "__esModule", {
  20626. value: true
  20627. });
  20628. exports.addUnit = addUnit;
  20629. exports.getAllRect = getAllRect;
  20630. exports.getCurrentPage = getCurrentPage;
  20631. exports.getRect = getRect;
  20632. Object.defineProperty(exports, "getSystemInfoSync", {
  20633. enumerable: true,
  20634. get: function get() {
  20635. return _version.getSystemInfoSync;
  20636. }
  20637. });
  20638. exports.groupSetData = groupSetData;
  20639. Object.defineProperty(exports, "isDef", {
  20640. enumerable: true,
  20641. get: function get() {
  20642. return _validator.isDef;
  20643. }
  20644. });
  20645. exports.nextTick = nextTick;
  20646. exports.pickExclude = pickExclude;
  20647. exports.range = range;
  20648. exports.requestAnimationFrame = requestAnimationFrame;
  20649. exports.toPromise = toPromise;
  20650. var _validator = __webpack_require__(/*! ./validator */ 480);
  20651. var _version = __webpack_require__(/*! ./version */ 481);
  20652. function range(num, min, max) {
  20653. return Math.min(Math.max(num, min), max);
  20654. }
  20655. function nextTick(cb) {
  20656. if ((0, _version.canIUseNextTick)()) {
  20657. wx.nextTick(cb);
  20658. } else {
  20659. setTimeout(function () {
  20660. cb();
  20661. }, 1000 / 30);
  20662. }
  20663. }
  20664. function addUnit(value) {
  20665. if (!(0, _validator.isDef)(value)) {
  20666. return undefined;
  20667. }
  20668. value = String(value);
  20669. return (0, _validator.isNumber)(value) ? "".concat(value, "px") : value;
  20670. }
  20671. function requestAnimationFrame(cb) {
  20672. return setTimeout(function () {
  20673. cb();
  20674. }, 1000 / 30);
  20675. }
  20676. function pickExclude(obj, keys) {
  20677. if (!(0, _validator.isPlainObject)(obj)) {
  20678. return {};
  20679. }
  20680. return Object.keys(obj).reduce(function (prev, key) {
  20681. if (!keys.includes(key)) {
  20682. prev[key] = obj[key];
  20683. }
  20684. return prev;
  20685. }, {});
  20686. }
  20687. function getRect(context, selector) {
  20688. return new Promise(function (resolve) {
  20689. wx.createSelectorQuery().in(context).select(selector).boundingClientRect().exec(function () {
  20690. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  20691. return resolve(rect[0]);
  20692. });
  20693. });
  20694. }
  20695. function getAllRect(context, selector) {
  20696. return new Promise(function (resolve) {
  20697. wx.createSelectorQuery().in(context).selectAll(selector).boundingClientRect().exec(function () {
  20698. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  20699. return resolve(rect[0]);
  20700. });
  20701. });
  20702. }
  20703. function groupSetData(context, cb) {
  20704. if ((0, _version.canIUseGroupSetData)()) {
  20705. context.groupSetData(cb);
  20706. } else {
  20707. cb();
  20708. }
  20709. }
  20710. function toPromise(promiseLike) {
  20711. if ((0, _validator.isPromise)(promiseLike)) {
  20712. return promiseLike;
  20713. }
  20714. return Promise.resolve(promiseLike);
  20715. }
  20716. function getCurrentPage() {
  20717. var pages = getCurrentPages();
  20718. return pages[pages.length - 1];
  20719. }
  20720. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20721. /***/ }),
  20722. /***/ 48:
  20723. /*!**************************************************************************************!*\
  20724. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  20725. \**************************************************************************************/
  20726. /*! no static exports found */
  20727. /***/ (function(module, exports, __webpack_require__) {
  20728. "use strict";
  20729. /* WEBPACK VAR INJECTION */(function(global) {/*!
  20730. * vuex v3.6.2
  20731. * (c) 2021 Evan You
  20732. * @license MIT
  20733. */
  20734. function applyMixin (Vue) {
  20735. var version = Number(Vue.version.split('.')[0]);
  20736. if (version >= 2) {
  20737. Vue.mixin({ beforeCreate: vuexInit });
  20738. } else {
  20739. // override init and inject vuex init procedure
  20740. // for 1.x backwards compatibility.
  20741. var _init = Vue.prototype._init;
  20742. Vue.prototype._init = function (options) {
  20743. if ( options === void 0 ) options = {};
  20744. options.init = options.init
  20745. ? [vuexInit].concat(options.init)
  20746. : vuexInit;
  20747. _init.call(this, options);
  20748. };
  20749. }
  20750. /**
  20751. * Vuex init hook, injected into each instances init hooks list.
  20752. */
  20753. function vuexInit () {
  20754. var options = this.$options;
  20755. // store injection
  20756. if (options.store) {
  20757. this.$store = typeof options.store === 'function'
  20758. ? options.store()
  20759. : options.store;
  20760. } else if (options.parent && options.parent.$store) {
  20761. this.$store = options.parent.$store;
  20762. }
  20763. }
  20764. }
  20765. var target = typeof window !== 'undefined'
  20766. ? window
  20767. : typeof global !== 'undefined'
  20768. ? global
  20769. : {};
  20770. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  20771. function devtoolPlugin (store) {
  20772. if (!devtoolHook) { return }
  20773. store._devtoolHook = devtoolHook;
  20774. devtoolHook.emit('vuex:init', store);
  20775. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  20776. store.replaceState(targetState);
  20777. });
  20778. store.subscribe(function (mutation, state) {
  20779. devtoolHook.emit('vuex:mutation', mutation, state);
  20780. }, { prepend: true });
  20781. store.subscribeAction(function (action, state) {
  20782. devtoolHook.emit('vuex:action', action, state);
  20783. }, { prepend: true });
  20784. }
  20785. /**
  20786. * Get the first item that pass the test
  20787. * by second argument function
  20788. *
  20789. * @param {Array} list
  20790. * @param {Function} f
  20791. * @return {*}
  20792. */
  20793. function find (list, f) {
  20794. return list.filter(f)[0]
  20795. }
  20796. /**
  20797. * Deep copy the given object considering circular structure.
  20798. * This function caches all nested objects and its copies.
  20799. * If it detects circular structure, use cached copy to avoid infinite loop.
  20800. *
  20801. * @param {*} obj
  20802. * @param {Array<Object>} cache
  20803. * @return {*}
  20804. */
  20805. function deepCopy (obj, cache) {
  20806. if ( cache === void 0 ) cache = [];
  20807. // just return if obj is immutable value
  20808. if (obj === null || typeof obj !== 'object') {
  20809. return obj
  20810. }
  20811. // if obj is hit, it is in circular structure
  20812. var hit = find(cache, function (c) { return c.original === obj; });
  20813. if (hit) {
  20814. return hit.copy
  20815. }
  20816. var copy = Array.isArray(obj) ? [] : {};
  20817. // put the copy into cache at first
  20818. // because we want to refer it in recursive deepCopy
  20819. cache.push({
  20820. original: obj,
  20821. copy: copy
  20822. });
  20823. Object.keys(obj).forEach(function (key) {
  20824. copy[key] = deepCopy(obj[key], cache);
  20825. });
  20826. return copy
  20827. }
  20828. /**
  20829. * forEach for object
  20830. */
  20831. function forEachValue (obj, fn) {
  20832. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  20833. }
  20834. function isObject (obj) {
  20835. return obj !== null && typeof obj === 'object'
  20836. }
  20837. function isPromise (val) {
  20838. return val && typeof val.then === 'function'
  20839. }
  20840. function assert (condition, msg) {
  20841. if (!condition) { throw new Error(("[vuex] " + msg)) }
  20842. }
  20843. function partial (fn, arg) {
  20844. return function () {
  20845. return fn(arg)
  20846. }
  20847. }
  20848. // Base data struct for store's module, package with some attribute and method
  20849. var Module = function Module (rawModule, runtime) {
  20850. this.runtime = runtime;
  20851. // Store some children item
  20852. this._children = Object.create(null);
  20853. // Store the origin module object which passed by programmer
  20854. this._rawModule = rawModule;
  20855. var rawState = rawModule.state;
  20856. // Store the origin module's state
  20857. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  20858. };
  20859. var prototypeAccessors = { namespaced: { configurable: true } };
  20860. prototypeAccessors.namespaced.get = function () {
  20861. return !!this._rawModule.namespaced
  20862. };
  20863. Module.prototype.addChild = function addChild (key, module) {
  20864. this._children[key] = module;
  20865. };
  20866. Module.prototype.removeChild = function removeChild (key) {
  20867. delete this._children[key];
  20868. };
  20869. Module.prototype.getChild = function getChild (key) {
  20870. return this._children[key]
  20871. };
  20872. Module.prototype.hasChild = function hasChild (key) {
  20873. return key in this._children
  20874. };
  20875. Module.prototype.update = function update (rawModule) {
  20876. this._rawModule.namespaced = rawModule.namespaced;
  20877. if (rawModule.actions) {
  20878. this._rawModule.actions = rawModule.actions;
  20879. }
  20880. if (rawModule.mutations) {
  20881. this._rawModule.mutations = rawModule.mutations;
  20882. }
  20883. if (rawModule.getters) {
  20884. this._rawModule.getters = rawModule.getters;
  20885. }
  20886. };
  20887. Module.prototype.forEachChild = function forEachChild (fn) {
  20888. forEachValue(this._children, fn);
  20889. };
  20890. Module.prototype.forEachGetter = function forEachGetter (fn) {
  20891. if (this._rawModule.getters) {
  20892. forEachValue(this._rawModule.getters, fn);
  20893. }
  20894. };
  20895. Module.prototype.forEachAction = function forEachAction (fn) {
  20896. if (this._rawModule.actions) {
  20897. forEachValue(this._rawModule.actions, fn);
  20898. }
  20899. };
  20900. Module.prototype.forEachMutation = function forEachMutation (fn) {
  20901. if (this._rawModule.mutations) {
  20902. forEachValue(this._rawModule.mutations, fn);
  20903. }
  20904. };
  20905. Object.defineProperties( Module.prototype, prototypeAccessors );
  20906. var ModuleCollection = function ModuleCollection (rawRootModule) {
  20907. // register root module (Vuex.Store options)
  20908. this.register([], rawRootModule, false);
  20909. };
  20910. ModuleCollection.prototype.get = function get (path) {
  20911. return path.reduce(function (module, key) {
  20912. return module.getChild(key)
  20913. }, this.root)
  20914. };
  20915. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  20916. var module = this.root;
  20917. return path.reduce(function (namespace, key) {
  20918. module = module.getChild(key);
  20919. return namespace + (module.namespaced ? key + '/' : '')
  20920. }, '')
  20921. };
  20922. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  20923. update([], this.root, rawRootModule);
  20924. };
  20925. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  20926. var this$1 = this;
  20927. if ( runtime === void 0 ) runtime = true;
  20928. if ((true)) {
  20929. assertRawModule(path, rawModule);
  20930. }
  20931. var newModule = new Module(rawModule, runtime);
  20932. if (path.length === 0) {
  20933. this.root = newModule;
  20934. } else {
  20935. var parent = this.get(path.slice(0, -1));
  20936. parent.addChild(path[path.length - 1], newModule);
  20937. }
  20938. // register nested modules
  20939. if (rawModule.modules) {
  20940. forEachValue(rawModule.modules, function (rawChildModule, key) {
  20941. this$1.register(path.concat(key), rawChildModule, runtime);
  20942. });
  20943. }
  20944. };
  20945. ModuleCollection.prototype.unregister = function unregister (path) {
  20946. var parent = this.get(path.slice(0, -1));
  20947. var key = path[path.length - 1];
  20948. var child = parent.getChild(key);
  20949. if (!child) {
  20950. if ((true)) {
  20951. console.warn(
  20952. "[vuex] trying to unregister module '" + key + "', which is " +
  20953. "not registered"
  20954. );
  20955. }
  20956. return
  20957. }
  20958. if (!child.runtime) {
  20959. return
  20960. }
  20961. parent.removeChild(key);
  20962. };
  20963. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  20964. var parent = this.get(path.slice(0, -1));
  20965. var key = path[path.length - 1];
  20966. if (parent) {
  20967. return parent.hasChild(key)
  20968. }
  20969. return false
  20970. };
  20971. function update (path, targetModule, newModule) {
  20972. if ((true)) {
  20973. assertRawModule(path, newModule);
  20974. }
  20975. // update target module
  20976. targetModule.update(newModule);
  20977. // update nested modules
  20978. if (newModule.modules) {
  20979. for (var key in newModule.modules) {
  20980. if (!targetModule.getChild(key)) {
  20981. if ((true)) {
  20982. console.warn(
  20983. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  20984. 'manual reload is needed'
  20985. );
  20986. }
  20987. return
  20988. }
  20989. update(
  20990. path.concat(key),
  20991. targetModule.getChild(key),
  20992. newModule.modules[key]
  20993. );
  20994. }
  20995. }
  20996. }
  20997. var functionAssert = {
  20998. assert: function (value) { return typeof value === 'function'; },
  20999. expected: 'function'
  21000. };
  21001. var objectAssert = {
  21002. assert: function (value) { return typeof value === 'function' ||
  21003. (typeof value === 'object' && typeof value.handler === 'function'); },
  21004. expected: 'function or object with "handler" function'
  21005. };
  21006. var assertTypes = {
  21007. getters: functionAssert,
  21008. mutations: functionAssert,
  21009. actions: objectAssert
  21010. };
  21011. function assertRawModule (path, rawModule) {
  21012. Object.keys(assertTypes).forEach(function (key) {
  21013. if (!rawModule[key]) { return }
  21014. var assertOptions = assertTypes[key];
  21015. forEachValue(rawModule[key], function (value, type) {
  21016. assert(
  21017. assertOptions.assert(value),
  21018. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  21019. );
  21020. });
  21021. });
  21022. }
  21023. function makeAssertionMessage (path, key, type, value, expected) {
  21024. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  21025. if (path.length > 0) {
  21026. buf += " in module \"" + (path.join('.')) + "\"";
  21027. }
  21028. buf += " is " + (JSON.stringify(value)) + ".";
  21029. return buf
  21030. }
  21031. var Vue; // bind on install
  21032. var Store = function Store (options) {
  21033. var this$1 = this;
  21034. if ( options === void 0 ) options = {};
  21035. // Auto install if it is not done yet and `window` has `Vue`.
  21036. // To allow users to avoid auto-installation in some cases,
  21037. // this code should be placed here. See #731
  21038. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  21039. install(window.Vue);
  21040. }
  21041. if ((true)) {
  21042. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  21043. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  21044. assert(this instanceof Store, "store must be called with the new operator.");
  21045. }
  21046. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  21047. var strict = options.strict; if ( strict === void 0 ) strict = false;
  21048. // store internal state
  21049. this._committing = false;
  21050. this._actions = Object.create(null);
  21051. this._actionSubscribers = [];
  21052. this._mutations = Object.create(null);
  21053. this._wrappedGetters = Object.create(null);
  21054. this._modules = new ModuleCollection(options);
  21055. this._modulesNamespaceMap = Object.create(null);
  21056. this._subscribers = [];
  21057. this._watcherVM = new Vue();
  21058. this._makeLocalGettersCache = Object.create(null);
  21059. // bind commit and dispatch to self
  21060. var store = this;
  21061. var ref = this;
  21062. var dispatch = ref.dispatch;
  21063. var commit = ref.commit;
  21064. this.dispatch = function boundDispatch (type, payload) {
  21065. return dispatch.call(store, type, payload)
  21066. };
  21067. this.commit = function boundCommit (type, payload, options) {
  21068. return commit.call(store, type, payload, options)
  21069. };
  21070. // strict mode
  21071. this.strict = strict;
  21072. var state = this._modules.root.state;
  21073. // init root module.
  21074. // this also recursively registers all sub-modules
  21075. // and collects all module getters inside this._wrappedGetters
  21076. installModule(this, state, [], this._modules.root);
  21077. // initialize the store vm, which is responsible for the reactivity
  21078. // (also registers _wrappedGetters as computed properties)
  21079. resetStoreVM(this, state);
  21080. // apply plugins
  21081. plugins.forEach(function (plugin) { return plugin(this$1); });
  21082. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  21083. if (useDevtools) {
  21084. devtoolPlugin(this);
  21085. }
  21086. };
  21087. var prototypeAccessors$1 = { state: { configurable: true } };
  21088. prototypeAccessors$1.state.get = function () {
  21089. return this._vm._data.$$state
  21090. };
  21091. prototypeAccessors$1.state.set = function (v) {
  21092. if ((true)) {
  21093. assert(false, "use store.replaceState() to explicit replace store state.");
  21094. }
  21095. };
  21096. Store.prototype.commit = function commit (_type, _payload, _options) {
  21097. var this$1 = this;
  21098. // check object-style commit
  21099. var ref = unifyObjectStyle(_type, _payload, _options);
  21100. var type = ref.type;
  21101. var payload = ref.payload;
  21102. var options = ref.options;
  21103. var mutation = { type: type, payload: payload };
  21104. var entry = this._mutations[type];
  21105. if (!entry) {
  21106. if ((true)) {
  21107. console.error(("[vuex] unknown mutation type: " + type));
  21108. }
  21109. return
  21110. }
  21111. this._withCommit(function () {
  21112. entry.forEach(function commitIterator (handler) {
  21113. handler(payload);
  21114. });
  21115. });
  21116. this._subscribers
  21117. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  21118. .forEach(function (sub) { return sub(mutation, this$1.state); });
  21119. if (
  21120. ( true) &&
  21121. options && options.silent
  21122. ) {
  21123. console.warn(
  21124. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  21125. 'Use the filter functionality in the vue-devtools'
  21126. );
  21127. }
  21128. };
  21129. Store.prototype.dispatch = function dispatch (_type, _payload) {
  21130. var this$1 = this;
  21131. // check object-style dispatch
  21132. var ref = unifyObjectStyle(_type, _payload);
  21133. var type = ref.type;
  21134. var payload = ref.payload;
  21135. var action = { type: type, payload: payload };
  21136. var entry = this._actions[type];
  21137. if (!entry) {
  21138. if ((true)) {
  21139. console.error(("[vuex] unknown action type: " + type));
  21140. }
  21141. return
  21142. }
  21143. try {
  21144. this._actionSubscribers
  21145. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  21146. .filter(function (sub) { return sub.before; })
  21147. .forEach(function (sub) { return sub.before(action, this$1.state); });
  21148. } catch (e) {
  21149. if ((true)) {
  21150. console.warn("[vuex] error in before action subscribers: ");
  21151. console.error(e);
  21152. }
  21153. }
  21154. var result = entry.length > 1
  21155. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  21156. : entry[0](payload);
  21157. return new Promise(function (resolve, reject) {
  21158. result.then(function (res) {
  21159. try {
  21160. this$1._actionSubscribers
  21161. .filter(function (sub) { return sub.after; })
  21162. .forEach(function (sub) { return sub.after(action, this$1.state); });
  21163. } catch (e) {
  21164. if ((true)) {
  21165. console.warn("[vuex] error in after action subscribers: ");
  21166. console.error(e);
  21167. }
  21168. }
  21169. resolve(res);
  21170. }, function (error) {
  21171. try {
  21172. this$1._actionSubscribers
  21173. .filter(function (sub) { return sub.error; })
  21174. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  21175. } catch (e) {
  21176. if ((true)) {
  21177. console.warn("[vuex] error in error action subscribers: ");
  21178. console.error(e);
  21179. }
  21180. }
  21181. reject(error);
  21182. });
  21183. })
  21184. };
  21185. Store.prototype.subscribe = function subscribe (fn, options) {
  21186. return genericSubscribe(fn, this._subscribers, options)
  21187. };
  21188. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  21189. var subs = typeof fn === 'function' ? { before: fn } : fn;
  21190. return genericSubscribe(subs, this._actionSubscribers, options)
  21191. };
  21192. Store.prototype.watch = function watch (getter, cb, options) {
  21193. var this$1 = this;
  21194. if ((true)) {
  21195. assert(typeof getter === 'function', "store.watch only accepts a function.");
  21196. }
  21197. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  21198. };
  21199. Store.prototype.replaceState = function replaceState (state) {
  21200. var this$1 = this;
  21201. this._withCommit(function () {
  21202. this$1._vm._data.$$state = state;
  21203. });
  21204. };
  21205. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  21206. if ( options === void 0 ) options = {};
  21207. if (typeof path === 'string') { path = [path]; }
  21208. if ((true)) {
  21209. assert(Array.isArray(path), "module path must be a string or an Array.");
  21210. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  21211. }
  21212. this._modules.register(path, rawModule);
  21213. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  21214. // reset store to update getters...
  21215. resetStoreVM(this, this.state);
  21216. };
  21217. Store.prototype.unregisterModule = function unregisterModule (path) {
  21218. var this$1 = this;
  21219. if (typeof path === 'string') { path = [path]; }
  21220. if ((true)) {
  21221. assert(Array.isArray(path), "module path must be a string or an Array.");
  21222. }
  21223. this._modules.unregister(path);
  21224. this._withCommit(function () {
  21225. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  21226. Vue.delete(parentState, path[path.length - 1]);
  21227. });
  21228. resetStore(this);
  21229. };
  21230. Store.prototype.hasModule = function hasModule (path) {
  21231. if (typeof path === 'string') { path = [path]; }
  21232. if ((true)) {
  21233. assert(Array.isArray(path), "module path must be a string or an Array.");
  21234. }
  21235. return this._modules.isRegistered(path)
  21236. };
  21237. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  21238. this._modules.update(newOptions);
  21239. resetStore(this, true);
  21240. };
  21241. Store.prototype._withCommit = function _withCommit (fn) {
  21242. var committing = this._committing;
  21243. this._committing = true;
  21244. fn();
  21245. this._committing = committing;
  21246. };
  21247. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  21248. function genericSubscribe (fn, subs, options) {
  21249. if (subs.indexOf(fn) < 0) {
  21250. options && options.prepend
  21251. ? subs.unshift(fn)
  21252. : subs.push(fn);
  21253. }
  21254. return function () {
  21255. var i = subs.indexOf(fn);
  21256. if (i > -1) {
  21257. subs.splice(i, 1);
  21258. }
  21259. }
  21260. }
  21261. function resetStore (store, hot) {
  21262. store._actions = Object.create(null);
  21263. store._mutations = Object.create(null);
  21264. store._wrappedGetters = Object.create(null);
  21265. store._modulesNamespaceMap = Object.create(null);
  21266. var state = store.state;
  21267. // init all modules
  21268. installModule(store, state, [], store._modules.root, true);
  21269. // reset vm
  21270. resetStoreVM(store, state, hot);
  21271. }
  21272. function resetStoreVM (store, state, hot) {
  21273. var oldVm = store._vm;
  21274. // bind store public getters
  21275. store.getters = {};
  21276. // reset local getters cache
  21277. store._makeLocalGettersCache = Object.create(null);
  21278. var wrappedGetters = store._wrappedGetters;
  21279. var computed = {};
  21280. forEachValue(wrappedGetters, function (fn, key) {
  21281. // use computed to leverage its lazy-caching mechanism
  21282. // direct inline function use will lead to closure preserving oldVm.
  21283. // using partial to return function with only arguments preserved in closure environment.
  21284. computed[key] = partial(fn, store);
  21285. Object.defineProperty(store.getters, key, {
  21286. get: function () { return store._vm[key]; },
  21287. enumerable: true // for local getters
  21288. });
  21289. });
  21290. // use a Vue instance to store the state tree
  21291. // suppress warnings just in case the user has added
  21292. // some funky global mixins
  21293. var silent = Vue.config.silent;
  21294. Vue.config.silent = true;
  21295. store._vm = new Vue({
  21296. data: {
  21297. $$state: state
  21298. },
  21299. computed: computed
  21300. });
  21301. Vue.config.silent = silent;
  21302. // enable strict mode for new vm
  21303. if (store.strict) {
  21304. enableStrictMode(store);
  21305. }
  21306. if (oldVm) {
  21307. if (hot) {
  21308. // dispatch changes in all subscribed watchers
  21309. // to force getter re-evaluation for hot reloading.
  21310. store._withCommit(function () {
  21311. oldVm._data.$$state = null;
  21312. });
  21313. }
  21314. Vue.nextTick(function () { return oldVm.$destroy(); });
  21315. }
  21316. }
  21317. function installModule (store, rootState, path, module, hot) {
  21318. var isRoot = !path.length;
  21319. var namespace = store._modules.getNamespace(path);
  21320. // register in namespace map
  21321. if (module.namespaced) {
  21322. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  21323. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  21324. }
  21325. store._modulesNamespaceMap[namespace] = module;
  21326. }
  21327. // set state
  21328. if (!isRoot && !hot) {
  21329. var parentState = getNestedState(rootState, path.slice(0, -1));
  21330. var moduleName = path[path.length - 1];
  21331. store._withCommit(function () {
  21332. if ((true)) {
  21333. if (moduleName in parentState) {
  21334. console.warn(
  21335. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  21336. );
  21337. }
  21338. }
  21339. Vue.set(parentState, moduleName, module.state);
  21340. });
  21341. }
  21342. var local = module.context = makeLocalContext(store, namespace, path);
  21343. module.forEachMutation(function (mutation, key) {
  21344. var namespacedType = namespace + key;
  21345. registerMutation(store, namespacedType, mutation, local);
  21346. });
  21347. module.forEachAction(function (action, key) {
  21348. var type = action.root ? key : namespace + key;
  21349. var handler = action.handler || action;
  21350. registerAction(store, type, handler, local);
  21351. });
  21352. module.forEachGetter(function (getter, key) {
  21353. var namespacedType = namespace + key;
  21354. registerGetter(store, namespacedType, getter, local);
  21355. });
  21356. module.forEachChild(function (child, key) {
  21357. installModule(store, rootState, path.concat(key), child, hot);
  21358. });
  21359. }
  21360. /**
  21361. * make localized dispatch, commit, getters and state
  21362. * if there is no namespace, just use root ones
  21363. */
  21364. function makeLocalContext (store, namespace, path) {
  21365. var noNamespace = namespace === '';
  21366. var local = {
  21367. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  21368. var args = unifyObjectStyle(_type, _payload, _options);
  21369. var payload = args.payload;
  21370. var options = args.options;
  21371. var type = args.type;
  21372. if (!options || !options.root) {
  21373. type = namespace + type;
  21374. if (( true) && !store._actions[type]) {
  21375. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  21376. return
  21377. }
  21378. }
  21379. return store.dispatch(type, payload)
  21380. },
  21381. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  21382. var args = unifyObjectStyle(_type, _payload, _options);
  21383. var payload = args.payload;
  21384. var options = args.options;
  21385. var type = args.type;
  21386. if (!options || !options.root) {
  21387. type = namespace + type;
  21388. if (( true) && !store._mutations[type]) {
  21389. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  21390. return
  21391. }
  21392. }
  21393. store.commit(type, payload, options);
  21394. }
  21395. };
  21396. // getters and state object must be gotten lazily
  21397. // because they will be changed by vm update
  21398. Object.defineProperties(local, {
  21399. getters: {
  21400. get: noNamespace
  21401. ? function () { return store.getters; }
  21402. : function () { return makeLocalGetters(store, namespace); }
  21403. },
  21404. state: {
  21405. get: function () { return getNestedState(store.state, path); }
  21406. }
  21407. });
  21408. return local
  21409. }
  21410. function makeLocalGetters (store, namespace) {
  21411. if (!store._makeLocalGettersCache[namespace]) {
  21412. var gettersProxy = {};
  21413. var splitPos = namespace.length;
  21414. Object.keys(store.getters).forEach(function (type) {
  21415. // skip if the target getter is not match this namespace
  21416. if (type.slice(0, splitPos) !== namespace) { return }
  21417. // extract local getter type
  21418. var localType = type.slice(splitPos);
  21419. // Add a port to the getters proxy.
  21420. // Define as getter property because
  21421. // we do not want to evaluate the getters in this time.
  21422. Object.defineProperty(gettersProxy, localType, {
  21423. get: function () { return store.getters[type]; },
  21424. enumerable: true
  21425. });
  21426. });
  21427. store._makeLocalGettersCache[namespace] = gettersProxy;
  21428. }
  21429. return store._makeLocalGettersCache[namespace]
  21430. }
  21431. function registerMutation (store, type, handler, local) {
  21432. var entry = store._mutations[type] || (store._mutations[type] = []);
  21433. entry.push(function wrappedMutationHandler (payload) {
  21434. handler.call(store, local.state, payload);
  21435. });
  21436. }
  21437. function registerAction (store, type, handler, local) {
  21438. var entry = store._actions[type] || (store._actions[type] = []);
  21439. entry.push(function wrappedActionHandler (payload) {
  21440. var res = handler.call(store, {
  21441. dispatch: local.dispatch,
  21442. commit: local.commit,
  21443. getters: local.getters,
  21444. state: local.state,
  21445. rootGetters: store.getters,
  21446. rootState: store.state
  21447. }, payload);
  21448. if (!isPromise(res)) {
  21449. res = Promise.resolve(res);
  21450. }
  21451. if (store._devtoolHook) {
  21452. return res.catch(function (err) {
  21453. store._devtoolHook.emit('vuex:error', err);
  21454. throw err
  21455. })
  21456. } else {
  21457. return res
  21458. }
  21459. });
  21460. }
  21461. function registerGetter (store, type, rawGetter, local) {
  21462. if (store._wrappedGetters[type]) {
  21463. if ((true)) {
  21464. console.error(("[vuex] duplicate getter key: " + type));
  21465. }
  21466. return
  21467. }
  21468. store._wrappedGetters[type] = function wrappedGetter (store) {
  21469. return rawGetter(
  21470. local.state, // local state
  21471. local.getters, // local getters
  21472. store.state, // root state
  21473. store.getters // root getters
  21474. )
  21475. };
  21476. }
  21477. function enableStrictMode (store) {
  21478. store._vm.$watch(function () { return this._data.$$state }, function () {
  21479. if ((true)) {
  21480. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  21481. }
  21482. }, { deep: true, sync: true });
  21483. }
  21484. function getNestedState (state, path) {
  21485. return path.reduce(function (state, key) { return state[key]; }, state)
  21486. }
  21487. function unifyObjectStyle (type, payload, options) {
  21488. if (isObject(type) && type.type) {
  21489. options = payload;
  21490. payload = type;
  21491. type = type.type;
  21492. }
  21493. if ((true)) {
  21494. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  21495. }
  21496. return { type: type, payload: payload, options: options }
  21497. }
  21498. function install (_Vue) {
  21499. if (Vue && _Vue === Vue) {
  21500. if ((true)) {
  21501. console.error(
  21502. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  21503. );
  21504. }
  21505. return
  21506. }
  21507. Vue = _Vue;
  21508. applyMixin(Vue);
  21509. }
  21510. /**
  21511. * Reduce the code which written in Vue.js for getting the state.
  21512. * @param {String} [namespace] - Module's namespace
  21513. * @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.
  21514. * @param {Object}
  21515. */
  21516. var mapState = normalizeNamespace(function (namespace, states) {
  21517. var res = {};
  21518. if (( true) && !isValidMap(states)) {
  21519. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  21520. }
  21521. normalizeMap(states).forEach(function (ref) {
  21522. var key = ref.key;
  21523. var val = ref.val;
  21524. res[key] = function mappedState () {
  21525. var state = this.$store.state;
  21526. var getters = this.$store.getters;
  21527. if (namespace) {
  21528. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  21529. if (!module) {
  21530. return
  21531. }
  21532. state = module.context.state;
  21533. getters = module.context.getters;
  21534. }
  21535. return typeof val === 'function'
  21536. ? val.call(this, state, getters)
  21537. : state[val]
  21538. };
  21539. // mark vuex getter for devtools
  21540. res[key].vuex = true;
  21541. });
  21542. return res
  21543. });
  21544. /**
  21545. * Reduce the code which written in Vue.js for committing the mutation
  21546. * @param {String} [namespace] - Module's namespace
  21547. * @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.
  21548. * @return {Object}
  21549. */
  21550. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  21551. var res = {};
  21552. if (( true) && !isValidMap(mutations)) {
  21553. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  21554. }
  21555. normalizeMap(mutations).forEach(function (ref) {
  21556. var key = ref.key;
  21557. var val = ref.val;
  21558. res[key] = function mappedMutation () {
  21559. var args = [], len = arguments.length;
  21560. while ( len-- ) args[ len ] = arguments[ len ];
  21561. // Get the commit method from store
  21562. var commit = this.$store.commit;
  21563. if (namespace) {
  21564. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  21565. if (!module) {
  21566. return
  21567. }
  21568. commit = module.context.commit;
  21569. }
  21570. return typeof val === 'function'
  21571. ? val.apply(this, [commit].concat(args))
  21572. : commit.apply(this.$store, [val].concat(args))
  21573. };
  21574. });
  21575. return res
  21576. });
  21577. /**
  21578. * Reduce the code which written in Vue.js for getting the getters
  21579. * @param {String} [namespace] - Module's namespace
  21580. * @param {Object|Array} getters
  21581. * @return {Object}
  21582. */
  21583. var mapGetters = normalizeNamespace(function (namespace, getters) {
  21584. var res = {};
  21585. if (( true) && !isValidMap(getters)) {
  21586. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  21587. }
  21588. normalizeMap(getters).forEach(function (ref) {
  21589. var key = ref.key;
  21590. var val = ref.val;
  21591. // The namespace has been mutated by normalizeNamespace
  21592. val = namespace + val;
  21593. res[key] = function mappedGetter () {
  21594. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  21595. return
  21596. }
  21597. if (( true) && !(val in this.$store.getters)) {
  21598. console.error(("[vuex] unknown getter: " + val));
  21599. return
  21600. }
  21601. return this.$store.getters[val]
  21602. };
  21603. // mark vuex getter for devtools
  21604. res[key].vuex = true;
  21605. });
  21606. return res
  21607. });
  21608. /**
  21609. * Reduce the code which written in Vue.js for dispatch the action
  21610. * @param {String} [namespace] - Module's namespace
  21611. * @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.
  21612. * @return {Object}
  21613. */
  21614. var mapActions = normalizeNamespace(function (namespace, actions) {
  21615. var res = {};
  21616. if (( true) && !isValidMap(actions)) {
  21617. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  21618. }
  21619. normalizeMap(actions).forEach(function (ref) {
  21620. var key = ref.key;
  21621. var val = ref.val;
  21622. res[key] = function mappedAction () {
  21623. var args = [], len = arguments.length;
  21624. while ( len-- ) args[ len ] = arguments[ len ];
  21625. // get dispatch function from store
  21626. var dispatch = this.$store.dispatch;
  21627. if (namespace) {
  21628. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  21629. if (!module) {
  21630. return
  21631. }
  21632. dispatch = module.context.dispatch;
  21633. }
  21634. return typeof val === 'function'
  21635. ? val.apply(this, [dispatch].concat(args))
  21636. : dispatch.apply(this.$store, [val].concat(args))
  21637. };
  21638. });
  21639. return res
  21640. });
  21641. /**
  21642. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  21643. * @param {String} namespace
  21644. * @return {Object}
  21645. */
  21646. var createNamespacedHelpers = function (namespace) { return ({
  21647. mapState: mapState.bind(null, namespace),
  21648. mapGetters: mapGetters.bind(null, namespace),
  21649. mapMutations: mapMutations.bind(null, namespace),
  21650. mapActions: mapActions.bind(null, namespace)
  21651. }); };
  21652. /**
  21653. * Normalize the map
  21654. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  21655. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  21656. * @param {Array|Object} map
  21657. * @return {Object}
  21658. */
  21659. function normalizeMap (map) {
  21660. if (!isValidMap(map)) {
  21661. return []
  21662. }
  21663. return Array.isArray(map)
  21664. ? map.map(function (key) { return ({ key: key, val: key }); })
  21665. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  21666. }
  21667. /**
  21668. * Validate whether given map is valid or not
  21669. * @param {*} map
  21670. * @return {Boolean}
  21671. */
  21672. function isValidMap (map) {
  21673. return Array.isArray(map) || isObject(map)
  21674. }
  21675. /**
  21676. * 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.
  21677. * @param {Function} fn
  21678. * @return {Function}
  21679. */
  21680. function normalizeNamespace (fn) {
  21681. return function (namespace, map) {
  21682. if (typeof namespace !== 'string') {
  21683. map = namespace;
  21684. namespace = '';
  21685. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  21686. namespace += '/';
  21687. }
  21688. return fn(namespace, map)
  21689. }
  21690. }
  21691. /**
  21692. * Search a special module from store by namespace. if module not exist, print error message.
  21693. * @param {Object} store
  21694. * @param {String} helper
  21695. * @param {String} namespace
  21696. * @return {Object}
  21697. */
  21698. function getModuleByNamespace (store, helper, namespace) {
  21699. var module = store._modulesNamespaceMap[namespace];
  21700. if (( true) && !module) {
  21701. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  21702. }
  21703. return module
  21704. }
  21705. // Credits: borrowed code from fcomb/redux-logger
  21706. function createLogger (ref) {
  21707. if ( ref === void 0 ) ref = {};
  21708. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  21709. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  21710. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  21711. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  21712. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  21713. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  21714. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  21715. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  21716. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  21717. return function (store) {
  21718. var prevState = deepCopy(store.state);
  21719. if (typeof logger === 'undefined') {
  21720. return
  21721. }
  21722. if (logMutations) {
  21723. store.subscribe(function (mutation, state) {
  21724. var nextState = deepCopy(state);
  21725. if (filter(mutation, prevState, nextState)) {
  21726. var formattedTime = getFormattedTime();
  21727. var formattedMutation = mutationTransformer(mutation);
  21728. var message = "mutation " + (mutation.type) + formattedTime;
  21729. startMessage(logger, message, collapsed);
  21730. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  21731. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  21732. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  21733. endMessage(logger);
  21734. }
  21735. prevState = nextState;
  21736. });
  21737. }
  21738. if (logActions) {
  21739. store.subscribeAction(function (action, state) {
  21740. if (actionFilter(action, state)) {
  21741. var formattedTime = getFormattedTime();
  21742. var formattedAction = actionTransformer(action);
  21743. var message = "action " + (action.type) + formattedTime;
  21744. startMessage(logger, message, collapsed);
  21745. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  21746. endMessage(logger);
  21747. }
  21748. });
  21749. }
  21750. }
  21751. }
  21752. function startMessage (logger, message, collapsed) {
  21753. var startMessage = collapsed
  21754. ? logger.groupCollapsed
  21755. : logger.group;
  21756. // render
  21757. try {
  21758. startMessage.call(logger, message);
  21759. } catch (e) {
  21760. logger.log(message);
  21761. }
  21762. }
  21763. function endMessage (logger) {
  21764. try {
  21765. logger.groupEnd();
  21766. } catch (e) {
  21767. logger.log('—— log end ——');
  21768. }
  21769. }
  21770. function getFormattedTime () {
  21771. var time = new Date();
  21772. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  21773. }
  21774. function repeat (str, times) {
  21775. return (new Array(times + 1)).join(str)
  21776. }
  21777. function pad (num, maxLength) {
  21778. return repeat('0', maxLength - num.toString().length) + num
  21779. }
  21780. var index_cjs = {
  21781. Store: Store,
  21782. install: install,
  21783. version: '3.6.2',
  21784. mapState: mapState,
  21785. mapMutations: mapMutations,
  21786. mapGetters: mapGetters,
  21787. mapActions: mapActions,
  21788. createNamespacedHelpers: createNamespacedHelpers,
  21789. createLogger: createLogger
  21790. };
  21791. module.exports = index_cjs;
  21792. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  21793. /***/ }),
  21794. /***/ 480:
  21795. /*!********************************************************************************!*\
  21796. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/common/validator.js ***!
  21797. \********************************************************************************/
  21798. /*! no static exports found */
  21799. /***/ (function(module, exports, __webpack_require__) {
  21800. "use strict";
  21801. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21802. Object.defineProperty(exports, "__esModule", {
  21803. value: true
  21804. });
  21805. exports.isBoolean = isBoolean;
  21806. exports.isDef = isDef;
  21807. exports.isFunction = isFunction;
  21808. exports.isImageUrl = isImageUrl;
  21809. exports.isNumber = isNumber;
  21810. exports.isObj = isObj;
  21811. exports.isPlainObject = isPlainObject;
  21812. exports.isPromise = isPromise;
  21813. exports.isVideoUrl = isVideoUrl;
  21814. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  21815. // eslint-disable-next-line @typescript-eslint/ban-types
  21816. function isFunction(val) {
  21817. return typeof val === 'function';
  21818. }
  21819. function isPlainObject(val) {
  21820. return val !== null && (0, _typeof2.default)(val) === 'object' && !Array.isArray(val);
  21821. }
  21822. function isPromise(val) {
  21823. return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
  21824. }
  21825. function isDef(value) {
  21826. return value !== undefined && value !== null;
  21827. }
  21828. function isObj(x) {
  21829. var type = (0, _typeof2.default)(x);
  21830. return x !== null && (type === 'object' || type === 'function');
  21831. }
  21832. function isNumber(value) {
  21833. return /^\d+(\.\d+)?$/.test(value);
  21834. }
  21835. function isBoolean(value) {
  21836. return typeof value === 'boolean';
  21837. }
  21838. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  21839. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
  21840. function isImageUrl(url) {
  21841. return IMAGE_REGEXP.test(url);
  21842. }
  21843. function isVideoUrl(url) {
  21844. return VIDEO_REGEXP.test(url);
  21845. }
  21846. /***/ }),
  21847. /***/ 481:
  21848. /*!******************************************************************************!*\
  21849. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/common/version.js ***!
  21850. \******************************************************************************/
  21851. /*! no static exports found */
  21852. /***/ (function(module, exports, __webpack_require__) {
  21853. "use strict";
  21854. /* WEBPACK VAR INJECTION */(function(wx) {
  21855. Object.defineProperty(exports, "__esModule", {
  21856. value: true
  21857. });
  21858. exports.canIUseAnimate = canIUseAnimate;
  21859. exports.canIUseCanvas2d = canIUseCanvas2d;
  21860. exports.canIUseFormFieldButton = canIUseFormFieldButton;
  21861. exports.canIUseGetUserProfile = canIUseGetUserProfile;
  21862. exports.canIUseGroupSetData = canIUseGroupSetData;
  21863. exports.canIUseModel = canIUseModel;
  21864. exports.canIUseNextTick = canIUseNextTick;
  21865. exports.getSystemInfoSync = getSystemInfoSync;
  21866. var systemInfo;
  21867. function getSystemInfoSync() {
  21868. if (systemInfo == null) {
  21869. systemInfo = wx.getSystemInfoSync();
  21870. }
  21871. return systemInfo;
  21872. }
  21873. function compareVersion(v1, v2) {
  21874. v1 = v1.split('.');
  21875. v2 = v2.split('.');
  21876. var len = Math.max(v1.length, v2.length);
  21877. while (v1.length < len) {
  21878. v1.push('0');
  21879. }
  21880. while (v2.length < len) {
  21881. v2.push('0');
  21882. }
  21883. for (var i = 0; i < len; i++) {
  21884. var num1 = parseInt(v1[i], 10);
  21885. var num2 = parseInt(v2[i], 10);
  21886. if (num1 > num2) {
  21887. return 1;
  21888. }
  21889. if (num1 < num2) {
  21890. return -1;
  21891. }
  21892. }
  21893. return 0;
  21894. }
  21895. function gte(version) {
  21896. var system = getSystemInfoSync();
  21897. return compareVersion(system.SDKVersion, version) >= 0;
  21898. }
  21899. function canIUseModel() {
  21900. return gte('2.9.3');
  21901. }
  21902. function canIUseFormFieldButton() {
  21903. return gte('2.10.3');
  21904. }
  21905. function canIUseAnimate() {
  21906. return gte('2.9.0');
  21907. }
  21908. function canIUseGroupSetData() {
  21909. return gte('2.4.0');
  21910. }
  21911. function canIUseNextTick() {
  21912. try {
  21913. return wx.canIUse('nextTick');
  21914. } catch (e) {
  21915. return gte('2.7.1');
  21916. }
  21917. }
  21918. function canIUseCanvas2d() {
  21919. return gte('2.9.0');
  21920. }
  21921. function canIUseGetUserProfile() {
  21922. return !!wx.getUserProfile;
  21923. }
  21924. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  21925. /***/ }),
  21926. /***/ 482:
  21927. /*!**************************************************************************!*\
  21928. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/rate/index.js ***!
  21929. \**************************************************************************/
  21930. /*! no static exports found */
  21931. /***/ (function(module, exports, __webpack_require__) {
  21932. "use strict";
  21933. /* WEBPACK VAR INJECTION */(function(wx) {
  21934. var _utils = __webpack_require__(/*! ../common/utils */ 479);
  21935. var _component = __webpack_require__(/*! ../common/component */ 476);
  21936. var _version = __webpack_require__(/*! ../common/version */ 481);
  21937. (0, _component.VantComponent)({
  21938. field: true,
  21939. classes: ['icon-class'],
  21940. props: {
  21941. value: {
  21942. type: Number,
  21943. observer: function observer(value) {
  21944. if (value !== this.data.innerValue) {
  21945. this.setData({
  21946. innerValue: value
  21947. });
  21948. }
  21949. }
  21950. },
  21951. readonly: Boolean,
  21952. disabled: Boolean,
  21953. allowHalf: Boolean,
  21954. size: null,
  21955. icon: {
  21956. type: String,
  21957. value: 'star'
  21958. },
  21959. voidIcon: {
  21960. type: String,
  21961. value: 'star-o'
  21962. },
  21963. color: String,
  21964. voidColor: String,
  21965. disabledColor: String,
  21966. count: {
  21967. type: Number,
  21968. value: 5,
  21969. observer: function observer(value) {
  21970. this.setData({
  21971. innerCountArray: Array.from({
  21972. length: value
  21973. })
  21974. });
  21975. }
  21976. },
  21977. gutter: null,
  21978. touchable: {
  21979. type: Boolean,
  21980. value: true
  21981. }
  21982. },
  21983. data: {
  21984. innerValue: 0,
  21985. innerCountArray: Array.from({
  21986. length: 5
  21987. })
  21988. },
  21989. methods: {
  21990. onSelect: function onSelect(event) {
  21991. var _this = this;
  21992. var data = this.data;
  21993. var score = event.currentTarget.dataset.score;
  21994. if (!data.disabled && !data.readonly) {
  21995. this.setData({
  21996. innerValue: score + 1
  21997. });
  21998. if ((0, _version.canIUseModel)()) {
  21999. this.setData({
  22000. value: score + 1
  22001. });
  22002. }
  22003. wx.nextTick(function () {
  22004. _this.$emit('input', score + 1);
  22005. _this.$emit('change', score + 1);
  22006. });
  22007. }
  22008. },
  22009. onTouchMove: function onTouchMove(event) {
  22010. var _this2 = this;
  22011. var touchable = this.data.touchable;
  22012. if (!touchable) return;
  22013. var clientX = event.touches[0].clientX;
  22014. (0, _utils.getAllRect)(this, '.van-rate__icon').then(function (list) {
  22015. var target = list.sort(function (cur, next) {
  22016. return cur.dataset.score - next.dataset.score;
  22017. }).find(function (item) {
  22018. return clientX >= item.left && clientX <= item.right;
  22019. });
  22020. if (target != null) {
  22021. _this2.onSelect(Object.assign(Object.assign({}, event), {
  22022. currentTarget: target
  22023. }));
  22024. }
  22025. });
  22026. }
  22027. }
  22028. });
  22029. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  22030. /***/ }),
  22031. /***/ 483:
  22032. /*!***************************************************************************!*\
  22033. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/radio/index.js ***!
  22034. \***************************************************************************/
  22035. /*! no static exports found */
  22036. /***/ (function(module, exports, __webpack_require__) {
  22037. "use strict";
  22038. var _version = __webpack_require__(/*! ../common/version */ 481);
  22039. var _component = __webpack_require__(/*! ../common/component */ 476);
  22040. var _relation = __webpack_require__(/*! ../common/relation */ 484);
  22041. (0, _component.VantComponent)({
  22042. field: true,
  22043. relation: (0, _relation.useParent)('radio-group', function () {
  22044. this.updateFromParent();
  22045. }),
  22046. classes: ['icon-class', 'label-class'],
  22047. props: {
  22048. name: null,
  22049. value: null,
  22050. disabled: Boolean,
  22051. useIconSlot: Boolean,
  22052. checkedColor: String,
  22053. labelPosition: {
  22054. type: String,
  22055. value: 'right'
  22056. },
  22057. labelDisabled: Boolean,
  22058. shape: {
  22059. type: String,
  22060. value: 'round'
  22061. },
  22062. iconSize: {
  22063. type: null,
  22064. value: 20
  22065. }
  22066. },
  22067. data: {
  22068. direction: '',
  22069. parentDisabled: false
  22070. },
  22071. methods: {
  22072. updateFromParent: function updateFromParent() {
  22073. if (!this.parent) {
  22074. return;
  22075. }
  22076. var _this$parent$data = this.parent.data,
  22077. value = _this$parent$data.value,
  22078. parentDisabled = _this$parent$data.disabled,
  22079. direction = _this$parent$data.direction;
  22080. this.setData({
  22081. value: value,
  22082. direction: direction,
  22083. parentDisabled: parentDisabled
  22084. });
  22085. },
  22086. emitChange: function emitChange(value) {
  22087. var instance = this.parent || this;
  22088. instance.$emit('input', value);
  22089. instance.$emit('change', value);
  22090. if ((0, _version.canIUseModel)()) {
  22091. instance.setData({
  22092. value: value
  22093. });
  22094. }
  22095. },
  22096. onChange: function onChange() {
  22097. if (!this.data.disabled && !this.data.parentDisabled) {
  22098. this.emitChange(this.data.name);
  22099. }
  22100. },
  22101. onClickLabel: function onClickLabel() {
  22102. var _this$data = this.data,
  22103. disabled = _this$data.disabled,
  22104. parentDisabled = _this$data.parentDisabled,
  22105. labelDisabled = _this$data.labelDisabled,
  22106. name = _this$data.name;
  22107. if (!(disabled || parentDisabled) && !labelDisabled) {
  22108. this.emitChange(name);
  22109. }
  22110. }
  22111. }
  22112. });
  22113. /***/ }),
  22114. /***/ 484:
  22115. /*!*******************************************************************************!*\
  22116. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/common/relation.js ***!
  22117. \*******************************************************************************/
  22118. /*! no static exports found */
  22119. /***/ (function(module, exports, __webpack_require__) {
  22120. "use strict";
  22121. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22122. Object.defineProperty(exports, "__esModule", {
  22123. value: true
  22124. });
  22125. exports.useChildren = useChildren;
  22126. exports.useParent = useParent;
  22127. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  22128. function useParent(name, onEffect) {
  22129. var path = "../".concat(name, "/index");
  22130. return {
  22131. relations: (0, _defineProperty2.default)({}, path, {
  22132. type: 'ancestor',
  22133. linked: function linked() {
  22134. onEffect && onEffect.call(this);
  22135. },
  22136. linkChanged: function linkChanged() {
  22137. onEffect && onEffect.call(this);
  22138. },
  22139. unlinked: function unlinked() {
  22140. onEffect && onEffect.call(this);
  22141. }
  22142. }),
  22143. mixin: Behavior({
  22144. created: function created() {
  22145. var _this = this;
  22146. Object.defineProperty(this, 'parent', {
  22147. get: function get() {
  22148. return _this.getRelationNodes(path)[0];
  22149. }
  22150. });
  22151. Object.defineProperty(this, 'index', {
  22152. // @ts-ignore
  22153. get: function get() {
  22154. var _a, _b;
  22155. return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this);
  22156. }
  22157. });
  22158. }
  22159. })
  22160. };
  22161. }
  22162. function useChildren(name, onEffect) {
  22163. var path = "../".concat(name, "/index");
  22164. return {
  22165. relations: (0, _defineProperty2.default)({}, path, {
  22166. type: 'descendant',
  22167. linked: function linked(target) {
  22168. onEffect && onEffect.call(this, target);
  22169. },
  22170. linkChanged: function linkChanged(target) {
  22171. onEffect && onEffect.call(this, target);
  22172. },
  22173. unlinked: function unlinked(target) {
  22174. onEffect && onEffect.call(this, target);
  22175. }
  22176. }),
  22177. mixin: Behavior({
  22178. created: function created() {
  22179. var _this2 = this;
  22180. Object.defineProperty(this, 'children', {
  22181. get: function get() {
  22182. return _this2.getRelationNodes(path) || [];
  22183. }
  22184. });
  22185. }
  22186. })
  22187. };
  22188. }
  22189. /***/ }),
  22190. /***/ 485:
  22191. /*!*********************************************************************************!*\
  22192. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/radio-group/index.js ***!
  22193. \*********************************************************************************/
  22194. /*! no static exports found */
  22195. /***/ (function(module, exports, __webpack_require__) {
  22196. "use strict";
  22197. var _component = __webpack_require__(/*! ../common/component */ 476);
  22198. var _relation = __webpack_require__(/*! ../common/relation */ 484);
  22199. (0, _component.VantComponent)({
  22200. field: true,
  22201. relation: (0, _relation.useChildren)('radio'),
  22202. props: {
  22203. value: {
  22204. type: null,
  22205. observer: 'updateChildren'
  22206. },
  22207. direction: String,
  22208. disabled: {
  22209. type: Boolean,
  22210. observer: 'updateChildren'
  22211. }
  22212. },
  22213. methods: {
  22214. updateChildren: function updateChildren() {
  22215. this.children.forEach(function (child) {
  22216. return child.updateFromParent();
  22217. });
  22218. }
  22219. }
  22220. });
  22221. /***/ }),
  22222. /***/ 49:
  22223. /*!**********************************************************!*\
  22224. !*** D:/AAAcompany_product/产品化管理端/pages/utils/common.js ***!
  22225. \**********************************************************/
  22226. /*! no static exports found */
  22227. /***/ (function(module, exports, __webpack_require__) {
  22228. "use strict";
  22229. Object.defineProperty(exports, "__esModule", {
  22230. value: true
  22231. });
  22232. exports.default = void 0;
  22233. exports.getUrlParameter = getUrlParameter;
  22234. /**
  22235. * 获取url参数值
  22236. * @param {*} url
  22237. * @param {*} name
  22238. */
  22239. function getUrlParameter(url, name) {
  22240. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  22241. var regex = new RegExp(regexSearch);
  22242. var results = regex.exec(url);
  22243. console.log(results, 'results');
  22244. return results ? window.decodeURIComponent(results[1]) : '';
  22245. }
  22246. var _default = {
  22247. transDate: function transDate(val, pattern) {
  22248. if (val) {
  22249. var time = new Date();
  22250. time.setTime(val);
  22251. if (Date.parse(val)) {
  22252. time = new Date(val);
  22253. }
  22254. if (time instanceof Date) {
  22255. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  22256. }
  22257. }
  22258. return '';
  22259. },
  22260. transBaseDateTime: function transBaseDateTime(val, pattern) {
  22261. if (val) {
  22262. var time = new Date();
  22263. time.setTime(val);
  22264. if (Date.parse(val)) {
  22265. time = new Date(val);
  22266. }
  22267. if (time instanceof Date) {
  22268. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  22269. }
  22270. }
  22271. return '';
  22272. },
  22273. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  22274. if (val) {
  22275. var time = new Date();
  22276. time.setTime(val);
  22277. if (Date.parse(val)) {
  22278. time = new Date(val);
  22279. }
  22280. if (time instanceof Date) {
  22281. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  22282. }
  22283. }
  22284. return '';
  22285. },
  22286. transServDate: function transServDate(val) {
  22287. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  22288. },
  22289. transServDay: function transServDay(val) {
  22290. return this.transDate(val, 'yyyy-MM-dd');
  22291. },
  22292. isArrayFn: function isArrayFn(value) {
  22293. if (typeof Array.isArray === 'function') {
  22294. return Array.isArray(value);
  22295. } else {
  22296. return Object.prototype.toString.call(value) === '[object Array]';
  22297. }
  22298. },
  22299. transDcMap: function transDcMap(arr) {
  22300. var tMap = {};
  22301. arr.forEach(function (item) {
  22302. tMap[item.value] = item.label;
  22303. });
  22304. return tMap;
  22305. },
  22306. castEval: function castEval(val) {
  22307. // return JSON.parse(val)
  22308. if (val) {
  22309. return eval('(' + val + ')');
  22310. } else {
  22311. return '';
  22312. }
  22313. },
  22314. castString: function castString(val) {
  22315. return JSON.stringify(val);
  22316. },
  22317. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  22318. formatMoney: function formatMoney(amt) {
  22319. if (!amt) return '';
  22320. if (amt.length <= 3) {
  22321. return amt;
  22322. }
  22323. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  22324. return amt;
  22325. }
  22326. var a = RegExp.$1;
  22327. var b = RegExp.$2;
  22328. var c = RegExp.$3;
  22329. var re = new RegExp();
  22330. re.compile('(\\d)(\\d{3})(,|$)');
  22331. while (re.test(b)) {
  22332. b = b.replace(re, '$1,$2$3');
  22333. }
  22334. return a + '' + b + '' + c;
  22335. },
  22336. formatDate: function formatDate(fmt, date) {
  22337. // author: meizz
  22338. var o = {
  22339. 'M+': date.getMonth() + 1,
  22340. // 月份
  22341. 'd+': date.getDate(),
  22342. // 日
  22343. 'h+': date.getHours(),
  22344. // 小时
  22345. 'm+': date.getMinutes(),
  22346. // 分
  22347. 's+': date.getSeconds(),
  22348. // 秒
  22349. 'q+': Math.floor((date.getMonth() + 3) / 3),
  22350. // 季度
  22351. 'S': date.getMilliseconds() // 毫秒
  22352. };
  22353. if (/(y+)/.test(fmt)) {
  22354. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  22355. }
  22356. for (var k in o) {
  22357. if (new RegExp('(' + k + ')').test(fmt)) {
  22358. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  22359. }
  22360. }
  22361. return fmt;
  22362. },
  22363. replaceThumbnail: function replaceThumbnail(urlPath) {
  22364. if (urlPath != null) {
  22365. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  22366. }
  22367. if (urlPath != null) {
  22368. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  22369. }
  22370. return urlPath;
  22371. },
  22372. goBack: function goBack() {
  22373. // window.history.go(-1)
  22374. // self.location = document.referrer
  22375. history.back();
  22376. },
  22377. uuid: function uuid(len, radix) {
  22378. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  22379. var uuid = [];
  22380. var i;
  22381. radix = radix || chars.length;
  22382. if (len) {
  22383. // Compact form
  22384. for (i = 0; i < len; i++) {
  22385. uuid[i] = chars[0 | Math.random() * radix];
  22386. }
  22387. } else {
  22388. // rfc4122, version 4 form
  22389. var r;
  22390. // rfc4122 requires these characters
  22391. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  22392. uuid[14] = '4';
  22393. // Fill in random data. At i==19 set the high bits of clock sequence as
  22394. // per rfc4122, sec. 4.1.5
  22395. for (i = 0; i < 36; i++) {
  22396. if (!uuid[i]) {
  22397. r = 0 | Math.random() * 16;
  22398. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  22399. }
  22400. }
  22401. }
  22402. return uuid.join('');
  22403. },
  22404. handleDicList: function handleDicList(params) {
  22405. // 处理字典值数组
  22406. var obj = {};
  22407. for (var key in params) {
  22408. if (JSON.parse(params[key].dictValue)) {
  22409. obj[key] = JSON.parse(params[key].dictValue);
  22410. } else {
  22411. obj[key] = [];
  22412. }
  22413. }
  22414. return obj;
  22415. }
  22416. };
  22417. exports.default = _default;
  22418. /***/ }),
  22419. /***/ 5:
  22420. /*!**************************************************************!*\
  22421. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  22422. \**************************************************************/
  22423. /*! no static exports found */
  22424. /***/ (function(module, exports, __webpack_require__) {
  22425. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  22426. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  22427. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  22428. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  22429. function _slicedToArray(arr, i) {
  22430. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  22431. }
  22432. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  22433. /***/ }),
  22434. /***/ 50:
  22435. /*!************************************************************!*\
  22436. !*** D:/AAAcompany_product/产品化管理端/pages/utils/constant.js ***!
  22437. \************************************************************/
  22438. /*! no static exports found */
  22439. /***/ (function(module, exports, __webpack_require__) {
  22440. "use strict";
  22441. Object.defineProperty(exports, "__esModule", {
  22442. value: true
  22443. });
  22444. exports.default = exports.BASE_URI = void 0;
  22445. // 系统常量
  22446. // export const BASE_URI = "http://192.168.2.111:9011"; // 正式
  22447. var BASE_URI = 'https://www.idea-co-sf.com/gardenProductApi';
  22448. // export const BASE_URI = "http://192.168.3.94:9010"; // 老潘本地
  22449. // export const BASE_URI = "http://192.168.2.107:9011"; // 洮洮本地
  22450. // export const BASE_URI = "http://192.168.2.103:9010"; // 老崔本地
  22451. // export const BASE_URI = "http://192.168.2.112:9011"; // 许峰本地
  22452. // export const BASE_URI = "http://192.168.2.112:9010"; // 陈凡本地
  22453. exports.BASE_URI = BASE_URI;
  22454. var _default = {
  22455. /* 系统常量*/
  22456. // 基础地址
  22457. BASE_URI: BASE_URI
  22458. };
  22459. exports.default = _default;
  22460. /***/ }),
  22461. /***/ 505:
  22462. /*!*****************************************************************************************************************!*\
  22463. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js ***!
  22464. \*****************************************************************************************************************/
  22465. /*! no static exports found */
  22466. /***/ (function(module, exports, __webpack_require__) {
  22467. "use strict";
  22468. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22469. Object.defineProperty(exports, "__esModule", {
  22470. value: true
  22471. });
  22472. exports.default = void 0;
  22473. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 506));
  22474. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 507));
  22475. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 508));
  22476. var _default = {
  22477. en: _en.default,
  22478. 'zh-Hans': _zhHans.default,
  22479. 'zh-Hant': _zhHant.default
  22480. };
  22481. exports.default = _default;
  22482. /***/ }),
  22483. /***/ 506:
  22484. /*!****************************************************************************************************************!*\
  22485. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json ***!
  22486. \****************************************************************************************************************/
  22487. /*! 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 */
  22488. /***/ (function(module) {
  22489. 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\"}");
  22490. /***/ }),
  22491. /***/ 507:
  22492. /*!*********************************************************************************************************************!*\
  22493. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json ***!
  22494. \*********************************************************************************************************************/
  22495. /*! 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 */
  22496. /***/ (function(module) {
  22497. 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\":\"确认\"}");
  22498. /***/ }),
  22499. /***/ 508:
  22500. /*!*********************************************************************************************************************!*\
  22501. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json ***!
  22502. \*********************************************************************************************************************/
  22503. /*! 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 */
  22504. /***/ (function(module) {
  22505. 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\":\"確認\"}");
  22506. /***/ }),
  22507. /***/ 509:
  22508. /*!***********************************************************************************************************!*\
  22509. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js ***!
  22510. \***********************************************************************************************************/
  22511. /*! no static exports found */
  22512. /***/ (function(module, exports, __webpack_require__) {
  22513. "use strict";
  22514. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22515. Object.defineProperty(exports, "__esModule", {
  22516. value: true
  22517. });
  22518. exports.Calendar = void 0;
  22519. exports.addZero = addZero;
  22520. exports.checkDate = checkDate;
  22521. exports.dateCompare = dateCompare;
  22522. exports.fixIosDateFormat = fixIosDateFormat;
  22523. exports.getDate = getDate;
  22524. exports.getDateTime = getDateTime;
  22525. exports.getDefaultSecond = getDefaultSecond;
  22526. exports.getTime = getTime;
  22527. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  22528. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  22529. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  22530. var Calendar = /*#__PURE__*/function () {
  22531. function Calendar() {
  22532. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  22533. selected = _ref.selected,
  22534. startDate = _ref.startDate,
  22535. endDate = _ref.endDate,
  22536. range = _ref.range;
  22537. (0, _classCallCheck2.default)(this, Calendar);
  22538. // 当前日期
  22539. this.date = this.getDateObj(new Date()); // 当前初入日期
  22540. // 打点信息
  22541. this.selected = selected || [];
  22542. // 起始时间
  22543. this.startDate = startDate;
  22544. // 终止时间
  22545. this.endDate = endDate;
  22546. // 是否范围选择
  22547. this.range = range;
  22548. // 多选状态
  22549. this.cleanMultipleStatus();
  22550. // 每周日期
  22551. this.weeks = {};
  22552. this.lastHover = false;
  22553. }
  22554. /**
  22555. * 设置日期
  22556. * @param {Object} date
  22557. */
  22558. (0, _createClass2.default)(Calendar, [{
  22559. key: "setDate",
  22560. value: function setDate(date) {
  22561. var selectDate = this.getDateObj(date);
  22562. this.getWeeks(selectDate.fullDate);
  22563. }
  22564. /**
  22565. * 清理多选状态
  22566. */
  22567. }, {
  22568. key: "cleanMultipleStatus",
  22569. value: function cleanMultipleStatus() {
  22570. this.multipleStatus = {
  22571. before: '',
  22572. after: '',
  22573. data: []
  22574. };
  22575. }
  22576. }, {
  22577. key: "setStartDate",
  22578. value: function setStartDate(startDate) {
  22579. this.startDate = startDate;
  22580. }
  22581. }, {
  22582. key: "setEndDate",
  22583. value: function setEndDate(endDate) {
  22584. this.endDate = endDate;
  22585. }
  22586. }, {
  22587. key: "getPreMonthObj",
  22588. value: function getPreMonthObj(date) {
  22589. date = fixIosDateFormat(date);
  22590. date = new Date(date);
  22591. var oldMonth = date.getMonth();
  22592. date.setMonth(oldMonth - 1);
  22593. var newMonth = date.getMonth();
  22594. if (oldMonth !== 0 && newMonth - oldMonth === 0) {
  22595. date.setMonth(newMonth - 1);
  22596. }
  22597. return this.getDateObj(date);
  22598. }
  22599. }, {
  22600. key: "getNextMonthObj",
  22601. value: function getNextMonthObj(date) {
  22602. date = fixIosDateFormat(date);
  22603. date = new Date(date);
  22604. var oldMonth = date.getMonth();
  22605. date.setMonth(oldMonth + 1);
  22606. var newMonth = date.getMonth();
  22607. if (newMonth - oldMonth > 1) {
  22608. date.setMonth(newMonth - 1);
  22609. }
  22610. return this.getDateObj(date);
  22611. }
  22612. /**
  22613. * 获取指定格式Date对象
  22614. */
  22615. }, {
  22616. key: "getDateObj",
  22617. value: function getDateObj(date) {
  22618. date = fixIosDateFormat(date);
  22619. date = new Date(date);
  22620. return {
  22621. fullDate: getDate(date),
  22622. year: date.getFullYear(),
  22623. month: addZero(date.getMonth() + 1),
  22624. date: addZero(date.getDate()),
  22625. day: date.getDay()
  22626. };
  22627. }
  22628. /**
  22629. * 获取上一个月日期集合
  22630. */
  22631. }, {
  22632. key: "getPreMonthDays",
  22633. value: function getPreMonthDays(amount, dateObj) {
  22634. var result = [];
  22635. for (var i = amount - 1; i >= 0; i--) {
  22636. var month = dateObj.month - 1;
  22637. result.push({
  22638. date: new Date(dateObj.year, month, -i).getDate(),
  22639. month: month,
  22640. disable: true
  22641. });
  22642. }
  22643. return result;
  22644. }
  22645. /**
  22646. * 获取本月日期集合
  22647. */
  22648. }, {
  22649. key: "getCurrentMonthDays",
  22650. value: function getCurrentMonthDays(amount, dateObj) {
  22651. var _this = this;
  22652. var result = [];
  22653. var fullDate = this.date.fullDate;
  22654. var _loop = function _loop(i) {
  22655. var currentDate = "".concat(dateObj.year, "-").concat(dateObj.month, "-").concat(addZero(i));
  22656. var isToday = fullDate === currentDate;
  22657. // 获取打点信息
  22658. var info = _this.selected && _this.selected.find(function (item) {
  22659. if (_this.dateEqual(currentDate, item.date)) {
  22660. return item;
  22661. }
  22662. });
  22663. // 日期禁用
  22664. var disableBefore = true;
  22665. var disableAfter = true;
  22666. if (_this.startDate) {
  22667. disableBefore = dateCompare(_this.startDate, currentDate);
  22668. }
  22669. if (_this.endDate) {
  22670. disableAfter = dateCompare(currentDate, _this.endDate);
  22671. }
  22672. var multiples = _this.multipleStatus.data;
  22673. var multiplesStatus = -1;
  22674. if (_this.range && multiples) {
  22675. multiplesStatus = multiples.findIndex(function (item) {
  22676. return _this.dateEqual(item, currentDate);
  22677. });
  22678. }
  22679. var checked = multiplesStatus !== -1;
  22680. result.push({
  22681. fullDate: currentDate,
  22682. year: dateObj.year,
  22683. date: i,
  22684. multiple: _this.range ? checked : false,
  22685. beforeMultiple: _this.isLogicBefore(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  22686. afterMultiple: _this.isLogicAfter(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  22687. month: dateObj.month,
  22688. disable: _this.startDate && !dateCompare(_this.startDate, currentDate) || _this.endDate && !dateCompare(currentDate, _this.endDate),
  22689. isToday: isToday,
  22690. userChecked: false,
  22691. extraInfo: info
  22692. });
  22693. };
  22694. for (var i = 1; i <= amount; i++) {
  22695. _loop(i);
  22696. }
  22697. return result;
  22698. }
  22699. /**
  22700. * 获取下一个月日期集合
  22701. */
  22702. }, {
  22703. key: "_getNextMonthDays",
  22704. value: function _getNextMonthDays(amount, dateObj) {
  22705. var result = [];
  22706. var month = dateObj.month + 1;
  22707. for (var i = 1; i <= amount; i++) {
  22708. result.push({
  22709. date: i,
  22710. month: month,
  22711. disable: true
  22712. });
  22713. }
  22714. return result;
  22715. }
  22716. /**
  22717. * 获取当前日期详情
  22718. * @param {Object} date
  22719. */
  22720. }, {
  22721. key: "getInfo",
  22722. value: function getInfo(date) {
  22723. var _this2 = this;
  22724. if (!date) {
  22725. date = new Date();
  22726. }
  22727. return this.calendar.find(function (item) {
  22728. return item.fullDate === _this2.getDateObj(date).fullDate;
  22729. });
  22730. }
  22731. /**
  22732. * 比较时间是否相等
  22733. */
  22734. }, {
  22735. key: "dateEqual",
  22736. value: function dateEqual(before, after) {
  22737. before = new Date(fixIosDateFormat(before));
  22738. after = new Date(fixIosDateFormat(after));
  22739. return before.valueOf() === after.valueOf();
  22740. }
  22741. /**
  22742. * 比较真实起始日期
  22743. */
  22744. }, {
  22745. key: "isLogicBefore",
  22746. value: function isLogicBefore(currentDate, before, after) {
  22747. var logicBefore = before;
  22748. if (before && after) {
  22749. logicBefore = dateCompare(before, after) ? before : after;
  22750. }
  22751. return this.dateEqual(logicBefore, currentDate);
  22752. }
  22753. }, {
  22754. key: "isLogicAfter",
  22755. value: function isLogicAfter(currentDate, before, after) {
  22756. var logicAfter = after;
  22757. if (before && after) {
  22758. logicAfter = dateCompare(before, after) ? after : before;
  22759. }
  22760. return this.dateEqual(logicAfter, currentDate);
  22761. }
  22762. /**
  22763. * 获取日期范围内所有日期
  22764. * @param {Object} begin
  22765. * @param {Object} end
  22766. */
  22767. }, {
  22768. key: "geDateAll",
  22769. value: function geDateAll(begin, end) {
  22770. var arr = [];
  22771. var ab = begin.split('-');
  22772. var ae = end.split('-');
  22773. var db = new Date();
  22774. db.setFullYear(ab[0], ab[1] - 1, ab[2]);
  22775. var de = new Date();
  22776. de.setFullYear(ae[0], ae[1] - 1, ae[2]);
  22777. var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
  22778. var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
  22779. for (var k = unixDb; k <= unixDe;) {
  22780. k = k + 24 * 60 * 60 * 1000;
  22781. arr.push(this.getDateObj(new Date(parseInt(k))).fullDate);
  22782. }
  22783. return arr;
  22784. }
  22785. /**
  22786. * 获取多选状态
  22787. */
  22788. }, {
  22789. key: "setMultiple",
  22790. value: function setMultiple(fullDate) {
  22791. if (!this.range) return;
  22792. var _this$multipleStatus = this.multipleStatus,
  22793. before = _this$multipleStatus.before,
  22794. after = _this$multipleStatus.after;
  22795. if (before && after) {
  22796. if (!this.lastHover) {
  22797. this.lastHover = true;
  22798. return;
  22799. }
  22800. this.multipleStatus.before = fullDate;
  22801. this.multipleStatus.after = '';
  22802. this.multipleStatus.data = [];
  22803. this.multipleStatus.fulldate = '';
  22804. this.lastHover = false;
  22805. } else {
  22806. if (!before) {
  22807. this.multipleStatus.before = fullDate;
  22808. this.lastHover = false;
  22809. } else {
  22810. this.multipleStatus.after = fullDate;
  22811. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  22812. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  22813. } else {
  22814. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  22815. }
  22816. this.lastHover = true;
  22817. }
  22818. }
  22819. this.getWeeks(fullDate);
  22820. }
  22821. /**
  22822. * 鼠标 hover 更新多选状态
  22823. */
  22824. }, {
  22825. key: "setHoverMultiple",
  22826. value: function setHoverMultiple(fullDate) {
  22827. if (!this.range || this.lastHover) return;
  22828. var before = this.multipleStatus.before;
  22829. if (!before) {
  22830. this.multipleStatus.before = fullDate;
  22831. } else {
  22832. this.multipleStatus.after = fullDate;
  22833. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  22834. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  22835. } else {
  22836. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  22837. }
  22838. }
  22839. this.getWeeks(fullDate);
  22840. }
  22841. /**
  22842. * 更新默认值多选状态
  22843. */
  22844. }, {
  22845. key: "setDefaultMultiple",
  22846. value: function setDefaultMultiple(before, after) {
  22847. this.multipleStatus.before = before;
  22848. this.multipleStatus.after = after;
  22849. if (before && after) {
  22850. if (dateCompare(before, after)) {
  22851. this.multipleStatus.data = this.geDateAll(before, after);
  22852. this.getWeeks(after);
  22853. } else {
  22854. this.multipleStatus.data = this.geDateAll(after, before);
  22855. this.getWeeks(before);
  22856. }
  22857. }
  22858. }
  22859. /**
  22860. * 获取每周数据
  22861. * @param {Object} dateData
  22862. */
  22863. }, {
  22864. key: "getWeeks",
  22865. value: function getWeeks(dateData) {
  22866. var _this$getDateObj = this.getDateObj(dateData),
  22867. year = _this$getDateObj.year,
  22868. month = _this$getDateObj.month;
  22869. var preMonthDayAmount = new Date(year, month - 1, 1).getDay();
  22870. var preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData));
  22871. var currentMonthDayAmount = new Date(year, month, 0).getDate();
  22872. var currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData));
  22873. var nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount;
  22874. var nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData));
  22875. var calendarDays = [].concat((0, _toConsumableArray2.default)(preMonthDays), (0, _toConsumableArray2.default)(currentMonthDays), (0, _toConsumableArray2.default)(nextMonthDays));
  22876. var weeks = new Array(6);
  22877. for (var i = 0; i < calendarDays.length; i++) {
  22878. var index = Math.floor(i / 7);
  22879. if (!weeks[index]) {
  22880. weeks[index] = new Array(7);
  22881. }
  22882. weeks[index][i % 7] = calendarDays[i];
  22883. }
  22884. this.calendar = calendarDays;
  22885. this.weeks = weeks;
  22886. }
  22887. }]);
  22888. return Calendar;
  22889. }();
  22890. exports.Calendar = Calendar;
  22891. function getDateTime(date, hideSecond) {
  22892. return "".concat(getDate(date), " ").concat(getTime(date, hideSecond));
  22893. }
  22894. function getDate(date) {
  22895. date = fixIosDateFormat(date);
  22896. date = new Date(date);
  22897. var year = date.getFullYear();
  22898. var month = date.getMonth() + 1;
  22899. var day = date.getDate();
  22900. return "".concat(year, "-").concat(addZero(month), "-").concat(addZero(day));
  22901. }
  22902. function getTime(date, hideSecond) {
  22903. date = fixIosDateFormat(date);
  22904. date = new Date(date);
  22905. var hour = date.getHours();
  22906. var minute = date.getMinutes();
  22907. var second = date.getSeconds();
  22908. return hideSecond ? "".concat(addZero(hour), ":").concat(addZero(minute)) : "".concat(addZero(hour), ":").concat(addZero(minute), ":").concat(addZero(second));
  22909. }
  22910. function addZero(num) {
  22911. if (num < 10) {
  22912. num = "0".concat(num);
  22913. }
  22914. return num;
  22915. }
  22916. function getDefaultSecond(hideSecond) {
  22917. return hideSecond ? '00:00' : '00:00:00';
  22918. }
  22919. function dateCompare(startDate, endDate) {
  22920. startDate = new Date(fixIosDateFormat(startDate));
  22921. endDate = new Date(fixIosDateFormat(endDate));
  22922. return startDate <= endDate;
  22923. }
  22924. function checkDate(date) {
  22925. var dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g;
  22926. return date.match(dateReg);
  22927. }
  22928. 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])?$/;
  22929. function fixIosDateFormat(value) {
  22930. if (typeof value === 'string' && dateTimeReg.test(value)) {
  22931. value = value.replace(/-/g, '/');
  22932. }
  22933. return value;
  22934. }
  22935. /***/ }),
  22936. /***/ 51:
  22937. /*!*****************************************************!*\
  22938. !*** D:/AAAcompany_product/产品化管理端/js_sdk/common.js ***!
  22939. \*****************************************************/
  22940. /*! no static exports found */
  22941. /***/ (function(module, exports, __webpack_require__) {
  22942. "use strict";
  22943. /* WEBPACK VAR INJECTION */(function(uni) {
  22944. Object.defineProperty(exports, "__esModule", {
  22945. value: true
  22946. });
  22947. exports.default = void 0;
  22948. exports.getUrlParameter = getUrlParameter;
  22949. exports.showToast = showToast;
  22950. /**
  22951. * 获取url参数值
  22952. * @param {*} url
  22953. * @param {*} name
  22954. */
  22955. function getUrlParameter(url, name) {
  22956. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  22957. var regex = new RegExp(regexSearch);
  22958. var results = regex.exec(url);
  22959. return results ? window.decodeURIComponent(results[1]) : '';
  22960. }
  22961. function showToast(e) {
  22962. uni.showToast({
  22963. title: e,
  22964. icon: 'none',
  22965. mask: true,
  22966. duration: 1000
  22967. });
  22968. }
  22969. var _default = {
  22970. transDate: function transDate(val, pattern) {
  22971. if (val) {
  22972. var time = new Date();
  22973. time.setTime(val);
  22974. if (Date.parse(val)) {
  22975. time = new Date(val);
  22976. }
  22977. if (time instanceof Date) {
  22978. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  22979. }
  22980. }
  22981. return '';
  22982. },
  22983. transBaseDateTime: function transBaseDateTime(val, pattern) {
  22984. if (val) {
  22985. var time = new Date();
  22986. time.setTime(val);
  22987. if (Date.parse(val)) {
  22988. time = new Date(val);
  22989. }
  22990. if (time instanceof Date) {
  22991. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  22992. }
  22993. }
  22994. return '';
  22995. },
  22996. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  22997. if (val) {
  22998. var time = new Date();
  22999. time.setTime(val);
  23000. if (Date.parse(val)) {
  23001. time = new Date(val);
  23002. }
  23003. if (time instanceof Date) {
  23004. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  23005. }
  23006. }
  23007. return '';
  23008. },
  23009. transServDate: function transServDate(val) {
  23010. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  23011. },
  23012. transServDay: function transServDay(val) {
  23013. return this.transDate(val, 'yyyy-MM-dd');
  23014. },
  23015. isArrayFn: function isArrayFn(value) {
  23016. if (typeof Array.isArray === 'function') {
  23017. return Array.isArray(value);
  23018. } else {
  23019. return Object.prototype.toString.call(value) === '[object Array]';
  23020. }
  23021. },
  23022. transDcMap: function transDcMap(arr) {
  23023. var tMap = {};
  23024. arr.forEach(function (item) {
  23025. tMap[item.value] = item.label;
  23026. });
  23027. return tMap;
  23028. },
  23029. castEval: function castEval(val) {
  23030. // return JSON.parse(val)
  23031. if (val) {
  23032. return eval('(' + val + ')');
  23033. } else {
  23034. return '';
  23035. }
  23036. },
  23037. castString: function castString(val) {
  23038. return JSON.stringify(val);
  23039. },
  23040. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  23041. formatMoney: function formatMoney(amt) {
  23042. if (!amt) return '';
  23043. if (amt.length <= 3) {
  23044. return amt;
  23045. }
  23046. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  23047. return amt;
  23048. }
  23049. var a = RegExp.$1;
  23050. var b = RegExp.$2;
  23051. var c = RegExp.$3;
  23052. var re = new RegExp();
  23053. re.compile('(\\d)(\\d{3})(,|$)');
  23054. while (re.test(b)) {
  23055. b = b.replace(re, '$1,$2$3');
  23056. }
  23057. return a + '' + b + '' + c;
  23058. },
  23059. formatDate: function formatDate(fmt, date) {
  23060. // author: meizz
  23061. var o = {
  23062. 'M+': date.getMonth() + 1,
  23063. // 月份
  23064. 'd+': date.getDate(),
  23065. // 日
  23066. 'h+': date.getHours(),
  23067. // 小时
  23068. 'm+': date.getMinutes(),
  23069. // 分
  23070. 's+': date.getSeconds(),
  23071. // 秒
  23072. 'q+': Math.floor((date.getMonth() + 3) / 3),
  23073. // 季度
  23074. 'S': date.getMilliseconds() // 毫秒
  23075. };
  23076. if (/(y+)/.test(fmt)) {
  23077. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  23078. }
  23079. for (var k in o) {
  23080. if (new RegExp('(' + k + ')').test(fmt)) {
  23081. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  23082. }
  23083. }
  23084. return fmt;
  23085. },
  23086. replaceThumbnail: function replaceThumbnail(urlPath) {
  23087. if (urlPath != null) {
  23088. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  23089. }
  23090. if (urlPath != null) {
  23091. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  23092. }
  23093. return urlPath;
  23094. },
  23095. goBack: function goBack() {
  23096. // window.history.go(-1)
  23097. // self.location = document.referrer
  23098. history.back();
  23099. },
  23100. uuid: function uuid(len, radix) {
  23101. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  23102. var uuid = [];
  23103. var i;
  23104. radix = radix || chars.length;
  23105. if (len) {
  23106. // Compact form
  23107. for (i = 0; i < len; i++) {
  23108. uuid[i] = chars[0 | Math.random() * radix];
  23109. }
  23110. } else {
  23111. // rfc4122, version 4 form
  23112. var r;
  23113. // rfc4122 requires these characters
  23114. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  23115. uuid[14] = '4';
  23116. // Fill in random data. At i==19 set the high bits of clock sequence as
  23117. // per rfc4122, sec. 4.1.5
  23118. for (i = 0; i < 36; i++) {
  23119. if (!uuid[i]) {
  23120. r = 0 | Math.random() * 16;
  23121. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  23122. }
  23123. }
  23124. }
  23125. return uuid.join('');
  23126. }
  23127. };
  23128. exports.default = _default;
  23129. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23130. /***/ }),
  23131. /***/ 517:
  23132. /*!*********************************************************************************************************************!*\
  23133. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js ***!
  23134. \*********************************************************************************************************************/
  23135. /*! no static exports found */
  23136. /***/ (function(module, exports, __webpack_require__) {
  23137. "use strict";
  23138. /* WEBPACK VAR INJECTION */(function(uni, wx, uniCloud) {
  23139. Object.defineProperty(exports, "__esModule", {
  23140. value: true
  23141. });
  23142. exports.chooseAndUploadFile = chooseAndUploadFile;
  23143. exports.uploadCloudFiles = uploadCloudFiles;
  23144. var ERR_MSG_OK = 'chooseAndUploadFile:ok';
  23145. var ERR_MSG_FAIL = 'chooseAndUploadFile:fail';
  23146. function chooseImage(opts) {
  23147. var count = opts.count,
  23148. _opts$sizeType = opts.sizeType,
  23149. sizeType = _opts$sizeType === void 0 ? ['original', 'compressed'] : _opts$sizeType,
  23150. sourceType = opts.sourceType,
  23151. extension = opts.extension;
  23152. return new Promise(function (resolve, reject) {
  23153. uni.chooseImage({
  23154. count: count,
  23155. sizeType: sizeType,
  23156. sourceType: sourceType,
  23157. extension: extension,
  23158. success: function success(res) {
  23159. resolve(normalizeChooseAndUploadFileRes(res, 'image'));
  23160. },
  23161. fail: function fail(res) {
  23162. reject({
  23163. errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL)
  23164. });
  23165. }
  23166. });
  23167. });
  23168. }
  23169. function chooseVideo(opts) {
  23170. var camera = opts.camera,
  23171. compressed = opts.compressed,
  23172. maxDuration = opts.maxDuration,
  23173. sourceType = opts.sourceType,
  23174. extension = opts.extension;
  23175. return new Promise(function (resolve, reject) {
  23176. uni.chooseVideo({
  23177. camera: camera,
  23178. compressed: compressed,
  23179. maxDuration: maxDuration,
  23180. sourceType: sourceType,
  23181. extension: extension,
  23182. success: function success(res) {
  23183. var tempFilePath = res.tempFilePath,
  23184. duration = res.duration,
  23185. size = res.size,
  23186. height = res.height,
  23187. width = res.width;
  23188. resolve(normalizeChooseAndUploadFileRes({
  23189. errMsg: 'chooseVideo:ok',
  23190. tempFilePaths: [tempFilePath],
  23191. tempFiles: [{
  23192. name: res.tempFile && res.tempFile.name || '',
  23193. path: tempFilePath,
  23194. size: size,
  23195. type: res.tempFile && res.tempFile.type || '',
  23196. width: width,
  23197. height: height,
  23198. duration: duration,
  23199. fileType: 'video',
  23200. cloudPath: ''
  23201. }]
  23202. }, 'video'));
  23203. },
  23204. fail: function fail(res) {
  23205. reject({
  23206. errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL)
  23207. });
  23208. }
  23209. });
  23210. });
  23211. }
  23212. function chooseAll(opts) {
  23213. var count = opts.count,
  23214. extension = opts.extension;
  23215. return new Promise(function (resolve, reject) {
  23216. var chooseFile = uni.chooseFile;
  23217. if (typeof wx !== 'undefined' && typeof wx.chooseMessageFile === 'function') {
  23218. chooseFile = wx.chooseMessageFile;
  23219. }
  23220. if (typeof chooseFile !== 'function') {
  23221. return reject({
  23222. errMsg: ERR_MSG_FAIL + ' 请指定 type 类型,该平台仅支持选择 image 或 video。'
  23223. });
  23224. }
  23225. chooseFile({
  23226. type: 'all',
  23227. count: count,
  23228. extension: extension,
  23229. success: function success(res) {
  23230. resolve(normalizeChooseAndUploadFileRes(res));
  23231. },
  23232. fail: function fail(res) {
  23233. reject({
  23234. errMsg: res.errMsg.replace('chooseFile:fail', ERR_MSG_FAIL)
  23235. });
  23236. }
  23237. });
  23238. });
  23239. }
  23240. function normalizeChooseAndUploadFileRes(res, fileType) {
  23241. res.tempFiles.forEach(function (item, index) {
  23242. if (!item.name) {
  23243. item.name = item.path.substring(item.path.lastIndexOf('/') + 1);
  23244. }
  23245. if (fileType) {
  23246. item.fileType = fileType;
  23247. }
  23248. item.cloudPath = Date.now() + '_' + index + item.name.substring(item.name.lastIndexOf('.'));
  23249. });
  23250. if (!res.tempFilePaths) {
  23251. res.tempFilePaths = res.tempFiles.map(function (file) {
  23252. return file.path;
  23253. });
  23254. }
  23255. return res;
  23256. }
  23257. function uploadCloudFiles(files) {
  23258. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
  23259. var _onUploadProgress = arguments.length > 2 ? arguments[2] : undefined;
  23260. files = JSON.parse(JSON.stringify(files));
  23261. var len = files.length;
  23262. var count = 0;
  23263. var self = this;
  23264. return new Promise(function (resolve) {
  23265. while (count < max) {
  23266. next();
  23267. }
  23268. function next() {
  23269. var cur = count++;
  23270. if (cur >= len) {
  23271. !files.find(function (item) {
  23272. return !item.url && !item.errMsg;
  23273. }) && resolve(files);
  23274. return;
  23275. }
  23276. var fileItem = files[cur];
  23277. var index = self.files.findIndex(function (v) {
  23278. return v.uuid === fileItem.uuid;
  23279. });
  23280. fileItem.url = '';
  23281. delete fileItem.errMsg;
  23282. uniCloud.uploadFile({
  23283. filePath: fileItem.path,
  23284. cloudPath: fileItem.cloudPath,
  23285. fileType: fileItem.fileType,
  23286. onUploadProgress: function onUploadProgress(res) {
  23287. res.index = index;
  23288. _onUploadProgress && _onUploadProgress(res);
  23289. }
  23290. }).then(function (res) {
  23291. fileItem.url = res.fileID;
  23292. fileItem.index = index;
  23293. if (cur < len) {
  23294. next();
  23295. }
  23296. }).catch(function (res) {
  23297. fileItem.errMsg = res.errMsg || res.message;
  23298. fileItem.index = index;
  23299. if (cur < len) {
  23300. next();
  23301. }
  23302. });
  23303. }
  23304. });
  23305. }
  23306. function uploadFiles(choosePromise, _ref) {
  23307. var onChooseFile = _ref.onChooseFile,
  23308. onUploadProgress = _ref.onUploadProgress;
  23309. return choosePromise.then(function (res) {
  23310. if (onChooseFile) {
  23311. var customChooseRes = onChooseFile(res);
  23312. if (typeof customChooseRes !== 'undefined') {
  23313. return Promise.resolve(customChooseRes).then(function (chooseRes) {
  23314. return typeof chooseRes === 'undefined' ? res : chooseRes;
  23315. });
  23316. }
  23317. }
  23318. return res;
  23319. }).then(function (res) {
  23320. if (res === false) {
  23321. return {
  23322. errMsg: ERR_MSG_OK,
  23323. tempFilePaths: [],
  23324. tempFiles: []
  23325. };
  23326. }
  23327. return res;
  23328. });
  23329. }
  23330. function chooseAndUploadFile() {
  23331. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  23332. type: 'all'
  23333. };
  23334. if (opts.type === 'image') {
  23335. return uploadFiles(chooseImage(opts), opts);
  23336. } else if (opts.type === 'video') {
  23337. return uploadFiles(chooseVideo(opts), opts);
  23338. }
  23339. return uploadFiles(chooseAll(opts), opts);
  23340. }
  23341. /* 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"]))
  23342. /***/ }),
  23343. /***/ 518:
  23344. /*!****************************************************************************************************!*\
  23345. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-file-picker/components/uni-file-picker/utils.js ***!
  23346. \****************************************************************************************************/
  23347. /*! no static exports found */
  23348. /***/ (function(module, exports, __webpack_require__) {
  23349. "use strict";
  23350. /* WEBPACK VAR INJECTION */(function(uni) {
  23351. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  23352. Object.defineProperty(exports, "__esModule", {
  23353. value: true
  23354. });
  23355. exports.get_files_and_is_max = exports.get_file_info = exports.get_file_ext = exports.get_file_data = exports.get_extname = void 0;
  23356. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  23357. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  23358. /**
  23359. * 获取文件名和后缀
  23360. * @param {String} name
  23361. */
  23362. var get_file_ext = function get_file_ext(name) {
  23363. var last_len = name.lastIndexOf('.');
  23364. var len = name.length;
  23365. return {
  23366. name: name.substring(0, last_len),
  23367. ext: name.substring(last_len + 1, len)
  23368. };
  23369. };
  23370. /**
  23371. * 获取扩展名
  23372. * @param {Array} fileExtname
  23373. */
  23374. exports.get_file_ext = get_file_ext;
  23375. var get_extname = function get_extname(fileExtname) {
  23376. if (!Array.isArray(fileExtname)) {
  23377. var extname = fileExtname.replace(/(\[|\])/g, '');
  23378. return extname.split(',');
  23379. } else {
  23380. return fileExtname;
  23381. }
  23382. return [];
  23383. };
  23384. /**
  23385. * 获取文件和检测是否可选
  23386. */
  23387. exports.get_extname = get_extname;
  23388. var get_files_and_is_max = function get_files_and_is_max(res, _extname) {
  23389. var filePaths = [];
  23390. var files = [];
  23391. if (!_extname || _extname.length === 0) {
  23392. return {
  23393. filePaths: filePaths,
  23394. files: files
  23395. };
  23396. }
  23397. res.tempFiles.forEach(function (v) {
  23398. var fileFullName = get_file_ext(v.name);
  23399. var extname = fileFullName.ext.toLowerCase();
  23400. if (_extname.indexOf(extname) !== -1) {
  23401. files.push(v);
  23402. filePaths.push(v.path);
  23403. }
  23404. });
  23405. if (files.length !== res.tempFiles.length) {
  23406. uni.showToast({
  23407. 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"),
  23408. icon: 'none',
  23409. duration: 5000
  23410. });
  23411. }
  23412. return {
  23413. filePaths: filePaths,
  23414. files: files
  23415. };
  23416. };
  23417. /**
  23418. * 获取图片信息
  23419. * @param {Object} filepath
  23420. */
  23421. exports.get_files_and_is_max = get_files_and_is_max;
  23422. var get_file_info = function get_file_info(filepath) {
  23423. return new Promise(function (resolve, reject) {
  23424. uni.getImageInfo({
  23425. src: filepath,
  23426. success: function success(res) {
  23427. resolve(res);
  23428. },
  23429. fail: function fail(err) {
  23430. reject(err);
  23431. }
  23432. });
  23433. });
  23434. };
  23435. /**
  23436. * 获取封装数据
  23437. */
  23438. exports.get_file_info = get_file_info;
  23439. var get_file_data = /*#__PURE__*/function () {
  23440. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(files) {
  23441. var type,
  23442. fileFullName,
  23443. extname,
  23444. filedata,
  23445. imageinfo,
  23446. _args = arguments;
  23447. return _regenerator.default.wrap(function _callee$(_context) {
  23448. while (1) {
  23449. switch (_context.prev = _context.next) {
  23450. case 0:
  23451. type = _args.length > 1 && _args[1] !== undefined ? _args[1] : 'image';
  23452. // 最终需要上传数据库的数据
  23453. fileFullName = get_file_ext(files.name);
  23454. extname = fileFullName.ext.toLowerCase();
  23455. filedata = {
  23456. name: files.name,
  23457. uuid: files.uuid,
  23458. extname: extname || '',
  23459. cloudPath: files.cloudPath,
  23460. fileType: files.fileType,
  23461. url: files.path || files.path,
  23462. size: files.size,
  23463. //单位是字节
  23464. image: {},
  23465. path: files.path,
  23466. video: {}
  23467. };
  23468. if (!(type === 'image')) {
  23469. _context.next = 14;
  23470. break;
  23471. }
  23472. _context.next = 7;
  23473. return get_file_info(files.path);
  23474. case 7:
  23475. imageinfo = _context.sent;
  23476. delete filedata.video;
  23477. filedata.image.width = imageinfo.width;
  23478. filedata.image.height = imageinfo.height;
  23479. filedata.image.location = imageinfo.path;
  23480. _context.next = 15;
  23481. break;
  23482. case 14:
  23483. delete filedata.image;
  23484. case 15:
  23485. return _context.abrupt("return", filedata);
  23486. case 16:
  23487. case "end":
  23488. return _context.stop();
  23489. }
  23490. }
  23491. }, _callee);
  23492. }));
  23493. return function get_file_data(_x) {
  23494. return _ref.apply(this, arguments);
  23495. };
  23496. }();
  23497. exports.get_file_data = get_file_data;
  23498. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23499. /***/ }),
  23500. /***/ 52:
  23501. /*!***************************************************!*\
  23502. !*** D:/AAAcompany_product/产品化管理端/js_sdk/auth.js ***!
  23503. \***************************************************/
  23504. /*! no static exports found */
  23505. /***/ (function(module, exports, __webpack_require__) {
  23506. "use strict";
  23507. /* WEBPACK VAR INJECTION */(function(uni) {
  23508. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  23509. Object.defineProperty(exports, "__esModule", {
  23510. value: true
  23511. });
  23512. exports.default = void 0;
  23513. var _common = _interopRequireDefault(__webpack_require__(/*! ./common.js */ 51));
  23514. var _default = {
  23515. TYPE_FRAME: 'FRAME',
  23516. TYPE_BIZ: 'BIZ',
  23517. TYPE_USER: 'USER',
  23518. TYPE_PERSON_BIZ: 'BIZ_PERSON',
  23519. // ------------------------------ User -----------------------------------
  23520. uid: function uid() {
  23521. return this.currUser() ? this.currUser().id : null;
  23522. },
  23523. setUser: function setUser(value) {
  23524. uni.setStorage({
  23525. key: 'laocui_user_token',
  23526. data: value,
  23527. success: function success() {}
  23528. });
  23529. },
  23530. setUserInfo: function setUserInfo(value) {
  23531. uni.setStorage({
  23532. key: 'laocui_user_info',
  23533. data: JSON.stringify(value),
  23534. success: function success() {}
  23535. });
  23536. },
  23537. currUser: function currUser() {
  23538. return _common.default.castEval(localStorage.getItem(this.userKey()) || '');
  23539. },
  23540. removeUser: function removeUser() {
  23541. uni.removeStorage(this.userKey());
  23542. },
  23543. // ------------------------------ Biz -----------------------------------
  23544. bid: function bid() {
  23545. return this.currBiz() ? this.currBiz().id : null;
  23546. },
  23547. setBiz: function setBiz(value) {
  23548. sessionStorage.setItem(this.bizKey(), JSON.stringify(value));
  23549. },
  23550. removeBiz: function removeBiz() {
  23551. sessionStorage.removeItem(this.bizKey());
  23552. },
  23553. currBiz: function currBiz() {
  23554. return _common.default.castEval(sessionStorage.getItem(this.bizKey()) || null);
  23555. },
  23556. // ------------------------------ Token -----------------------------------
  23557. setToken: function setToken(token) {
  23558. localStorage.setItem(this.tokenKey(), token);
  23559. },
  23560. getToken: function getToken() {
  23561. return localStorage.getItem(this.tokenKey()) || null;
  23562. },
  23563. removeToken: function removeToken() {
  23564. localStorage.removeItem(this.tokenKey());
  23565. },
  23566. // ------------------------------ key -----------------------------------
  23567. // bizKey: function() {
  23568. // const key = this.hashCode(window.location.host + '_biz_' + this.getUserType())
  23569. // return key
  23570. // },
  23571. //
  23572. // userKey: function() {
  23573. // const key = this.hashCode(window.location.host + '_user_' + this.getUserType())
  23574. // return key
  23575. // },
  23576. //
  23577. // tokenKey: function() {
  23578. // const key = this.hashCode(window.location.host + '_token_' + this.getUserType())
  23579. // return key
  23580. // },
  23581. // Frame
  23582. setLoginInfo: function setLoginInfo(value) {
  23583. localStorage.setItem('KEY_ADMIN_USER_LOGIN_INFO', JSON.stringify(value));
  23584. },
  23585. getLoginInfo: function getLoginInfo() {
  23586. return _common.default.castEval(localStorage.getItem('KEY_ADMIN_USER_LOGIN_INFO') || null);
  23587. },
  23588. removeLoginInfo: function removeLoginInfo() {
  23589. localStorage.removeItem('KEY_ADMIN_USER_LOGIN_INFO');
  23590. },
  23591. // Biz
  23592. setBizLoginInfo: function setBizLoginInfo(value) {
  23593. localStorage.setItem('KEY_BIZ_USER_LOGIN_INFO', JSON.stringify(value));
  23594. },
  23595. getBizLoginInfo: function getBizLoginInfo() {
  23596. return _common.default.castEval(localStorage.getItem('KEY_BIZ_USER_LOGIN_INFO') || null);
  23597. },
  23598. removeBizLoginInfo: function removeBizLoginInfo() {
  23599. localStorage.removeItem('KEY_BIZ_USER_LOGIN_INFO');
  23600. },
  23601. setUserType: function setUserType(value) {
  23602. localStorage.setItem('KEY_USER_TYPE', value);
  23603. },
  23604. getUserType: function getUserType() {
  23605. return localStorage.getItem('KEY_USER_TYPE') || 'TYPE_FRAME';
  23606. },
  23607. hashCode: function hashCode(str) {
  23608. var hash = 0;
  23609. if (str.length === 0) return hash;
  23610. for (var i = 0; i < str.length; i++) {
  23611. var char = str.charCodeAt(i);
  23612. hash = (hash << 5) - hash + char;
  23613. hash = hash & hash; // Convert to 32bit integer
  23614. }
  23615. return hash;
  23616. },
  23617. /*
  23618. 定时缓存
  23619. */
  23620. setTimingLocalStorage: function setTimingLocalStorage(key, value, ttl_ms) {
  23621. var data = {
  23622. value: value,
  23623. expirse: new Date(ttl_ms).getTime()
  23624. };
  23625. localStorage.setItem(key, JSON.stringify(data));
  23626. },
  23627. getTimingLocalStorage: function getTimingLocalStorage(key) {
  23628. var data = JSON.parse(localStorage.getItem(key));
  23629. if (data !== null) {
  23630. if (data.expirse == null || data.expirse != null && data.expirse < new Date().getTime()) {
  23631. localStorage.removeItem(key);
  23632. } else {
  23633. return JSON.parse(data.value);
  23634. }
  23635. }
  23636. return null;
  23637. }
  23638. };
  23639. exports.default = _default;
  23640. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23641. /***/ }),
  23642. /***/ 526:
  23643. /*!****************************************************************************************!*\
  23644. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  23645. \****************************************************************************************/
  23646. /*! no static exports found */
  23647. /***/ (function(module, exports, __webpack_require__) {
  23648. "use strict";
  23649. Object.defineProperty(exports, "__esModule", {
  23650. value: true
  23651. });
  23652. exports.default = void 0;
  23653. var _default = {
  23654. "id": "2852637",
  23655. "name": "uniui图标库",
  23656. "font_family": "uniicons",
  23657. "css_prefix_text": "uniui-",
  23658. "description": "",
  23659. "glyphs": [{
  23660. "icon_id": "25027049",
  23661. "name": "yanse",
  23662. "font_class": "color",
  23663. "unicode": "e6cf",
  23664. "unicode_decimal": 59087
  23665. }, {
  23666. "icon_id": "25027048",
  23667. "name": "wallet",
  23668. "font_class": "wallet",
  23669. "unicode": "e6b1",
  23670. "unicode_decimal": 59057
  23671. }, {
  23672. "icon_id": "25015720",
  23673. "name": "settings-filled",
  23674. "font_class": "settings-filled",
  23675. "unicode": "e6ce",
  23676. "unicode_decimal": 59086
  23677. }, {
  23678. "icon_id": "25015434",
  23679. "name": "shimingrenzheng-filled",
  23680. "font_class": "auth-filled",
  23681. "unicode": "e6cc",
  23682. "unicode_decimal": 59084
  23683. }, {
  23684. "icon_id": "24934246",
  23685. "name": "shop-filled",
  23686. "font_class": "shop-filled",
  23687. "unicode": "e6cd",
  23688. "unicode_decimal": 59085
  23689. }, {
  23690. "icon_id": "24934159",
  23691. "name": "staff-filled-01",
  23692. "font_class": "staff-filled",
  23693. "unicode": "e6cb",
  23694. "unicode_decimal": 59083
  23695. }, {
  23696. "icon_id": "24932461",
  23697. "name": "VIP-filled",
  23698. "font_class": "vip-filled",
  23699. "unicode": "e6c6",
  23700. "unicode_decimal": 59078
  23701. }, {
  23702. "icon_id": "24932462",
  23703. "name": "plus_circle_fill",
  23704. "font_class": "plus-filled",
  23705. "unicode": "e6c7",
  23706. "unicode_decimal": 59079
  23707. }, {
  23708. "icon_id": "24932463",
  23709. "name": "folder_add-filled",
  23710. "font_class": "folder-add-filled",
  23711. "unicode": "e6c8",
  23712. "unicode_decimal": 59080
  23713. }, {
  23714. "icon_id": "24932464",
  23715. "name": "yanse-filled",
  23716. "font_class": "color-filled",
  23717. "unicode": "e6c9",
  23718. "unicode_decimal": 59081
  23719. }, {
  23720. "icon_id": "24932465",
  23721. "name": "tune-filled",
  23722. "font_class": "tune-filled",
  23723. "unicode": "e6ca",
  23724. "unicode_decimal": 59082
  23725. }, {
  23726. "icon_id": "24932455",
  23727. "name": "a-rilidaka-filled",
  23728. "font_class": "calendar-filled",
  23729. "unicode": "e6c0",
  23730. "unicode_decimal": 59072
  23731. }, {
  23732. "icon_id": "24932456",
  23733. "name": "notification-filled",
  23734. "font_class": "notification-filled",
  23735. "unicode": "e6c1",
  23736. "unicode_decimal": 59073
  23737. }, {
  23738. "icon_id": "24932457",
  23739. "name": "wallet-filled",
  23740. "font_class": "wallet-filled",
  23741. "unicode": "e6c2",
  23742. "unicode_decimal": 59074
  23743. }, {
  23744. "icon_id": "24932458",
  23745. "name": "paihangbang-filled",
  23746. "font_class": "medal-filled",
  23747. "unicode": "e6c3",
  23748. "unicode_decimal": 59075
  23749. }, {
  23750. "icon_id": "24932459",
  23751. "name": "gift-filled",
  23752. "font_class": "gift-filled",
  23753. "unicode": "e6c4",
  23754. "unicode_decimal": 59076
  23755. }, {
  23756. "icon_id": "24932460",
  23757. "name": "fire-filled",
  23758. "font_class": "fire-filled",
  23759. "unicode": "e6c5",
  23760. "unicode_decimal": 59077
  23761. }, {
  23762. "icon_id": "24928001",
  23763. "name": "refreshempty",
  23764. "font_class": "refreshempty",
  23765. "unicode": "e6bf",
  23766. "unicode_decimal": 59071
  23767. }, {
  23768. "icon_id": "24926853",
  23769. "name": "location-ellipse",
  23770. "font_class": "location-filled",
  23771. "unicode": "e6af",
  23772. "unicode_decimal": 59055
  23773. }, {
  23774. "icon_id": "24926735",
  23775. "name": "person-filled",
  23776. "font_class": "person-filled",
  23777. "unicode": "e69d",
  23778. "unicode_decimal": 59037
  23779. }, {
  23780. "icon_id": "24926703",
  23781. "name": "personadd-filled",
  23782. "font_class": "personadd-filled",
  23783. "unicode": "e698",
  23784. "unicode_decimal": 59032
  23785. }, {
  23786. "icon_id": "24923351",
  23787. "name": "back",
  23788. "font_class": "back",
  23789. "unicode": "e6b9",
  23790. "unicode_decimal": 59065
  23791. }, {
  23792. "icon_id": "24923352",
  23793. "name": "forward",
  23794. "font_class": "forward",
  23795. "unicode": "e6ba",
  23796. "unicode_decimal": 59066
  23797. }, {
  23798. "icon_id": "24923353",
  23799. "name": "arrowthinright",
  23800. "font_class": "arrow-right",
  23801. "unicode": "e6bb",
  23802. "unicode_decimal": 59067
  23803. }, {
  23804. "icon_id": "24923353",
  23805. "name": "arrowthinright",
  23806. "font_class": "arrowthinright",
  23807. "unicode": "e6bb",
  23808. "unicode_decimal": 59067
  23809. }, {
  23810. "icon_id": "24923354",
  23811. "name": "arrowthinleft",
  23812. "font_class": "arrow-left",
  23813. "unicode": "e6bc",
  23814. "unicode_decimal": 59068
  23815. }, {
  23816. "icon_id": "24923354",
  23817. "name": "arrowthinleft",
  23818. "font_class": "arrowthinleft",
  23819. "unicode": "e6bc",
  23820. "unicode_decimal": 59068
  23821. }, {
  23822. "icon_id": "24923355",
  23823. "name": "arrowthinup",
  23824. "font_class": "arrow-up",
  23825. "unicode": "e6bd",
  23826. "unicode_decimal": 59069
  23827. }, {
  23828. "icon_id": "24923355",
  23829. "name": "arrowthinup",
  23830. "font_class": "arrowthinup",
  23831. "unicode": "e6bd",
  23832. "unicode_decimal": 59069
  23833. }, {
  23834. "icon_id": "24923356",
  23835. "name": "arrowthindown",
  23836. "font_class": "arrow-down",
  23837. "unicode": "e6be",
  23838. "unicode_decimal": 59070
  23839. }, {
  23840. "icon_id": "24923356",
  23841. "name": "arrowthindown",
  23842. "font_class": "arrowthindown",
  23843. "unicode": "e6be",
  23844. "unicode_decimal": 59070
  23845. }, {
  23846. "icon_id": "24923349",
  23847. "name": "arrowdown",
  23848. "font_class": "bottom",
  23849. "unicode": "e6b8",
  23850. "unicode_decimal": 59064
  23851. }, {
  23852. "icon_id": "24923349",
  23853. "name": "arrowdown",
  23854. "font_class": "arrowdown",
  23855. "unicode": "e6b8",
  23856. "unicode_decimal": 59064
  23857. }, {
  23858. "icon_id": "24923346",
  23859. "name": "arrowright",
  23860. "font_class": "right",
  23861. "unicode": "e6b5",
  23862. "unicode_decimal": 59061
  23863. }, {
  23864. "icon_id": "24923346",
  23865. "name": "arrowright",
  23866. "font_class": "arrowright",
  23867. "unicode": "e6b5",
  23868. "unicode_decimal": 59061
  23869. }, {
  23870. "icon_id": "24923347",
  23871. "name": "arrowup",
  23872. "font_class": "top",
  23873. "unicode": "e6b6",
  23874. "unicode_decimal": 59062
  23875. }, {
  23876. "icon_id": "24923347",
  23877. "name": "arrowup",
  23878. "font_class": "arrowup",
  23879. "unicode": "e6b6",
  23880. "unicode_decimal": 59062
  23881. }, {
  23882. "icon_id": "24923348",
  23883. "name": "arrowleft",
  23884. "font_class": "left",
  23885. "unicode": "e6b7",
  23886. "unicode_decimal": 59063
  23887. }, {
  23888. "icon_id": "24923348",
  23889. "name": "arrowleft",
  23890. "font_class": "arrowleft",
  23891. "unicode": "e6b7",
  23892. "unicode_decimal": 59063
  23893. }, {
  23894. "icon_id": "24923334",
  23895. "name": "eye",
  23896. "font_class": "eye",
  23897. "unicode": "e651",
  23898. "unicode_decimal": 58961
  23899. }, {
  23900. "icon_id": "24923335",
  23901. "name": "eye-filled",
  23902. "font_class": "eye-filled",
  23903. "unicode": "e66a",
  23904. "unicode_decimal": 58986
  23905. }, {
  23906. "icon_id": "24923336",
  23907. "name": "eye-slash",
  23908. "font_class": "eye-slash",
  23909. "unicode": "e6b3",
  23910. "unicode_decimal": 59059
  23911. }, {
  23912. "icon_id": "24923337",
  23913. "name": "eye-slash-filled",
  23914. "font_class": "eye-slash-filled",
  23915. "unicode": "e6b4",
  23916. "unicode_decimal": 59060
  23917. }, {
  23918. "icon_id": "24923305",
  23919. "name": "info-filled",
  23920. "font_class": "info-filled",
  23921. "unicode": "e649",
  23922. "unicode_decimal": 58953
  23923. }, {
  23924. "icon_id": "24923299",
  23925. "name": "reload-01",
  23926. "font_class": "reload",
  23927. "unicode": "e6b2",
  23928. "unicode_decimal": 59058
  23929. }, {
  23930. "icon_id": "24923195",
  23931. "name": "mic_slash_fill",
  23932. "font_class": "micoff-filled",
  23933. "unicode": "e6b0",
  23934. "unicode_decimal": 59056
  23935. }, {
  23936. "icon_id": "24923165",
  23937. "name": "map-pin-ellipse",
  23938. "font_class": "map-pin-ellipse",
  23939. "unicode": "e6ac",
  23940. "unicode_decimal": 59052
  23941. }, {
  23942. "icon_id": "24923166",
  23943. "name": "map-pin",
  23944. "font_class": "map-pin",
  23945. "unicode": "e6ad",
  23946. "unicode_decimal": 59053
  23947. }, {
  23948. "icon_id": "24923167",
  23949. "name": "location",
  23950. "font_class": "location",
  23951. "unicode": "e6ae",
  23952. "unicode_decimal": 59054
  23953. }, {
  23954. "icon_id": "24923064",
  23955. "name": "starhalf",
  23956. "font_class": "starhalf",
  23957. "unicode": "e683",
  23958. "unicode_decimal": 59011
  23959. }, {
  23960. "icon_id": "24923065",
  23961. "name": "star",
  23962. "font_class": "star",
  23963. "unicode": "e688",
  23964. "unicode_decimal": 59016
  23965. }, {
  23966. "icon_id": "24923066",
  23967. "name": "star-filled",
  23968. "font_class": "star-filled",
  23969. "unicode": "e68f",
  23970. "unicode_decimal": 59023
  23971. }, {
  23972. "icon_id": "24899646",
  23973. "name": "a-rilidaka",
  23974. "font_class": "calendar",
  23975. "unicode": "e6a0",
  23976. "unicode_decimal": 59040
  23977. }, {
  23978. "icon_id": "24899647",
  23979. "name": "fire",
  23980. "font_class": "fire",
  23981. "unicode": "e6a1",
  23982. "unicode_decimal": 59041
  23983. }, {
  23984. "icon_id": "24899648",
  23985. "name": "paihangbang",
  23986. "font_class": "medal",
  23987. "unicode": "e6a2",
  23988. "unicode_decimal": 59042
  23989. }, {
  23990. "icon_id": "24899649",
  23991. "name": "font",
  23992. "font_class": "font",
  23993. "unicode": "e6a3",
  23994. "unicode_decimal": 59043
  23995. }, {
  23996. "icon_id": "24899650",
  23997. "name": "gift",
  23998. "font_class": "gift",
  23999. "unicode": "e6a4",
  24000. "unicode_decimal": 59044
  24001. }, {
  24002. "icon_id": "24899651",
  24003. "name": "link",
  24004. "font_class": "link",
  24005. "unicode": "e6a5",
  24006. "unicode_decimal": 59045
  24007. }, {
  24008. "icon_id": "24899652",
  24009. "name": "notification",
  24010. "font_class": "notification",
  24011. "unicode": "e6a6",
  24012. "unicode_decimal": 59046
  24013. }, {
  24014. "icon_id": "24899653",
  24015. "name": "staff",
  24016. "font_class": "staff",
  24017. "unicode": "e6a7",
  24018. "unicode_decimal": 59047
  24019. }, {
  24020. "icon_id": "24899654",
  24021. "name": "VIP",
  24022. "font_class": "vip",
  24023. "unicode": "e6a8",
  24024. "unicode_decimal": 59048
  24025. }, {
  24026. "icon_id": "24899655",
  24027. "name": "folder_add",
  24028. "font_class": "folder-add",
  24029. "unicode": "e6a9",
  24030. "unicode_decimal": 59049
  24031. }, {
  24032. "icon_id": "24899656",
  24033. "name": "tune",
  24034. "font_class": "tune",
  24035. "unicode": "e6aa",
  24036. "unicode_decimal": 59050
  24037. }, {
  24038. "icon_id": "24899657",
  24039. "name": "shimingrenzheng",
  24040. "font_class": "auth",
  24041. "unicode": "e6ab",
  24042. "unicode_decimal": 59051
  24043. }, {
  24044. "icon_id": "24899565",
  24045. "name": "person",
  24046. "font_class": "person",
  24047. "unicode": "e699",
  24048. "unicode_decimal": 59033
  24049. }, {
  24050. "icon_id": "24899566",
  24051. "name": "email-filled",
  24052. "font_class": "email-filled",
  24053. "unicode": "e69a",
  24054. "unicode_decimal": 59034
  24055. }, {
  24056. "icon_id": "24899567",
  24057. "name": "phone-filled",
  24058. "font_class": "phone-filled",
  24059. "unicode": "e69b",
  24060. "unicode_decimal": 59035
  24061. }, {
  24062. "icon_id": "24899568",
  24063. "name": "phone",
  24064. "font_class": "phone",
  24065. "unicode": "e69c",
  24066. "unicode_decimal": 59036
  24067. }, {
  24068. "icon_id": "24899570",
  24069. "name": "email",
  24070. "font_class": "email",
  24071. "unicode": "e69e",
  24072. "unicode_decimal": 59038
  24073. }, {
  24074. "icon_id": "24899571",
  24075. "name": "personadd",
  24076. "font_class": "personadd",
  24077. "unicode": "e69f",
  24078. "unicode_decimal": 59039
  24079. }, {
  24080. "icon_id": "24899558",
  24081. "name": "chatboxes-filled",
  24082. "font_class": "chatboxes-filled",
  24083. "unicode": "e692",
  24084. "unicode_decimal": 59026
  24085. }, {
  24086. "icon_id": "24899559",
  24087. "name": "contact",
  24088. "font_class": "contact",
  24089. "unicode": "e693",
  24090. "unicode_decimal": 59027
  24091. }, {
  24092. "icon_id": "24899560",
  24093. "name": "chatbubble-filled",
  24094. "font_class": "chatbubble-filled",
  24095. "unicode": "e694",
  24096. "unicode_decimal": 59028
  24097. }, {
  24098. "icon_id": "24899561",
  24099. "name": "contact-filled",
  24100. "font_class": "contact-filled",
  24101. "unicode": "e695",
  24102. "unicode_decimal": 59029
  24103. }, {
  24104. "icon_id": "24899562",
  24105. "name": "chatboxes",
  24106. "font_class": "chatboxes",
  24107. "unicode": "e696",
  24108. "unicode_decimal": 59030
  24109. }, {
  24110. "icon_id": "24899563",
  24111. "name": "chatbubble",
  24112. "font_class": "chatbubble",
  24113. "unicode": "e697",
  24114. "unicode_decimal": 59031
  24115. }, {
  24116. "icon_id": "24881290",
  24117. "name": "upload-filled",
  24118. "font_class": "upload-filled",
  24119. "unicode": "e68e",
  24120. "unicode_decimal": 59022
  24121. }, {
  24122. "icon_id": "24881292",
  24123. "name": "upload",
  24124. "font_class": "upload",
  24125. "unicode": "e690",
  24126. "unicode_decimal": 59024
  24127. }, {
  24128. "icon_id": "24881293",
  24129. "name": "weixin",
  24130. "font_class": "weixin",
  24131. "unicode": "e691",
  24132. "unicode_decimal": 59025
  24133. }, {
  24134. "icon_id": "24881274",
  24135. "name": "compose",
  24136. "font_class": "compose",
  24137. "unicode": "e67f",
  24138. "unicode_decimal": 59007
  24139. }, {
  24140. "icon_id": "24881275",
  24141. "name": "qq",
  24142. "font_class": "qq",
  24143. "unicode": "e680",
  24144. "unicode_decimal": 59008
  24145. }, {
  24146. "icon_id": "24881276",
  24147. "name": "download-filled",
  24148. "font_class": "download-filled",
  24149. "unicode": "e681",
  24150. "unicode_decimal": 59009
  24151. }, {
  24152. "icon_id": "24881277",
  24153. "name": "pengyouquan",
  24154. "font_class": "pyq",
  24155. "unicode": "e682",
  24156. "unicode_decimal": 59010
  24157. }, {
  24158. "icon_id": "24881279",
  24159. "name": "sound",
  24160. "font_class": "sound",
  24161. "unicode": "e684",
  24162. "unicode_decimal": 59012
  24163. }, {
  24164. "icon_id": "24881280",
  24165. "name": "trash-filled",
  24166. "font_class": "trash-filled",
  24167. "unicode": "e685",
  24168. "unicode_decimal": 59013
  24169. }, {
  24170. "icon_id": "24881281",
  24171. "name": "sound-filled",
  24172. "font_class": "sound-filled",
  24173. "unicode": "e686",
  24174. "unicode_decimal": 59014
  24175. }, {
  24176. "icon_id": "24881282",
  24177. "name": "trash",
  24178. "font_class": "trash",
  24179. "unicode": "e687",
  24180. "unicode_decimal": 59015
  24181. }, {
  24182. "icon_id": "24881284",
  24183. "name": "videocam-filled",
  24184. "font_class": "videocam-filled",
  24185. "unicode": "e689",
  24186. "unicode_decimal": 59017
  24187. }, {
  24188. "icon_id": "24881285",
  24189. "name": "spinner-cycle",
  24190. "font_class": "spinner-cycle",
  24191. "unicode": "e68a",
  24192. "unicode_decimal": 59018
  24193. }, {
  24194. "icon_id": "24881286",
  24195. "name": "weibo",
  24196. "font_class": "weibo",
  24197. "unicode": "e68b",
  24198. "unicode_decimal": 59019
  24199. }, {
  24200. "icon_id": "24881288",
  24201. "name": "videocam",
  24202. "font_class": "videocam",
  24203. "unicode": "e68c",
  24204. "unicode_decimal": 59020
  24205. }, {
  24206. "icon_id": "24881289",
  24207. "name": "download",
  24208. "font_class": "download",
  24209. "unicode": "e68d",
  24210. "unicode_decimal": 59021
  24211. }, {
  24212. "icon_id": "24879601",
  24213. "name": "help",
  24214. "font_class": "help",
  24215. "unicode": "e679",
  24216. "unicode_decimal": 59001
  24217. }, {
  24218. "icon_id": "24879602",
  24219. "name": "navigate-filled",
  24220. "font_class": "navigate-filled",
  24221. "unicode": "e67a",
  24222. "unicode_decimal": 59002
  24223. }, {
  24224. "icon_id": "24879603",
  24225. "name": "plusempty",
  24226. "font_class": "plusempty",
  24227. "unicode": "e67b",
  24228. "unicode_decimal": 59003
  24229. }, {
  24230. "icon_id": "24879604",
  24231. "name": "smallcircle",
  24232. "font_class": "smallcircle",
  24233. "unicode": "e67c",
  24234. "unicode_decimal": 59004
  24235. }, {
  24236. "icon_id": "24879605",
  24237. "name": "minus-filled",
  24238. "font_class": "minus-filled",
  24239. "unicode": "e67d",
  24240. "unicode_decimal": 59005
  24241. }, {
  24242. "icon_id": "24879606",
  24243. "name": "micoff",
  24244. "font_class": "micoff",
  24245. "unicode": "e67e",
  24246. "unicode_decimal": 59006
  24247. }, {
  24248. "icon_id": "24879588",
  24249. "name": "closeempty",
  24250. "font_class": "closeempty",
  24251. "unicode": "e66c",
  24252. "unicode_decimal": 58988
  24253. }, {
  24254. "icon_id": "24879589",
  24255. "name": "clear",
  24256. "font_class": "clear",
  24257. "unicode": "e66d",
  24258. "unicode_decimal": 58989
  24259. }, {
  24260. "icon_id": "24879590",
  24261. "name": "navigate",
  24262. "font_class": "navigate",
  24263. "unicode": "e66e",
  24264. "unicode_decimal": 58990
  24265. }, {
  24266. "icon_id": "24879591",
  24267. "name": "minus",
  24268. "font_class": "minus",
  24269. "unicode": "e66f",
  24270. "unicode_decimal": 58991
  24271. }, {
  24272. "icon_id": "24879592",
  24273. "name": "image",
  24274. "font_class": "image",
  24275. "unicode": "e670",
  24276. "unicode_decimal": 58992
  24277. }, {
  24278. "icon_id": "24879593",
  24279. "name": "mic",
  24280. "font_class": "mic",
  24281. "unicode": "e671",
  24282. "unicode_decimal": 58993
  24283. }, {
  24284. "icon_id": "24879594",
  24285. "name": "paperplane",
  24286. "font_class": "paperplane",
  24287. "unicode": "e672",
  24288. "unicode_decimal": 58994
  24289. }, {
  24290. "icon_id": "24879595",
  24291. "name": "close",
  24292. "font_class": "close",
  24293. "unicode": "e673",
  24294. "unicode_decimal": 58995
  24295. }, {
  24296. "icon_id": "24879596",
  24297. "name": "help-filled",
  24298. "font_class": "help-filled",
  24299. "unicode": "e674",
  24300. "unicode_decimal": 58996
  24301. }, {
  24302. "icon_id": "24879597",
  24303. "name": "plus-filled",
  24304. "font_class": "paperplane-filled",
  24305. "unicode": "e675",
  24306. "unicode_decimal": 58997
  24307. }, {
  24308. "icon_id": "24879598",
  24309. "name": "plus",
  24310. "font_class": "plus",
  24311. "unicode": "e676",
  24312. "unicode_decimal": 58998
  24313. }, {
  24314. "icon_id": "24879599",
  24315. "name": "mic-filled",
  24316. "font_class": "mic-filled",
  24317. "unicode": "e677",
  24318. "unicode_decimal": 58999
  24319. }, {
  24320. "icon_id": "24879600",
  24321. "name": "image-filled",
  24322. "font_class": "image-filled",
  24323. "unicode": "e678",
  24324. "unicode_decimal": 59000
  24325. }, {
  24326. "icon_id": "24855900",
  24327. "name": "locked-filled",
  24328. "font_class": "locked-filled",
  24329. "unicode": "e668",
  24330. "unicode_decimal": 58984
  24331. }, {
  24332. "icon_id": "24855901",
  24333. "name": "info",
  24334. "font_class": "info",
  24335. "unicode": "e669",
  24336. "unicode_decimal": 58985
  24337. }, {
  24338. "icon_id": "24855903",
  24339. "name": "locked",
  24340. "font_class": "locked",
  24341. "unicode": "e66b",
  24342. "unicode_decimal": 58987
  24343. }, {
  24344. "icon_id": "24855884",
  24345. "name": "camera-filled",
  24346. "font_class": "camera-filled",
  24347. "unicode": "e658",
  24348. "unicode_decimal": 58968
  24349. }, {
  24350. "icon_id": "24855885",
  24351. "name": "chat-filled",
  24352. "font_class": "chat-filled",
  24353. "unicode": "e659",
  24354. "unicode_decimal": 58969
  24355. }, {
  24356. "icon_id": "24855886",
  24357. "name": "camera",
  24358. "font_class": "camera",
  24359. "unicode": "e65a",
  24360. "unicode_decimal": 58970
  24361. }, {
  24362. "icon_id": "24855887",
  24363. "name": "circle",
  24364. "font_class": "circle",
  24365. "unicode": "e65b",
  24366. "unicode_decimal": 58971
  24367. }, {
  24368. "icon_id": "24855888",
  24369. "name": "checkmarkempty",
  24370. "font_class": "checkmarkempty",
  24371. "unicode": "e65c",
  24372. "unicode_decimal": 58972
  24373. }, {
  24374. "icon_id": "24855889",
  24375. "name": "chat",
  24376. "font_class": "chat",
  24377. "unicode": "e65d",
  24378. "unicode_decimal": 58973
  24379. }, {
  24380. "icon_id": "24855890",
  24381. "name": "circle-filled",
  24382. "font_class": "circle-filled",
  24383. "unicode": "e65e",
  24384. "unicode_decimal": 58974
  24385. }, {
  24386. "icon_id": "24855891",
  24387. "name": "flag",
  24388. "font_class": "flag",
  24389. "unicode": "e65f",
  24390. "unicode_decimal": 58975
  24391. }, {
  24392. "icon_id": "24855892",
  24393. "name": "flag-filled",
  24394. "font_class": "flag-filled",
  24395. "unicode": "e660",
  24396. "unicode_decimal": 58976
  24397. }, {
  24398. "icon_id": "24855893",
  24399. "name": "gear-filled",
  24400. "font_class": "gear-filled",
  24401. "unicode": "e661",
  24402. "unicode_decimal": 58977
  24403. }, {
  24404. "icon_id": "24855894",
  24405. "name": "home",
  24406. "font_class": "home",
  24407. "unicode": "e662",
  24408. "unicode_decimal": 58978
  24409. }, {
  24410. "icon_id": "24855895",
  24411. "name": "home-filled",
  24412. "font_class": "home-filled",
  24413. "unicode": "e663",
  24414. "unicode_decimal": 58979
  24415. }, {
  24416. "icon_id": "24855896",
  24417. "name": "gear",
  24418. "font_class": "gear",
  24419. "unicode": "e664",
  24420. "unicode_decimal": 58980
  24421. }, {
  24422. "icon_id": "24855897",
  24423. "name": "smallcircle-filled",
  24424. "font_class": "smallcircle-filled",
  24425. "unicode": "e665",
  24426. "unicode_decimal": 58981
  24427. }, {
  24428. "icon_id": "24855898",
  24429. "name": "map-filled",
  24430. "font_class": "map-filled",
  24431. "unicode": "e666",
  24432. "unicode_decimal": 58982
  24433. }, {
  24434. "icon_id": "24855899",
  24435. "name": "map",
  24436. "font_class": "map",
  24437. "unicode": "e667",
  24438. "unicode_decimal": 58983
  24439. }, {
  24440. "icon_id": "24855825",
  24441. "name": "refresh-filled",
  24442. "font_class": "refresh-filled",
  24443. "unicode": "e656",
  24444. "unicode_decimal": 58966
  24445. }, {
  24446. "icon_id": "24855826",
  24447. "name": "refresh",
  24448. "font_class": "refresh",
  24449. "unicode": "e657",
  24450. "unicode_decimal": 58967
  24451. }, {
  24452. "icon_id": "24855808",
  24453. "name": "cloud-upload",
  24454. "font_class": "cloud-upload",
  24455. "unicode": "e645",
  24456. "unicode_decimal": 58949
  24457. }, {
  24458. "icon_id": "24855809",
  24459. "name": "cloud-download-filled",
  24460. "font_class": "cloud-download-filled",
  24461. "unicode": "e646",
  24462. "unicode_decimal": 58950
  24463. }, {
  24464. "icon_id": "24855810",
  24465. "name": "cloud-download",
  24466. "font_class": "cloud-download",
  24467. "unicode": "e647",
  24468. "unicode_decimal": 58951
  24469. }, {
  24470. "icon_id": "24855811",
  24471. "name": "cloud-upload-filled",
  24472. "font_class": "cloud-upload-filled",
  24473. "unicode": "e648",
  24474. "unicode_decimal": 58952
  24475. }, {
  24476. "icon_id": "24855813",
  24477. "name": "redo",
  24478. "font_class": "redo",
  24479. "unicode": "e64a",
  24480. "unicode_decimal": 58954
  24481. }, {
  24482. "icon_id": "24855814",
  24483. "name": "images-filled",
  24484. "font_class": "images-filled",
  24485. "unicode": "e64b",
  24486. "unicode_decimal": 58955
  24487. }, {
  24488. "icon_id": "24855815",
  24489. "name": "undo-filled",
  24490. "font_class": "undo-filled",
  24491. "unicode": "e64c",
  24492. "unicode_decimal": 58956
  24493. }, {
  24494. "icon_id": "24855816",
  24495. "name": "more",
  24496. "font_class": "more",
  24497. "unicode": "e64d",
  24498. "unicode_decimal": 58957
  24499. }, {
  24500. "icon_id": "24855817",
  24501. "name": "more-filled",
  24502. "font_class": "more-filled",
  24503. "unicode": "e64e",
  24504. "unicode_decimal": 58958
  24505. }, {
  24506. "icon_id": "24855818",
  24507. "name": "undo",
  24508. "font_class": "undo",
  24509. "unicode": "e64f",
  24510. "unicode_decimal": 58959
  24511. }, {
  24512. "icon_id": "24855819",
  24513. "name": "images",
  24514. "font_class": "images",
  24515. "unicode": "e650",
  24516. "unicode_decimal": 58960
  24517. }, {
  24518. "icon_id": "24855821",
  24519. "name": "paperclip",
  24520. "font_class": "paperclip",
  24521. "unicode": "e652",
  24522. "unicode_decimal": 58962
  24523. }, {
  24524. "icon_id": "24855822",
  24525. "name": "settings",
  24526. "font_class": "settings",
  24527. "unicode": "e653",
  24528. "unicode_decimal": 58963
  24529. }, {
  24530. "icon_id": "24855823",
  24531. "name": "search",
  24532. "font_class": "search",
  24533. "unicode": "e654",
  24534. "unicode_decimal": 58964
  24535. }, {
  24536. "icon_id": "24855824",
  24537. "name": "redo-filled",
  24538. "font_class": "redo-filled",
  24539. "unicode": "e655",
  24540. "unicode_decimal": 58965
  24541. }, {
  24542. "icon_id": "24841702",
  24543. "name": "list",
  24544. "font_class": "list",
  24545. "unicode": "e644",
  24546. "unicode_decimal": 58948
  24547. }, {
  24548. "icon_id": "24841489",
  24549. "name": "mail-open-filled",
  24550. "font_class": "mail-open-filled",
  24551. "unicode": "e63a",
  24552. "unicode_decimal": 58938
  24553. }, {
  24554. "icon_id": "24841491",
  24555. "name": "hand-thumbsdown-filled",
  24556. "font_class": "hand-down-filled",
  24557. "unicode": "e63c",
  24558. "unicode_decimal": 58940
  24559. }, {
  24560. "icon_id": "24841492",
  24561. "name": "hand-thumbsdown",
  24562. "font_class": "hand-down",
  24563. "unicode": "e63d",
  24564. "unicode_decimal": 58941
  24565. }, {
  24566. "icon_id": "24841493",
  24567. "name": "hand-thumbsup-filled",
  24568. "font_class": "hand-up-filled",
  24569. "unicode": "e63e",
  24570. "unicode_decimal": 58942
  24571. }, {
  24572. "icon_id": "24841494",
  24573. "name": "hand-thumbsup",
  24574. "font_class": "hand-up",
  24575. "unicode": "e63f",
  24576. "unicode_decimal": 58943
  24577. }, {
  24578. "icon_id": "24841496",
  24579. "name": "heart-filled",
  24580. "font_class": "heart-filled",
  24581. "unicode": "e641",
  24582. "unicode_decimal": 58945
  24583. }, {
  24584. "icon_id": "24841498",
  24585. "name": "mail-open",
  24586. "font_class": "mail-open",
  24587. "unicode": "e643",
  24588. "unicode_decimal": 58947
  24589. }, {
  24590. "icon_id": "24841488",
  24591. "name": "heart",
  24592. "font_class": "heart",
  24593. "unicode": "e639",
  24594. "unicode_decimal": 58937
  24595. }, {
  24596. "icon_id": "24839963",
  24597. "name": "loop",
  24598. "font_class": "loop",
  24599. "unicode": "e633",
  24600. "unicode_decimal": 58931
  24601. }, {
  24602. "icon_id": "24839866",
  24603. "name": "pulldown",
  24604. "font_class": "pulldown",
  24605. "unicode": "e632",
  24606. "unicode_decimal": 58930
  24607. }, {
  24608. "icon_id": "24813798",
  24609. "name": "scan",
  24610. "font_class": "scan",
  24611. "unicode": "e62a",
  24612. "unicode_decimal": 58922
  24613. }, {
  24614. "icon_id": "24813786",
  24615. "name": "bars",
  24616. "font_class": "bars",
  24617. "unicode": "e627",
  24618. "unicode_decimal": 58919
  24619. }, {
  24620. "icon_id": "24813788",
  24621. "name": "cart-filled",
  24622. "font_class": "cart-filled",
  24623. "unicode": "e629",
  24624. "unicode_decimal": 58921
  24625. }, {
  24626. "icon_id": "24813790",
  24627. "name": "checkbox",
  24628. "font_class": "checkbox",
  24629. "unicode": "e62b",
  24630. "unicode_decimal": 58923
  24631. }, {
  24632. "icon_id": "24813791",
  24633. "name": "checkbox-filled",
  24634. "font_class": "checkbox-filled",
  24635. "unicode": "e62c",
  24636. "unicode_decimal": 58924
  24637. }, {
  24638. "icon_id": "24813794",
  24639. "name": "shop",
  24640. "font_class": "shop",
  24641. "unicode": "e62f",
  24642. "unicode_decimal": 58927
  24643. }, {
  24644. "icon_id": "24813795",
  24645. "name": "headphones",
  24646. "font_class": "headphones",
  24647. "unicode": "e630",
  24648. "unicode_decimal": 58928
  24649. }, {
  24650. "icon_id": "24813796",
  24651. "name": "cart",
  24652. "font_class": "cart",
  24653. "unicode": "e631",
  24654. "unicode_decimal": 58929
  24655. }]
  24656. };
  24657. exports.default = _default;
  24658. /***/ }),
  24659. /***/ 529:
  24660. /*!***************************************************************************!*\
  24661. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/empty/index.js ***!
  24662. \***************************************************************************/
  24663. /*! no static exports found */
  24664. /***/ (function(module, exports, __webpack_require__) {
  24665. "use strict";
  24666. var _component = __webpack_require__(/*! ../common/component */ 476);
  24667. (0, _component.VantComponent)({
  24668. props: {
  24669. description: String,
  24670. image: {
  24671. type: String,
  24672. value: 'default'
  24673. }
  24674. }
  24675. });
  24676. /***/ }),
  24677. /***/ 53:
  24678. /*!********************************************************************!*\
  24679. !*** D:/AAAcompany_product/产品化管理端/js_sdk/request/requestConfig.js ***!
  24680. \********************************************************************/
  24681. /*! no static exports found */
  24682. /***/ (function(module, exports, __webpack_require__) {
  24683. "use strict";
  24684. /* WEBPACK VAR INJECTION */(function(uni) {
  24685. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24686. Object.defineProperty(exports, "__esModule", {
  24687. value: true
  24688. });
  24689. exports.default = void 0;
  24690. var _request = _interopRequireDefault(__webpack_require__(/*! ./request */ 54));
  24691. var _config = _interopRequireDefault(__webpack_require__(/*! config */ 55));
  24692. // import store from "../../store/index.js";
  24693. uni.getStorage({
  24694. key: 'storage_key',
  24695. success: function success(res) {
  24696. console.log(res.data);
  24697. }
  24698. });
  24699. //可以new多个request来支持多个域名请求
  24700. var $http = new _request.default({
  24701. //接口请求地址
  24702. baseUrl: _config.default.baseUrl,
  24703. //服务器本地上传文件地址
  24704. fileUrl: _config.default.baseUrl,
  24705. //设置请求头
  24706. headers: {
  24707. 'Content-Type': 'application/x-www-form-urlencoded;',
  24708. 'ApiVersion': _config.default.version,
  24709. 'Device': _config.default.device,
  24710. 'Platform': _config.default.platform,
  24711. "Authorization": 'Bearer ' + uni.getStorageSync('laocui_user_token')
  24712. },
  24713. //以下是默认值可不写
  24714. //是否提示--默认提示
  24715. isPrompt: true,
  24716. //是否显示请求动画
  24717. load: true,
  24718. //是否使用处理数据模板
  24719. isFactory: true,
  24720. //列表接口是否有加载判断
  24721. loadMore: true
  24722. });
  24723. //当前接口请求数
  24724. var requestNum = 0;
  24725. //请求开始拦截器
  24726. $http.requestStart = function (options) {
  24727. for (var key in options.data) {
  24728. if (options.data[key] == null) {
  24729. delete options.data[key];
  24730. }
  24731. }
  24732. if (requestNum <= 0) {
  24733. uni.showNavigationBarLoading();
  24734. if (options.load) {
  24735. //打开加载动画
  24736. uni.showLoading({
  24737. title: '加载中',
  24738. mask: true
  24739. });
  24740. }
  24741. }
  24742. requestNum += 1;
  24743. //请求前加入token
  24744. options.headers['Authorization'] = 'Bearer ' + uni.getStorageSync('laocui_user_token');
  24745. // console.log("请求开始前", options);
  24746. return options;
  24747. };
  24748. //请求结束
  24749. $http.requestEnd = function (options, resolve) {
  24750. //判断当前接口是否需要加载动画
  24751. requestNum = requestNum - 1;
  24752. if (requestNum <= 0) {
  24753. uni.hideLoading();
  24754. uni.hideNavigationBarLoading();
  24755. }
  24756. if (resolve.errMsg && (resolve.errMsg != "request:ok" || resolve.statusCode && resolve.statusCode != 200)) {
  24757. uni.showToast({
  24758. title: "网络错误,请检查一下网络",
  24759. mask: true,
  24760. icon: "none"
  24761. });
  24762. }
  24763. };
  24764. //登录弹窗次数
  24765. var loginPopupNum = 0;
  24766. //所有接口数据处理(可在接口里设置不调用此方法)
  24767. $http.dataFactory = function (options, resolve) {
  24768. //设置回调默认值
  24769. var callback = {
  24770. //success数据是否请求成功状态
  24771. success: false,
  24772. //这里返回的数据就是调用请求方法收到的数据
  24773. result: ""
  24774. };
  24775. // 特殊接口处理 接口报请先登录 跳转登录
  24776. if (resolve.data.code === 101) {
  24777. uni.showModal({
  24778. title: '提示',
  24779. content: resolve.data.msg,
  24780. showCancel: false,
  24781. success: function success() {
  24782. uni.setStorageSync('token', null);
  24783. uni.navigateTo({
  24784. url: '/pages/login/login'
  24785. });
  24786. }
  24787. });
  24788. return false;
  24789. }
  24790. //判断数据是否请求成功
  24791. if (resolve.data.errmsg == "成功") {
  24792. callback.success = true;
  24793. callback.result = resolve.data;
  24794. } else if (resolve.data.errno == 303) {
  24795. uni.redirectTo({
  24796. url: '/pages/subPackages/pages/login/login'
  24797. });
  24798. this.$showToast('令牌过期,请重新登陆');
  24799. } else {
  24800. uni.showToast({
  24801. title: resolve.data.errmsg,
  24802. icon: "none",
  24803. mask: true,
  24804. duration: 2000
  24805. });
  24806. //设置可以提示的时候
  24807. // if (options.isPrompt) {
  24808. // setTimeout(function () {
  24809. //提示后台接口抛出的错误信息
  24810. // uni.showToast({
  24811. // title: resolve.data.msg,
  24812. // icon: "none",
  24813. // duration: 3000
  24814. // });
  24815. // }, 500);
  24816. // }
  24817. callback.result = resolve.data;
  24818. }
  24819. uni.stopPullDownRefresh();
  24820. return callback;
  24821. };
  24822. var _default = $http;
  24823. exports.default = _default;
  24824. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24825. /***/ }),
  24826. /***/ 54:
  24827. /*!**************************************************************!*\
  24828. !*** D:/AAAcompany_product/产品化管理端/js_sdk/request/request.js ***!
  24829. \**************************************************************/
  24830. /*! no static exports found */
  24831. /***/ (function(module, exports, __webpack_require__) {
  24832. "use strict";
  24833. /* WEBPACK VAR INJECTION */(function(uni) {
  24834. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24835. Object.defineProperty(exports, "__esModule", {
  24836. value: true
  24837. });
  24838. exports.default = void 0;
  24839. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  24840. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  24841. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  24842. var request = /*#__PURE__*/function () {
  24843. function request(options) {
  24844. (0, _classCallCheck2.default)(this, request);
  24845. //请求公共地址
  24846. this.baseUrl = options.baseUrl || "";
  24847. //公共文件上传请求地址
  24848. this.fileUrl = options.fileUrl || "";
  24849. //默认请求头
  24850. this.headers = options.headers || {};
  24851. //默认配置
  24852. this.config = {
  24853. isPrompt: options.isPrompt === false ? false : true,
  24854. load: options.load === false ? false : true,
  24855. isFactory: options.isFactory === false ? false : true,
  24856. loadMore: options.loadMore === false ? false : true
  24857. };
  24858. }
  24859. // 获取默认信息
  24860. (0, _createClass2.default)(request, [{
  24861. key: "getDefault",
  24862. value: function getDefault(url, options, type) {
  24863. //判断url是不是链接
  24864. var urlType = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~/])+$/.test(url);
  24865. var httpUrl;
  24866. if (type == "file") {
  24867. httpUrl = urlType ? url : this.fileUrl + url;
  24868. } else {
  24869. httpUrl = urlType ? url : this.baseUrl + url;
  24870. }
  24871. var config = Object.assign({}, this.config, options);
  24872. //请求地址
  24873. config.httpUrl = httpUrl;
  24874. //请求头
  24875. config.headers = Object.assign(this.headers, options.headers);
  24876. return config;
  24877. }
  24878. //post请求
  24879. }, {
  24880. key: "post",
  24881. value: function post() {
  24882. var _this2 = this;
  24883. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  24884. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  24885. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  24886. var requestInfo = this.getDefault(url, options, "data");
  24887. requestInfo.data = data;
  24888. return new Promise(function (resolve, reject) {
  24889. _this2.getRequest("POST", requestInfo, function (state, response) {
  24890. //是否用外部的数据处理方法
  24891. if (state && requestInfo.isFactory && _this2.dataFactory) {
  24892. //数据处理
  24893. var factoryInfo = _this2.dataFactory(requestInfo, response);
  24894. // console.log(factoryInfo)
  24895. return resolve(factoryInfo.result);
  24896. // factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  24897. } else {
  24898. // console.log(response, response)
  24899. state ? resolve(response) : reject(response);
  24900. }
  24901. });
  24902. });
  24903. }
  24904. //get请求
  24905. }, {
  24906. key: "get",
  24907. value: function get() {
  24908. var _this3 = this;
  24909. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  24910. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  24911. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  24912. var requestInfo = this.getDefault(url, options, "data");
  24913. requestInfo.data = data;
  24914. return new Promise(function (resolve, reject) {
  24915. _this3.getRequest("GET", requestInfo, function (state, response) {
  24916. //是否用外部的数据处理方法
  24917. if (state && requestInfo.isFactory && _this3.dataFactory) {
  24918. //数据处理
  24919. var factoryInfo = _this3.dataFactory(requestInfo, response);
  24920. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  24921. } else {
  24922. state ? resolve(response) : reject(response);
  24923. }
  24924. });
  24925. });
  24926. }
  24927. //put请求
  24928. }, {
  24929. key: "put",
  24930. value: function put() {
  24931. var _this4 = this;
  24932. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  24933. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  24934. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  24935. var requestInfo = this.getDefault(url, options, "data");
  24936. requestInfo.data = data;
  24937. return new Promise(function (resolve, reject) {
  24938. _this4.getRequest("PUT", requestInfo, function (state, response) {
  24939. //是否用外部的数据处理方法
  24940. if (state && requestInfo.isFactory && _this4.dataFactory) {
  24941. //数据处理
  24942. var factoryInfo = _this4.dataFactory(requestInfo, response);
  24943. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  24944. } else {
  24945. state ? resolve(response) : reject(response);
  24946. }
  24947. });
  24948. });
  24949. }
  24950. //delete请求
  24951. }, {
  24952. key: "delete",
  24953. value: function _delete() {
  24954. var _this5 = this;
  24955. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  24956. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  24957. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  24958. var requestInfo = this.getDefault(url, options, "data");
  24959. requestInfo.data = data;
  24960. return new Promise(function (resolve, reject) {
  24961. _this5.getRequest("DELETE", requestInfo, function (state, response) {
  24962. //是否用外部的数据处理方法
  24963. if (state && requestInfo.isFactory && _this5.dataFactory) {
  24964. //数据处理
  24965. var factoryInfo = _this5.dataFactory(requestInfo, response);
  24966. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  24967. } else {
  24968. state ? resolve(response) : reject(response);
  24969. }
  24970. });
  24971. });
  24972. }
  24973. //接口请求方法
  24974. }, {
  24975. key: "getRequest",
  24976. value: function getRequest(ajaxType, options, callback) {
  24977. var _this6 = this;
  24978. //请求前回调
  24979. if (this.requestStart) {
  24980. options.method = ajaxType;
  24981. var requestStart = this.requestStart(options);
  24982. if ((0, _typeof2.default)(requestStart) == "object") {
  24983. options.data = requestStart.data;
  24984. options.headers = requestStart.headers;
  24985. options.isPrompt = requestStart.isPrompt;
  24986. options.load = requestStart.load;
  24987. options.isFactory = requestStart.isFactory;
  24988. } else {
  24989. callback(false, "请求开始拦截器未通过");
  24990. return;
  24991. }
  24992. }
  24993. // console.log(options.data)
  24994. uni.request({
  24995. url: options.httpUrl,
  24996. data: options.data,
  24997. method: ajaxType,
  24998. //请求类型
  24999. header: options.headers,
  25000. //加入请求头
  25001. success: function success(res) {
  25002. // ;
  25003. //请求完成回调
  25004. _this6.requestEnd && _this6.requestEnd(options, res);
  25005. callback(true, res);
  25006. },
  25007. fail: function fail(err) {
  25008. // console.log(err);
  25009. //请求完成回调
  25010. _this6.requestEnd && _this6.requestEnd(options, err);
  25011. callback(false, err);
  25012. }
  25013. });
  25014. }
  25015. //jsonp请求(只限于H5使用)
  25016. }, {
  25017. key: "jsonp",
  25018. value: function jsonp() {
  25019. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25020. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25021. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25022. var requestInfo = this.getDefault(url, options, "data");
  25023. var dataStr = '';
  25024. Object.keys(data).forEach(function (key) {
  25025. dataStr += key + '=' + data[key] + '&';
  25026. });
  25027. //匹配最后一个&并去除
  25028. if (dataStr !== '') {
  25029. dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
  25030. }
  25031. requestInfo.httpUrl = requestInfo.httpUrl + '?' + dataStr;
  25032. var _this = this;
  25033. return new Promise(function (resolve, reject) {
  25034. var callbackName = "callback" + Math.ceil(Math.random() * 1000000);
  25035. if (_this.requestStart) {
  25036. requestInfo.data = data;
  25037. var requestStart = _this.requestStart(requestInfo);
  25038. if ((0, _typeof2.default)(requestStart) == "object") {
  25039. requestInfo.data = requestStart.data;
  25040. requestInfo.headers = requestStart.headers;
  25041. requestInfo.isPrompt = requestStart.isPrompt;
  25042. requestInfo.load = requestStart.load;
  25043. requestInfo.isFactory = requestStart.isFactory;
  25044. } else {
  25045. reject("请求开始拦截器未通过");
  25046. return;
  25047. }
  25048. }
  25049. window[callbackName] = function (data) {
  25050. resolve(data);
  25051. };
  25052. var script = document.createElement("script");
  25053. script.src = requestInfo.httpUrl + "&callback=" + callbackName;
  25054. document.head.appendChild(script);
  25055. // 及时删除,防止加载过多的JS
  25056. document.head.removeChild(script);
  25057. //请求完成回调
  25058. _this.requestEnd && _this.requestEnd(requestInfo, {});
  25059. });
  25060. }
  25061. //本地服务器图片上传
  25062. }, {
  25063. key: "urlImgUpload",
  25064. value: function urlImgUpload() {
  25065. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  25066. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25067. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  25068. var requestInfo = this.getDefault(url, options, "file");
  25069. requestInfo.data = data;
  25070. var _this = this;
  25071. return new Promise(function (resolve, reject) {
  25072. uni.chooseImage({
  25073. count: data.count || 9,
  25074. //默认9
  25075. sizeType: data.sizeType || ['original', 'compressed'],
  25076. //可以指定是原图还是压缩图,默认二者都有
  25077. sourceType: data.sourceType || ['album', 'camera'],
  25078. //从相册选择
  25079. success: function success(res) {
  25080. _this.urlFileUpload(requestInfo, res.tempFiles, function (state, response) {
  25081. state ? resolve(response) : reject(response);
  25082. });
  25083. }
  25084. });
  25085. });
  25086. }
  25087. //本地服务器文件上传方法
  25088. }, {
  25089. key: "urlFileUpload",
  25090. value: function urlFileUpload(options, files, callback) {
  25091. var _this = this;
  25092. //请求前回调
  25093. if (this.requestStart) {
  25094. options.method = "FILE";
  25095. var requestStart = this.requestStart(options);
  25096. if ((0, _typeof2.default)(requestStart) == "object") {
  25097. if ((0, _typeof2.default)(requestStart) == "object") {
  25098. options.data = requestStart.data;
  25099. options.headers = requestStart.headers;
  25100. options.isPrompt = requestStart.isPrompt;
  25101. options.load = requestStart.load;
  25102. options.isFactory = requestStart.isFactory;
  25103. } else {
  25104. callback(false, "请求开始拦截器未通过");
  25105. return;
  25106. }
  25107. }
  25108. }
  25109. var len = files.length - 1;
  25110. var fileList = new Array();
  25111. fileUpload(0);
  25112. function fileUpload(i) {
  25113. var config = {
  25114. url: options.httpUrl,
  25115. filePath: files[i].path,
  25116. header: options.headers,
  25117. //加入请求头
  25118. name: options.name || "file",
  25119. success: function success(response) {
  25120. response.data = JSON.parse(response.data);
  25121. //请求完成回调
  25122. _this.requestEnd && _this.requestEnd(options, response);
  25123. //是否用外部的数据处理方法
  25124. if (options.isFactory && _this.dataFactory) {
  25125. //数据处理
  25126. var factoryInfo = _this.dataFactory(options, response);
  25127. if (factoryInfo.success) {
  25128. fileList.push(factoryInfo.result);
  25129. if (len <= i) {
  25130. callback(true, fileList);
  25131. } else {
  25132. fileUpload(i + 1);
  25133. }
  25134. } else {
  25135. callback(false, factoryInfo.result);
  25136. }
  25137. } else {
  25138. fileList.push(response.data);
  25139. if (len <= i) {
  25140. callback(true, fileList);
  25141. } else {
  25142. fileUpload(i + 1);
  25143. }
  25144. }
  25145. },
  25146. fail: function fail(err) {
  25147. //请求完成回调
  25148. _this.requestEnd && _this.requestEnd(options, err);
  25149. callback(false, err);
  25150. }
  25151. };
  25152. if (options.data) {
  25153. config.formData = options.data;
  25154. }
  25155. uni.uploadFile(config);
  25156. }
  25157. }
  25158. }]);
  25159. return request;
  25160. }();
  25161. exports.default = request;
  25162. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25163. /***/ }),
  25164. /***/ 542:
  25165. /*!*******************************************************************************************!*\
  25166. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  25167. \*******************************************************************************************/
  25168. /*! no static exports found */
  25169. /***/ (function(module, exports, __webpack_require__) {
  25170. "use strict";
  25171. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25172. Object.defineProperty(exports, "__esModule", {
  25173. value: true
  25174. });
  25175. exports.default = void 0;
  25176. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  25177. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  25178. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  25179. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  25180. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  25181. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  25182. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  25183. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  25184. 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); }; }
  25185. 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; } }
  25186. var pattern = {
  25187. email: /^\S+?@\S+?\.\S+?$/,
  25188. 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]$/,
  25189. 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')
  25190. };
  25191. var FORMAT_MAPPING = {
  25192. "int": 'integer',
  25193. "bool": 'boolean',
  25194. "double": 'number',
  25195. "long": 'number',
  25196. "password": 'string'
  25197. // "fileurls": 'array'
  25198. };
  25199. function formatMessage(args) {
  25200. var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  25201. var defaultMessage = ['label'];
  25202. defaultMessage.forEach(function (item) {
  25203. if (args[item] === undefined) {
  25204. args[item] = '';
  25205. }
  25206. });
  25207. var str = resources;
  25208. for (var key in args) {
  25209. var reg = new RegExp('{' + key + '}');
  25210. str = str.replace(reg, args[key]);
  25211. }
  25212. return str;
  25213. }
  25214. function isEmptyValue(value, type) {
  25215. if (value === undefined || value === null) {
  25216. return true;
  25217. }
  25218. if (typeof value === 'string' && !value) {
  25219. return true;
  25220. }
  25221. if (Array.isArray(value) && !value.length) {
  25222. return true;
  25223. }
  25224. if (type === 'object' && !Object.keys(value).length) {
  25225. return true;
  25226. }
  25227. return false;
  25228. }
  25229. var types = {
  25230. integer: function integer(value) {
  25231. return types.number(value) && parseInt(value, 10) === value;
  25232. },
  25233. string: function string(value) {
  25234. return typeof value === 'string';
  25235. },
  25236. number: function number(value) {
  25237. if (isNaN(value)) {
  25238. return false;
  25239. }
  25240. return typeof value === 'number';
  25241. },
  25242. "boolean": function boolean(value) {
  25243. return typeof value === 'boolean';
  25244. },
  25245. "float": function float(value) {
  25246. return types.number(value) && !types.integer(value);
  25247. },
  25248. array: function array(value) {
  25249. return Array.isArray(value);
  25250. },
  25251. object: function object(value) {
  25252. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  25253. },
  25254. date: function date(value) {
  25255. return value instanceof Date;
  25256. },
  25257. timestamp: function timestamp(value) {
  25258. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  25259. return false;
  25260. }
  25261. return true;
  25262. },
  25263. file: function file(value) {
  25264. return typeof value.url === 'string';
  25265. },
  25266. email: function email(value) {
  25267. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  25268. },
  25269. url: function url(value) {
  25270. return typeof value === 'string' && !!value.match(pattern.url);
  25271. },
  25272. pattern: function pattern(reg, value) {
  25273. try {
  25274. return new RegExp(reg).test(value);
  25275. } catch (e) {
  25276. return false;
  25277. }
  25278. },
  25279. method: function method(value) {
  25280. return typeof value === 'function';
  25281. },
  25282. idcard: function idcard(value) {
  25283. return typeof value === 'string' && !!value.match(pattern.idcard);
  25284. },
  25285. 'url-https': function urlHttps(value) {
  25286. return this.url(value) && value.startsWith('https://');
  25287. },
  25288. 'url-scheme': function urlScheme(value) {
  25289. return value.startsWith('://');
  25290. },
  25291. 'url-web': function urlWeb(value) {
  25292. return false;
  25293. }
  25294. };
  25295. var RuleValidator = /*#__PURE__*/function () {
  25296. function RuleValidator(message) {
  25297. (0, _classCallCheck2.default)(this, RuleValidator);
  25298. this._message = message;
  25299. }
  25300. (0, _createClass2.default)(RuleValidator, [{
  25301. key: "validateRule",
  25302. value: function () {
  25303. var _validateRule = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fieldKey, fieldValue, value, data, allData) {
  25304. var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;
  25305. return _regenerator.default.wrap(function _callee$(_context) {
  25306. while (1) {
  25307. switch (_context.prev = _context.next) {
  25308. case 0:
  25309. result = null;
  25310. rules = fieldValue.rules;
  25311. hasRequired = rules.findIndex(function (item) {
  25312. return item.required;
  25313. });
  25314. if (!(hasRequired < 0)) {
  25315. _context.next = 8;
  25316. break;
  25317. }
  25318. if (!(value === null || value === undefined)) {
  25319. _context.next = 6;
  25320. break;
  25321. }
  25322. return _context.abrupt("return", result);
  25323. case 6:
  25324. if (!(typeof value === 'string' && !value.length)) {
  25325. _context.next = 8;
  25326. break;
  25327. }
  25328. return _context.abrupt("return", result);
  25329. case 8:
  25330. message = this._message;
  25331. if (!(rules === undefined)) {
  25332. _context.next = 11;
  25333. break;
  25334. }
  25335. return _context.abrupt("return", message['default']);
  25336. case 11:
  25337. i = 0;
  25338. case 12:
  25339. if (!(i < rules.length)) {
  25340. _context.next = 35;
  25341. break;
  25342. }
  25343. rule = rules[i];
  25344. vt = this._getValidateType(rule);
  25345. Object.assign(rule, {
  25346. label: fieldValue.label || "[\"".concat(fieldKey, "\"]")
  25347. });
  25348. if (!RuleValidatorHelper[vt]) {
  25349. _context.next = 20;
  25350. break;
  25351. }
  25352. result = RuleValidatorHelper[vt](rule, value, message);
  25353. if (!(result != null)) {
  25354. _context.next = 20;
  25355. break;
  25356. }
  25357. return _context.abrupt("break", 35);
  25358. case 20:
  25359. if (!rule.validateExpr) {
  25360. _context.next = 26;
  25361. break;
  25362. }
  25363. now = Date.now();
  25364. resultExpr = rule.validateExpr(value, allData, now);
  25365. if (!(resultExpr === false)) {
  25366. _context.next = 26;
  25367. break;
  25368. }
  25369. result = this._getMessage(rule, rule.errorMessage || this._message['default']);
  25370. return _context.abrupt("break", 35);
  25371. case 26:
  25372. if (!rule.validateFunction) {
  25373. _context.next = 32;
  25374. break;
  25375. }
  25376. _context.next = 29;
  25377. return this.validateFunction(rule, value, data, allData, vt);
  25378. case 29:
  25379. result = _context.sent;
  25380. if (!(result !== null)) {
  25381. _context.next = 32;
  25382. break;
  25383. }
  25384. return _context.abrupt("break", 35);
  25385. case 32:
  25386. i++;
  25387. _context.next = 12;
  25388. break;
  25389. case 35:
  25390. if (result !== null) {
  25391. result = message.TAG + result;
  25392. }
  25393. return _context.abrupt("return", result);
  25394. case 37:
  25395. case "end":
  25396. return _context.stop();
  25397. }
  25398. }
  25399. }, _callee, this);
  25400. }));
  25401. function validateRule(_x, _x2, _x3, _x4, _x5) {
  25402. return _validateRule.apply(this, arguments);
  25403. }
  25404. return validateRule;
  25405. }()
  25406. }, {
  25407. key: "validateFunction",
  25408. value: function () {
  25409. var _validateFunction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rule, value, data, allData, vt) {
  25410. var result, callbackMessage, res;
  25411. return _regenerator.default.wrap(function _callee2$(_context2) {
  25412. while (1) {
  25413. switch (_context2.prev = _context2.next) {
  25414. case 0:
  25415. result = null;
  25416. _context2.prev = 1;
  25417. callbackMessage = null;
  25418. _context2.next = 5;
  25419. return rule.validateFunction(rule, value, allData || data, function (message) {
  25420. callbackMessage = message;
  25421. });
  25422. case 5:
  25423. res = _context2.sent;
  25424. if (callbackMessage || typeof res === 'string' && res || res === false) {
  25425. result = this._getMessage(rule, callbackMessage || res, vt);
  25426. }
  25427. _context2.next = 12;
  25428. break;
  25429. case 9:
  25430. _context2.prev = 9;
  25431. _context2.t0 = _context2["catch"](1);
  25432. result = this._getMessage(rule, _context2.t0.message, vt);
  25433. case 12:
  25434. return _context2.abrupt("return", result);
  25435. case 13:
  25436. case "end":
  25437. return _context2.stop();
  25438. }
  25439. }
  25440. }, _callee2, this, [[1, 9]]);
  25441. }));
  25442. function validateFunction(_x6, _x7, _x8, _x9, _x10) {
  25443. return _validateFunction.apply(this, arguments);
  25444. }
  25445. return validateFunction;
  25446. }()
  25447. }, {
  25448. key: "_getMessage",
  25449. value: function _getMessage(rule, message, vt) {
  25450. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  25451. }
  25452. }, {
  25453. key: "_getValidateType",
  25454. value: function _getValidateType(rule) {
  25455. var result = '';
  25456. if (rule.required) {
  25457. result = 'required';
  25458. } else if (rule.format) {
  25459. result = 'format';
  25460. } else if (rule.arrayType) {
  25461. result = 'arrayTypeFormat';
  25462. } else if (rule.range) {
  25463. result = 'range';
  25464. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  25465. result = 'rangeNumber';
  25466. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  25467. result = 'rangeLength';
  25468. } else if (rule.pattern) {
  25469. result = 'pattern';
  25470. } else if (rule.validateFunction) {
  25471. result = 'validateFunction';
  25472. }
  25473. return result;
  25474. }
  25475. }]);
  25476. return RuleValidator;
  25477. }();
  25478. var RuleValidatorHelper = {
  25479. required: function required(rule, value, message) {
  25480. if (rule.required && isEmptyValue(value, rule.format || (0, _typeof2.default)(value))) {
  25481. return formatMessage(rule, rule.errorMessage || message.required);
  25482. }
  25483. return null;
  25484. },
  25485. range: function range(rule, value, message) {
  25486. var range = rule.range,
  25487. errorMessage = rule.errorMessage;
  25488. var list = new Array(range.length);
  25489. for (var i = 0; i < range.length; i++) {
  25490. var item = range[i];
  25491. if (types.object(item) && item.value !== undefined) {
  25492. list[i] = item.value;
  25493. } else {
  25494. list[i] = item;
  25495. }
  25496. }
  25497. var result = false;
  25498. if (Array.isArray(value)) {
  25499. result = new Set(value.concat(list)).size === list.length;
  25500. } else {
  25501. if (list.indexOf(value) > -1) {
  25502. result = true;
  25503. }
  25504. }
  25505. if (!result) {
  25506. return formatMessage(rule, errorMessage || message['enum']);
  25507. }
  25508. return null;
  25509. },
  25510. rangeNumber: function rangeNumber(rule, value, message) {
  25511. if (!types.number(value)) {
  25512. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  25513. }
  25514. var minimum = rule.minimum,
  25515. maximum = rule.maximum,
  25516. exclusiveMinimum = rule.exclusiveMinimum,
  25517. exclusiveMaximum = rule.exclusiveMaximum;
  25518. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  25519. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  25520. if (minimum !== undefined && min) {
  25521. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? 'exclusiveMinimum' : 'minimum']);
  25522. } else if (maximum !== undefined && max) {
  25523. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? 'exclusiveMaximum' : 'maximum']);
  25524. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  25525. return formatMessage(rule, rule.errorMessage || message['number'].range);
  25526. }
  25527. return null;
  25528. },
  25529. rangeLength: function rangeLength(rule, value, message) {
  25530. if (!types.string(value) && !types.array(value)) {
  25531. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  25532. }
  25533. var min = rule.minLength;
  25534. var max = rule.maxLength;
  25535. var val = value.length;
  25536. if (min !== undefined && val < min) {
  25537. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  25538. } else if (max !== undefined && val > max) {
  25539. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  25540. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  25541. return formatMessage(rule, rule.errorMessage || message['length'].range);
  25542. }
  25543. return null;
  25544. },
  25545. pattern: function pattern(rule, value, message) {
  25546. if (!types['pattern'](rule.pattern, value)) {
  25547. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  25548. }
  25549. return null;
  25550. },
  25551. format: function format(rule, value, message) {
  25552. var customTypes = Object.keys(types);
  25553. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  25554. if (customTypes.indexOf(format) > -1) {
  25555. if (!types[format](value)) {
  25556. return formatMessage(rule, rule.errorMessage || message.typeError);
  25557. }
  25558. }
  25559. return null;
  25560. },
  25561. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  25562. if (!Array.isArray(value)) {
  25563. return formatMessage(rule, rule.errorMessage || message.typeError);
  25564. }
  25565. for (var i = 0; i < value.length; i++) {
  25566. var element = value[i];
  25567. var formatResult = this.format(rule, element, message);
  25568. if (formatResult !== null) {
  25569. return formatResult;
  25570. }
  25571. }
  25572. return null;
  25573. }
  25574. };
  25575. var SchemaValidator = /*#__PURE__*/function (_RuleValidator) {
  25576. (0, _inherits2.default)(SchemaValidator, _RuleValidator);
  25577. var _super = _createSuper(SchemaValidator);
  25578. function SchemaValidator(schema, options) {
  25579. var _this;
  25580. (0, _classCallCheck2.default)(this, SchemaValidator);
  25581. _this = _super.call(this, SchemaValidator.message);
  25582. _this._schema = schema;
  25583. _this._options = options || null;
  25584. return _this;
  25585. }
  25586. (0, _createClass2.default)(SchemaValidator, [{
  25587. key: "updateSchema",
  25588. value: function updateSchema(schema) {
  25589. this._schema = schema;
  25590. }
  25591. }, {
  25592. key: "validate",
  25593. value: function () {
  25594. var _validate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data, allData) {
  25595. var result;
  25596. return _regenerator.default.wrap(function _callee3$(_context3) {
  25597. while (1) {
  25598. switch (_context3.prev = _context3.next) {
  25599. case 0:
  25600. result = this._checkFieldInSchema(data);
  25601. if (result) {
  25602. _context3.next = 5;
  25603. break;
  25604. }
  25605. _context3.next = 4;
  25606. return this.invokeValidate(data, false, allData);
  25607. case 4:
  25608. result = _context3.sent;
  25609. case 5:
  25610. return _context3.abrupt("return", result.length ? result[0] : null);
  25611. case 6:
  25612. case "end":
  25613. return _context3.stop();
  25614. }
  25615. }
  25616. }, _callee3, this);
  25617. }));
  25618. function validate(_x11, _x12) {
  25619. return _validate.apply(this, arguments);
  25620. }
  25621. return validate;
  25622. }()
  25623. }, {
  25624. key: "validateAll",
  25625. value: function () {
  25626. var _validateAll = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data, allData) {
  25627. var result;
  25628. return _regenerator.default.wrap(function _callee4$(_context4) {
  25629. while (1) {
  25630. switch (_context4.prev = _context4.next) {
  25631. case 0:
  25632. result = this._checkFieldInSchema(data);
  25633. if (result) {
  25634. _context4.next = 5;
  25635. break;
  25636. }
  25637. _context4.next = 4;
  25638. return this.invokeValidate(data, true, allData);
  25639. case 4:
  25640. result = _context4.sent;
  25641. case 5:
  25642. return _context4.abrupt("return", result);
  25643. case 6:
  25644. case "end":
  25645. return _context4.stop();
  25646. }
  25647. }
  25648. }, _callee4, this);
  25649. }));
  25650. function validateAll(_x13, _x14) {
  25651. return _validateAll.apply(this, arguments);
  25652. }
  25653. return validateAll;
  25654. }()
  25655. }, {
  25656. key: "validateUpdate",
  25657. value: function () {
  25658. var _validateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(data, allData) {
  25659. var result;
  25660. return _regenerator.default.wrap(function _callee5$(_context5) {
  25661. while (1) {
  25662. switch (_context5.prev = _context5.next) {
  25663. case 0:
  25664. result = this._checkFieldInSchema(data);
  25665. if (result) {
  25666. _context5.next = 5;
  25667. break;
  25668. }
  25669. _context5.next = 4;
  25670. return this.invokeValidateUpdate(data, false, allData);
  25671. case 4:
  25672. result = _context5.sent;
  25673. case 5:
  25674. return _context5.abrupt("return", result.length ? result[0] : null);
  25675. case 6:
  25676. case "end":
  25677. return _context5.stop();
  25678. }
  25679. }
  25680. }, _callee5, this);
  25681. }));
  25682. function validateUpdate(_x15, _x16) {
  25683. return _validateUpdate.apply(this, arguments);
  25684. }
  25685. return validateUpdate;
  25686. }()
  25687. }, {
  25688. key: "invokeValidate",
  25689. value: function () {
  25690. var _invokeValidate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(data, all, allData) {
  25691. var result, schema, key, value, errorMessage;
  25692. return _regenerator.default.wrap(function _callee6$(_context6) {
  25693. while (1) {
  25694. switch (_context6.prev = _context6.next) {
  25695. case 0:
  25696. result = [];
  25697. schema = this._schema;
  25698. _context6.t0 = _regenerator.default.keys(schema);
  25699. case 3:
  25700. if ((_context6.t1 = _context6.t0()).done) {
  25701. _context6.next = 15;
  25702. break;
  25703. }
  25704. key = _context6.t1.value;
  25705. value = schema[key];
  25706. _context6.next = 8;
  25707. return this.validateRule(key, value, data[key], data, allData);
  25708. case 8:
  25709. errorMessage = _context6.sent;
  25710. if (!(errorMessage != null)) {
  25711. _context6.next = 13;
  25712. break;
  25713. }
  25714. result.push({
  25715. key: key,
  25716. errorMessage: errorMessage
  25717. });
  25718. if (all) {
  25719. _context6.next = 13;
  25720. break;
  25721. }
  25722. return _context6.abrupt("break", 15);
  25723. case 13:
  25724. _context6.next = 3;
  25725. break;
  25726. case 15:
  25727. return _context6.abrupt("return", result);
  25728. case 16:
  25729. case "end":
  25730. return _context6.stop();
  25731. }
  25732. }
  25733. }, _callee6, this);
  25734. }));
  25735. function invokeValidate(_x17, _x18, _x19) {
  25736. return _invokeValidate.apply(this, arguments);
  25737. }
  25738. return invokeValidate;
  25739. }()
  25740. }, {
  25741. key: "invokeValidateUpdate",
  25742. value: function () {
  25743. var _invokeValidateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(data, all, allData) {
  25744. var result, key, errorMessage;
  25745. return _regenerator.default.wrap(function _callee7$(_context7) {
  25746. while (1) {
  25747. switch (_context7.prev = _context7.next) {
  25748. case 0:
  25749. result = [];
  25750. _context7.t0 = _regenerator.default.keys(data);
  25751. case 2:
  25752. if ((_context7.t1 = _context7.t0()).done) {
  25753. _context7.next = 13;
  25754. break;
  25755. }
  25756. key = _context7.t1.value;
  25757. _context7.next = 6;
  25758. return this.validateRule(key, this._schema[key], data[key], data, allData);
  25759. case 6:
  25760. errorMessage = _context7.sent;
  25761. if (!(errorMessage != null)) {
  25762. _context7.next = 11;
  25763. break;
  25764. }
  25765. result.push({
  25766. key: key,
  25767. errorMessage: errorMessage
  25768. });
  25769. if (all) {
  25770. _context7.next = 11;
  25771. break;
  25772. }
  25773. return _context7.abrupt("break", 13);
  25774. case 11:
  25775. _context7.next = 2;
  25776. break;
  25777. case 13:
  25778. return _context7.abrupt("return", result);
  25779. case 14:
  25780. case "end":
  25781. return _context7.stop();
  25782. }
  25783. }
  25784. }, _callee7, this);
  25785. }));
  25786. function invokeValidateUpdate(_x20, _x21, _x22) {
  25787. return _invokeValidateUpdate.apply(this, arguments);
  25788. }
  25789. return invokeValidateUpdate;
  25790. }()
  25791. }, {
  25792. key: "_checkFieldInSchema",
  25793. value: function _checkFieldInSchema(data) {
  25794. var keys = Object.keys(data);
  25795. var keys2 = Object.keys(this._schema);
  25796. if (new Set(keys.concat(keys2)).size === keys2.length) {
  25797. return '';
  25798. }
  25799. var noExistFields = keys.filter(function (key) {
  25800. return keys2.indexOf(key) < 0;
  25801. });
  25802. var errorMessage = formatMessage({
  25803. field: JSON.stringify(noExistFields)
  25804. }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  25805. return [{
  25806. key: 'invalid',
  25807. errorMessage: errorMessage
  25808. }];
  25809. }
  25810. }]);
  25811. return SchemaValidator;
  25812. }(RuleValidator);
  25813. function Message() {
  25814. return {
  25815. TAG: "",
  25816. default: '验证错误',
  25817. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  25818. validateFunction: '验证无效',
  25819. required: '{label}必填',
  25820. 'enum': '{label}超出范围',
  25821. timestamp: '{label}格式无效',
  25822. whitespace: '{label}不能为空',
  25823. typeError: '{label}类型无效',
  25824. date: {
  25825. format: '{label}日期{value}格式无效',
  25826. parse: '{label}日期无法解析,{value}无效',
  25827. invalid: '{label}日期{value}无效'
  25828. },
  25829. length: {
  25830. minLength: '{label}长度不能少于{minLength}',
  25831. maxLength: '{label}长度不能超过{maxLength}',
  25832. range: '{label}必须介于{minLength}和{maxLength}之间'
  25833. },
  25834. number: {
  25835. minimum: '{label}不能小于{minimum}',
  25836. maximum: '{label}不能大于{maximum}',
  25837. exclusiveMinimum: '{label}不能小于等于{minimum}',
  25838. exclusiveMaximum: '{label}不能大于等于{maximum}',
  25839. range: '{label}必须介于{minimum}and{maximum}之间'
  25840. },
  25841. pattern: {
  25842. mismatch: '{label}格式不匹配'
  25843. }
  25844. };
  25845. }
  25846. SchemaValidator.message = new Message();
  25847. var _default = SchemaValidator;
  25848. exports.default = _default;
  25849. /***/ }),
  25850. /***/ 543:
  25851. /*!****************************************************************************************!*\
  25852. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  25853. \****************************************************************************************/
  25854. /*! no static exports found */
  25855. /***/ (function(module, exports, __webpack_require__) {
  25856. "use strict";
  25857. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25858. Object.defineProperty(exports, "__esModule", {
  25859. value: true
  25860. });
  25861. 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;
  25862. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  25863. /**
  25864. * 简单处理对象拷贝
  25865. * @param {Obejct} 被拷贝对象
  25866. * @@return {Object} 拷贝对象
  25867. */
  25868. var deepCopy = function deepCopy(val) {
  25869. return JSON.parse(JSON.stringify(val));
  25870. };
  25871. /**
  25872. * 过滤数字类型
  25873. * @param {String} format 数字类型
  25874. * @@return {Boolean} 返回是否为数字类型
  25875. */
  25876. exports.deepCopy = deepCopy;
  25877. var typeFilter = function typeFilter(format) {
  25878. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  25879. };
  25880. /**
  25881. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  25882. * @param {String} key 字段名
  25883. * @param {any} value 字段值
  25884. * @param {Object} rules 表单校验规则
  25885. */
  25886. exports.typeFilter = typeFilter;
  25887. var getValue = function getValue(key, value, rules) {
  25888. var isRuleNumType = rules.find(function (val) {
  25889. return val.format && typeFilter(val.format);
  25890. });
  25891. var isRuleBoolType = rules.find(function (val) {
  25892. return val.format && val.format === 'boolean' || val.format === 'bool';
  25893. });
  25894. // 输入类型为 number
  25895. if (!!isRuleNumType) {
  25896. if (!value && value !== 0) {
  25897. value = null;
  25898. } else {
  25899. value = isNumber(Number(value)) ? Number(value) : value;
  25900. }
  25901. }
  25902. // 输入类型为 boolean
  25903. if (!!isRuleBoolType) {
  25904. value = isBoolean(value) ? value : false;
  25905. }
  25906. return value;
  25907. };
  25908. /**
  25909. * 获取表单数据
  25910. * @param {String|Array} name 真实名称,需要使用 realName 获取
  25911. * @param {Object} data 原始数据
  25912. * @param {any} value 需要设置的值
  25913. */
  25914. exports.getValue = getValue;
  25915. var setDataValue = function setDataValue(field, formdata, value) {
  25916. formdata[field] = value;
  25917. return value || '';
  25918. };
  25919. /**
  25920. * 获取表单数据
  25921. * @param {String|Array} field 真实名称,需要使用 realName 获取
  25922. * @param {Object} data 原始数据
  25923. */
  25924. exports.setDataValue = setDataValue;
  25925. var getDataValue = function getDataValue(field, data) {
  25926. return objGet(data, field);
  25927. };
  25928. /**
  25929. * 获取表单类型
  25930. * @param {String|Array} field 真实名称,需要使用 realName 获取
  25931. */
  25932. exports.getDataValue = getDataValue;
  25933. var getDataValueType = function getDataValueType(field, data) {
  25934. var value = getDataValue(field, data);
  25935. return {
  25936. type: type(value),
  25937. value: value
  25938. };
  25939. };
  25940. /**
  25941. * 获取表单可用的真实name
  25942. * @param {String|Array} name 表单name
  25943. * @@return {String} 表单可用的真实name
  25944. */
  25945. exports.getDataValueType = getDataValueType;
  25946. var realName = function realName(name) {
  25947. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25948. var base_name = _basePath(name);
  25949. if ((0, _typeof2.default)(base_name) === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  25950. var realname = base_name.reduce(function (a, b) {
  25951. return a += "#".concat(b);
  25952. }, '_formdata_');
  25953. return realname;
  25954. }
  25955. return base_name[0] || name;
  25956. };
  25957. /**
  25958. * 判断是否表单可用的真实name
  25959. * @param {String|Array} name 表单name
  25960. * @@return {String} 表单可用的真实name
  25961. */
  25962. exports.realName = realName;
  25963. var isRealName = function isRealName(name) {
  25964. var reg = /^_formdata_#*/;
  25965. return reg.test(name);
  25966. };
  25967. /**
  25968. * 获取表单数据的原始格式
  25969. * @@return {Object|Array} object 需要解析的数据
  25970. */
  25971. exports.isRealName = isRealName;
  25972. var rawData = function rawData() {
  25973. var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  25974. var name = arguments.length > 1 ? arguments[1] : undefined;
  25975. var newData = JSON.parse(JSON.stringify(object));
  25976. var formData = {};
  25977. for (var i in newData) {
  25978. var path = name2arr(i);
  25979. objSet(formData, path, newData[i]);
  25980. }
  25981. return formData;
  25982. };
  25983. /**
  25984. * 真实name还原为 array
  25985. * @param {*} name
  25986. */
  25987. exports.rawData = rawData;
  25988. var name2arr = function name2arr(name) {
  25989. var field = name.replace('_formdata_#', '');
  25990. field = field.split('#').map(function (v) {
  25991. return isNumber(v) ? Number(v) : v;
  25992. });
  25993. return field;
  25994. };
  25995. /**
  25996. * 对象中设置值
  25997. * @param {Object|Array} object 源数据
  25998. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  25999. * @param {String} value 需要设置的值
  26000. */
  26001. exports.name2arr = name2arr;
  26002. var objSet = function objSet(object, path, value) {
  26003. if ((0, _typeof2.default)(object) !== 'object') return object;
  26004. _basePath(path).reduce(function (o, k, i, _) {
  26005. if (i === _.length - 1) {
  26006. // 若遍历结束直接赋值
  26007. o[k] = value;
  26008. return null;
  26009. } else if (k in o) {
  26010. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  26011. return o[k];
  26012. } else {
  26013. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  26014. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  26015. return o[k];
  26016. }
  26017. }, object);
  26018. // 返回object
  26019. return object;
  26020. };
  26021. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  26022. exports.objSet = objSet;
  26023. function _basePath(path) {
  26024. // 若是数组,则直接返回
  26025. if (Array.isArray(path)) return path;
  26026. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  26027. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  26028. }
  26029. /**
  26030. * 从对象中获取值
  26031. * @param {Object|Array} object 源数据
  26032. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  26033. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  26034. */
  26035. var objGet = function objGet(object, path) {
  26036. var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  26037. // 先将path处理成统一格式
  26038. var newPath = _basePath(path);
  26039. // 递归处理,返回最后结果
  26040. var val = newPath.reduce(function (o, k) {
  26041. return (o || {})[k];
  26042. }, object);
  26043. return !val || val !== undefined ? val : defaultVal;
  26044. };
  26045. /**
  26046. * 是否为 number 类型
  26047. * @param {any} num 需要判断的值
  26048. * @return {Boolean} 是否为 number
  26049. */
  26050. exports.objGet = objGet;
  26051. var isNumber = function isNumber(num) {
  26052. return !isNaN(Number(num));
  26053. };
  26054. /**
  26055. * 是否为 boolean 类型
  26056. * @param {any} bool 需要判断的值
  26057. * @return {Boolean} 是否为 boolean
  26058. */
  26059. exports.isNumber = isNumber;
  26060. var isBoolean = function isBoolean(bool) {
  26061. return typeof bool === 'boolean';
  26062. };
  26063. /**
  26064. * 是否有必填字段
  26065. * @param {Object} rules 规则
  26066. * @return {Boolean} 是否有必填字段
  26067. */
  26068. exports.isBoolean = isBoolean;
  26069. var isRequiredField = function isRequiredField(rules) {
  26070. var isNoField = false;
  26071. for (var i = 0; i < rules.length; i++) {
  26072. var ruleData = rules[i];
  26073. if (ruleData.required) {
  26074. isNoField = true;
  26075. break;
  26076. }
  26077. }
  26078. return isNoField;
  26079. };
  26080. /**
  26081. * 获取数据类型
  26082. * @param {Any} obj 需要获取数据类型的值
  26083. */
  26084. exports.isRequiredField = isRequiredField;
  26085. var type = function type(obj) {
  26086. var class2type = {};
  26087. // 生成class2type映射
  26088. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  26089. class2type["[object " + item + "]"] = item.toLowerCase();
  26090. });
  26091. if (obj == null) {
  26092. return obj + "";
  26093. }
  26094. return (0, _typeof2.default)(obj) === "object" || typeof obj === "function" ? class2type[Object.prototype.toString.call(obj)] || "object" : (0, _typeof2.default)(obj);
  26095. };
  26096. /**
  26097. * 判断两个值是否相等
  26098. * @param {any} a 值
  26099. * @param {any} b 值
  26100. * @return {Boolean} 是否相等
  26101. */
  26102. exports.type = type;
  26103. var isEqual = function isEqual(a, b) {
  26104. //如果a和b本来就全等
  26105. if (a === b) {
  26106. //判断是否为0和-0
  26107. return a !== 0 || 1 / a === 1 / b;
  26108. }
  26109. //判断是否为null和undefined
  26110. if (a == null || b == null) {
  26111. return a === b;
  26112. }
  26113. //接下来判断a和b的数据类型
  26114. var classNameA = toString.call(a),
  26115. classNameB = toString.call(b);
  26116. //如果数据类型不相等,则返回false
  26117. if (classNameA !== classNameB) {
  26118. return false;
  26119. }
  26120. //如果数据类型相等,再根据不同数据类型分别判断
  26121. switch (classNameA) {
  26122. case '[object RegExp]':
  26123. case '[object String]':
  26124. //进行字符串转换比较
  26125. return '' + a === '' + b;
  26126. case '[object Number]':
  26127. //进行数字转换比较,判断是否为NaN
  26128. if (+a !== +a) {
  26129. return +b !== +b;
  26130. }
  26131. //判断是否为0或-0
  26132. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  26133. case '[object Date]':
  26134. case '[object Boolean]':
  26135. return +a === +b;
  26136. }
  26137. //如果是对象类型
  26138. if (classNameA == '[object Object]') {
  26139. //获取a和b的属性长度
  26140. var propsA = Object.getOwnPropertyNames(a),
  26141. propsB = Object.getOwnPropertyNames(b);
  26142. if (propsA.length != propsB.length) {
  26143. return false;
  26144. }
  26145. for (var i = 0; i < propsA.length; i++) {
  26146. var propName = propsA[i];
  26147. //如果对应属性对应值不相等,则返回false
  26148. if (a[propName] !== b[propName]) {
  26149. return false;
  26150. }
  26151. }
  26152. return true;
  26153. }
  26154. //如果是数组类型
  26155. if (classNameA == '[object Array]') {
  26156. if (a.toString() == b.toString()) {
  26157. return true;
  26158. }
  26159. return false;
  26160. }
  26161. };
  26162. exports.isEqual = isEqual;
  26163. /***/ }),
  26164. /***/ 55:
  26165. /*!**********************************************!*\
  26166. !*** D:/AAAcompany_product/产品化管理端/config.js ***!
  26167. \**********************************************/
  26168. /*! no static exports found */
  26169. /***/ (function(module, exports, __webpack_require__) {
  26170. "use strict";
  26171. /* WEBPACK VAR INJECTION */(function(uni) {
  26172. Object.defineProperty(exports, "__esModule", {
  26173. value: true
  26174. });
  26175. exports.default = void 0;
  26176. var _constant = __webpack_require__(/*! ./pages/utils/constant.js */ 50);
  26177. // console.log(BASE_URI)
  26178. var baseUrl = _constant.BASE_URI;
  26179. var device, platform;
  26180. device = uni.getSystemInfoSync().brand + ' ' + uni.getSystemInfoSync().model;
  26181. platform = 'wxmini';
  26182. // app版本
  26183. var version = "1.0";
  26184. // 高德地图 key
  26185. var key = "53ea64b17287b1f7323e9f29870af813";
  26186. var _default = {
  26187. device: device,
  26188. version: version,
  26189. platform: platform,
  26190. key: key,
  26191. baseUrl: baseUrl
  26192. };
  26193. exports.default = _default;
  26194. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26195. /***/ }),
  26196. /***/ 567:
  26197. /*!******************************************************************************!*\
  26198. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/uploader/index.js ***!
  26199. \******************************************************************************/
  26200. /*! no static exports found */
  26201. /***/ (function(module, exports, __webpack_require__) {
  26202. "use strict";
  26203. /* WEBPACK VAR INJECTION */(function(wx) {
  26204. var _component = __webpack_require__(/*! ../common/component */ 476);
  26205. var _utils = __webpack_require__(/*! ./utils */ 568);
  26206. var _shared = __webpack_require__(/*! ./shared */ 569);
  26207. var _validator = __webpack_require__(/*! ../common/validator */ 480);
  26208. (0, _component.VantComponent)({
  26209. props: Object.assign(Object.assign(Object.assign(Object.assign({
  26210. disabled: Boolean,
  26211. multiple: Boolean,
  26212. uploadText: String,
  26213. useBeforeRead: Boolean,
  26214. afterRead: null,
  26215. beforeRead: null,
  26216. previewSize: {
  26217. type: null,
  26218. value: 80
  26219. },
  26220. name: {
  26221. type: null,
  26222. value: ''
  26223. },
  26224. accept: {
  26225. type: String,
  26226. value: 'image'
  26227. },
  26228. fileList: {
  26229. type: Array,
  26230. value: [],
  26231. observer: 'formatFileList'
  26232. },
  26233. maxSize: {
  26234. type: Number,
  26235. value: Number.MAX_VALUE
  26236. },
  26237. maxCount: {
  26238. type: Number,
  26239. value: 100
  26240. },
  26241. deletable: {
  26242. type: Boolean,
  26243. value: true
  26244. },
  26245. showUpload: {
  26246. type: Boolean,
  26247. value: true
  26248. },
  26249. previewImage: {
  26250. type: Boolean,
  26251. value: true
  26252. },
  26253. previewFullImage: {
  26254. type: Boolean,
  26255. value: true
  26256. },
  26257. imageFit: {
  26258. type: String,
  26259. value: 'scaleToFill'
  26260. },
  26261. uploadIcon: {
  26262. type: String,
  26263. value: 'photograph'
  26264. }
  26265. }, _shared.imageProps), _shared.videoProps), _shared.mediaProps), _shared.messageFileProps),
  26266. data: {
  26267. lists: [],
  26268. isInCount: true
  26269. },
  26270. methods: {
  26271. formatFileList: function formatFileList() {
  26272. var _this$data = this.data,
  26273. _this$data$fileList = _this$data.fileList,
  26274. fileList = _this$data$fileList === void 0 ? [] : _this$data$fileList,
  26275. maxCount = _this$data.maxCount;
  26276. var lists = fileList.map(function (item) {
  26277. return Object.assign(Object.assign({}, item), {
  26278. isImage: (0, _utils.isImageFile)(item),
  26279. isVideo: (0, _utils.isVideoFile)(item),
  26280. deletable: (0, _validator.isBoolean)(item.deletable) ? item.deletable : true
  26281. });
  26282. });
  26283. this.setData({
  26284. lists: lists,
  26285. isInCount: lists.length < maxCount
  26286. });
  26287. },
  26288. getDetail: function getDetail(index) {
  26289. return {
  26290. name: this.data.name,
  26291. index: index == null ? this.data.fileList.length : index
  26292. };
  26293. },
  26294. startUpload: function startUpload() {
  26295. var _this = this;
  26296. var _this$data2 = this.data,
  26297. maxCount = _this$data2.maxCount,
  26298. multiple = _this$data2.multiple,
  26299. lists = _this$data2.lists,
  26300. disabled = _this$data2.disabled;
  26301. if (disabled) return;
  26302. (0, _utils.chooseFile)(Object.assign(Object.assign({}, this.data), {
  26303. maxCount: maxCount - lists.length
  26304. })).then(function (res) {
  26305. _this.onBeforeRead(multiple ? res : res[0]);
  26306. }).catch(function (error) {
  26307. _this.$emit('error', error);
  26308. });
  26309. },
  26310. onBeforeRead: function onBeforeRead(file) {
  26311. var _this2 = this;
  26312. var _this$data3 = this.data,
  26313. beforeRead = _this$data3.beforeRead,
  26314. useBeforeRead = _this$data3.useBeforeRead;
  26315. var res = true;
  26316. if (typeof beforeRead === 'function') {
  26317. res = beforeRead(file, this.getDetail());
  26318. }
  26319. if (useBeforeRead) {
  26320. res = new Promise(function (resolve, reject) {
  26321. _this2.$emit('before-read', Object.assign(Object.assign({
  26322. file: file
  26323. }, _this2.getDetail()), {
  26324. callback: function callback(ok) {
  26325. ok ? resolve() : reject();
  26326. }
  26327. }));
  26328. });
  26329. }
  26330. if (!res) {
  26331. return;
  26332. }
  26333. if ((0, _validator.isPromise)(res)) {
  26334. res.then(function (data) {
  26335. return _this2.onAfterRead(data || file);
  26336. });
  26337. } else {
  26338. this.onAfterRead(file);
  26339. }
  26340. },
  26341. onAfterRead: function onAfterRead(file) {
  26342. var _this$data4 = this.data,
  26343. maxSize = _this$data4.maxSize,
  26344. afterRead = _this$data4.afterRead;
  26345. var oversize = Array.isArray(file) ? file.some(function (item) {
  26346. return item.size > maxSize;
  26347. }) : file.size > maxSize;
  26348. if (oversize) {
  26349. this.$emit('oversize', Object.assign({
  26350. file: file
  26351. }, this.getDetail()));
  26352. return;
  26353. }
  26354. if (typeof afterRead === 'function') {
  26355. afterRead(file, this.getDetail());
  26356. }
  26357. this.$emit('after-read', Object.assign({
  26358. file: file
  26359. }, this.getDetail()));
  26360. },
  26361. deleteItem: function deleteItem(event) {
  26362. var index = event.currentTarget.dataset.index;
  26363. this.$emit('delete', Object.assign(Object.assign({}, this.getDetail(index)), {
  26364. file: this.data.fileList[index]
  26365. }));
  26366. },
  26367. onPreviewImage: function onPreviewImage(event) {
  26368. if (!this.data.previewFullImage) return;
  26369. var index = event.currentTarget.dataset.index;
  26370. var _this$data5 = this.data,
  26371. lists = _this$data5.lists,
  26372. showmenu = _this$data5.showmenu;
  26373. var item = lists[index];
  26374. wx.previewImage({
  26375. urls: lists.filter(function (item) {
  26376. return (0, _utils.isImageFile)(item);
  26377. }).map(function (item) {
  26378. return item.url;
  26379. }),
  26380. current: item.url,
  26381. showmenu: showmenu,
  26382. fail: function fail() {
  26383. wx.showToast({
  26384. title: '预览图片失败',
  26385. icon: 'none'
  26386. });
  26387. }
  26388. });
  26389. },
  26390. onPreviewVideo: function onPreviewVideo(event) {
  26391. if (!this.data.previewFullImage) return;
  26392. var index = event.currentTarget.dataset.index;
  26393. var lists = this.data.lists;
  26394. var sources = [];
  26395. var current = lists.reduce(function (sum, cur, curIndex) {
  26396. if (!(0, _utils.isVideoFile)(cur)) {
  26397. return sum;
  26398. }
  26399. sources.push(Object.assign(Object.assign({}, cur), {
  26400. type: 'video'
  26401. }));
  26402. if (curIndex < index) {
  26403. sum++;
  26404. }
  26405. return sum;
  26406. }, 0);
  26407. wx.previewMedia({
  26408. sources: sources,
  26409. current: current,
  26410. fail: function fail() {
  26411. wx.showToast({
  26412. title: '预览视频失败',
  26413. icon: 'none'
  26414. });
  26415. }
  26416. });
  26417. },
  26418. onPreviewFile: function onPreviewFile(event) {
  26419. var index = event.currentTarget.dataset.index;
  26420. wx.openDocument({
  26421. filePath: this.data.lists[index].url,
  26422. showMenu: true
  26423. });
  26424. },
  26425. onClickPreview: function onClickPreview(event) {
  26426. var index = event.currentTarget.dataset.index;
  26427. var item = this.data.lists[index];
  26428. this.$emit('click-preview', Object.assign(Object.assign({}, item), this.getDetail(index)));
  26429. }
  26430. }
  26431. });
  26432. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  26433. /***/ }),
  26434. /***/ 568:
  26435. /*!******************************************************************************!*\
  26436. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/uploader/utils.js ***!
  26437. \******************************************************************************/
  26438. /*! no static exports found */
  26439. /***/ (function(module, exports, __webpack_require__) {
  26440. "use strict";
  26441. /* WEBPACK VAR INJECTION */(function(wx) {
  26442. Object.defineProperty(exports, "__esModule", {
  26443. value: true
  26444. });
  26445. exports.chooseFile = chooseFile;
  26446. exports.isImageFile = isImageFile;
  26447. exports.isVideoFile = isVideoFile;
  26448. var _utils = __webpack_require__(/*! ../common/utils */ 479);
  26449. var _validator = __webpack_require__(/*! ../common/validator */ 480);
  26450. function isImageFile(item) {
  26451. if (item.isImage != null) {
  26452. return item.isImage;
  26453. }
  26454. if (item.type) {
  26455. return item.type === 'image';
  26456. }
  26457. if (item.url) {
  26458. return (0, _validator.isImageUrl)(item.url);
  26459. }
  26460. return false;
  26461. }
  26462. function isVideoFile(item) {
  26463. if (item.isVideo != null) {
  26464. return item.isVideo;
  26465. }
  26466. if (item.type) {
  26467. return item.type === 'video';
  26468. }
  26469. if (item.url) {
  26470. return (0, _validator.isVideoUrl)(item.url);
  26471. }
  26472. return false;
  26473. }
  26474. function formatImage(res) {
  26475. return res.tempFiles.map(function (item) {
  26476. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  26477. type: 'image',
  26478. url: item.tempFilePath,
  26479. thumb: item.tempFilePath
  26480. });
  26481. });
  26482. }
  26483. function formatVideo(res) {
  26484. return [Object.assign(Object.assign({}, (0, _utils.pickExclude)(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {
  26485. type: 'video',
  26486. url: res.tempFilePath,
  26487. thumb: res.thumbTempFilePath
  26488. })];
  26489. }
  26490. function formatMedia(res) {
  26491. return res.tempFiles.map(function (item) {
  26492. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {
  26493. type: res.type,
  26494. url: item.tempFilePath,
  26495. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath
  26496. });
  26497. });
  26498. }
  26499. function formatFile(res) {
  26500. return res.tempFiles.map(function (item) {
  26501. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  26502. url: item.path
  26503. });
  26504. });
  26505. }
  26506. function chooseFile(_ref) {
  26507. var accept = _ref.accept,
  26508. multiple = _ref.multiple,
  26509. capture = _ref.capture,
  26510. compressed = _ref.compressed,
  26511. maxDuration = _ref.maxDuration,
  26512. sizeType = _ref.sizeType,
  26513. camera = _ref.camera,
  26514. maxCount = _ref.maxCount,
  26515. mediaType = _ref.mediaType,
  26516. extension = _ref.extension;
  26517. return new Promise(function (resolve, reject) {
  26518. switch (accept) {
  26519. case 'image':
  26520. wx.chooseMedia({
  26521. count: multiple ? Math.min(maxCount, 9) : 1,
  26522. mediaType: ['image'],
  26523. sourceType: capture,
  26524. maxDuration: maxDuration,
  26525. sizeType: sizeType,
  26526. camera: camera,
  26527. success: function success(res) {
  26528. return resolve(formatImage(res));
  26529. },
  26530. fail: reject
  26531. });
  26532. break;
  26533. case 'media':
  26534. wx.chooseMedia({
  26535. count: multiple ? Math.min(maxCount, 9) : 1,
  26536. mediaType: mediaType,
  26537. sourceType: capture,
  26538. maxDuration: maxDuration,
  26539. sizeType: sizeType,
  26540. camera: camera,
  26541. success: function success(res) {
  26542. return resolve(formatMedia(res));
  26543. },
  26544. fail: reject
  26545. });
  26546. break;
  26547. case 'video':
  26548. wx.chooseVideo({
  26549. sourceType: capture,
  26550. compressed: compressed,
  26551. maxDuration: maxDuration,
  26552. camera: camera,
  26553. success: function success(res) {
  26554. return resolve(formatVideo(res));
  26555. },
  26556. fail: reject
  26557. });
  26558. break;
  26559. default:
  26560. wx.chooseMessageFile(Object.assign(Object.assign({
  26561. count: multiple ? maxCount : 1,
  26562. type: accept
  26563. }, extension ? {
  26564. extension: extension
  26565. } : {}), {
  26566. success: function success(res) {
  26567. return resolve(formatFile(res));
  26568. },
  26569. fail: reject
  26570. }));
  26571. break;
  26572. }
  26573. });
  26574. }
  26575. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  26576. /***/ }),
  26577. /***/ 569:
  26578. /*!*******************************************************************************!*\
  26579. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/uploader/shared.js ***!
  26580. \*******************************************************************************/
  26581. /*! no static exports found */
  26582. /***/ (function(module, exports, __webpack_require__) {
  26583. "use strict";
  26584. Object.defineProperty(exports, "__esModule", {
  26585. value: true
  26586. });
  26587. exports.videoProps = exports.messageFileProps = exports.mediaProps = exports.imageProps = void 0;
  26588. // props for image
  26589. var imageProps = {
  26590. sizeType: {
  26591. type: Array,
  26592. value: ['original', 'compressed']
  26593. },
  26594. capture: {
  26595. type: Array,
  26596. value: ['album', 'camera']
  26597. },
  26598. showmenu: {
  26599. type: Boolean,
  26600. value: true
  26601. }
  26602. };
  26603. // props for video
  26604. exports.imageProps = imageProps;
  26605. var videoProps = {
  26606. capture: {
  26607. type: Array,
  26608. value: ['album', 'camera']
  26609. },
  26610. compressed: {
  26611. type: Boolean,
  26612. value: true
  26613. },
  26614. maxDuration: {
  26615. type: Number,
  26616. value: 60
  26617. },
  26618. camera: {
  26619. type: String,
  26620. value: 'back'
  26621. }
  26622. };
  26623. // props for media
  26624. exports.videoProps = videoProps;
  26625. var mediaProps = {
  26626. capture: {
  26627. type: Array,
  26628. value: ['album', 'camera']
  26629. },
  26630. mediaType: {
  26631. type: Array,
  26632. value: ['image', 'video']
  26633. },
  26634. maxDuration: {
  26635. type: Number,
  26636. value: 60
  26637. },
  26638. camera: {
  26639. type: String,
  26640. value: 'back'
  26641. }
  26642. };
  26643. // props for file
  26644. exports.mediaProps = mediaProps;
  26645. var messageFileProps = {
  26646. extension: null
  26647. };
  26648. exports.messageFileProps = messageFileProps;
  26649. /***/ }),
  26650. /***/ 575:
  26651. /*!*************************************************************************!*\
  26652. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/tab/index.js ***!
  26653. \*************************************************************************/
  26654. /*! no static exports found */
  26655. /***/ (function(module, exports, __webpack_require__) {
  26656. "use strict";
  26657. var _relation = __webpack_require__(/*! ../common/relation */ 484);
  26658. var _component = __webpack_require__(/*! ../common/component */ 476);
  26659. (0, _component.VantComponent)({
  26660. relation: (0, _relation.useParent)('tabs'),
  26661. props: {
  26662. dot: {
  26663. type: Boolean,
  26664. observer: 'update'
  26665. },
  26666. info: {
  26667. type: null,
  26668. observer: 'update'
  26669. },
  26670. title: {
  26671. type: String,
  26672. observer: 'update'
  26673. },
  26674. disabled: {
  26675. type: Boolean,
  26676. observer: 'update'
  26677. },
  26678. titleStyle: {
  26679. type: String,
  26680. observer: 'update'
  26681. },
  26682. name: {
  26683. type: null,
  26684. value: ''
  26685. }
  26686. },
  26687. data: {
  26688. active: false
  26689. },
  26690. methods: {
  26691. getComputedName: function getComputedName() {
  26692. if (this.data.name !== '') {
  26693. return this.data.name;
  26694. }
  26695. return this.index;
  26696. },
  26697. updateRender: function updateRender(active, parent) {
  26698. var parentData = parent.data;
  26699. this.inited = this.inited || active;
  26700. this.setData({
  26701. active: active,
  26702. shouldRender: this.inited || !parentData.lazyRender,
  26703. shouldShow: active || parentData.animated
  26704. });
  26705. },
  26706. update: function update() {
  26707. if (this.parent) {
  26708. this.parent.updateTabs();
  26709. }
  26710. }
  26711. }
  26712. });
  26713. /***/ }),
  26714. /***/ 576:
  26715. /*!**************************************************************************!*\
  26716. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/tabs/index.js ***!
  26717. \**************************************************************************/
  26718. /*! no static exports found */
  26719. /***/ (function(module, exports, __webpack_require__) {
  26720. "use strict";
  26721. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26722. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  26723. var _component = __webpack_require__(/*! ../common/component */ 476);
  26724. var _touch = __webpack_require__(/*! ../mixins/touch */ 577);
  26725. var _utils = __webpack_require__(/*! ../common/utils */ 479);
  26726. var _validator = __webpack_require__(/*! ../common/validator */ 480);
  26727. var _relation = __webpack_require__(/*! ../common/relation */ 484);
  26728. (0, _component.VantComponent)({
  26729. mixins: [_touch.touch],
  26730. classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class', 'wrap-class'],
  26731. relation: (0, _relation.useChildren)('tab', function () {
  26732. this.updateTabs();
  26733. }),
  26734. props: {
  26735. sticky: Boolean,
  26736. border: Boolean,
  26737. swipeable: Boolean,
  26738. titleActiveColor: String,
  26739. titleInactiveColor: String,
  26740. color: String,
  26741. animated: {
  26742. type: Boolean,
  26743. observer: function observer() {
  26744. var _this = this;
  26745. this.children.forEach(function (child, index) {
  26746. return child.updateRender(index === _this.data.currentIndex, _this);
  26747. });
  26748. }
  26749. },
  26750. lineWidth: {
  26751. type: null,
  26752. value: 40,
  26753. observer: 'resize'
  26754. },
  26755. lineHeight: {
  26756. type: null,
  26757. value: -1
  26758. },
  26759. active: {
  26760. type: null,
  26761. value: 0,
  26762. observer: function observer(name) {
  26763. if (name !== this.getCurrentName()) {
  26764. this.setCurrentIndexByName(name);
  26765. }
  26766. }
  26767. },
  26768. type: {
  26769. type: String,
  26770. value: 'line'
  26771. },
  26772. ellipsis: {
  26773. type: Boolean,
  26774. value: true
  26775. },
  26776. duration: {
  26777. type: Number,
  26778. value: 0.3
  26779. },
  26780. zIndex: {
  26781. type: Number,
  26782. value: 1
  26783. },
  26784. swipeThreshold: {
  26785. type: Number,
  26786. value: 5,
  26787. observer: function observer(value) {
  26788. this.setData({
  26789. scrollable: this.children.length > value || !this.data.ellipsis
  26790. });
  26791. }
  26792. },
  26793. offsetTop: {
  26794. type: Number,
  26795. value: 0
  26796. },
  26797. lazyRender: {
  26798. type: Boolean,
  26799. value: true
  26800. },
  26801. useBeforeChange: {
  26802. type: Boolean,
  26803. value: false
  26804. }
  26805. },
  26806. data: {
  26807. tabs: [],
  26808. scrollLeft: 0,
  26809. scrollable: false,
  26810. currentIndex: 0,
  26811. container: null,
  26812. skipTransition: true,
  26813. scrollWithAnimation: false,
  26814. lineOffsetLeft: 0,
  26815. inited: false
  26816. },
  26817. mounted: function mounted() {
  26818. var _this2 = this;
  26819. (0, _utils.requestAnimationFrame)(function () {
  26820. _this2.swiping = true;
  26821. _this2.setData({
  26822. container: function container() {
  26823. return _this2.createSelectorQuery().select('.van-tabs');
  26824. }
  26825. });
  26826. _this2.resize();
  26827. _this2.scrollIntoView();
  26828. });
  26829. },
  26830. methods: {
  26831. updateTabs: function updateTabs() {
  26832. var _this$children = this.children,
  26833. children = _this$children === void 0 ? [] : _this$children,
  26834. data = this.data;
  26835. this.setData({
  26836. tabs: children.map(function (child) {
  26837. return child.data;
  26838. }),
  26839. scrollable: this.children.length > data.swipeThreshold || !data.ellipsis
  26840. });
  26841. this.setCurrentIndexByName(data.active || this.getCurrentName());
  26842. },
  26843. trigger: function trigger(eventName, child) {
  26844. var currentIndex = this.data.currentIndex;
  26845. var data = this.getChildData(currentIndex, child);
  26846. if (!(0, _validator.isDef)(data)) {
  26847. return;
  26848. }
  26849. this.$emit(eventName, data);
  26850. },
  26851. onTap: function onTap(event) {
  26852. var _this3 = this;
  26853. var index = event.currentTarget.dataset.index;
  26854. var child = this.children[index];
  26855. if (child.data.disabled) {
  26856. this.trigger('disabled', child);
  26857. return;
  26858. }
  26859. this.onBeforeChange(index).then(function () {
  26860. _this3.setCurrentIndex(index);
  26861. (0, _utils.nextTick)(function () {
  26862. _this3.trigger('click');
  26863. });
  26864. });
  26865. },
  26866. // correct the index of active tab
  26867. setCurrentIndexByName: function setCurrentIndexByName(name) {
  26868. var _this$children2 = this.children,
  26869. children = _this$children2 === void 0 ? [] : _this$children2;
  26870. var matched = children.filter(function (child) {
  26871. return child.getComputedName() === name;
  26872. });
  26873. if (matched.length) {
  26874. this.setCurrentIndex(matched[0].index);
  26875. }
  26876. },
  26877. setCurrentIndex: function setCurrentIndex(currentIndex) {
  26878. var _this4 = this;
  26879. var data = this.data,
  26880. _this$children3 = this.children,
  26881. children = _this$children3 === void 0 ? [] : _this$children3;
  26882. if (!(0, _validator.isDef)(currentIndex) || currentIndex >= children.length || currentIndex < 0) {
  26883. return;
  26884. }
  26885. (0, _utils.groupSetData)(this, function () {
  26886. children.forEach(function (item, index) {
  26887. var active = index === currentIndex;
  26888. if (active !== item.data.active || !item.inited) {
  26889. item.updateRender(active, _this4);
  26890. }
  26891. });
  26892. });
  26893. if (currentIndex === data.currentIndex) {
  26894. return;
  26895. }
  26896. var shouldEmitChange = data.currentIndex !== null;
  26897. this.setData({
  26898. currentIndex: currentIndex
  26899. });
  26900. (0, _utils.requestAnimationFrame)(function () {
  26901. _this4.resize();
  26902. _this4.scrollIntoView();
  26903. });
  26904. (0, _utils.nextTick)(function () {
  26905. _this4.trigger('input');
  26906. if (shouldEmitChange) {
  26907. _this4.trigger('change');
  26908. }
  26909. });
  26910. },
  26911. getCurrentName: function getCurrentName() {
  26912. var activeTab = this.children[this.data.currentIndex];
  26913. if (activeTab) {
  26914. return activeTab.getComputedName();
  26915. }
  26916. },
  26917. resize: function resize() {
  26918. var _this5 = this;
  26919. if (this.data.type !== 'line') {
  26920. return;
  26921. }
  26922. var _this$data = this.data,
  26923. currentIndex = _this$data.currentIndex,
  26924. ellipsis = _this$data.ellipsis,
  26925. skipTransition = _this$data.skipTransition;
  26926. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__line')]).then(function (_ref) {
  26927. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  26928. _ref2$ = _ref2[0],
  26929. rects = _ref2$ === void 0 ? [] : _ref2$,
  26930. lineRect = _ref2[1];
  26931. var rect = rects[currentIndex];
  26932. if (rect == null) {
  26933. return;
  26934. }
  26935. var lineOffsetLeft = rects.slice(0, currentIndex).reduce(function (prev, curr) {
  26936. return prev + curr.width;
  26937. }, 0);
  26938. lineOffsetLeft += (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
  26939. _this5.setData({
  26940. lineOffsetLeft: lineOffsetLeft,
  26941. inited: true
  26942. });
  26943. _this5.swiping = true;
  26944. if (skipTransition) {
  26945. // waiting transition end
  26946. setTimeout(function () {
  26947. _this5.setData({
  26948. skipTransition: false
  26949. });
  26950. }, _this5.data.duration);
  26951. }
  26952. });
  26953. },
  26954. // scroll active tab into view
  26955. scrollIntoView: function scrollIntoView() {
  26956. var _this6 = this;
  26957. var _this$data2 = this.data,
  26958. currentIndex = _this$data2.currentIndex,
  26959. scrollable = _this$data2.scrollable,
  26960. scrollWithAnimation = _this$data2.scrollWithAnimation;
  26961. if (!scrollable) {
  26962. return;
  26963. }
  26964. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__nav')]).then(function (_ref3) {
  26965. var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
  26966. tabRects = _ref4[0],
  26967. navRect = _ref4[1];
  26968. var tabRect = tabRects[currentIndex];
  26969. var offsetLeft = tabRects.slice(0, currentIndex).reduce(function (prev, curr) {
  26970. return prev + curr.width;
  26971. }, 0);
  26972. _this6.setData({
  26973. scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2
  26974. });
  26975. if (!scrollWithAnimation) {
  26976. (0, _utils.nextTick)(function () {
  26977. _this6.setData({
  26978. scrollWithAnimation: true
  26979. });
  26980. });
  26981. }
  26982. });
  26983. },
  26984. onTouchScroll: function onTouchScroll(event) {
  26985. this.$emit('scroll', event.detail);
  26986. },
  26987. onTouchStart: function onTouchStart(event) {
  26988. if (!this.data.swipeable) return;
  26989. this.swiping = true;
  26990. this.touchStart(event);
  26991. },
  26992. onTouchMove: function onTouchMove(event) {
  26993. if (!this.data.swipeable || !this.swiping) return;
  26994. this.touchMove(event);
  26995. },
  26996. // watch swipe touch end
  26997. onTouchEnd: function onTouchEnd() {
  26998. var _this7 = this;
  26999. if (!this.data.swipeable || !this.swiping) return;
  27000. var direction = this.direction,
  27001. deltaX = this.deltaX,
  27002. offsetX = this.offsetX;
  27003. var minSwipeDistance = 50;
  27004. if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
  27005. var index = this.getAvaiableTab(deltaX);
  27006. if (index !== -1) {
  27007. this.onBeforeChange(index).then(function () {
  27008. return _this7.setCurrentIndex(index);
  27009. });
  27010. }
  27011. }
  27012. this.swiping = false;
  27013. },
  27014. getAvaiableTab: function getAvaiableTab(direction) {
  27015. var _this$data3 = this.data,
  27016. tabs = _this$data3.tabs,
  27017. currentIndex = _this$data3.currentIndex;
  27018. var step = direction > 0 ? -1 : 1;
  27019. for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
  27020. var index = currentIndex + i;
  27021. if (index >= 0 && index < tabs.length && tabs[index] && !tabs[index].disabled) {
  27022. return index;
  27023. }
  27024. }
  27025. return -1;
  27026. },
  27027. onBeforeChange: function onBeforeChange(index) {
  27028. var _this8 = this;
  27029. var useBeforeChange = this.data.useBeforeChange;
  27030. if (!useBeforeChange) {
  27031. return Promise.resolve();
  27032. }
  27033. return new Promise(function (resolve, reject) {
  27034. _this8.$emit('before-change', Object.assign(Object.assign({}, _this8.getChildData(index)), {
  27035. callback: function callback(status) {
  27036. return status ? resolve() : reject();
  27037. }
  27038. }));
  27039. });
  27040. },
  27041. getChildData: function getChildData(index, child) {
  27042. var currentChild = child || this.children[index];
  27043. if (!(0, _validator.isDef)(currentChild)) {
  27044. return;
  27045. }
  27046. return {
  27047. index: currentChild.index,
  27048. name: currentChild.getComputedName(),
  27049. title: currentChild.data.title
  27050. };
  27051. }
  27052. }
  27053. });
  27054. /***/ }),
  27055. /***/ 577:
  27056. /*!****************************************************************************!*\
  27057. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/mixins/touch.js ***!
  27058. \****************************************************************************/
  27059. /*! no static exports found */
  27060. /***/ (function(module, exports, __webpack_require__) {
  27061. "use strict";
  27062. Object.defineProperty(exports, "__esModule", {
  27063. value: true
  27064. });
  27065. exports.touch = void 0;
  27066. // @ts-nocheck
  27067. var MIN_DISTANCE = 10;
  27068. function getDirection(x, y) {
  27069. if (x > y && x > MIN_DISTANCE) {
  27070. return 'horizontal';
  27071. }
  27072. if (y > x && y > MIN_DISTANCE) {
  27073. return 'vertical';
  27074. }
  27075. return '';
  27076. }
  27077. var touch = Behavior({
  27078. methods: {
  27079. resetTouchStatus: function resetTouchStatus() {
  27080. this.direction = '';
  27081. this.deltaX = 0;
  27082. this.deltaY = 0;
  27083. this.offsetX = 0;
  27084. this.offsetY = 0;
  27085. },
  27086. touchStart: function touchStart(event) {
  27087. this.resetTouchStatus();
  27088. var touch = event.touches[0];
  27089. this.startX = touch.clientX;
  27090. this.startY = touch.clientY;
  27091. },
  27092. touchMove: function touchMove(event) {
  27093. var touch = event.touches[0];
  27094. this.deltaX = touch.clientX - this.startX;
  27095. this.deltaY = touch.clientY - this.startY;
  27096. this.offsetX = Math.abs(this.deltaX);
  27097. this.offsetY = Math.abs(this.deltaY);
  27098. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  27099. }
  27100. }
  27101. });
  27102. exports.touch = touch;
  27103. /***/ }),
  27104. /***/ 578:
  27105. /*!*************************************************************************!*\
  27106. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/row/index.js ***!
  27107. \*************************************************************************/
  27108. /*! no static exports found */
  27109. /***/ (function(module, exports, __webpack_require__) {
  27110. "use strict";
  27111. var _component = __webpack_require__(/*! ../common/component */ 476);
  27112. var _relation = __webpack_require__(/*! ../common/relation */ 484);
  27113. (0, _component.VantComponent)({
  27114. relation: (0, _relation.useChildren)('col', function (target) {
  27115. var gutter = this.data.gutter;
  27116. if (gutter) {
  27117. target.setData({
  27118. gutter: gutter
  27119. });
  27120. }
  27121. }),
  27122. props: {
  27123. gutter: {
  27124. type: Number,
  27125. observer: 'setGutter'
  27126. }
  27127. },
  27128. methods: {
  27129. setGutter: function setGutter() {
  27130. var _this = this;
  27131. this.children.forEach(function (col) {
  27132. col.setData(_this.data);
  27133. });
  27134. }
  27135. }
  27136. });
  27137. /***/ }),
  27138. /***/ 579:
  27139. /*!*************************************************************************!*\
  27140. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/col/index.js ***!
  27141. \*************************************************************************/
  27142. /*! no static exports found */
  27143. /***/ (function(module, exports, __webpack_require__) {
  27144. "use strict";
  27145. var _relation = __webpack_require__(/*! ../common/relation */ 484);
  27146. var _component = __webpack_require__(/*! ../common/component */ 476);
  27147. (0, _component.VantComponent)({
  27148. relation: (0, _relation.useParent)('row'),
  27149. props: {
  27150. span: Number,
  27151. offset: Number
  27152. }
  27153. });
  27154. /***/ }),
  27155. /***/ 594:
  27156. /*!***************************************************************************!*\
  27157. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/field/index.js ***!
  27158. \***************************************************************************/
  27159. /*! no static exports found */
  27160. /***/ (function(module, exports, __webpack_require__) {
  27161. "use strict";
  27162. var _utils = __webpack_require__(/*! ../common/utils */ 479);
  27163. var _component = __webpack_require__(/*! ../common/component */ 476);
  27164. var _props = __webpack_require__(/*! ./props */ 595);
  27165. (0, _component.VantComponent)({
  27166. field: true,
  27167. classes: ['input-class', 'right-icon-class', 'label-class'],
  27168. props: Object.assign(Object.assign(Object.assign(Object.assign({}, _props.commonProps), _props.inputProps), _props.textareaProps), {
  27169. size: String,
  27170. icon: String,
  27171. label: String,
  27172. error: Boolean,
  27173. center: Boolean,
  27174. isLink: Boolean,
  27175. leftIcon: String,
  27176. rightIcon: String,
  27177. autosize: null,
  27178. required: Boolean,
  27179. iconClass: String,
  27180. clickable: Boolean,
  27181. inputAlign: String,
  27182. customStyle: String,
  27183. errorMessage: String,
  27184. arrowDirection: String,
  27185. showWordLimit: Boolean,
  27186. errorMessageAlign: String,
  27187. readonly: {
  27188. type: Boolean,
  27189. observer: 'setShowClear'
  27190. },
  27191. clearable: {
  27192. type: Boolean,
  27193. observer: 'setShowClear'
  27194. },
  27195. clearTrigger: {
  27196. type: String,
  27197. value: 'focus'
  27198. },
  27199. border: {
  27200. type: Boolean,
  27201. value: true
  27202. },
  27203. titleWidth: {
  27204. type: String,
  27205. value: '6.2em'
  27206. },
  27207. clearIcon: {
  27208. type: String,
  27209. value: 'clear'
  27210. },
  27211. extraEventParams: {
  27212. type: Boolean,
  27213. value: false
  27214. }
  27215. }),
  27216. data: {
  27217. focused: false,
  27218. innerValue: '',
  27219. showClear: false
  27220. },
  27221. created: function created() {
  27222. this.value = this.data.value;
  27223. this.setData({
  27224. innerValue: this.value
  27225. });
  27226. },
  27227. methods: {
  27228. formatValue: function formatValue(value) {
  27229. var maxlength = this.data.maxlength;
  27230. if (maxlength !== -1 && value.length > maxlength) {
  27231. return value.slice(0, maxlength);
  27232. }
  27233. return value;
  27234. },
  27235. onInput: function onInput(event) {
  27236. var _ref = event.detail || {},
  27237. _ref$value = _ref.value,
  27238. value = _ref$value === void 0 ? '' : _ref$value;
  27239. var formatValue = this.formatValue(value);
  27240. this.value = formatValue;
  27241. this.setShowClear();
  27242. return this.emitChange(Object.assign(Object.assign({}, event.detail), {
  27243. value: formatValue
  27244. }));
  27245. },
  27246. onFocus: function onFocus(event) {
  27247. this.focused = true;
  27248. this.setShowClear();
  27249. this.$emit('focus', event.detail);
  27250. },
  27251. onBlur: function onBlur(event) {
  27252. this.focused = false;
  27253. this.setShowClear();
  27254. this.$emit('blur', event.detail);
  27255. },
  27256. onClickIcon: function onClickIcon() {
  27257. this.$emit('click-icon');
  27258. },
  27259. onClickInput: function onClickInput(event) {
  27260. this.$emit('click-input', event.detail);
  27261. },
  27262. onClear: function onClear() {
  27263. var _this = this;
  27264. this.setData({
  27265. innerValue: ''
  27266. });
  27267. this.value = '';
  27268. this.setShowClear();
  27269. (0, _utils.nextTick)(function () {
  27270. _this.emitChange({
  27271. value: ''
  27272. });
  27273. _this.$emit('clear', '');
  27274. });
  27275. },
  27276. onConfirm: function onConfirm(event) {
  27277. var _ref2 = event.detail || {},
  27278. _ref2$value = _ref2.value,
  27279. value = _ref2$value === void 0 ? '' : _ref2$value;
  27280. this.value = value;
  27281. this.setShowClear();
  27282. this.$emit('confirm', value);
  27283. },
  27284. setValue: function setValue(value) {
  27285. this.value = value;
  27286. this.setShowClear();
  27287. if (value === '') {
  27288. this.setData({
  27289. innerValue: ''
  27290. });
  27291. }
  27292. this.emitChange({
  27293. value: value
  27294. });
  27295. },
  27296. onLineChange: function onLineChange(event) {
  27297. this.$emit('linechange', event.detail);
  27298. },
  27299. onKeyboardHeightChange: function onKeyboardHeightChange(event) {
  27300. this.$emit('keyboardheightchange', event.detail);
  27301. },
  27302. emitChange: function emitChange(detail) {
  27303. var extraEventParams = this.data.extraEventParams;
  27304. this.setData({
  27305. value: detail.value
  27306. });
  27307. var result;
  27308. var data = extraEventParams ? Object.assign(Object.assign({}, detail), {
  27309. callback: function callback(data) {
  27310. result = data;
  27311. }
  27312. }) : detail.value;
  27313. this.$emit('input', data);
  27314. this.$emit('change', data);
  27315. return result;
  27316. },
  27317. setShowClear: function setShowClear() {
  27318. var _this$data = this.data,
  27319. clearable = _this$data.clearable,
  27320. readonly = _this$data.readonly,
  27321. clearTrigger = _this$data.clearTrigger;
  27322. var focused = this.focused,
  27323. value = this.value;
  27324. var showClear = false;
  27325. if (clearable && !readonly) {
  27326. var hasValue = !!value;
  27327. var trigger = clearTrigger === 'always' || clearTrigger === 'focus' && focused;
  27328. showClear = hasValue && trigger;
  27329. }
  27330. this.setData({
  27331. showClear: showClear
  27332. });
  27333. },
  27334. noop: function noop() {}
  27335. }
  27336. });
  27337. /***/ }),
  27338. /***/ 595:
  27339. /*!***************************************************************************!*\
  27340. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/field/props.js ***!
  27341. \***************************************************************************/
  27342. /*! no static exports found */
  27343. /***/ (function(module, exports, __webpack_require__) {
  27344. "use strict";
  27345. Object.defineProperty(exports, "__esModule", {
  27346. value: true
  27347. });
  27348. exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
  27349. var commonProps = {
  27350. value: {
  27351. type: String,
  27352. observer: function observer(value) {
  27353. if (value !== this.value) {
  27354. this.setData({
  27355. innerValue: value
  27356. });
  27357. this.value = value;
  27358. }
  27359. }
  27360. },
  27361. placeholder: String,
  27362. placeholderStyle: String,
  27363. placeholderClass: String,
  27364. disabled: Boolean,
  27365. maxlength: {
  27366. type: Number,
  27367. value: -1
  27368. },
  27369. cursorSpacing: {
  27370. type: Number,
  27371. value: 50
  27372. },
  27373. autoFocus: Boolean,
  27374. focus: Boolean,
  27375. cursor: {
  27376. type: Number,
  27377. value: -1
  27378. },
  27379. selectionStart: {
  27380. type: Number,
  27381. value: -1
  27382. },
  27383. selectionEnd: {
  27384. type: Number,
  27385. value: -1
  27386. },
  27387. adjustPosition: {
  27388. type: Boolean,
  27389. value: true
  27390. },
  27391. holdKeyboard: Boolean
  27392. };
  27393. exports.commonProps = commonProps;
  27394. var inputProps = {
  27395. type: {
  27396. type: String,
  27397. value: 'text'
  27398. },
  27399. password: Boolean,
  27400. confirmType: String,
  27401. confirmHold: Boolean,
  27402. alwaysEmbed: Boolean
  27403. };
  27404. exports.inputProps = inputProps;
  27405. var textareaProps = {
  27406. autoHeight: Boolean,
  27407. fixed: Boolean,
  27408. showConfirmBar: {
  27409. type: Boolean,
  27410. value: true
  27411. },
  27412. disableDefaultPadding: {
  27413. type: Boolean,
  27414. value: true
  27415. }
  27416. };
  27417. exports.textareaProps = textareaProps;
  27418. /***/ }),
  27419. /***/ 6:
  27420. /*!***************************************************************!*\
  27421. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  27422. \***************************************************************/
  27423. /*! no static exports found */
  27424. /***/ (function(module, exports) {
  27425. function _arrayWithHoles(arr) {
  27426. if (Array.isArray(arr)) return arr;
  27427. }
  27428. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  27429. /***/ }),
  27430. /***/ 60:
  27431. /*!********************************************************************!*\
  27432. !*** D:/AAAcompany_product/产品化管理端/common/assets/image/logobig.png ***!
  27433. \********************************************************************/
  27434. /*! no static exports found */
  27435. /***/ (function(module, exports, __webpack_require__) {
  27436. module.exports = __webpack_require__.p + "assets/logobig.0f9de468.png";
  27437. /***/ }),
  27438. /***/ 61:
  27439. /*!********************************************************************!*\
  27440. !*** D:/AAAcompany_product/产品化管理端/common/assets/image/comicon.png ***!
  27441. \********************************************************************/
  27442. /*! no static exports found */
  27443. /***/ (function(module, exports) {
  27444. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAEuElEQVR4Xu2aXWgcVRTH/+dOdNNG0yagKAqKoi+RggVFBKX6oC8Rq5AgSCFsdia7iQ+iIgUfXEHESP2ga+vO3Nk8GH0xVRFRH1QQQcX6UEEfikUUMeJHCTYq3ZjMPXLLbolpdjd3PrTN3oFA2Jz7n3N/93/O3Dsbgr3aEiDLpz0BC6iDQywgCyhZE7EOsg6yDkpGwDooGT/bg6yDrIOSEbAOSsbP9qD/ykGu644CuIGIdgHYYrhuJ5n5IwBfSClfMxybaXgiB42MjDiDg4PXR1H0rBDi1jQyVUp97DjOwwsLC0fm5uaiNDSTaCQCNDExcTczvwDgyiRJrDP2eyJ60Pf9t1LWNZaLDahYLF4cRdFhIrqicdffmXm/EOJtpdRJk0yEEFuY+U4ADwEYbIw9rpS6MQzD70y00o6NBcjzvPMAvApgpJHQt1EU7a7Val8nSXB8fPw6x3HeAHCN1mHmd4lodxAEy0l0k4yNBagxkfcAXA7gZ2beI6X8IEkizbGFQuEWIYRu1JcAmGfmYSnll2lox9GIBch13WEiehnAgF5lpdSeWq22ECeBtWPGxsa253K5GWa+B8AJpVQhDMNDaWjH0YgFyPO8BwDsA5AD8GIul3ukUqksxUlg7ZhyudwzPz8/TUS6Hy0T0V7f959LQzuORlxAjwMoN25YDoLgiTg3bzXG87xM9U1ytYA60LKALCCTgjoz1jro/3CQPqP19/dv6+3tbbsA9XqdFxcXT6w9c236Jl0sFi9TSu1n5r52C0RES0qpqTAMf1wdt+kBua57LRF9DmB7BwfrM9vOIAiOtgLEzFIIEWykkxDRD9Vq9deNxG40JpMe5Hne1cz8PhH1d0ikTkS3+b5/rI2DNjqXZpw+nnwSRdFTfX19R5NuYLMCtFUpdZMQoqfd7JhZ1ev1z2ZnZ/9KEdApKWb+jYgO5HK55yuVyqIp5WZ8JoDiJtMct7oHMfNP+mcjmvrVCxFdtCp2iZmnpZR6Zx7rOusB6SONyVGmVCrtUErtY2b9hlOfFbWb7pJSvqN/NaW06QBpAPl8/sKenp5pAKUGkCMA7giC4LgF1CCQz+evchznTSLaAeAXZr5XSvmpBdQgMDk5ecHy8nKViO4H8CcRlXzff8UCahDQu/mBgYEnAewFEBHRY77v67IzujLpQY3Vux2Afnfd8iKiaGVl5cOZmZk/2jzmjZp02jqZAEpzJ236FLOADAokjTNdJg7yPO9SZn4awNYOJfa3EOLRarU6n/bKa72zFpDBIq8b2mpizEyjo6Oilf7Q0BCXy2XV/HvXAXJd92YhxDAzO+tBUkp9FYbh6Ud51wFa83XTGYyY+ZCUsvltb/eVWKFQmBJCPAPg/BZl9noQBPd1bYl5nreTmXe1KjEA34RhePo/QrquxEybvwXUgZgFZAGdIrD5zmKmvWJtfBql0ZU7aVPwaYDO5CxmOpFN7SAiOqiUOpgUyurx+u0fgCn9WRL91Tpxe1kaDkqTTZZasZq9BdRhSWIBcl13kogms1zuDLRfCoLggKluLECmNzmX4y2gLErsXHaEae7WQdZBpp75d7x1kHWQdVAyAtZByfjZHmQdZB2UjIB1UDJ+tgd14PcP4hYGdl6JvtEAAAAASUVORK5CYII="
  27445. /***/ }),
  27446. /***/ 62:
  27447. /*!********************************************************************!*\
  27448. !*** D:/AAAcompany_product/产品化管理端/common/assets/image/pswicon.svg ***!
  27449. \********************************************************************/
  27450. /*! no static exports found */
  27451. /***/ (function(module, exports, __webpack_require__) {
  27452. module.exports = __webpack_require__.p + "static/img/pswicon.5cb4118b.svg";
  27453. /***/ }),
  27454. /***/ 629:
  27455. /*!*****************************************************************************************************!*\
  27456. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js ***!
  27457. \*****************************************************************************************************/
  27458. /*! no static exports found */
  27459. /***/ (function(module, exports, __webpack_require__) {
  27460. "use strict";
  27461. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  27462. Object.defineProperty(exports, "__esModule", {
  27463. value: true
  27464. });
  27465. exports.default = void 0;
  27466. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 630));
  27467. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 631));
  27468. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 632));
  27469. var _default = {
  27470. en: _en.default,
  27471. 'zh-Hans': _zhHans.default,
  27472. 'zh-Hant': _zhHant.default
  27473. };
  27474. exports.default = _default;
  27475. /***/ }),
  27476. /***/ 63:
  27477. /*!********************************************************************!*\
  27478. !*** D:/AAAcompany_product/产品化管理端/common/assets/image/yzmicon.svg ***!
  27479. \********************************************************************/
  27480. /*! no static exports found */
  27481. /***/ (function(module, exports, __webpack_require__) {
  27482. module.exports = __webpack_require__.p + "static/img/yzmicon.83dc7c55.svg";
  27483. /***/ }),
  27484. /***/ 630:
  27485. /*!****************************************************************************************************!*\
  27486. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json ***!
  27487. \****************************************************************************************************/
  27488. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  27489. /***/ (function(module) {
  27490. 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\"}");
  27491. /***/ }),
  27492. /***/ 631:
  27493. /*!*********************************************************************************************************!*\
  27494. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json ***!
  27495. \*********************************************************************************************************/
  27496. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  27497. /***/ (function(module) {
  27498. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉显示更多\",\"uni-load-more.contentrefresh\":\"正在加载...\",\"uni-load-more.contentnomore\":\"没有更多数据了\"}");
  27499. /***/ }),
  27500. /***/ 632:
  27501. /*!*********************************************************************************************************!*\
  27502. !*** D:/AAAcompany_product/产品化管理端/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json ***!
  27503. \*********************************************************************************************************/
  27504. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  27505. /***/ (function(module) {
  27506. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉顯示更多\",\"uni-load-more.contentrefresh\":\"正在加載...\",\"uni-load-more.contentnomore\":\"沒有更多數據了\"}");
  27507. /***/ }),
  27508. /***/ 635:
  27509. /*!*************************************************************************************!*\
  27510. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/datetime-picker/index.js ***!
  27511. \*************************************************************************************/
  27512. /*! no static exports found */
  27513. /***/ (function(module, exports, __webpack_require__) {
  27514. "use strict";
  27515. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  27516. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  27517. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  27518. var _component = __webpack_require__(/*! ../common/component */ 476);
  27519. var _validator = __webpack_require__(/*! ../common/validator */ 480);
  27520. var _shared = __webpack_require__(/*! ../picker/shared */ 636);
  27521. var currentYear = new Date().getFullYear();
  27522. function isValidDate(date) {
  27523. return (0, _validator.isDef)(date) && !isNaN(new Date(date).getTime());
  27524. }
  27525. function range(num, min, max) {
  27526. return Math.min(Math.max(num, min), max);
  27527. }
  27528. function padZero(val) {
  27529. return "00".concat(val).slice(-2);
  27530. }
  27531. function times(n, iteratee) {
  27532. var index = -1;
  27533. var result = Array(n < 0 ? 0 : n);
  27534. while (++index < n) {
  27535. result[index] = iteratee(index);
  27536. }
  27537. return result;
  27538. }
  27539. function getTrueValue(formattedValue) {
  27540. if (formattedValue === undefined) {
  27541. formattedValue = '1';
  27542. }
  27543. while (isNaN(parseInt(formattedValue, 10))) {
  27544. formattedValue = formattedValue.slice(1);
  27545. }
  27546. return parseInt(formattedValue, 10);
  27547. }
  27548. function getMonthEndDay(year, month) {
  27549. return 32 - new Date(year, month - 1, 32).getDate();
  27550. }
  27551. var defaultFormatter = function defaultFormatter(type, value) {
  27552. return value;
  27553. };
  27554. (0, _component.VantComponent)({
  27555. classes: ['active-class', 'toolbar-class', 'column-class'],
  27556. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  27557. value: {
  27558. type: null,
  27559. observer: 'updateValue'
  27560. },
  27561. filter: null,
  27562. type: {
  27563. type: String,
  27564. value: 'datetime',
  27565. observer: 'updateValue'
  27566. },
  27567. showToolbar: {
  27568. type: Boolean,
  27569. value: true
  27570. },
  27571. formatter: {
  27572. type: null,
  27573. value: defaultFormatter
  27574. },
  27575. minDate: {
  27576. type: Number,
  27577. value: new Date(currentYear - 10, 0, 1).getTime(),
  27578. observer: 'updateValue'
  27579. },
  27580. maxDate: {
  27581. type: Number,
  27582. value: new Date(currentYear + 10, 11, 31).getTime(),
  27583. observer: 'updateValue'
  27584. },
  27585. minHour: {
  27586. type: Number,
  27587. value: 0,
  27588. observer: 'updateValue'
  27589. },
  27590. maxHour: {
  27591. type: Number,
  27592. value: 23,
  27593. observer: 'updateValue'
  27594. },
  27595. minMinute: {
  27596. type: Number,
  27597. value: 0,
  27598. observer: 'updateValue'
  27599. },
  27600. maxMinute: {
  27601. type: Number,
  27602. value: 59,
  27603. observer: 'updateValue'
  27604. }
  27605. }),
  27606. data: {
  27607. innerValue: Date.now(),
  27608. columns: []
  27609. },
  27610. methods: {
  27611. updateValue: function updateValue() {
  27612. var _this = this;
  27613. var data = this.data;
  27614. var val = this.correctValue(data.value);
  27615. var isEqual = val === data.innerValue;
  27616. this.updateColumnValue(val).then(function () {
  27617. if (!isEqual) {
  27618. _this.$emit('input', val);
  27619. }
  27620. });
  27621. },
  27622. getPicker: function getPicker() {
  27623. if (this.picker == null) {
  27624. this.picker = this.selectComponent('.van-datetime-picker');
  27625. var picker = this.picker;
  27626. var setColumnValues = picker.setColumnValues;
  27627. picker.setColumnValues = function () {
  27628. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  27629. args[_key] = arguments[_key];
  27630. }
  27631. return setColumnValues.apply(picker, [].concat(args, [false]));
  27632. };
  27633. }
  27634. return this.picker;
  27635. },
  27636. updateColumns: function updateColumns() {
  27637. var _this$data$formatter = this.data.formatter,
  27638. formatter = _this$data$formatter === void 0 ? defaultFormatter : _this$data$formatter;
  27639. var results = this.getOriginColumns().map(function (column) {
  27640. return {
  27641. values: column.values.map(function (value) {
  27642. return formatter(column.type, value);
  27643. })
  27644. };
  27645. });
  27646. return this.set({
  27647. columns: results
  27648. });
  27649. },
  27650. getOriginColumns: function getOriginColumns() {
  27651. var filter = this.data.filter;
  27652. var results = this.getRanges().map(function (_ref) {
  27653. var type = _ref.type,
  27654. range = _ref.range;
  27655. var values = times(range[1] - range[0] + 1, function (index) {
  27656. var value = range[0] + index;
  27657. return type === 'year' ? "".concat(value) : padZero(value);
  27658. });
  27659. if (filter) {
  27660. values = filter(type, values);
  27661. }
  27662. return {
  27663. type: type,
  27664. values: values
  27665. };
  27666. });
  27667. return results;
  27668. },
  27669. getRanges: function getRanges() {
  27670. var data = this.data;
  27671. if (data.type === 'time') {
  27672. return [{
  27673. type: 'hour',
  27674. range: [data.minHour, data.maxHour]
  27675. }, {
  27676. type: 'minute',
  27677. range: [data.minMinute, data.maxMinute]
  27678. }];
  27679. }
  27680. var _this$getBoundary = this.getBoundary('max', data.innerValue),
  27681. maxYear = _this$getBoundary.maxYear,
  27682. maxDate = _this$getBoundary.maxDate,
  27683. maxMonth = _this$getBoundary.maxMonth,
  27684. maxHour = _this$getBoundary.maxHour,
  27685. maxMinute = _this$getBoundary.maxMinute;
  27686. var _this$getBoundary2 = this.getBoundary('min', data.innerValue),
  27687. minYear = _this$getBoundary2.minYear,
  27688. minDate = _this$getBoundary2.minDate,
  27689. minMonth = _this$getBoundary2.minMonth,
  27690. minHour = _this$getBoundary2.minHour,
  27691. minMinute = _this$getBoundary2.minMinute;
  27692. var result = [{
  27693. type: 'year',
  27694. range: [minYear, maxYear]
  27695. }, {
  27696. type: 'month',
  27697. range: [minMonth, maxMonth]
  27698. }, {
  27699. type: 'day',
  27700. range: [minDate, maxDate]
  27701. }, {
  27702. type: 'hour',
  27703. range: [minHour, maxHour]
  27704. }, {
  27705. type: 'minute',
  27706. range: [minMinute, maxMinute]
  27707. }];
  27708. if (data.type === 'date') result.splice(3, 2);
  27709. if (data.type === 'year-month') result.splice(2, 3);
  27710. return result;
  27711. },
  27712. correctValue: function correctValue(value) {
  27713. var data = this.data;
  27714. // validate value
  27715. var isDateType = data.type !== 'time';
  27716. if (isDateType && !isValidDate(value)) {
  27717. value = data.minDate;
  27718. } else if (!isDateType && !value) {
  27719. var minHour = data.minHour;
  27720. value = "".concat(padZero(minHour), ":00");
  27721. }
  27722. // time type
  27723. if (!isDateType) {
  27724. var _value$split = value.split(':'),
  27725. _value$split2 = (0, _slicedToArray2.default)(_value$split, 2),
  27726. hour = _value$split2[0],
  27727. minute = _value$split2[1];
  27728. hour = padZero(range(hour, data.minHour, data.maxHour));
  27729. minute = padZero(range(minute, data.minMinute, data.maxMinute));
  27730. return "".concat(hour, ":").concat(minute);
  27731. }
  27732. // date type
  27733. value = Math.max(value, data.minDate);
  27734. value = Math.min(value, data.maxDate);
  27735. return value;
  27736. },
  27737. getBoundary: function getBoundary(type, innerValue) {
  27738. var _ref2;
  27739. var value = new Date(innerValue);
  27740. var boundary = new Date(this.data["".concat(type, "Date")]);
  27741. var year = boundary.getFullYear();
  27742. var month = 1;
  27743. var date = 1;
  27744. var hour = 0;
  27745. var minute = 0;
  27746. if (type === 'max') {
  27747. month = 12;
  27748. date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
  27749. hour = 23;
  27750. minute = 59;
  27751. }
  27752. if (value.getFullYear() === year) {
  27753. month = boundary.getMonth() + 1;
  27754. if (value.getMonth() + 1 === month) {
  27755. date = boundary.getDate();
  27756. if (value.getDate() === date) {
  27757. hour = boundary.getHours();
  27758. if (value.getHours() === hour) {
  27759. minute = boundary.getMinutes();
  27760. }
  27761. }
  27762. }
  27763. }
  27764. 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;
  27765. },
  27766. onCancel: function onCancel() {
  27767. this.$emit('cancel');
  27768. },
  27769. onConfirm: function onConfirm() {
  27770. this.$emit('confirm', this.data.innerValue);
  27771. },
  27772. onChange: function onChange() {
  27773. var _this2 = this;
  27774. var data = this.data;
  27775. var value;
  27776. var picker = this.getPicker();
  27777. var originColumns = this.getOriginColumns();
  27778. if (data.type === 'time') {
  27779. var indexes = picker.getIndexes();
  27780. value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1].values[indexes[1]]);
  27781. } else {
  27782. var _indexes = picker.getIndexes();
  27783. var values = _indexes.map(function (value, index) {
  27784. return originColumns[index].values[value];
  27785. });
  27786. var year = getTrueValue(values[0]);
  27787. var month = getTrueValue(values[1]);
  27788. var maxDate = getMonthEndDay(year, month);
  27789. var date = getTrueValue(values[2]);
  27790. if (data.type === 'year-month') {
  27791. date = 1;
  27792. }
  27793. date = date > maxDate ? maxDate : date;
  27794. var hour = 0;
  27795. var minute = 0;
  27796. if (data.type === 'datetime') {
  27797. hour = getTrueValue(values[3]);
  27798. minute = getTrueValue(values[4]);
  27799. }
  27800. value = new Date(year, month - 1, date, hour, minute);
  27801. }
  27802. value = this.correctValue(value);
  27803. this.updateColumnValue(value).then(function () {
  27804. _this2.$emit('input', value);
  27805. _this2.$emit('change', picker);
  27806. });
  27807. },
  27808. updateColumnValue: function updateColumnValue(value) {
  27809. var _this3 = this;
  27810. var values = [];
  27811. var type = this.data.type;
  27812. var formatter = this.data.formatter || defaultFormatter;
  27813. var picker = this.getPicker();
  27814. if (type === 'time') {
  27815. var pair = value.split(':');
  27816. values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
  27817. } else {
  27818. var date = new Date(value);
  27819. values = [formatter('year', "".concat(date.getFullYear())), formatter('month', padZero(date.getMonth() + 1))];
  27820. if (type === 'date') {
  27821. values.push(formatter('day', padZero(date.getDate())));
  27822. }
  27823. if (type === 'datetime') {
  27824. values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
  27825. }
  27826. }
  27827. return this.set({
  27828. innerValue: value
  27829. }).then(function () {
  27830. return _this3.updateColumns();
  27831. }).then(function () {
  27832. return picker.setValues(values);
  27833. });
  27834. }
  27835. },
  27836. created: function created() {
  27837. var _this4 = this;
  27838. var innerValue = this.correctValue(this.data.value);
  27839. this.updateColumnValue(innerValue).then(function () {
  27840. _this4.$emit('input', innerValue);
  27841. });
  27842. }
  27843. });
  27844. /***/ }),
  27845. /***/ 636:
  27846. /*!*****************************************************************************!*\
  27847. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/picker/shared.js ***!
  27848. \*****************************************************************************/
  27849. /*! no static exports found */
  27850. /***/ (function(module, exports, __webpack_require__) {
  27851. "use strict";
  27852. Object.defineProperty(exports, "__esModule", {
  27853. value: true
  27854. });
  27855. exports.pickerProps = void 0;
  27856. var pickerProps = {
  27857. title: String,
  27858. loading: Boolean,
  27859. showToolbar: Boolean,
  27860. cancelButtonText: {
  27861. type: String,
  27862. value: '取消'
  27863. },
  27864. confirmButtonText: {
  27865. type: String,
  27866. value: '确认'
  27867. },
  27868. visibleItemCount: {
  27869. type: Number,
  27870. value: 6
  27871. },
  27872. itemHeight: {
  27873. type: Number,
  27874. value: 44
  27875. }
  27876. };
  27877. exports.pickerProps = pickerProps;
  27878. /***/ }),
  27879. /***/ 637:
  27880. /*!****************************************************************************!*\
  27881. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/button/index.js ***!
  27882. \****************************************************************************/
  27883. /*! no static exports found */
  27884. /***/ (function(module, exports, __webpack_require__) {
  27885. "use strict";
  27886. /* WEBPACK VAR INJECTION */(function(wx) {
  27887. var _component = __webpack_require__(/*! ../common/component */ 476);
  27888. var _button = __webpack_require__(/*! ../mixins/button */ 638);
  27889. var _version = __webpack_require__(/*! ../common/version */ 481);
  27890. var mixins = [_button.button];
  27891. if ((0, _version.canIUseFormFieldButton)()) {
  27892. mixins.push('wx://form-field-button');
  27893. }
  27894. (0, _component.VantComponent)({
  27895. mixins: mixins,
  27896. classes: ['hover-class', 'loading-class'],
  27897. data: {
  27898. baseStyle: ''
  27899. },
  27900. props: {
  27901. formType: String,
  27902. icon: String,
  27903. classPrefix: {
  27904. type: String,
  27905. value: 'van-icon'
  27906. },
  27907. plain: Boolean,
  27908. block: Boolean,
  27909. round: Boolean,
  27910. square: Boolean,
  27911. loading: Boolean,
  27912. hairline: Boolean,
  27913. disabled: Boolean,
  27914. loadingText: String,
  27915. customStyle: String,
  27916. loadingType: {
  27917. type: String,
  27918. value: 'circular'
  27919. },
  27920. type: {
  27921. type: String,
  27922. value: 'default'
  27923. },
  27924. dataset: null,
  27925. size: {
  27926. type: String,
  27927. value: 'normal'
  27928. },
  27929. loadingSize: {
  27930. type: String,
  27931. value: '20px'
  27932. },
  27933. color: String
  27934. },
  27935. methods: {
  27936. onClick: function onClick(event) {
  27937. var _this = this;
  27938. this.$emit('click', event);
  27939. var _this$data = this.data,
  27940. canIUseGetUserProfile = _this$data.canIUseGetUserProfile,
  27941. openType = _this$data.openType,
  27942. getUserProfileDesc = _this$data.getUserProfileDesc,
  27943. lang = _this$data.lang;
  27944. if (openType === 'getUserInfo' && canIUseGetUserProfile) {
  27945. wx.getUserProfile({
  27946. desc: getUserProfileDesc || ' ',
  27947. lang: lang || 'en',
  27948. complete: function complete(userProfile) {
  27949. _this.$emit('getuserinfo', userProfile);
  27950. }
  27951. });
  27952. }
  27953. }
  27954. }
  27955. });
  27956. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  27957. /***/ }),
  27958. /***/ 638:
  27959. /*!*****************************************************************************!*\
  27960. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/mixins/button.js ***!
  27961. \*****************************************************************************/
  27962. /*! no static exports found */
  27963. /***/ (function(module, exports, __webpack_require__) {
  27964. "use strict";
  27965. Object.defineProperty(exports, "__esModule", {
  27966. value: true
  27967. });
  27968. exports.button = void 0;
  27969. var _version = __webpack_require__(/*! ../common/version */ 481);
  27970. var button = Behavior({
  27971. externalClasses: ['hover-class'],
  27972. properties: {
  27973. id: String,
  27974. lang: String,
  27975. businessId: Number,
  27976. sessionFrom: String,
  27977. sendMessageTitle: String,
  27978. sendMessagePath: String,
  27979. sendMessageImg: String,
  27980. showMessageCard: Boolean,
  27981. appParameter: String,
  27982. ariaLabel: String,
  27983. openType: String,
  27984. getUserProfileDesc: String
  27985. },
  27986. data: {
  27987. canIUseGetUserProfile: (0, _version.canIUseGetUserProfile)()
  27988. },
  27989. methods: {
  27990. onGetUserInfo: function onGetUserInfo(event) {
  27991. this.triggerEvent('getuserinfo', event.detail);
  27992. },
  27993. onContact: function onContact(event) {
  27994. this.triggerEvent('contact', event.detail);
  27995. },
  27996. onGetPhoneNumber: function onGetPhoneNumber(event) {
  27997. this.triggerEvent('getphonenumber', event.detail);
  27998. },
  27999. onError: function onError(event) {
  28000. this.triggerEvent('error', event.detail);
  28001. },
  28002. onLaunchApp: function onLaunchApp(event) {
  28003. this.triggerEvent('launchapp', event.detail);
  28004. },
  28005. onOpenSetting: function onOpenSetting(event) {
  28006. this.triggerEvent('opensetting', event.detail);
  28007. },
  28008. onChooseAvatar: function onChooseAvatar(event) {
  28009. this.triggerEvent('chooseavatar', event.detail);
  28010. }
  28011. }
  28012. });
  28013. exports.button = button;
  28014. /***/ }),
  28015. /***/ 639:
  28016. /*!*****************************************************************************!*\
  28017. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/divider/index.js ***!
  28018. \*****************************************************************************/
  28019. /*! no static exports found */
  28020. /***/ (function(module, exports, __webpack_require__) {
  28021. "use strict";
  28022. var _component = __webpack_require__(/*! ../common/component */ 476);
  28023. (0, _component.VantComponent)({
  28024. props: {
  28025. dashed: Boolean,
  28026. hairline: Boolean,
  28027. contentPosition: String,
  28028. fontSize: String,
  28029. borderColor: String,
  28030. textColor: String,
  28031. customStyle: String
  28032. }
  28033. });
  28034. /***/ }),
  28035. /***/ 66:
  28036. /*!*****************************************************************************!*\
  28037. !*** D:/AAAcompany_product/产品化管理端/wxcomponents/weapp/dist/dialog/dialog.js ***!
  28038. \*****************************************************************************/
  28039. /*! no static exports found */
  28040. /***/ (function(module, exports, __webpack_require__) {
  28041. "use strict";
  28042. /* WEBPACK VAR INJECTION */(function(wx) {
  28043. Object.defineProperty(exports, "__esModule", {
  28044. value: true
  28045. });
  28046. exports.default = void 0;
  28047. var queue = [];
  28048. var defaultOptions = {
  28049. show: false,
  28050. title: '',
  28051. width: null,
  28052. theme: 'default',
  28053. message: '',
  28054. zIndex: 100,
  28055. overlay: true,
  28056. selector: '#van-dialog',
  28057. className: '',
  28058. asyncClose: false,
  28059. beforeClose: null,
  28060. transition: 'scale',
  28061. customStyle: '',
  28062. messageAlign: '',
  28063. overlayStyle: '',
  28064. confirmButtonText: '确认',
  28065. cancelButtonText: '取消',
  28066. showConfirmButton: true,
  28067. showCancelButton: false,
  28068. closeOnClickOverlay: false,
  28069. confirmButtonOpenType: ''
  28070. };
  28071. var currentOptions = Object.assign({}, defaultOptions);
  28072. function getContext() {
  28073. var pages = getCurrentPages();
  28074. return pages[pages.length - 1];
  28075. }
  28076. var Dialog = function Dialog(options) {
  28077. options = Object.assign(Object.assign({}, currentOptions), options);
  28078. return new Promise(function (resolve, reject) {
  28079. var context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
  28080. var dialog = context.selectComponent(options.selector);
  28081. delete options.context;
  28082. delete options.selector;
  28083. if (dialog) {
  28084. dialog.setData(Object.assign({
  28085. callback: function callback(action, instance) {
  28086. action === 'confirm' ? resolve(instance) : reject(instance);
  28087. }
  28088. }, options));
  28089. wx.nextTick(function () {
  28090. dialog.setData({
  28091. show: true
  28092. });
  28093. });
  28094. queue.push(dialog);
  28095. } else {
  28096. console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
  28097. }
  28098. });
  28099. };
  28100. Dialog.alert = function (options) {
  28101. return Dialog(options);
  28102. };
  28103. Dialog.confirm = function (options) {
  28104. return Dialog(Object.assign({
  28105. showCancelButton: true
  28106. }, options));
  28107. };
  28108. Dialog.close = function () {
  28109. queue.forEach(function (dialog) {
  28110. dialog.close();
  28111. });
  28112. queue = [];
  28113. };
  28114. Dialog.stopLoading = function () {
  28115. queue.forEach(function (dialog) {
  28116. dialog.stopLoading();
  28117. });
  28118. };
  28119. Dialog.currentOptions = currentOptions;
  28120. Dialog.defaultOptions = defaultOptions;
  28121. Dialog.setDefaultOptions = function (options) {
  28122. currentOptions = Object.assign(Object.assign({}, currentOptions), options);
  28123. Dialog.currentOptions = currentOptions;
  28124. };
  28125. Dialog.resetDefaultOptions = function () {
  28126. currentOptions = Object.assign({}, defaultOptions);
  28127. Dialog.currentOptions = currentOptions;
  28128. };
  28129. Dialog.resetDefaultOptions();
  28130. var _default = Dialog;
  28131. exports.default = _default;
  28132. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  28133. /***/ }),
  28134. /***/ 67:
  28135. /*!***************************************************!*\
  28136. !*** D:/AAAcompany_product/产品化管理端/js_sdk/http.js ***!
  28137. \***************************************************/
  28138. /*! no static exports found */
  28139. /***/ (function(module, exports, __webpack_require__) {
  28140. "use strict";
  28141. /* WEBPACK VAR INJECTION */(function(uni) {
  28142. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28143. Object.defineProperty(exports, "__esModule", {
  28144. value: true
  28145. });
  28146. exports.addInterview = addInterview;
  28147. exports.addRectificationManagement = addRectificationManagement;
  28148. exports.addRepair = addRepair;
  28149. exports.addSafetySelfCheckingManage = addSafetySelfCheckingManage;
  28150. exports.addSafetySelfCheckingPlan = addSafetySelfCheckingPlan;
  28151. exports.addZaiti = addZaiti;
  28152. exports.addyixiang = addyixiang;
  28153. exports.cancelAppoint = cancelAppoint;
  28154. exports.clickCollect = clickCollect;
  28155. exports.companyECdit = companyECdit;
  28156. exports.companyExamineAdd = companyExamineAdd;
  28157. exports.confirmAudit = confirmAudit;
  28158. exports.editInterview = editInterview;
  28159. exports.editPassword = editPassword;
  28160. exports.editRepair = editRepair;
  28161. exports.editSave = editSave;
  28162. exports.findAllSimpleCompanies = findAllSimpleCompanies;
  28163. exports.findCompanyInfoList = findCompanyInfoList;
  28164. exports.findCompanyList = findCompanyList;
  28165. exports.findCompanyTags = findCompanyTags;
  28166. exports.findDeptList = findDeptList;
  28167. exports.findLongPanList = findLongPanList;
  28168. exports.findLouDongList = findLouDongList;
  28169. exports.findRectificationManagementInOutById = findRectificationManagementInOutById;
  28170. exports.findRectificationManagementInOutList = findRectificationManagementInOutList;
  28171. exports.findRoomByCondition = findRoomByCondition;
  28172. exports.findRoomInfoListByIds = findRoomInfoListByIds;
  28173. exports.findSafetySelfCheckingManageList = findSafetySelfCheckingManageList;
  28174. exports.findSafetySelfCheckingManagetById = findSafetySelfCheckingManagetById;
  28175. exports.findSafetySelfCheckingPlanById = findSafetySelfCheckingPlanById;
  28176. exports.findSafetySelfCheckingPlanList = findSafetySelfCheckingPlanList;
  28177. exports.findTrackUserList = findTrackUserList;
  28178. exports.findUserListByRoleWuye = findUserListByRoleWuye;
  28179. exports.findYuanQuList = findYuanQuList;
  28180. exports.getActivationRanking = getActivationRanking;
  28181. exports.getActivityById = getActivityById;
  28182. exports.getAppUserMain = getAppUserMain;
  28183. exports.getBuildDetails = getBuildDetails;
  28184. exports.getByCodes = getByCodes;
  28185. exports.getBySaveStatus = getBySaveStatus;
  28186. exports.getCompanyAll = getCompanyAll;
  28187. exports.getCompanyById = getCompanyById;
  28188. exports.getCompanyHouseDetails = getCompanyHouseDetails;
  28189. exports.getCompanyTags = getCompanyTags;
  28190. exports.getCompanyTagsByQybq = getCompanyTagsByQybq;
  28191. exports.getDetial = getDetial;
  28192. exports.getDispatchToPerson = getDispatchToPerson;
  28193. exports.getInterviewDetails = getInterviewDetails;
  28194. exports.getInterviewList = getInterviewList;
  28195. exports.getPartyBranchList = getPartyBranchList;
  28196. exports.getRepairDispatchById = getRepairDispatchById;
  28197. exports.getRepairList = getRepairList;
  28198. exports.getRoomInfo = getRoomInfo;
  28199. exports.getSelectDeptTwo = getSelectDeptTwo;
  28200. exports.getSelectUserTwo = getSelectUserTwo;
  28201. exports.getTreeData2 = getTreeData2;
  28202. exports.getTreeData6 = getTreeData6;
  28203. exports.getUserInfo = getUserInfo;
  28204. exports.getUserLocalStorageInfo = getUserLocalStorageInfo;
  28205. exports.getUserPower = getUserPower;
  28206. exports.getWxCompanyTags = getWxCompanyTags;
  28207. exports.handleList = handleList;
  28208. exports.insertRegisSignInfo = insertRegisSignInfo;
  28209. exports.interviewEscalationListAll = interviewEscalationListAll;
  28210. exports.list = list;
  28211. exports.listAllUserMain = listAllUserMain;
  28212. exports.listApp = listApp;
  28213. exports.listByModel = listByModel;
  28214. exports.listVo = listVo;
  28215. exports.login = login;
  28216. exports.readList = readList;
  28217. exports.removeTagsBind = removeTagsBind;
  28218. exports.repairList = repairList;
  28219. exports.richScan = richScan;
  28220. exports.saleControllerGetById = saleControllerGetById;
  28221. exports.selectByCompanyId = selectByCompanyId;
  28222. exports.tagCategoryList = tagCategoryList;
  28223. exports.tagInfoList = tagInfoList;
  28224. exports.tagsBind = tagsBind;
  28225. exports.updateListRectificationManagement = updateListRectificationManagement;
  28226. exports.updateSafetySelfCheckingManage = updateSafetySelfCheckingManage;
  28227. exports.uploadPDF = uploadPDF;
  28228. exports.userList = userList;
  28229. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  28230. var _requestConfig = _interopRequireDefault(__webpack_require__(/*! ./request/requestConfig */ 53));
  28231. var _constant = __webpack_require__(/*! ../pages/utils/constant.js */ 50);
  28232. var _qs = _interopRequireDefault(__webpack_require__(/*! qs */ 68));
  28233. 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; }
  28234. 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; }
  28235. var baseUri = '/smartParkH5Server';
  28236. var parkActivity = '/wx/meetingAppoint';
  28237. function login(data) {
  28238. return _requestConfig.default.post('/wx/auth/login_by_app_main?' + _qs.default.stringify(data), {}, {});
  28239. }
  28240. function addRectificationManagement(data) {
  28241. return _requestConfig.default.post('/wx/RectificationController/addRectificationManagement', data, {});
  28242. }
  28243. function getUserLocalStorageInfo() {
  28244. var userInfo = JSON.parse(uni.getStorageSync("laocui_user_info"));
  28245. return userInfo;
  28246. }
  28247. function uploadPDF() {
  28248. uni.showLoading({
  28249. title: '加载中',
  28250. mask: true
  28251. });
  28252. return new Promise(function (resolve, reject) {
  28253. uni.chooseMessageFile({
  28254. count: 1,
  28255. //默认100
  28256. type: 'file',
  28257. success: function success(res) {
  28258. uni.uploadFile({
  28259. url: _constant.BASE_URI + "/wx/fileController/upload",
  28260. filePath: res.tempFiles[0].path,
  28261. name: "file",
  28262. formData: {
  28263. user: "test"
  28264. },
  28265. success: function success(successRes) {
  28266. // 上传完成需要更新 fileList
  28267. var data = JSON.parse(successRes.data);
  28268. uni.showToast({
  28269. title: '提交成功',
  28270. duration: 500
  28271. });
  28272. resolve({
  28273. url: data.data[0],
  28274. name: res.tempFiles[0].name
  28275. });
  28276. },
  28277. fail: function fail(res) {}
  28278. });
  28279. },
  28280. fail: function fail(e) {
  28281. uni.showToast({
  28282. title: '提交成功',
  28283. duration: 0
  28284. });
  28285. }
  28286. });
  28287. });
  28288. }
  28289. function getBuildDetails(data) {
  28290. return _requestConfig.default.post('/wx/MnpBuildingController/getById', data, {});
  28291. }
  28292. function addZaiti(data) {
  28293. return _requestConfig.default.post('/wx/ParkRoomController/add', data, {});
  28294. }
  28295. function getPartyBranchList(data) {
  28296. return _requestConfig.default.post('/wx/partyBranch/getPartyBranchList', data, {});
  28297. }
  28298. function selectByCompanyId(data) {
  28299. return _requestConfig.default.post('/wx/SocialCarrierController/selectByCompanyId', data, {});
  28300. }
  28301. function getTreeData2(data) {
  28302. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData2', data, {});
  28303. }
  28304. function getTreeData6(data) {
  28305. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData6', data, {});
  28306. }
  28307. function getActivationRanking(data) {
  28308. return _requestConfig.default.post('/wx/partyBranch/getActivationRanking', data, {});
  28309. }
  28310. function findRectificationManagementInOutList(data) {
  28311. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutList', data, {});
  28312. }
  28313. function findRectificationManagementInOutById(e) {
  28314. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutById', {
  28315. id: e
  28316. }, {});
  28317. }
  28318. function repairList(data) {
  28319. return _requestConfig.default.post('/wx/repair/list', data, {});
  28320. }
  28321. function addSafetySelfCheckingManage(data) {
  28322. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingManage', data, {});
  28323. }
  28324. function updateSafetySelfCheckingManage(data) {
  28325. return _requestConfig.default.post('/wx/SafetyController/updateSafetySelfCheckingManage', data, {});
  28326. }
  28327. function editRepair(data) {
  28328. return _requestConfig.default.post('/wx/repair/edit', data, {});
  28329. }
  28330. function addRepair(data) {
  28331. return _requestConfig.default.post('/wx/repair/add', data, {});
  28332. }
  28333. function getRepairDispatchById(id) {
  28334. return _requestConfig.default.post('/wx/repair/getById', {
  28335. id: id
  28336. }, {});
  28337. }
  28338. function getDispatchToPerson(data) {
  28339. return _requestConfig.default.post('/wx/repair/getDispatchToPerson', data, {});
  28340. }
  28341. function getCompanyById(data) {
  28342. return _requestConfig.default.post('/wx/repair/getCompanyById', data, {});
  28343. }
  28344. function getWxCompanyTags(e) {
  28345. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  28346. }
  28347. function tagsBind(e) {
  28348. return _requestConfig.default.post('/wx/MnpTagInfoController/bind', e, {});
  28349. }
  28350. function getDetial(e) {
  28351. return _requestConfig.default.post('/wx/meetingAppoint/meetingAppointDetail', e, {});
  28352. }
  28353. function saleControllerGetById(e) {
  28354. return _requestConfig.default.post('/wx/SaleController/getById', {
  28355. id: e
  28356. }, {});
  28357. }
  28358. function getAppUserMain(data) {
  28359. return _requestConfig.default.post('/wx/company/getById', data, {});
  28360. }
  28361. function confirmAudit(data) {
  28362. return _requestConfig.default.post('/wx/meetingAppoint/confirmAudit', data, {});
  28363. }
  28364. function getCompanyTags(e) {
  28365. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags', e, {});
  28366. }
  28367. function getCompanyTagsByQybq(qybq) {
  28368. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTagsByQybq', {
  28369. qybq: qybq
  28370. }, {});
  28371. }
  28372. function companyECdit(data) {
  28373. return _requestConfig.default.post('/wx/company/edit', data, {});
  28374. }
  28375. function tagInfoList(e) {
  28376. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  28377. }
  28378. function findDeptList() {
  28379. return _requestConfig.default.post('/wx/SaleController/findDeptList', {}, {});
  28380. }
  28381. function tagCategoryList() {
  28382. return _requestConfig.default.post('/wx/MnpTagController/tagCategoryList', {}, {});
  28383. }
  28384. function interviewEscalationListAll(id) {
  28385. return _requestConfig.default.post('/wx/interviewEscalation/listAll', {
  28386. companyId: id
  28387. }, {});
  28388. }
  28389. function getUserInfo(data) {
  28390. var laocui_user_info = JSON.parse(uni.getStorageSync('laocui_user_info'));
  28391. return _requestConfig.default.post('/wx/frameUser/getMyInfo?userId=' + laocui_user_info.user.id, {}, {});
  28392. }
  28393. function getRoomInfo(e) {
  28394. return _requestConfig.default.post('/wx/ParkRoomController/getById', {
  28395. id: e
  28396. }, {});
  28397. }
  28398. function getCompanyHouseDetails(e) {
  28399. return _requestConfig.default.post('/wx/company/getById', {
  28400. id: e
  28401. }, {});
  28402. }
  28403. function handleList(e) {
  28404. return _requestConfig.default.post('/wx/workPaneController/handleList', e, {});
  28405. }
  28406. function readList(e) {
  28407. return _requestConfig.default.post('/wx/workPaneController/readList', e, {});
  28408. }
  28409. // handleList?
  28410. function findCompanyTags(e) {
  28411. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags/' + e, {}, {});
  28412. }
  28413. function removeTagsBind(e) {
  28414. return _requestConfig.default.post('/wx/MnpTagInfoController/removeBind', e, {});
  28415. }
  28416. function addInterview(e) {
  28417. return _requestConfig.default.post("/wx/interviewEscalation/add", e, {});
  28418. }
  28419. function editInterview(e) {
  28420. return _requestConfig.default.post("/wx/interviewEscalation/edit", e, {});
  28421. }
  28422. function getInterviewList(e) {
  28423. return _requestConfig.default.post("/wx/interviewEscalation/list", e, {});
  28424. }
  28425. function getInterviewDetails(e) {
  28426. return _requestConfig.default.post("/wx/interviewEscalation/getById", {
  28427. id: e
  28428. }, {});
  28429. }
  28430. function findSafetySelfCheckingPlanById(e) {
  28431. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanById", {
  28432. id: e
  28433. }, {});
  28434. }
  28435. //
  28436. function findSafetySelfCheckingPlanList(e) {
  28437. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanList", e, {});
  28438. }
  28439. function getBySaveStatus(e) {
  28440. return _requestConfig.default.post("/wx/interviewEscalation/getBySaveStatus", {
  28441. createdBy: e
  28442. }, {});
  28443. }
  28444. function companyExamineAdd(e) {
  28445. return _requestConfig.default.post("/wx/company/add", e, {});
  28446. }
  28447. function listByModel(e) {
  28448. return _requestConfig.default.post('/wx/SaleController/findSaleManagementListByRoomId', e, {});
  28449. }
  28450. function listVo(e) {
  28451. // 查询园区列表,不需要参数
  28452. return _requestConfig.default.post('/wx/company/listVo', e, {});
  28453. }
  28454. // /wx/SafetyController/addSafetySelfCheckingPlan
  28455. function addSafetySelfCheckingPlan(e) {
  28456. // 查询园区列表,不需要参数
  28457. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingPlan', _objectSpread({}, e), {});
  28458. }
  28459. function findSafetySelfCheckingManagetById(e) {
  28460. // 查询园区列表,不需要参数
  28461. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManagetById', {
  28462. id: e
  28463. }, {});
  28464. }
  28465. function findSafetySelfCheckingManageList(e) {
  28466. // 查询园区列表,不需要参数
  28467. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManageList', e, {});
  28468. }
  28469. function findYuanQuList() {
  28470. // 查询园区列表,不需要参数
  28471. return _requestConfig.default.post('/wx/SaleController/findYuanQuList', {}, {});
  28472. }
  28473. function findLongPanList(id) {
  28474. // 用园区ID查询楼盘列表
  28475. return _requestConfig.default.post('/wx/SaleController/findLouPanList', {
  28476. id: id
  28477. }, {});
  28478. }
  28479. function findLouDongList(id) {
  28480. // 用园区ID查询楼盘列表
  28481. return _requestConfig.default.post('/wx/SaleController/findLouDongList', {
  28482. id: id
  28483. }, {});
  28484. }
  28485. function clickCollect(e) {
  28486. return _requestConfig.default.post('/wx/parkActivity/clickCollect', e, {});
  28487. }
  28488. function insertRegisSignInfo(e) {
  28489. return _requestConfig.default.post('/wx/parkActivity/insertRegisSignInfo', e, {});
  28490. }
  28491. function richScan(e) {
  28492. return _requestConfig.default.post('/wx/parkActivity/richScan', e, {});
  28493. }
  28494. function getActivityById(id, signInCode, userId) {
  28495. return _requestConfig.default.get('/wx/parkActivity/getBySignInCode?id=' + id + '&userId=' + userId + "&signInCode=" + signInCode, {}, {});
  28496. }
  28497. // /wx/userPower/getUserPower?userId=1088765543780974592
  28498. function getUserPower(e) {
  28499. return _requestConfig.default.post('/wx/userPower/getUserPower', {
  28500. userId: e
  28501. }, {});
  28502. }
  28503. function editPassword(e) {
  28504. return _requestConfig.default.post('/wx/frameUser/editPassword', e, {});
  28505. }
  28506. function updateListRectificationManagement(e) {
  28507. return _requestConfig.default.post('/wx/RectificationController/updateListRectificationManagement', e, {});
  28508. }
  28509. // /wx/RectificationController/findUserListByRoleWuye
  28510. function findUserListByRoleWuye() {
  28511. // 用园区ID查询楼盘列表
  28512. return _requestConfig.default.post('/wx/RectificationController/findUserListByRoleWuye', {}, {});
  28513. }
  28514. function listAllUserMain() {
  28515. // 用园区ID查询楼盘列表
  28516. return _requestConfig.default.post('/wx/UserMainExpandController/listAllUserMain', {}, {});
  28517. }
  28518. function userList(e) {
  28519. // http://192.168.2.112:9011/wx/frameUser/userList
  28520. return _requestConfig.default.post('/wx/frameUser/userList', e, {});
  28521. }
  28522. function findAllSimpleCompanies(e) {
  28523. // http://192.168.2.112:9011/wx/frameUser/userList
  28524. return _requestConfig.default.post('/wx/company/findAllSimpleCompanies', {
  28525. searchInfo: e.qymc,
  28526. pageNum: 1,
  28527. pageSize: 10000
  28528. }, {});
  28529. }
  28530. function findTrackUserList() {
  28531. // http://192.168.2.112:9011/wx/frameUser/userList
  28532. return _requestConfig.default.post('/wx/SaleController/findTrackUserList', {}, {});
  28533. }
  28534. function getSelectUserTwo(e) {
  28535. // 用园区ID查询楼盘列表
  28536. return _requestConfig.default.post('/wx/frameUser/getSelectUserTwo', {
  28537. searchName: e
  28538. }, {});
  28539. }
  28540. function getSelectDeptTwo(e) {
  28541. // 用园区ID查询楼盘列表
  28542. return _requestConfig.default.post('/wx/frameUser/getSelectDeptTwo', {
  28543. searchName: e
  28544. }, {});
  28545. }
  28546. function findRoomInfoListByIds(e) {
  28547. // 用园区ID查询楼盘列表
  28548. return _requestConfig.default.post('/wx/SaleController/findRoomInfoListByIds', {
  28549. ids: e
  28550. }, {});
  28551. }
  28552. function findCompanyList() {
  28553. // 用园区ID查询楼盘列表
  28554. return _requestConfig.default.post('/wx/SaleController/findCompanyList', {}, {});
  28555. }
  28556. function addyixiang(e) {
  28557. return _requestConfig.default.post('/wx/SaleController/add', e, {});
  28558. }
  28559. function editSave(e) {
  28560. return _requestConfig.default.post('/wx/SaleController/editSave', e, {});
  28561. }
  28562. function findCompanyInfoList(data) {
  28563. return _requestConfig.default.post("/wx/SaleController/findCompanyInfoList", data, {});
  28564. }
  28565. function findRoomByCondition(params) {
  28566. // 用园区ID查询楼盘列表
  28567. return _requestConfig.default.post('/wx/SaleController/findRoomByCondition', params, {});
  28568. }
  28569. function getCompanyAll(qymc) {
  28570. return _requestConfig.default.post('/wx/company/listAll', {
  28571. qymc: qymc ? qymc : ""
  28572. }, {});
  28573. }
  28574. function getByCodes(params) {
  28575. // 用园区ID查询楼盘列表
  28576. return _requestConfig.default.post('/wx/sysDict/getByCodes', {
  28577. codes: params
  28578. }, {});
  28579. }
  28580. function list(data) {
  28581. return _requestConfig.default.post(parkActivity + '/getMeetingAppointList', data, {});
  28582. }
  28583. function listApp(data) {
  28584. return _requestConfig.default.post(parkActivity + '/getMeetingAppointListApp', data, {});
  28585. }
  28586. function cancelAppoint(data) {
  28587. return _requestConfig.default.post(parkActivity + '/cancelAppoint', data, {});
  28588. }
  28589. // /wx/SaleController/
  28590. function getRepairList(data) {
  28591. return _requestConfig.default.post('/wx/repair/list', data, {});
  28592. }
  28593. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28594. /***/ }),
  28595. /***/ 68:
  28596. /*!**************************************!*\
  28597. !*** ./node_modules/qs/lib/index.js ***!
  28598. \**************************************/
  28599. /*! no static exports found */
  28600. /***/ (function(module, exports, __webpack_require__) {
  28601. "use strict";
  28602. var stringify = __webpack_require__(/*! ./stringify */ 69);
  28603. var parse = __webpack_require__(/*! ./parse */ 83);
  28604. var formats = __webpack_require__(/*! ./formats */ 82);
  28605. module.exports = {
  28606. formats: formats,
  28607. parse: parse,
  28608. stringify: stringify
  28609. };
  28610. /***/ }),
  28611. /***/ 69:
  28612. /*!******************************************!*\
  28613. !*** ./node_modules/qs/lib/stringify.js ***!
  28614. \******************************************/
  28615. /*! no static exports found */
  28616. /***/ (function(module, exports, __webpack_require__) {
  28617. "use strict";
  28618. var getSideChannel = __webpack_require__(/*! side-channel */ 70);
  28619. var utils = __webpack_require__(/*! ./utils */ 81);
  28620. var formats = __webpack_require__(/*! ./formats */ 82);
  28621. var has = Object.prototype.hasOwnProperty;
  28622. var arrayPrefixGenerators = {
  28623. brackets: function brackets(prefix) {
  28624. return prefix + '[]';
  28625. },
  28626. comma: 'comma',
  28627. indices: function indices(prefix, key) {
  28628. return prefix + '[' + key + ']';
  28629. },
  28630. repeat: function repeat(prefix) {
  28631. return prefix;
  28632. }
  28633. };
  28634. var isArray = Array.isArray;
  28635. var split = String.prototype.split;
  28636. var push = Array.prototype.push;
  28637. var pushToArray = function (arr, valueOrArray) {
  28638. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  28639. };
  28640. var toISO = Date.prototype.toISOString;
  28641. var defaultFormat = formats['default'];
  28642. var defaults = {
  28643. addQueryPrefix: false,
  28644. allowDots: false,
  28645. charset: 'utf-8',
  28646. charsetSentinel: false,
  28647. delimiter: '&',
  28648. encode: true,
  28649. encoder: utils.encode,
  28650. encodeValuesOnly: false,
  28651. format: defaultFormat,
  28652. formatter: formats.formatters[defaultFormat],
  28653. // deprecated
  28654. indices: false,
  28655. serializeDate: function serializeDate(date) {
  28656. return toISO.call(date);
  28657. },
  28658. skipNulls: false,
  28659. strictNullHandling: false
  28660. };
  28661. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  28662. return typeof v === 'string'
  28663. || typeof v === 'number'
  28664. || typeof v === 'boolean'
  28665. || typeof v === 'symbol'
  28666. || typeof v === 'bigint';
  28667. };
  28668. var sentinel = {};
  28669. var stringify = function stringify(
  28670. object,
  28671. prefix,
  28672. generateArrayPrefix,
  28673. commaRoundTrip,
  28674. strictNullHandling,
  28675. skipNulls,
  28676. encoder,
  28677. filter,
  28678. sort,
  28679. allowDots,
  28680. serializeDate,
  28681. format,
  28682. formatter,
  28683. encodeValuesOnly,
  28684. charset,
  28685. sideChannel
  28686. ) {
  28687. var obj = object;
  28688. var tmpSc = sideChannel;
  28689. var step = 0;
  28690. var findFlag = false;
  28691. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  28692. // Where object last appeared in the ref tree
  28693. var pos = tmpSc.get(object);
  28694. step += 1;
  28695. if (typeof pos !== 'undefined') {
  28696. if (pos === step) {
  28697. throw new RangeError('Cyclic object value');
  28698. } else {
  28699. findFlag = true; // Break while
  28700. }
  28701. }
  28702. if (typeof tmpSc.get(sentinel) === 'undefined') {
  28703. step = 0;
  28704. }
  28705. }
  28706. if (typeof filter === 'function') {
  28707. obj = filter(prefix, obj);
  28708. } else if (obj instanceof Date) {
  28709. obj = serializeDate(obj);
  28710. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  28711. obj = utils.maybeMap(obj, function (value) {
  28712. if (value instanceof Date) {
  28713. return serializeDate(value);
  28714. }
  28715. return value;
  28716. });
  28717. }
  28718. if (obj === null) {
  28719. if (strictNullHandling) {
  28720. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  28721. }
  28722. obj = '';
  28723. }
  28724. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  28725. if (encoder) {
  28726. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  28727. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  28728. var valuesArray = split.call(String(obj), ',');
  28729. var valuesJoined = '';
  28730. for (var i = 0; i < valuesArray.length; ++i) {
  28731. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  28732. }
  28733. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
  28734. }
  28735. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  28736. }
  28737. return [formatter(prefix) + '=' + formatter(String(obj))];
  28738. }
  28739. var values = [];
  28740. if (typeof obj === 'undefined') {
  28741. return values;
  28742. }
  28743. var objKeys;
  28744. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  28745. // we need to join elements in
  28746. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  28747. } else if (isArray(filter)) {
  28748. objKeys = filter;
  28749. } else {
  28750. var keys = Object.keys(obj);
  28751. objKeys = sort ? keys.sort(sort) : keys;
  28752. }
  28753. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
  28754. for (var j = 0; j < objKeys.length; ++j) {
  28755. var key = objKeys[j];
  28756. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  28757. if (skipNulls && value === null) {
  28758. continue;
  28759. }
  28760. var keyPrefix = isArray(obj)
  28761. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
  28762. : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
  28763. sideChannel.set(object, step);
  28764. var valueSideChannel = getSideChannel();
  28765. valueSideChannel.set(sentinel, sideChannel);
  28766. pushToArray(values, stringify(
  28767. value,
  28768. keyPrefix,
  28769. generateArrayPrefix,
  28770. commaRoundTrip,
  28771. strictNullHandling,
  28772. skipNulls,
  28773. encoder,
  28774. filter,
  28775. sort,
  28776. allowDots,
  28777. serializeDate,
  28778. format,
  28779. formatter,
  28780. encodeValuesOnly,
  28781. charset,
  28782. valueSideChannel
  28783. ));
  28784. }
  28785. return values;
  28786. };
  28787. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  28788. if (!opts) {
  28789. return defaults;
  28790. }
  28791. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  28792. throw new TypeError('Encoder has to be a function.');
  28793. }
  28794. var charset = opts.charset || defaults.charset;
  28795. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  28796. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  28797. }
  28798. var format = formats['default'];
  28799. if (typeof opts.format !== 'undefined') {
  28800. if (!has.call(formats.formatters, opts.format)) {
  28801. throw new TypeError('Unknown format option provided.');
  28802. }
  28803. format = opts.format;
  28804. }
  28805. var formatter = formats.formatters[format];
  28806. var filter = defaults.filter;
  28807. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  28808. filter = opts.filter;
  28809. }
  28810. return {
  28811. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  28812. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  28813. charset: charset,
  28814. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  28815. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  28816. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  28817. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  28818. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  28819. filter: filter,
  28820. format: format,
  28821. formatter: formatter,
  28822. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  28823. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  28824. sort: typeof opts.sort === 'function' ? opts.sort : null,
  28825. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  28826. };
  28827. };
  28828. module.exports = function (object, opts) {
  28829. var obj = object;
  28830. var options = normalizeStringifyOptions(opts);
  28831. var objKeys;
  28832. var filter;
  28833. if (typeof options.filter === 'function') {
  28834. filter = options.filter;
  28835. obj = filter('', obj);
  28836. } else if (isArray(options.filter)) {
  28837. filter = options.filter;
  28838. objKeys = filter;
  28839. }
  28840. var keys = [];
  28841. if (typeof obj !== 'object' || obj === null) {
  28842. return '';
  28843. }
  28844. var arrayFormat;
  28845. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  28846. arrayFormat = opts.arrayFormat;
  28847. } else if (opts && 'indices' in opts) {
  28848. arrayFormat = opts.indices ? 'indices' : 'repeat';
  28849. } else {
  28850. arrayFormat = 'indices';
  28851. }
  28852. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  28853. if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
  28854. throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
  28855. }
  28856. var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
  28857. if (!objKeys) {
  28858. objKeys = Object.keys(obj);
  28859. }
  28860. if (options.sort) {
  28861. objKeys.sort(options.sort);
  28862. }
  28863. var sideChannel = getSideChannel();
  28864. for (var i = 0; i < objKeys.length; ++i) {
  28865. var key = objKeys[i];
  28866. if (options.skipNulls && obj[key] === null) {
  28867. continue;
  28868. }
  28869. pushToArray(keys, stringify(
  28870. obj[key],
  28871. key,
  28872. generateArrayPrefix,
  28873. commaRoundTrip,
  28874. options.strictNullHandling,
  28875. options.skipNulls,
  28876. options.encode ? options.encoder : null,
  28877. options.filter,
  28878. options.sort,
  28879. options.allowDots,
  28880. options.serializeDate,
  28881. options.format,
  28882. options.formatter,
  28883. options.encodeValuesOnly,
  28884. options.charset,
  28885. sideChannel
  28886. ));
  28887. }
  28888. var joined = keys.join(options.delimiter);
  28889. var prefix = options.addQueryPrefix === true ? '?' : '';
  28890. if (options.charsetSentinel) {
  28891. if (options.charset === 'iso-8859-1') {
  28892. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  28893. prefix += 'utf8=%26%2310003%3B&';
  28894. } else {
  28895. // encodeURIComponent('✓')
  28896. prefix += 'utf8=%E2%9C%93&';
  28897. }
  28898. }
  28899. return joined.length > 0 ? prefix + joined : '';
  28900. };
  28901. /***/ }),
  28902. /***/ 7:
  28903. /*!*********************************************************************!*\
  28904. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  28905. \*********************************************************************/
  28906. /*! no static exports found */
  28907. /***/ (function(module, exports) {
  28908. function _iterableToArrayLimit(r, l) {
  28909. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  28910. if (null != t) {
  28911. var e,
  28912. n,
  28913. i,
  28914. u,
  28915. a = [],
  28916. f = !0,
  28917. o = !1;
  28918. try {
  28919. if (i = (t = t.call(r)).next, 0 === l) {
  28920. if (Object(t) !== t) return;
  28921. f = !1;
  28922. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  28923. ;
  28924. }
  28925. } catch (r) {
  28926. o = !0, n = r;
  28927. } finally {
  28928. try {
  28929. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  28930. } finally {
  28931. if (o) throw n;
  28932. }
  28933. }
  28934. return a;
  28935. }
  28936. }
  28937. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  28938. /***/ }),
  28939. /***/ 70:
  28940. /*!********************************************!*\
  28941. !*** ./node_modules/side-channel/index.js ***!
  28942. \********************************************/
  28943. /*! no static exports found */
  28944. /***/ (function(module, exports, __webpack_require__) {
  28945. "use strict";
  28946. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 71);
  28947. var callBound = __webpack_require__(/*! call-bind/callBound */ 77);
  28948. var inspect = __webpack_require__(/*! object-inspect */ 79);
  28949. var $TypeError = GetIntrinsic('%TypeError%');
  28950. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  28951. var $Map = GetIntrinsic('%Map%', true);
  28952. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  28953. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  28954. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  28955. var $mapGet = callBound('Map.prototype.get', true);
  28956. var $mapSet = callBound('Map.prototype.set', true);
  28957. var $mapHas = callBound('Map.prototype.has', true);
  28958. /*
  28959. * This function traverses the list returning the node corresponding to the
  28960. * given key.
  28961. *
  28962. * That node is also moved to the head of the list, so that if it's accessed
  28963. * again we don't need to traverse the whole list. By doing so, all the recently
  28964. * used nodes can be accessed relatively quickly.
  28965. */
  28966. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  28967. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  28968. if (curr.key === key) {
  28969. prev.next = curr.next;
  28970. curr.next = list.next;
  28971. list.next = curr; // eslint-disable-line no-param-reassign
  28972. return curr;
  28973. }
  28974. }
  28975. };
  28976. var listGet = function (objects, key) {
  28977. var node = listGetNode(objects, key);
  28978. return node && node.value;
  28979. };
  28980. var listSet = function (objects, key, value) {
  28981. var node = listGetNode(objects, key);
  28982. if (node) {
  28983. node.value = value;
  28984. } else {
  28985. // Prepend the new node to the beginning of the list
  28986. objects.next = { // eslint-disable-line no-param-reassign
  28987. key: key,
  28988. next: objects.next,
  28989. value: value
  28990. };
  28991. }
  28992. };
  28993. var listHas = function (objects, key) {
  28994. return !!listGetNode(objects, key);
  28995. };
  28996. module.exports = function getSideChannel() {
  28997. var $wm;
  28998. var $m;
  28999. var $o;
  29000. var channel = {
  29001. assert: function (key) {
  29002. if (!channel.has(key)) {
  29003. throw new $TypeError('Side channel does not contain ' + inspect(key));
  29004. }
  29005. },
  29006. get: function (key) { // eslint-disable-line consistent-return
  29007. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  29008. if ($wm) {
  29009. return $weakMapGet($wm, key);
  29010. }
  29011. } else if ($Map) {
  29012. if ($m) {
  29013. return $mapGet($m, key);
  29014. }
  29015. } else {
  29016. if ($o) { // eslint-disable-line no-lonely-if
  29017. return listGet($o, key);
  29018. }
  29019. }
  29020. },
  29021. has: function (key) {
  29022. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  29023. if ($wm) {
  29024. return $weakMapHas($wm, key);
  29025. }
  29026. } else if ($Map) {
  29027. if ($m) {
  29028. return $mapHas($m, key);
  29029. }
  29030. } else {
  29031. if ($o) { // eslint-disable-line no-lonely-if
  29032. return listHas($o, key);
  29033. }
  29034. }
  29035. return false;
  29036. },
  29037. set: function (key, value) {
  29038. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  29039. if (!$wm) {
  29040. $wm = new $WeakMap();
  29041. }
  29042. $weakMapSet($wm, key, value);
  29043. } else if ($Map) {
  29044. if (!$m) {
  29045. $m = new $Map();
  29046. }
  29047. $mapSet($m, key, value);
  29048. } else {
  29049. if (!$o) {
  29050. /*
  29051. * Initialize the linked list as an empty node, so that we don't have
  29052. * to special-case handling of the first node: we can always refer to
  29053. * it as (previous node).next, instead of something like (list).head
  29054. */
  29055. $o = { key: {}, next: null };
  29056. }
  29057. listSet($o, key, value);
  29058. }
  29059. }
  29060. };
  29061. return channel;
  29062. };
  29063. /***/ }),
  29064. /***/ 71:
  29065. /*!*********************************************!*\
  29066. !*** ./node_modules/get-intrinsic/index.js ***!
  29067. \*********************************************/
  29068. /*! no static exports found */
  29069. /***/ (function(module, exports, __webpack_require__) {
  29070. "use strict";
  29071. var undefined;
  29072. var $SyntaxError = SyntaxError;
  29073. var $Function = Function;
  29074. var $TypeError = TypeError;
  29075. // eslint-disable-next-line consistent-return
  29076. var getEvalledConstructor = function (expressionSyntax) {
  29077. try {
  29078. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  29079. } catch (e) {}
  29080. };
  29081. var $gOPD = Object.getOwnPropertyDescriptor;
  29082. if ($gOPD) {
  29083. try {
  29084. $gOPD({}, '');
  29085. } catch (e) {
  29086. $gOPD = null; // this is IE 8, which has a broken gOPD
  29087. }
  29088. }
  29089. var throwTypeError = function () {
  29090. throw new $TypeError();
  29091. };
  29092. var ThrowTypeError = $gOPD
  29093. ? (function () {
  29094. try {
  29095. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  29096. arguments.callee; // IE 8 does not throw here
  29097. return throwTypeError;
  29098. } catch (calleeThrows) {
  29099. try {
  29100. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  29101. return $gOPD(arguments, 'callee').get;
  29102. } catch (gOPDthrows) {
  29103. return throwTypeError;
  29104. }
  29105. }
  29106. }())
  29107. : throwTypeError;
  29108. var hasSymbols = __webpack_require__(/*! has-symbols */ 72)();
  29109. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  29110. var needsEval = {};
  29111. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  29112. var INTRINSICS = {
  29113. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  29114. '%Array%': Array,
  29115. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  29116. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  29117. '%AsyncFromSyncIteratorPrototype%': undefined,
  29118. '%AsyncFunction%': needsEval,
  29119. '%AsyncGenerator%': needsEval,
  29120. '%AsyncGeneratorFunction%': needsEval,
  29121. '%AsyncIteratorPrototype%': needsEval,
  29122. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  29123. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  29124. '%Boolean%': Boolean,
  29125. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  29126. '%Date%': Date,
  29127. '%decodeURI%': decodeURI,
  29128. '%decodeURIComponent%': decodeURIComponent,
  29129. '%encodeURI%': encodeURI,
  29130. '%encodeURIComponent%': encodeURIComponent,
  29131. '%Error%': Error,
  29132. '%eval%': eval, // eslint-disable-line no-eval
  29133. '%EvalError%': EvalError,
  29134. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  29135. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  29136. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  29137. '%Function%': $Function,
  29138. '%GeneratorFunction%': needsEval,
  29139. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  29140. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  29141. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  29142. '%isFinite%': isFinite,
  29143. '%isNaN%': isNaN,
  29144. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  29145. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  29146. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  29147. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  29148. '%Math%': Math,
  29149. '%Number%': Number,
  29150. '%Object%': Object,
  29151. '%parseFloat%': parseFloat,
  29152. '%parseInt%': parseInt,
  29153. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  29154. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  29155. '%RangeError%': RangeError,
  29156. '%ReferenceError%': ReferenceError,
  29157. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  29158. '%RegExp%': RegExp,
  29159. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  29160. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  29161. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  29162. '%String%': String,
  29163. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  29164. '%Symbol%': hasSymbols ? Symbol : undefined,
  29165. '%SyntaxError%': $SyntaxError,
  29166. '%ThrowTypeError%': ThrowTypeError,
  29167. '%TypedArray%': TypedArray,
  29168. '%TypeError%': $TypeError,
  29169. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  29170. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  29171. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  29172. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  29173. '%URIError%': URIError,
  29174. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  29175. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  29176. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  29177. };
  29178. var doEval = function doEval(name) {
  29179. var value;
  29180. if (name === '%AsyncFunction%') {
  29181. value = getEvalledConstructor('async function () {}');
  29182. } else if (name === '%GeneratorFunction%') {
  29183. value = getEvalledConstructor('function* () {}');
  29184. } else if (name === '%AsyncGeneratorFunction%') {
  29185. value = getEvalledConstructor('async function* () {}');
  29186. } else if (name === '%AsyncGenerator%') {
  29187. var fn = doEval('%AsyncGeneratorFunction%');
  29188. if (fn) {
  29189. value = fn.prototype;
  29190. }
  29191. } else if (name === '%AsyncIteratorPrototype%') {
  29192. var gen = doEval('%AsyncGenerator%');
  29193. if (gen) {
  29194. value = getProto(gen.prototype);
  29195. }
  29196. }
  29197. INTRINSICS[name] = value;
  29198. return value;
  29199. };
  29200. var LEGACY_ALIASES = {
  29201. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  29202. '%ArrayPrototype%': ['Array', 'prototype'],
  29203. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  29204. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  29205. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  29206. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  29207. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  29208. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  29209. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  29210. '%BooleanPrototype%': ['Boolean', 'prototype'],
  29211. '%DataViewPrototype%': ['DataView', 'prototype'],
  29212. '%DatePrototype%': ['Date', 'prototype'],
  29213. '%ErrorPrototype%': ['Error', 'prototype'],
  29214. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  29215. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  29216. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  29217. '%FunctionPrototype%': ['Function', 'prototype'],
  29218. '%Generator%': ['GeneratorFunction', 'prototype'],
  29219. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  29220. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  29221. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  29222. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  29223. '%JSONParse%': ['JSON', 'parse'],
  29224. '%JSONStringify%': ['JSON', 'stringify'],
  29225. '%MapPrototype%': ['Map', 'prototype'],
  29226. '%NumberPrototype%': ['Number', 'prototype'],
  29227. '%ObjectPrototype%': ['Object', 'prototype'],
  29228. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  29229. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  29230. '%PromisePrototype%': ['Promise', 'prototype'],
  29231. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  29232. '%Promise_all%': ['Promise', 'all'],
  29233. '%Promise_reject%': ['Promise', 'reject'],
  29234. '%Promise_resolve%': ['Promise', 'resolve'],
  29235. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  29236. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  29237. '%RegExpPrototype%': ['RegExp', 'prototype'],
  29238. '%SetPrototype%': ['Set', 'prototype'],
  29239. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  29240. '%StringPrototype%': ['String', 'prototype'],
  29241. '%SymbolPrototype%': ['Symbol', 'prototype'],
  29242. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  29243. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  29244. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  29245. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  29246. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  29247. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  29248. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  29249. '%URIErrorPrototype%': ['URIError', 'prototype'],
  29250. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  29251. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  29252. };
  29253. var bind = __webpack_require__(/*! function-bind */ 74);
  29254. var hasOwn = __webpack_require__(/*! has */ 76);
  29255. var $concat = bind.call(Function.call, Array.prototype.concat);
  29256. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  29257. var $replace = bind.call(Function.call, String.prototype.replace);
  29258. var $strSlice = bind.call(Function.call, String.prototype.slice);
  29259. var $exec = bind.call(Function.call, RegExp.prototype.exec);
  29260. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  29261. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  29262. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  29263. var stringToPath = function stringToPath(string) {
  29264. var first = $strSlice(string, 0, 1);
  29265. var last = $strSlice(string, -1);
  29266. if (first === '%' && last !== '%') {
  29267. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  29268. } else if (last === '%' && first !== '%') {
  29269. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  29270. }
  29271. var result = [];
  29272. $replace(string, rePropName, function (match, number, quote, subString) {
  29273. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  29274. });
  29275. return result;
  29276. };
  29277. /* end adaptation */
  29278. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  29279. var intrinsicName = name;
  29280. var alias;
  29281. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  29282. alias = LEGACY_ALIASES[intrinsicName];
  29283. intrinsicName = '%' + alias[0] + '%';
  29284. }
  29285. if (hasOwn(INTRINSICS, intrinsicName)) {
  29286. var value = INTRINSICS[intrinsicName];
  29287. if (value === needsEval) {
  29288. value = doEval(intrinsicName);
  29289. }
  29290. if (typeof value === 'undefined' && !allowMissing) {
  29291. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  29292. }
  29293. return {
  29294. alias: alias,
  29295. name: intrinsicName,
  29296. value: value
  29297. };
  29298. }
  29299. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  29300. };
  29301. module.exports = function GetIntrinsic(name, allowMissing) {
  29302. if (typeof name !== 'string' || name.length === 0) {
  29303. throw new $TypeError('intrinsic name must be a non-empty string');
  29304. }
  29305. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  29306. throw new $TypeError('"allowMissing" argument must be a boolean');
  29307. }
  29308. if ($exec(/^%?[^%]*%?$/, name) === null) {
  29309. throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
  29310. }
  29311. var parts = stringToPath(name);
  29312. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  29313. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  29314. var intrinsicRealName = intrinsic.name;
  29315. var value = intrinsic.value;
  29316. var skipFurtherCaching = false;
  29317. var alias = intrinsic.alias;
  29318. if (alias) {
  29319. intrinsicBaseName = alias[0];
  29320. $spliceApply(parts, $concat([0, 1], alias));
  29321. }
  29322. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  29323. var part = parts[i];
  29324. var first = $strSlice(part, 0, 1);
  29325. var last = $strSlice(part, -1);
  29326. if (
  29327. (
  29328. (first === '"' || first === "'" || first === '`')
  29329. || (last === '"' || last === "'" || last === '`')
  29330. )
  29331. && first !== last
  29332. ) {
  29333. throw new $SyntaxError('property names with quotes must have matching quotes');
  29334. }
  29335. if (part === 'constructor' || !isOwn) {
  29336. skipFurtherCaching = true;
  29337. }
  29338. intrinsicBaseName += '.' + part;
  29339. intrinsicRealName = '%' + intrinsicBaseName + '%';
  29340. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  29341. value = INTRINSICS[intrinsicRealName];
  29342. } else if (value != null) {
  29343. if (!(part in value)) {
  29344. if (!allowMissing) {
  29345. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  29346. }
  29347. return void undefined;
  29348. }
  29349. if ($gOPD && (i + 1) >= parts.length) {
  29350. var desc = $gOPD(value, part);
  29351. isOwn = !!desc;
  29352. // By convention, when a data property is converted to an accessor
  29353. // property to emulate a data property that does not suffer from
  29354. // the override mistake, that accessor's getter is marked with
  29355. // an `originalValue` property. Here, when we detect this, we
  29356. // uphold the illusion by pretending to see that original data
  29357. // property, i.e., returning the value rather than the getter
  29358. // itself.
  29359. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  29360. value = desc.get;
  29361. } else {
  29362. value = value[part];
  29363. }
  29364. } else {
  29365. isOwn = hasOwn(value, part);
  29366. value = value[part];
  29367. }
  29368. if (isOwn && !skipFurtherCaching) {
  29369. INTRINSICS[intrinsicRealName] = value;
  29370. }
  29371. }
  29372. }
  29373. return value;
  29374. };
  29375. /***/ }),
  29376. /***/ 72:
  29377. /*!*******************************************!*\
  29378. !*** ./node_modules/has-symbols/index.js ***!
  29379. \*******************************************/
  29380. /*! no static exports found */
  29381. /***/ (function(module, exports, __webpack_require__) {
  29382. "use strict";
  29383. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  29384. var hasSymbolSham = __webpack_require__(/*! ./shams */ 73);
  29385. module.exports = function hasNativeSymbols() {
  29386. if (typeof origSymbol !== 'function') { return false; }
  29387. if (typeof Symbol !== 'function') { return false; }
  29388. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  29389. if (typeof Symbol('bar') !== 'symbol') { return false; }
  29390. return hasSymbolSham();
  29391. };
  29392. /***/ }),
  29393. /***/ 73:
  29394. /*!*******************************************!*\
  29395. !*** ./node_modules/has-symbols/shams.js ***!
  29396. \*******************************************/
  29397. /*! no static exports found */
  29398. /***/ (function(module, exports, __webpack_require__) {
  29399. "use strict";
  29400. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  29401. module.exports = function hasSymbols() {
  29402. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  29403. if (typeof Symbol.iterator === 'symbol') { return true; }
  29404. var obj = {};
  29405. var sym = Symbol('test');
  29406. var symObj = Object(sym);
  29407. if (typeof sym === 'string') { return false; }
  29408. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  29409. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  29410. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  29411. // if (sym instanceof Symbol) { return false; }
  29412. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  29413. // if (!(symObj instanceof Symbol)) { return false; }
  29414. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  29415. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  29416. var symVal = 42;
  29417. obj[sym] = symVal;
  29418. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  29419. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  29420. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  29421. var syms = Object.getOwnPropertySymbols(obj);
  29422. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  29423. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  29424. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  29425. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  29426. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  29427. }
  29428. return true;
  29429. };
  29430. /***/ }),
  29431. /***/ 74:
  29432. /*!*********************************************!*\
  29433. !*** ./node_modules/function-bind/index.js ***!
  29434. \*********************************************/
  29435. /*! no static exports found */
  29436. /***/ (function(module, exports, __webpack_require__) {
  29437. "use strict";
  29438. var implementation = __webpack_require__(/*! ./implementation */ 75);
  29439. module.exports = Function.prototype.bind || implementation;
  29440. /***/ }),
  29441. /***/ 75:
  29442. /*!******************************************************!*\
  29443. !*** ./node_modules/function-bind/implementation.js ***!
  29444. \******************************************************/
  29445. /*! no static exports found */
  29446. /***/ (function(module, exports, __webpack_require__) {
  29447. "use strict";
  29448. /* eslint no-invalid-this: 1 */
  29449. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  29450. var slice = Array.prototype.slice;
  29451. var toStr = Object.prototype.toString;
  29452. var funcType = '[object Function]';
  29453. module.exports = function bind(that) {
  29454. var target = this;
  29455. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  29456. throw new TypeError(ERROR_MESSAGE + target);
  29457. }
  29458. var args = slice.call(arguments, 1);
  29459. var bound;
  29460. var binder = function () {
  29461. if (this instanceof bound) {
  29462. var result = target.apply(
  29463. this,
  29464. args.concat(slice.call(arguments))
  29465. );
  29466. if (Object(result) === result) {
  29467. return result;
  29468. }
  29469. return this;
  29470. } else {
  29471. return target.apply(
  29472. that,
  29473. args.concat(slice.call(arguments))
  29474. );
  29475. }
  29476. };
  29477. var boundLength = Math.max(0, target.length - args.length);
  29478. var boundArgs = [];
  29479. for (var i = 0; i < boundLength; i++) {
  29480. boundArgs.push('$' + i);
  29481. }
  29482. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  29483. if (target.prototype) {
  29484. var Empty = function Empty() {};
  29485. Empty.prototype = target.prototype;
  29486. bound.prototype = new Empty();
  29487. Empty.prototype = null;
  29488. }
  29489. return bound;
  29490. };
  29491. /***/ }),
  29492. /***/ 76:
  29493. /*!***************************************!*\
  29494. !*** ./node_modules/has/src/index.js ***!
  29495. \***************************************/
  29496. /*! no static exports found */
  29497. /***/ (function(module, exports, __webpack_require__) {
  29498. "use strict";
  29499. var bind = __webpack_require__(/*! function-bind */ 74);
  29500. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  29501. /***/ }),
  29502. /***/ 77:
  29503. /*!*********************************************!*\
  29504. !*** ./node_modules/call-bind/callBound.js ***!
  29505. \*********************************************/
  29506. /*! no static exports found */
  29507. /***/ (function(module, exports, __webpack_require__) {
  29508. "use strict";
  29509. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 71);
  29510. var callBind = __webpack_require__(/*! ./ */ 78);
  29511. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  29512. module.exports = function callBoundIntrinsic(name, allowMissing) {
  29513. var intrinsic = GetIntrinsic(name, !!allowMissing);
  29514. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  29515. return callBind(intrinsic);
  29516. }
  29517. return intrinsic;
  29518. };
  29519. /***/ }),
  29520. /***/ 78:
  29521. /*!*****************************************!*\
  29522. !*** ./node_modules/call-bind/index.js ***!
  29523. \*****************************************/
  29524. /*! no static exports found */
  29525. /***/ (function(module, exports, __webpack_require__) {
  29526. "use strict";
  29527. var bind = __webpack_require__(/*! function-bind */ 74);
  29528. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 71);
  29529. var $apply = GetIntrinsic('%Function.prototype.apply%');
  29530. var $call = GetIntrinsic('%Function.prototype.call%');
  29531. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  29532. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  29533. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  29534. var $max = GetIntrinsic('%Math.max%');
  29535. if ($defineProperty) {
  29536. try {
  29537. $defineProperty({}, 'a', { value: 1 });
  29538. } catch (e) {
  29539. // IE 8 has a broken defineProperty
  29540. $defineProperty = null;
  29541. }
  29542. }
  29543. module.exports = function callBind(originalFunction) {
  29544. var func = $reflectApply(bind, $call, arguments);
  29545. if ($gOPD && $defineProperty) {
  29546. var desc = $gOPD(func, 'length');
  29547. if (desc.configurable) {
  29548. // original length, plus the receiver, minus any additional arguments (after the receiver)
  29549. $defineProperty(
  29550. func,
  29551. 'length',
  29552. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  29553. );
  29554. }
  29555. }
  29556. return func;
  29557. };
  29558. var applyBind = function applyBind() {
  29559. return $reflectApply(bind, $apply, arguments);
  29560. };
  29561. if ($defineProperty) {
  29562. $defineProperty(module.exports, 'apply', { value: applyBind });
  29563. } else {
  29564. module.exports.apply = applyBind;
  29565. }
  29566. /***/ }),
  29567. /***/ 79:
  29568. /*!**********************************************!*\
  29569. !*** ./node_modules/object-inspect/index.js ***!
  29570. \**********************************************/
  29571. /*! no static exports found */
  29572. /***/ (function(module, exports, __webpack_require__) {
  29573. var hasMap = typeof Map === 'function' && Map.prototype;
  29574. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  29575. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  29576. var mapForEach = hasMap && Map.prototype.forEach;
  29577. var hasSet = typeof Set === 'function' && Set.prototype;
  29578. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  29579. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  29580. var setForEach = hasSet && Set.prototype.forEach;
  29581. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  29582. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  29583. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  29584. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  29585. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  29586. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  29587. var booleanValueOf = Boolean.prototype.valueOf;
  29588. var objectToString = Object.prototype.toString;
  29589. var functionToString = Function.prototype.toString;
  29590. var $match = String.prototype.match;
  29591. var $slice = String.prototype.slice;
  29592. var $replace = String.prototype.replace;
  29593. var $toUpperCase = String.prototype.toUpperCase;
  29594. var $toLowerCase = String.prototype.toLowerCase;
  29595. var $test = RegExp.prototype.test;
  29596. var $concat = Array.prototype.concat;
  29597. var $join = Array.prototype.join;
  29598. var $arrSlice = Array.prototype.slice;
  29599. var $floor = Math.floor;
  29600. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  29601. var gOPS = Object.getOwnPropertySymbols;
  29602. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  29603. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  29604. // ie, `has-tostringtag/shams
  29605. var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
  29606. ? Symbol.toStringTag
  29607. : null;
  29608. var isEnumerable = Object.prototype.propertyIsEnumerable;
  29609. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  29610. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  29611. ? function (O) {
  29612. return O.__proto__; // eslint-disable-line no-proto
  29613. }
  29614. : null
  29615. );
  29616. function addNumericSeparator(num, str) {
  29617. if (
  29618. num === Infinity
  29619. || num === -Infinity
  29620. || num !== num
  29621. || (num && num > -1000 && num < 1000)
  29622. || $test.call(/e/, str)
  29623. ) {
  29624. return str;
  29625. }
  29626. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  29627. if (typeof num === 'number') {
  29628. var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
  29629. if (int !== num) {
  29630. var intStr = String(int);
  29631. var dec = $slice.call(str, intStr.length + 1);
  29632. return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
  29633. }
  29634. }
  29635. return $replace.call(str, sepRegex, '$&_');
  29636. }
  29637. var utilInspect = __webpack_require__(/*! ./util.inspect */ 80);
  29638. var inspectCustom = utilInspect.custom;
  29639. var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
  29640. module.exports = function inspect_(obj, options, depth, seen) {
  29641. var opts = options || {};
  29642. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  29643. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  29644. }
  29645. if (
  29646. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  29647. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  29648. : opts.maxStringLength !== null
  29649. )
  29650. ) {
  29651. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  29652. }
  29653. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  29654. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  29655. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  29656. }
  29657. if (
  29658. has(opts, 'indent')
  29659. && opts.indent !== null
  29660. && opts.indent !== '\t'
  29661. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  29662. ) {
  29663. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  29664. }
  29665. if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
  29666. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  29667. }
  29668. var numericSeparator = opts.numericSeparator;
  29669. if (typeof obj === 'undefined') {
  29670. return 'undefined';
  29671. }
  29672. if (obj === null) {
  29673. return 'null';
  29674. }
  29675. if (typeof obj === 'boolean') {
  29676. return obj ? 'true' : 'false';
  29677. }
  29678. if (typeof obj === 'string') {
  29679. return inspectString(obj, opts);
  29680. }
  29681. if (typeof obj === 'number') {
  29682. if (obj === 0) {
  29683. return Infinity / obj > 0 ? '0' : '-0';
  29684. }
  29685. var str = String(obj);
  29686. return numericSeparator ? addNumericSeparator(obj, str) : str;
  29687. }
  29688. if (typeof obj === 'bigint') {
  29689. var bigIntStr = String(obj) + 'n';
  29690. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  29691. }
  29692. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  29693. if (typeof depth === 'undefined') { depth = 0; }
  29694. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  29695. return isArray(obj) ? '[Array]' : '[Object]';
  29696. }
  29697. var indent = getIndent(opts, depth);
  29698. if (typeof seen === 'undefined') {
  29699. seen = [];
  29700. } else if (indexOf(seen, obj) >= 0) {
  29701. return '[Circular]';
  29702. }
  29703. function inspect(value, from, noIndent) {
  29704. if (from) {
  29705. seen = $arrSlice.call(seen);
  29706. seen.push(from);
  29707. }
  29708. if (noIndent) {
  29709. var newOpts = {
  29710. depth: opts.depth
  29711. };
  29712. if (has(opts, 'quoteStyle')) {
  29713. newOpts.quoteStyle = opts.quoteStyle;
  29714. }
  29715. return inspect_(value, newOpts, depth + 1, seen);
  29716. }
  29717. return inspect_(value, opts, depth + 1, seen);
  29718. }
  29719. if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
  29720. var name = nameOf(obj);
  29721. var keys = arrObjKeys(obj, inspect);
  29722. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
  29723. }
  29724. if (isSymbol(obj)) {
  29725. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  29726. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  29727. }
  29728. if (isElement(obj)) {
  29729. var s = '<' + $toLowerCase.call(String(obj.nodeName));
  29730. var attrs = obj.attributes || [];
  29731. for (var i = 0; i < attrs.length; i++) {
  29732. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  29733. }
  29734. s += '>';
  29735. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  29736. s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
  29737. return s;
  29738. }
  29739. if (isArray(obj)) {
  29740. if (obj.length === 0) { return '[]'; }
  29741. var xs = arrObjKeys(obj, inspect);
  29742. if (indent && !singleLineValues(xs)) {
  29743. return '[' + indentedJoin(xs, indent) + ']';
  29744. }
  29745. return '[ ' + $join.call(xs, ', ') + ' ]';
  29746. }
  29747. if (isError(obj)) {
  29748. var parts = arrObjKeys(obj, inspect);
  29749. if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
  29750. return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
  29751. }
  29752. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  29753. return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
  29754. }
  29755. if (typeof obj === 'object' && customInspect) {
  29756. if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
  29757. return utilInspect(obj, { depth: maxDepth - depth });
  29758. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  29759. return obj.inspect();
  29760. }
  29761. }
  29762. if (isMap(obj)) {
  29763. var mapParts = [];
  29764. mapForEach.call(obj, function (value, key) {
  29765. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  29766. });
  29767. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  29768. }
  29769. if (isSet(obj)) {
  29770. var setParts = [];
  29771. setForEach.call(obj, function (value) {
  29772. setParts.push(inspect(value, obj));
  29773. });
  29774. return collectionOf('Set', setSize.call(obj), setParts, indent);
  29775. }
  29776. if (isWeakMap(obj)) {
  29777. return weakCollectionOf('WeakMap');
  29778. }
  29779. if (isWeakSet(obj)) {
  29780. return weakCollectionOf('WeakSet');
  29781. }
  29782. if (isWeakRef(obj)) {
  29783. return weakCollectionOf('WeakRef');
  29784. }
  29785. if (isNumber(obj)) {
  29786. return markBoxed(inspect(Number(obj)));
  29787. }
  29788. if (isBigInt(obj)) {
  29789. return markBoxed(inspect(bigIntValueOf.call(obj)));
  29790. }
  29791. if (isBoolean(obj)) {
  29792. return markBoxed(booleanValueOf.call(obj));
  29793. }
  29794. if (isString(obj)) {
  29795. return markBoxed(inspect(String(obj)));
  29796. }
  29797. if (!isDate(obj) && !isRegExp(obj)) {
  29798. var ys = arrObjKeys(obj, inspect);
  29799. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  29800. var protoTag = obj instanceof Object ? '' : 'null prototype';
  29801. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
  29802. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  29803. var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
  29804. if (ys.length === 0) { return tag + '{}'; }
  29805. if (indent) {
  29806. return tag + '{' + indentedJoin(ys, indent) + '}';
  29807. }
  29808. return tag + '{ ' + $join.call(ys, ', ') + ' }';
  29809. }
  29810. return String(obj);
  29811. };
  29812. function wrapQuotes(s, defaultStyle, opts) {
  29813. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  29814. return quoteChar + s + quoteChar;
  29815. }
  29816. function quote(s) {
  29817. return $replace.call(String(s), /"/g, '&quot;');
  29818. }
  29819. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29820. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29821. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29822. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29823. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29824. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29825. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29826. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  29827. function isSymbol(obj) {
  29828. if (hasShammedSymbols) {
  29829. return obj && typeof obj === 'object' && obj instanceof Symbol;
  29830. }
  29831. if (typeof obj === 'symbol') {
  29832. return true;
  29833. }
  29834. if (!obj || typeof obj !== 'object' || !symToString) {
  29835. return false;
  29836. }
  29837. try {
  29838. symToString.call(obj);
  29839. return true;
  29840. } catch (e) {}
  29841. return false;
  29842. }
  29843. function isBigInt(obj) {
  29844. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  29845. return false;
  29846. }
  29847. try {
  29848. bigIntValueOf.call(obj);
  29849. return true;
  29850. } catch (e) {}
  29851. return false;
  29852. }
  29853. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  29854. function has(obj, key) {
  29855. return hasOwn.call(obj, key);
  29856. }
  29857. function toStr(obj) {
  29858. return objectToString.call(obj);
  29859. }
  29860. function nameOf(f) {
  29861. if (f.name) { return f.name; }
  29862. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  29863. if (m) { return m[1]; }
  29864. return null;
  29865. }
  29866. function indexOf(xs, x) {
  29867. if (xs.indexOf) { return xs.indexOf(x); }
  29868. for (var i = 0, l = xs.length; i < l; i++) {
  29869. if (xs[i] === x) { return i; }
  29870. }
  29871. return -1;
  29872. }
  29873. function isMap(x) {
  29874. if (!mapSize || !x || typeof x !== 'object') {
  29875. return false;
  29876. }
  29877. try {
  29878. mapSize.call(x);
  29879. try {
  29880. setSize.call(x);
  29881. } catch (s) {
  29882. return true;
  29883. }
  29884. return x instanceof Map; // core-js workaround, pre-v2.5.0
  29885. } catch (e) {}
  29886. return false;
  29887. }
  29888. function isWeakMap(x) {
  29889. if (!weakMapHas || !x || typeof x !== 'object') {
  29890. return false;
  29891. }
  29892. try {
  29893. weakMapHas.call(x, weakMapHas);
  29894. try {
  29895. weakSetHas.call(x, weakSetHas);
  29896. } catch (s) {
  29897. return true;
  29898. }
  29899. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  29900. } catch (e) {}
  29901. return false;
  29902. }
  29903. function isWeakRef(x) {
  29904. if (!weakRefDeref || !x || typeof x !== 'object') {
  29905. return false;
  29906. }
  29907. try {
  29908. weakRefDeref.call(x);
  29909. return true;
  29910. } catch (e) {}
  29911. return false;
  29912. }
  29913. function isSet(x) {
  29914. if (!setSize || !x || typeof x !== 'object') {
  29915. return false;
  29916. }
  29917. try {
  29918. setSize.call(x);
  29919. try {
  29920. mapSize.call(x);
  29921. } catch (m) {
  29922. return true;
  29923. }
  29924. return x instanceof Set; // core-js workaround, pre-v2.5.0
  29925. } catch (e) {}
  29926. return false;
  29927. }
  29928. function isWeakSet(x) {
  29929. if (!weakSetHas || !x || typeof x !== 'object') {
  29930. return false;
  29931. }
  29932. try {
  29933. weakSetHas.call(x, weakSetHas);
  29934. try {
  29935. weakMapHas.call(x, weakMapHas);
  29936. } catch (s) {
  29937. return true;
  29938. }
  29939. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  29940. } catch (e) {}
  29941. return false;
  29942. }
  29943. function isElement(x) {
  29944. if (!x || typeof x !== 'object') { return false; }
  29945. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  29946. return true;
  29947. }
  29948. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  29949. }
  29950. function inspectString(str, opts) {
  29951. if (str.length > opts.maxStringLength) {
  29952. var remaining = str.length - opts.maxStringLength;
  29953. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  29954. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  29955. }
  29956. // eslint-disable-next-line no-control-regex
  29957. var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
  29958. return wrapQuotes(s, 'single', opts);
  29959. }
  29960. function lowbyte(c) {
  29961. var n = c.charCodeAt(0);
  29962. var x = {
  29963. 8: 'b',
  29964. 9: 't',
  29965. 10: 'n',
  29966. 12: 'f',
  29967. 13: 'r'
  29968. }[n];
  29969. if (x) { return '\\' + x; }
  29970. return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
  29971. }
  29972. function markBoxed(str) {
  29973. return 'Object(' + str + ')';
  29974. }
  29975. function weakCollectionOf(type) {
  29976. return type + ' { ? }';
  29977. }
  29978. function collectionOf(type, size, entries, indent) {
  29979. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
  29980. return type + ' (' + size + ') {' + joinedEntries + '}';
  29981. }
  29982. function singleLineValues(xs) {
  29983. for (var i = 0; i < xs.length; i++) {
  29984. if (indexOf(xs[i], '\n') >= 0) {
  29985. return false;
  29986. }
  29987. }
  29988. return true;
  29989. }
  29990. function getIndent(opts, depth) {
  29991. var baseIndent;
  29992. if (opts.indent === '\t') {
  29993. baseIndent = '\t';
  29994. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  29995. baseIndent = $join.call(Array(opts.indent + 1), ' ');
  29996. } else {
  29997. return null;
  29998. }
  29999. return {
  30000. base: baseIndent,
  30001. prev: $join.call(Array(depth + 1), baseIndent)
  30002. };
  30003. }
  30004. function indentedJoin(xs, indent) {
  30005. if (xs.length === 0) { return ''; }
  30006. var lineJoiner = '\n' + indent.prev + indent.base;
  30007. return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
  30008. }
  30009. function arrObjKeys(obj, inspect) {
  30010. var isArr = isArray(obj);
  30011. var xs = [];
  30012. if (isArr) {
  30013. xs.length = obj.length;
  30014. for (var i = 0; i < obj.length; i++) {
  30015. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  30016. }
  30017. }
  30018. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  30019. var symMap;
  30020. if (hasShammedSymbols) {
  30021. symMap = {};
  30022. for (var k = 0; k < syms.length; k++) {
  30023. symMap['$' + syms[k]] = syms[k];
  30024. }
  30025. }
  30026. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  30027. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  30028. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  30029. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  30030. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  30031. continue; // eslint-disable-line no-restricted-syntax, no-continue
  30032. } else if ($test.call(/[^\w$]/, key)) {
  30033. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  30034. } else {
  30035. xs.push(key + ': ' + inspect(obj[key], obj));
  30036. }
  30037. }
  30038. if (typeof gOPS === 'function') {
  30039. for (var j = 0; j < syms.length; j++) {
  30040. if (isEnumerable.call(obj, syms[j])) {
  30041. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  30042. }
  30043. }
  30044. }
  30045. return xs;
  30046. }
  30047. /***/ }),
  30048. /***/ 8:
  30049. /*!***************************************************************************!*\
  30050. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  30051. \***************************************************************************/
  30052. /*! no static exports found */
  30053. /***/ (function(module, exports, __webpack_require__) {
  30054. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  30055. function _unsupportedIterableToArray(o, minLen) {
  30056. if (!o) return;
  30057. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  30058. var n = Object.prototype.toString.call(o).slice(8, -1);
  30059. if (n === "Object" && o.constructor) n = o.constructor.name;
  30060. if (n === "Map" || n === "Set") return Array.from(o);
  30061. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  30062. }
  30063. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  30064. /***/ }),
  30065. /***/ 80:
  30066. /*!********************************!*\
  30067. !*** ./util.inspect (ignored) ***!
  30068. \********************************/
  30069. /*! no static exports found */
  30070. /***/ (function(module, exports) {
  30071. /* (ignored) */
  30072. /***/ }),
  30073. /***/ 81:
  30074. /*!**************************************!*\
  30075. !*** ./node_modules/qs/lib/utils.js ***!
  30076. \**************************************/
  30077. /*! no static exports found */
  30078. /***/ (function(module, exports, __webpack_require__) {
  30079. "use strict";
  30080. var formats = __webpack_require__(/*! ./formats */ 82);
  30081. var has = Object.prototype.hasOwnProperty;
  30082. var isArray = Array.isArray;
  30083. var hexTable = (function () {
  30084. var array = [];
  30085. for (var i = 0; i < 256; ++i) {
  30086. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  30087. }
  30088. return array;
  30089. }());
  30090. var compactQueue = function compactQueue(queue) {
  30091. while (queue.length > 1) {
  30092. var item = queue.pop();
  30093. var obj = item.obj[item.prop];
  30094. if (isArray(obj)) {
  30095. var compacted = [];
  30096. for (var j = 0; j < obj.length; ++j) {
  30097. if (typeof obj[j] !== 'undefined') {
  30098. compacted.push(obj[j]);
  30099. }
  30100. }
  30101. item.obj[item.prop] = compacted;
  30102. }
  30103. }
  30104. };
  30105. var arrayToObject = function arrayToObject(source, options) {
  30106. var obj = options && options.plainObjects ? Object.create(null) : {};
  30107. for (var i = 0; i < source.length; ++i) {
  30108. if (typeof source[i] !== 'undefined') {
  30109. obj[i] = source[i];
  30110. }
  30111. }
  30112. return obj;
  30113. };
  30114. var merge = function merge(target, source, options) {
  30115. /* eslint no-param-reassign: 0 */
  30116. if (!source) {
  30117. return target;
  30118. }
  30119. if (typeof source !== 'object') {
  30120. if (isArray(target)) {
  30121. target.push(source);
  30122. } else if (target && typeof target === 'object') {
  30123. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  30124. target[source] = true;
  30125. }
  30126. } else {
  30127. return [target, source];
  30128. }
  30129. return target;
  30130. }
  30131. if (!target || typeof target !== 'object') {
  30132. return [target].concat(source);
  30133. }
  30134. var mergeTarget = target;
  30135. if (isArray(target) && !isArray(source)) {
  30136. mergeTarget = arrayToObject(target, options);
  30137. }
  30138. if (isArray(target) && isArray(source)) {
  30139. source.forEach(function (item, i) {
  30140. if (has.call(target, i)) {
  30141. var targetItem = target[i];
  30142. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  30143. target[i] = merge(targetItem, item, options);
  30144. } else {
  30145. target.push(item);
  30146. }
  30147. } else {
  30148. target[i] = item;
  30149. }
  30150. });
  30151. return target;
  30152. }
  30153. return Object.keys(source).reduce(function (acc, key) {
  30154. var value = source[key];
  30155. if (has.call(acc, key)) {
  30156. acc[key] = merge(acc[key], value, options);
  30157. } else {
  30158. acc[key] = value;
  30159. }
  30160. return acc;
  30161. }, mergeTarget);
  30162. };
  30163. var assign = function assignSingleSource(target, source) {
  30164. return Object.keys(source).reduce(function (acc, key) {
  30165. acc[key] = source[key];
  30166. return acc;
  30167. }, target);
  30168. };
  30169. var decode = function (str, decoder, charset) {
  30170. var strWithoutPlus = str.replace(/\+/g, ' ');
  30171. if (charset === 'iso-8859-1') {
  30172. // unescape never throws, no try...catch needed:
  30173. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  30174. }
  30175. // utf-8
  30176. try {
  30177. return decodeURIComponent(strWithoutPlus);
  30178. } catch (e) {
  30179. return strWithoutPlus;
  30180. }
  30181. };
  30182. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  30183. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  30184. // It has been adapted here for stricter adherence to RFC 3986
  30185. if (str.length === 0) {
  30186. return str;
  30187. }
  30188. var string = str;
  30189. if (typeof str === 'symbol') {
  30190. string = Symbol.prototype.toString.call(str);
  30191. } else if (typeof str !== 'string') {
  30192. string = String(str);
  30193. }
  30194. if (charset === 'iso-8859-1') {
  30195. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  30196. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  30197. });
  30198. }
  30199. var out = '';
  30200. for (var i = 0; i < string.length; ++i) {
  30201. var c = string.charCodeAt(i);
  30202. if (
  30203. c === 0x2D // -
  30204. || c === 0x2E // .
  30205. || c === 0x5F // _
  30206. || c === 0x7E // ~
  30207. || (c >= 0x30 && c <= 0x39) // 0-9
  30208. || (c >= 0x41 && c <= 0x5A) // a-z
  30209. || (c >= 0x61 && c <= 0x7A) // A-Z
  30210. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  30211. ) {
  30212. out += string.charAt(i);
  30213. continue;
  30214. }
  30215. if (c < 0x80) {
  30216. out = out + hexTable[c];
  30217. continue;
  30218. }
  30219. if (c < 0x800) {
  30220. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  30221. continue;
  30222. }
  30223. if (c < 0xD800 || c >= 0xE000) {
  30224. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  30225. continue;
  30226. }
  30227. i += 1;
  30228. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  30229. /* eslint operator-linebreak: [2, "before"] */
  30230. out += hexTable[0xF0 | (c >> 18)]
  30231. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  30232. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  30233. + hexTable[0x80 | (c & 0x3F)];
  30234. }
  30235. return out;
  30236. };
  30237. var compact = function compact(value) {
  30238. var queue = [{ obj: { o: value }, prop: 'o' }];
  30239. var refs = [];
  30240. for (var i = 0; i < queue.length; ++i) {
  30241. var item = queue[i];
  30242. var obj = item.obj[item.prop];
  30243. var keys = Object.keys(obj);
  30244. for (var j = 0; j < keys.length; ++j) {
  30245. var key = keys[j];
  30246. var val = obj[key];
  30247. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  30248. queue.push({ obj: obj, prop: key });
  30249. refs.push(val);
  30250. }
  30251. }
  30252. }
  30253. compactQueue(queue);
  30254. return value;
  30255. };
  30256. var isRegExp = function isRegExp(obj) {
  30257. return Object.prototype.toString.call(obj) === '[object RegExp]';
  30258. };
  30259. var isBuffer = function isBuffer(obj) {
  30260. if (!obj || typeof obj !== 'object') {
  30261. return false;
  30262. }
  30263. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  30264. };
  30265. var combine = function combine(a, b) {
  30266. return [].concat(a, b);
  30267. };
  30268. var maybeMap = function maybeMap(val, fn) {
  30269. if (isArray(val)) {
  30270. var mapped = [];
  30271. for (var i = 0; i < val.length; i += 1) {
  30272. mapped.push(fn(val[i]));
  30273. }
  30274. return mapped;
  30275. }
  30276. return fn(val);
  30277. };
  30278. module.exports = {
  30279. arrayToObject: arrayToObject,
  30280. assign: assign,
  30281. combine: combine,
  30282. compact: compact,
  30283. decode: decode,
  30284. encode: encode,
  30285. isBuffer: isBuffer,
  30286. isRegExp: isRegExp,
  30287. maybeMap: maybeMap,
  30288. merge: merge
  30289. };
  30290. /***/ }),
  30291. /***/ 82:
  30292. /*!****************************************!*\
  30293. !*** ./node_modules/qs/lib/formats.js ***!
  30294. \****************************************/
  30295. /*! no static exports found */
  30296. /***/ (function(module, exports, __webpack_require__) {
  30297. "use strict";
  30298. var replace = String.prototype.replace;
  30299. var percentTwenties = /%20/g;
  30300. var Format = {
  30301. RFC1738: 'RFC1738',
  30302. RFC3986: 'RFC3986'
  30303. };
  30304. module.exports = {
  30305. 'default': Format.RFC3986,
  30306. formatters: {
  30307. RFC1738: function (value) {
  30308. return replace.call(value, percentTwenties, '+');
  30309. },
  30310. RFC3986: function (value) {
  30311. return String(value);
  30312. }
  30313. },
  30314. RFC1738: Format.RFC1738,
  30315. RFC3986: Format.RFC3986
  30316. };
  30317. /***/ }),
  30318. /***/ 83:
  30319. /*!**************************************!*\
  30320. !*** ./node_modules/qs/lib/parse.js ***!
  30321. \**************************************/
  30322. /*! no static exports found */
  30323. /***/ (function(module, exports, __webpack_require__) {
  30324. "use strict";
  30325. var utils = __webpack_require__(/*! ./utils */ 81);
  30326. var has = Object.prototype.hasOwnProperty;
  30327. var isArray = Array.isArray;
  30328. var defaults = {
  30329. allowDots: false,
  30330. allowPrototypes: false,
  30331. allowSparse: false,
  30332. arrayLimit: 20,
  30333. charset: 'utf-8',
  30334. charsetSentinel: false,
  30335. comma: false,
  30336. decoder: utils.decode,
  30337. delimiter: '&',
  30338. depth: 5,
  30339. ignoreQueryPrefix: false,
  30340. interpretNumericEntities: false,
  30341. parameterLimit: 1000,
  30342. parseArrays: true,
  30343. plainObjects: false,
  30344. strictNullHandling: false
  30345. };
  30346. var interpretNumericEntities = function (str) {
  30347. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  30348. return String.fromCharCode(parseInt(numberStr, 10));
  30349. });
  30350. };
  30351. var parseArrayValue = function (val, options) {
  30352. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  30353. return val.split(',');
  30354. }
  30355. return val;
  30356. };
  30357. // This is what browsers will submit when the ✓ character occurs in an
  30358. // application/x-www-form-urlencoded body and the encoding of the page containing
  30359. // the form is iso-8859-1, or when the submitted form has an accept-charset
  30360. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  30361. // the ✓ character, such as us-ascii.
  30362. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  30363. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  30364. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  30365. var parseValues = function parseQueryStringValues(str, options) {
  30366. var obj = {};
  30367. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  30368. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  30369. var parts = cleanStr.split(options.delimiter, limit);
  30370. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  30371. var i;
  30372. var charset = options.charset;
  30373. if (options.charsetSentinel) {
  30374. for (i = 0; i < parts.length; ++i) {
  30375. if (parts[i].indexOf('utf8=') === 0) {
  30376. if (parts[i] === charsetSentinel) {
  30377. charset = 'utf-8';
  30378. } else if (parts[i] === isoSentinel) {
  30379. charset = 'iso-8859-1';
  30380. }
  30381. skipIndex = i;
  30382. i = parts.length; // The eslint settings do not allow break;
  30383. }
  30384. }
  30385. }
  30386. for (i = 0; i < parts.length; ++i) {
  30387. if (i === skipIndex) {
  30388. continue;
  30389. }
  30390. var part = parts[i];
  30391. var bracketEqualsPos = part.indexOf(']=');
  30392. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  30393. var key, val;
  30394. if (pos === -1) {
  30395. key = options.decoder(part, defaults.decoder, charset, 'key');
  30396. val = options.strictNullHandling ? null : '';
  30397. } else {
  30398. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  30399. val = utils.maybeMap(
  30400. parseArrayValue(part.slice(pos + 1), options),
  30401. function (encodedVal) {
  30402. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  30403. }
  30404. );
  30405. }
  30406. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  30407. val = interpretNumericEntities(val);
  30408. }
  30409. if (part.indexOf('[]=') > -1) {
  30410. val = isArray(val) ? [val] : val;
  30411. }
  30412. if (has.call(obj, key)) {
  30413. obj[key] = utils.combine(obj[key], val);
  30414. } else {
  30415. obj[key] = val;
  30416. }
  30417. }
  30418. return obj;
  30419. };
  30420. var parseObject = function (chain, val, options, valuesParsed) {
  30421. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  30422. for (var i = chain.length - 1; i >= 0; --i) {
  30423. var obj;
  30424. var root = chain[i];
  30425. if (root === '[]' && options.parseArrays) {
  30426. obj = [].concat(leaf);
  30427. } else {
  30428. obj = options.plainObjects ? Object.create(null) : {};
  30429. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  30430. var index = parseInt(cleanRoot, 10);
  30431. if (!options.parseArrays && cleanRoot === '') {
  30432. obj = { 0: leaf };
  30433. } else if (
  30434. !isNaN(index)
  30435. && root !== cleanRoot
  30436. && String(index) === cleanRoot
  30437. && index >= 0
  30438. && (options.parseArrays && index <= options.arrayLimit)
  30439. ) {
  30440. obj = [];
  30441. obj[index] = leaf;
  30442. } else if (cleanRoot !== '__proto__') {
  30443. obj[cleanRoot] = leaf;
  30444. }
  30445. }
  30446. leaf = obj;
  30447. }
  30448. return leaf;
  30449. };
  30450. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  30451. if (!givenKey) {
  30452. return;
  30453. }
  30454. // Transform dot notation to bracket notation
  30455. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  30456. // The regex chunks
  30457. var brackets = /(\[[^[\]]*])/;
  30458. var child = /(\[[^[\]]*])/g;
  30459. // Get the parent
  30460. var segment = options.depth > 0 && brackets.exec(key);
  30461. var parent = segment ? key.slice(0, segment.index) : key;
  30462. // Stash the parent if it exists
  30463. var keys = [];
  30464. if (parent) {
  30465. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  30466. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  30467. if (!options.allowPrototypes) {
  30468. return;
  30469. }
  30470. }
  30471. keys.push(parent);
  30472. }
  30473. // Loop through children appending to the array until we hit depth
  30474. var i = 0;
  30475. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  30476. i += 1;
  30477. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  30478. if (!options.allowPrototypes) {
  30479. return;
  30480. }
  30481. }
  30482. keys.push(segment[1]);
  30483. }
  30484. // If there's a remainder, just add whatever is left
  30485. if (segment) {
  30486. keys.push('[' + key.slice(segment.index) + ']');
  30487. }
  30488. return parseObject(keys, val, options, valuesParsed);
  30489. };
  30490. var normalizeParseOptions = function normalizeParseOptions(opts) {
  30491. if (!opts) {
  30492. return defaults;
  30493. }
  30494. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  30495. throw new TypeError('Decoder has to be a function.');
  30496. }
  30497. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  30498. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  30499. }
  30500. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  30501. return {
  30502. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  30503. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  30504. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  30505. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  30506. charset: charset,
  30507. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  30508. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  30509. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  30510. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  30511. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  30512. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  30513. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  30514. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  30515. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  30516. parseArrays: opts.parseArrays !== false,
  30517. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  30518. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  30519. };
  30520. };
  30521. module.exports = function (str, opts) {
  30522. var options = normalizeParseOptions(opts);
  30523. if (str === '' || str === null || typeof str === 'undefined') {
  30524. return options.plainObjects ? Object.create(null) : {};
  30525. }
  30526. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  30527. var obj = options.plainObjects ? Object.create(null) : {};
  30528. // Iterate over the keys and setup the new object
  30529. var keys = Object.keys(tempObj);
  30530. for (var i = 0; i < keys.length; ++i) {
  30531. var key = keys[i];
  30532. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  30533. obj = utils.merge(obj, newObj, options);
  30534. }
  30535. if (options.allowSparse === true) {
  30536. return obj;
  30537. }
  30538. return utils.compact(obj);
  30539. };
  30540. /***/ }),
  30541. /***/ 9:
  30542. /*!*****************************************************************!*\
  30543. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  30544. \*****************************************************************/
  30545. /*! no static exports found */
  30546. /***/ (function(module, exports) {
  30547. function _arrayLikeToArray(arr, len) {
  30548. if (len == null || len > arr.length) len = arr.length;
  30549. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  30550. arr2[i] = arr[i];
  30551. }
  30552. return arr2;
  30553. }
  30554. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  30555. /***/ }),
  30556. /***/ 98:
  30557. /*!***********************************************************!*\
  30558. !*** D:/AAAcompany_product/产品化管理端/static/mine/banner.png ***!
  30559. \***********************************************************/
  30560. /*! no static exports found */
  30561. /***/ (function(module, exports) {
  30562. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABGUAAAJ8AgMAAAAqjfSkAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURUQ990I79zMs9igh9Ls7gNwAACAASURBVHja5J0/juM4Fsblgbs3tQNPspfRAHJUiQ1IU4FPUDrFHqEnqKCVlwBRACuXgtpLzA2mgqIAZRuUgfUsSVH/bEqWbPKRi6IHJXc3MEU8f/y97z1SsvO3gvEeTBiHv/WNz+C28fvI//PfDtjEHvRF5rS9MTSPmkNzmjYNjar5I7BUNc+BYdW83xoZ3ar5UDANI6DRrprj1GnoWlCn2yOjVzWnZ9OheQ4sVc3L5Gk82AYazar5UDMNI6DRq5rjjGloWVCn58BO1cyamJbQvASWqmbWxHSw5uO+yOhTzYeyaQCsZ1DVzJzYwTbQaFTNs+nQvASWquavzbxpPNgGGm2q+fymcBpGQKNLNaff5k7jYBtodKlmfotEcWjeA0tVc8PE1LJm9nqGUs2n4mkArGcg1dzUIlG6oH4oiYwG1TybDs27msioV81tE1PImk9FkVGumk/104BreWpVza2GQt2Ceg4sVc2tlcvBNtAoV83NlcuDbaBRrZqjlmlAFwg6VHPHxBQtqJfAUtXcMTE1oflQGRmVqrlnYkpYc1QamVHV/MsBm9ijbaAZVw2ZFZr7JnawDTSjH9cRzQrNfRM72AaaMdWc0KzQ3GkoHmwDzZhq0KzQ3NsiebQNNCOqOc4Lzb0tkoNtoBn+uFhkZoTm7srl3tB8qo/MkGrQrNB8bu6dxp2sUdTynKIaMis0J52JErLlOUE1fDlND40CAt63oP7SERnpx3VCs0KjokVysA00A6pBs0KjZGL3sOakJzIy1ZBZoTnpTJTALc9rqjmiWaFRYyjuWFDvAZRqTmhWaBRVLgfbQCNTDZoVGlWVy4NtoJGohswKjbLK5dE20Fyq5ohmhUZZ5XLrgvoIoFRzQrNCo25iN4bmqDEyZ6pBs0KjcGK3seb0HECphswKjcqJ3caalwBKNUc0KzQqJ3awDTT9j6sCTTw1NEondrANNH3VIDRHNWoNxYNtoOmphswLzQ99yLMBNF3VsOWUoGhqaOYeJ1e+oD50R6b9uFgswsmq+VQbmfmhOWmPTKOaZjlFU0Jz8x33yhbUjwBKNUckGcOhUU7AuapRvJ5HVFMXCPG00KhvkczMUJ8AkRGqkUZmMDSfGpFnC2hq1RCcEZ6g2H9XQ6NjYvMW1DtIaNjHdcJdTxNdC82z6dDAiIarBhFE0OQM9a4xG0wb/wmgVEPyFIvYTMCwnspllmqeoVRzzFF2qZih0GiqXOZkqP8GQKo5pThHBZ7qa170Ic+y9RT8XpYFKhEXTnK2oiSh0VW5zFlQfwKF5pcyz+iKItNUo61FMic0QJFxfylJSTKS8lgk/RLzIjT6WiSP1qHGd6hqUI7TjlbC4dDoa5EcbEON79DQlCW1NRg3shlWjcYWyYNtqNmx0GQZLi8EIwuNzl7so2Wuxluy0GCqmjKTiOY8NDrndLCsSnDo+CWnXpiqRqSokfJSa4vkYBeFvUo1GZUMuV5Dqbnj/v4F9QkQmb3DVUMtHy7xVdZoOX56i2oAGhK+11XN1QylGX4PViWoWjUFIqVAzTCGdX9WjxYlKN93PddjoclzPNCwaUOjfYEfrMrde1ewJstKLDPDbWj0J8zpofmmHTR+w5ocFyJDJUPlpf5P6tEqW7OoWUPt8LivAUgKB2tsDVON67pOlaFq1aBY2gCFcBIPVjk+kaGKHFHWjHT5ThDge7TG8fVYwzMUrlfTxdGjF4jP6WBTS2Kzrt1w1vgamWo+gq8VGsEal7OmoKpJhyzfESQy0xcUSCOr9jUFzlrVnGcoENDMUY3ObLltWbOsWJMVgjWSGuoFJjLTM9Q7BGuEr6EUznCaNk447BYKH0CRmb6g3nVC5sLXFJhIKUxDAxUZGxbUulVNU3lT1Uh7ElaG5k9tmvE8OWsINqsa8wtqvb7wNYw1JULy8vLLqGYbUNX4Ul8jREOLqNhIaAxnqH0QrPb7CzdcUDecVSCO7V9QWlTD5CJlDc4Q+toZasNYs9mc+xpaQxUUxP8vodGhGk+o5sLXcNXUJ0C/YobaD2UoKhlclm3LPPlqqvEryPRY4y4r1XDFYMlpvq+RoQRkJKopixSXAjbhF8xQnoCM1NeUvQwVfq0MtVsJuUh8TUELhTwjX7SGYqXTJWtcz1nWbhjhL1pDffttIVSzkPgaWnm3vibWHRrPKtV4HDXDvoYHpvE1WpP3jv7GjT2q2XdYI/M1rPKuSRxrXlD8M7JGNb63DaSs8UTbPGtP4esuL/lvdBY2+Rp3IfE1XdYQaQtUdWj4uRX62trhazhdBljjuDVr2vMAOn3NzhFjY4WvWe+v+hrKGtHKCs/3oTSQxvOWEtwYUE0FGbmvaViTyo5/qg+N7zRjYV41OwoZjr8xX5OVKSbyA2tqReO2r61p1fgCMqO+hm9eIoBCwXU6w7RqHGfFWePKfM2iqaEoiTFA5e31hlnVuM5yhDVehzVp26/RlqF8pzcWRlVDk6VgzaivycqBxrni0Lj9sTWoGn/nuKOs6WSoQn9ods7Z2JhTzWbXsMaR+JpF62tyoZpQZ/JuKLOU4AZWNQwmywm+hlfe7Z63tsrbuRgLU6r5rcOaUV+T4v7Nl5pC00DGk+AGVjWet3MEZNxR1pRZ62s07ig4krExo5p1sJvia9j9ULT21u5r/KVXv7zm3dKIaqgTnuZrKIYJkRpitaGRqabBDahq9uvNJF9DKYzx0LlhjbamjxtQ1XiMNRVkfMEabnB8du1lKKaaVCYbpaHZOfJhQDXrLmtGfA07KVE/UyKO9e0o+C1gOi/HWYKrhhXdE30NrusErSclhlRT4QZSNX6lmkn9miLN9PeGXYmvqfaWTaim9jWCNT6/m4Vdzn1NBnAqa1A13N1Aqma3muhrihxRP5w2my26jjl6y2Z03i4FiiFV43mTfQ07lqX/3LA7rBqKG0jVMCszrV/DM1SdufXtKOzkvqaK2LcDsGrOfM0Qawr2HDFzGYqPfwKqxpnsa4pWNTo3dndLR7yWntO8r0PzDzjV+F3WbAVrOHS27Er/+czXYN2nssZV8+sbmGp8Z7KvYR3Q7sHhSDdrvEvWON8RrGqm+Zoct74mMsWaX0sEpZqds5rcr6GqwXW/JgYIDauczsf3NEsNsmbL37BLVWH1VEMMumGumjR7hVLNYka/hmT6+zWjvoapBqE3ENXspvuaPONWmMie5gipGrqogVQz3dfgPBOVdwiyoAZYQ39hCqEar8sasSO25e+23hlraOJOkfSoBDBr6MfzCqAad7KvodVlnqWpaV+TVjnyTb9q3FFf45/VUG1gEnO+pjqICqGa6b6GPQUUX9bdwKzJq8dBp6CsEbDZttdtnzXsYVmZ9GmOkKoRBuJVv2om+xrWyQI4X7NjZ3HFy+28b1UjlvUbDGvcaawp68I7NpahqLkSp+YQUIaa5GuyZh/KHGtw+w0gKSBrLgaHTud8Td65s8WQaoqsLuOeRnED6mvY7RudYyS9Z5vrUY172UL/nmFaKlRpIBrDDaivYXverR82VUPR9dRJkrb4GmaHCSCGpazJcgHhJP6ZjOBGN2u8Hmv4sxwxnOUbUA3pWohXK3xNVrL9S8iNXfcSNpQ19aGEKPoZhYO4UcQaV/gaz62Y4/niJ7+2rCGG97yFasTmclJ9dYwVvobW3c1xc32P9rnGGmr46g2fiN0O8GoBa/hNqanh3UummkwcQo0TfqvEmwX9mjRtfA3IZovc1+TiQGFcBWdoSSljTS2QcdVkoiFgljXtmQQUhjQ+YWre1xS4/q4AgzVUhuuHbYZhzJd2IsUNMGsy3Ol+hqZqKFzUmSCMozgK5f0J2H4NtXyZ/nsvr/iapvKmNRQXb0zzFNLta66yJhf7UCYzFE0E9V2OlMHRU8zLuVSvr9mzJwvTP9Er9zXi1fE1hJQYMkNJ+zV5Y62in2IuiaRggK2hWHuNmHbDVDXtYxOTOEriJJa1Q6H7NUT0kYB2L2W+BjdfbRZFT/Xaji7boaC+JsedDBWay1CofbIvDU4URixXXbRD1fiavWDNfs98DbvuxYW/7bKm0P+84eu+hoi9MKYaGpcklvUnYH0Nu+kHYeNuuAO8JK7EG3HyvKlVDafMiv+kQ1w2m7W4stHZhyIFwJ73lX5N3vz+J+ZoYpbExVzM+ZqifrxaYnDPm6aCykHwSTDY0Cwl2X1Rk6E6rHEEZFb7C9aw+7yJ6NfECcRB/AHW1KJJ2p5RfX0z5WtY9m7XuaE9b1zkYg4UMLSIikKeLMW9a2pZs65Zs2bPN1rz62axqa4b9r7dvSSglk/er2Eb70Ts0SX8+7Oj9t7q1FC/hp+NNZ+higZ4ESuj+jcgvZrwNez5NUhs0YWhSdak1RcxUQTHEYdO12u9mfE1qCykx81h3XB7QDcKuRkOexlTqa9Zc9awIS7toAZn3TnL1+t/hmb7NcwFU0scV42+djKpEV/DvpiZGN7zzki948MyFFtMMQ/MOW4U+ZoVZw198T+x12pfXRl1OueG6xvgdfaG3Wv9miYRUNZw0Jz1ASrcAPsaIrbHEqOnsmrVhnweIQMOj07Uw40aX9NhjSMYsxhgDUlN+xqMS1H+x1EYhfXi7qWFFN7XdL5iNzZ4KquZAV1MT1Vv4my8qlHNiqtmValmdZah9usea+oOm877vN1p/Rrex6J+j28rXADnTUFoZrIG4Nnm1/s1aT2HmFtPtoF5MSUFC2qmryHE+PmavFN5o4RKJ4wqCffik76rYs1EXyM6bInBey9pDVUfPUI/46he3PH53tgfKlhDR/WzvdZjveN/2bIG4Gv6JtZQ9PN5qigTn5+f4+PHN1jW1LdeJib3vPM2RT6xTW8Uyj6uH/In6s/zNQv2GOrFgl4X/E/d16b625o1eXePLjLkazq94briTmShcdSw5n/MXd1t4zoTdYDsPifA7q3HD7kFLLBfCwHEKm4JeTULIEAKYAFyRxSgGj7N8Fc2aVqOxLH0YGADZA1ldHhm5syZO3mNSy9pe95ud4y05zcWh9llmQQfzcumWPN2C2uGKeyHosyh4gl1sqHLcr2xL/AtadfznmPZQyBh1CTeDdCH6jKdZvdovgc3gDIviDVwuY9wvf9+sT+2qqzE6pLvVjY/1uo1XjjcobKmeELl7L934zVTrygd1nzUmGQAlHfS2jhc8Zqv4gKPPXiNmpo4rFWwZnCqhE4KyJ84z57dxj6a78DNGqw590MDR/x61CTTNbb9BILHSznUV3GBxwqsOSDWLD7d/fL+y/6rcyLxg8S78ppjjdeE9mUHpU9MLuU1s/kqLanYg9ecde9cjyShO8A4E5tIrjhUQIUqwvB3wmYFrwEcjkPwjFPlUDqc3JxJzHRzcPNVWlKxD68JjV3aeag+/G0EU+7BcFF8ND8ejpqsNaD7eP8V/sl5gLZkw/l6zRB0c90JI8dX8Vnh0bx8D2vu1NcM5L58/8SFOiwstL2sHy0fzeFxrDkAmrwtPt0NWHPwWAN7L3tNX6+Jky1CcBiJ4iyXeyeP5sfuWINR41Nv1mBUrBA1fWIN2GHAsFsn1MNv1DqsWfAaRcJr4mSLFUoAkZizTF5gw994o1bVa2hdqoNSIra8oVrjDydZjJoHqU3+Czh8mbEmRg1izRPkUL1vvHMofmIFgDt1bOnR/GiDNe4vRKYAHabUeAmUJIzl+PD3H81KXpN06DinqdcoN7E2B8opvkr81qN57Os5i64Le0Br4GVD5nhMt6Ua4hzq5xisfaAczDspZPaI+v6jWYM1cT8UJa+JbijCCgG4g2BWfjQP4bDf35Dd62CvQ7ofShPnUGgjpqOsmwHn64JueP+oyWPNjDRtT6gcr5mUr8My/snd0G4GhxeP5sfWWHO8wJpQNCfkNT/nEyrphUklryx+t3qhVvOa3PHdltdoJ0PlHRRsYDxVlmvD30gV3PqGi50O7tPurvIvFPIa6j7Uz9G/026SWQipcuKj779Qa3Oo/e1Ra/Ua7Q9vPmONc8zm/PYL9bI/rxnIe94/9ehLWVCoEZI7vxi5+aNZiTXZhkJbXjME5REc2hgzVTb80Pfz+xvs58dytwNgzfECa6h5zdh71RzUhrmt8Em1wwu1Emumgbpeg65UqJrDjgKUbKwioNCie/z0XsNrQpXPzoFyGl5ztm+1lfAx5Skf2/yFWpdD6QaO+DVeo7x/LeeMS2hEiUzVfIOoWfyC1+PiO72GBCrkUIYea/zopZAWZ7hU+8DwGqzRUUbS5IQq8JqhDxUjoWzuLa/+WmYDrHEux6nn8Qwy+Ol4zSGp11hHKFJeE/xr5gcC2SVISdjt2vD+WDOYWHyUZPUarydkOEEHTahaH2oLrDncxBqImlGRY43yZXM7CZXZrkODNWqgrtfoc5ynFhzITadkrShx+PW/v6vvZdC4r3L8cB/XJ5RKpC00vMaEZbY8MdFpdkKVeM3wBLxGx7FhsIPyp5TYnA2v4DW4fWP/es2xEjWjn0vlFmtAx8cYMdYM0XIdcI+oD+VFc+D/GUc3KifUr7/rr+wJ5bDm4zpqBvrasIkb8ebscn6bWCeqMNwAaxosXKtijT8M2KcIqnd5uzZ8+A2bKlfeK3gNlrLiEcVosGZMyyKdsIaFrNKia8BrgkeLJOM1MLFre96oM4cBBc5lSYi/Gdbc5jWw6ce7A1DmUF6gK63IMVeRIMCaxPaNTssXhxyZTeZkvV7z7wPXunqNU4BeDvW1xBrw5UtF1cCKqes14CLWVgFamvP2A7so5RPXhm/teQ2qzffHmmrUDNE5FlUkXNUThX2xZrGZ+Ql8+RTaMHMQH83JQoUN3xLkla41vEbrdB6KjNdMJpr7iHxhmCCHits36Oo1vUNhgT2okrzGtOY1Q9gqJqmwZoxVczyhGO+EJOc1M9Ck9RpGhDUmblxL5ahyV6yp1mu8jo6wXtP7oR/GUHzUoV+WuimpboE1qu+pec2kowD0etnF7idUsV4zmJzYvG2VzzhGPodJ50/uzPzlRdT8WX+v7HmnanMqTwmf/ucHvGl4DXYUqLHGJC5vJzii4JSqikia9KHaYs31ozlrE/q6iodNE1e0b+OoqfIaNXpeI+iipvcikvn0xik6kSN9y0fz54HrwZ53k6LE62u2Nhx03Z/RMqvGhvfnNV5GR4g1o9M/SS+qjsc4Xb1mPqEm3bKjUNDX+NlLJxbmQqjMcGprXuOM+Sh5jU4WFnTolZX1g2qKNbCzZUqCpkFR4jU/vqGSRb+oN2eMmtfEsjkh1ugwQsLYSTp71GtLiUs5wAPXutrw1O/vy1fhNfODiftROC784VVJ9d68BqPGzyiQ8Zr57xP0NUK5alb1hWqANW2dSLIvVCynYcWG2wFMSV2vUY7YUOprgi8f55/KP5da1Lw/cFWw5m3Ba8Zz0ocSDXjN4ZhTZQ1hLNVOboBNAJf7suEKrzGo+iHmNeNwDuW0DkG4u6MosTPWTNN4bqrly79Q0aLl0zFiSV6vQaxR1Fij59NAO8oJXV3QDFtxLCfDGtTXjDky3Dpq3AiJQJMWq+fjnJbXwIMZdtcN35tDgfbTSrKyXbq9oiZgTRI1I6zpm5pm3vkR+LDrXAIXlncd3jvzmrNOBuAZ2Qnls0vcS8JxozerdhR2xhoAm6IH6N/N7toLdQ5nVNxgyGsyx715DaYJ1PqawTg9AJuxhqH+SNQP7/e39ff9WDONykxTT55D+Z63nAmwtLosrq46CqYpr4FVAeoJdMPhhOLOCZ9lXMRa51BDzLwvRCR/t7vuYcMmlkYEb8KG630o7wFKWBues5XBqQE6dcLnI8O8d+nRvD1w3caat7elUqLolfXACEDpvjuHsn6FUjZRSlR5Tbp+Q5JhTe8zFengFxbB32bDL+/r79tY87LgNVDlm/JR0w5rtJ9RkLwTdkJBKMVp9TXnsBOEltek/zPm3XckCjtjDdSyprQHlGLNx2Z3nQ2Pibd5shePUfahwkpQQl4DUTMEvRqDNfCcVQcMXx64b2JN+nPsKOQPqMZYE+Cucx6gSl7Xa0xrXtMPQaVAVxtWU6ylzSd3J/0OTDKsGXHoJ6vE/+/wsd1V5TWuXiNB44jRwjk1r7FDP9RaPp2sbOE4KsYzJdnLR7Pr5WYvxwLWfGx216Im1GskTinMISOkVJyW1wxjmHqkm1GAmsToTig07LorUXh74L6JNenPsTacekosyuYNsSbZ5y3FCVuYPLMwoLW+ZnQCDlKsMQtosVW+mn/NvlgD+hrVFzxAW55QevQ5FPC92PrhlH0oMxlFzWv0wgxa4nYSEJNIwqiBHbsqWl0sixINo2aIo8wnq4rNDSu01g0XPHUbq7KMfaGcWJh194xv7Iw1ZygNG5OtDbeLmmT6EwbFcKfYHbzm+LH6vslr4Odp1PS9VYtlsObPZnc183a1e3bBsaQiZsM6rxtuGDVhnzecUC5eyHlNtGKWlKqstM4HdXNUgpLzmog1Fz3vlrxGJSeUU5BUsebSNfieK89rjuHXXSglTKE2/Ge7q96H0rHK5xyHGe0JhfoaXdgqRhE1cEIxrjrOcoFziTXr7+UvWM5o4c8XbNiYrCX+fw/NAKwaDUjYsMMaFl9rQcxrgA3HcSi51A03jJpJaV/lO2Hmjb2oSm3421hzuIk10OQwmhprRnVe/N+iMNPcFGtmNjzRZ97BvAEkoHaOmUlV5TUP3PnrNfy+5IXCqCnohn+/b3YfamzYteicyyWbkZhJajY8R80wUJ9QyRnJBBgfiXtMdXfmNfavFbR8jAhrhtH+fZh39ZF3LAtogDVBbi7o+lA+WeH8BH0oMGtRnLaUNQTJ7jXWvG93VXmN6ZO9l4rfJalugDW9ImfDg98qpk7YbxFYOK/Uhi+2Idx1Z3mN+1z8HOs1yhR63n/eN7vrUTMEZx+7K1U+A6/Rir6jEPpQUvqVNvLa+si0xhqTOBZyKqyx3wJ7c5+48pKrp8ihCpMtbZUSwQ5f2XExzqu8Zt9HA9OFYWBXUp1QY5xXY8qqSAS1UgLqNZPW/ROwYR0zS1wBryRxi+6Wp0S7qInbN9Ch2q5SIK7y6QmdSALWME6VeYcjCrR8naV+xFijo3f25eH9yLxR4a5GzeieDXo4CnQhEeRs2DxBbRi+gnFlRms47ExsaHMoUCloaqwZXZ4gwsiPW/jDCXve4Etq6KMmTIqxGWukDPv6SNlwmJxIR0Lx0bxtd1WxRo1xz0V3p9Flg563JmfD2s9k2UV04D/HpaLmNZh653nNy3ZXPWrcX4d7MwnFBHHPG7eKKXqsic4JXbSnpuU1zvUo61/TDmuCt3knOSSYmEYRn1DoHDspci2fjntjJLc6Pi6JeQ3OaOkC1mx4V3veY7RiFgVjHwKsiSmUIKsNR0cJjjI+7NXRY40u+A23wxodJqqlrfRxlXsyzXOoydB3FLyWDxbJipNiTjx3sWeiLRvGiV2TtICSR9PsmrFmjEU9O3QppKCv14z0bDhgzXxqf6JFNafnNZheDnlfvrcN71rUTIlxorDmfIrR9qEgvdT0WHNO9kOBJ9QzNHbPg/GDj1e8piXW+NpwHPdhWO4jZcPzsRmTKKLacDyhIEXo3AAmcdTANpuw91LQRY0bqWbp86DNvMf58B5M/zRYgysMEW6klPRYo3pFjzW9WhwGKDiveUrsnENB97Ko5Ttud9eixuvNQTfsdylcNXZbs+FB+dlLSciGF07ZUrDOygKIec1E31Hw9RqJuuEu7qIjV0qQYw3MQ+lkWo0Jxem7lz0oJYbs7OVxw6vyQoW9l7A1q1NC8TtWgu7Na6ZBleah2kZNUoKVaJfFaAugdj+UydeGH5k3Ktx1Nuy+RAcSUOZUNpxUiG83/WhirOmH4G0unV4ta0XSujYcdcOMCmvC3kspuT+hJHGiYKMmekowmqiZYyaADTZa3AiHoK4Nl9jw64Z35YSK9RqBky15F0WC2jA5rzHGYY1wHmtCOC0fJ60N68Hka8PtsOaso5ZvjhrpAPl5tHyKLQ/vtlFjmyuCyxg89H0oVdDyNUwvdZKuwBEFGptnOKFGpclzKOVzKFszF/9n79pSLLmRqHtc4I/+cO1gdjDewVADXktBahNeR2kBAilBC1BCz36UcDfQMExGhF63SrfubcapIxh3Yew/F9mheJw4cc4jao4D+porPds21/yJP/e64Uum8hGTL18XGqhkIfc1e/9GYSheUywMjeDDcE0JzjW39lADW76iyq+ZOmyNdQ6ODTPK57v6NQOjZnW5r9E2KZsb8GKXseFWA1SDBoWCDRNjrbhmaWg3XFA+JF7jt7X2Vry3tBPwa1ZqiPsaoEOjZk0Pyrwl/3eLlhFjjz44XlO4y45hLPeYC/zZM9SRa/buJnXog6rDP7v06f57GtzX8GuK4FxDmpLlHmoRFebeUmHop7l8sr0cOUOF3PBZ1z2txu+hYGk4e9E5RYtdteSQ0dgK5bryc2OLd/bO0jbzLe1fe6ifkhddQUCZUs0tDrRCca4pt5cWiddUsU0SVxP402CxYdK59F1/qKF4zZ72UCaTSAy4eMudN37yLp4tOsVOni4VGBv28Bkq+8gKYS2jNeBcc4wvAV6hwnbFeGcdR63geM22dt1sBkdNwowU7VoYGDYfKKkAlC+sE+SaQstqr0jg91CxaGUBseFMN6dFFGESSsH1hul8I3RXCkOjJlS6msjGuq6p9+AZ6pZ07NC+xqdcw6LmYkNnwBWKsOHNr/DJuwldK/KxpqfTMrobju6Gfs3IGSqP3gu77M6gKcHa5g1eo1EzVN2F0Z03eV/qu54t5+M18Zbe8EiUb5WPw9c+higBRLAxYHWA7aZ+zXiUj0mfxs0h0lKVY5H3UKHuvLmvISd4NJeP9YZ909koFMpX8BorHBvbMyAeHzURzeUjbLhIFuoyWGIn7/1KiAQ2XvpEXtY6SUIZ/YGtC4ka78F9zV5PYxdDckeUbOAzFGmbR/zkzOFq7AAAExxJREFUHao5iq0lW6NzjYP3NX4vO+9FzpiJfKSxO++jr9kmiJoQ1mr6tlhq/DoE0PH8Glf7GtCgsK9ZzZGts5qKANYbvsU2Hwll5Tys5XjD2Qk0Ja7QABxsXoYV4eHTDNVwA2B7qH1Fc/m8S32NabhYGr9RKJ4tQLzm4hIEqml7qciCGO8qFmIl7QLJsf5d2OoUQhq6UVibvkahuuGEGS18vcGkNQWmVG+b34OLaKZE2UMdoaKSECieX5NpqeCdd+ZUH8PTwtfMJvGQkCjfXilryDRcsPvMiv2oKDG8Gw6tLh+KX+NSY0OUWLVY3l6CSSSUazbv+3feI1G+DEpom7TDDFraR/SG+fdCc/nqxa6RizG4EokPE0ze3heeI9le2gcdDM/ONbtzq4P3NaG5UWAVUKPBao4bby8n6GvkUcsaSvMRXXpa6J23h/c1u69rKOv6E9R4vCa0FoZgfg3PuIpamgWvDlBJCsDby8yvYZBGJwIo/GLXb2uAc/mIXyPKCWwxwcSajo7YcAfD4Hb8jUI17zIqeewaGqQUdA8Vg5uAX1N0qllTQuspmBK5cFpg8S4eVaZM23AvOtIbDpcJcs2eotaK3vAM6gAh9oVjh1eoq+5B48dL1hsutCyYtA/JQSUtZoLNCZXgERPNlLjpDzV0vPTvVFmUQ1tnca7B3yhk4hFZIFGu4dKN74ZXuWAD55qit5EJWWjYnHNNwLOyQmK8k+IRa5t34Zo4PtfkEqWAfc01nEYkUI1VjuW+Zu1KkQzuhhNeo/Wr6PL14Or/x74mxOjb34KofBYMSqS+ZoJuOH8Z9rx0aV6w4BkqVSjkDEWnfHujB63mcEu9qlAG29dY9lEgjgT9F3gPxbkmou+hfP02yU22b2P47tO8DOhr4DvvynPUrABaMjB6hvJwHwXXMgrZE1Q/sL18Or2vmeAeakvagFqpNzLo4zf1YeUSRz4ozjWh7qEUGpSQQiCT5X1dvpezc00zKqDuoXwGqElFTMt3mcJVLOA9W9YcM68cMzof0X2ahn9/OvPTUK7prrwH77xj4YDSPsEmuY0JXMXQunzZ6Zzka0xWNlf3by9fXs7NNdsEKN/mrndhgklAWz65h4poXT4f9ySPyquWZE1i7t5DnZlrPN1eXmuRgHjD1/mOqvfygGTh09lRU9tQIG+4tZgwbnnE6ef5/FwzwRVd2oUd3XAjTv2AZ8vLeVHD3wXusVv0a+gpLcKTsGgfBbmiq1CsRqF8pRtW8rbVAw6GT6e2fKKIj+cNF3foV0OTgn4QNn/+13m5hhXxPVyl2vtrqqV19pEV3cupUXO8ph1/e1kqFK/orC3CCcg9FOkNw1E+nytUkkZNkITWd6Gsl6fToob1his2bGAVqnSdWlGJso+dpT5/ObGvmcOzJWZbMa2laGflWA0bFMTpJ8A1JfL5hmhlaW0eOjD8kv45p6955w+Fi5qKmyfhow6/ptsNP50ZNXsunAbeDStteAWlxFzs8274C/+ciPIdUbP2PXbHVqgSMlp6cou2s6F7qBm0smJVWGP8036A8bu55vm0GsW5xk/AlPDZmlmzqA8LgD60UXg5q7NJesNVK0uBu2HjXo/3xG/JPNANP5/5oHYfZlBzDFVVwvIP0/AVPtfAtbL2xMNnQfw0eCv1CF5zXoWSvgZ/e9nErZVm2MgL15/PUC+0cHk5Lde0ZHNU8fa79HzcDd/Q2rj9oJ7PyTU0Q4U4wQzlymkLTdxdrayb2PDTKbnGh9YfCsjlK4xhZpAQEHoXAD01DYvvZYRrSgTnE29YWeEBPMSUePrpvoHv/xY1K55fs1Weua0In3nILOD5jHTDni2XKTQlklegTT4K5Ll2lwH6JGFzSpHKCmsT8Gv4QZmsN6yTzSMUGyaoJKJvFIKvw6UoH9kZLnZ97LDVxgtdNnrDVmSyHhovn89qbtizJfTB4aFRE9Y6yNGT0hkcVnex4adzOhueoVbnPNofag/lznspAaygivjUoIfWzxumXxMrI2sRM5uHFdbOm6GqLh/usiUfGB5h88ZKoMSXwCri78eD6rc1w3nDPjfk5oagxL1P8/TnR41LD+qdWMHYbnitpCySruGYwZ7AE16zTYANp0MJ7vJY2Nwt9kcU8V/Kvz//+fG+JkY0vyafKBzxogqBBOy+cTToE+gN+72QfHjdotUEKtVHGsb7Xu7lhIQrFD8oA17REV6zlhkKqMt3KYqFjqlHff+NsVHTeNEhbxRcHqKEaS6+oFBF/MuleJ29f1FDo2ar2LDMUNbgvejYpA/te+njupbtZRYYUnC85qhR+BlqC81hauFT4/WG4xS5pugmsFJ1Mr+00Bkq1o0CzM4mC6xxk3dDTwITNfgbhVAGOZqhFD0oZRzaH+pKOBbWDeeOXOVCqXsqoKO7YSeAAHiGyl+GsGGrnXMz+HmH/qQwdvL2vnjREV5DZ7vobpg9W/YJuHyxRfmMSKwZdF8zg8Kab7ph0sqy7gew4RMrlDiVWij1KJ3AW8aECRzWolqIzTVbmMcFXjEccRMcHl6hJvCiK6tlvfCIoDRx+QwSG+Y91D4Byudd83WEPWLx3XDmbyDvoWhcSUd0pUK5CfqaC/6ypWW805s6XhNRSdDd8Ax6w7FctnCF0swm0Q49QxXvLGDxzj4KljdQtsp3g7th712Ee9G5wq8R7ojtECWgO2+Fx4Y11+2ll/7Gd8Orw+eapEMqsnPs9WOdA/NriAEaIpg3XLh8IlYoo5Qx7i9smPg1ZVB4dYr1a5zDdsP71WULsBt2abxkU7GusDkG5VvRe6i2FrC9BDnRKQXva/zq4Be7vtZuIqvZ7sYbMEPFgNbKCtHnCpW2lrYH1+CwYahybF6FvfHJT+LiY5kSNEPtaH5NaGUtlJ5k5+1vBM3oXJMODI94Mdb1lc3Hd8NrwGtl7VtzylyMvD9I4w+fodyld5g1NGpq5GrGJbr6aojJG168iciSNEDTr2DhKN+2VbxGzQCbWz6BX/gTaQ1WxOeOIqJVj5onlSvTBH7eLuLvodKKjqTnFIeLcPkUeIYKzTEzijfs20sxtgWFr+g2ScPoXFMEu5jEtwg0DHdm9jdufkbza1Ky0Y7sbI6vs8CNSYg3nIFZ5YA+CvkvaJH1pexazCS8YSzKV2H7JbEdHf7OOyamhELeKGRhPqNfKQcvfOqt0d2wn4DmmJ3ojUTOHFw+YmWFnvD70KjZQtYAXdhSTNSqJ+DyJUHbCW4Ujj9vkox1z0hhPF6DV8Tf0okC6camCcoa/Eah9YeCRU35NpkFYB24QjE2XDRADeweqoryLSw+18ckAJM33B+KOLol3SlB+tRyVwP09FzT/r9RsHlpO49EY90NIebR3XDYWc8RnGuuIvfog41w1ZC3l3RE590ErmJZOJZVWpYEEuMnb7zesI/v5v++0c9wvOYKfYT1NSl4F/NG8nPOpOMN6PayCRqL4g0f02UTNQLxWTQAuq9+hm44z5fJbU1rpRxe2zzuE/hDXV+QLMmPSYP3UEeLPoOaYyh9DdmBpm4Y7QJ/5ODgsH7eIfomchkwZ2gCeed92cPlyrQFdXvp6oGhKUCWxXbD5CMTJ+DX5BsFeVV05w2evI++pnGBxzElfIGylmwIauEeuz6seP2aehursk+q6RFkh36aIw+H1eMrVJq8DeeaN1lHfTT7Gfhpfk5RA+cNx/16raH6Z3QDP80vcudd6QBopx9ONYbQrAWsX/OLbBQ8PNfE1PLpzJzT6D3UV8aGPd7B0Bfp2OWNpS773KORn2aS28v3Eq1s6v2AFPOJf37lPRReUyL4BEqQuNqSOpoFypT4u9x5J38opLZ5zKrHViR9FBrl+40YoGsTzShR3VClAd9YDcpZ56AV6p9JAxTvDxVzlZRVFLG7sfdQG2HDM+A1R9SElGBEiESnQQHWDX+7VEtQsH5N9qIzWSXVQOkAxwjFGqBhor4m7S8tGOX7+fu3rW5aLJB6VLSy3Gu2lsDiNV833sPPkWt846NAsoVY3vCv9J785la8Ll9WlMzuGxp82fKPy3c6Zp7CLbW9iJIUrJlPAuqG/9joDim0O28Nm6F80eUzS//ycmDUfDkKFLulVmwYphzrk4+CUMyt8I9wueZv37dv1ZkZrF8TysL7iBetLRav+XoEDbV8rbY5eIaSxnO5oYc37tP89u/tm8A1eG3zffXFv5BM14wp7lmIT/ONcg15is3AG24QIysbb+CDOlINRY1LPYV9hzmOjZrakxulZMsCnKG+bpxrtkrmM0B+jTyoRWgS5HqpgXjNH//5fiF+zRE2Ho4NV+n5t5JfLCpqaOy+/Le5a8mN3Aai6F44QPsG8SL7GIhvZaA5QHqfU3gbHkCAaEC9lwDxPmqAPAABMvUhJfVYs0qL5TFmFrMa1JQe33v1w64sZ+Q3x5abLTxdg00Buv26BrQWG/4jEta4/hvwGkjd5YWCH3MuSxwkXqiDHVx0dEfhjlNI7Tbvv9Q0xBrW3kKMHl8oeLs7+Zr3asz7XaMtocU01DFB1rCGWm1Ya+SUNxsjTb7/rjeqP7VCcw3B+SFrKPEZhX7RUO84Wti0bStF+V6TtXZkDbXwGi3p8pV/QlvaP43IccdTSsHhD29YW/yaRqwONZUdoIi+ShHWCGxYO9oUbPLjz36NfHMsXZbIIkFLKO9rCikM44w1k/i+4X4q81DvusF1G+2mYfOxP9AkgJoUwnjv10i2ORrT37ErvTVHtzsbBqCJCajw6Hzxa7b2mVXFGpObSFTDh855zltXfrwBaACE4TeiMPk1qwvsSgux4dzY3XKpUM3/lKov1CXhL4BgjIybrWFhXnMrHxTeoss312oP/bxQZDBz/AA4jH6N+RZ9w0tXrKb1atVv0T1RZHzC1yk69mtuphf3a/LpGBDe53xvTZm611IPlkIDOIxZM1B/jTObBn5ll29JXVxGok31y8wXjksEMuwCcj50A26dEb7ZsnjDZ7zZ0vI2x6pCgYEGXyhIG2LDrhySEa8orGwJ1bZmE2w+9gSaGCN9Th5fKKxe4pTWNInXobiRpSHLPCsFVZHXFKApLxTXoaZOvlMC22u6dRlKb57f2I8NX9KMwQF9YU/Vy267oFB7E8m8fK5R1DdcdQcoAI23IaRMhhORYfRryiVZlr1Sm0jmpVR5CIqt4Sq2+TEhzGDOWIQcwJlw5/LJ7q8p2wEa2tyt8vBlHV5TgMbmP22kx/t73NjtyxQdradWxlS9YPgGYttz3pDwDpbfbqwoLGRY6iTo5IbChv+lzNG62pm+Z8oXCyiThbd1Ab8orENtD6bWxhqzLmtos/lEfewDNPl58kxrPMTID251LVV4V9ZUlrRopfCSgmK/Znc2fLgm+JhiiGlhNgPXvPvb8C14zeeqEMbLa3QVU+IVkoVYHuknfKBAKoSQscZ8zsZjK6uhmmUEvq1TvTxlqW2J0FDqBOvRACXpLd9tjhqq3M7SvOJcb3zjj2fDR3iokw+e44O/vU8AwtyV1fXyN3aXXVl4UCzH5VyhDnWliHDKhExsIINGz1hjbt9iV1apn6pftB3tEZrXFDyzGe8LrQGsGfwwEtb0q2spWipryjjAuWlwLrXRebJlV6FwQjozwk+pJBRWTLSG1qNKY81vfXffhqrZrtm5lw+ABj8mAJfkR0gWTygMvGbwo89YI70r67krBQX0ayBxtodSHx2aC4IMwvAqY4gNQ9YUrBH3hqdZepM+wAMcSu+9pOUFdGRmMpg3bAxD8oRApRbOmn6Zh9JCWfPZ5xtVtLBQa7Ym9lTeT4kw2FufWU3MgGNZeeNu889OejvAaW6vadbmvd7TNj/YABGxIyVMpJeJ2TByvnHmNdJY89JNQ5a4Go8gKUVXbXbFGgQaIHszzFimfGiAWi7sIta4r92XdUPzO1Y1cuKUs8Ptl5VHD2XDADTBgaYEnjfC9+N9Vgn8VY3o9DGvEZ69/Gso/z04i9rCC5Vn6HarKDxhckCqxCVbsmeTrOesYayR7jb/c1o63pt8pm9rz+XDQnOwDkHYIrBAwtgY4+r1RpePevlMb6R7+f7GZZs9N7EozdK72bOwe4kgk+xcRcCMCdiNRZGBv811KDeJX0v9Z1pGFHi/ZdNsXnd8UGie4auhpxsCAyob8oYkVLGHQXl7nofqmPMJ7q/phvkQE1ufimFnJ+V9xLr2gAI7h4QgxrL6RpKTRsYatyp6K5HQHEhAlfMbfAdenfdT3lcHgaGs8Si5geItSgFiFZ1DRjwy45Ptrzn21ObDNp/CnmrOl512SrxhJOCTwayxcZFO5aXyJWu6flrRYZFevqPrl/YabCKhdgCt9lHep5gga/Ar8twzEojWeMwgYjWUNVzz7qR7+U549I0BT2FAslmzj/I+Wu8gRxx5e450d5ozptg27PJ1NGEo+kI9z+uF6MDPctzx5zLdI9jwFd6hwQ4WqwYYkRH7amKci1HwQDlPynvo53JzK1Wie8Vnsl+5WMiFldpolvj/ofkRPAmnQCYW+ljZ+8QWc654Q+ZgmyNijfnF5tj/AJn5Im5LIAsCAAAAAElFTkSuQmCC"
  30563. /***/ }),
  30564. /***/ 99:
  30565. /*!*********************************************************!*\
  30566. !*** D:/AAAcompany_product/产品化管理端/static/mine/head.png ***!
  30567. \*********************************************************/
  30568. /*! no static exports found */
  30569. /***/ (function(module, exports) {
  30570. 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=="
  30571. /***/ })
  30572. }]);
  30573. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map