vendor.js 847 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook) {
  243. return function (data) {
  244. return hook(data) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook));
  256. } else {
  257. var res = hook(data);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  330. });
  331. } else {
  332. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  333. }
  334. }
  335. return api.apply(void 0, [options].concat(params));
  336. }
  337. var promiseInterceptor = {
  338. returnValue: function returnValue(res) {
  339. if (!isPromise(res)) {
  340. return res;
  341. }
  342. return new Promise(function (resolve, reject) {
  343. res.then(function (res) {
  344. if (res[0]) {
  345. reject(res[0]);
  346. } else {
  347. resolve(res[1]);
  348. }
  349. });
  350. });
  351. }
  352. };
  353. 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/;
  354. var CONTEXT_API_RE = /^create|Manager$/;
  355. // Context例外情况
  356. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  357. // 同步例外情况
  358. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  359. var CALLBACK_API_RE = /^on|^off/;
  360. function isContextApi(name) {
  361. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  362. }
  363. function isSyncApi(name) {
  364. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  365. }
  366. function isCallbackApi(name) {
  367. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  368. }
  369. function handlePromise(promise) {
  370. return promise.then(function (data) {
  371. return [null, data];
  372. }).catch(function (err) {
  373. return [err];
  374. });
  375. }
  376. function shouldPromise(name) {
  377. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  378. return false;
  379. }
  380. return true;
  381. }
  382. /* eslint-disable no-extend-native */
  383. if (!Promise.prototype.finally) {
  384. Promise.prototype.finally = function (callback) {
  385. var promise = this.constructor;
  386. return this.then(function (value) {
  387. return promise.resolve(callback()).then(function () {
  388. return value;
  389. });
  390. }, function (reason) {
  391. return promise.resolve(callback()).then(function () {
  392. throw reason;
  393. });
  394. });
  395. };
  396. }
  397. function promisify(name, api) {
  398. if (!shouldPromise(name) || !isFn(api)) {
  399. return api;
  400. }
  401. return function promiseApi() {
  402. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  403. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  404. params[_key2 - 1] = arguments[_key2];
  405. }
  406. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  407. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  408. }
  409. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  410. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  411. success: resolve,
  412. fail: reject
  413. })].concat(params));
  414. })));
  415. };
  416. }
  417. var EPS = 1e-4;
  418. var BASE_DEVICE_WIDTH = 750;
  419. var isIOS = false;
  420. var deviceWidth = 0;
  421. var deviceDPR = 0;
  422. function checkDeviceWidth() {
  423. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  424. platform = _wx$getSystemInfoSync.platform,
  425. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  426. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  427. deviceWidth = windowWidth;
  428. deviceDPR = pixelRatio;
  429. isIOS = platform === 'ios';
  430. }
  431. function upx2px(number, newDeviceWidth) {
  432. if (deviceWidth === 0) {
  433. checkDeviceWidth();
  434. }
  435. number = Number(number);
  436. if (number === 0) {
  437. return 0;
  438. }
  439. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  440. if (result < 0) {
  441. result = -result;
  442. }
  443. result = Math.floor(result + EPS);
  444. if (result === 0) {
  445. if (deviceDPR === 1 || !isIOS) {
  446. result = 1;
  447. } else {
  448. result = 0.5;
  449. }
  450. }
  451. return number < 0 ? -result : result;
  452. }
  453. var LOCALE_ZH_HANS = 'zh-Hans';
  454. var LOCALE_ZH_HANT = 'zh-Hant';
  455. var LOCALE_EN = 'en';
  456. var LOCALE_FR = 'fr';
  457. var LOCALE_ES = 'es';
  458. var messages = {};
  459. var locale;
  460. {
  461. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  462. }
  463. function initI18nMessages() {
  464. if (!isEnableLocale()) {
  465. return;
  466. }
  467. var localeKeys = Object.keys(__uniConfig.locales);
  468. if (localeKeys.length) {
  469. localeKeys.forEach(function (locale) {
  470. var curMessages = messages[locale];
  471. var userMessages = __uniConfig.locales[locale];
  472. if (curMessages) {
  473. Object.assign(curMessages, userMessages);
  474. } else {
  475. messages[locale] = userMessages;
  476. }
  477. });
  478. }
  479. }
  480. initI18nMessages();
  481. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  482. var t = i18n.t;
  483. var i18nMixin = i18n.mixin = {
  484. beforeCreate: function beforeCreate() {
  485. var _this = this;
  486. var unwatch = i18n.i18n.watchLocale(function () {
  487. _this.$forceUpdate();
  488. });
  489. this.$once('hook:beforeDestroy', function () {
  490. unwatch();
  491. });
  492. },
  493. methods: {
  494. $$t: function $$t(key, values) {
  495. return t(key, values);
  496. }
  497. }
  498. };
  499. var setLocale = i18n.setLocale;
  500. var getLocale = i18n.getLocale;
  501. function initAppLocale(Vue, appVm, locale) {
  502. var state = Vue.observable({
  503. locale: locale || i18n.getLocale()
  504. });
  505. var localeWatchers = [];
  506. appVm.$watchLocale = function (fn) {
  507. localeWatchers.push(fn);
  508. };
  509. Object.defineProperty(appVm, '$locale', {
  510. get: function get() {
  511. return state.locale;
  512. },
  513. set: function set(v) {
  514. state.locale = v;
  515. localeWatchers.forEach(function (watch) {
  516. return watch(v);
  517. });
  518. }
  519. });
  520. }
  521. function isEnableLocale() {
  522. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  523. }
  524. function include(str, parts) {
  525. return !!parts.find(function (part) {
  526. return str.indexOf(part) !== -1;
  527. });
  528. }
  529. function startsWith(str, parts) {
  530. return parts.find(function (part) {
  531. return str.indexOf(part) === 0;
  532. });
  533. }
  534. function normalizeLocale(locale, messages) {
  535. if (!locale) {
  536. return;
  537. }
  538. locale = locale.trim().replace(/_/g, '-');
  539. if (messages && messages[locale]) {
  540. return locale;
  541. }
  542. locale = locale.toLowerCase();
  543. if (locale === 'chinese') {
  544. // 支付宝
  545. return LOCALE_ZH_HANS;
  546. }
  547. if (locale.indexOf('zh') === 0) {
  548. if (locale.indexOf('-hans') > -1) {
  549. return LOCALE_ZH_HANS;
  550. }
  551. if (locale.indexOf('-hant') > -1) {
  552. return LOCALE_ZH_HANT;
  553. }
  554. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  555. return LOCALE_ZH_HANT;
  556. }
  557. return LOCALE_ZH_HANS;
  558. }
  559. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  560. if (lang) {
  561. return lang;
  562. }
  563. }
  564. // export function initI18n() {
  565. // const localeKeys = Object.keys(__uniConfig.locales || {})
  566. // if (localeKeys.length) {
  567. // localeKeys.forEach((locale) =>
  568. // i18n.add(locale, __uniConfig.locales[locale])
  569. // )
  570. // }
  571. // }
  572. function getLocale$1() {
  573. // 优先使用 $locale
  574. if (isFn(getApp)) {
  575. var app = getApp({
  576. allowDefault: true
  577. });
  578. if (app && app.$vm) {
  579. return app.$vm.$locale;
  580. }
  581. }
  582. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  583. }
  584. function setLocale$1(locale) {
  585. var app = isFn(getApp) ? getApp() : false;
  586. if (!app) {
  587. return false;
  588. }
  589. var oldLocale = app.$vm.$locale;
  590. if (oldLocale !== locale) {
  591. app.$vm.$locale = locale;
  592. onLocaleChangeCallbacks.forEach(function (fn) {
  593. return fn({
  594. locale: locale
  595. });
  596. });
  597. return true;
  598. }
  599. return false;
  600. }
  601. var onLocaleChangeCallbacks = [];
  602. function onLocaleChange(fn) {
  603. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  604. onLocaleChangeCallbacks.push(fn);
  605. }
  606. }
  607. if (typeof global !== 'undefined') {
  608. global.getLocale = getLocale$1;
  609. }
  610. var interceptors = {
  611. promiseInterceptor: promiseInterceptor
  612. };
  613. var baseApi = /*#__PURE__*/Object.freeze({
  614. __proto__: null,
  615. upx2px: upx2px,
  616. getLocale: getLocale$1,
  617. setLocale: setLocale$1,
  618. onLocaleChange: onLocaleChange,
  619. addInterceptor: addInterceptor,
  620. removeInterceptor: removeInterceptor,
  621. interceptors: interceptors
  622. });
  623. function findExistsPageIndex(url) {
  624. var pages = getCurrentPages();
  625. var len = pages.length;
  626. while (len--) {
  627. var page = pages[len];
  628. if (page.$page && page.$page.fullPath === url) {
  629. return len;
  630. }
  631. }
  632. return -1;
  633. }
  634. var redirectTo = {
  635. name: function name(fromArgs) {
  636. if (fromArgs.exists === 'back' && fromArgs.delta) {
  637. return 'navigateBack';
  638. }
  639. return 'redirectTo';
  640. },
  641. args: function args(fromArgs) {
  642. if (fromArgs.exists === 'back' && fromArgs.url) {
  643. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  644. if (existsPageIndex !== -1) {
  645. var delta = getCurrentPages().length - 1 - existsPageIndex;
  646. if (delta > 0) {
  647. fromArgs.delta = delta;
  648. }
  649. }
  650. }
  651. }
  652. };
  653. var previewImage = {
  654. args: function args(fromArgs) {
  655. var currentIndex = parseInt(fromArgs.current);
  656. if (isNaN(currentIndex)) {
  657. return;
  658. }
  659. var urls = fromArgs.urls;
  660. if (!Array.isArray(urls)) {
  661. return;
  662. }
  663. var len = urls.length;
  664. if (!len) {
  665. return;
  666. }
  667. if (currentIndex < 0) {
  668. currentIndex = 0;
  669. } else if (currentIndex >= len) {
  670. currentIndex = len - 1;
  671. }
  672. if (currentIndex > 0) {
  673. fromArgs.current = urls[currentIndex];
  674. fromArgs.urls = urls.filter(function (item, index) {
  675. return index < currentIndex ? item !== urls[currentIndex] : true;
  676. });
  677. } else {
  678. fromArgs.current = urls[0];
  679. }
  680. return {
  681. indicator: false,
  682. loop: false
  683. };
  684. }
  685. };
  686. var UUID_KEY = '__DC_STAT_UUID';
  687. var deviceId;
  688. function useDeviceId(result) {
  689. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  690. if (!deviceId) {
  691. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  692. wx.setStorage({
  693. key: UUID_KEY,
  694. data: deviceId
  695. });
  696. }
  697. result.deviceId = deviceId;
  698. }
  699. function addSafeAreaInsets(result) {
  700. if (result.safeArea) {
  701. var safeArea = result.safeArea;
  702. result.safeAreaInsets = {
  703. top: safeArea.top,
  704. left: safeArea.left,
  705. right: result.windowWidth - safeArea.right,
  706. bottom: result.screenHeight - safeArea.bottom
  707. };
  708. }
  709. }
  710. function populateParameters(result) {
  711. var _result$brand = result.brand,
  712. brand = _result$brand === void 0 ? '' : _result$brand,
  713. _result$model = result.model,
  714. model = _result$model === void 0 ? '' : _result$model,
  715. _result$system = result.system,
  716. system = _result$system === void 0 ? '' : _result$system,
  717. _result$language = result.language,
  718. language = _result$language === void 0 ? '' : _result$language,
  719. theme = result.theme,
  720. version = result.version,
  721. platform = result.platform,
  722. fontSizeSetting = result.fontSizeSetting,
  723. SDKVersion = result.SDKVersion,
  724. pixelRatio = result.pixelRatio,
  725. deviceOrientation = result.deviceOrientation;
  726. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  727. var extraParam = {};
  728. // osName osVersion
  729. var osName = '';
  730. var osVersion = '';
  731. {
  732. osName = system.split(' ')[0] || '';
  733. osVersion = system.split(' ')[1] || '';
  734. }
  735. var hostVersion = version;
  736. // deviceType
  737. var deviceType = getGetDeviceType(result, model);
  738. // deviceModel
  739. var deviceBrand = getDeviceBrand(brand);
  740. // hostName
  741. var _hostName = getHostName(result);
  742. // deviceOrientation
  743. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  744. // devicePixelRatio
  745. var _devicePixelRatio = pixelRatio;
  746. // SDKVersion
  747. var _SDKVersion = SDKVersion;
  748. // hostLanguage
  749. var hostLanguage = language.replace(/_/g, '-');
  750. // wx.getAccountInfoSync
  751. var parameters = {
  752. appId: "__UNI__9AAF800",
  753. appName: "businessard",
  754. appVersion: "1.0.0",
  755. appVersionCode: "100",
  756. appLanguage: getAppLanguage(hostLanguage),
  757. uniCompileVersion: "3.7.3",
  758. uniRuntimeVersion: "3.7.3",
  759. uniPlatform: undefined || "mp-weixin",
  760. deviceBrand: deviceBrand,
  761. deviceModel: model,
  762. deviceType: deviceType,
  763. devicePixelRatio: _devicePixelRatio,
  764. deviceOrientation: _deviceOrientation,
  765. osName: osName.toLocaleLowerCase(),
  766. osVersion: osVersion,
  767. hostTheme: theme,
  768. hostVersion: hostVersion,
  769. hostLanguage: hostLanguage,
  770. hostName: _hostName,
  771. hostSDKVersion: _SDKVersion,
  772. hostFontSizeSetting: fontSizeSetting,
  773. windowTop: 0,
  774. windowBottom: 0,
  775. // TODO
  776. osLanguage: undefined,
  777. osTheme: undefined,
  778. ua: undefined,
  779. hostPackageName: undefined,
  780. browserName: undefined,
  781. browserVersion: undefined
  782. };
  783. Object.assign(result, parameters, extraParam);
  784. }
  785. function getGetDeviceType(result, model) {
  786. var deviceType = result.deviceType || 'phone';
  787. {
  788. var deviceTypeMaps = {
  789. ipad: 'pad',
  790. windows: 'pc',
  791. mac: 'pc'
  792. };
  793. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  794. var _model = model.toLocaleLowerCase();
  795. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  796. var _m = deviceTypeMapsKeys[index];
  797. if (_model.indexOf(_m) !== -1) {
  798. deviceType = deviceTypeMaps[_m];
  799. break;
  800. }
  801. }
  802. }
  803. return deviceType;
  804. }
  805. function getDeviceBrand(brand) {
  806. var deviceBrand = brand;
  807. if (deviceBrand) {
  808. deviceBrand = brand.toLocaleLowerCase();
  809. }
  810. return deviceBrand;
  811. }
  812. function getAppLanguage(defaultLanguage) {
  813. return getLocale$1 ? getLocale$1() : defaultLanguage;
  814. }
  815. function getHostName(result) {
  816. var _platform = 'WeChat';
  817. var _hostName = result.hostName || _platform; // mp-jd
  818. {
  819. if (result.environment) {
  820. _hostName = result.environment;
  821. } else if (result.host && result.host.env) {
  822. _hostName = result.host.env;
  823. }
  824. }
  825. return _hostName;
  826. }
  827. var getSystemInfo = {
  828. returnValue: function returnValue(result) {
  829. useDeviceId(result);
  830. addSafeAreaInsets(result);
  831. populateParameters(result);
  832. }
  833. };
  834. var showActionSheet = {
  835. args: function args(fromArgs) {
  836. if ((0, _typeof2.default)(fromArgs) === 'object') {
  837. fromArgs.alertText = fromArgs.title;
  838. }
  839. }
  840. };
  841. var getAppBaseInfo = {
  842. returnValue: function returnValue(result) {
  843. var _result = result,
  844. version = _result.version,
  845. language = _result.language,
  846. SDKVersion = _result.SDKVersion,
  847. theme = _result.theme;
  848. var _hostName = getHostName(result);
  849. var hostLanguage = language.replace('_', '-');
  850. result = sortObject(Object.assign(result, {
  851. appId: "__UNI__9AAF800",
  852. appName: "businessard",
  853. appVersion: "1.0.0",
  854. appVersionCode: "100",
  855. appLanguage: getAppLanguage(hostLanguage),
  856. hostVersion: version,
  857. hostLanguage: hostLanguage,
  858. hostName: _hostName,
  859. hostSDKVersion: SDKVersion,
  860. hostTheme: theme
  861. }));
  862. }
  863. };
  864. var getDeviceInfo = {
  865. returnValue: function returnValue(result) {
  866. var _result2 = result,
  867. brand = _result2.brand,
  868. model = _result2.model;
  869. var deviceType = getGetDeviceType(result, model);
  870. var deviceBrand = getDeviceBrand(brand);
  871. useDeviceId(result);
  872. result = sortObject(Object.assign(result, {
  873. deviceType: deviceType,
  874. deviceBrand: deviceBrand,
  875. deviceModel: model
  876. }));
  877. }
  878. };
  879. var getWindowInfo = {
  880. returnValue: function returnValue(result) {
  881. addSafeAreaInsets(result);
  882. result = sortObject(Object.assign(result, {
  883. windowTop: 0,
  884. windowBottom: 0
  885. }));
  886. }
  887. };
  888. var getAppAuthorizeSetting = {
  889. returnValue: function returnValue(result) {
  890. var locationReducedAccuracy = result.locationReducedAccuracy;
  891. result.locationAccuracy = 'unsupported';
  892. if (locationReducedAccuracy === true) {
  893. result.locationAccuracy = 'reduced';
  894. } else if (locationReducedAccuracy === false) {
  895. result.locationAccuracy = 'full';
  896. }
  897. }
  898. };
  899. // import navigateTo from 'uni-helpers/navigate-to'
  900. var compressImage = {
  901. args: function args(fromArgs) {
  902. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  903. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  904. fromArgs.compressHeight = fromArgs.compressedHeight;
  905. }
  906. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  907. fromArgs.compressWidth = fromArgs.compressedWidth;
  908. }
  909. }
  910. };
  911. var protocols = {
  912. redirectTo: redirectTo,
  913. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  914. previewImage: previewImage,
  915. getSystemInfo: getSystemInfo,
  916. getSystemInfoSync: getSystemInfo,
  917. showActionSheet: showActionSheet,
  918. getAppBaseInfo: getAppBaseInfo,
  919. getDeviceInfo: getDeviceInfo,
  920. getWindowInfo: getWindowInfo,
  921. getAppAuthorizeSetting: getAppAuthorizeSetting,
  922. compressImage: compressImage
  923. };
  924. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  925. var canIUses = [];
  926. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  927. function processCallback(methodName, method, returnValue) {
  928. return function (res) {
  929. return method(processReturnValue(methodName, res, returnValue));
  930. };
  931. }
  932. function processArgs(methodName, fromArgs) {
  933. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  934. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  935. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  936. if (isPlainObject(fromArgs)) {
  937. // 一般 api 的参数解析
  938. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  939. if (isFn(argsOption)) {
  940. argsOption = argsOption(fromArgs, toArgs) || {};
  941. }
  942. for (var key in fromArgs) {
  943. if (hasOwn(argsOption, key)) {
  944. var keyOption = argsOption[key];
  945. if (isFn(keyOption)) {
  946. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  947. }
  948. if (!keyOption) {
  949. // 不支持的参数
  950. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  951. } else if (isStr(keyOption)) {
  952. // 重写参数 key
  953. toArgs[keyOption] = fromArgs[key];
  954. } else if (isPlainObject(keyOption)) {
  955. // {name:newName,value:value}可重新指定参数 key:value
  956. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  957. }
  958. } else if (CALLBACKS.indexOf(key) !== -1) {
  959. if (isFn(fromArgs[key])) {
  960. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  961. }
  962. } else {
  963. if (!keepFromArgs) {
  964. toArgs[key] = fromArgs[key];
  965. }
  966. }
  967. }
  968. return toArgs;
  969. } else if (isFn(fromArgs)) {
  970. fromArgs = processCallback(methodName, fromArgs, returnValue);
  971. }
  972. return fromArgs;
  973. }
  974. function processReturnValue(methodName, res, returnValue) {
  975. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  976. if (isFn(protocols.returnValue)) {
  977. // 处理通用 returnValue
  978. res = protocols.returnValue(methodName, res);
  979. }
  980. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  981. }
  982. function wrapper(methodName, method) {
  983. if (hasOwn(protocols, methodName)) {
  984. var protocol = protocols[methodName];
  985. if (!protocol) {
  986. // 暂不支持的 api
  987. return function () {
  988. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  989. };
  990. }
  991. return function (arg1, arg2) {
  992. // 目前 api 最多两个参数
  993. var options = protocol;
  994. if (isFn(protocol)) {
  995. options = protocol(arg1);
  996. }
  997. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  998. var args = [arg1];
  999. if (typeof arg2 !== 'undefined') {
  1000. args.push(arg2);
  1001. }
  1002. if (isFn(options.name)) {
  1003. methodName = options.name(arg1);
  1004. } else if (isStr(options.name)) {
  1005. methodName = options.name;
  1006. }
  1007. var returnValue = wx[methodName].apply(wx, args);
  1008. if (isSyncApi(methodName)) {
  1009. // 同步 api
  1010. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1011. }
  1012. return returnValue;
  1013. };
  1014. }
  1015. return method;
  1016. }
  1017. var todoApis = Object.create(null);
  1018. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1019. function createTodoApi(name) {
  1020. return function todoApi(_ref) {
  1021. var fail = _ref.fail,
  1022. complete = _ref.complete;
  1023. var res = {
  1024. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1025. };
  1026. isFn(fail) && fail(res);
  1027. isFn(complete) && complete(res);
  1028. };
  1029. }
  1030. TODOS.forEach(function (name) {
  1031. todoApis[name] = createTodoApi(name);
  1032. });
  1033. var providers = {
  1034. oauth: ['weixin'],
  1035. share: ['weixin'],
  1036. payment: ['wxpay'],
  1037. push: ['weixin']
  1038. };
  1039. function getProvider(_ref2) {
  1040. var service = _ref2.service,
  1041. success = _ref2.success,
  1042. fail = _ref2.fail,
  1043. complete = _ref2.complete;
  1044. var res = false;
  1045. if (providers[service]) {
  1046. res = {
  1047. errMsg: 'getProvider:ok',
  1048. service: service,
  1049. provider: providers[service]
  1050. };
  1051. isFn(success) && success(res);
  1052. } else {
  1053. res = {
  1054. errMsg: 'getProvider:fail service not found'
  1055. };
  1056. isFn(fail) && fail(res);
  1057. }
  1058. isFn(complete) && complete(res);
  1059. }
  1060. var extraApi = /*#__PURE__*/Object.freeze({
  1061. __proto__: null,
  1062. getProvider: getProvider
  1063. });
  1064. var getEmitter = function () {
  1065. var Emitter;
  1066. return function getUniEmitter() {
  1067. if (!Emitter) {
  1068. Emitter = new _vue.default();
  1069. }
  1070. return Emitter;
  1071. };
  1072. }();
  1073. function apply(ctx, method, args) {
  1074. return ctx[method].apply(ctx, args);
  1075. }
  1076. function $on() {
  1077. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1078. }
  1079. function $off() {
  1080. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1081. }
  1082. function $once() {
  1083. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1084. }
  1085. function $emit() {
  1086. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1087. }
  1088. var eventApi = /*#__PURE__*/Object.freeze({
  1089. __proto__: null,
  1090. $on: $on,
  1091. $off: $off,
  1092. $once: $once,
  1093. $emit: $emit
  1094. });
  1095. /**
  1096. * 框架内 try-catch
  1097. */
  1098. /**
  1099. * 开发者 try-catch
  1100. */
  1101. function tryCatch(fn) {
  1102. return function () {
  1103. try {
  1104. return fn.apply(fn, arguments);
  1105. } catch (e) {
  1106. // TODO
  1107. console.error(e);
  1108. }
  1109. };
  1110. }
  1111. function getApiCallbacks(params) {
  1112. var apiCallbacks = {};
  1113. for (var name in params) {
  1114. var param = params[name];
  1115. if (isFn(param)) {
  1116. apiCallbacks[name] = tryCatch(param);
  1117. delete params[name];
  1118. }
  1119. }
  1120. return apiCallbacks;
  1121. }
  1122. var cid;
  1123. var cidErrMsg;
  1124. var enabled;
  1125. function normalizePushMessage(message) {
  1126. try {
  1127. return JSON.parse(message);
  1128. } catch (e) {}
  1129. return message;
  1130. }
  1131. function invokePushCallback(args) {
  1132. if (args.type === 'enabled') {
  1133. enabled = true;
  1134. } else if (args.type === 'clientId') {
  1135. cid = args.cid;
  1136. cidErrMsg = args.errMsg;
  1137. invokeGetPushCidCallbacks(cid, args.errMsg);
  1138. } else if (args.type === 'pushMsg') {
  1139. var message = {
  1140. type: 'receive',
  1141. data: normalizePushMessage(args.message)
  1142. };
  1143. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1144. var callback = onPushMessageCallbacks[i];
  1145. callback(message);
  1146. // 该消息已被阻止
  1147. if (message.stopped) {
  1148. break;
  1149. }
  1150. }
  1151. } else if (args.type === 'click') {
  1152. onPushMessageCallbacks.forEach(function (callback) {
  1153. callback({
  1154. type: 'click',
  1155. data: normalizePushMessage(args.message)
  1156. });
  1157. });
  1158. }
  1159. }
  1160. var getPushCidCallbacks = [];
  1161. function invokeGetPushCidCallbacks(cid, errMsg) {
  1162. getPushCidCallbacks.forEach(function (callback) {
  1163. callback(cid, errMsg);
  1164. });
  1165. getPushCidCallbacks.length = 0;
  1166. }
  1167. function getPushClientId(args) {
  1168. if (!isPlainObject(args)) {
  1169. args = {};
  1170. }
  1171. var _getApiCallbacks = getApiCallbacks(args),
  1172. success = _getApiCallbacks.success,
  1173. fail = _getApiCallbacks.fail,
  1174. complete = _getApiCallbacks.complete;
  1175. var hasSuccess = isFn(success);
  1176. var hasFail = isFn(fail);
  1177. var hasComplete = isFn(complete);
  1178. Promise.resolve().then(function () {
  1179. if (typeof enabled === 'undefined') {
  1180. enabled = false;
  1181. cid = '';
  1182. cidErrMsg = 'uniPush is not enabled';
  1183. }
  1184. getPushCidCallbacks.push(function (cid, errMsg) {
  1185. var res;
  1186. if (cid) {
  1187. res = {
  1188. errMsg: 'getPushClientId:ok',
  1189. cid: cid
  1190. };
  1191. hasSuccess && success(res);
  1192. } else {
  1193. res = {
  1194. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1195. };
  1196. hasFail && fail(res);
  1197. }
  1198. hasComplete && complete(res);
  1199. });
  1200. if (typeof cid !== 'undefined') {
  1201. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1202. }
  1203. });
  1204. }
  1205. var onPushMessageCallbacks = [];
  1206. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1207. var onPushMessage = function onPushMessage(fn) {
  1208. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1209. onPushMessageCallbacks.push(fn);
  1210. }
  1211. };
  1212. var offPushMessage = function offPushMessage(fn) {
  1213. if (!fn) {
  1214. onPushMessageCallbacks.length = 0;
  1215. } else {
  1216. var index = onPushMessageCallbacks.indexOf(fn);
  1217. if (index > -1) {
  1218. onPushMessageCallbacks.splice(index, 1);
  1219. }
  1220. }
  1221. };
  1222. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1223. if (!baseInfo) {
  1224. baseInfo = wx.getSystemInfoSync();
  1225. }
  1226. var host = baseInfo ? baseInfo.host : null;
  1227. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1228. var api = /*#__PURE__*/Object.freeze({
  1229. __proto__: null,
  1230. shareVideoMessage: shareVideoMessage,
  1231. getPushClientId: getPushClientId,
  1232. onPushMessage: onPushMessage,
  1233. offPushMessage: offPushMessage,
  1234. invokePushCallback: invokePushCallback
  1235. });
  1236. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1237. function findVmByVueId(vm, vuePid) {
  1238. var $children = vm.$children;
  1239. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1240. for (var i = $children.length - 1; i >= 0; i--) {
  1241. var childVm = $children[i];
  1242. if (childVm.$scope._$vueId === vuePid) {
  1243. return childVm;
  1244. }
  1245. }
  1246. // 反向递归查找
  1247. var parentVm;
  1248. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1249. parentVm = findVmByVueId($children[_i], vuePid);
  1250. if (parentVm) {
  1251. return parentVm;
  1252. }
  1253. }
  1254. }
  1255. function initBehavior(options) {
  1256. return Behavior(options);
  1257. }
  1258. function isPage() {
  1259. return !!this.route;
  1260. }
  1261. function initRelation(detail) {
  1262. this.triggerEvent('__l', detail);
  1263. }
  1264. function selectAllComponents(mpInstance, selector, $refs) {
  1265. var components = mpInstance.selectAllComponents(selector) || [];
  1266. components.forEach(function (component) {
  1267. var ref = component.dataset.ref;
  1268. $refs[ref] = component.$vm || toSkip(component);
  1269. {
  1270. if (component.dataset.vueGeneric === 'scoped') {
  1271. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1272. selectAllComponents(scopedComponent, selector, $refs);
  1273. });
  1274. }
  1275. }
  1276. });
  1277. }
  1278. function syncRefs(refs, newRefs) {
  1279. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1280. var newKeys = Object.keys(newRefs);
  1281. newKeys.forEach(function (key) {
  1282. var oldValue = refs[key];
  1283. var newValue = newRefs[key];
  1284. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1285. return oldValue.includes(value);
  1286. })) {
  1287. return;
  1288. }
  1289. refs[key] = newValue;
  1290. oldKeys.delete(key);
  1291. });
  1292. oldKeys.forEach(function (key) {
  1293. delete refs[key];
  1294. });
  1295. return refs;
  1296. }
  1297. function initRefs(vm) {
  1298. var mpInstance = vm.$scope;
  1299. var refs = {};
  1300. Object.defineProperty(vm, '$refs', {
  1301. get: function get() {
  1302. var $refs = {};
  1303. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1304. // TODO 暂不考虑 for 中的 scoped
  1305. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1306. forComponents.forEach(function (component) {
  1307. var ref = component.dataset.ref;
  1308. if (!$refs[ref]) {
  1309. $refs[ref] = [];
  1310. }
  1311. $refs[ref].push(component.$vm || toSkip(component));
  1312. });
  1313. return syncRefs(refs, $refs);
  1314. }
  1315. });
  1316. }
  1317. function handleLink(event) {
  1318. var _ref3 = event.detail || event.value,
  1319. vuePid = _ref3.vuePid,
  1320. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1321. var parentVm;
  1322. if (vuePid) {
  1323. parentVm = findVmByVueId(this.$vm, vuePid);
  1324. }
  1325. if (!parentVm) {
  1326. parentVm = this.$vm;
  1327. }
  1328. vueOptions.parent = parentVm;
  1329. }
  1330. function markMPComponent(component) {
  1331. // 在 Vue 中标记为小程序组件
  1332. var IS_MP = '__v_isMPComponent';
  1333. Object.defineProperty(component, IS_MP, {
  1334. configurable: true,
  1335. enumerable: false,
  1336. value: true
  1337. });
  1338. return component;
  1339. }
  1340. function toSkip(obj) {
  1341. var OB = '__ob__';
  1342. var SKIP = '__v_skip';
  1343. if (isObject(obj) && Object.isExtensible(obj)) {
  1344. // 避免被 @vue/composition-api 观测
  1345. Object.defineProperty(obj, OB, {
  1346. configurable: true,
  1347. enumerable: false,
  1348. value: (0, _defineProperty2.default)({}, SKIP, true)
  1349. });
  1350. }
  1351. return obj;
  1352. }
  1353. var MPPage = Page;
  1354. var MPComponent = Component;
  1355. var customizeRE = /:/g;
  1356. var customize = cached(function (str) {
  1357. return camelize(str.replace(customizeRE, '-'));
  1358. });
  1359. function initTriggerEvent(mpInstance) {
  1360. var oldTriggerEvent = mpInstance.triggerEvent;
  1361. var newTriggerEvent = function newTriggerEvent(event) {
  1362. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1363. args[_key3 - 1] = arguments[_key3];
  1364. }
  1365. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1366. if (this.$vm || this.dataset && this.dataset.comType) {
  1367. event = customize(event);
  1368. } else {
  1369. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1370. var newEvent = customize(event);
  1371. if (newEvent !== event) {
  1372. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1373. }
  1374. }
  1375. return oldTriggerEvent.apply(this, [event].concat(args));
  1376. };
  1377. try {
  1378. // 京东小程序 triggerEvent 为只读
  1379. mpInstance.triggerEvent = newTriggerEvent;
  1380. } catch (error) {
  1381. mpInstance._triggerEvent = newTriggerEvent;
  1382. }
  1383. }
  1384. function initHook(name, options, isComponent) {
  1385. var oldHook = options[name];
  1386. options[name] = function () {
  1387. markMPComponent(this);
  1388. initTriggerEvent(this);
  1389. if (oldHook) {
  1390. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1391. args[_key4] = arguments[_key4];
  1392. }
  1393. return oldHook.apply(this, args);
  1394. }
  1395. };
  1396. }
  1397. if (!MPPage.__$wrappered) {
  1398. MPPage.__$wrappered = true;
  1399. Page = function Page() {
  1400. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1401. initHook('onLoad', options);
  1402. return MPPage(options);
  1403. };
  1404. Page.after = MPPage.after;
  1405. Component = function Component() {
  1406. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1407. initHook('created', options);
  1408. return MPComponent(options);
  1409. };
  1410. }
  1411. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1412. function initMocks(vm, mocks) {
  1413. var mpInstance = vm.$mp[vm.mpType];
  1414. mocks.forEach(function (mock) {
  1415. if (hasOwn(mpInstance, mock)) {
  1416. vm[mock] = mpInstance[mock];
  1417. }
  1418. });
  1419. }
  1420. function hasHook(hook, vueOptions) {
  1421. if (!vueOptions) {
  1422. return true;
  1423. }
  1424. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1425. return true;
  1426. }
  1427. vueOptions = vueOptions.default || vueOptions;
  1428. if (isFn(vueOptions)) {
  1429. if (isFn(vueOptions.extendOptions[hook])) {
  1430. return true;
  1431. }
  1432. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1433. return true;
  1434. }
  1435. return false;
  1436. }
  1437. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1438. return true;
  1439. }
  1440. var mixins = vueOptions.mixins;
  1441. if (Array.isArray(mixins)) {
  1442. return !!mixins.find(function (mixin) {
  1443. return hasHook(hook, mixin);
  1444. });
  1445. }
  1446. }
  1447. function initHooks(mpOptions, hooks, vueOptions) {
  1448. hooks.forEach(function (hook) {
  1449. if (hasHook(hook, vueOptions)) {
  1450. mpOptions[hook] = function (args) {
  1451. return this.$vm && this.$vm.__call_hook(hook, args);
  1452. };
  1453. }
  1454. });
  1455. }
  1456. function initUnknownHooks(mpOptions, vueOptions) {
  1457. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1458. findHooks(vueOptions).forEach(function (hook) {
  1459. return initHook$1(mpOptions, hook, excludes);
  1460. });
  1461. }
  1462. function findHooks(vueOptions) {
  1463. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1464. if (vueOptions) {
  1465. Object.keys(vueOptions).forEach(function (name) {
  1466. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1467. hooks.push(name);
  1468. }
  1469. });
  1470. }
  1471. return hooks;
  1472. }
  1473. function initHook$1(mpOptions, hook, excludes) {
  1474. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1475. mpOptions[hook] = function (args) {
  1476. return this.$vm && this.$vm.__call_hook(hook, args);
  1477. };
  1478. }
  1479. }
  1480. function initVueComponent(Vue, vueOptions) {
  1481. vueOptions = vueOptions.default || vueOptions;
  1482. var VueComponent;
  1483. if (isFn(vueOptions)) {
  1484. VueComponent = vueOptions;
  1485. } else {
  1486. VueComponent = Vue.extend(vueOptions);
  1487. }
  1488. vueOptions = VueComponent.options;
  1489. return [VueComponent, vueOptions];
  1490. }
  1491. function initSlots(vm, vueSlots) {
  1492. if (Array.isArray(vueSlots) && vueSlots.length) {
  1493. var $slots = Object.create(null);
  1494. vueSlots.forEach(function (slotName) {
  1495. $slots[slotName] = true;
  1496. });
  1497. vm.$scopedSlots = vm.$slots = $slots;
  1498. }
  1499. }
  1500. function initVueIds(vueIds, mpInstance) {
  1501. vueIds = (vueIds || '').split(',');
  1502. var len = vueIds.length;
  1503. if (len === 1) {
  1504. mpInstance._$vueId = vueIds[0];
  1505. } else if (len === 2) {
  1506. mpInstance._$vueId = vueIds[0];
  1507. mpInstance._$vuePid = vueIds[1];
  1508. }
  1509. }
  1510. function initData(vueOptions, context) {
  1511. var data = vueOptions.data || {};
  1512. var methods = vueOptions.methods || {};
  1513. if (typeof data === 'function') {
  1514. try {
  1515. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1516. } catch (e) {
  1517. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1518. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1519. }
  1520. }
  1521. } else {
  1522. try {
  1523. // 对 data 格式化
  1524. data = JSON.parse(JSON.stringify(data));
  1525. } catch (e) {}
  1526. }
  1527. if (!isPlainObject(data)) {
  1528. data = {};
  1529. }
  1530. Object.keys(methods).forEach(function (methodName) {
  1531. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1532. data[methodName] = methods[methodName];
  1533. }
  1534. });
  1535. return data;
  1536. }
  1537. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1538. function createObserver(name) {
  1539. return function observer(newVal, oldVal) {
  1540. if (this.$vm) {
  1541. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1542. }
  1543. };
  1544. }
  1545. function initBehaviors(vueOptions, initBehavior) {
  1546. var vueBehaviors = vueOptions.behaviors;
  1547. var vueExtends = vueOptions.extends;
  1548. var vueMixins = vueOptions.mixins;
  1549. var vueProps = vueOptions.props;
  1550. if (!vueProps) {
  1551. vueOptions.props = vueProps = [];
  1552. }
  1553. var behaviors = [];
  1554. if (Array.isArray(vueBehaviors)) {
  1555. vueBehaviors.forEach(function (behavior) {
  1556. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1557. if (behavior === 'uni://form-field') {
  1558. if (Array.isArray(vueProps)) {
  1559. vueProps.push('name');
  1560. vueProps.push('value');
  1561. } else {
  1562. vueProps.name = {
  1563. type: String,
  1564. default: ''
  1565. };
  1566. vueProps.value = {
  1567. type: [String, Number, Boolean, Array, Object, Date],
  1568. default: ''
  1569. };
  1570. }
  1571. }
  1572. });
  1573. }
  1574. if (isPlainObject(vueExtends) && vueExtends.props) {
  1575. behaviors.push(initBehavior({
  1576. properties: initProperties(vueExtends.props, true)
  1577. }));
  1578. }
  1579. if (Array.isArray(vueMixins)) {
  1580. vueMixins.forEach(function (vueMixin) {
  1581. if (isPlainObject(vueMixin) && vueMixin.props) {
  1582. behaviors.push(initBehavior({
  1583. properties: initProperties(vueMixin.props, true)
  1584. }));
  1585. }
  1586. });
  1587. }
  1588. return behaviors;
  1589. }
  1590. function parsePropType(key, type, defaultValue, file) {
  1591. // [String]=>String
  1592. if (Array.isArray(type) && type.length === 1) {
  1593. return type[0];
  1594. }
  1595. return type;
  1596. }
  1597. function initProperties(props) {
  1598. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1599. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1600. var options = arguments.length > 3 ? arguments[3] : undefined;
  1601. var properties = {};
  1602. if (!isBehavior) {
  1603. properties.vueId = {
  1604. type: String,
  1605. value: ''
  1606. };
  1607. {
  1608. if (options.virtualHost) {
  1609. properties.virtualHostStyle = {
  1610. type: null,
  1611. value: ''
  1612. };
  1613. properties.virtualHostClass = {
  1614. type: null,
  1615. value: ''
  1616. };
  1617. }
  1618. }
  1619. // scopedSlotsCompiler auto
  1620. properties.scopedSlotsCompiler = {
  1621. type: String,
  1622. value: ''
  1623. };
  1624. properties.vueSlots = {
  1625. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1626. type: null,
  1627. value: [],
  1628. observer: function observer(newVal, oldVal) {
  1629. var $slots = Object.create(null);
  1630. newVal.forEach(function (slotName) {
  1631. $slots[slotName] = true;
  1632. });
  1633. this.setData({
  1634. $slots: $slots
  1635. });
  1636. }
  1637. };
  1638. }
  1639. if (Array.isArray(props)) {
  1640. // ['title']
  1641. props.forEach(function (key) {
  1642. properties[key] = {
  1643. type: null,
  1644. observer: createObserver(key)
  1645. };
  1646. });
  1647. } else if (isPlainObject(props)) {
  1648. // {title:{type:String,default:''},content:String}
  1649. Object.keys(props).forEach(function (key) {
  1650. var opts = props[key];
  1651. if (isPlainObject(opts)) {
  1652. // title:{type:String,default:''}
  1653. var value = opts.default;
  1654. if (isFn(value)) {
  1655. value = value();
  1656. }
  1657. opts.type = parsePropType(key, opts.type);
  1658. properties[key] = {
  1659. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1660. value: value,
  1661. observer: createObserver(key)
  1662. };
  1663. } else {
  1664. // content:String
  1665. var type = parsePropType(key, opts);
  1666. properties[key] = {
  1667. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1668. observer: createObserver(key)
  1669. };
  1670. }
  1671. });
  1672. }
  1673. return properties;
  1674. }
  1675. function wrapper$1(event) {
  1676. // TODO 又得兼容 mpvue 的 mp 对象
  1677. try {
  1678. event.mp = JSON.parse(JSON.stringify(event));
  1679. } catch (e) {}
  1680. event.stopPropagation = noop;
  1681. event.preventDefault = noop;
  1682. event.target = event.target || {};
  1683. if (!hasOwn(event, 'detail')) {
  1684. event.detail = {};
  1685. }
  1686. if (hasOwn(event, 'markerId')) {
  1687. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1688. event.detail.markerId = event.markerId;
  1689. }
  1690. if (isPlainObject(event.detail)) {
  1691. event.target = Object.assign({}, event.target, event.detail);
  1692. }
  1693. return event;
  1694. }
  1695. function getExtraValue(vm, dataPathsArray) {
  1696. var context = vm;
  1697. dataPathsArray.forEach(function (dataPathArray) {
  1698. var dataPath = dataPathArray[0];
  1699. var value = dataPathArray[2];
  1700. if (dataPath || typeof value !== 'undefined') {
  1701. // ['','',index,'disable']
  1702. var propPath = dataPathArray[1];
  1703. var valuePath = dataPathArray[3];
  1704. var vFor;
  1705. if (Number.isInteger(dataPath)) {
  1706. vFor = dataPath;
  1707. } else if (!dataPath) {
  1708. vFor = context;
  1709. } else if (typeof dataPath === 'string' && dataPath) {
  1710. if (dataPath.indexOf('#s#') === 0) {
  1711. vFor = dataPath.substr(3);
  1712. } else {
  1713. vFor = vm.__get_value(dataPath, context);
  1714. }
  1715. }
  1716. if (Number.isInteger(vFor)) {
  1717. context = value;
  1718. } else if (!propPath) {
  1719. context = vFor[value];
  1720. } else {
  1721. if (Array.isArray(vFor)) {
  1722. context = vFor.find(function (vForItem) {
  1723. return vm.__get_value(propPath, vForItem) === value;
  1724. });
  1725. } else if (isPlainObject(vFor)) {
  1726. context = Object.keys(vFor).find(function (vForKey) {
  1727. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1728. });
  1729. } else {
  1730. console.error('v-for 暂不支持循环数据:', vFor);
  1731. }
  1732. }
  1733. if (valuePath) {
  1734. context = vm.__get_value(valuePath, context);
  1735. }
  1736. }
  1737. });
  1738. return context;
  1739. }
  1740. function processEventExtra(vm, extra, event, __args__) {
  1741. var extraObj = {};
  1742. if (Array.isArray(extra) && extra.length) {
  1743. /**
  1744. *[
  1745. * ['data.items', 'data.id', item.data.id],
  1746. * ['metas', 'id', meta.id]
  1747. *],
  1748. *[
  1749. * ['data.items', 'data.id', item.data.id],
  1750. * ['metas', 'id', meta.id]
  1751. *],
  1752. *'test'
  1753. */
  1754. extra.forEach(function (dataPath, index) {
  1755. if (typeof dataPath === 'string') {
  1756. if (!dataPath) {
  1757. // model,prop.sync
  1758. extraObj['$' + index] = vm;
  1759. } else {
  1760. if (dataPath === '$event') {
  1761. // $event
  1762. extraObj['$' + index] = event;
  1763. } else if (dataPath === 'arguments') {
  1764. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1765. } else if (dataPath.indexOf('$event.') === 0) {
  1766. // $event.target.value
  1767. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1768. } else {
  1769. extraObj['$' + index] = vm.__get_value(dataPath);
  1770. }
  1771. }
  1772. } else {
  1773. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1774. }
  1775. });
  1776. }
  1777. return extraObj;
  1778. }
  1779. function getObjByArray(arr) {
  1780. var obj = {};
  1781. for (var i = 1; i < arr.length; i++) {
  1782. var element = arr[i];
  1783. obj[element[0]] = element[1];
  1784. }
  1785. return obj;
  1786. }
  1787. function processEventArgs(vm, event) {
  1788. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1789. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1790. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1791. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1792. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1793. // fixed 用户直接触发 mpInstance.triggerEvent
  1794. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1795. if (isCustom) {
  1796. // 自定义事件
  1797. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1798. if (!args.length) {
  1799. // 无参数,直接传入 event 或 detail 数组
  1800. if (isCustomMPEvent) {
  1801. return [event];
  1802. }
  1803. return __args__;
  1804. }
  1805. }
  1806. var extraObj = processEventExtra(vm, extra, event, __args__);
  1807. var ret = [];
  1808. args.forEach(function (arg) {
  1809. if (arg === '$event') {
  1810. if (methodName === '__set_model' && !isCustom) {
  1811. // input v-model value
  1812. ret.push(event.target.value);
  1813. } else {
  1814. if (isCustom && !isCustomMPEvent) {
  1815. ret.push(__args__[0]);
  1816. } else {
  1817. // wxcomponent 组件或内置组件
  1818. ret.push(event);
  1819. }
  1820. }
  1821. } else {
  1822. if (Array.isArray(arg) && arg[0] === 'o') {
  1823. ret.push(getObjByArray(arg));
  1824. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1825. ret.push(extraObj[arg]);
  1826. } else {
  1827. ret.push(arg);
  1828. }
  1829. }
  1830. });
  1831. return ret;
  1832. }
  1833. var ONCE = '~';
  1834. var CUSTOM = '^';
  1835. function isMatchEventType(eventType, optType) {
  1836. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1837. }
  1838. function getContextVm(vm) {
  1839. var $parent = vm.$parent;
  1840. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1841. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1842. $parent = $parent.$parent;
  1843. }
  1844. return $parent && $parent.$parent;
  1845. }
  1846. function handleEvent(event) {
  1847. var _this2 = this;
  1848. event = wrapper$1(event);
  1849. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1850. var dataset = (event.currentTarget || event.target).dataset;
  1851. if (!dataset) {
  1852. return console.warn('事件信息不存在');
  1853. }
  1854. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1855. if (!eventOpts) {
  1856. return console.warn('事件信息不存在');
  1857. }
  1858. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1859. var eventType = event.type;
  1860. var ret = [];
  1861. eventOpts.forEach(function (eventOpt) {
  1862. var type = eventOpt[0];
  1863. var eventsArray = eventOpt[1];
  1864. var isCustom = type.charAt(0) === CUSTOM;
  1865. type = isCustom ? type.slice(1) : type;
  1866. var isOnce = type.charAt(0) === ONCE;
  1867. type = isOnce ? type.slice(1) : type;
  1868. if (eventsArray && isMatchEventType(eventType, type)) {
  1869. eventsArray.forEach(function (eventArray) {
  1870. var methodName = eventArray[0];
  1871. if (methodName) {
  1872. var handlerCtx = _this2.$vm;
  1873. if (handlerCtx.$options.generic) {
  1874. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1875. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1876. }
  1877. if (methodName === '$emit') {
  1878. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1879. return;
  1880. }
  1881. var handler = handlerCtx[methodName];
  1882. if (!isFn(handler)) {
  1883. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1884. var path = _this2.route || _this2.is;
  1885. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1886. }
  1887. if (isOnce) {
  1888. if (handler.once) {
  1889. return;
  1890. }
  1891. handler.once = true;
  1892. }
  1893. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1894. params = Array.isArray(params) ? params : [];
  1895. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1896. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1897. // eslint-disable-next-line no-sparse-arrays
  1898. params = params.concat([,,,,,,,,,, event]);
  1899. }
  1900. ret.push(handler.apply(handlerCtx, params));
  1901. }
  1902. });
  1903. }
  1904. });
  1905. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1906. return ret[0];
  1907. }
  1908. }
  1909. var eventChannels = {};
  1910. var eventChannelStack = [];
  1911. function getEventChannel(id) {
  1912. if (id) {
  1913. var eventChannel = eventChannels[id];
  1914. delete eventChannels[id];
  1915. return eventChannel;
  1916. }
  1917. return eventChannelStack.shift();
  1918. }
  1919. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1920. function initEventChannel() {
  1921. _vue.default.prototype.getOpenerEventChannel = function () {
  1922. // 微信小程序使用自身getOpenerEventChannel
  1923. {
  1924. return this.$scope.getOpenerEventChannel();
  1925. }
  1926. };
  1927. var callHook = _vue.default.prototype.__call_hook;
  1928. _vue.default.prototype.__call_hook = function (hook, args) {
  1929. if (hook === 'onLoad' && args && args.__id__) {
  1930. this.__eventChannel__ = getEventChannel(args.__id__);
  1931. delete args.__id__;
  1932. }
  1933. return callHook.call(this, hook, args);
  1934. };
  1935. }
  1936. function initScopedSlotsParams() {
  1937. var center = {};
  1938. var parents = {};
  1939. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1940. var has = center[vueId];
  1941. if (!has) {
  1942. parents[vueId] = this;
  1943. this.$on('hook:destroyed', function () {
  1944. delete parents[vueId];
  1945. });
  1946. }
  1947. return has;
  1948. };
  1949. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1950. var data = center[vueId];
  1951. if (data) {
  1952. var object = data[name] || {};
  1953. return key ? object[key] : object;
  1954. } else {
  1955. parents[vueId] = this;
  1956. this.$on('hook:destroyed', function () {
  1957. delete parents[vueId];
  1958. });
  1959. }
  1960. };
  1961. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1962. var vueIds = this.$options.propsData.vueId;
  1963. if (vueIds) {
  1964. var vueId = vueIds.split(',')[0];
  1965. var object = center[vueId] = center[vueId] || {};
  1966. object[name] = value;
  1967. if (parents[vueId]) {
  1968. parents[vueId].$forceUpdate();
  1969. }
  1970. }
  1971. };
  1972. _vue.default.mixin({
  1973. destroyed: function destroyed() {
  1974. var propsData = this.$options.propsData;
  1975. var vueId = propsData && propsData.vueId;
  1976. if (vueId) {
  1977. delete center[vueId];
  1978. delete parents[vueId];
  1979. }
  1980. }
  1981. });
  1982. }
  1983. function parseBaseApp(vm, _ref4) {
  1984. var mocks = _ref4.mocks,
  1985. initRefs = _ref4.initRefs;
  1986. initEventChannel();
  1987. {
  1988. initScopedSlotsParams();
  1989. }
  1990. if (vm.$options.store) {
  1991. _vue.default.prototype.$store = vm.$options.store;
  1992. }
  1993. uniIdMixin(_vue.default);
  1994. _vue.default.prototype.mpHost = "mp-weixin";
  1995. _vue.default.mixin({
  1996. beforeCreate: function beforeCreate() {
  1997. if (!this.$options.mpType) {
  1998. return;
  1999. }
  2000. this.mpType = this.$options.mpType;
  2001. this.$mp = (0, _defineProperty2.default)({
  2002. data: {}
  2003. }, this.mpType, this.$options.mpInstance);
  2004. this.$scope = this.$options.mpInstance;
  2005. delete this.$options.mpType;
  2006. delete this.$options.mpInstance;
  2007. if (this.mpType === 'page' && typeof getApp === 'function') {
  2008. // hack vue-i18n
  2009. var app = getApp();
  2010. if (app.$vm && app.$vm.$i18n) {
  2011. this._i18n = app.$vm.$i18n;
  2012. }
  2013. }
  2014. if (this.mpType !== 'app') {
  2015. initRefs(this);
  2016. initMocks(this, mocks);
  2017. }
  2018. }
  2019. });
  2020. var appOptions = {
  2021. onLaunch: function onLaunch(args) {
  2022. if (this.$vm) {
  2023. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2024. return;
  2025. }
  2026. {
  2027. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2028. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2029. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2030. }
  2031. }
  2032. this.$vm = vm;
  2033. this.$vm.$mp = {
  2034. app: this
  2035. };
  2036. this.$vm.$scope = this;
  2037. // vm 上也挂载 globalData
  2038. this.$vm.globalData = this.globalData;
  2039. this.$vm._isMounted = true;
  2040. this.$vm.__call_hook('mounted', args);
  2041. this.$vm.__call_hook('onLaunch', args);
  2042. }
  2043. };
  2044. // 兼容旧版本 globalData
  2045. appOptions.globalData = vm.$options.globalData || {};
  2046. // 将 methods 中的方法挂在 getApp() 中
  2047. var methods = vm.$options.methods;
  2048. if (methods) {
  2049. Object.keys(methods).forEach(function (name) {
  2050. appOptions[name] = methods[name];
  2051. });
  2052. }
  2053. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2054. initHooks(appOptions, hooks);
  2055. initUnknownHooks(appOptions, vm.$options);
  2056. return appOptions;
  2057. }
  2058. function parseApp(vm) {
  2059. return parseBaseApp(vm, {
  2060. mocks: mocks,
  2061. initRefs: initRefs
  2062. });
  2063. }
  2064. function createApp(vm) {
  2065. App(parseApp(vm));
  2066. return vm;
  2067. }
  2068. var encodeReserveRE = /[!'()*]/g;
  2069. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2070. return '%' + c.charCodeAt(0).toString(16);
  2071. };
  2072. var commaRE = /%2C/g;
  2073. // fixed encodeURIComponent which is more conformant to RFC3986:
  2074. // - escapes [!'()*]
  2075. // - preserve commas
  2076. var encode = function encode(str) {
  2077. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2078. };
  2079. function stringifyQuery(obj) {
  2080. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2081. var res = obj ? Object.keys(obj).map(function (key) {
  2082. var val = obj[key];
  2083. if (val === undefined) {
  2084. return '';
  2085. }
  2086. if (val === null) {
  2087. return encodeStr(key);
  2088. }
  2089. if (Array.isArray(val)) {
  2090. var result = [];
  2091. val.forEach(function (val2) {
  2092. if (val2 === undefined) {
  2093. return;
  2094. }
  2095. if (val2 === null) {
  2096. result.push(encodeStr(key));
  2097. } else {
  2098. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2099. }
  2100. });
  2101. return result.join('&');
  2102. }
  2103. return encodeStr(key) + '=' + encodeStr(val);
  2104. }).filter(function (x) {
  2105. return x.length > 0;
  2106. }).join('&') : null;
  2107. return res ? "?".concat(res) : '';
  2108. }
  2109. function parseBaseComponent(vueComponentOptions) {
  2110. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2111. isPage = _ref5.isPage,
  2112. initRelation = _ref5.initRelation;
  2113. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2114. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2115. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2116. VueComponent = _initVueComponent2[0],
  2117. vueOptions = _initVueComponent2[1];
  2118. var options = _objectSpread({
  2119. multipleSlots: true,
  2120. addGlobalClass: true
  2121. }, vueOptions.options || {});
  2122. {
  2123. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2124. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2125. Object.assign(options, vueOptions['mp-weixin'].options);
  2126. }
  2127. }
  2128. var componentOptions = {
  2129. options: options,
  2130. data: initData(vueOptions, _vue.default.prototype),
  2131. behaviors: initBehaviors(vueOptions, initBehavior),
  2132. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2133. lifetimes: {
  2134. attached: function attached() {
  2135. var properties = this.properties;
  2136. var options = {
  2137. mpType: isPage.call(this) ? 'page' : 'component',
  2138. mpInstance: this,
  2139. propsData: properties
  2140. };
  2141. initVueIds(properties.vueId, this);
  2142. // 处理父子关系
  2143. initRelation.call(this, {
  2144. vuePid: this._$vuePid,
  2145. vueOptions: options
  2146. });
  2147. // 初始化 vue 实例
  2148. this.$vm = new VueComponent(options);
  2149. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2150. initSlots(this.$vm, properties.vueSlots);
  2151. // 触发首次 setData
  2152. this.$vm.$mount();
  2153. },
  2154. ready: function ready() {
  2155. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2156. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2157. if (this.$vm) {
  2158. this.$vm._isMounted = true;
  2159. this.$vm.__call_hook('mounted');
  2160. this.$vm.__call_hook('onReady');
  2161. }
  2162. },
  2163. detached: function detached() {
  2164. this.$vm && this.$vm.$destroy();
  2165. }
  2166. },
  2167. pageLifetimes: {
  2168. show: function show(args) {
  2169. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2170. },
  2171. hide: function hide() {
  2172. this.$vm && this.$vm.__call_hook('onPageHide');
  2173. },
  2174. resize: function resize(size) {
  2175. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2176. }
  2177. },
  2178. methods: {
  2179. __l: handleLink,
  2180. __e: handleEvent
  2181. }
  2182. };
  2183. // externalClasses
  2184. if (vueOptions.externalClasses) {
  2185. componentOptions.externalClasses = vueOptions.externalClasses;
  2186. }
  2187. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2188. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2189. componentOptions.methods[callMethod] = function (args) {
  2190. return this.$vm[callMethod](args);
  2191. };
  2192. });
  2193. }
  2194. if (needVueOptions) {
  2195. return [componentOptions, vueOptions, VueComponent];
  2196. }
  2197. if (isPage) {
  2198. return componentOptions;
  2199. }
  2200. return [componentOptions, VueComponent];
  2201. }
  2202. function parseComponent(vueComponentOptions, needVueOptions) {
  2203. return parseBaseComponent(vueComponentOptions, {
  2204. isPage: isPage,
  2205. initRelation: initRelation
  2206. }, needVueOptions);
  2207. }
  2208. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2209. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2210. function parseBasePage(vuePageOptions) {
  2211. var _parseComponent = parseComponent(vuePageOptions, true),
  2212. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2213. pageOptions = _parseComponent2[0],
  2214. vueOptions = _parseComponent2[1];
  2215. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2216. pageOptions.methods.onLoad = function (query) {
  2217. this.options = query;
  2218. var copyQuery = Object.assign({}, query);
  2219. delete copyQuery.__id__;
  2220. this.$page = {
  2221. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2222. };
  2223. this.$vm.$mp.query = query; // 兼容 mpvue
  2224. this.$vm.__call_hook('onLoad', query);
  2225. };
  2226. {
  2227. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2228. }
  2229. return pageOptions;
  2230. }
  2231. function parsePage(vuePageOptions) {
  2232. return parseBasePage(vuePageOptions);
  2233. }
  2234. function createPage(vuePageOptions) {
  2235. {
  2236. return Component(parsePage(vuePageOptions));
  2237. }
  2238. }
  2239. function createComponent(vueOptions) {
  2240. {
  2241. return Component(parseComponent(vueOptions));
  2242. }
  2243. }
  2244. function createSubpackageApp(vm) {
  2245. var appOptions = parseApp(vm);
  2246. var app = getApp({
  2247. allowDefault: true
  2248. });
  2249. vm.$scope = app;
  2250. var globalData = app.globalData;
  2251. if (globalData) {
  2252. Object.keys(appOptions.globalData).forEach(function (name) {
  2253. if (!hasOwn(globalData, name)) {
  2254. globalData[name] = appOptions.globalData[name];
  2255. }
  2256. });
  2257. }
  2258. Object.keys(appOptions).forEach(function (name) {
  2259. if (!hasOwn(app, name)) {
  2260. app[name] = appOptions[name];
  2261. }
  2262. });
  2263. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2264. wx.onAppShow(function () {
  2265. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2266. args[_key5] = arguments[_key5];
  2267. }
  2268. vm.__call_hook('onShow', args);
  2269. });
  2270. }
  2271. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2272. wx.onAppHide(function () {
  2273. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2274. args[_key6] = arguments[_key6];
  2275. }
  2276. vm.__call_hook('onHide', args);
  2277. });
  2278. }
  2279. if (isFn(appOptions.onLaunch)) {
  2280. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2281. vm.__call_hook('onLaunch', args);
  2282. }
  2283. return vm;
  2284. }
  2285. function createPlugin(vm) {
  2286. var appOptions = parseApp(vm);
  2287. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2288. wx.onAppShow(function () {
  2289. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2290. args[_key7] = arguments[_key7];
  2291. }
  2292. vm.__call_hook('onShow', args);
  2293. });
  2294. }
  2295. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2296. wx.onAppHide(function () {
  2297. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2298. args[_key8] = arguments[_key8];
  2299. }
  2300. vm.__call_hook('onHide', args);
  2301. });
  2302. }
  2303. if (isFn(appOptions.onLaunch)) {
  2304. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2305. vm.__call_hook('onLaunch', args);
  2306. }
  2307. return vm;
  2308. }
  2309. todos.forEach(function (todoApi) {
  2310. protocols[todoApi] = false;
  2311. });
  2312. canIUses.forEach(function (canIUseApi) {
  2313. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2314. if (!wx.canIUse(apiName)) {
  2315. protocols[canIUseApi] = false;
  2316. }
  2317. });
  2318. var uni = {};
  2319. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2320. uni = new Proxy({}, {
  2321. get: function get(target, name) {
  2322. if (hasOwn(target, name)) {
  2323. return target[name];
  2324. }
  2325. if (baseApi[name]) {
  2326. return baseApi[name];
  2327. }
  2328. if (api[name]) {
  2329. return promisify(name, api[name]);
  2330. }
  2331. {
  2332. if (extraApi[name]) {
  2333. return promisify(name, extraApi[name]);
  2334. }
  2335. if (todoApis[name]) {
  2336. return promisify(name, todoApis[name]);
  2337. }
  2338. }
  2339. if (eventApi[name]) {
  2340. return eventApi[name];
  2341. }
  2342. return promisify(name, wrapper(name, wx[name]));
  2343. },
  2344. set: function set(target, name, value) {
  2345. target[name] = value;
  2346. return true;
  2347. }
  2348. });
  2349. } else {
  2350. Object.keys(baseApi).forEach(function (name) {
  2351. uni[name] = baseApi[name];
  2352. });
  2353. {
  2354. Object.keys(todoApis).forEach(function (name) {
  2355. uni[name] = promisify(name, todoApis[name]);
  2356. });
  2357. Object.keys(extraApi).forEach(function (name) {
  2358. uni[name] = promisify(name, todoApis[name]);
  2359. });
  2360. }
  2361. Object.keys(eventApi).forEach(function (name) {
  2362. uni[name] = eventApi[name];
  2363. });
  2364. Object.keys(api).forEach(function (name) {
  2365. uni[name] = promisify(name, api[name]);
  2366. });
  2367. Object.keys(wx).forEach(function (name) {
  2368. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2369. uni[name] = promisify(name, wrapper(name, wx[name]));
  2370. }
  2371. });
  2372. }
  2373. wx.createApp = createApp;
  2374. wx.createPage = createPage;
  2375. wx.createComponent = createComponent;
  2376. wx.createSubpackageApp = createSubpackageApp;
  2377. wx.createPlugin = createPlugin;
  2378. var uni$1 = uni;
  2379. var _default = uni$1;
  2380. exports.default = _default;
  2381. /* 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)))
  2382. /***/ }),
  2383. /* 3 */
  2384. /*!***********************************!*\
  2385. !*** (webpack)/buildin/global.js ***!
  2386. \***********************************/
  2387. /*! no static exports found */
  2388. /***/ (function(module, exports) {
  2389. var g;
  2390. // This works in non-strict mode
  2391. g = (function() {
  2392. return this;
  2393. })();
  2394. try {
  2395. // This works if eval is allowed (see CSP)
  2396. g = g || new Function("return this")();
  2397. } catch (e) {
  2398. // This works if the window reference is available
  2399. if (typeof window === "object") g = window;
  2400. }
  2401. // g can still be undefined, but nothing to do about it...
  2402. // We return undefined, instead of nothing here, so it's
  2403. // easier to handle this case. if(!global) { ...}
  2404. module.exports = g;
  2405. /***/ }),
  2406. /* 4 */
  2407. /*!**********************************************************************!*\
  2408. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2409. \**********************************************************************/
  2410. /*! no static exports found */
  2411. /***/ (function(module, exports) {
  2412. function _interopRequireDefault(obj) {
  2413. return obj && obj.__esModule ? obj : {
  2414. "default": obj
  2415. };
  2416. }
  2417. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2418. /***/ }),
  2419. /* 5 */
  2420. /*!**************************************************************!*\
  2421. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2422. \**************************************************************/
  2423. /*! no static exports found */
  2424. /***/ (function(module, exports, __webpack_require__) {
  2425. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2426. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2427. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2428. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2429. function _slicedToArray(arr, i) {
  2430. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2431. }
  2432. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2433. /***/ }),
  2434. /* 6 */
  2435. /*!***************************************************************!*\
  2436. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2437. \***************************************************************/
  2438. /*! no static exports found */
  2439. /***/ (function(module, exports) {
  2440. function _arrayWithHoles(arr) {
  2441. if (Array.isArray(arr)) return arr;
  2442. }
  2443. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2444. /***/ }),
  2445. /* 7 */
  2446. /*!*********************************************************************!*\
  2447. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2448. \*********************************************************************/
  2449. /*! no static exports found */
  2450. /***/ (function(module, exports) {
  2451. function _iterableToArrayLimit(arr, i) {
  2452. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2453. if (null != _i) {
  2454. var _s,
  2455. _e,
  2456. _x,
  2457. _r,
  2458. _arr = [],
  2459. _n = !0,
  2460. _d = !1;
  2461. try {
  2462. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2463. if (Object(_i) !== _i) return;
  2464. _n = !1;
  2465. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2466. ;
  2467. }
  2468. } catch (err) {
  2469. _d = !0, _e = err;
  2470. } finally {
  2471. try {
  2472. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2473. } finally {
  2474. if (_d) throw _e;
  2475. }
  2476. }
  2477. return _arr;
  2478. }
  2479. }
  2480. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2481. /***/ }),
  2482. /* 8 */
  2483. /*!***************************************************************************!*\
  2484. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2485. \***************************************************************************/
  2486. /*! no static exports found */
  2487. /***/ (function(module, exports, __webpack_require__) {
  2488. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2489. function _unsupportedIterableToArray(o, minLen) {
  2490. if (!o) return;
  2491. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2492. var n = Object.prototype.toString.call(o).slice(8, -1);
  2493. if (n === "Object" && o.constructor) n = o.constructor.name;
  2494. if (n === "Map" || n === "Set") return Array.from(o);
  2495. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2496. }
  2497. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2498. /***/ }),
  2499. /* 9 */
  2500. /*!*****************************************************************!*\
  2501. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2502. \*****************************************************************/
  2503. /*! no static exports found */
  2504. /***/ (function(module, exports) {
  2505. function _arrayLikeToArray(arr, len) {
  2506. if (len == null || len > arr.length) len = arr.length;
  2507. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2508. arr2[i] = arr[i];
  2509. }
  2510. return arr2;
  2511. }
  2512. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2513. /***/ }),
  2514. /* 10 */
  2515. /*!****************************************************************!*\
  2516. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2517. \****************************************************************/
  2518. /*! no static exports found */
  2519. /***/ (function(module, exports) {
  2520. function _nonIterableRest() {
  2521. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2522. }
  2523. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2524. /***/ }),
  2525. /* 11 */
  2526. /*!***************************************************************!*\
  2527. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2528. \***************************************************************/
  2529. /*! no static exports found */
  2530. /***/ (function(module, exports, __webpack_require__) {
  2531. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2532. function _defineProperty(obj, key, value) {
  2533. key = toPropertyKey(key);
  2534. if (key in obj) {
  2535. Object.defineProperty(obj, key, {
  2536. value: value,
  2537. enumerable: true,
  2538. configurable: true,
  2539. writable: true
  2540. });
  2541. } else {
  2542. obj[key] = value;
  2543. }
  2544. return obj;
  2545. }
  2546. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2547. /***/ }),
  2548. /* 12 */
  2549. /*!**************************************************************!*\
  2550. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2551. \**************************************************************/
  2552. /*! no static exports found */
  2553. /***/ (function(module, exports, __webpack_require__) {
  2554. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2555. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2556. function _toPropertyKey(arg) {
  2557. var key = toPrimitive(arg, "string");
  2558. return _typeof(key) === "symbol" ? key : String(key);
  2559. }
  2560. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2561. /***/ }),
  2562. /* 13 */
  2563. /*!*******************************************************!*\
  2564. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2565. \*******************************************************/
  2566. /*! no static exports found */
  2567. /***/ (function(module, exports) {
  2568. function _typeof(obj) {
  2569. "@babel/helpers - typeof";
  2570. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2571. return typeof obj;
  2572. } : function (obj) {
  2573. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2574. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2575. }
  2576. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 14 */
  2579. /*!************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2581. \************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. function _toPrimitive(input, hint) {
  2586. if (_typeof(input) !== "object" || input === null) return input;
  2587. var prim = input[Symbol.toPrimitive];
  2588. if (prim !== undefined) {
  2589. var res = prim.call(input, hint || "default");
  2590. if (_typeof(res) !== "object") return res;
  2591. throw new TypeError("@@toPrimitive must return a primitive value.");
  2592. }
  2593. return (hint === "string" ? String : Number)(input);
  2594. }
  2595. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2596. /***/ }),
  2597. /* 15 */
  2598. /*!**********************************************************!*\
  2599. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2600. \**********************************************************/
  2601. /*! no static exports found */
  2602. /***/ (function(module, exports, __webpack_require__) {
  2603. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2604. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2605. function _construct(Parent, args, Class) {
  2606. if (isNativeReflectConstruct()) {
  2607. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2608. } else {
  2609. module.exports = _construct = function _construct(Parent, args, Class) {
  2610. var a = [null];
  2611. a.push.apply(a, args);
  2612. var Constructor = Function.bind.apply(Parent, a);
  2613. var instance = new Constructor();
  2614. if (Class) setPrototypeOf(instance, Class.prototype);
  2615. return instance;
  2616. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2617. }
  2618. return _construct.apply(null, arguments);
  2619. }
  2620. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2621. /***/ }),
  2622. /* 16 */
  2623. /*!***************************************************************!*\
  2624. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2625. \***************************************************************/
  2626. /*! no static exports found */
  2627. /***/ (function(module, exports) {
  2628. function _setPrototypeOf(o, p) {
  2629. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2630. o.__proto__ = p;
  2631. return o;
  2632. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2633. return _setPrototypeOf(o, p);
  2634. }
  2635. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2636. /***/ }),
  2637. /* 17 */
  2638. /*!*************************************************************************!*\
  2639. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2640. \*************************************************************************/
  2641. /*! no static exports found */
  2642. /***/ (function(module, exports) {
  2643. function _isNativeReflectConstruct() {
  2644. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2645. if (Reflect.construct.sham) return false;
  2646. if (typeof Proxy === "function") return true;
  2647. try {
  2648. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2649. return true;
  2650. } catch (e) {
  2651. return false;
  2652. }
  2653. }
  2654. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2655. /***/ }),
  2656. /* 18 */
  2657. /*!******************************************************************!*\
  2658. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2659. \******************************************************************/
  2660. /*! no static exports found */
  2661. /***/ (function(module, exports, __webpack_require__) {
  2662. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2663. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2664. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2665. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2666. function _toConsumableArray(arr) {
  2667. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2668. }
  2669. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2670. /***/ }),
  2671. /* 19 */
  2672. /*!******************************************************************!*\
  2673. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2674. \******************************************************************/
  2675. /*! no static exports found */
  2676. /***/ (function(module, exports, __webpack_require__) {
  2677. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2678. function _arrayWithoutHoles(arr) {
  2679. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2680. }
  2681. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2682. /***/ }),
  2683. /* 20 */
  2684. /*!****************************************************************!*\
  2685. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2686. \****************************************************************/
  2687. /*! no static exports found */
  2688. /***/ (function(module, exports) {
  2689. function _iterableToArray(iter) {
  2690. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2691. }
  2692. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2693. /***/ }),
  2694. /* 21 */
  2695. /*!******************************************************************!*\
  2696. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2697. \******************************************************************/
  2698. /*! no static exports found */
  2699. /***/ (function(module, exports) {
  2700. function _nonIterableSpread() {
  2701. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2702. }
  2703. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2704. /***/ }),
  2705. /* 22 */
  2706. /*!*************************************************************!*\
  2707. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2708. \*************************************************************/
  2709. /*! no static exports found */
  2710. /***/ (function(module, exports, __webpack_require__) {
  2711. "use strict";
  2712. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2713. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2714. Object.defineProperty(exports, "__esModule", {
  2715. value: true
  2716. });
  2717. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2718. exports.compileI18nJsonStr = compileI18nJsonStr;
  2719. exports.hasI18nJson = hasI18nJson;
  2720. exports.initVueI18n = initVueI18n;
  2721. exports.isI18nStr = isI18nStr;
  2722. exports.isString = void 0;
  2723. exports.normalizeLocale = normalizeLocale;
  2724. exports.parseI18nJson = parseI18nJson;
  2725. exports.resolveLocale = resolveLocale;
  2726. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2727. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2728. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2729. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2730. var isArray = Array.isArray;
  2731. var isObject = function isObject(val) {
  2732. return val !== null && (0, _typeof2.default)(val) === 'object';
  2733. };
  2734. var defaultDelimiters = ['{', '}'];
  2735. var BaseFormatter = /*#__PURE__*/function () {
  2736. function BaseFormatter() {
  2737. (0, _classCallCheck2.default)(this, BaseFormatter);
  2738. this._caches = Object.create(null);
  2739. }
  2740. (0, _createClass2.default)(BaseFormatter, [{
  2741. key: "interpolate",
  2742. value: function interpolate(message, values) {
  2743. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2744. if (!values) {
  2745. return [message];
  2746. }
  2747. var tokens = this._caches[message];
  2748. if (!tokens) {
  2749. tokens = parse(message, delimiters);
  2750. this._caches[message] = tokens;
  2751. }
  2752. return compile(tokens, values);
  2753. }
  2754. }]);
  2755. return BaseFormatter;
  2756. }();
  2757. exports.Formatter = BaseFormatter;
  2758. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2759. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2760. function parse(format, _ref) {
  2761. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2762. startDelimiter = _ref2[0],
  2763. endDelimiter = _ref2[1];
  2764. var tokens = [];
  2765. var position = 0;
  2766. var text = '';
  2767. while (position < format.length) {
  2768. var char = format[position++];
  2769. if (char === startDelimiter) {
  2770. if (text) {
  2771. tokens.push({
  2772. type: 'text',
  2773. value: text
  2774. });
  2775. }
  2776. text = '';
  2777. var sub = '';
  2778. char = format[position++];
  2779. while (char !== undefined && char !== endDelimiter) {
  2780. sub += char;
  2781. char = format[position++];
  2782. }
  2783. var isClosed = char === endDelimiter;
  2784. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2785. tokens.push({
  2786. value: sub,
  2787. type: type
  2788. });
  2789. }
  2790. // else if (char === '%') {
  2791. // // when found rails i18n syntax, skip text capture
  2792. // if (format[position] !== '{') {
  2793. // text += char
  2794. // }
  2795. // }
  2796. else {
  2797. text += char;
  2798. }
  2799. }
  2800. text && tokens.push({
  2801. type: 'text',
  2802. value: text
  2803. });
  2804. return tokens;
  2805. }
  2806. function compile(tokens, values) {
  2807. var compiled = [];
  2808. var index = 0;
  2809. var mode = isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2810. if (mode === 'unknown') {
  2811. return compiled;
  2812. }
  2813. while (index < tokens.length) {
  2814. var token = tokens[index];
  2815. switch (token.type) {
  2816. case 'text':
  2817. compiled.push(token.value);
  2818. break;
  2819. case 'list':
  2820. compiled.push(values[parseInt(token.value, 10)]);
  2821. break;
  2822. case 'named':
  2823. if (mode === 'named') {
  2824. compiled.push(values[token.value]);
  2825. } else {
  2826. if (true) {
  2827. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2828. }
  2829. }
  2830. break;
  2831. case 'unknown':
  2832. if (true) {
  2833. console.warn("Detect 'unknown' type of token!");
  2834. }
  2835. break;
  2836. }
  2837. index++;
  2838. }
  2839. return compiled;
  2840. }
  2841. var LOCALE_ZH_HANS = 'zh-Hans';
  2842. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2843. var LOCALE_ZH_HANT = 'zh-Hant';
  2844. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2845. var LOCALE_EN = 'en';
  2846. exports.LOCALE_EN = LOCALE_EN;
  2847. var LOCALE_FR = 'fr';
  2848. exports.LOCALE_FR = LOCALE_FR;
  2849. var LOCALE_ES = 'es';
  2850. exports.LOCALE_ES = LOCALE_ES;
  2851. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2852. var hasOwn = function hasOwn(val, key) {
  2853. return hasOwnProperty.call(val, key);
  2854. };
  2855. var defaultFormatter = new BaseFormatter();
  2856. function include(str, parts) {
  2857. return !!parts.find(function (part) {
  2858. return str.indexOf(part) !== -1;
  2859. });
  2860. }
  2861. function startsWith(str, parts) {
  2862. return parts.find(function (part) {
  2863. return str.indexOf(part) === 0;
  2864. });
  2865. }
  2866. function normalizeLocale(locale, messages) {
  2867. if (!locale) {
  2868. return;
  2869. }
  2870. locale = locale.trim().replace(/_/g, '-');
  2871. if (messages && messages[locale]) {
  2872. return locale;
  2873. }
  2874. locale = locale.toLowerCase();
  2875. if (locale.indexOf('zh') === 0) {
  2876. if (locale.indexOf('-hans') > -1) {
  2877. return LOCALE_ZH_HANS;
  2878. }
  2879. if (locale.indexOf('-hant') > -1) {
  2880. return LOCALE_ZH_HANT;
  2881. }
  2882. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2883. return LOCALE_ZH_HANT;
  2884. }
  2885. return LOCALE_ZH_HANS;
  2886. }
  2887. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  2888. if (lang) {
  2889. return lang;
  2890. }
  2891. }
  2892. var I18n = /*#__PURE__*/function () {
  2893. function I18n(_ref3) {
  2894. var locale = _ref3.locale,
  2895. fallbackLocale = _ref3.fallbackLocale,
  2896. messages = _ref3.messages,
  2897. watcher = _ref3.watcher,
  2898. formater = _ref3.formater;
  2899. (0, _classCallCheck2.default)(this, I18n);
  2900. this.locale = LOCALE_EN;
  2901. this.fallbackLocale = LOCALE_EN;
  2902. this.message = {};
  2903. this.messages = {};
  2904. this.watchers = [];
  2905. if (fallbackLocale) {
  2906. this.fallbackLocale = fallbackLocale;
  2907. }
  2908. this.formater = formater || defaultFormatter;
  2909. this.messages = messages || {};
  2910. this.setLocale(locale || LOCALE_EN);
  2911. if (watcher) {
  2912. this.watchLocale(watcher);
  2913. }
  2914. }
  2915. (0, _createClass2.default)(I18n, [{
  2916. key: "setLocale",
  2917. value: function setLocale(locale) {
  2918. var _this = this;
  2919. var oldLocale = this.locale;
  2920. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2921. if (!this.messages[this.locale]) {
  2922. // 可能初始化时不存在
  2923. this.messages[this.locale] = {};
  2924. }
  2925. this.message = this.messages[this.locale];
  2926. // 仅发生变化时,通知
  2927. if (oldLocale !== this.locale) {
  2928. this.watchers.forEach(function (watcher) {
  2929. watcher(_this.locale, oldLocale);
  2930. });
  2931. }
  2932. }
  2933. }, {
  2934. key: "getLocale",
  2935. value: function getLocale() {
  2936. return this.locale;
  2937. }
  2938. }, {
  2939. key: "watchLocale",
  2940. value: function watchLocale(fn) {
  2941. var _this2 = this;
  2942. var index = this.watchers.push(fn) - 1;
  2943. return function () {
  2944. _this2.watchers.splice(index, 1);
  2945. };
  2946. }
  2947. }, {
  2948. key: "add",
  2949. value: function add(locale, message) {
  2950. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2951. var curMessages = this.messages[locale];
  2952. if (curMessages) {
  2953. if (override) {
  2954. Object.assign(curMessages, message);
  2955. } else {
  2956. Object.keys(message).forEach(function (key) {
  2957. if (!hasOwn(curMessages, key)) {
  2958. curMessages[key] = message[key];
  2959. }
  2960. });
  2961. }
  2962. } else {
  2963. this.messages[locale] = message;
  2964. }
  2965. }
  2966. }, {
  2967. key: "f",
  2968. value: function f(message, values, delimiters) {
  2969. return this.formater.interpolate(message, values, delimiters).join('');
  2970. }
  2971. }, {
  2972. key: "t",
  2973. value: function t(key, locale, values) {
  2974. var message = this.message;
  2975. if (typeof locale === 'string') {
  2976. locale = normalizeLocale(locale, this.messages);
  2977. locale && (message = this.messages[locale]);
  2978. } else {
  2979. values = locale;
  2980. }
  2981. if (!hasOwn(message, key)) {
  2982. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2983. return key;
  2984. }
  2985. return this.formater.interpolate(message[key], values).join('');
  2986. }
  2987. }]);
  2988. return I18n;
  2989. }();
  2990. exports.I18n = I18n;
  2991. function watchAppLocale(appVm, i18n) {
  2992. // 需要保证 watch 的触发在组件渲染之前
  2993. if (appVm.$watchLocale) {
  2994. // vue2
  2995. appVm.$watchLocale(function (newLocale) {
  2996. i18n.setLocale(newLocale);
  2997. });
  2998. } else {
  2999. appVm.$watch(function () {
  3000. return appVm.$locale;
  3001. }, function (newLocale) {
  3002. i18n.setLocale(newLocale);
  3003. });
  3004. }
  3005. }
  3006. function getDefaultLocale() {
  3007. if (typeof uni !== 'undefined' && uni.getLocale) {
  3008. return uni.getLocale();
  3009. }
  3010. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3011. if (typeof global !== 'undefined' && global.getLocale) {
  3012. return global.getLocale();
  3013. }
  3014. return LOCALE_EN;
  3015. }
  3016. function initVueI18n(locale) {
  3017. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3018. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3019. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3020. // 兼容旧版本入参
  3021. if (typeof locale !== 'string') {
  3022. var _ref4 = [messages, locale];
  3023. locale = _ref4[0];
  3024. messages = _ref4[1];
  3025. }
  3026. if (typeof locale !== 'string') {
  3027. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3028. locale = getDefaultLocale();
  3029. }
  3030. if (typeof fallbackLocale !== 'string') {
  3031. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3032. }
  3033. var i18n = new I18n({
  3034. locale: locale,
  3035. fallbackLocale: fallbackLocale,
  3036. messages: messages,
  3037. watcher: watcher
  3038. });
  3039. var _t = function t(key, values) {
  3040. if (typeof getApp !== 'function') {
  3041. // app view
  3042. /* eslint-disable no-func-assign */
  3043. _t = function t(key, values) {
  3044. return i18n.t(key, values);
  3045. };
  3046. } else {
  3047. var isWatchedAppLocale = false;
  3048. _t = function t(key, values) {
  3049. var appVm = getApp().$vm;
  3050. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3051. // options: {
  3052. // type: Array,
  3053. // default () {
  3054. // return [{
  3055. // icon: 'shop',
  3056. // text: t("uni-goods-nav.options.shop"),
  3057. // }, {
  3058. // icon: 'cart',
  3059. // text: t("uni-goods-nav.options.cart")
  3060. // }]
  3061. // }
  3062. // },
  3063. if (appVm) {
  3064. // 触发响应式
  3065. appVm.$locale;
  3066. if (!isWatchedAppLocale) {
  3067. isWatchedAppLocale = true;
  3068. watchAppLocale(appVm, i18n);
  3069. }
  3070. }
  3071. return i18n.t(key, values);
  3072. };
  3073. }
  3074. return _t(key, values);
  3075. };
  3076. return {
  3077. i18n: i18n,
  3078. f: function f(message, values, delimiters) {
  3079. return i18n.f(message, values, delimiters);
  3080. },
  3081. t: function t(key, values) {
  3082. return _t(key, values);
  3083. },
  3084. add: function add(locale, message) {
  3085. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3086. return i18n.add(locale, message, override);
  3087. },
  3088. watch: function watch(fn) {
  3089. return i18n.watchLocale(fn);
  3090. },
  3091. getLocale: function getLocale() {
  3092. return i18n.getLocale();
  3093. },
  3094. setLocale: function setLocale(newLocale) {
  3095. return i18n.setLocale(newLocale);
  3096. }
  3097. };
  3098. }
  3099. var isString = function isString(val) {
  3100. return typeof val === 'string';
  3101. };
  3102. exports.isString = isString;
  3103. var formater;
  3104. function hasI18nJson(jsonObj, delimiters) {
  3105. if (!formater) {
  3106. formater = new BaseFormatter();
  3107. }
  3108. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3109. var value = jsonObj[key];
  3110. if (isString(value)) {
  3111. if (isI18nStr(value, delimiters)) {
  3112. return true;
  3113. }
  3114. } else {
  3115. return hasI18nJson(value, delimiters);
  3116. }
  3117. });
  3118. }
  3119. function parseI18nJson(jsonObj, values, delimiters) {
  3120. if (!formater) {
  3121. formater = new BaseFormatter();
  3122. }
  3123. walkJsonObj(jsonObj, function (jsonObj, key) {
  3124. var value = jsonObj[key];
  3125. if (isString(value)) {
  3126. if (isI18nStr(value, delimiters)) {
  3127. jsonObj[key] = compileStr(value, values, delimiters);
  3128. }
  3129. } else {
  3130. parseI18nJson(value, values, delimiters);
  3131. }
  3132. });
  3133. return jsonObj;
  3134. }
  3135. function compileI18nJsonStr(jsonStr, _ref5) {
  3136. var locale = _ref5.locale,
  3137. locales = _ref5.locales,
  3138. delimiters = _ref5.delimiters;
  3139. if (!isI18nStr(jsonStr, delimiters)) {
  3140. return jsonStr;
  3141. }
  3142. if (!formater) {
  3143. formater = new BaseFormatter();
  3144. }
  3145. var localeValues = [];
  3146. Object.keys(locales).forEach(function (name) {
  3147. if (name !== locale) {
  3148. localeValues.push({
  3149. locale: name,
  3150. values: locales[name]
  3151. });
  3152. }
  3153. });
  3154. localeValues.unshift({
  3155. locale: locale,
  3156. values: locales[locale]
  3157. });
  3158. try {
  3159. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3160. } catch (e) {}
  3161. return jsonStr;
  3162. }
  3163. function isI18nStr(value, delimiters) {
  3164. return value.indexOf(delimiters[0]) > -1;
  3165. }
  3166. function compileStr(value, values, delimiters) {
  3167. return formater.interpolate(value, values, delimiters).join('');
  3168. }
  3169. function compileValue(jsonObj, key, localeValues, delimiters) {
  3170. var value = jsonObj[key];
  3171. if (isString(value)) {
  3172. // 存在国际化
  3173. if (isI18nStr(value, delimiters)) {
  3174. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3175. if (localeValues.length > 1) {
  3176. // 格式化国际化语言
  3177. var valueLocales = jsonObj[key + 'Locales'] = {};
  3178. localeValues.forEach(function (localValue) {
  3179. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3180. });
  3181. }
  3182. }
  3183. } else {
  3184. compileJsonObj(value, localeValues, delimiters);
  3185. }
  3186. }
  3187. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3188. walkJsonObj(jsonObj, function (jsonObj, key) {
  3189. compileValue(jsonObj, key, localeValues, delimiters);
  3190. });
  3191. return jsonObj;
  3192. }
  3193. function walkJsonObj(jsonObj, walk) {
  3194. if (isArray(jsonObj)) {
  3195. for (var i = 0; i < jsonObj.length; i++) {
  3196. if (walk(jsonObj, i)) {
  3197. return true;
  3198. }
  3199. }
  3200. } else if (isObject(jsonObj)) {
  3201. for (var key in jsonObj) {
  3202. if (walk(jsonObj, key)) {
  3203. return true;
  3204. }
  3205. }
  3206. }
  3207. return false;
  3208. }
  3209. function resolveLocale(locales) {
  3210. return function (locale) {
  3211. if (!locale) {
  3212. return locale;
  3213. }
  3214. locale = normalizeLocale(locale) || locale;
  3215. return resolveLocaleChain(locale).find(function (locale) {
  3216. return locales.indexOf(locale) > -1;
  3217. });
  3218. };
  3219. }
  3220. function resolveLocaleChain(locale) {
  3221. var chain = [];
  3222. var tokens = locale.split('-');
  3223. while (tokens.length) {
  3224. chain.push(tokens.join('-'));
  3225. tokens.pop();
  3226. }
  3227. return chain;
  3228. }
  3229. /* 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)))
  3230. /***/ }),
  3231. /* 23 */
  3232. /*!***************************************************************!*\
  3233. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3234. \***************************************************************/
  3235. /*! no static exports found */
  3236. /***/ (function(module, exports) {
  3237. function _classCallCheck(instance, Constructor) {
  3238. if (!(instance instanceof Constructor)) {
  3239. throw new TypeError("Cannot call a class as a function");
  3240. }
  3241. }
  3242. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3243. /***/ }),
  3244. /* 24 */
  3245. /*!************************************************************!*\
  3246. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3247. \************************************************************/
  3248. /*! no static exports found */
  3249. /***/ (function(module, exports, __webpack_require__) {
  3250. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3251. function _defineProperties(target, props) {
  3252. for (var i = 0; i < props.length; i++) {
  3253. var descriptor = props[i];
  3254. descriptor.enumerable = descriptor.enumerable || false;
  3255. descriptor.configurable = true;
  3256. if ("value" in descriptor) descriptor.writable = true;
  3257. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3258. }
  3259. }
  3260. function _createClass(Constructor, protoProps, staticProps) {
  3261. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3262. if (staticProps) _defineProperties(Constructor, staticProps);
  3263. Object.defineProperty(Constructor, "prototype", {
  3264. writable: false
  3265. });
  3266. return Constructor;
  3267. }
  3268. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3269. /***/ }),
  3270. /* 25 */
  3271. /*!******************************************************************************************!*\
  3272. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3273. \******************************************************************************************/
  3274. /*! exports provided: default */
  3275. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3276. "use strict";
  3277. __webpack_require__.r(__webpack_exports__);
  3278. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3279. * Vue.js v2.6.11
  3280. * (c) 2014-2022 Evan You
  3281. * Released under the MIT License.
  3282. */
  3283. /* */
  3284. var emptyObject = Object.freeze({});
  3285. // These helpers produce better VM code in JS engines due to their
  3286. // explicitness and function inlining.
  3287. function isUndef (v) {
  3288. return v === undefined || v === null
  3289. }
  3290. function isDef (v) {
  3291. return v !== undefined && v !== null
  3292. }
  3293. function isTrue (v) {
  3294. return v === true
  3295. }
  3296. function isFalse (v) {
  3297. return v === false
  3298. }
  3299. /**
  3300. * Check if value is primitive.
  3301. */
  3302. function isPrimitive (value) {
  3303. return (
  3304. typeof value === 'string' ||
  3305. typeof value === 'number' ||
  3306. // $flow-disable-line
  3307. typeof value === 'symbol' ||
  3308. typeof value === 'boolean'
  3309. )
  3310. }
  3311. /**
  3312. * Quick object check - this is primarily used to tell
  3313. * Objects from primitive values when we know the value
  3314. * is a JSON-compliant type.
  3315. */
  3316. function isObject (obj) {
  3317. return obj !== null && typeof obj === 'object'
  3318. }
  3319. /**
  3320. * Get the raw type string of a value, e.g., [object Object].
  3321. */
  3322. var _toString = Object.prototype.toString;
  3323. function toRawType (value) {
  3324. return _toString.call(value).slice(8, -1)
  3325. }
  3326. /**
  3327. * Strict object type check. Only returns true
  3328. * for plain JavaScript objects.
  3329. */
  3330. function isPlainObject (obj) {
  3331. return _toString.call(obj) === '[object Object]'
  3332. }
  3333. function isRegExp (v) {
  3334. return _toString.call(v) === '[object RegExp]'
  3335. }
  3336. /**
  3337. * Check if val is a valid array index.
  3338. */
  3339. function isValidArrayIndex (val) {
  3340. var n = parseFloat(String(val));
  3341. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3342. }
  3343. function isPromise (val) {
  3344. return (
  3345. isDef(val) &&
  3346. typeof val.then === 'function' &&
  3347. typeof val.catch === 'function'
  3348. )
  3349. }
  3350. /**
  3351. * Convert a value to a string that is actually rendered.
  3352. */
  3353. function toString (val) {
  3354. return val == null
  3355. ? ''
  3356. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3357. ? JSON.stringify(val, null, 2)
  3358. : String(val)
  3359. }
  3360. /**
  3361. * Convert an input value to a number for persistence.
  3362. * If the conversion fails, return original string.
  3363. */
  3364. function toNumber (val) {
  3365. var n = parseFloat(val);
  3366. return isNaN(n) ? val : n
  3367. }
  3368. /**
  3369. * Make a map and return a function for checking if a key
  3370. * is in that map.
  3371. */
  3372. function makeMap (
  3373. str,
  3374. expectsLowerCase
  3375. ) {
  3376. var map = Object.create(null);
  3377. var list = str.split(',');
  3378. for (var i = 0; i < list.length; i++) {
  3379. map[list[i]] = true;
  3380. }
  3381. return expectsLowerCase
  3382. ? function (val) { return map[val.toLowerCase()]; }
  3383. : function (val) { return map[val]; }
  3384. }
  3385. /**
  3386. * Check if a tag is a built-in tag.
  3387. */
  3388. var isBuiltInTag = makeMap('slot,component', true);
  3389. /**
  3390. * Check if an attribute is a reserved attribute.
  3391. */
  3392. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3393. /**
  3394. * Remove an item from an array.
  3395. */
  3396. function remove (arr, item) {
  3397. if (arr.length) {
  3398. var index = arr.indexOf(item);
  3399. if (index > -1) {
  3400. return arr.splice(index, 1)
  3401. }
  3402. }
  3403. }
  3404. /**
  3405. * Check whether an object has the property.
  3406. */
  3407. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3408. function hasOwn (obj, key) {
  3409. return hasOwnProperty.call(obj, key)
  3410. }
  3411. /**
  3412. * Create a cached version of a pure function.
  3413. */
  3414. function cached (fn) {
  3415. var cache = Object.create(null);
  3416. return (function cachedFn (str) {
  3417. var hit = cache[str];
  3418. return hit || (cache[str] = fn(str))
  3419. })
  3420. }
  3421. /**
  3422. * Camelize a hyphen-delimited string.
  3423. */
  3424. var camelizeRE = /-(\w)/g;
  3425. var camelize = cached(function (str) {
  3426. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3427. });
  3428. /**
  3429. * Capitalize a string.
  3430. */
  3431. var capitalize = cached(function (str) {
  3432. return str.charAt(0).toUpperCase() + str.slice(1)
  3433. });
  3434. /**
  3435. * Hyphenate a camelCase string.
  3436. */
  3437. var hyphenateRE = /\B([A-Z])/g;
  3438. var hyphenate = cached(function (str) {
  3439. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3440. });
  3441. /**
  3442. * Simple bind polyfill for environments that do not support it,
  3443. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3444. * since native bind is now performant enough in most browsers.
  3445. * But removing it would mean breaking code that was able to run in
  3446. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3447. */
  3448. /* istanbul ignore next */
  3449. function polyfillBind (fn, ctx) {
  3450. function boundFn (a) {
  3451. var l = arguments.length;
  3452. return l
  3453. ? l > 1
  3454. ? fn.apply(ctx, arguments)
  3455. : fn.call(ctx, a)
  3456. : fn.call(ctx)
  3457. }
  3458. boundFn._length = fn.length;
  3459. return boundFn
  3460. }
  3461. function nativeBind (fn, ctx) {
  3462. return fn.bind(ctx)
  3463. }
  3464. var bind = Function.prototype.bind
  3465. ? nativeBind
  3466. : polyfillBind;
  3467. /**
  3468. * Convert an Array-like object to a real Array.
  3469. */
  3470. function toArray (list, start) {
  3471. start = start || 0;
  3472. var i = list.length - start;
  3473. var ret = new Array(i);
  3474. while (i--) {
  3475. ret[i] = list[i + start];
  3476. }
  3477. return ret
  3478. }
  3479. /**
  3480. * Mix properties into target object.
  3481. */
  3482. function extend (to, _from) {
  3483. for (var key in _from) {
  3484. to[key] = _from[key];
  3485. }
  3486. return to
  3487. }
  3488. /**
  3489. * Merge an Array of Objects into a single Object.
  3490. */
  3491. function toObject (arr) {
  3492. var res = {};
  3493. for (var i = 0; i < arr.length; i++) {
  3494. if (arr[i]) {
  3495. extend(res, arr[i]);
  3496. }
  3497. }
  3498. return res
  3499. }
  3500. /* eslint-disable no-unused-vars */
  3501. /**
  3502. * Perform no operation.
  3503. * Stubbing args to make Flow happy without leaving useless transpiled code
  3504. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3505. */
  3506. function noop (a, b, c) {}
  3507. /**
  3508. * Always return false.
  3509. */
  3510. var no = function (a, b, c) { return false; };
  3511. /* eslint-enable no-unused-vars */
  3512. /**
  3513. * Return the same value.
  3514. */
  3515. var identity = function (_) { return _; };
  3516. /**
  3517. * Check if two values are loosely equal - that is,
  3518. * if they are plain objects, do they have the same shape?
  3519. */
  3520. function looseEqual (a, b) {
  3521. if (a === b) { return true }
  3522. var isObjectA = isObject(a);
  3523. var isObjectB = isObject(b);
  3524. if (isObjectA && isObjectB) {
  3525. try {
  3526. var isArrayA = Array.isArray(a);
  3527. var isArrayB = Array.isArray(b);
  3528. if (isArrayA && isArrayB) {
  3529. return a.length === b.length && a.every(function (e, i) {
  3530. return looseEqual(e, b[i])
  3531. })
  3532. } else if (a instanceof Date && b instanceof Date) {
  3533. return a.getTime() === b.getTime()
  3534. } else if (!isArrayA && !isArrayB) {
  3535. var keysA = Object.keys(a);
  3536. var keysB = Object.keys(b);
  3537. return keysA.length === keysB.length && keysA.every(function (key) {
  3538. return looseEqual(a[key], b[key])
  3539. })
  3540. } else {
  3541. /* istanbul ignore next */
  3542. return false
  3543. }
  3544. } catch (e) {
  3545. /* istanbul ignore next */
  3546. return false
  3547. }
  3548. } else if (!isObjectA && !isObjectB) {
  3549. return String(a) === String(b)
  3550. } else {
  3551. return false
  3552. }
  3553. }
  3554. /**
  3555. * Return the first index at which a loosely equal value can be
  3556. * found in the array (if value is a plain object, the array must
  3557. * contain an object of the same shape), or -1 if it is not present.
  3558. */
  3559. function looseIndexOf (arr, val) {
  3560. for (var i = 0; i < arr.length; i++) {
  3561. if (looseEqual(arr[i], val)) { return i }
  3562. }
  3563. return -1
  3564. }
  3565. /**
  3566. * Ensure a function is called only once.
  3567. */
  3568. function once (fn) {
  3569. var called = false;
  3570. return function () {
  3571. if (!called) {
  3572. called = true;
  3573. fn.apply(this, arguments);
  3574. }
  3575. }
  3576. }
  3577. var ASSET_TYPES = [
  3578. 'component',
  3579. 'directive',
  3580. 'filter'
  3581. ];
  3582. var LIFECYCLE_HOOKS = [
  3583. 'beforeCreate',
  3584. 'created',
  3585. 'beforeMount',
  3586. 'mounted',
  3587. 'beforeUpdate',
  3588. 'updated',
  3589. 'beforeDestroy',
  3590. 'destroyed',
  3591. 'activated',
  3592. 'deactivated',
  3593. 'errorCaptured',
  3594. 'serverPrefetch'
  3595. ];
  3596. /* */
  3597. var config = ({
  3598. /**
  3599. * Option merge strategies (used in core/util/options)
  3600. */
  3601. // $flow-disable-line
  3602. optionMergeStrategies: Object.create(null),
  3603. /**
  3604. * Whether to suppress warnings.
  3605. */
  3606. silent: false,
  3607. /**
  3608. * Show production mode tip message on boot?
  3609. */
  3610. productionTip: "development" !== 'production',
  3611. /**
  3612. * Whether to enable devtools
  3613. */
  3614. devtools: "development" !== 'production',
  3615. /**
  3616. * Whether to record perf
  3617. */
  3618. performance: false,
  3619. /**
  3620. * Error handler for watcher errors
  3621. */
  3622. errorHandler: null,
  3623. /**
  3624. * Warn handler for watcher warns
  3625. */
  3626. warnHandler: null,
  3627. /**
  3628. * Ignore certain custom elements
  3629. */
  3630. ignoredElements: [],
  3631. /**
  3632. * Custom user key aliases for v-on
  3633. */
  3634. // $flow-disable-line
  3635. keyCodes: Object.create(null),
  3636. /**
  3637. * Check if a tag is reserved so that it cannot be registered as a
  3638. * component. This is platform-dependent and may be overwritten.
  3639. */
  3640. isReservedTag: no,
  3641. /**
  3642. * Check if an attribute is reserved so that it cannot be used as a component
  3643. * prop. This is platform-dependent and may be overwritten.
  3644. */
  3645. isReservedAttr: no,
  3646. /**
  3647. * Check if a tag is an unknown element.
  3648. * Platform-dependent.
  3649. */
  3650. isUnknownElement: no,
  3651. /**
  3652. * Get the namespace of an element
  3653. */
  3654. getTagNamespace: noop,
  3655. /**
  3656. * Parse the real tag name for the specific platform.
  3657. */
  3658. parsePlatformTagName: identity,
  3659. /**
  3660. * Check if an attribute must be bound using property, e.g. value
  3661. * Platform-dependent.
  3662. */
  3663. mustUseProp: no,
  3664. /**
  3665. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3666. * This will significantly reduce performance if set to false.
  3667. */
  3668. async: true,
  3669. /**
  3670. * Exposed for legacy reasons
  3671. */
  3672. _lifecycleHooks: LIFECYCLE_HOOKS
  3673. });
  3674. /* */
  3675. /**
  3676. * unicode letters used for parsing html tags, component names and property paths.
  3677. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3678. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3679. */
  3680. 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/;
  3681. /**
  3682. * Check if a string starts with $ or _
  3683. */
  3684. function isReserved (str) {
  3685. var c = (str + '').charCodeAt(0);
  3686. return c === 0x24 || c === 0x5F
  3687. }
  3688. /**
  3689. * Define a property.
  3690. */
  3691. function def (obj, key, val, enumerable) {
  3692. Object.defineProperty(obj, key, {
  3693. value: val,
  3694. enumerable: !!enumerable,
  3695. writable: true,
  3696. configurable: true
  3697. });
  3698. }
  3699. /**
  3700. * Parse simple path.
  3701. */
  3702. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3703. function parsePath (path) {
  3704. if (bailRE.test(path)) {
  3705. return
  3706. }
  3707. var segments = path.split('.');
  3708. return function (obj) {
  3709. for (var i = 0; i < segments.length; i++) {
  3710. if (!obj) { return }
  3711. obj = obj[segments[i]];
  3712. }
  3713. return obj
  3714. }
  3715. }
  3716. /* */
  3717. // can we use __proto__?
  3718. var hasProto = '__proto__' in {};
  3719. // Browser environment sniffing
  3720. var inBrowser = typeof window !== 'undefined';
  3721. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3722. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3723. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3724. var isIE = UA && /msie|trident/.test(UA);
  3725. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3726. var isEdge = UA && UA.indexOf('edge/') > 0;
  3727. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3728. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3729. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3730. var isPhantomJS = UA && /phantomjs/.test(UA);
  3731. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3732. // Firefox has a "watch" function on Object.prototype...
  3733. var nativeWatch = ({}).watch;
  3734. if (inBrowser) {
  3735. try {
  3736. var opts = {};
  3737. Object.defineProperty(opts, 'passive', ({
  3738. get: function get () {
  3739. }
  3740. })); // https://github.com/facebook/flow/issues/285
  3741. window.addEventListener('test-passive', null, opts);
  3742. } catch (e) {}
  3743. }
  3744. // this needs to be lazy-evaled because vue may be required before
  3745. // vue-server-renderer can set VUE_ENV
  3746. var _isServer;
  3747. var isServerRendering = function () {
  3748. if (_isServer === undefined) {
  3749. /* istanbul ignore if */
  3750. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3751. // detect presence of vue-server-renderer and avoid
  3752. // Webpack shimming the process
  3753. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3754. } else {
  3755. _isServer = false;
  3756. }
  3757. }
  3758. return _isServer
  3759. };
  3760. // detect devtools
  3761. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3762. /* istanbul ignore next */
  3763. function isNative (Ctor) {
  3764. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3765. }
  3766. var hasSymbol =
  3767. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3768. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3769. var _Set;
  3770. /* istanbul ignore if */ // $flow-disable-line
  3771. if (typeof Set !== 'undefined' && isNative(Set)) {
  3772. // use native Set when available.
  3773. _Set = Set;
  3774. } else {
  3775. // a non-standard Set polyfill that only works with primitive keys.
  3776. _Set = /*@__PURE__*/(function () {
  3777. function Set () {
  3778. this.set = Object.create(null);
  3779. }
  3780. Set.prototype.has = function has (key) {
  3781. return this.set[key] === true
  3782. };
  3783. Set.prototype.add = function add (key) {
  3784. this.set[key] = true;
  3785. };
  3786. Set.prototype.clear = function clear () {
  3787. this.set = Object.create(null);
  3788. };
  3789. return Set;
  3790. }());
  3791. }
  3792. /* */
  3793. var warn = noop;
  3794. var tip = noop;
  3795. var generateComponentTrace = (noop); // work around flow check
  3796. var formatComponentName = (noop);
  3797. if (true) {
  3798. var hasConsole = typeof console !== 'undefined';
  3799. var classifyRE = /(?:^|[-_])(\w)/g;
  3800. var classify = function (str) { return str
  3801. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3802. .replace(/[-_]/g, ''); };
  3803. warn = function (msg, vm) {
  3804. var trace = vm ? generateComponentTrace(vm) : '';
  3805. if (config.warnHandler) {
  3806. config.warnHandler.call(null, msg, vm, trace);
  3807. } else if (hasConsole && (!config.silent)) {
  3808. console.error(("[Vue warn]: " + msg + trace));
  3809. }
  3810. };
  3811. tip = function (msg, vm) {
  3812. if (hasConsole && (!config.silent)) {
  3813. console.warn("[Vue tip]: " + msg + (
  3814. vm ? generateComponentTrace(vm) : ''
  3815. ));
  3816. }
  3817. };
  3818. formatComponentName = function (vm, includeFile) {
  3819. if (vm.$root === vm) {
  3820. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3821. return ('') + vm.$options.__file
  3822. }
  3823. return '<Root>'
  3824. }
  3825. var options = typeof vm === 'function' && vm.cid != null
  3826. ? vm.options
  3827. : vm._isVue
  3828. ? vm.$options || vm.constructor.options
  3829. : vm;
  3830. var name = options.name || options._componentTag;
  3831. var file = options.__file;
  3832. if (!name && file) {
  3833. var match = file.match(/([^/\\]+)\.vue$/);
  3834. name = match && match[1];
  3835. }
  3836. return (
  3837. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3838. (file && includeFile !== false ? (" at " + file) : '')
  3839. )
  3840. };
  3841. var repeat = function (str, n) {
  3842. var res = '';
  3843. while (n) {
  3844. if (n % 2 === 1) { res += str; }
  3845. if (n > 1) { str += str; }
  3846. n >>= 1;
  3847. }
  3848. return res
  3849. };
  3850. generateComponentTrace = function (vm) {
  3851. if (vm._isVue && vm.$parent) {
  3852. var tree = [];
  3853. var currentRecursiveSequence = 0;
  3854. while (vm && vm.$options.name !== 'PageBody') {
  3855. if (tree.length > 0) {
  3856. var last = tree[tree.length - 1];
  3857. if (last.constructor === vm.constructor) {
  3858. currentRecursiveSequence++;
  3859. vm = vm.$parent;
  3860. continue
  3861. } else if (currentRecursiveSequence > 0) {
  3862. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3863. currentRecursiveSequence = 0;
  3864. }
  3865. }
  3866. !vm.$options.isReserved && tree.push(vm);
  3867. vm = vm.$parent;
  3868. }
  3869. return '\n\nfound in\n\n' + tree
  3870. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3871. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3872. : formatComponentName(vm))); })
  3873. .join('\n')
  3874. } else {
  3875. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3876. }
  3877. };
  3878. }
  3879. /* */
  3880. var uid = 0;
  3881. /**
  3882. * A dep is an observable that can have multiple
  3883. * directives subscribing to it.
  3884. */
  3885. var Dep = function Dep () {
  3886. this.id = uid++;
  3887. this.subs = [];
  3888. };
  3889. Dep.prototype.addSub = function addSub (sub) {
  3890. this.subs.push(sub);
  3891. };
  3892. Dep.prototype.removeSub = function removeSub (sub) {
  3893. remove(this.subs, sub);
  3894. };
  3895. Dep.prototype.depend = function depend () {
  3896. if (Dep.SharedObject.target) {
  3897. Dep.SharedObject.target.addDep(this);
  3898. }
  3899. };
  3900. Dep.prototype.notify = function notify () {
  3901. // stabilize the subscriber list first
  3902. var subs = this.subs.slice();
  3903. if ( true && !config.async) {
  3904. // subs aren't sorted in scheduler if not running async
  3905. // we need to sort them now to make sure they fire in correct
  3906. // order
  3907. subs.sort(function (a, b) { return a.id - b.id; });
  3908. }
  3909. for (var i = 0, l = subs.length; i < l; i++) {
  3910. subs[i].update();
  3911. }
  3912. };
  3913. // The current target watcher being evaluated.
  3914. // This is globally unique because only one watcher
  3915. // can be evaluated at a time.
  3916. // fixed by xxxxxx (nvue shared vuex)
  3917. /* eslint-disable no-undef */
  3918. Dep.SharedObject = {};
  3919. Dep.SharedObject.target = null;
  3920. Dep.SharedObject.targetStack = [];
  3921. function pushTarget (target) {
  3922. Dep.SharedObject.targetStack.push(target);
  3923. Dep.SharedObject.target = target;
  3924. Dep.target = target;
  3925. }
  3926. function popTarget () {
  3927. Dep.SharedObject.targetStack.pop();
  3928. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3929. Dep.target = Dep.SharedObject.target;
  3930. }
  3931. /* */
  3932. var VNode = function VNode (
  3933. tag,
  3934. data,
  3935. children,
  3936. text,
  3937. elm,
  3938. context,
  3939. componentOptions,
  3940. asyncFactory
  3941. ) {
  3942. this.tag = tag;
  3943. this.data = data;
  3944. this.children = children;
  3945. this.text = text;
  3946. this.elm = elm;
  3947. this.ns = undefined;
  3948. this.context = context;
  3949. this.fnContext = undefined;
  3950. this.fnOptions = undefined;
  3951. this.fnScopeId = undefined;
  3952. this.key = data && data.key;
  3953. this.componentOptions = componentOptions;
  3954. this.componentInstance = undefined;
  3955. this.parent = undefined;
  3956. this.raw = false;
  3957. this.isStatic = false;
  3958. this.isRootInsert = true;
  3959. this.isComment = false;
  3960. this.isCloned = false;
  3961. this.isOnce = false;
  3962. this.asyncFactory = asyncFactory;
  3963. this.asyncMeta = undefined;
  3964. this.isAsyncPlaceholder = false;
  3965. };
  3966. var prototypeAccessors = { child: { configurable: true } };
  3967. // DEPRECATED: alias for componentInstance for backwards compat.
  3968. /* istanbul ignore next */
  3969. prototypeAccessors.child.get = function () {
  3970. return this.componentInstance
  3971. };
  3972. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3973. var createEmptyVNode = function (text) {
  3974. if ( text === void 0 ) text = '';
  3975. var node = new VNode();
  3976. node.text = text;
  3977. node.isComment = true;
  3978. return node
  3979. };
  3980. function createTextVNode (val) {
  3981. return new VNode(undefined, undefined, undefined, String(val))
  3982. }
  3983. // optimized shallow clone
  3984. // used for static nodes and slot nodes because they may be reused across
  3985. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3986. // on their elm reference.
  3987. function cloneVNode (vnode) {
  3988. var cloned = new VNode(
  3989. vnode.tag,
  3990. vnode.data,
  3991. // #7975
  3992. // clone children array to avoid mutating original in case of cloning
  3993. // a child.
  3994. vnode.children && vnode.children.slice(),
  3995. vnode.text,
  3996. vnode.elm,
  3997. vnode.context,
  3998. vnode.componentOptions,
  3999. vnode.asyncFactory
  4000. );
  4001. cloned.ns = vnode.ns;
  4002. cloned.isStatic = vnode.isStatic;
  4003. cloned.key = vnode.key;
  4004. cloned.isComment = vnode.isComment;
  4005. cloned.fnContext = vnode.fnContext;
  4006. cloned.fnOptions = vnode.fnOptions;
  4007. cloned.fnScopeId = vnode.fnScopeId;
  4008. cloned.asyncMeta = vnode.asyncMeta;
  4009. cloned.isCloned = true;
  4010. return cloned
  4011. }
  4012. /*
  4013. * not type checking this file because flow doesn't play well with
  4014. * dynamically accessing methods on Array prototype
  4015. */
  4016. var arrayProto = Array.prototype;
  4017. var arrayMethods = Object.create(arrayProto);
  4018. var methodsToPatch = [
  4019. 'push',
  4020. 'pop',
  4021. 'shift',
  4022. 'unshift',
  4023. 'splice',
  4024. 'sort',
  4025. 'reverse'
  4026. ];
  4027. /**
  4028. * Intercept mutating methods and emit events
  4029. */
  4030. methodsToPatch.forEach(function (method) {
  4031. // cache original method
  4032. var original = arrayProto[method];
  4033. def(arrayMethods, method, function mutator () {
  4034. var args = [], len = arguments.length;
  4035. while ( len-- ) args[ len ] = arguments[ len ];
  4036. var result = original.apply(this, args);
  4037. var ob = this.__ob__;
  4038. var inserted;
  4039. switch (method) {
  4040. case 'push':
  4041. case 'unshift':
  4042. inserted = args;
  4043. break
  4044. case 'splice':
  4045. inserted = args.slice(2);
  4046. break
  4047. }
  4048. if (inserted) { ob.observeArray(inserted); }
  4049. // notify change
  4050. ob.dep.notify();
  4051. return result
  4052. });
  4053. });
  4054. /* */
  4055. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4056. /**
  4057. * In some cases we may want to disable observation inside a component's
  4058. * update computation.
  4059. */
  4060. var shouldObserve = true;
  4061. function toggleObserving (value) {
  4062. shouldObserve = value;
  4063. }
  4064. /**
  4065. * Observer class that is attached to each observed
  4066. * object. Once attached, the observer converts the target
  4067. * object's property keys into getter/setters that
  4068. * collect dependencies and dispatch updates.
  4069. */
  4070. var Observer = function Observer (value) {
  4071. this.value = value;
  4072. this.dep = new Dep();
  4073. this.vmCount = 0;
  4074. def(value, '__ob__', this);
  4075. if (Array.isArray(value)) {
  4076. if (hasProto) {
  4077. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4078. if(value.push !== value.__proto__.push){
  4079. copyAugment(value, arrayMethods, arrayKeys);
  4080. } else {
  4081. protoAugment(value, arrayMethods);
  4082. }
  4083. }
  4084. } else {
  4085. copyAugment(value, arrayMethods, arrayKeys);
  4086. }
  4087. this.observeArray(value);
  4088. } else {
  4089. this.walk(value);
  4090. }
  4091. };
  4092. /**
  4093. * Walk through all properties and convert them into
  4094. * getter/setters. This method should only be called when
  4095. * value type is Object.
  4096. */
  4097. Observer.prototype.walk = function walk (obj) {
  4098. var keys = Object.keys(obj);
  4099. for (var i = 0; i < keys.length; i++) {
  4100. defineReactive$$1(obj, keys[i]);
  4101. }
  4102. };
  4103. /**
  4104. * Observe a list of Array items.
  4105. */
  4106. Observer.prototype.observeArray = function observeArray (items) {
  4107. for (var i = 0, l = items.length; i < l; i++) {
  4108. observe(items[i]);
  4109. }
  4110. };
  4111. // helpers
  4112. /**
  4113. * Augment a target Object or Array by intercepting
  4114. * the prototype chain using __proto__
  4115. */
  4116. function protoAugment (target, src) {
  4117. /* eslint-disable no-proto */
  4118. target.__proto__ = src;
  4119. /* eslint-enable no-proto */
  4120. }
  4121. /**
  4122. * Augment a target Object or Array by defining
  4123. * hidden properties.
  4124. */
  4125. /* istanbul ignore next */
  4126. function copyAugment (target, src, keys) {
  4127. for (var i = 0, l = keys.length; i < l; i++) {
  4128. var key = keys[i];
  4129. def(target, key, src[key]);
  4130. }
  4131. }
  4132. /**
  4133. * Attempt to create an observer instance for a value,
  4134. * returns the new observer if successfully observed,
  4135. * or the existing observer if the value already has one.
  4136. */
  4137. function observe (value, asRootData) {
  4138. if (!isObject(value) || value instanceof VNode) {
  4139. return
  4140. }
  4141. var ob;
  4142. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4143. ob = value.__ob__;
  4144. } else if (
  4145. shouldObserve &&
  4146. !isServerRendering() &&
  4147. (Array.isArray(value) || isPlainObject(value)) &&
  4148. Object.isExtensible(value) &&
  4149. !value._isVue &&
  4150. !value.__v_isMPComponent
  4151. ) {
  4152. ob = new Observer(value);
  4153. }
  4154. if (asRootData && ob) {
  4155. ob.vmCount++;
  4156. }
  4157. return ob
  4158. }
  4159. /**
  4160. * Define a reactive property on an Object.
  4161. */
  4162. function defineReactive$$1 (
  4163. obj,
  4164. key,
  4165. val,
  4166. customSetter,
  4167. shallow
  4168. ) {
  4169. var dep = new Dep();
  4170. var property = Object.getOwnPropertyDescriptor(obj, key);
  4171. if (property && property.configurable === false) {
  4172. return
  4173. }
  4174. // cater for pre-defined getter/setters
  4175. var getter = property && property.get;
  4176. var setter = property && property.set;
  4177. if ((!getter || setter) && arguments.length === 2) {
  4178. val = obj[key];
  4179. }
  4180. var childOb = !shallow && observe(val);
  4181. Object.defineProperty(obj, key, {
  4182. enumerable: true,
  4183. configurable: true,
  4184. get: function reactiveGetter () {
  4185. var value = getter ? getter.call(obj) : val;
  4186. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4187. dep.depend();
  4188. if (childOb) {
  4189. childOb.dep.depend();
  4190. if (Array.isArray(value)) {
  4191. dependArray(value);
  4192. }
  4193. }
  4194. }
  4195. return value
  4196. },
  4197. set: function reactiveSetter (newVal) {
  4198. var value = getter ? getter.call(obj) : val;
  4199. /* eslint-disable no-self-compare */
  4200. if (newVal === value || (newVal !== newVal && value !== value)) {
  4201. return
  4202. }
  4203. /* eslint-enable no-self-compare */
  4204. if ( true && customSetter) {
  4205. customSetter();
  4206. }
  4207. // #7981: for accessor properties without setter
  4208. if (getter && !setter) { return }
  4209. if (setter) {
  4210. setter.call(obj, newVal);
  4211. } else {
  4212. val = newVal;
  4213. }
  4214. childOb = !shallow && observe(newVal);
  4215. dep.notify();
  4216. }
  4217. });
  4218. }
  4219. /**
  4220. * Set a property on an object. Adds the new property and
  4221. * triggers change notification if the property doesn't
  4222. * already exist.
  4223. */
  4224. function set (target, key, val) {
  4225. if ( true &&
  4226. (isUndef(target) || isPrimitive(target))
  4227. ) {
  4228. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4229. }
  4230. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4231. target.length = Math.max(target.length, key);
  4232. target.splice(key, 1, val);
  4233. return val
  4234. }
  4235. if (key in target && !(key in Object.prototype)) {
  4236. target[key] = val;
  4237. return val
  4238. }
  4239. var ob = (target).__ob__;
  4240. if (target._isVue || (ob && ob.vmCount)) {
  4241. true && warn(
  4242. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4243. 'at runtime - declare it upfront in the data option.'
  4244. );
  4245. return val
  4246. }
  4247. if (!ob) {
  4248. target[key] = val;
  4249. return val
  4250. }
  4251. defineReactive$$1(ob.value, key, val);
  4252. ob.dep.notify();
  4253. return val
  4254. }
  4255. /**
  4256. * Delete a property and trigger change if necessary.
  4257. */
  4258. function del (target, key) {
  4259. if ( true &&
  4260. (isUndef(target) || isPrimitive(target))
  4261. ) {
  4262. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4263. }
  4264. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4265. target.splice(key, 1);
  4266. return
  4267. }
  4268. var ob = (target).__ob__;
  4269. if (target._isVue || (ob && ob.vmCount)) {
  4270. true && warn(
  4271. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4272. '- just set it to null.'
  4273. );
  4274. return
  4275. }
  4276. if (!hasOwn(target, key)) {
  4277. return
  4278. }
  4279. delete target[key];
  4280. if (!ob) {
  4281. return
  4282. }
  4283. ob.dep.notify();
  4284. }
  4285. /**
  4286. * Collect dependencies on array elements when the array is touched, since
  4287. * we cannot intercept array element access like property getters.
  4288. */
  4289. function dependArray (value) {
  4290. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4291. e = value[i];
  4292. e && e.__ob__ && e.__ob__.dep.depend();
  4293. if (Array.isArray(e)) {
  4294. dependArray(e);
  4295. }
  4296. }
  4297. }
  4298. /* */
  4299. /**
  4300. * Option overwriting strategies are functions that handle
  4301. * how to merge a parent option value and a child option
  4302. * value into the final value.
  4303. */
  4304. var strats = config.optionMergeStrategies;
  4305. /**
  4306. * Options with restrictions
  4307. */
  4308. if (true) {
  4309. strats.el = strats.propsData = function (parent, child, vm, key) {
  4310. if (!vm) {
  4311. warn(
  4312. "option \"" + key + "\" can only be used during instance " +
  4313. 'creation with the `new` keyword.'
  4314. );
  4315. }
  4316. return defaultStrat(parent, child)
  4317. };
  4318. }
  4319. /**
  4320. * Helper that recursively merges two data objects together.
  4321. */
  4322. function mergeData (to, from) {
  4323. if (!from) { return to }
  4324. var key, toVal, fromVal;
  4325. var keys = hasSymbol
  4326. ? Reflect.ownKeys(from)
  4327. : Object.keys(from);
  4328. for (var i = 0; i < keys.length; i++) {
  4329. key = keys[i];
  4330. // in case the object is already observed...
  4331. if (key === '__ob__') { continue }
  4332. toVal = to[key];
  4333. fromVal = from[key];
  4334. if (!hasOwn(to, key)) {
  4335. set(to, key, fromVal);
  4336. } else if (
  4337. toVal !== fromVal &&
  4338. isPlainObject(toVal) &&
  4339. isPlainObject(fromVal)
  4340. ) {
  4341. mergeData(toVal, fromVal);
  4342. }
  4343. }
  4344. return to
  4345. }
  4346. /**
  4347. * Data
  4348. */
  4349. function mergeDataOrFn (
  4350. parentVal,
  4351. childVal,
  4352. vm
  4353. ) {
  4354. if (!vm) {
  4355. // in a Vue.extend merge, both should be functions
  4356. if (!childVal) {
  4357. return parentVal
  4358. }
  4359. if (!parentVal) {
  4360. return childVal
  4361. }
  4362. // when parentVal & childVal are both present,
  4363. // we need to return a function that returns the
  4364. // merged result of both functions... no need to
  4365. // check if parentVal is a function here because
  4366. // it has to be a function to pass previous merges.
  4367. return function mergedDataFn () {
  4368. return mergeData(
  4369. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4370. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4371. )
  4372. }
  4373. } else {
  4374. return function mergedInstanceDataFn () {
  4375. // instance merge
  4376. var instanceData = typeof childVal === 'function'
  4377. ? childVal.call(vm, vm)
  4378. : childVal;
  4379. var defaultData = typeof parentVal === 'function'
  4380. ? parentVal.call(vm, vm)
  4381. : parentVal;
  4382. if (instanceData) {
  4383. return mergeData(instanceData, defaultData)
  4384. } else {
  4385. return defaultData
  4386. }
  4387. }
  4388. }
  4389. }
  4390. strats.data = function (
  4391. parentVal,
  4392. childVal,
  4393. vm
  4394. ) {
  4395. if (!vm) {
  4396. if (childVal && typeof childVal !== 'function') {
  4397. true && warn(
  4398. 'The "data" option should be a function ' +
  4399. 'that returns a per-instance value in component ' +
  4400. 'definitions.',
  4401. vm
  4402. );
  4403. return parentVal
  4404. }
  4405. return mergeDataOrFn(parentVal, childVal)
  4406. }
  4407. return mergeDataOrFn(parentVal, childVal, vm)
  4408. };
  4409. /**
  4410. * Hooks and props are merged as arrays.
  4411. */
  4412. function mergeHook (
  4413. parentVal,
  4414. childVal
  4415. ) {
  4416. var res = childVal
  4417. ? parentVal
  4418. ? parentVal.concat(childVal)
  4419. : Array.isArray(childVal)
  4420. ? childVal
  4421. : [childVal]
  4422. : parentVal;
  4423. return res
  4424. ? dedupeHooks(res)
  4425. : res
  4426. }
  4427. function dedupeHooks (hooks) {
  4428. var res = [];
  4429. for (var i = 0; i < hooks.length; i++) {
  4430. if (res.indexOf(hooks[i]) === -1) {
  4431. res.push(hooks[i]);
  4432. }
  4433. }
  4434. return res
  4435. }
  4436. LIFECYCLE_HOOKS.forEach(function (hook) {
  4437. strats[hook] = mergeHook;
  4438. });
  4439. /**
  4440. * Assets
  4441. *
  4442. * When a vm is present (instance creation), we need to do
  4443. * a three-way merge between constructor options, instance
  4444. * options and parent options.
  4445. */
  4446. function mergeAssets (
  4447. parentVal,
  4448. childVal,
  4449. vm,
  4450. key
  4451. ) {
  4452. var res = Object.create(parentVal || null);
  4453. if (childVal) {
  4454. true && assertObjectType(key, childVal, vm);
  4455. return extend(res, childVal)
  4456. } else {
  4457. return res
  4458. }
  4459. }
  4460. ASSET_TYPES.forEach(function (type) {
  4461. strats[type + 's'] = mergeAssets;
  4462. });
  4463. /**
  4464. * Watchers.
  4465. *
  4466. * Watchers hashes should not overwrite one
  4467. * another, so we merge them as arrays.
  4468. */
  4469. strats.watch = function (
  4470. parentVal,
  4471. childVal,
  4472. vm,
  4473. key
  4474. ) {
  4475. // work around Firefox's Object.prototype.watch...
  4476. if (parentVal === nativeWatch) { parentVal = undefined; }
  4477. if (childVal === nativeWatch) { childVal = undefined; }
  4478. /* istanbul ignore if */
  4479. if (!childVal) { return Object.create(parentVal || null) }
  4480. if (true) {
  4481. assertObjectType(key, childVal, vm);
  4482. }
  4483. if (!parentVal) { return childVal }
  4484. var ret = {};
  4485. extend(ret, parentVal);
  4486. for (var key$1 in childVal) {
  4487. var parent = ret[key$1];
  4488. var child = childVal[key$1];
  4489. if (parent && !Array.isArray(parent)) {
  4490. parent = [parent];
  4491. }
  4492. ret[key$1] = parent
  4493. ? parent.concat(child)
  4494. : Array.isArray(child) ? child : [child];
  4495. }
  4496. return ret
  4497. };
  4498. /**
  4499. * Other object hashes.
  4500. */
  4501. strats.props =
  4502. strats.methods =
  4503. strats.inject =
  4504. strats.computed = function (
  4505. parentVal,
  4506. childVal,
  4507. vm,
  4508. key
  4509. ) {
  4510. if (childVal && "development" !== 'production') {
  4511. assertObjectType(key, childVal, vm);
  4512. }
  4513. if (!parentVal) { return childVal }
  4514. var ret = Object.create(null);
  4515. extend(ret, parentVal);
  4516. if (childVal) { extend(ret, childVal); }
  4517. return ret
  4518. };
  4519. strats.provide = mergeDataOrFn;
  4520. /**
  4521. * Default strategy.
  4522. */
  4523. var defaultStrat = function (parentVal, childVal) {
  4524. return childVal === undefined
  4525. ? parentVal
  4526. : childVal
  4527. };
  4528. /**
  4529. * Validate component names
  4530. */
  4531. function checkComponents (options) {
  4532. for (var key in options.components) {
  4533. validateComponentName(key);
  4534. }
  4535. }
  4536. function validateComponentName (name) {
  4537. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4538. warn(
  4539. 'Invalid component name: "' + name + '". Component names ' +
  4540. 'should conform to valid custom element name in html5 specification.'
  4541. );
  4542. }
  4543. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4544. warn(
  4545. 'Do not use built-in or reserved HTML elements as component ' +
  4546. 'id: ' + name
  4547. );
  4548. }
  4549. }
  4550. /**
  4551. * Ensure all props option syntax are normalized into the
  4552. * Object-based format.
  4553. */
  4554. function normalizeProps (options, vm) {
  4555. var props = options.props;
  4556. if (!props) { return }
  4557. var res = {};
  4558. var i, val, name;
  4559. if (Array.isArray(props)) {
  4560. i = props.length;
  4561. while (i--) {
  4562. val = props[i];
  4563. if (typeof val === 'string') {
  4564. name = camelize(val);
  4565. res[name] = { type: null };
  4566. } else if (true) {
  4567. warn('props must be strings when using array syntax.');
  4568. }
  4569. }
  4570. } else if (isPlainObject(props)) {
  4571. for (var key in props) {
  4572. val = props[key];
  4573. name = camelize(key);
  4574. res[name] = isPlainObject(val)
  4575. ? val
  4576. : { type: val };
  4577. }
  4578. } else if (true) {
  4579. warn(
  4580. "Invalid value for option \"props\": expected an Array or an Object, " +
  4581. "but got " + (toRawType(props)) + ".",
  4582. vm
  4583. );
  4584. }
  4585. options.props = res;
  4586. }
  4587. /**
  4588. * Normalize all injections into Object-based format
  4589. */
  4590. function normalizeInject (options, vm) {
  4591. var inject = options.inject;
  4592. if (!inject) { return }
  4593. var normalized = options.inject = {};
  4594. if (Array.isArray(inject)) {
  4595. for (var i = 0; i < inject.length; i++) {
  4596. normalized[inject[i]] = { from: inject[i] };
  4597. }
  4598. } else if (isPlainObject(inject)) {
  4599. for (var key in inject) {
  4600. var val = inject[key];
  4601. normalized[key] = isPlainObject(val)
  4602. ? extend({ from: key }, val)
  4603. : { from: val };
  4604. }
  4605. } else if (true) {
  4606. warn(
  4607. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4608. "but got " + (toRawType(inject)) + ".",
  4609. vm
  4610. );
  4611. }
  4612. }
  4613. /**
  4614. * Normalize raw function directives into object format.
  4615. */
  4616. function normalizeDirectives (options) {
  4617. var dirs = options.directives;
  4618. if (dirs) {
  4619. for (var key in dirs) {
  4620. var def$$1 = dirs[key];
  4621. if (typeof def$$1 === 'function') {
  4622. dirs[key] = { bind: def$$1, update: def$$1 };
  4623. }
  4624. }
  4625. }
  4626. }
  4627. function assertObjectType (name, value, vm) {
  4628. if (!isPlainObject(value)) {
  4629. warn(
  4630. "Invalid value for option \"" + name + "\": expected an Object, " +
  4631. "but got " + (toRawType(value)) + ".",
  4632. vm
  4633. );
  4634. }
  4635. }
  4636. /**
  4637. * Merge two option objects into a new one.
  4638. * Core utility used in both instantiation and inheritance.
  4639. */
  4640. function mergeOptions (
  4641. parent,
  4642. child,
  4643. vm
  4644. ) {
  4645. if (true) {
  4646. checkComponents(child);
  4647. }
  4648. if (typeof child === 'function') {
  4649. child = child.options;
  4650. }
  4651. normalizeProps(child, vm);
  4652. normalizeInject(child, vm);
  4653. normalizeDirectives(child);
  4654. // Apply extends and mixins on the child options,
  4655. // but only if it is a raw options object that isn't
  4656. // the result of another mergeOptions call.
  4657. // Only merged options has the _base property.
  4658. if (!child._base) {
  4659. if (child.extends) {
  4660. parent = mergeOptions(parent, child.extends, vm);
  4661. }
  4662. if (child.mixins) {
  4663. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4664. parent = mergeOptions(parent, child.mixins[i], vm);
  4665. }
  4666. }
  4667. }
  4668. var options = {};
  4669. var key;
  4670. for (key in parent) {
  4671. mergeField(key);
  4672. }
  4673. for (key in child) {
  4674. if (!hasOwn(parent, key)) {
  4675. mergeField(key);
  4676. }
  4677. }
  4678. function mergeField (key) {
  4679. var strat = strats[key] || defaultStrat;
  4680. options[key] = strat(parent[key], child[key], vm, key);
  4681. }
  4682. return options
  4683. }
  4684. /**
  4685. * Resolve an asset.
  4686. * This function is used because child instances need access
  4687. * to assets defined in its ancestor chain.
  4688. */
  4689. function resolveAsset (
  4690. options,
  4691. type,
  4692. id,
  4693. warnMissing
  4694. ) {
  4695. /* istanbul ignore if */
  4696. if (typeof id !== 'string') {
  4697. return
  4698. }
  4699. var assets = options[type];
  4700. // check local registration variations first
  4701. if (hasOwn(assets, id)) { return assets[id] }
  4702. var camelizedId = camelize(id);
  4703. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4704. var PascalCaseId = capitalize(camelizedId);
  4705. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4706. // fallback to prototype chain
  4707. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4708. if ( true && warnMissing && !res) {
  4709. warn(
  4710. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4711. options
  4712. );
  4713. }
  4714. return res
  4715. }
  4716. /* */
  4717. function validateProp (
  4718. key,
  4719. propOptions,
  4720. propsData,
  4721. vm
  4722. ) {
  4723. var prop = propOptions[key];
  4724. var absent = !hasOwn(propsData, key);
  4725. var value = propsData[key];
  4726. // boolean casting
  4727. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4728. if (booleanIndex > -1) {
  4729. if (absent && !hasOwn(prop, 'default')) {
  4730. value = false;
  4731. } else if (value === '' || value === hyphenate(key)) {
  4732. // only cast empty string / same name to boolean if
  4733. // boolean has higher priority
  4734. var stringIndex = getTypeIndex(String, prop.type);
  4735. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4736. value = true;
  4737. }
  4738. }
  4739. }
  4740. // check default value
  4741. if (value === undefined) {
  4742. value = getPropDefaultValue(vm, prop, key);
  4743. // since the default value is a fresh copy,
  4744. // make sure to observe it.
  4745. var prevShouldObserve = shouldObserve;
  4746. toggleObserving(true);
  4747. observe(value);
  4748. toggleObserving(prevShouldObserve);
  4749. }
  4750. if (
  4751. true
  4752. ) {
  4753. assertProp(prop, key, value, vm, absent);
  4754. }
  4755. return value
  4756. }
  4757. /**
  4758. * Get the default value of a prop.
  4759. */
  4760. function getPropDefaultValue (vm, prop, key) {
  4761. // no default, return undefined
  4762. if (!hasOwn(prop, 'default')) {
  4763. return undefined
  4764. }
  4765. var def = prop.default;
  4766. // warn against non-factory defaults for Object & Array
  4767. if ( true && isObject(def)) {
  4768. warn(
  4769. 'Invalid default value for prop "' + key + '": ' +
  4770. 'Props with type Object/Array must use a factory function ' +
  4771. 'to return the default value.',
  4772. vm
  4773. );
  4774. }
  4775. // the raw prop value was also undefined from previous render,
  4776. // return previous default value to avoid unnecessary watcher trigger
  4777. if (vm && vm.$options.propsData &&
  4778. vm.$options.propsData[key] === undefined &&
  4779. vm._props[key] !== undefined
  4780. ) {
  4781. return vm._props[key]
  4782. }
  4783. // call factory function for non-Function types
  4784. // a value is Function if its prototype is function even across different execution context
  4785. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4786. ? def.call(vm)
  4787. : def
  4788. }
  4789. /**
  4790. * Assert whether a prop is valid.
  4791. */
  4792. function assertProp (
  4793. prop,
  4794. name,
  4795. value,
  4796. vm,
  4797. absent
  4798. ) {
  4799. if (prop.required && absent) {
  4800. warn(
  4801. 'Missing required prop: "' + name + '"',
  4802. vm
  4803. );
  4804. return
  4805. }
  4806. if (value == null && !prop.required) {
  4807. return
  4808. }
  4809. var type = prop.type;
  4810. var valid = !type || type === true;
  4811. var expectedTypes = [];
  4812. if (type) {
  4813. if (!Array.isArray(type)) {
  4814. type = [type];
  4815. }
  4816. for (var i = 0; i < type.length && !valid; i++) {
  4817. var assertedType = assertType(value, type[i]);
  4818. expectedTypes.push(assertedType.expectedType || '');
  4819. valid = assertedType.valid;
  4820. }
  4821. }
  4822. if (!valid) {
  4823. warn(
  4824. getInvalidTypeMessage(name, value, expectedTypes),
  4825. vm
  4826. );
  4827. return
  4828. }
  4829. var validator = prop.validator;
  4830. if (validator) {
  4831. if (!validator(value)) {
  4832. warn(
  4833. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4834. vm
  4835. );
  4836. }
  4837. }
  4838. }
  4839. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4840. function assertType (value, type) {
  4841. var valid;
  4842. var expectedType = getType(type);
  4843. if (simpleCheckRE.test(expectedType)) {
  4844. var t = typeof value;
  4845. valid = t === expectedType.toLowerCase();
  4846. // for primitive wrapper objects
  4847. if (!valid && t === 'object') {
  4848. valid = value instanceof type;
  4849. }
  4850. } else if (expectedType === 'Object') {
  4851. valid = isPlainObject(value);
  4852. } else if (expectedType === 'Array') {
  4853. valid = Array.isArray(value);
  4854. } else {
  4855. valid = value instanceof type;
  4856. }
  4857. return {
  4858. valid: valid,
  4859. expectedType: expectedType
  4860. }
  4861. }
  4862. /**
  4863. * Use function string name to check built-in types,
  4864. * because a simple equality check will fail when running
  4865. * across different vms / iframes.
  4866. */
  4867. function getType (fn) {
  4868. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4869. return match ? match[1] : ''
  4870. }
  4871. function isSameType (a, b) {
  4872. return getType(a) === getType(b)
  4873. }
  4874. function getTypeIndex (type, expectedTypes) {
  4875. if (!Array.isArray(expectedTypes)) {
  4876. return isSameType(expectedTypes, type) ? 0 : -1
  4877. }
  4878. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4879. if (isSameType(expectedTypes[i], type)) {
  4880. return i
  4881. }
  4882. }
  4883. return -1
  4884. }
  4885. function getInvalidTypeMessage (name, value, expectedTypes) {
  4886. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4887. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4888. var expectedType = expectedTypes[0];
  4889. var receivedType = toRawType(value);
  4890. var expectedValue = styleValue(value, expectedType);
  4891. var receivedValue = styleValue(value, receivedType);
  4892. // check if we need to specify expected value
  4893. if (expectedTypes.length === 1 &&
  4894. isExplicable(expectedType) &&
  4895. !isBoolean(expectedType, receivedType)) {
  4896. message += " with value " + expectedValue;
  4897. }
  4898. message += ", got " + receivedType + " ";
  4899. // check if we need to specify received value
  4900. if (isExplicable(receivedType)) {
  4901. message += "with value " + receivedValue + ".";
  4902. }
  4903. return message
  4904. }
  4905. function styleValue (value, type) {
  4906. if (type === 'String') {
  4907. return ("\"" + value + "\"")
  4908. } else if (type === 'Number') {
  4909. return ("" + (Number(value)))
  4910. } else {
  4911. return ("" + value)
  4912. }
  4913. }
  4914. function isExplicable (value) {
  4915. var explicitTypes = ['string', 'number', 'boolean'];
  4916. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4917. }
  4918. function isBoolean () {
  4919. var args = [], len = arguments.length;
  4920. while ( len-- ) args[ len ] = arguments[ len ];
  4921. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4922. }
  4923. /* */
  4924. function handleError (err, vm, info) {
  4925. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4926. // See: https://github.com/vuejs/vuex/issues/1505
  4927. pushTarget();
  4928. try {
  4929. if (vm) {
  4930. var cur = vm;
  4931. while ((cur = cur.$parent)) {
  4932. var hooks = cur.$options.errorCaptured;
  4933. if (hooks) {
  4934. for (var i = 0; i < hooks.length; i++) {
  4935. try {
  4936. var capture = hooks[i].call(cur, err, vm, info) === false;
  4937. if (capture) { return }
  4938. } catch (e) {
  4939. globalHandleError(e, cur, 'errorCaptured hook');
  4940. }
  4941. }
  4942. }
  4943. }
  4944. }
  4945. globalHandleError(err, vm, info);
  4946. } finally {
  4947. popTarget();
  4948. }
  4949. }
  4950. function invokeWithErrorHandling (
  4951. handler,
  4952. context,
  4953. args,
  4954. vm,
  4955. info
  4956. ) {
  4957. var res;
  4958. try {
  4959. res = args ? handler.apply(context, args) : handler.call(context);
  4960. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4961. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4962. // issue #9511
  4963. // avoid catch triggering multiple times when nested calls
  4964. res._handled = true;
  4965. }
  4966. } catch (e) {
  4967. handleError(e, vm, info);
  4968. }
  4969. return res
  4970. }
  4971. function globalHandleError (err, vm, info) {
  4972. if (config.errorHandler) {
  4973. try {
  4974. return config.errorHandler.call(null, err, vm, info)
  4975. } catch (e) {
  4976. // if the user intentionally throws the original error in the handler,
  4977. // do not log it twice
  4978. if (e !== err) {
  4979. logError(e, null, 'config.errorHandler');
  4980. }
  4981. }
  4982. }
  4983. logError(err, vm, info);
  4984. }
  4985. function logError (err, vm, info) {
  4986. if (true) {
  4987. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4988. }
  4989. /* istanbul ignore else */
  4990. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4991. console.error(err);
  4992. } else {
  4993. throw err
  4994. }
  4995. }
  4996. /* */
  4997. var callbacks = [];
  4998. var pending = false;
  4999. function flushCallbacks () {
  5000. pending = false;
  5001. var copies = callbacks.slice(0);
  5002. callbacks.length = 0;
  5003. for (var i = 0; i < copies.length; i++) {
  5004. copies[i]();
  5005. }
  5006. }
  5007. // Here we have async deferring wrappers using microtasks.
  5008. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5009. // However, it has subtle problems when state is changed right before repaint
  5010. // (e.g. #6813, out-in transitions).
  5011. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5012. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5013. // So we now use microtasks everywhere, again.
  5014. // A major drawback of this tradeoff is that there are some scenarios
  5015. // where microtasks have too high a priority and fire in between supposedly
  5016. // sequential events (e.g. #4521, #6690, which have workarounds)
  5017. // or even between bubbling of the same event (#6566).
  5018. var timerFunc;
  5019. // The nextTick behavior leverages the microtask queue, which can be accessed
  5020. // via either native Promise.then or MutationObserver.
  5021. // MutationObserver has wider support, however it is seriously bugged in
  5022. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5023. // completely stops working after triggering a few times... so, if native
  5024. // Promise is available, we will use it:
  5025. /* istanbul ignore next, $flow-disable-line */
  5026. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5027. var p = Promise.resolve();
  5028. timerFunc = function () {
  5029. p.then(flushCallbacks);
  5030. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5031. // it can get stuck in a weird state where callbacks are pushed into the
  5032. // microtask queue but the queue isn't being flushed, until the browser
  5033. // needs to do some other work, e.g. handle a timer. Therefore we can
  5034. // "force" the microtask queue to be flushed by adding an empty timer.
  5035. if (isIOS) { setTimeout(noop); }
  5036. };
  5037. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5038. isNative(MutationObserver) ||
  5039. // PhantomJS and iOS 7.x
  5040. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5041. )) {
  5042. // Use MutationObserver where native Promise is not available,
  5043. // e.g. PhantomJS, iOS7, Android 4.4
  5044. // (#6466 MutationObserver is unreliable in IE11)
  5045. var counter = 1;
  5046. var observer = new MutationObserver(flushCallbacks);
  5047. var textNode = document.createTextNode(String(counter));
  5048. observer.observe(textNode, {
  5049. characterData: true
  5050. });
  5051. timerFunc = function () {
  5052. counter = (counter + 1) % 2;
  5053. textNode.data = String(counter);
  5054. };
  5055. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5056. // Fallback to setImmediate.
  5057. // Technically it leverages the (macro) task queue,
  5058. // but it is still a better choice than setTimeout.
  5059. timerFunc = function () {
  5060. setImmediate(flushCallbacks);
  5061. };
  5062. } else {
  5063. // Fallback to setTimeout.
  5064. timerFunc = function () {
  5065. setTimeout(flushCallbacks, 0);
  5066. };
  5067. }
  5068. function nextTick (cb, ctx) {
  5069. var _resolve;
  5070. callbacks.push(function () {
  5071. if (cb) {
  5072. try {
  5073. cb.call(ctx);
  5074. } catch (e) {
  5075. handleError(e, ctx, 'nextTick');
  5076. }
  5077. } else if (_resolve) {
  5078. _resolve(ctx);
  5079. }
  5080. });
  5081. if (!pending) {
  5082. pending = true;
  5083. timerFunc();
  5084. }
  5085. // $flow-disable-line
  5086. if (!cb && typeof Promise !== 'undefined') {
  5087. return new Promise(function (resolve) {
  5088. _resolve = resolve;
  5089. })
  5090. }
  5091. }
  5092. /* */
  5093. /* not type checking this file because flow doesn't play well with Proxy */
  5094. var initProxy;
  5095. if (true) {
  5096. var allowedGlobals = makeMap(
  5097. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5098. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5099. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5100. 'require' // for Webpack/Browserify
  5101. );
  5102. var warnNonPresent = function (target, key) {
  5103. warn(
  5104. "Property or method \"" + key + "\" is not defined on the instance but " +
  5105. 'referenced during render. Make sure that this property is reactive, ' +
  5106. 'either in the data option, or for class-based components, by ' +
  5107. 'initializing the property. ' +
  5108. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5109. target
  5110. );
  5111. };
  5112. var warnReservedPrefix = function (target, key) {
  5113. warn(
  5114. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5115. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5116. 'prevent conflicts with Vue internals. ' +
  5117. 'See: https://vuejs.org/v2/api/#data',
  5118. target
  5119. );
  5120. };
  5121. var hasProxy =
  5122. typeof Proxy !== 'undefined' && isNative(Proxy);
  5123. if (hasProxy) {
  5124. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5125. config.keyCodes = new Proxy(config.keyCodes, {
  5126. set: function set (target, key, value) {
  5127. if (isBuiltInModifier(key)) {
  5128. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5129. return false
  5130. } else {
  5131. target[key] = value;
  5132. return true
  5133. }
  5134. }
  5135. });
  5136. }
  5137. var hasHandler = {
  5138. has: function has (target, key) {
  5139. var has = key in target;
  5140. var isAllowed = allowedGlobals(key) ||
  5141. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5142. if (!has && !isAllowed) {
  5143. if (key in target.$data) { warnReservedPrefix(target, key); }
  5144. else { warnNonPresent(target, key); }
  5145. }
  5146. return has || !isAllowed
  5147. }
  5148. };
  5149. var getHandler = {
  5150. get: function get (target, key) {
  5151. if (typeof key === 'string' && !(key in target)) {
  5152. if (key in target.$data) { warnReservedPrefix(target, key); }
  5153. else { warnNonPresent(target, key); }
  5154. }
  5155. return target[key]
  5156. }
  5157. };
  5158. initProxy = function initProxy (vm) {
  5159. if (hasProxy) {
  5160. // determine which proxy handler to use
  5161. var options = vm.$options;
  5162. var handlers = options.render && options.render._withStripped
  5163. ? getHandler
  5164. : hasHandler;
  5165. vm._renderProxy = new Proxy(vm, handlers);
  5166. } else {
  5167. vm._renderProxy = vm;
  5168. }
  5169. };
  5170. }
  5171. /* */
  5172. var seenObjects = new _Set();
  5173. /**
  5174. * Recursively traverse an object to evoke all converted
  5175. * getters, so that every nested property inside the object
  5176. * is collected as a "deep" dependency.
  5177. */
  5178. function traverse (val) {
  5179. _traverse(val, seenObjects);
  5180. seenObjects.clear();
  5181. }
  5182. function _traverse (val, seen) {
  5183. var i, keys;
  5184. var isA = Array.isArray(val);
  5185. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5186. return
  5187. }
  5188. if (val.__ob__) {
  5189. var depId = val.__ob__.dep.id;
  5190. if (seen.has(depId)) {
  5191. return
  5192. }
  5193. seen.add(depId);
  5194. }
  5195. if (isA) {
  5196. i = val.length;
  5197. while (i--) { _traverse(val[i], seen); }
  5198. } else {
  5199. keys = Object.keys(val);
  5200. i = keys.length;
  5201. while (i--) { _traverse(val[keys[i]], seen); }
  5202. }
  5203. }
  5204. var mark;
  5205. var measure;
  5206. if (true) {
  5207. var perf = inBrowser && window.performance;
  5208. /* istanbul ignore if */
  5209. if (
  5210. perf &&
  5211. perf.mark &&
  5212. perf.measure &&
  5213. perf.clearMarks &&
  5214. perf.clearMeasures
  5215. ) {
  5216. mark = function (tag) { return perf.mark(tag); };
  5217. measure = function (name, startTag, endTag) {
  5218. perf.measure(name, startTag, endTag);
  5219. perf.clearMarks(startTag);
  5220. perf.clearMarks(endTag);
  5221. // perf.clearMeasures(name)
  5222. };
  5223. }
  5224. }
  5225. /* */
  5226. var normalizeEvent = cached(function (name) {
  5227. var passive = name.charAt(0) === '&';
  5228. name = passive ? name.slice(1) : name;
  5229. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5230. name = once$$1 ? name.slice(1) : name;
  5231. var capture = name.charAt(0) === '!';
  5232. name = capture ? name.slice(1) : name;
  5233. return {
  5234. name: name,
  5235. once: once$$1,
  5236. capture: capture,
  5237. passive: passive
  5238. }
  5239. });
  5240. function createFnInvoker (fns, vm) {
  5241. function invoker () {
  5242. var arguments$1 = arguments;
  5243. var fns = invoker.fns;
  5244. if (Array.isArray(fns)) {
  5245. var cloned = fns.slice();
  5246. for (var i = 0; i < cloned.length; i++) {
  5247. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5248. }
  5249. } else {
  5250. // return handler return value for single handlers
  5251. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5252. }
  5253. }
  5254. invoker.fns = fns;
  5255. return invoker
  5256. }
  5257. function updateListeners (
  5258. on,
  5259. oldOn,
  5260. add,
  5261. remove$$1,
  5262. createOnceHandler,
  5263. vm
  5264. ) {
  5265. var name, def$$1, cur, old, event;
  5266. for (name in on) {
  5267. def$$1 = cur = on[name];
  5268. old = oldOn[name];
  5269. event = normalizeEvent(name);
  5270. if (isUndef(cur)) {
  5271. true && warn(
  5272. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5273. vm
  5274. );
  5275. } else if (isUndef(old)) {
  5276. if (isUndef(cur.fns)) {
  5277. cur = on[name] = createFnInvoker(cur, vm);
  5278. }
  5279. if (isTrue(event.once)) {
  5280. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5281. }
  5282. add(event.name, cur, event.capture, event.passive, event.params);
  5283. } else if (cur !== old) {
  5284. old.fns = cur;
  5285. on[name] = old;
  5286. }
  5287. }
  5288. for (name in oldOn) {
  5289. if (isUndef(on[name])) {
  5290. event = normalizeEvent(name);
  5291. remove$$1(event.name, oldOn[name], event.capture);
  5292. }
  5293. }
  5294. }
  5295. /* */
  5296. /* */
  5297. // fixed by xxxxxx (mp properties)
  5298. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5299. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5300. if (isUndef(propOptions)) {
  5301. return res
  5302. }
  5303. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5304. var attrs = data.attrs;
  5305. var props = data.props;
  5306. if (isDef(attrs) || isDef(props)) {
  5307. for (var key in propOptions) {
  5308. var altKey = hyphenate(key);
  5309. var result = checkProp(res, props, key, altKey, true) ||
  5310. checkProp(res, attrs, key, altKey, false);
  5311. // externalClass
  5312. if (
  5313. result &&
  5314. res[key] &&
  5315. externalClasses.indexOf(altKey) !== -1 &&
  5316. context[camelize(res[key])]
  5317. ) {
  5318. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5319. res[key] = context[camelize(res[key])];
  5320. }
  5321. }
  5322. }
  5323. return res
  5324. }
  5325. function extractPropsFromVNodeData (
  5326. data,
  5327. Ctor,
  5328. tag,
  5329. context// fixed by xxxxxx
  5330. ) {
  5331. // we are only extracting raw values here.
  5332. // validation and default values are handled in the child
  5333. // component itself.
  5334. var propOptions = Ctor.options.props;
  5335. if (isUndef(propOptions)) {
  5336. // fixed by xxxxxx
  5337. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5338. }
  5339. var res = {};
  5340. var attrs = data.attrs;
  5341. var props = data.props;
  5342. if (isDef(attrs) || isDef(props)) {
  5343. for (var key in propOptions) {
  5344. var altKey = hyphenate(key);
  5345. if (true) {
  5346. var keyInLowerCase = key.toLowerCase();
  5347. if (
  5348. key !== keyInLowerCase &&
  5349. attrs && hasOwn(attrs, keyInLowerCase)
  5350. ) {
  5351. tip(
  5352. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5353. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5354. " \"" + key + "\". " +
  5355. "Note that HTML attributes are case-insensitive and camelCased " +
  5356. "props need to use their kebab-case equivalents when using in-DOM " +
  5357. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5358. );
  5359. }
  5360. }
  5361. checkProp(res, props, key, altKey, true) ||
  5362. checkProp(res, attrs, key, altKey, false);
  5363. }
  5364. }
  5365. // fixed by xxxxxx
  5366. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5367. }
  5368. function checkProp (
  5369. res,
  5370. hash,
  5371. key,
  5372. altKey,
  5373. preserve
  5374. ) {
  5375. if (isDef(hash)) {
  5376. if (hasOwn(hash, key)) {
  5377. res[key] = hash[key];
  5378. if (!preserve) {
  5379. delete hash[key];
  5380. }
  5381. return true
  5382. } else if (hasOwn(hash, altKey)) {
  5383. res[key] = hash[altKey];
  5384. if (!preserve) {
  5385. delete hash[altKey];
  5386. }
  5387. return true
  5388. }
  5389. }
  5390. return false
  5391. }
  5392. /* */
  5393. // The template compiler attempts to minimize the need for normalization by
  5394. // statically analyzing the template at compile time.
  5395. //
  5396. // For plain HTML markup, normalization can be completely skipped because the
  5397. // generated render function is guaranteed to return Array<VNode>. There are
  5398. // two cases where extra normalization is needed:
  5399. // 1. When the children contains components - because a functional component
  5400. // may return an Array instead of a single root. In this case, just a simple
  5401. // normalization is needed - if any child is an Array, we flatten the whole
  5402. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5403. // because functional components already normalize their own children.
  5404. function simpleNormalizeChildren (children) {
  5405. for (var i = 0; i < children.length; i++) {
  5406. if (Array.isArray(children[i])) {
  5407. return Array.prototype.concat.apply([], children)
  5408. }
  5409. }
  5410. return children
  5411. }
  5412. // 2. When the children contains constructs that always generated nested Arrays,
  5413. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5414. // with hand-written render functions / JSX. In such cases a full normalization
  5415. // is needed to cater to all possible types of children values.
  5416. function normalizeChildren (children) {
  5417. return isPrimitive(children)
  5418. ? [createTextVNode(children)]
  5419. : Array.isArray(children)
  5420. ? normalizeArrayChildren(children)
  5421. : undefined
  5422. }
  5423. function isTextNode (node) {
  5424. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5425. }
  5426. function normalizeArrayChildren (children, nestedIndex) {
  5427. var res = [];
  5428. var i, c, lastIndex, last;
  5429. for (i = 0; i < children.length; i++) {
  5430. c = children[i];
  5431. if (isUndef(c) || typeof c === 'boolean') { continue }
  5432. lastIndex = res.length - 1;
  5433. last = res[lastIndex];
  5434. // nested
  5435. if (Array.isArray(c)) {
  5436. if (c.length > 0) {
  5437. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5438. // merge adjacent text nodes
  5439. if (isTextNode(c[0]) && isTextNode(last)) {
  5440. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5441. c.shift();
  5442. }
  5443. res.push.apply(res, c);
  5444. }
  5445. } else if (isPrimitive(c)) {
  5446. if (isTextNode(last)) {
  5447. // merge adjacent text nodes
  5448. // this is necessary for SSR hydration because text nodes are
  5449. // essentially merged when rendered to HTML strings
  5450. res[lastIndex] = createTextVNode(last.text + c);
  5451. } else if (c !== '') {
  5452. // convert primitive to vnode
  5453. res.push(createTextVNode(c));
  5454. }
  5455. } else {
  5456. if (isTextNode(c) && isTextNode(last)) {
  5457. // merge adjacent text nodes
  5458. res[lastIndex] = createTextVNode(last.text + c.text);
  5459. } else {
  5460. // default key for nested array children (likely generated by v-for)
  5461. if (isTrue(children._isVList) &&
  5462. isDef(c.tag) &&
  5463. isUndef(c.key) &&
  5464. isDef(nestedIndex)) {
  5465. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5466. }
  5467. res.push(c);
  5468. }
  5469. }
  5470. }
  5471. return res
  5472. }
  5473. /* */
  5474. function initProvide (vm) {
  5475. var provide = vm.$options.provide;
  5476. if (provide) {
  5477. vm._provided = typeof provide === 'function'
  5478. ? provide.call(vm)
  5479. : provide;
  5480. }
  5481. }
  5482. function initInjections (vm) {
  5483. var result = resolveInject(vm.$options.inject, vm);
  5484. if (result) {
  5485. toggleObserving(false);
  5486. Object.keys(result).forEach(function (key) {
  5487. /* istanbul ignore else */
  5488. if (true) {
  5489. defineReactive$$1(vm, key, result[key], function () {
  5490. warn(
  5491. "Avoid mutating an injected value directly since the changes will be " +
  5492. "overwritten whenever the provided component re-renders. " +
  5493. "injection being mutated: \"" + key + "\"",
  5494. vm
  5495. );
  5496. });
  5497. } else {}
  5498. });
  5499. toggleObserving(true);
  5500. }
  5501. }
  5502. function resolveInject (inject, vm) {
  5503. if (inject) {
  5504. // inject is :any because flow is not smart enough to figure out cached
  5505. var result = Object.create(null);
  5506. var keys = hasSymbol
  5507. ? Reflect.ownKeys(inject)
  5508. : Object.keys(inject);
  5509. for (var i = 0; i < keys.length; i++) {
  5510. var key = keys[i];
  5511. // #6574 in case the inject object is observed...
  5512. if (key === '__ob__') { continue }
  5513. var provideKey = inject[key].from;
  5514. var source = vm;
  5515. while (source) {
  5516. if (source._provided && hasOwn(source._provided, provideKey)) {
  5517. result[key] = source._provided[provideKey];
  5518. break
  5519. }
  5520. source = source.$parent;
  5521. }
  5522. if (!source) {
  5523. if ('default' in inject[key]) {
  5524. var provideDefault = inject[key].default;
  5525. result[key] = typeof provideDefault === 'function'
  5526. ? provideDefault.call(vm)
  5527. : provideDefault;
  5528. } else if (true) {
  5529. warn(("Injection \"" + key + "\" not found"), vm);
  5530. }
  5531. }
  5532. }
  5533. return result
  5534. }
  5535. }
  5536. /* */
  5537. /**
  5538. * Runtime helper for resolving raw children VNodes into a slot object.
  5539. */
  5540. function resolveSlots (
  5541. children,
  5542. context
  5543. ) {
  5544. if (!children || !children.length) {
  5545. return {}
  5546. }
  5547. var slots = {};
  5548. for (var i = 0, l = children.length; i < l; i++) {
  5549. var child = children[i];
  5550. var data = child.data;
  5551. // remove slot attribute if the node is resolved as a Vue slot node
  5552. if (data && data.attrs && data.attrs.slot) {
  5553. delete data.attrs.slot;
  5554. }
  5555. // named slots should only be respected if the vnode was rendered in the
  5556. // same context.
  5557. if ((child.context === context || child.fnContext === context) &&
  5558. data && data.slot != null
  5559. ) {
  5560. var name = data.slot;
  5561. var slot = (slots[name] || (slots[name] = []));
  5562. if (child.tag === 'template') {
  5563. slot.push.apply(slot, child.children || []);
  5564. } else {
  5565. slot.push(child);
  5566. }
  5567. } else {
  5568. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5569. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5570. (slots['page'] || (slots['page'] = [])).push(child);
  5571. }else{
  5572. (slots.default || (slots.default = [])).push(child);
  5573. }
  5574. }
  5575. }
  5576. // ignore slots that contains only whitespace
  5577. for (var name$1 in slots) {
  5578. if (slots[name$1].every(isWhitespace)) {
  5579. delete slots[name$1];
  5580. }
  5581. }
  5582. return slots
  5583. }
  5584. function isWhitespace (node) {
  5585. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5586. }
  5587. /* */
  5588. function normalizeScopedSlots (
  5589. slots,
  5590. normalSlots,
  5591. prevSlots
  5592. ) {
  5593. var res;
  5594. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5595. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5596. var key = slots && slots.$key;
  5597. if (!slots) {
  5598. res = {};
  5599. } else if (slots._normalized) {
  5600. // fast path 1: child component re-render only, parent did not change
  5601. return slots._normalized
  5602. } else if (
  5603. isStable &&
  5604. prevSlots &&
  5605. prevSlots !== emptyObject &&
  5606. key === prevSlots.$key &&
  5607. !hasNormalSlots &&
  5608. !prevSlots.$hasNormal
  5609. ) {
  5610. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5611. // only need to normalize once
  5612. return prevSlots
  5613. } else {
  5614. res = {};
  5615. for (var key$1 in slots) {
  5616. if (slots[key$1] && key$1[0] !== '$') {
  5617. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5618. }
  5619. }
  5620. }
  5621. // expose normal slots on scopedSlots
  5622. for (var key$2 in normalSlots) {
  5623. if (!(key$2 in res)) {
  5624. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5625. }
  5626. }
  5627. // avoriaz seems to mock a non-extensible $scopedSlots object
  5628. // and when that is passed down this would cause an error
  5629. if (slots && Object.isExtensible(slots)) {
  5630. (slots)._normalized = res;
  5631. }
  5632. def(res, '$stable', isStable);
  5633. def(res, '$key', key);
  5634. def(res, '$hasNormal', hasNormalSlots);
  5635. return res
  5636. }
  5637. function normalizeScopedSlot(normalSlots, key, fn) {
  5638. var normalized = function () {
  5639. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5640. res = res && typeof res === 'object' && !Array.isArray(res)
  5641. ? [res] // single vnode
  5642. : normalizeChildren(res);
  5643. return res && (
  5644. res.length === 0 ||
  5645. (res.length === 1 && res[0].isComment) // #9658
  5646. ) ? undefined
  5647. : res
  5648. };
  5649. // this is a slot using the new v-slot syntax without scope. although it is
  5650. // compiled as a scoped slot, render fn users would expect it to be present
  5651. // on this.$slots because the usage is semantically a normal slot.
  5652. if (fn.proxy) {
  5653. Object.defineProperty(normalSlots, key, {
  5654. get: normalized,
  5655. enumerable: true,
  5656. configurable: true
  5657. });
  5658. }
  5659. return normalized
  5660. }
  5661. function proxyNormalSlot(slots, key) {
  5662. return function () { return slots[key]; }
  5663. }
  5664. /* */
  5665. /**
  5666. * Runtime helper for rendering v-for lists.
  5667. */
  5668. function renderList (
  5669. val,
  5670. render
  5671. ) {
  5672. var ret, i, l, keys, key;
  5673. if (Array.isArray(val) || typeof val === 'string') {
  5674. ret = new Array(val.length);
  5675. for (i = 0, l = val.length; i < l; i++) {
  5676. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5677. }
  5678. } else if (typeof val === 'number') {
  5679. ret = new Array(val);
  5680. for (i = 0; i < val; i++) {
  5681. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5682. }
  5683. } else if (isObject(val)) {
  5684. if (hasSymbol && val[Symbol.iterator]) {
  5685. ret = [];
  5686. var iterator = val[Symbol.iterator]();
  5687. var result = iterator.next();
  5688. while (!result.done) {
  5689. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5690. result = iterator.next();
  5691. }
  5692. } else {
  5693. keys = Object.keys(val);
  5694. ret = new Array(keys.length);
  5695. for (i = 0, l = keys.length; i < l; i++) {
  5696. key = keys[i];
  5697. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5698. }
  5699. }
  5700. }
  5701. if (!isDef(ret)) {
  5702. ret = [];
  5703. }
  5704. (ret)._isVList = true;
  5705. return ret
  5706. }
  5707. /* */
  5708. /**
  5709. * Runtime helper for rendering <slot>
  5710. */
  5711. function renderSlot (
  5712. name,
  5713. fallback,
  5714. props,
  5715. bindObject
  5716. ) {
  5717. var scopedSlotFn = this.$scopedSlots[name];
  5718. var nodes;
  5719. if (scopedSlotFn) { // scoped slot
  5720. props = props || {};
  5721. if (bindObject) {
  5722. if ( true && !isObject(bindObject)) {
  5723. warn(
  5724. 'slot v-bind without argument expects an Object',
  5725. this
  5726. );
  5727. }
  5728. props = extend(extend({}, bindObject), props);
  5729. }
  5730. // fixed by xxxxxx app-plus scopedSlot
  5731. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5732. } else {
  5733. nodes = this.$slots[name] || fallback;
  5734. }
  5735. var target = props && props.slot;
  5736. if (target) {
  5737. return this.$createElement('template', { slot: target }, nodes)
  5738. } else {
  5739. return nodes
  5740. }
  5741. }
  5742. /* */
  5743. /**
  5744. * Runtime helper for resolving filters
  5745. */
  5746. function resolveFilter (id) {
  5747. return resolveAsset(this.$options, 'filters', id, true) || identity
  5748. }
  5749. /* */
  5750. function isKeyNotMatch (expect, actual) {
  5751. if (Array.isArray(expect)) {
  5752. return expect.indexOf(actual) === -1
  5753. } else {
  5754. return expect !== actual
  5755. }
  5756. }
  5757. /**
  5758. * Runtime helper for checking keyCodes from config.
  5759. * exposed as Vue.prototype._k
  5760. * passing in eventKeyName as last argument separately for backwards compat
  5761. */
  5762. function checkKeyCodes (
  5763. eventKeyCode,
  5764. key,
  5765. builtInKeyCode,
  5766. eventKeyName,
  5767. builtInKeyName
  5768. ) {
  5769. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5770. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5771. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5772. } else if (mappedKeyCode) {
  5773. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5774. } else if (eventKeyName) {
  5775. return hyphenate(eventKeyName) !== key
  5776. }
  5777. }
  5778. /* */
  5779. /**
  5780. * Runtime helper for merging v-bind="object" into a VNode's data.
  5781. */
  5782. function bindObjectProps (
  5783. data,
  5784. tag,
  5785. value,
  5786. asProp,
  5787. isSync
  5788. ) {
  5789. if (value) {
  5790. if (!isObject(value)) {
  5791. true && warn(
  5792. 'v-bind without argument expects an Object or Array value',
  5793. this
  5794. );
  5795. } else {
  5796. if (Array.isArray(value)) {
  5797. value = toObject(value);
  5798. }
  5799. var hash;
  5800. var loop = function ( key ) {
  5801. if (
  5802. key === 'class' ||
  5803. key === 'style' ||
  5804. isReservedAttribute(key)
  5805. ) {
  5806. hash = data;
  5807. } else {
  5808. var type = data.attrs && data.attrs.type;
  5809. hash = asProp || config.mustUseProp(tag, type, key)
  5810. ? data.domProps || (data.domProps = {})
  5811. : data.attrs || (data.attrs = {});
  5812. }
  5813. var camelizedKey = camelize(key);
  5814. var hyphenatedKey = hyphenate(key);
  5815. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5816. hash[key] = value[key];
  5817. if (isSync) {
  5818. var on = data.on || (data.on = {});
  5819. on[("update:" + key)] = function ($event) {
  5820. value[key] = $event;
  5821. };
  5822. }
  5823. }
  5824. };
  5825. for (var key in value) loop( key );
  5826. }
  5827. }
  5828. return data
  5829. }
  5830. /* */
  5831. /**
  5832. * Runtime helper for rendering static trees.
  5833. */
  5834. function renderStatic (
  5835. index,
  5836. isInFor
  5837. ) {
  5838. var cached = this._staticTrees || (this._staticTrees = []);
  5839. var tree = cached[index];
  5840. // if has already-rendered static tree and not inside v-for,
  5841. // we can reuse the same tree.
  5842. if (tree && !isInFor) {
  5843. return tree
  5844. }
  5845. // otherwise, render a fresh tree.
  5846. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5847. this._renderProxy,
  5848. null,
  5849. this // for render fns generated for functional component templates
  5850. );
  5851. markStatic(tree, ("__static__" + index), false);
  5852. return tree
  5853. }
  5854. /**
  5855. * Runtime helper for v-once.
  5856. * Effectively it means marking the node as static with a unique key.
  5857. */
  5858. function markOnce (
  5859. tree,
  5860. index,
  5861. key
  5862. ) {
  5863. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5864. return tree
  5865. }
  5866. function markStatic (
  5867. tree,
  5868. key,
  5869. isOnce
  5870. ) {
  5871. if (Array.isArray(tree)) {
  5872. for (var i = 0; i < tree.length; i++) {
  5873. if (tree[i] && typeof tree[i] !== 'string') {
  5874. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5875. }
  5876. }
  5877. } else {
  5878. markStaticNode(tree, key, isOnce);
  5879. }
  5880. }
  5881. function markStaticNode (node, key, isOnce) {
  5882. node.isStatic = true;
  5883. node.key = key;
  5884. node.isOnce = isOnce;
  5885. }
  5886. /* */
  5887. function bindObjectListeners (data, value) {
  5888. if (value) {
  5889. if (!isPlainObject(value)) {
  5890. true && warn(
  5891. 'v-on without argument expects an Object value',
  5892. this
  5893. );
  5894. } else {
  5895. var on = data.on = data.on ? extend({}, data.on) : {};
  5896. for (var key in value) {
  5897. var existing = on[key];
  5898. var ours = value[key];
  5899. on[key] = existing ? [].concat(existing, ours) : ours;
  5900. }
  5901. }
  5902. }
  5903. return data
  5904. }
  5905. /* */
  5906. function resolveScopedSlots (
  5907. fns, // see flow/vnode
  5908. res,
  5909. // the following are added in 2.6
  5910. hasDynamicKeys,
  5911. contentHashKey
  5912. ) {
  5913. res = res || { $stable: !hasDynamicKeys };
  5914. for (var i = 0; i < fns.length; i++) {
  5915. var slot = fns[i];
  5916. if (Array.isArray(slot)) {
  5917. resolveScopedSlots(slot, res, hasDynamicKeys);
  5918. } else if (slot) {
  5919. // marker for reverse proxying v-slot without scope on this.$slots
  5920. if (slot.proxy) {
  5921. slot.fn.proxy = true;
  5922. }
  5923. res[slot.key] = slot.fn;
  5924. }
  5925. }
  5926. if (contentHashKey) {
  5927. (res).$key = contentHashKey;
  5928. }
  5929. return res
  5930. }
  5931. /* */
  5932. function bindDynamicKeys (baseObj, values) {
  5933. for (var i = 0; i < values.length; i += 2) {
  5934. var key = values[i];
  5935. if (typeof key === 'string' && key) {
  5936. baseObj[values[i]] = values[i + 1];
  5937. } else if ( true && key !== '' && key !== null) {
  5938. // null is a special value for explicitly removing a binding
  5939. warn(
  5940. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5941. this
  5942. );
  5943. }
  5944. }
  5945. return baseObj
  5946. }
  5947. // helper to dynamically append modifier runtime markers to event names.
  5948. // ensure only append when value is already string, otherwise it will be cast
  5949. // to string and cause the type check to miss.
  5950. function prependModifier (value, symbol) {
  5951. return typeof value === 'string' ? symbol + value : value
  5952. }
  5953. /* */
  5954. function installRenderHelpers (target) {
  5955. target._o = markOnce;
  5956. target._n = toNumber;
  5957. target._s = toString;
  5958. target._l = renderList;
  5959. target._t = renderSlot;
  5960. target._q = looseEqual;
  5961. target._i = looseIndexOf;
  5962. target._m = renderStatic;
  5963. target._f = resolveFilter;
  5964. target._k = checkKeyCodes;
  5965. target._b = bindObjectProps;
  5966. target._v = createTextVNode;
  5967. target._e = createEmptyVNode;
  5968. target._u = resolveScopedSlots;
  5969. target._g = bindObjectListeners;
  5970. target._d = bindDynamicKeys;
  5971. target._p = prependModifier;
  5972. }
  5973. /* */
  5974. function FunctionalRenderContext (
  5975. data,
  5976. props,
  5977. children,
  5978. parent,
  5979. Ctor
  5980. ) {
  5981. var this$1 = this;
  5982. var options = Ctor.options;
  5983. // ensure the createElement function in functional components
  5984. // gets a unique context - this is necessary for correct named slot check
  5985. var contextVm;
  5986. if (hasOwn(parent, '_uid')) {
  5987. contextVm = Object.create(parent);
  5988. // $flow-disable-line
  5989. contextVm._original = parent;
  5990. } else {
  5991. // the context vm passed in is a functional context as well.
  5992. // in this case we want to make sure we are able to get a hold to the
  5993. // real context instance.
  5994. contextVm = parent;
  5995. // $flow-disable-line
  5996. parent = parent._original;
  5997. }
  5998. var isCompiled = isTrue(options._compiled);
  5999. var needNormalization = !isCompiled;
  6000. this.data = data;
  6001. this.props = props;
  6002. this.children = children;
  6003. this.parent = parent;
  6004. this.listeners = data.on || emptyObject;
  6005. this.injections = resolveInject(options.inject, parent);
  6006. this.slots = function () {
  6007. if (!this$1.$slots) {
  6008. normalizeScopedSlots(
  6009. data.scopedSlots,
  6010. this$1.$slots = resolveSlots(children, parent)
  6011. );
  6012. }
  6013. return this$1.$slots
  6014. };
  6015. Object.defineProperty(this, 'scopedSlots', ({
  6016. enumerable: true,
  6017. get: function get () {
  6018. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6019. }
  6020. }));
  6021. // support for compiled functional template
  6022. if (isCompiled) {
  6023. // exposing $options for renderStatic()
  6024. this.$options = options;
  6025. // pre-resolve slots for renderSlot()
  6026. this.$slots = this.slots();
  6027. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6028. }
  6029. if (options._scopeId) {
  6030. this._c = function (a, b, c, d) {
  6031. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6032. if (vnode && !Array.isArray(vnode)) {
  6033. vnode.fnScopeId = options._scopeId;
  6034. vnode.fnContext = parent;
  6035. }
  6036. return vnode
  6037. };
  6038. } else {
  6039. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6040. }
  6041. }
  6042. installRenderHelpers(FunctionalRenderContext.prototype);
  6043. function createFunctionalComponent (
  6044. Ctor,
  6045. propsData,
  6046. data,
  6047. contextVm,
  6048. children
  6049. ) {
  6050. var options = Ctor.options;
  6051. var props = {};
  6052. var propOptions = options.props;
  6053. if (isDef(propOptions)) {
  6054. for (var key in propOptions) {
  6055. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6056. }
  6057. } else {
  6058. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6059. if (isDef(data.props)) { mergeProps(props, data.props); }
  6060. }
  6061. var renderContext = new FunctionalRenderContext(
  6062. data,
  6063. props,
  6064. children,
  6065. contextVm,
  6066. Ctor
  6067. );
  6068. var vnode = options.render.call(null, renderContext._c, renderContext);
  6069. if (vnode instanceof VNode) {
  6070. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6071. } else if (Array.isArray(vnode)) {
  6072. var vnodes = normalizeChildren(vnode) || [];
  6073. var res = new Array(vnodes.length);
  6074. for (var i = 0; i < vnodes.length; i++) {
  6075. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6076. }
  6077. return res
  6078. }
  6079. }
  6080. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6081. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6082. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6083. // that should not be matched to match.
  6084. var clone = cloneVNode(vnode);
  6085. clone.fnContext = contextVm;
  6086. clone.fnOptions = options;
  6087. if (true) {
  6088. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6089. }
  6090. if (data.slot) {
  6091. (clone.data || (clone.data = {})).slot = data.slot;
  6092. }
  6093. return clone
  6094. }
  6095. function mergeProps (to, from) {
  6096. for (var key in from) {
  6097. to[camelize(key)] = from[key];
  6098. }
  6099. }
  6100. /* */
  6101. /* */
  6102. /* */
  6103. /* */
  6104. // inline hooks to be invoked on component VNodes during patch
  6105. var componentVNodeHooks = {
  6106. init: function init (vnode, hydrating) {
  6107. if (
  6108. vnode.componentInstance &&
  6109. !vnode.componentInstance._isDestroyed &&
  6110. vnode.data.keepAlive
  6111. ) {
  6112. // kept-alive components, treat as a patch
  6113. var mountedNode = vnode; // work around flow
  6114. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6115. } else {
  6116. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6117. vnode,
  6118. activeInstance
  6119. );
  6120. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6121. }
  6122. },
  6123. prepatch: function prepatch (oldVnode, vnode) {
  6124. var options = vnode.componentOptions;
  6125. var child = vnode.componentInstance = oldVnode.componentInstance;
  6126. updateChildComponent(
  6127. child,
  6128. options.propsData, // updated props
  6129. options.listeners, // updated listeners
  6130. vnode, // new parent vnode
  6131. options.children // new children
  6132. );
  6133. },
  6134. insert: function insert (vnode) {
  6135. var context = vnode.context;
  6136. var componentInstance = vnode.componentInstance;
  6137. if (!componentInstance._isMounted) {
  6138. callHook(componentInstance, 'onServiceCreated');
  6139. callHook(componentInstance, 'onServiceAttached');
  6140. componentInstance._isMounted = true;
  6141. callHook(componentInstance, 'mounted');
  6142. }
  6143. if (vnode.data.keepAlive) {
  6144. if (context._isMounted) {
  6145. // vue-router#1212
  6146. // During updates, a kept-alive component's child components may
  6147. // change, so directly walking the tree here may call activated hooks
  6148. // on incorrect children. Instead we push them into a queue which will
  6149. // be processed after the whole patch process ended.
  6150. queueActivatedComponent(componentInstance);
  6151. } else {
  6152. activateChildComponent(componentInstance, true /* direct */);
  6153. }
  6154. }
  6155. },
  6156. destroy: function destroy (vnode) {
  6157. var componentInstance = vnode.componentInstance;
  6158. if (!componentInstance._isDestroyed) {
  6159. if (!vnode.data.keepAlive) {
  6160. componentInstance.$destroy();
  6161. } else {
  6162. deactivateChildComponent(componentInstance, true /* direct */);
  6163. }
  6164. }
  6165. }
  6166. };
  6167. var hooksToMerge = Object.keys(componentVNodeHooks);
  6168. function createComponent (
  6169. Ctor,
  6170. data,
  6171. context,
  6172. children,
  6173. tag
  6174. ) {
  6175. if (isUndef(Ctor)) {
  6176. return
  6177. }
  6178. var baseCtor = context.$options._base;
  6179. // plain options object: turn it into a constructor
  6180. if (isObject(Ctor)) {
  6181. Ctor = baseCtor.extend(Ctor);
  6182. }
  6183. // if at this stage it's not a constructor or an async component factory,
  6184. // reject.
  6185. if (typeof Ctor !== 'function') {
  6186. if (true) {
  6187. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6188. }
  6189. return
  6190. }
  6191. // async component
  6192. var asyncFactory;
  6193. if (isUndef(Ctor.cid)) {
  6194. asyncFactory = Ctor;
  6195. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6196. if (Ctor === undefined) {
  6197. // return a placeholder node for async component, which is rendered
  6198. // as a comment node but preserves all the raw information for the node.
  6199. // the information will be used for async server-rendering and hydration.
  6200. return createAsyncPlaceholder(
  6201. asyncFactory,
  6202. data,
  6203. context,
  6204. children,
  6205. tag
  6206. )
  6207. }
  6208. }
  6209. data = data || {};
  6210. // resolve constructor options in case global mixins are applied after
  6211. // component constructor creation
  6212. resolveConstructorOptions(Ctor);
  6213. // transform component v-model data into props & events
  6214. if (isDef(data.model)) {
  6215. transformModel(Ctor.options, data);
  6216. }
  6217. // extract props
  6218. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6219. // functional component
  6220. if (isTrue(Ctor.options.functional)) {
  6221. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6222. }
  6223. // extract listeners, since these needs to be treated as
  6224. // child component listeners instead of DOM listeners
  6225. var listeners = data.on;
  6226. // replace with listeners with .native modifier
  6227. // so it gets processed during parent component patch.
  6228. data.on = data.nativeOn;
  6229. if (isTrue(Ctor.options.abstract)) {
  6230. // abstract components do not keep anything
  6231. // other than props & listeners & slot
  6232. // work around flow
  6233. var slot = data.slot;
  6234. data = {};
  6235. if (slot) {
  6236. data.slot = slot;
  6237. }
  6238. }
  6239. // install component management hooks onto the placeholder node
  6240. installComponentHooks(data);
  6241. // return a placeholder vnode
  6242. var name = Ctor.options.name || tag;
  6243. var vnode = new VNode(
  6244. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6245. data, undefined, undefined, undefined, context,
  6246. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6247. asyncFactory
  6248. );
  6249. return vnode
  6250. }
  6251. function createComponentInstanceForVnode (
  6252. vnode, // we know it's MountedComponentVNode but flow doesn't
  6253. parent // activeInstance in lifecycle state
  6254. ) {
  6255. var options = {
  6256. _isComponent: true,
  6257. _parentVnode: vnode,
  6258. parent: parent
  6259. };
  6260. // check inline-template render functions
  6261. var inlineTemplate = vnode.data.inlineTemplate;
  6262. if (isDef(inlineTemplate)) {
  6263. options.render = inlineTemplate.render;
  6264. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6265. }
  6266. return new vnode.componentOptions.Ctor(options)
  6267. }
  6268. function installComponentHooks (data) {
  6269. var hooks = data.hook || (data.hook = {});
  6270. for (var i = 0; i < hooksToMerge.length; i++) {
  6271. var key = hooksToMerge[i];
  6272. var existing = hooks[key];
  6273. var toMerge = componentVNodeHooks[key];
  6274. if (existing !== toMerge && !(existing && existing._merged)) {
  6275. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6276. }
  6277. }
  6278. }
  6279. function mergeHook$1 (f1, f2) {
  6280. var merged = function (a, b) {
  6281. // flow complains about extra args which is why we use any
  6282. f1(a, b);
  6283. f2(a, b);
  6284. };
  6285. merged._merged = true;
  6286. return merged
  6287. }
  6288. // transform component v-model info (value and callback) into
  6289. // prop and event handler respectively.
  6290. function transformModel (options, data) {
  6291. var prop = (options.model && options.model.prop) || 'value';
  6292. var event = (options.model && options.model.event) || 'input'
  6293. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6294. var on = data.on || (data.on = {});
  6295. var existing = on[event];
  6296. var callback = data.model.callback;
  6297. if (isDef(existing)) {
  6298. if (
  6299. Array.isArray(existing)
  6300. ? existing.indexOf(callback) === -1
  6301. : existing !== callback
  6302. ) {
  6303. on[event] = [callback].concat(existing);
  6304. }
  6305. } else {
  6306. on[event] = callback;
  6307. }
  6308. }
  6309. /* */
  6310. var SIMPLE_NORMALIZE = 1;
  6311. var ALWAYS_NORMALIZE = 2;
  6312. // wrapper function for providing a more flexible interface
  6313. // without getting yelled at by flow
  6314. function createElement (
  6315. context,
  6316. tag,
  6317. data,
  6318. children,
  6319. normalizationType,
  6320. alwaysNormalize
  6321. ) {
  6322. if (Array.isArray(data) || isPrimitive(data)) {
  6323. normalizationType = children;
  6324. children = data;
  6325. data = undefined;
  6326. }
  6327. if (isTrue(alwaysNormalize)) {
  6328. normalizationType = ALWAYS_NORMALIZE;
  6329. }
  6330. return _createElement(context, tag, data, children, normalizationType)
  6331. }
  6332. function _createElement (
  6333. context,
  6334. tag,
  6335. data,
  6336. children,
  6337. normalizationType
  6338. ) {
  6339. if (isDef(data) && isDef((data).__ob__)) {
  6340. true && warn(
  6341. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6342. 'Always create fresh vnode data objects in each render!',
  6343. context
  6344. );
  6345. return createEmptyVNode()
  6346. }
  6347. // object syntax in v-bind
  6348. if (isDef(data) && isDef(data.is)) {
  6349. tag = data.is;
  6350. }
  6351. if (!tag) {
  6352. // in case of component :is set to falsy value
  6353. return createEmptyVNode()
  6354. }
  6355. // warn against non-primitive key
  6356. if ( true &&
  6357. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6358. ) {
  6359. {
  6360. warn(
  6361. 'Avoid using non-primitive value as key, ' +
  6362. 'use string/number value instead.',
  6363. context
  6364. );
  6365. }
  6366. }
  6367. // support single function children as default scoped slot
  6368. if (Array.isArray(children) &&
  6369. typeof children[0] === 'function'
  6370. ) {
  6371. data = data || {};
  6372. data.scopedSlots = { default: children[0] };
  6373. children.length = 0;
  6374. }
  6375. if (normalizationType === ALWAYS_NORMALIZE) {
  6376. children = normalizeChildren(children);
  6377. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6378. children = simpleNormalizeChildren(children);
  6379. }
  6380. var vnode, ns;
  6381. if (typeof tag === 'string') {
  6382. var Ctor;
  6383. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6384. if (config.isReservedTag(tag)) {
  6385. // platform built-in elements
  6386. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6387. warn(
  6388. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6389. context
  6390. );
  6391. }
  6392. vnode = new VNode(
  6393. config.parsePlatformTagName(tag), data, children,
  6394. undefined, undefined, context
  6395. );
  6396. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6397. // component
  6398. vnode = createComponent(Ctor, data, context, children, tag);
  6399. } else {
  6400. // unknown or unlisted namespaced elements
  6401. // check at runtime because it may get assigned a namespace when its
  6402. // parent normalizes children
  6403. vnode = new VNode(
  6404. tag, data, children,
  6405. undefined, undefined, context
  6406. );
  6407. }
  6408. } else {
  6409. // direct component options / constructor
  6410. vnode = createComponent(tag, data, context, children);
  6411. }
  6412. if (Array.isArray(vnode)) {
  6413. return vnode
  6414. } else if (isDef(vnode)) {
  6415. if (isDef(ns)) { applyNS(vnode, ns); }
  6416. if (isDef(data)) { registerDeepBindings(data); }
  6417. return vnode
  6418. } else {
  6419. return createEmptyVNode()
  6420. }
  6421. }
  6422. function applyNS (vnode, ns, force) {
  6423. vnode.ns = ns;
  6424. if (vnode.tag === 'foreignObject') {
  6425. // use default namespace inside foreignObject
  6426. ns = undefined;
  6427. force = true;
  6428. }
  6429. if (isDef(vnode.children)) {
  6430. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6431. var child = vnode.children[i];
  6432. if (isDef(child.tag) && (
  6433. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6434. applyNS(child, ns, force);
  6435. }
  6436. }
  6437. }
  6438. }
  6439. // ref #5318
  6440. // necessary to ensure parent re-render when deep bindings like :style and
  6441. // :class are used on slot nodes
  6442. function registerDeepBindings (data) {
  6443. if (isObject(data.style)) {
  6444. traverse(data.style);
  6445. }
  6446. if (isObject(data.class)) {
  6447. traverse(data.class);
  6448. }
  6449. }
  6450. /* */
  6451. function initRender (vm) {
  6452. vm._vnode = null; // the root of the child tree
  6453. vm._staticTrees = null; // v-once cached trees
  6454. var options = vm.$options;
  6455. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6456. var renderContext = parentVnode && parentVnode.context;
  6457. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6458. vm.$scopedSlots = emptyObject;
  6459. // bind the createElement fn to this instance
  6460. // so that we get proper render context inside it.
  6461. // args order: tag, data, children, normalizationType, alwaysNormalize
  6462. // internal version is used by render functions compiled from templates
  6463. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6464. // normalization is always applied for the public version, used in
  6465. // user-written render functions.
  6466. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6467. // $attrs & $listeners are exposed for easier HOC creation.
  6468. // they need to be reactive so that HOCs using them are always updated
  6469. var parentData = parentVnode && parentVnode.data;
  6470. /* istanbul ignore else */
  6471. if (true) {
  6472. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6473. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6474. }, true);
  6475. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6476. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6477. }, true);
  6478. } else {}
  6479. }
  6480. var currentRenderingInstance = null;
  6481. function renderMixin (Vue) {
  6482. // install runtime convenience helpers
  6483. installRenderHelpers(Vue.prototype);
  6484. Vue.prototype.$nextTick = function (fn) {
  6485. return nextTick(fn, this)
  6486. };
  6487. Vue.prototype._render = function () {
  6488. var vm = this;
  6489. var ref = vm.$options;
  6490. var render = ref.render;
  6491. var _parentVnode = ref._parentVnode;
  6492. if (_parentVnode) {
  6493. vm.$scopedSlots = normalizeScopedSlots(
  6494. _parentVnode.data.scopedSlots,
  6495. vm.$slots,
  6496. vm.$scopedSlots
  6497. );
  6498. }
  6499. // set parent vnode. this allows render functions to have access
  6500. // to the data on the placeholder node.
  6501. vm.$vnode = _parentVnode;
  6502. // render self
  6503. var vnode;
  6504. try {
  6505. // There's no need to maintain a stack because all render fns are called
  6506. // separately from one another. Nested component's render fns are called
  6507. // when parent component is patched.
  6508. currentRenderingInstance = vm;
  6509. vnode = render.call(vm._renderProxy, vm.$createElement);
  6510. } catch (e) {
  6511. handleError(e, vm, "render");
  6512. // return error render result,
  6513. // or previous vnode to prevent render error causing blank component
  6514. /* istanbul ignore else */
  6515. if ( true && vm.$options.renderError) {
  6516. try {
  6517. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6518. } catch (e) {
  6519. handleError(e, vm, "renderError");
  6520. vnode = vm._vnode;
  6521. }
  6522. } else {
  6523. vnode = vm._vnode;
  6524. }
  6525. } finally {
  6526. currentRenderingInstance = null;
  6527. }
  6528. // if the returned array contains only a single node, allow it
  6529. if (Array.isArray(vnode) && vnode.length === 1) {
  6530. vnode = vnode[0];
  6531. }
  6532. // return empty vnode in case the render function errored out
  6533. if (!(vnode instanceof VNode)) {
  6534. if ( true && Array.isArray(vnode)) {
  6535. warn(
  6536. 'Multiple root nodes returned from render function. Render function ' +
  6537. 'should return a single root node.',
  6538. vm
  6539. );
  6540. }
  6541. vnode = createEmptyVNode();
  6542. }
  6543. // set parent
  6544. vnode.parent = _parentVnode;
  6545. return vnode
  6546. };
  6547. }
  6548. /* */
  6549. function ensureCtor (comp, base) {
  6550. if (
  6551. comp.__esModule ||
  6552. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6553. ) {
  6554. comp = comp.default;
  6555. }
  6556. return isObject(comp)
  6557. ? base.extend(comp)
  6558. : comp
  6559. }
  6560. function createAsyncPlaceholder (
  6561. factory,
  6562. data,
  6563. context,
  6564. children,
  6565. tag
  6566. ) {
  6567. var node = createEmptyVNode();
  6568. node.asyncFactory = factory;
  6569. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6570. return node
  6571. }
  6572. function resolveAsyncComponent (
  6573. factory,
  6574. baseCtor
  6575. ) {
  6576. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6577. return factory.errorComp
  6578. }
  6579. if (isDef(factory.resolved)) {
  6580. return factory.resolved
  6581. }
  6582. var owner = currentRenderingInstance;
  6583. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6584. // already pending
  6585. factory.owners.push(owner);
  6586. }
  6587. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6588. return factory.loadingComp
  6589. }
  6590. if (owner && !isDef(factory.owners)) {
  6591. var owners = factory.owners = [owner];
  6592. var sync = true;
  6593. var timerLoading = null;
  6594. var timerTimeout = null
  6595. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6596. var forceRender = function (renderCompleted) {
  6597. for (var i = 0, l = owners.length; i < l; i++) {
  6598. (owners[i]).$forceUpdate();
  6599. }
  6600. if (renderCompleted) {
  6601. owners.length = 0;
  6602. if (timerLoading !== null) {
  6603. clearTimeout(timerLoading);
  6604. timerLoading = null;
  6605. }
  6606. if (timerTimeout !== null) {
  6607. clearTimeout(timerTimeout);
  6608. timerTimeout = null;
  6609. }
  6610. }
  6611. };
  6612. var resolve = once(function (res) {
  6613. // cache resolved
  6614. factory.resolved = ensureCtor(res, baseCtor);
  6615. // invoke callbacks only if this is not a synchronous resolve
  6616. // (async resolves are shimmed as synchronous during SSR)
  6617. if (!sync) {
  6618. forceRender(true);
  6619. } else {
  6620. owners.length = 0;
  6621. }
  6622. });
  6623. var reject = once(function (reason) {
  6624. true && warn(
  6625. "Failed to resolve async component: " + (String(factory)) +
  6626. (reason ? ("\nReason: " + reason) : '')
  6627. );
  6628. if (isDef(factory.errorComp)) {
  6629. factory.error = true;
  6630. forceRender(true);
  6631. }
  6632. });
  6633. var res = factory(resolve, reject);
  6634. if (isObject(res)) {
  6635. if (isPromise(res)) {
  6636. // () => Promise
  6637. if (isUndef(factory.resolved)) {
  6638. res.then(resolve, reject);
  6639. }
  6640. } else if (isPromise(res.component)) {
  6641. res.component.then(resolve, reject);
  6642. if (isDef(res.error)) {
  6643. factory.errorComp = ensureCtor(res.error, baseCtor);
  6644. }
  6645. if (isDef(res.loading)) {
  6646. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6647. if (res.delay === 0) {
  6648. factory.loading = true;
  6649. } else {
  6650. timerLoading = setTimeout(function () {
  6651. timerLoading = null;
  6652. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6653. factory.loading = true;
  6654. forceRender(false);
  6655. }
  6656. }, res.delay || 200);
  6657. }
  6658. }
  6659. if (isDef(res.timeout)) {
  6660. timerTimeout = setTimeout(function () {
  6661. timerTimeout = null;
  6662. if (isUndef(factory.resolved)) {
  6663. reject(
  6664. true
  6665. ? ("timeout (" + (res.timeout) + "ms)")
  6666. : undefined
  6667. );
  6668. }
  6669. }, res.timeout);
  6670. }
  6671. }
  6672. }
  6673. sync = false;
  6674. // return in case resolved synchronously
  6675. return factory.loading
  6676. ? factory.loadingComp
  6677. : factory.resolved
  6678. }
  6679. }
  6680. /* */
  6681. function isAsyncPlaceholder (node) {
  6682. return node.isComment && node.asyncFactory
  6683. }
  6684. /* */
  6685. function getFirstComponentChild (children) {
  6686. if (Array.isArray(children)) {
  6687. for (var i = 0; i < children.length; i++) {
  6688. var c = children[i];
  6689. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6690. return c
  6691. }
  6692. }
  6693. }
  6694. }
  6695. /* */
  6696. /* */
  6697. function initEvents (vm) {
  6698. vm._events = Object.create(null);
  6699. vm._hasHookEvent = false;
  6700. // init parent attached events
  6701. var listeners = vm.$options._parentListeners;
  6702. if (listeners) {
  6703. updateComponentListeners(vm, listeners);
  6704. }
  6705. }
  6706. var target;
  6707. function add (event, fn) {
  6708. target.$on(event, fn);
  6709. }
  6710. function remove$1 (event, fn) {
  6711. target.$off(event, fn);
  6712. }
  6713. function createOnceHandler (event, fn) {
  6714. var _target = target;
  6715. return function onceHandler () {
  6716. var res = fn.apply(null, arguments);
  6717. if (res !== null) {
  6718. _target.$off(event, onceHandler);
  6719. }
  6720. }
  6721. }
  6722. function updateComponentListeners (
  6723. vm,
  6724. listeners,
  6725. oldListeners
  6726. ) {
  6727. target = vm;
  6728. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6729. target = undefined;
  6730. }
  6731. function eventsMixin (Vue) {
  6732. var hookRE = /^hook:/;
  6733. Vue.prototype.$on = function (event, fn) {
  6734. var vm = this;
  6735. if (Array.isArray(event)) {
  6736. for (var i = 0, l = event.length; i < l; i++) {
  6737. vm.$on(event[i], fn);
  6738. }
  6739. } else {
  6740. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6741. // optimize hook:event cost by using a boolean flag marked at registration
  6742. // instead of a hash lookup
  6743. if (hookRE.test(event)) {
  6744. vm._hasHookEvent = true;
  6745. }
  6746. }
  6747. return vm
  6748. };
  6749. Vue.prototype.$once = function (event, fn) {
  6750. var vm = this;
  6751. function on () {
  6752. vm.$off(event, on);
  6753. fn.apply(vm, arguments);
  6754. }
  6755. on.fn = fn;
  6756. vm.$on(event, on);
  6757. return vm
  6758. };
  6759. Vue.prototype.$off = function (event, fn) {
  6760. var vm = this;
  6761. // all
  6762. if (!arguments.length) {
  6763. vm._events = Object.create(null);
  6764. return vm
  6765. }
  6766. // array of events
  6767. if (Array.isArray(event)) {
  6768. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6769. vm.$off(event[i$1], fn);
  6770. }
  6771. return vm
  6772. }
  6773. // specific event
  6774. var cbs = vm._events[event];
  6775. if (!cbs) {
  6776. return vm
  6777. }
  6778. if (!fn) {
  6779. vm._events[event] = null;
  6780. return vm
  6781. }
  6782. // specific handler
  6783. var cb;
  6784. var i = cbs.length;
  6785. while (i--) {
  6786. cb = cbs[i];
  6787. if (cb === fn || cb.fn === fn) {
  6788. cbs.splice(i, 1);
  6789. break
  6790. }
  6791. }
  6792. return vm
  6793. };
  6794. Vue.prototype.$emit = function (event) {
  6795. var vm = this;
  6796. if (true) {
  6797. var lowerCaseEvent = event.toLowerCase();
  6798. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6799. tip(
  6800. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6801. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6802. "Note that HTML attributes are case-insensitive and you cannot use " +
  6803. "v-on to listen to camelCase events when using in-DOM templates. " +
  6804. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6805. );
  6806. }
  6807. }
  6808. var cbs = vm._events[event];
  6809. if (cbs) {
  6810. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6811. var args = toArray(arguments, 1);
  6812. var info = "event handler for \"" + event + "\"";
  6813. for (var i = 0, l = cbs.length; i < l; i++) {
  6814. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6815. }
  6816. }
  6817. return vm
  6818. };
  6819. }
  6820. /* */
  6821. var activeInstance = null;
  6822. var isUpdatingChildComponent = false;
  6823. function setActiveInstance(vm) {
  6824. var prevActiveInstance = activeInstance;
  6825. activeInstance = vm;
  6826. return function () {
  6827. activeInstance = prevActiveInstance;
  6828. }
  6829. }
  6830. function initLifecycle (vm) {
  6831. var options = vm.$options;
  6832. // locate first non-abstract parent
  6833. var parent = options.parent;
  6834. if (parent && !options.abstract) {
  6835. while (parent.$options.abstract && parent.$parent) {
  6836. parent = parent.$parent;
  6837. }
  6838. parent.$children.push(vm);
  6839. }
  6840. vm.$parent = parent;
  6841. vm.$root = parent ? parent.$root : vm;
  6842. vm.$children = [];
  6843. vm.$refs = {};
  6844. vm._watcher = null;
  6845. vm._inactive = null;
  6846. vm._directInactive = false;
  6847. vm._isMounted = false;
  6848. vm._isDestroyed = false;
  6849. vm._isBeingDestroyed = false;
  6850. }
  6851. function lifecycleMixin (Vue) {
  6852. Vue.prototype._update = function (vnode, hydrating) {
  6853. var vm = this;
  6854. var prevEl = vm.$el;
  6855. var prevVnode = vm._vnode;
  6856. var restoreActiveInstance = setActiveInstance(vm);
  6857. vm._vnode = vnode;
  6858. // Vue.prototype.__patch__ is injected in entry points
  6859. // based on the rendering backend used.
  6860. if (!prevVnode) {
  6861. // initial render
  6862. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6863. } else {
  6864. // updates
  6865. vm.$el = vm.__patch__(prevVnode, vnode);
  6866. }
  6867. restoreActiveInstance();
  6868. // update __vue__ reference
  6869. if (prevEl) {
  6870. prevEl.__vue__ = null;
  6871. }
  6872. if (vm.$el) {
  6873. vm.$el.__vue__ = vm;
  6874. }
  6875. // if parent is an HOC, update its $el as well
  6876. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6877. vm.$parent.$el = vm.$el;
  6878. }
  6879. // updated hook is called by the scheduler to ensure that children are
  6880. // updated in a parent's updated hook.
  6881. };
  6882. Vue.prototype.$forceUpdate = function () {
  6883. var vm = this;
  6884. if (vm._watcher) {
  6885. vm._watcher.update();
  6886. }
  6887. };
  6888. Vue.prototype.$destroy = function () {
  6889. var vm = this;
  6890. if (vm._isBeingDestroyed) {
  6891. return
  6892. }
  6893. callHook(vm, 'beforeDestroy');
  6894. vm._isBeingDestroyed = true;
  6895. // remove self from parent
  6896. var parent = vm.$parent;
  6897. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6898. remove(parent.$children, vm);
  6899. }
  6900. // teardown watchers
  6901. if (vm._watcher) {
  6902. vm._watcher.teardown();
  6903. }
  6904. var i = vm._watchers.length;
  6905. while (i--) {
  6906. vm._watchers[i].teardown();
  6907. }
  6908. // remove reference from data ob
  6909. // frozen object may not have observer.
  6910. if (vm._data.__ob__) {
  6911. vm._data.__ob__.vmCount--;
  6912. }
  6913. // call the last hook...
  6914. vm._isDestroyed = true;
  6915. // invoke destroy hooks on current rendered tree
  6916. vm.__patch__(vm._vnode, null);
  6917. // fire destroyed hook
  6918. callHook(vm, 'destroyed');
  6919. // turn off all instance listeners.
  6920. vm.$off();
  6921. // remove __vue__ reference
  6922. if (vm.$el) {
  6923. vm.$el.__vue__ = null;
  6924. }
  6925. // release circular reference (#6759)
  6926. if (vm.$vnode) {
  6927. vm.$vnode.parent = null;
  6928. }
  6929. };
  6930. }
  6931. function updateChildComponent (
  6932. vm,
  6933. propsData,
  6934. listeners,
  6935. parentVnode,
  6936. renderChildren
  6937. ) {
  6938. if (true) {
  6939. isUpdatingChildComponent = true;
  6940. }
  6941. // determine whether component has slot children
  6942. // we need to do this before overwriting $options._renderChildren.
  6943. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6944. // dynamic slot names). Static scoped slots compiled from template has the
  6945. // "$stable" marker.
  6946. var newScopedSlots = parentVnode.data.scopedSlots;
  6947. var oldScopedSlots = vm.$scopedSlots;
  6948. var hasDynamicScopedSlot = !!(
  6949. (newScopedSlots && !newScopedSlots.$stable) ||
  6950. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6951. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6952. );
  6953. // Any static slot children from the parent may have changed during parent's
  6954. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6955. // update is necessary to ensure correctness.
  6956. var needsForceUpdate = !!(
  6957. renderChildren || // has new static slots
  6958. vm.$options._renderChildren || // has old static slots
  6959. hasDynamicScopedSlot
  6960. );
  6961. vm.$options._parentVnode = parentVnode;
  6962. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6963. if (vm._vnode) { // update child tree's parent
  6964. vm._vnode.parent = parentVnode;
  6965. }
  6966. vm.$options._renderChildren = renderChildren;
  6967. // update $attrs and $listeners hash
  6968. // these are also reactive so they may trigger child update if the child
  6969. // used them during render
  6970. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6971. vm.$listeners = listeners || emptyObject;
  6972. // update props
  6973. if (propsData && vm.$options.props) {
  6974. toggleObserving(false);
  6975. var props = vm._props;
  6976. var propKeys = vm.$options._propKeys || [];
  6977. for (var i = 0; i < propKeys.length; i++) {
  6978. var key = propKeys[i];
  6979. var propOptions = vm.$options.props; // wtf flow?
  6980. props[key] = validateProp(key, propOptions, propsData, vm);
  6981. }
  6982. toggleObserving(true);
  6983. // keep a copy of raw propsData
  6984. vm.$options.propsData = propsData;
  6985. }
  6986. // fixed by xxxxxx update properties(mp runtime)
  6987. vm._$updateProperties && vm._$updateProperties(vm);
  6988. // update listeners
  6989. listeners = listeners || emptyObject;
  6990. var oldListeners = vm.$options._parentListeners;
  6991. vm.$options._parentListeners = listeners;
  6992. updateComponentListeners(vm, listeners, oldListeners);
  6993. // resolve slots + force update if has children
  6994. if (needsForceUpdate) {
  6995. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6996. vm.$forceUpdate();
  6997. }
  6998. if (true) {
  6999. isUpdatingChildComponent = false;
  7000. }
  7001. }
  7002. function isInInactiveTree (vm) {
  7003. while (vm && (vm = vm.$parent)) {
  7004. if (vm._inactive) { return true }
  7005. }
  7006. return false
  7007. }
  7008. function activateChildComponent (vm, direct) {
  7009. if (direct) {
  7010. vm._directInactive = false;
  7011. if (isInInactiveTree(vm)) {
  7012. return
  7013. }
  7014. } else if (vm._directInactive) {
  7015. return
  7016. }
  7017. if (vm._inactive || vm._inactive === null) {
  7018. vm._inactive = false;
  7019. for (var i = 0; i < vm.$children.length; i++) {
  7020. activateChildComponent(vm.$children[i]);
  7021. }
  7022. callHook(vm, 'activated');
  7023. }
  7024. }
  7025. function deactivateChildComponent (vm, direct) {
  7026. if (direct) {
  7027. vm._directInactive = true;
  7028. if (isInInactiveTree(vm)) {
  7029. return
  7030. }
  7031. }
  7032. if (!vm._inactive) {
  7033. vm._inactive = true;
  7034. for (var i = 0; i < vm.$children.length; i++) {
  7035. deactivateChildComponent(vm.$children[i]);
  7036. }
  7037. callHook(vm, 'deactivated');
  7038. }
  7039. }
  7040. function callHook (vm, hook) {
  7041. // #7573 disable dep collection when invoking lifecycle hooks
  7042. pushTarget();
  7043. var handlers = vm.$options[hook];
  7044. var info = hook + " hook";
  7045. if (handlers) {
  7046. for (var i = 0, j = handlers.length; i < j; i++) {
  7047. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7048. }
  7049. }
  7050. if (vm._hasHookEvent) {
  7051. vm.$emit('hook:' + hook);
  7052. }
  7053. popTarget();
  7054. }
  7055. /* */
  7056. var MAX_UPDATE_COUNT = 100;
  7057. var queue = [];
  7058. var activatedChildren = [];
  7059. var has = {};
  7060. var circular = {};
  7061. var waiting = false;
  7062. var flushing = false;
  7063. var index = 0;
  7064. /**
  7065. * Reset the scheduler's state.
  7066. */
  7067. function resetSchedulerState () {
  7068. index = queue.length = activatedChildren.length = 0;
  7069. has = {};
  7070. if (true) {
  7071. circular = {};
  7072. }
  7073. waiting = flushing = false;
  7074. }
  7075. // Async edge case #6566 requires saving the timestamp when event listeners are
  7076. // attached. However, calling performance.now() has a perf overhead especially
  7077. // if the page has thousands of event listeners. Instead, we take a timestamp
  7078. // every time the scheduler flushes and use that for all event listeners
  7079. // attached during that flush.
  7080. var currentFlushTimestamp = 0;
  7081. // Async edge case fix requires storing an event listener's attach timestamp.
  7082. var getNow = Date.now;
  7083. // Determine what event timestamp the browser is using. Annoyingly, the
  7084. // timestamp can either be hi-res (relative to page load) or low-res
  7085. // (relative to UNIX epoch), so in order to compare time we have to use the
  7086. // same timestamp type when saving the flush timestamp.
  7087. // All IE versions use low-res event timestamps, and have problematic clock
  7088. // implementations (#9632)
  7089. if (inBrowser && !isIE) {
  7090. var performance = window.performance;
  7091. if (
  7092. performance &&
  7093. typeof performance.now === 'function' &&
  7094. getNow() > document.createEvent('Event').timeStamp
  7095. ) {
  7096. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7097. // smaller than it, it means the event is using a hi-res timestamp,
  7098. // and we need to use the hi-res version for event listener timestamps as
  7099. // well.
  7100. getNow = function () { return performance.now(); };
  7101. }
  7102. }
  7103. /**
  7104. * Flush both queues and run the watchers.
  7105. */
  7106. function flushSchedulerQueue () {
  7107. currentFlushTimestamp = getNow();
  7108. flushing = true;
  7109. var watcher, id;
  7110. // Sort queue before flush.
  7111. // This ensures that:
  7112. // 1. Components are updated from parent to child. (because parent is always
  7113. // created before the child)
  7114. // 2. A component's user watchers are run before its render watcher (because
  7115. // user watchers are created before the render watcher)
  7116. // 3. If a component is destroyed during a parent component's watcher run,
  7117. // its watchers can be skipped.
  7118. queue.sort(function (a, b) { return a.id - b.id; });
  7119. // do not cache length because more watchers might be pushed
  7120. // as we run existing watchers
  7121. for (index = 0; index < queue.length; index++) {
  7122. watcher = queue[index];
  7123. if (watcher.before) {
  7124. watcher.before();
  7125. }
  7126. id = watcher.id;
  7127. has[id] = null;
  7128. watcher.run();
  7129. // in dev build, check and stop circular updates.
  7130. if ( true && has[id] != null) {
  7131. circular[id] = (circular[id] || 0) + 1;
  7132. if (circular[id] > MAX_UPDATE_COUNT) {
  7133. warn(
  7134. 'You may have an infinite update loop ' + (
  7135. watcher.user
  7136. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7137. : "in a component render function."
  7138. ),
  7139. watcher.vm
  7140. );
  7141. break
  7142. }
  7143. }
  7144. }
  7145. // keep copies of post queues before resetting state
  7146. var activatedQueue = activatedChildren.slice();
  7147. var updatedQueue = queue.slice();
  7148. resetSchedulerState();
  7149. // call component updated and activated hooks
  7150. callActivatedHooks(activatedQueue);
  7151. callUpdatedHooks(updatedQueue);
  7152. // devtool hook
  7153. /* istanbul ignore if */
  7154. if (devtools && config.devtools) {
  7155. devtools.emit('flush');
  7156. }
  7157. }
  7158. function callUpdatedHooks (queue) {
  7159. var i = queue.length;
  7160. while (i--) {
  7161. var watcher = queue[i];
  7162. var vm = watcher.vm;
  7163. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7164. callHook(vm, 'updated');
  7165. }
  7166. }
  7167. }
  7168. /**
  7169. * Queue a kept-alive component that was activated during patch.
  7170. * The queue will be processed after the entire tree has been patched.
  7171. */
  7172. function queueActivatedComponent (vm) {
  7173. // setting _inactive to false here so that a render function can
  7174. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7175. vm._inactive = false;
  7176. activatedChildren.push(vm);
  7177. }
  7178. function callActivatedHooks (queue) {
  7179. for (var i = 0; i < queue.length; i++) {
  7180. queue[i]._inactive = true;
  7181. activateChildComponent(queue[i], true /* true */);
  7182. }
  7183. }
  7184. /**
  7185. * Push a watcher into the watcher queue.
  7186. * Jobs with duplicate IDs will be skipped unless it's
  7187. * pushed when the queue is being flushed.
  7188. */
  7189. function queueWatcher (watcher) {
  7190. var id = watcher.id;
  7191. if (has[id] == null) {
  7192. has[id] = true;
  7193. if (!flushing) {
  7194. queue.push(watcher);
  7195. } else {
  7196. // if already flushing, splice the watcher based on its id
  7197. // if already past its id, it will be run next immediately.
  7198. var i = queue.length - 1;
  7199. while (i > index && queue[i].id > watcher.id) {
  7200. i--;
  7201. }
  7202. queue.splice(i + 1, 0, watcher);
  7203. }
  7204. // queue the flush
  7205. if (!waiting) {
  7206. waiting = true;
  7207. if ( true && !config.async) {
  7208. flushSchedulerQueue();
  7209. return
  7210. }
  7211. nextTick(flushSchedulerQueue);
  7212. }
  7213. }
  7214. }
  7215. /* */
  7216. var uid$2 = 0;
  7217. /**
  7218. * A watcher parses an expression, collects dependencies,
  7219. * and fires callback when the expression value changes.
  7220. * This is used for both the $watch() api and directives.
  7221. */
  7222. var Watcher = function Watcher (
  7223. vm,
  7224. expOrFn,
  7225. cb,
  7226. options,
  7227. isRenderWatcher
  7228. ) {
  7229. this.vm = vm;
  7230. if (isRenderWatcher) {
  7231. vm._watcher = this;
  7232. }
  7233. vm._watchers.push(this);
  7234. // options
  7235. if (options) {
  7236. this.deep = !!options.deep;
  7237. this.user = !!options.user;
  7238. this.lazy = !!options.lazy;
  7239. this.sync = !!options.sync;
  7240. this.before = options.before;
  7241. } else {
  7242. this.deep = this.user = this.lazy = this.sync = false;
  7243. }
  7244. this.cb = cb;
  7245. this.id = ++uid$2; // uid for batching
  7246. this.active = true;
  7247. this.dirty = this.lazy; // for lazy watchers
  7248. this.deps = [];
  7249. this.newDeps = [];
  7250. this.depIds = new _Set();
  7251. this.newDepIds = new _Set();
  7252. this.expression = true
  7253. ? expOrFn.toString()
  7254. : undefined;
  7255. // parse expression for getter
  7256. if (typeof expOrFn === 'function') {
  7257. this.getter = expOrFn;
  7258. } else {
  7259. this.getter = parsePath(expOrFn);
  7260. if (!this.getter) {
  7261. this.getter = noop;
  7262. true && warn(
  7263. "Failed watching path: \"" + expOrFn + "\" " +
  7264. 'Watcher only accepts simple dot-delimited paths. ' +
  7265. 'For full control, use a function instead.',
  7266. vm
  7267. );
  7268. }
  7269. }
  7270. this.value = this.lazy
  7271. ? undefined
  7272. : this.get();
  7273. };
  7274. /**
  7275. * Evaluate the getter, and re-collect dependencies.
  7276. */
  7277. Watcher.prototype.get = function get () {
  7278. pushTarget(this);
  7279. var value;
  7280. var vm = this.vm;
  7281. try {
  7282. value = this.getter.call(vm, vm);
  7283. } catch (e) {
  7284. if (this.user) {
  7285. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7286. } else {
  7287. throw e
  7288. }
  7289. } finally {
  7290. // "touch" every property so they are all tracked as
  7291. // dependencies for deep watching
  7292. if (this.deep) {
  7293. traverse(value);
  7294. }
  7295. popTarget();
  7296. this.cleanupDeps();
  7297. }
  7298. return value
  7299. };
  7300. /**
  7301. * Add a dependency to this directive.
  7302. */
  7303. Watcher.prototype.addDep = function addDep (dep) {
  7304. var id = dep.id;
  7305. if (!this.newDepIds.has(id)) {
  7306. this.newDepIds.add(id);
  7307. this.newDeps.push(dep);
  7308. if (!this.depIds.has(id)) {
  7309. dep.addSub(this);
  7310. }
  7311. }
  7312. };
  7313. /**
  7314. * Clean up for dependency collection.
  7315. */
  7316. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7317. var i = this.deps.length;
  7318. while (i--) {
  7319. var dep = this.deps[i];
  7320. if (!this.newDepIds.has(dep.id)) {
  7321. dep.removeSub(this);
  7322. }
  7323. }
  7324. var tmp = this.depIds;
  7325. this.depIds = this.newDepIds;
  7326. this.newDepIds = tmp;
  7327. this.newDepIds.clear();
  7328. tmp = this.deps;
  7329. this.deps = this.newDeps;
  7330. this.newDeps = tmp;
  7331. this.newDeps.length = 0;
  7332. };
  7333. /**
  7334. * Subscriber interface.
  7335. * Will be called when a dependency changes.
  7336. */
  7337. Watcher.prototype.update = function update () {
  7338. /* istanbul ignore else */
  7339. if (this.lazy) {
  7340. this.dirty = true;
  7341. } else if (this.sync) {
  7342. this.run();
  7343. } else {
  7344. queueWatcher(this);
  7345. }
  7346. };
  7347. /**
  7348. * Scheduler job interface.
  7349. * Will be called by the scheduler.
  7350. */
  7351. Watcher.prototype.run = function run () {
  7352. if (this.active) {
  7353. var value = this.get();
  7354. if (
  7355. value !== this.value ||
  7356. // Deep watchers and watchers on Object/Arrays should fire even
  7357. // when the value is the same, because the value may
  7358. // have mutated.
  7359. isObject(value) ||
  7360. this.deep
  7361. ) {
  7362. // set new value
  7363. var oldValue = this.value;
  7364. this.value = value;
  7365. if (this.user) {
  7366. try {
  7367. this.cb.call(this.vm, value, oldValue);
  7368. } catch (e) {
  7369. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7370. }
  7371. } else {
  7372. this.cb.call(this.vm, value, oldValue);
  7373. }
  7374. }
  7375. }
  7376. };
  7377. /**
  7378. * Evaluate the value of the watcher.
  7379. * This only gets called for lazy watchers.
  7380. */
  7381. Watcher.prototype.evaluate = function evaluate () {
  7382. this.value = this.get();
  7383. this.dirty = false;
  7384. };
  7385. /**
  7386. * Depend on all deps collected by this watcher.
  7387. */
  7388. Watcher.prototype.depend = function depend () {
  7389. var i = this.deps.length;
  7390. while (i--) {
  7391. this.deps[i].depend();
  7392. }
  7393. };
  7394. /**
  7395. * Remove self from all dependencies' subscriber list.
  7396. */
  7397. Watcher.prototype.teardown = function teardown () {
  7398. if (this.active) {
  7399. // remove self from vm's watcher list
  7400. // this is a somewhat expensive operation so we skip it
  7401. // if the vm is being destroyed.
  7402. if (!this.vm._isBeingDestroyed) {
  7403. remove(this.vm._watchers, this);
  7404. }
  7405. var i = this.deps.length;
  7406. while (i--) {
  7407. this.deps[i].removeSub(this);
  7408. }
  7409. this.active = false;
  7410. }
  7411. };
  7412. /* */
  7413. var sharedPropertyDefinition = {
  7414. enumerable: true,
  7415. configurable: true,
  7416. get: noop,
  7417. set: noop
  7418. };
  7419. function proxy (target, sourceKey, key) {
  7420. sharedPropertyDefinition.get = function proxyGetter () {
  7421. return this[sourceKey][key]
  7422. };
  7423. sharedPropertyDefinition.set = function proxySetter (val) {
  7424. this[sourceKey][key] = val;
  7425. };
  7426. Object.defineProperty(target, key, sharedPropertyDefinition);
  7427. }
  7428. function initState (vm) {
  7429. vm._watchers = [];
  7430. var opts = vm.$options;
  7431. if (opts.props) { initProps(vm, opts.props); }
  7432. if (opts.methods) { initMethods(vm, opts.methods); }
  7433. if (opts.data) {
  7434. initData(vm);
  7435. } else {
  7436. observe(vm._data = {}, true /* asRootData */);
  7437. }
  7438. if (opts.computed) { initComputed(vm, opts.computed); }
  7439. if (opts.watch && opts.watch !== nativeWatch) {
  7440. initWatch(vm, opts.watch);
  7441. }
  7442. }
  7443. function initProps (vm, propsOptions) {
  7444. var propsData = vm.$options.propsData || {};
  7445. var props = vm._props = {};
  7446. // cache prop keys so that future props updates can iterate using Array
  7447. // instead of dynamic object key enumeration.
  7448. var keys = vm.$options._propKeys = [];
  7449. var isRoot = !vm.$parent;
  7450. // root instance props should be converted
  7451. if (!isRoot) {
  7452. toggleObserving(false);
  7453. }
  7454. var loop = function ( key ) {
  7455. keys.push(key);
  7456. var value = validateProp(key, propsOptions, propsData, vm);
  7457. /* istanbul ignore else */
  7458. if (true) {
  7459. var hyphenatedKey = hyphenate(key);
  7460. if (isReservedAttribute(hyphenatedKey) ||
  7461. config.isReservedAttr(hyphenatedKey)) {
  7462. warn(
  7463. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7464. vm
  7465. );
  7466. }
  7467. defineReactive$$1(props, key, value, function () {
  7468. if (!isRoot && !isUpdatingChildComponent) {
  7469. {
  7470. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7471. return
  7472. }
  7473. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7474. if(
  7475. key === 'value' &&
  7476. Array.isArray(vm.$options.behaviors) &&
  7477. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7478. ){
  7479. return
  7480. }
  7481. if(vm._getFormData){
  7482. return
  7483. }
  7484. var $parent = vm.$parent;
  7485. while($parent){
  7486. if($parent.__next_tick_pending){
  7487. return
  7488. }
  7489. $parent = $parent.$parent;
  7490. }
  7491. }
  7492. warn(
  7493. "Avoid mutating a prop directly since the value will be " +
  7494. "overwritten whenever the parent component re-renders. " +
  7495. "Instead, use a data or computed property based on the prop's " +
  7496. "value. Prop being mutated: \"" + key + "\"",
  7497. vm
  7498. );
  7499. }
  7500. });
  7501. } else {}
  7502. // static props are already proxied on the component's prototype
  7503. // during Vue.extend(). We only need to proxy props defined at
  7504. // instantiation here.
  7505. if (!(key in vm)) {
  7506. proxy(vm, "_props", key);
  7507. }
  7508. };
  7509. for (var key in propsOptions) loop( key );
  7510. toggleObserving(true);
  7511. }
  7512. function initData (vm) {
  7513. var data = vm.$options.data;
  7514. data = vm._data = typeof data === 'function'
  7515. ? getData(data, vm)
  7516. : data || {};
  7517. if (!isPlainObject(data)) {
  7518. data = {};
  7519. true && warn(
  7520. 'data functions should return an object:\n' +
  7521. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7522. vm
  7523. );
  7524. }
  7525. // proxy data on instance
  7526. var keys = Object.keys(data);
  7527. var props = vm.$options.props;
  7528. var methods = vm.$options.methods;
  7529. var i = keys.length;
  7530. while (i--) {
  7531. var key = keys[i];
  7532. if (true) {
  7533. if (methods && hasOwn(methods, key)) {
  7534. warn(
  7535. ("Method \"" + key + "\" has already been defined as a data property."),
  7536. vm
  7537. );
  7538. }
  7539. }
  7540. if (props && hasOwn(props, key)) {
  7541. true && warn(
  7542. "The data property \"" + key + "\" is already declared as a prop. " +
  7543. "Use prop default value instead.",
  7544. vm
  7545. );
  7546. } else if (!isReserved(key)) {
  7547. proxy(vm, "_data", key);
  7548. }
  7549. }
  7550. // observe data
  7551. observe(data, true /* asRootData */);
  7552. }
  7553. function getData (data, vm) {
  7554. // #7573 disable dep collection when invoking data getters
  7555. pushTarget();
  7556. try {
  7557. return data.call(vm, vm)
  7558. } catch (e) {
  7559. handleError(e, vm, "data()");
  7560. return {}
  7561. } finally {
  7562. popTarget();
  7563. }
  7564. }
  7565. var computedWatcherOptions = { lazy: true };
  7566. function initComputed (vm, computed) {
  7567. // $flow-disable-line
  7568. var watchers = vm._computedWatchers = Object.create(null);
  7569. // computed properties are just getters during SSR
  7570. var isSSR = isServerRendering();
  7571. for (var key in computed) {
  7572. var userDef = computed[key];
  7573. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7574. if ( true && getter == null) {
  7575. warn(
  7576. ("Getter is missing for computed property \"" + key + "\"."),
  7577. vm
  7578. );
  7579. }
  7580. if (!isSSR) {
  7581. // create internal watcher for the computed property.
  7582. watchers[key] = new Watcher(
  7583. vm,
  7584. getter || noop,
  7585. noop,
  7586. computedWatcherOptions
  7587. );
  7588. }
  7589. // component-defined computed properties are already defined on the
  7590. // component prototype. We only need to define computed properties defined
  7591. // at instantiation here.
  7592. if (!(key in vm)) {
  7593. defineComputed(vm, key, userDef);
  7594. } else if (true) {
  7595. if (key in vm.$data) {
  7596. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7597. } else if (vm.$options.props && key in vm.$options.props) {
  7598. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7599. }
  7600. }
  7601. }
  7602. }
  7603. function defineComputed (
  7604. target,
  7605. key,
  7606. userDef
  7607. ) {
  7608. var shouldCache = !isServerRendering();
  7609. if (typeof userDef === 'function') {
  7610. sharedPropertyDefinition.get = shouldCache
  7611. ? createComputedGetter(key)
  7612. : createGetterInvoker(userDef);
  7613. sharedPropertyDefinition.set = noop;
  7614. } else {
  7615. sharedPropertyDefinition.get = userDef.get
  7616. ? shouldCache && userDef.cache !== false
  7617. ? createComputedGetter(key)
  7618. : createGetterInvoker(userDef.get)
  7619. : noop;
  7620. sharedPropertyDefinition.set = userDef.set || noop;
  7621. }
  7622. if ( true &&
  7623. sharedPropertyDefinition.set === noop) {
  7624. sharedPropertyDefinition.set = function () {
  7625. warn(
  7626. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7627. this
  7628. );
  7629. };
  7630. }
  7631. Object.defineProperty(target, key, sharedPropertyDefinition);
  7632. }
  7633. function createComputedGetter (key) {
  7634. return function computedGetter () {
  7635. var watcher = this._computedWatchers && this._computedWatchers[key];
  7636. if (watcher) {
  7637. if (watcher.dirty) {
  7638. watcher.evaluate();
  7639. }
  7640. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7641. watcher.depend();
  7642. }
  7643. return watcher.value
  7644. }
  7645. }
  7646. }
  7647. function createGetterInvoker(fn) {
  7648. return function computedGetter () {
  7649. return fn.call(this, this)
  7650. }
  7651. }
  7652. function initMethods (vm, methods) {
  7653. var props = vm.$options.props;
  7654. for (var key in methods) {
  7655. if (true) {
  7656. if (typeof methods[key] !== 'function') {
  7657. warn(
  7658. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7659. "Did you reference the function correctly?",
  7660. vm
  7661. );
  7662. }
  7663. if (props && hasOwn(props, key)) {
  7664. warn(
  7665. ("Method \"" + key + "\" has already been defined as a prop."),
  7666. vm
  7667. );
  7668. }
  7669. if ((key in vm) && isReserved(key)) {
  7670. warn(
  7671. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7672. "Avoid defining component methods that start with _ or $."
  7673. );
  7674. }
  7675. }
  7676. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7677. }
  7678. }
  7679. function initWatch (vm, watch) {
  7680. for (var key in watch) {
  7681. var handler = watch[key];
  7682. if (Array.isArray(handler)) {
  7683. for (var i = 0; i < handler.length; i++) {
  7684. createWatcher(vm, key, handler[i]);
  7685. }
  7686. } else {
  7687. createWatcher(vm, key, handler);
  7688. }
  7689. }
  7690. }
  7691. function createWatcher (
  7692. vm,
  7693. expOrFn,
  7694. handler,
  7695. options
  7696. ) {
  7697. if (isPlainObject(handler)) {
  7698. options = handler;
  7699. handler = handler.handler;
  7700. }
  7701. if (typeof handler === 'string') {
  7702. handler = vm[handler];
  7703. }
  7704. return vm.$watch(expOrFn, handler, options)
  7705. }
  7706. function stateMixin (Vue) {
  7707. // flow somehow has problems with directly declared definition object
  7708. // when using Object.defineProperty, so we have to procedurally build up
  7709. // the object here.
  7710. var dataDef = {};
  7711. dataDef.get = function () { return this._data };
  7712. var propsDef = {};
  7713. propsDef.get = function () { return this._props };
  7714. if (true) {
  7715. dataDef.set = function () {
  7716. warn(
  7717. 'Avoid replacing instance root $data. ' +
  7718. 'Use nested data properties instead.',
  7719. this
  7720. );
  7721. };
  7722. propsDef.set = function () {
  7723. warn("$props is readonly.", this);
  7724. };
  7725. }
  7726. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7727. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7728. Vue.prototype.$set = set;
  7729. Vue.prototype.$delete = del;
  7730. Vue.prototype.$watch = function (
  7731. expOrFn,
  7732. cb,
  7733. options
  7734. ) {
  7735. var vm = this;
  7736. if (isPlainObject(cb)) {
  7737. return createWatcher(vm, expOrFn, cb, options)
  7738. }
  7739. options = options || {};
  7740. options.user = true;
  7741. var watcher = new Watcher(vm, expOrFn, cb, options);
  7742. if (options.immediate) {
  7743. try {
  7744. cb.call(vm, watcher.value);
  7745. } catch (error) {
  7746. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7747. }
  7748. }
  7749. return function unwatchFn () {
  7750. watcher.teardown();
  7751. }
  7752. };
  7753. }
  7754. /* */
  7755. var uid$3 = 0;
  7756. function initMixin (Vue) {
  7757. Vue.prototype._init = function (options) {
  7758. var vm = this;
  7759. // a uid
  7760. vm._uid = uid$3++;
  7761. var startTag, endTag;
  7762. /* istanbul ignore if */
  7763. if ( true && config.performance && mark) {
  7764. startTag = "vue-perf-start:" + (vm._uid);
  7765. endTag = "vue-perf-end:" + (vm._uid);
  7766. mark(startTag);
  7767. }
  7768. // a flag to avoid this being observed
  7769. vm._isVue = true;
  7770. // merge options
  7771. if (options && options._isComponent) {
  7772. // optimize internal component instantiation
  7773. // since dynamic options merging is pretty slow, and none of the
  7774. // internal component options needs special treatment.
  7775. initInternalComponent(vm, options);
  7776. } else {
  7777. vm.$options = mergeOptions(
  7778. resolveConstructorOptions(vm.constructor),
  7779. options || {},
  7780. vm
  7781. );
  7782. }
  7783. /* istanbul ignore else */
  7784. if (true) {
  7785. initProxy(vm);
  7786. } else {}
  7787. // expose real self
  7788. vm._self = vm;
  7789. initLifecycle(vm);
  7790. initEvents(vm);
  7791. initRender(vm);
  7792. callHook(vm, 'beforeCreate');
  7793. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7794. initState(vm);
  7795. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7796. !vm._$fallback && callHook(vm, 'created');
  7797. /* istanbul ignore if */
  7798. if ( true && config.performance && mark) {
  7799. vm._name = formatComponentName(vm, false);
  7800. mark(endTag);
  7801. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7802. }
  7803. if (vm.$options.el) {
  7804. vm.$mount(vm.$options.el);
  7805. }
  7806. };
  7807. }
  7808. function initInternalComponent (vm, options) {
  7809. var opts = vm.$options = Object.create(vm.constructor.options);
  7810. // doing this because it's faster than dynamic enumeration.
  7811. var parentVnode = options._parentVnode;
  7812. opts.parent = options.parent;
  7813. opts._parentVnode = parentVnode;
  7814. var vnodeComponentOptions = parentVnode.componentOptions;
  7815. opts.propsData = vnodeComponentOptions.propsData;
  7816. opts._parentListeners = vnodeComponentOptions.listeners;
  7817. opts._renderChildren = vnodeComponentOptions.children;
  7818. opts._componentTag = vnodeComponentOptions.tag;
  7819. if (options.render) {
  7820. opts.render = options.render;
  7821. opts.staticRenderFns = options.staticRenderFns;
  7822. }
  7823. }
  7824. function resolveConstructorOptions (Ctor) {
  7825. var options = Ctor.options;
  7826. if (Ctor.super) {
  7827. var superOptions = resolveConstructorOptions(Ctor.super);
  7828. var cachedSuperOptions = Ctor.superOptions;
  7829. if (superOptions !== cachedSuperOptions) {
  7830. // super option changed,
  7831. // need to resolve new options.
  7832. Ctor.superOptions = superOptions;
  7833. // check if there are any late-modified/attached options (#4976)
  7834. var modifiedOptions = resolveModifiedOptions(Ctor);
  7835. // update base extend options
  7836. if (modifiedOptions) {
  7837. extend(Ctor.extendOptions, modifiedOptions);
  7838. }
  7839. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7840. if (options.name) {
  7841. options.components[options.name] = Ctor;
  7842. }
  7843. }
  7844. }
  7845. return options
  7846. }
  7847. function resolveModifiedOptions (Ctor) {
  7848. var modified;
  7849. var latest = Ctor.options;
  7850. var sealed = Ctor.sealedOptions;
  7851. for (var key in latest) {
  7852. if (latest[key] !== sealed[key]) {
  7853. if (!modified) { modified = {}; }
  7854. modified[key] = latest[key];
  7855. }
  7856. }
  7857. return modified
  7858. }
  7859. function Vue (options) {
  7860. if ( true &&
  7861. !(this instanceof Vue)
  7862. ) {
  7863. warn('Vue is a constructor and should be called with the `new` keyword');
  7864. }
  7865. this._init(options);
  7866. }
  7867. initMixin(Vue);
  7868. stateMixin(Vue);
  7869. eventsMixin(Vue);
  7870. lifecycleMixin(Vue);
  7871. renderMixin(Vue);
  7872. /* */
  7873. function initUse (Vue) {
  7874. Vue.use = function (plugin) {
  7875. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7876. if (installedPlugins.indexOf(plugin) > -1) {
  7877. return this
  7878. }
  7879. // additional parameters
  7880. var args = toArray(arguments, 1);
  7881. args.unshift(this);
  7882. if (typeof plugin.install === 'function') {
  7883. plugin.install.apply(plugin, args);
  7884. } else if (typeof plugin === 'function') {
  7885. plugin.apply(null, args);
  7886. }
  7887. installedPlugins.push(plugin);
  7888. return this
  7889. };
  7890. }
  7891. /* */
  7892. function initMixin$1 (Vue) {
  7893. Vue.mixin = function (mixin) {
  7894. this.options = mergeOptions(this.options, mixin);
  7895. return this
  7896. };
  7897. }
  7898. /* */
  7899. function initExtend (Vue) {
  7900. /**
  7901. * Each instance constructor, including Vue, has a unique
  7902. * cid. This enables us to create wrapped "child
  7903. * constructors" for prototypal inheritance and cache them.
  7904. */
  7905. Vue.cid = 0;
  7906. var cid = 1;
  7907. /**
  7908. * Class inheritance
  7909. */
  7910. Vue.extend = function (extendOptions) {
  7911. extendOptions = extendOptions || {};
  7912. var Super = this;
  7913. var SuperId = Super.cid;
  7914. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7915. if (cachedCtors[SuperId]) {
  7916. return cachedCtors[SuperId]
  7917. }
  7918. var name = extendOptions.name || Super.options.name;
  7919. if ( true && name) {
  7920. validateComponentName(name);
  7921. }
  7922. var Sub = function VueComponent (options) {
  7923. this._init(options);
  7924. };
  7925. Sub.prototype = Object.create(Super.prototype);
  7926. Sub.prototype.constructor = Sub;
  7927. Sub.cid = cid++;
  7928. Sub.options = mergeOptions(
  7929. Super.options,
  7930. extendOptions
  7931. );
  7932. Sub['super'] = Super;
  7933. // For props and computed properties, we define the proxy getters on
  7934. // the Vue instances at extension time, on the extended prototype. This
  7935. // avoids Object.defineProperty calls for each instance created.
  7936. if (Sub.options.props) {
  7937. initProps$1(Sub);
  7938. }
  7939. if (Sub.options.computed) {
  7940. initComputed$1(Sub);
  7941. }
  7942. // allow further extension/mixin/plugin usage
  7943. Sub.extend = Super.extend;
  7944. Sub.mixin = Super.mixin;
  7945. Sub.use = Super.use;
  7946. // create asset registers, so extended classes
  7947. // can have their private assets too.
  7948. ASSET_TYPES.forEach(function (type) {
  7949. Sub[type] = Super[type];
  7950. });
  7951. // enable recursive self-lookup
  7952. if (name) {
  7953. Sub.options.components[name] = Sub;
  7954. }
  7955. // keep a reference to the super options at extension time.
  7956. // later at instantiation we can check if Super's options have
  7957. // been updated.
  7958. Sub.superOptions = Super.options;
  7959. Sub.extendOptions = extendOptions;
  7960. Sub.sealedOptions = extend({}, Sub.options);
  7961. // cache constructor
  7962. cachedCtors[SuperId] = Sub;
  7963. return Sub
  7964. };
  7965. }
  7966. function initProps$1 (Comp) {
  7967. var props = Comp.options.props;
  7968. for (var key in props) {
  7969. proxy(Comp.prototype, "_props", key);
  7970. }
  7971. }
  7972. function initComputed$1 (Comp) {
  7973. var computed = Comp.options.computed;
  7974. for (var key in computed) {
  7975. defineComputed(Comp.prototype, key, computed[key]);
  7976. }
  7977. }
  7978. /* */
  7979. function initAssetRegisters (Vue) {
  7980. /**
  7981. * Create asset registration methods.
  7982. */
  7983. ASSET_TYPES.forEach(function (type) {
  7984. Vue[type] = function (
  7985. id,
  7986. definition
  7987. ) {
  7988. if (!definition) {
  7989. return this.options[type + 's'][id]
  7990. } else {
  7991. /* istanbul ignore if */
  7992. if ( true && type === 'component') {
  7993. validateComponentName(id);
  7994. }
  7995. if (type === 'component' && isPlainObject(definition)) {
  7996. definition.name = definition.name || id;
  7997. definition = this.options._base.extend(definition);
  7998. }
  7999. if (type === 'directive' && typeof definition === 'function') {
  8000. definition = { bind: definition, update: definition };
  8001. }
  8002. this.options[type + 's'][id] = definition;
  8003. return definition
  8004. }
  8005. };
  8006. });
  8007. }
  8008. /* */
  8009. function getComponentName (opts) {
  8010. return opts && (opts.Ctor.options.name || opts.tag)
  8011. }
  8012. function matches (pattern, name) {
  8013. if (Array.isArray(pattern)) {
  8014. return pattern.indexOf(name) > -1
  8015. } else if (typeof pattern === 'string') {
  8016. return pattern.split(',').indexOf(name) > -1
  8017. } else if (isRegExp(pattern)) {
  8018. return pattern.test(name)
  8019. }
  8020. /* istanbul ignore next */
  8021. return false
  8022. }
  8023. function pruneCache (keepAliveInstance, filter) {
  8024. var cache = keepAliveInstance.cache;
  8025. var keys = keepAliveInstance.keys;
  8026. var _vnode = keepAliveInstance._vnode;
  8027. for (var key in cache) {
  8028. var cachedNode = cache[key];
  8029. if (cachedNode) {
  8030. var name = getComponentName(cachedNode.componentOptions);
  8031. if (name && !filter(name)) {
  8032. pruneCacheEntry(cache, key, keys, _vnode);
  8033. }
  8034. }
  8035. }
  8036. }
  8037. function pruneCacheEntry (
  8038. cache,
  8039. key,
  8040. keys,
  8041. current
  8042. ) {
  8043. var cached$$1 = cache[key];
  8044. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8045. cached$$1.componentInstance.$destroy();
  8046. }
  8047. cache[key] = null;
  8048. remove(keys, key);
  8049. }
  8050. var patternTypes = [String, RegExp, Array];
  8051. var KeepAlive = {
  8052. name: 'keep-alive',
  8053. abstract: true,
  8054. props: {
  8055. include: patternTypes,
  8056. exclude: patternTypes,
  8057. max: [String, Number]
  8058. },
  8059. created: function created () {
  8060. this.cache = Object.create(null);
  8061. this.keys = [];
  8062. },
  8063. destroyed: function destroyed () {
  8064. for (var key in this.cache) {
  8065. pruneCacheEntry(this.cache, key, this.keys);
  8066. }
  8067. },
  8068. mounted: function mounted () {
  8069. var this$1 = this;
  8070. this.$watch('include', function (val) {
  8071. pruneCache(this$1, function (name) { return matches(val, name); });
  8072. });
  8073. this.$watch('exclude', function (val) {
  8074. pruneCache(this$1, function (name) { return !matches(val, name); });
  8075. });
  8076. },
  8077. render: function render () {
  8078. var slot = this.$slots.default;
  8079. var vnode = getFirstComponentChild(slot);
  8080. var componentOptions = vnode && vnode.componentOptions;
  8081. if (componentOptions) {
  8082. // check pattern
  8083. var name = getComponentName(componentOptions);
  8084. var ref = this;
  8085. var include = ref.include;
  8086. var exclude = ref.exclude;
  8087. if (
  8088. // not included
  8089. (include && (!name || !matches(include, name))) ||
  8090. // excluded
  8091. (exclude && name && matches(exclude, name))
  8092. ) {
  8093. return vnode
  8094. }
  8095. var ref$1 = this;
  8096. var cache = ref$1.cache;
  8097. var keys = ref$1.keys;
  8098. var key = vnode.key == null
  8099. // same constructor may get registered as different local components
  8100. // so cid alone is not enough (#3269)
  8101. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8102. : vnode.key;
  8103. if (cache[key]) {
  8104. vnode.componentInstance = cache[key].componentInstance;
  8105. // make current key freshest
  8106. remove(keys, key);
  8107. keys.push(key);
  8108. } else {
  8109. cache[key] = vnode;
  8110. keys.push(key);
  8111. // prune oldest entry
  8112. if (this.max && keys.length > parseInt(this.max)) {
  8113. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8114. }
  8115. }
  8116. vnode.data.keepAlive = true;
  8117. }
  8118. return vnode || (slot && slot[0])
  8119. }
  8120. };
  8121. var builtInComponents = {
  8122. KeepAlive: KeepAlive
  8123. };
  8124. /* */
  8125. function initGlobalAPI (Vue) {
  8126. // config
  8127. var configDef = {};
  8128. configDef.get = function () { return config; };
  8129. if (true) {
  8130. configDef.set = function () {
  8131. warn(
  8132. 'Do not replace the Vue.config object, set individual fields instead.'
  8133. );
  8134. };
  8135. }
  8136. Object.defineProperty(Vue, 'config', configDef);
  8137. // exposed util methods.
  8138. // NOTE: these are not considered part of the public API - avoid relying on
  8139. // them unless you are aware of the risk.
  8140. Vue.util = {
  8141. warn: warn,
  8142. extend: extend,
  8143. mergeOptions: mergeOptions,
  8144. defineReactive: defineReactive$$1
  8145. };
  8146. Vue.set = set;
  8147. Vue.delete = del;
  8148. Vue.nextTick = nextTick;
  8149. // 2.6 explicit observable API
  8150. Vue.observable = function (obj) {
  8151. observe(obj);
  8152. return obj
  8153. };
  8154. Vue.options = Object.create(null);
  8155. ASSET_TYPES.forEach(function (type) {
  8156. Vue.options[type + 's'] = Object.create(null);
  8157. });
  8158. // this is used to identify the "base" constructor to extend all plain-object
  8159. // components with in Weex's multi-instance scenarios.
  8160. Vue.options._base = Vue;
  8161. extend(Vue.options.components, builtInComponents);
  8162. initUse(Vue);
  8163. initMixin$1(Vue);
  8164. initExtend(Vue);
  8165. initAssetRegisters(Vue);
  8166. }
  8167. initGlobalAPI(Vue);
  8168. Object.defineProperty(Vue.prototype, '$isServer', {
  8169. get: isServerRendering
  8170. });
  8171. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8172. get: function get () {
  8173. /* istanbul ignore next */
  8174. return this.$vnode && this.$vnode.ssrContext
  8175. }
  8176. });
  8177. // expose FunctionalRenderContext for ssr runtime helper installation
  8178. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8179. value: FunctionalRenderContext
  8180. });
  8181. Vue.version = '2.6.11';
  8182. /**
  8183. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8184. */
  8185. var ARRAYTYPE = '[object Array]';
  8186. var OBJECTTYPE = '[object Object]';
  8187. var NULLTYPE = '[object Null]';
  8188. var UNDEFINEDTYPE = '[object Undefined]';
  8189. // const FUNCTIONTYPE = '[object Function]'
  8190. function diff(current, pre) {
  8191. var result = {};
  8192. syncKeys(current, pre);
  8193. _diff(current, pre, '', result);
  8194. return result
  8195. }
  8196. function syncKeys(current, pre) {
  8197. if (current === pre) { return }
  8198. var rootCurrentType = type(current);
  8199. var rootPreType = type(pre);
  8200. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8201. if(Object.keys(current).length >= Object.keys(pre).length){
  8202. for (var key in pre) {
  8203. var currentValue = current[key];
  8204. if (currentValue === undefined) {
  8205. current[key] = null;
  8206. } else {
  8207. syncKeys(currentValue, pre[key]);
  8208. }
  8209. }
  8210. }
  8211. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8212. if (current.length >= pre.length) {
  8213. pre.forEach(function (item, index) {
  8214. syncKeys(current[index], item);
  8215. });
  8216. }
  8217. }
  8218. }
  8219. function nullOrUndefined(currentType, preType) {
  8220. if(
  8221. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8222. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8223. ) {
  8224. return false
  8225. }
  8226. return true
  8227. }
  8228. function _diff(current, pre, path, result) {
  8229. if (current === pre) { return }
  8230. var rootCurrentType = type(current);
  8231. var rootPreType = type(pre);
  8232. if (rootCurrentType == OBJECTTYPE) {
  8233. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8234. setResult(result, path, current);
  8235. } else {
  8236. var loop = function ( key ) {
  8237. var currentValue = current[key];
  8238. var preValue = pre[key];
  8239. var currentType = type(currentValue);
  8240. var preType = type(preValue);
  8241. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8242. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8243. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8244. }
  8245. } else if (currentType == ARRAYTYPE) {
  8246. if (preType != ARRAYTYPE) {
  8247. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8248. } else {
  8249. if (currentValue.length < preValue.length) {
  8250. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8251. } else {
  8252. currentValue.forEach(function (item, index) {
  8253. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8254. });
  8255. }
  8256. }
  8257. } else if (currentType == OBJECTTYPE) {
  8258. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8259. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8260. } else {
  8261. for (var subKey in currentValue) {
  8262. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8263. }
  8264. }
  8265. }
  8266. };
  8267. for (var key in current) loop( key );
  8268. }
  8269. } else if (rootCurrentType == ARRAYTYPE) {
  8270. if (rootPreType != ARRAYTYPE) {
  8271. setResult(result, path, current);
  8272. } else {
  8273. if (current.length < pre.length) {
  8274. setResult(result, path, current);
  8275. } else {
  8276. current.forEach(function (item, index) {
  8277. _diff(item, pre[index], path + '[' + index + ']', result);
  8278. });
  8279. }
  8280. }
  8281. } else {
  8282. setResult(result, path, current);
  8283. }
  8284. }
  8285. function setResult(result, k, v) {
  8286. // if (type(v) != FUNCTIONTYPE) {
  8287. result[k] = v;
  8288. // }
  8289. }
  8290. function type(obj) {
  8291. return Object.prototype.toString.call(obj)
  8292. }
  8293. /* */
  8294. function flushCallbacks$1(vm) {
  8295. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8296. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8297. var mpInstance = vm.$scope;
  8298. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8299. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8300. }
  8301. var copies = vm.__next_tick_callbacks.slice(0);
  8302. vm.__next_tick_callbacks.length = 0;
  8303. for (var i = 0; i < copies.length; i++) {
  8304. copies[i]();
  8305. }
  8306. }
  8307. }
  8308. function hasRenderWatcher(vm) {
  8309. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8310. }
  8311. function nextTick$1(vm, cb) {
  8312. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8313. //2.nextTick 之前存在 render watcher
  8314. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8315. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8316. var mpInstance = vm.$scope;
  8317. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8318. ']:nextVueTick');
  8319. }
  8320. return nextTick(cb, vm)
  8321. }else{
  8322. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8323. var mpInstance$1 = vm.$scope;
  8324. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8325. ']:nextMPTick');
  8326. }
  8327. }
  8328. var _resolve;
  8329. if (!vm.__next_tick_callbacks) {
  8330. vm.__next_tick_callbacks = [];
  8331. }
  8332. vm.__next_tick_callbacks.push(function () {
  8333. if (cb) {
  8334. try {
  8335. cb.call(vm);
  8336. } catch (e) {
  8337. handleError(e, vm, 'nextTick');
  8338. }
  8339. } else if (_resolve) {
  8340. _resolve(vm);
  8341. }
  8342. });
  8343. // $flow-disable-line
  8344. if (!cb && typeof Promise !== 'undefined') {
  8345. return new Promise(function (resolve) {
  8346. _resolve = resolve;
  8347. })
  8348. }
  8349. }
  8350. /* */
  8351. function clearInstance(key, value) {
  8352. // 简易去除 Vue 和小程序组件实例
  8353. if (value) {
  8354. if (value._isVue || value.__v_isMPComponent) {
  8355. return {}
  8356. }
  8357. }
  8358. return value
  8359. }
  8360. function cloneWithData(vm) {
  8361. // 确保当前 vm 所有数据被同步
  8362. var ret = Object.create(null);
  8363. var dataKeys = [].concat(
  8364. Object.keys(vm._data || {}),
  8365. Object.keys(vm._computedWatchers || {}));
  8366. dataKeys.reduce(function(ret, key) {
  8367. ret[key] = vm[key];
  8368. return ret
  8369. }, ret);
  8370. // vue-composition-api
  8371. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8372. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8373. if (rawBindings) {
  8374. Object.keys(rawBindings).forEach(function (key) {
  8375. ret[key] = vm[key];
  8376. });
  8377. }
  8378. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8379. Object.assign(ret, vm.$mp.data || {});
  8380. if (
  8381. Array.isArray(vm.$options.behaviors) &&
  8382. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8383. ) { //form-field
  8384. ret['name'] = vm.name;
  8385. ret['value'] = vm.value;
  8386. }
  8387. return JSON.parse(JSON.stringify(ret, clearInstance))
  8388. }
  8389. var patch = function(oldVnode, vnode) {
  8390. var this$1 = this;
  8391. if (vnode === null) { //destroy
  8392. return
  8393. }
  8394. if (this.mpType === 'page' || this.mpType === 'component') {
  8395. var mpInstance = this.$scope;
  8396. var data = Object.create(null);
  8397. try {
  8398. data = cloneWithData(this);
  8399. } catch (err) {
  8400. console.error(err);
  8401. }
  8402. data.__webviewId__ = mpInstance.data.__webviewId__;
  8403. var mpData = Object.create(null);
  8404. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8405. mpData[key] = mpInstance.data[key];
  8406. });
  8407. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8408. if (Object.keys(diffData).length) {
  8409. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8410. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8411. ']差量更新',
  8412. JSON.stringify(diffData));
  8413. }
  8414. this.__next_tick_pending = true;
  8415. mpInstance.setData(diffData, function () {
  8416. this$1.__next_tick_pending = false;
  8417. flushCallbacks$1(this$1);
  8418. });
  8419. } else {
  8420. flushCallbacks$1(this);
  8421. }
  8422. }
  8423. };
  8424. /* */
  8425. function createEmptyRender() {
  8426. }
  8427. function mountComponent$1(
  8428. vm,
  8429. el,
  8430. hydrating
  8431. ) {
  8432. if (!vm.mpType) {//main.js 中的 new Vue
  8433. return vm
  8434. }
  8435. if (vm.mpType === 'app') {
  8436. vm.$options.render = createEmptyRender;
  8437. }
  8438. if (!vm.$options.render) {
  8439. vm.$options.render = createEmptyRender;
  8440. if (true) {
  8441. /* istanbul ignore if */
  8442. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8443. vm.$options.el || el) {
  8444. warn(
  8445. 'You are using the runtime-only build of Vue where the template ' +
  8446. 'compiler is not available. Either pre-compile the templates into ' +
  8447. 'render functions, or use the compiler-included build.',
  8448. vm
  8449. );
  8450. } else {
  8451. warn(
  8452. 'Failed to mount component: template or render function not defined.',
  8453. vm
  8454. );
  8455. }
  8456. }
  8457. }
  8458. !vm._$fallback && callHook(vm, 'beforeMount');
  8459. var updateComponent = function () {
  8460. vm._update(vm._render(), hydrating);
  8461. };
  8462. // we set this to vm._watcher inside the watcher's constructor
  8463. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8464. // component's mounted hook), which relies on vm._watcher being already defined
  8465. new Watcher(vm, updateComponent, noop, {
  8466. before: function before() {
  8467. if (vm._isMounted && !vm._isDestroyed) {
  8468. callHook(vm, 'beforeUpdate');
  8469. }
  8470. }
  8471. }, true /* isRenderWatcher */);
  8472. hydrating = false;
  8473. return vm
  8474. }
  8475. /* */
  8476. function renderClass (
  8477. staticClass,
  8478. dynamicClass
  8479. ) {
  8480. if (isDef(staticClass) || isDef(dynamicClass)) {
  8481. return concat(staticClass, stringifyClass(dynamicClass))
  8482. }
  8483. /* istanbul ignore next */
  8484. return ''
  8485. }
  8486. function concat (a, b) {
  8487. return a ? b ? (a + ' ' + b) : a : (b || '')
  8488. }
  8489. function stringifyClass (value) {
  8490. if (Array.isArray(value)) {
  8491. return stringifyArray(value)
  8492. }
  8493. if (isObject(value)) {
  8494. return stringifyObject(value)
  8495. }
  8496. if (typeof value === 'string') {
  8497. return value
  8498. }
  8499. /* istanbul ignore next */
  8500. return ''
  8501. }
  8502. function stringifyArray (value) {
  8503. var res = '';
  8504. var stringified;
  8505. for (var i = 0, l = value.length; i < l; i++) {
  8506. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8507. if (res) { res += ' '; }
  8508. res += stringified;
  8509. }
  8510. }
  8511. return res
  8512. }
  8513. function stringifyObject (value) {
  8514. var res = '';
  8515. for (var key in value) {
  8516. if (value[key]) {
  8517. if (res) { res += ' '; }
  8518. res += key;
  8519. }
  8520. }
  8521. return res
  8522. }
  8523. /* */
  8524. var parseStyleText = cached(function (cssText) {
  8525. var res = {};
  8526. var listDelimiter = /;(?![^(]*\))/g;
  8527. var propertyDelimiter = /:(.+)/;
  8528. cssText.split(listDelimiter).forEach(function (item) {
  8529. if (item) {
  8530. var tmp = item.split(propertyDelimiter);
  8531. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8532. }
  8533. });
  8534. return res
  8535. });
  8536. // normalize possible array / string values into Object
  8537. function normalizeStyleBinding (bindingStyle) {
  8538. if (Array.isArray(bindingStyle)) {
  8539. return toObject(bindingStyle)
  8540. }
  8541. if (typeof bindingStyle === 'string') {
  8542. return parseStyleText(bindingStyle)
  8543. }
  8544. return bindingStyle
  8545. }
  8546. /* */
  8547. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8548. function getTarget(obj, path) {
  8549. var parts = path.split('.');
  8550. var key = parts[0];
  8551. if (key.indexOf('__$n') === 0) { //number index
  8552. key = parseInt(key.replace('__$n', ''));
  8553. }
  8554. if (parts.length === 1) {
  8555. return obj[key]
  8556. }
  8557. return getTarget(obj[key], parts.slice(1).join('.'))
  8558. }
  8559. function internalMixin(Vue) {
  8560. Vue.config.errorHandler = function(err, vm, info) {
  8561. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8562. console.error(err);
  8563. /* eslint-disable no-undef */
  8564. var app = typeof getApp === 'function' && getApp();
  8565. if (app && app.onError) {
  8566. app.onError(err);
  8567. }
  8568. };
  8569. var oldEmit = Vue.prototype.$emit;
  8570. Vue.prototype.$emit = function(event) {
  8571. if (this.$scope && event) {
  8572. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8573. if (triggerEvent) {
  8574. try {
  8575. triggerEvent.call(this.$scope, event, {
  8576. __args__: toArray(arguments, 1)
  8577. });
  8578. } catch (error) {
  8579. }
  8580. }
  8581. }
  8582. return oldEmit.apply(this, arguments)
  8583. };
  8584. Vue.prototype.$nextTick = function(fn) {
  8585. return nextTick$1(this, fn)
  8586. };
  8587. MP_METHODS.forEach(function (method) {
  8588. Vue.prototype[method] = function(args) {
  8589. if (this.$scope && this.$scope[method]) {
  8590. return this.$scope[method](args)
  8591. }
  8592. // mp-alipay
  8593. if (typeof my === 'undefined') {
  8594. return
  8595. }
  8596. if (method === 'createSelectorQuery') {
  8597. /* eslint-disable no-undef */
  8598. return my.createSelectorQuery(args)
  8599. } else if (method === 'createIntersectionObserver') {
  8600. /* eslint-disable no-undef */
  8601. return my.createIntersectionObserver(args)
  8602. }
  8603. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8604. };
  8605. });
  8606. Vue.prototype.__init_provide = initProvide;
  8607. Vue.prototype.__init_injections = initInjections;
  8608. Vue.prototype.__call_hook = function(hook, args) {
  8609. var vm = this;
  8610. // #7573 disable dep collection when invoking lifecycle hooks
  8611. pushTarget();
  8612. var handlers = vm.$options[hook];
  8613. var info = hook + " hook";
  8614. var ret;
  8615. if (handlers) {
  8616. for (var i = 0, j = handlers.length; i < j; i++) {
  8617. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8618. }
  8619. }
  8620. if (vm._hasHookEvent) {
  8621. vm.$emit('hook:' + hook, args);
  8622. }
  8623. popTarget();
  8624. return ret
  8625. };
  8626. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8627. if (Array.isArray(modifiers)) {
  8628. if (modifiers.indexOf('trim') !== -1) {
  8629. value = value.trim();
  8630. }
  8631. if (modifiers.indexOf('number') !== -1) {
  8632. value = this._n(value);
  8633. }
  8634. }
  8635. if (!target) {
  8636. target = this;
  8637. }
  8638. // 解决动态属性添加
  8639. Vue.set(target, key, value);
  8640. };
  8641. Vue.prototype.__set_sync = function(target, key, value) {
  8642. if (!target) {
  8643. target = this;
  8644. }
  8645. // 解决动态属性添加
  8646. Vue.set(target, key, value);
  8647. };
  8648. Vue.prototype.__get_orig = function(item) {
  8649. if (isPlainObject(item)) {
  8650. return item['$orig'] || item
  8651. }
  8652. return item
  8653. };
  8654. Vue.prototype.__get_value = function(dataPath, target) {
  8655. return getTarget(target || this, dataPath)
  8656. };
  8657. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8658. return renderClass(staticClass, dynamicClass)
  8659. };
  8660. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8661. if (!dynamicStyle && !staticStyle) {
  8662. return ''
  8663. }
  8664. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8665. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8666. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8667. };
  8668. Vue.prototype.__map = function(val, iteratee) {
  8669. //TODO 暂不考虑 string
  8670. var ret, i, l, keys, key;
  8671. if (Array.isArray(val)) {
  8672. ret = new Array(val.length);
  8673. for (i = 0, l = val.length; i < l; i++) {
  8674. ret[i] = iteratee(val[i], i);
  8675. }
  8676. return ret
  8677. } else if (isObject(val)) {
  8678. keys = Object.keys(val);
  8679. ret = Object.create(null);
  8680. for (i = 0, l = keys.length; i < l; i++) {
  8681. key = keys[i];
  8682. ret[key] = iteratee(val[key], key, i);
  8683. }
  8684. return ret
  8685. } else if (typeof val === 'number') {
  8686. ret = new Array(val);
  8687. for (i = 0, l = val; i < l; i++) {
  8688. // 第一个参数暂时仍和小程序一致
  8689. ret[i] = iteratee(i, i);
  8690. }
  8691. return ret
  8692. }
  8693. return []
  8694. };
  8695. }
  8696. /* */
  8697. var LIFECYCLE_HOOKS$1 = [
  8698. //App
  8699. 'onLaunch',
  8700. 'onShow',
  8701. 'onHide',
  8702. 'onUniNViewMessage',
  8703. 'onPageNotFound',
  8704. 'onThemeChange',
  8705. 'onError',
  8706. 'onUnhandledRejection',
  8707. //Page
  8708. 'onInit',
  8709. 'onLoad',
  8710. // 'onShow',
  8711. 'onReady',
  8712. // 'onHide',
  8713. 'onUnload',
  8714. 'onPullDownRefresh',
  8715. 'onReachBottom',
  8716. 'onTabItemTap',
  8717. 'onAddToFavorites',
  8718. 'onShareTimeline',
  8719. 'onShareAppMessage',
  8720. 'onResize',
  8721. 'onPageScroll',
  8722. 'onNavigationBarButtonTap',
  8723. 'onBackPress',
  8724. 'onNavigationBarSearchInputChanged',
  8725. 'onNavigationBarSearchInputConfirmed',
  8726. 'onNavigationBarSearchInputClicked',
  8727. //Component
  8728. // 'onReady', // 兼容旧版本,应该移除该事件
  8729. 'onPageShow',
  8730. 'onPageHide',
  8731. 'onPageResize',
  8732. 'onUploadDouyinVideo'
  8733. ];
  8734. function lifecycleMixin$1(Vue) {
  8735. //fixed vue-class-component
  8736. var oldExtend = Vue.extend;
  8737. Vue.extend = function(extendOptions) {
  8738. extendOptions = extendOptions || {};
  8739. var methods = extendOptions.methods;
  8740. if (methods) {
  8741. Object.keys(methods).forEach(function (methodName) {
  8742. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8743. extendOptions[methodName] = methods[methodName];
  8744. delete methods[methodName];
  8745. }
  8746. });
  8747. }
  8748. return oldExtend.call(this, extendOptions)
  8749. };
  8750. var strategies = Vue.config.optionMergeStrategies;
  8751. var mergeHook = strategies.created;
  8752. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8753. strategies[hook] = mergeHook;
  8754. });
  8755. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8756. }
  8757. /* */
  8758. // install platform patch function
  8759. Vue.prototype.__patch__ = patch;
  8760. // public mount method
  8761. Vue.prototype.$mount = function(
  8762. el ,
  8763. hydrating
  8764. ) {
  8765. return mountComponent$1(this, el, hydrating)
  8766. };
  8767. lifecycleMixin$1(Vue);
  8768. internalMixin(Vue);
  8769. /* */
  8770. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8772. /***/ }),
  8773. /* 26 */
  8774. /*!***************************************************!*\
  8775. !*** D:/demo/businessCard/xiaochengxu/pages.json ***!
  8776. \***************************************************/
  8777. /*! no static exports found */
  8778. /***/ (function(module, exports) {
  8779. /***/ }),
  8780. /* 27 */,
  8781. /* 28 */,
  8782. /* 29 */,
  8783. /* 30 */,
  8784. /* 31 */,
  8785. /* 32 */
  8786. /*!**********************************************************************************************************!*\
  8787. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8788. \**********************************************************************************************************/
  8789. /*! exports provided: default */
  8790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8791. "use strict";
  8792. __webpack_require__.r(__webpack_exports__);
  8793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8794. /* globals __VUE_SSR_CONTEXT__ */
  8795. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8796. // This module is a runtime utility for cleaner component module output and will
  8797. // be included in the final webpack user bundle.
  8798. function normalizeComponent (
  8799. scriptExports,
  8800. render,
  8801. staticRenderFns,
  8802. functionalTemplate,
  8803. injectStyles,
  8804. scopeId,
  8805. moduleIdentifier, /* server only */
  8806. shadowMode, /* vue-cli only */
  8807. components, // fixed by xxxxxx auto components
  8808. renderjs // fixed by xxxxxx renderjs
  8809. ) {
  8810. // Vue.extend constructor export interop
  8811. var options = typeof scriptExports === 'function'
  8812. ? scriptExports.options
  8813. : scriptExports
  8814. // fixed by xxxxxx auto components
  8815. if (components) {
  8816. if (!options.components) {
  8817. options.components = {}
  8818. }
  8819. var hasOwn = Object.prototype.hasOwnProperty
  8820. for (var name in components) {
  8821. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8822. options.components[name] = components[name]
  8823. }
  8824. }
  8825. }
  8826. // fixed by xxxxxx renderjs
  8827. if (renderjs) {
  8828. if(typeof renderjs.beforeCreate === 'function'){
  8829. renderjs.beforeCreate = [renderjs.beforeCreate]
  8830. }
  8831. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8832. this[renderjs.__module] = this
  8833. });
  8834. (options.mixins || (options.mixins = [])).push(renderjs)
  8835. }
  8836. // render functions
  8837. if (render) {
  8838. options.render = render
  8839. options.staticRenderFns = staticRenderFns
  8840. options._compiled = true
  8841. }
  8842. // functional template
  8843. if (functionalTemplate) {
  8844. options.functional = true
  8845. }
  8846. // scopedId
  8847. if (scopeId) {
  8848. options._scopeId = 'data-v-' + scopeId
  8849. }
  8850. var hook
  8851. if (moduleIdentifier) { // server build
  8852. hook = function (context) {
  8853. // 2.3 injection
  8854. context =
  8855. context || // cached call
  8856. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8857. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8858. // 2.2 with runInNewContext: true
  8859. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8860. context = __VUE_SSR_CONTEXT__
  8861. }
  8862. // inject component styles
  8863. if (injectStyles) {
  8864. injectStyles.call(this, context)
  8865. }
  8866. // register component module identifier for async chunk inferrence
  8867. if (context && context._registeredComponents) {
  8868. context._registeredComponents.add(moduleIdentifier)
  8869. }
  8870. }
  8871. // used by ssr in case component is cached and beforeCreate
  8872. // never gets called
  8873. options._ssrRegister = hook
  8874. } else if (injectStyles) {
  8875. hook = shadowMode
  8876. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8877. : injectStyles
  8878. }
  8879. if (hook) {
  8880. if (options.functional) {
  8881. // for template-only hot-reload because in that case the render fn doesn't
  8882. // go through the normalizer
  8883. options._injectStyles = hook
  8884. // register for functioal component in vue file
  8885. var originalRender = options.render
  8886. options.render = function renderWithStyleInjection (h, context) {
  8887. hook.call(context)
  8888. return originalRender(h, context)
  8889. }
  8890. } else {
  8891. // inject component registration as beforeCreate hook
  8892. var existing = options.beforeCreate
  8893. options.beforeCreate = existing
  8894. ? [].concat(existing, hook)
  8895. : [hook]
  8896. }
  8897. }
  8898. return {
  8899. exports: scriptExports,
  8900. options: options
  8901. }
  8902. }
  8903. /***/ }),
  8904. /* 33 */
  8905. /*!********************************************************!*\
  8906. !*** D:/demo/businessCard/xiaochengxu/util/request.js ***!
  8907. \********************************************************/
  8908. /*! no static exports found */
  8909. /***/ (function(module, exports, __webpack_require__) {
  8910. "use strict";
  8911. /* WEBPACK VAR INJECTION */(function(uni) {
  8912. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8913. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  8914. Object.defineProperty(exports, "__esModule", {
  8915. value: true
  8916. });
  8917. exports.default = void 0;
  8918. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  8919. var config = _interopRequireWildcard(__webpack_require__(/*! @/config */ 34));
  8920. function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
  8921. function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  8922. 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; }
  8923. 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; }
  8924. var baseUrl = config.def().baseUrlNew;
  8925. // 定义基础请求路径(后端服务器地址)
  8926. var baseRequest = function baseRequest(_gp, _mt) {
  8927. var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  8928. var failCallback = arguments.length > 3 ? arguments[3] : undefined;
  8929. //异步请求数据
  8930. return new Promise(function (resolve) {
  8931. // if (!userInfo || !userInfo.accessToken) {
  8932. // userInfo = uni.getStorageSync('userInfo')
  8933. // }
  8934. // let accessToken = userInfo ? userInfo.accessToken : ''
  8935. var baseUrl = config.def().baseUrlNew;
  8936. uni.request({
  8937. url: baseUrl + '/m.api',
  8938. data: _objectSpread(_objectSpread({}, data), {}, {
  8939. _gp: _gp,
  8940. _mt: _mt
  8941. }),
  8942. method: 'POST',
  8943. header: {
  8944. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
  8945. // 'ACCESSTOKEN': accessToken
  8946. },
  8947. success: function success(res) {
  8948. if (res.statusCode === 200) {
  8949. if (res.data.errno === 200) {
  8950. resolve(res.data);
  8951. } else {
  8952. if (failCallback) {
  8953. failCallback(res.data);
  8954. } else {
  8955. uni.showToast({
  8956. title: res.data.errmsg,
  8957. icon: 'none'
  8958. });
  8959. }
  8960. }
  8961. }
  8962. }
  8963. });
  8964. });
  8965. };
  8966. //带Token请求
  8967. var TokenRequest = function TokenRequest(method, url, data, header) {
  8968. var contentheader = 'application/json';
  8969. if (header) {
  8970. contentheader = header;
  8971. }
  8972. var ac_token = "";
  8973. uni.getStorage({
  8974. key: 'userInfo',
  8975. success: function success(res) {
  8976. ac_token = res.data.accessToken;
  8977. }
  8978. });
  8979. //此token是登录成功后后台返回保存在storage中的
  8980. var DefaultOpts = {
  8981. url: baseUrl + url,
  8982. data: data,
  8983. method: method,
  8984. header: {
  8985. 'content-type': contentheader,
  8986. 'Token': ac_token
  8987. }
  8988. };
  8989. var promise = new Promise(function (resolve, reject) {
  8990. uni.request(DefaultOpts).then(function (res) {
  8991. console.log(JSON.stringify(res[1].data));
  8992. if (res[1].data.code == '200' || res[1].data.code == 200) {
  8993. // 后端返回的状态码100为成功状态,成功则返回请求结果,在app调试时可以通过console.log(JSON.stringify(res[1].data))来查看返回值(以项目实际情况为准)
  8994. resolve(res[1].data);
  8995. }
  8996. if (res[1].data.code == '105' || res[1].data.code == 105) {
  8997. // 后端返回状态码为105则为未登录状态(以项目实际情况为准)
  8998. uni.showToast({
  8999. icon: 'none',
  9000. title: '尚未登录',
  9001. duration: 2000
  9002. });
  9003. // 尚未登录的逻辑处理
  9004. return false;
  9005. }
  9006. }).catch(function (response) {
  9007. reject(response);
  9008. });
  9009. });
  9010. return promise;
  9011. };
  9012. var _default = {
  9013. baseUrl: baseUrl,
  9014. baseRequest: baseRequest,
  9015. TokenRequest: TokenRequest
  9016. };
  9017. exports.default = _default;
  9018. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9019. /***/ }),
  9020. /* 34 */
  9021. /*!********************************************************!*\
  9022. !*** D:/demo/businessCard/xiaochengxu/config/index.js ***!
  9023. \********************************************************/
  9024. /*! no static exports found */
  9025. /***/ (function(module, exports, __webpack_require__) {
  9026. "use strict";
  9027. Object.defineProperty(exports, "__esModule", {
  9028. value: true
  9029. });
  9030. exports.def = def;
  9031. var dev = {
  9032. baseUrlNew: 'http://192.168.110.82:8090',
  9033. // baseUrlNew: 'https://shiyaopinche.cspc.cn:10443',
  9034. h5Appid: 'wxb66b599f7f61b46f',
  9035. debug: false
  9036. };
  9037. function def() {
  9038. return dev;
  9039. }
  9040. /***/ }),
  9041. /* 35 */
  9042. /*!***************************************************************!*\
  9043. !*** D:/demo/businessCard/xiaochengxu/util/WXBizDataCrypt.js ***!
  9044. \***************************************************************/
  9045. /*! no static exports found */
  9046. /***/ (function(module, exports, __webpack_require__) {
  9047. /**
  9048. * Created by rd on 2017/5/4.
  9049. */
  9050. // 引入CryptoJS 路径依个人导入情况变动
  9051. var Crypto = __webpack_require__(/*! ./cryptojs-master/cryptojs.js */ 36).Crypto;
  9052. var app = getApp();
  9053. function RdWXBizDataCrypt(appId, sessionKey) {
  9054. this.appId = appId;
  9055. this.sessionKey = sessionKey;
  9056. }
  9057. RdWXBizDataCrypt.prototype.decryptData = function (encryptedData, iv, appId, sessionKey) {
  9058. // base64 decode :使用 CryptoJS 中 Crypto.util.base64ToBytes()进行 base64解码
  9059. var encryptedData = Crypto.util.base64ToBytes(encryptedData);
  9060. var key = Crypto.util.base64ToBytes(sessionKey);
  9061. var iv = Crypto.util.base64ToBytes(iv);
  9062. // 对称解密使用的算法为 AES-128-CBC,数据采用PKCS#7填充
  9063. var mode = new Crypto.mode.CBC(Crypto.pad.pkcs7);
  9064. try {
  9065. // 解密
  9066. var bytes = Crypto.AES.decrypt(encryptedData, key, {
  9067. asBpytes: true,
  9068. iv: iv,
  9069. mode: mode
  9070. });
  9071. var decryptResult = JSON.parse(bytes);
  9072. } catch (err) {
  9073. console.log(err);
  9074. }
  9075. return decryptResult;
  9076. };
  9077. module.exports = RdWXBizDataCrypt;
  9078. /***/ }),
  9079. /* 36 */
  9080. /*!*************************************************************************!*\
  9081. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/cryptojs.js ***!
  9082. \*************************************************************************/
  9083. /*! no static exports found */
  9084. /***/ (function(module, exports, __webpack_require__) {
  9085. var Crypto = exports.Crypto = __webpack_require__(/*! ./lib/Crypto */ 37).Crypto;
  9086. ['CryptoMath', 'BlockModes', 'DES', 'AES', 'HMAC', 'MARC4', 'MD5', 'PBKDF2', 'PBKDF2Async', 'Rabbit', 'SHA1', 'SHA256'].forEach(function (path) {
  9087. __webpack_require__(38)("./" + path);
  9088. });
  9089. /***/ }),
  9090. /* 37 */
  9091. /*!***************************************************************************!*\
  9092. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/Crypto.js ***!
  9093. \***************************************************************************/
  9094. /*! no static exports found */
  9095. /***/ (function(module, exports) {
  9096. if (typeof Crypto == "undefined" || !Crypto.util) {
  9097. (function () {
  9098. var base64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  9099. // Global Crypto object
  9100. // with browser window or with node module
  9101. var Crypto = typeof window === 'undefined' ? exports.Crypto = {} : window.Crypto = {};
  9102. // Crypto utilities
  9103. var util = Crypto.util = {
  9104. // Bit-wise rotate left
  9105. rotl: function rotl(n, b) {
  9106. return n << b | n >>> 32 - b;
  9107. },
  9108. // Bit-wise rotate right
  9109. rotr: function rotr(n, b) {
  9110. return n << 32 - b | n >>> b;
  9111. },
  9112. // Swap big-endian to little-endian and vice versa
  9113. endian: function endian(n) {
  9114. // If number given, swap endian
  9115. if (n.constructor == Number) {
  9116. return util.rotl(n, 8) & 0x00FF00FF | util.rotl(n, 24) & 0xFF00FF00;
  9117. }
  9118. // Else, assume array and swap all items
  9119. for (var i = 0; i < n.length; i++) {
  9120. n[i] = util.endian(n[i]);
  9121. }
  9122. return n;
  9123. },
  9124. // Generate an array of any length of random bytes
  9125. randomBytes: function randomBytes(n) {
  9126. for (var bytes = []; n > 0; n--) {
  9127. bytes.push(Math.floor(Math.random() * 256));
  9128. }
  9129. return bytes;
  9130. },
  9131. // Convert a byte array to big-endian 32-bit words
  9132. bytesToWords: function bytesToWords(bytes) {
  9133. for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8) {
  9134. words[b >>> 5] |= (bytes[i] & 0xFF) << 24 - b % 32;
  9135. }
  9136. return words;
  9137. },
  9138. // Convert big-endian 32-bit words to a byte array
  9139. wordsToBytes: function wordsToBytes(words) {
  9140. for (var bytes = [], b = 0; b < words.length * 32; b += 8) {
  9141. bytes.push(words[b >>> 5] >>> 24 - b % 32 & 0xFF);
  9142. }
  9143. return bytes;
  9144. },
  9145. // Convert a byte array to a hex string
  9146. bytesToHex: function bytesToHex(bytes) {
  9147. for (var hex = [], i = 0; i < bytes.length; i++) {
  9148. hex.push((bytes[i] >>> 4).toString(16));
  9149. hex.push((bytes[i] & 0xF).toString(16));
  9150. }
  9151. return hex.join("");
  9152. },
  9153. // Convert a hex string to a byte array
  9154. hexToBytes: function hexToBytes(hex) {
  9155. for (var bytes = [], c = 0; c < hex.length; c += 2) {
  9156. bytes.push(parseInt(hex.substr(c, 2), 16));
  9157. }
  9158. return bytes;
  9159. },
  9160. // Convert a byte array to a base-64 string
  9161. bytesToBase64: function bytesToBase64(bytes) {
  9162. // Use browser-native function if it exists
  9163. if (typeof btoa == "function") return btoa(Binary.bytesToString(bytes));
  9164. for (var base64 = [], i = 0; i < bytes.length; i += 3) {
  9165. var triplet = bytes[i] << 16 | bytes[i + 1] << 8 | bytes[i + 2];
  9166. for (var j = 0; j < 4; j++) {
  9167. if (i * 8 + j * 6 <= bytes.length * 8) base64.push(base64map.charAt(triplet >>> 6 * (3 - j) & 0x3F));else base64.push("=");
  9168. }
  9169. }
  9170. return base64.join("");
  9171. },
  9172. // Convert a base-64 string to a byte array
  9173. base64ToBytes: function base64ToBytes(base64) {
  9174. // Use browser-native function if it exists
  9175. if (typeof atob == "function") return Binary.stringToBytes(atob(base64));
  9176. // Remove non-base-64 characters
  9177. base64 = base64.replace(/[^A-Z0-9+\/]/ig, "");
  9178. for (var bytes = [], i = 0, imod4 = 0; i < base64.length; imod4 = ++i % 4) {
  9179. if (imod4 == 0) continue;
  9180. bytes.push((base64map.indexOf(base64.charAt(i - 1)) & Math.pow(2, -2 * imod4 + 8) - 1) << imod4 * 2 | base64map.indexOf(base64.charAt(i)) >>> 6 - imod4 * 2);
  9181. }
  9182. return bytes;
  9183. }
  9184. };
  9185. // Crypto character encodings
  9186. var charenc = Crypto.charenc = {};
  9187. // UTF-8 encoding
  9188. var UTF8 = charenc.UTF8 = {
  9189. // Convert a string to a byte array
  9190. stringToBytes: function stringToBytes(str) {
  9191. return Binary.stringToBytes(unescape(encodeURIComponent(str)));
  9192. },
  9193. // Convert a byte array to a string
  9194. bytesToString: function bytesToString(bytes) {
  9195. return decodeURIComponent(escape(Binary.bytesToString(bytes)));
  9196. }
  9197. };
  9198. // Binary encoding
  9199. var Binary = charenc.Binary = {
  9200. // Convert a string to a byte array
  9201. stringToBytes: function stringToBytes(str) {
  9202. for (var bytes = [], i = 0; i < str.length; i++) {
  9203. bytes.push(str.charCodeAt(i) & 0xFF);
  9204. }
  9205. return bytes;
  9206. },
  9207. // Convert a byte array to a string
  9208. bytesToString: function bytesToString(bytes) {
  9209. for (var str = [], i = 0; i < bytes.length; i++) {
  9210. str.push(String.fromCharCode(bytes[i]));
  9211. }
  9212. return str.join("");
  9213. }
  9214. };
  9215. })();
  9216. }
  9217. /***/ }),
  9218. /* 38 */
  9219. /*!*******************************************************************************!*\
  9220. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib sync ^\.\/.*$ ***!
  9221. \*******************************************************************************/
  9222. /*! no static exports found */
  9223. /***/ (function(module, exports, __webpack_require__) {
  9224. var map = {
  9225. "./AES": 39,
  9226. "./AES.js": 39,
  9227. "./BlockModes": 40,
  9228. "./BlockModes.js": 40,
  9229. "./Crypto": 37,
  9230. "./Crypto.js": 37,
  9231. "./CryptoMath": 41,
  9232. "./CryptoMath.js": 41,
  9233. "./DES": 42,
  9234. "./DES.js": 42,
  9235. "./HMAC": 43,
  9236. "./HMAC.js": 43,
  9237. "./MARC4": 44,
  9238. "./MARC4.js": 44,
  9239. "./MD5": 45,
  9240. "./MD5.js": 45,
  9241. "./PBKDF2": 46,
  9242. "./PBKDF2.js": 46,
  9243. "./PBKDF2Async": 47,
  9244. "./PBKDF2Async.js": 47,
  9245. "./Rabbit": 50,
  9246. "./Rabbit.js": 50,
  9247. "./SHA1": 51,
  9248. "./SHA1.js": 51,
  9249. "./SHA256": 52,
  9250. "./SHA256.js": 52
  9251. };
  9252. function webpackContext(req) {
  9253. var id = webpackContextResolve(req);
  9254. return __webpack_require__(id);
  9255. }
  9256. function webpackContextResolve(req) {
  9257. if(!__webpack_require__.o(map, req)) {
  9258. var e = new Error("Cannot find module '" + req + "'");
  9259. e.code = 'MODULE_NOT_FOUND';
  9260. throw e;
  9261. }
  9262. return map[req];
  9263. }
  9264. webpackContext.keys = function webpackContextKeys() {
  9265. return Object.keys(map);
  9266. };
  9267. webpackContext.resolve = webpackContextResolve;
  9268. module.exports = webpackContext;
  9269. webpackContext.id = 38;
  9270. /***/ }),
  9271. /* 39 */
  9272. /*!************************************************************************!*\
  9273. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/AES.js ***!
  9274. \************************************************************************/
  9275. /*! no static exports found */
  9276. /***/ (function(module, exports, __webpack_require__) {
  9277. (function () {
  9278. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  9279. // Shortcuts
  9280. var util = C.util,
  9281. charenc = C.charenc,
  9282. UTF8 = charenc.UTF8;
  9283. // Precomputed SBOX
  9284. var SBOX = [0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16];
  9285. // Compute inverse SBOX lookup table
  9286. for (var INVSBOX = [], i = 0; i < 256; i++) {
  9287. INVSBOX[SBOX[i]] = i;
  9288. }
  9289. // Compute mulitplication in GF(2^8) lookup tables
  9290. var MULT2 = [],
  9291. MULT3 = [],
  9292. MULT9 = [],
  9293. MULTB = [],
  9294. MULTD = [],
  9295. MULTE = [];
  9296. function xtime(a, b) {
  9297. for (var result = 0, i = 0; i < 8; i++) {
  9298. if (b & 1) result ^= a;
  9299. var hiBitSet = a & 0x80;
  9300. a = a << 1 & 0xFF;
  9301. if (hiBitSet) a ^= 0x1b;
  9302. b >>>= 1;
  9303. }
  9304. return result;
  9305. }
  9306. for (var i = 0; i < 256; i++) {
  9307. MULT2[i] = xtime(i, 2);
  9308. MULT3[i] = xtime(i, 3);
  9309. MULT9[i] = xtime(i, 9);
  9310. MULTB[i] = xtime(i, 0xB);
  9311. MULTD[i] = xtime(i, 0xD);
  9312. MULTE[i] = xtime(i, 0xE);
  9313. }
  9314. // Precomputed RCon lookup
  9315. var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
  9316. // Inner state
  9317. var state = [[], [], [], []],
  9318. keylength,
  9319. nrounds,
  9320. keyschedule;
  9321. var AES = C.AES = {
  9322. /**
  9323. * Public API
  9324. */
  9325. encrypt: function encrypt(message, password, options) {
  9326. options = options || {};
  9327. // Determine mode
  9328. var mode = options.mode || new C.mode.OFB();
  9329. // Allow mode to override options
  9330. if (mode.fixOptions) mode.fixOptions(options);
  9331. var
  9332. // Convert to bytes if message is a string
  9333. m = message.constructor == String ? UTF8.stringToBytes(message) : message,
  9334. // Generate random IV
  9335. iv = options.iv || util.randomBytes(AES._blocksize * 4),
  9336. // Generate key
  9337. k = password.constructor == String ?
  9338. // Derive key from passphrase
  9339. C.PBKDF2(password, iv, 32, {
  9340. asBytes: true
  9341. }) :
  9342. // else, assume byte array representing cryptographic key
  9343. password;
  9344. // Encrypt
  9345. AES._init(k);
  9346. mode.encrypt(AES, m, iv);
  9347. // Return ciphertext
  9348. m = options.iv ? m : iv.concat(m);
  9349. return options && options.asBytes ? m : util.bytesToBase64(m);
  9350. },
  9351. decrypt: function decrypt(ciphertext, password, options) {
  9352. options = options || {};
  9353. // Determine mode
  9354. var mode = options.mode || new C.mode.OFB();
  9355. // Allow mode to override options
  9356. if (mode.fixOptions) mode.fixOptions(options);
  9357. var
  9358. // Convert to bytes if ciphertext is a string
  9359. c = ciphertext.constructor == String ? util.base64ToBytes(ciphertext) : ciphertext,
  9360. // Separate IV and message
  9361. iv = options.iv || c.splice(0, AES._blocksize * 4),
  9362. // Generate key
  9363. k = password.constructor == String ?
  9364. // Derive key from passphrase
  9365. C.PBKDF2(password, iv, 32, {
  9366. asBytes: true
  9367. }) :
  9368. // else, assume byte array representing cryptographic key
  9369. password;
  9370. // Decrypt
  9371. AES._init(k);
  9372. mode.decrypt(AES, c, iv);
  9373. // Return plaintext
  9374. return options && options.asBytes ? c : UTF8.bytesToString(c);
  9375. },
  9376. /**
  9377. * Package private methods and properties
  9378. */
  9379. _blocksize: 4,
  9380. _encryptblock: function _encryptblock(m, offset) {
  9381. // Set input
  9382. for (var row = 0; row < AES._blocksize; row++) {
  9383. for (var col = 0; col < 4; col++) {
  9384. state[row][col] = m[offset + col * 4 + row];
  9385. }
  9386. }
  9387. // Add round key
  9388. for (var row = 0; row < 4; row++) {
  9389. for (var col = 0; col < 4; col++) {
  9390. state[row][col] ^= keyschedule[col][row];
  9391. }
  9392. }
  9393. for (var round = 1; round < nrounds; round++) {
  9394. // Sub bytes
  9395. for (var row = 0; row < 4; row++) {
  9396. for (var col = 0; col < 4; col++) {
  9397. state[row][col] = SBOX[state[row][col]];
  9398. }
  9399. }
  9400. // Shift rows
  9401. state[1].push(state[1].shift());
  9402. state[2].push(state[2].shift());
  9403. state[2].push(state[2].shift());
  9404. state[3].unshift(state[3].pop());
  9405. // Mix columns
  9406. for (var col = 0; col < 4; col++) {
  9407. var s0 = state[0][col],
  9408. s1 = state[1][col],
  9409. s2 = state[2][col],
  9410. s3 = state[3][col];
  9411. state[0][col] = MULT2[s0] ^ MULT3[s1] ^ s2 ^ s3;
  9412. state[1][col] = s0 ^ MULT2[s1] ^ MULT3[s2] ^ s3;
  9413. state[2][col] = s0 ^ s1 ^ MULT2[s2] ^ MULT3[s3];
  9414. state[3][col] = MULT3[s0] ^ s1 ^ s2 ^ MULT2[s3];
  9415. }
  9416. // Add round key
  9417. for (var row = 0; row < 4; row++) {
  9418. for (var col = 0; col < 4; col++) {
  9419. state[row][col] ^= keyschedule[round * 4 + col][row];
  9420. }
  9421. }
  9422. }
  9423. // Sub bytes
  9424. for (var row = 0; row < 4; row++) {
  9425. for (var col = 0; col < 4; col++) {
  9426. state[row][col] = SBOX[state[row][col]];
  9427. }
  9428. }
  9429. // Shift rows
  9430. state[1].push(state[1].shift());
  9431. state[2].push(state[2].shift());
  9432. state[2].push(state[2].shift());
  9433. state[3].unshift(state[3].pop());
  9434. // Add round key
  9435. for (var row = 0; row < 4; row++) {
  9436. for (var col = 0; col < 4; col++) {
  9437. state[row][col] ^= keyschedule[nrounds * 4 + col][row];
  9438. }
  9439. }
  9440. // Set output
  9441. for (var row = 0; row < AES._blocksize; row++) {
  9442. for (var col = 0; col < 4; col++) {
  9443. m[offset + col * 4 + row] = state[row][col];
  9444. }
  9445. }
  9446. },
  9447. _decryptblock: function _decryptblock(c, offset) {
  9448. // Set input
  9449. for (var row = 0; row < AES._blocksize; row++) {
  9450. for (var col = 0; col < 4; col++) {
  9451. state[row][col] = c[offset + col * 4 + row];
  9452. }
  9453. }
  9454. // Add round key
  9455. for (var row = 0; row < 4; row++) {
  9456. for (var col = 0; col < 4; col++) {
  9457. state[row][col] ^= keyschedule[nrounds * 4 + col][row];
  9458. }
  9459. }
  9460. for (var round = 1; round < nrounds; round++) {
  9461. // Inv shift rows
  9462. state[1].unshift(state[1].pop());
  9463. state[2].push(state[2].shift());
  9464. state[2].push(state[2].shift());
  9465. state[3].push(state[3].shift());
  9466. // Inv sub bytes
  9467. for (var row = 0; row < 4; row++) {
  9468. for (var col = 0; col < 4; col++) {
  9469. state[row][col] = INVSBOX[state[row][col]];
  9470. }
  9471. }
  9472. // Add round key
  9473. for (var row = 0; row < 4; row++) {
  9474. for (var col = 0; col < 4; col++) {
  9475. state[row][col] ^= keyschedule[(nrounds - round) * 4 + col][row];
  9476. }
  9477. }
  9478. // Inv mix columns
  9479. for (var col = 0; col < 4; col++) {
  9480. var s0 = state[0][col],
  9481. s1 = state[1][col],
  9482. s2 = state[2][col],
  9483. s3 = state[3][col];
  9484. state[0][col] = MULTE[s0] ^ MULTB[s1] ^ MULTD[s2] ^ MULT9[s3];
  9485. state[1][col] = MULT9[s0] ^ MULTE[s1] ^ MULTB[s2] ^ MULTD[s3];
  9486. state[2][col] = MULTD[s0] ^ MULT9[s1] ^ MULTE[s2] ^ MULTB[s3];
  9487. state[3][col] = MULTB[s0] ^ MULTD[s1] ^ MULT9[s2] ^ MULTE[s3];
  9488. }
  9489. }
  9490. // Inv shift rows
  9491. state[1].unshift(state[1].pop());
  9492. state[2].push(state[2].shift());
  9493. state[2].push(state[2].shift());
  9494. state[3].push(state[3].shift());
  9495. // Inv sub bytes
  9496. for (var row = 0; row < 4; row++) {
  9497. for (var col = 0; col < 4; col++) {
  9498. state[row][col] = INVSBOX[state[row][col]];
  9499. }
  9500. }
  9501. // Add round key
  9502. for (var row = 0; row < 4; row++) {
  9503. for (var col = 0; col < 4; col++) {
  9504. state[row][col] ^= keyschedule[col][row];
  9505. }
  9506. }
  9507. // Set output
  9508. for (var row = 0; row < AES._blocksize; row++) {
  9509. for (var col = 0; col < 4; col++) {
  9510. c[offset + col * 4 + row] = state[row][col];
  9511. }
  9512. }
  9513. },
  9514. /**
  9515. * Private methods
  9516. */
  9517. _init: function _init(k) {
  9518. keylength = k.length / 4;
  9519. nrounds = keylength + 6;
  9520. AES._keyexpansion(k);
  9521. },
  9522. // Generate a key schedule
  9523. _keyexpansion: function _keyexpansion(k) {
  9524. keyschedule = [];
  9525. for (var row = 0; row < keylength; row++) {
  9526. keyschedule[row] = [k[row * 4], k[row * 4 + 1], k[row * 4 + 2], k[row * 4 + 3]];
  9527. }
  9528. for (var row = keylength; row < AES._blocksize * (nrounds + 1); row++) {
  9529. var temp = [keyschedule[row - 1][0], keyschedule[row - 1][1], keyschedule[row - 1][2], keyschedule[row - 1][3]];
  9530. if (row % keylength == 0) {
  9531. // Rot word
  9532. temp.push(temp.shift());
  9533. // Sub word
  9534. temp[0] = SBOX[temp[0]];
  9535. temp[1] = SBOX[temp[1]];
  9536. temp[2] = SBOX[temp[2]];
  9537. temp[3] = SBOX[temp[3]];
  9538. temp[0] ^= RCON[row / keylength];
  9539. } else if (keylength > 6 && row % keylength == 4) {
  9540. // Sub word
  9541. temp[0] = SBOX[temp[0]];
  9542. temp[1] = SBOX[temp[1]];
  9543. temp[2] = SBOX[temp[2]];
  9544. temp[3] = SBOX[temp[3]];
  9545. }
  9546. keyschedule[row] = [keyschedule[row - keylength][0] ^ temp[0], keyschedule[row - keylength][1] ^ temp[1], keyschedule[row - keylength][2] ^ temp[2], keyschedule[row - keylength][3] ^ temp[3]];
  9547. }
  9548. }
  9549. };
  9550. })();
  9551. /***/ }),
  9552. /* 40 */
  9553. /*!*******************************************************************************!*\
  9554. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/BlockModes.js ***!
  9555. \*******************************************************************************/
  9556. /*! no static exports found */
  9557. /***/ (function(module, exports, __webpack_require__) {
  9558. /*!
  9559. * Crypto-JS contribution from Simon Greatrix
  9560. */
  9561. (function () {
  9562. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  9563. // Create pad namespace
  9564. var C_pad = C.pad = {};
  9565. // Calculate the number of padding bytes required.
  9566. function _requiredPadding(cipher, message) {
  9567. var blockSizeInBytes = cipher._blocksize * 4;
  9568. var reqd = blockSizeInBytes - message.length % blockSizeInBytes;
  9569. return reqd;
  9570. }
  9571. ;
  9572. // Remove padding when the final byte gives the number of padding bytes.
  9573. var _unpadLength = function _unpadLength(message) {
  9574. var pad = message.pop();
  9575. for (var i = 1; i < pad; i++) {
  9576. message.pop();
  9577. }
  9578. };
  9579. // No-operation padding, used for stream ciphers
  9580. C_pad.NoPadding = {
  9581. pad: function pad(cipher, message) {},
  9582. unpad: function unpad(message) {}
  9583. };
  9584. // Zero Padding.
  9585. //
  9586. // If the message is not an exact number of blocks, the final block is
  9587. // completed with 0x00 bytes. There is no unpadding.
  9588. C_pad.ZeroPadding = {
  9589. pad: function pad(cipher, message) {
  9590. var blockSizeInBytes = cipher._blocksize * 4;
  9591. var reqd = message.length % blockSizeInBytes;
  9592. if (reqd != 0) {
  9593. for (reqd = blockSizeInBytes - reqd; reqd > 0; reqd--) {
  9594. message.push(0x00);
  9595. }
  9596. }
  9597. },
  9598. unpad: function unpad(message) {}
  9599. };
  9600. // ISO/IEC 7816-4 padding.
  9601. //
  9602. // Pads the plain text with an 0x80 byte followed by as many 0x00
  9603. // bytes are required to complete the block.
  9604. C_pad.iso7816 = {
  9605. pad: function pad(cipher, message) {
  9606. var reqd = _requiredPadding(cipher, message);
  9607. message.push(0x80);
  9608. for (; reqd > 1; reqd--) {
  9609. message.push(0x00);
  9610. }
  9611. },
  9612. unpad: function unpad(message) {
  9613. while (message.pop() != 0x80) {}
  9614. }
  9615. };
  9616. // ANSI X.923 padding
  9617. //
  9618. // The final block is padded with zeros except for the last byte of the
  9619. // last block which contains the number of padding bytes.
  9620. C_pad.ansix923 = {
  9621. pad: function pad(cipher, message) {
  9622. var reqd = _requiredPadding(cipher, message);
  9623. for (var i = 1; i < reqd; i++) {
  9624. message.push(0x00);
  9625. }
  9626. message.push(reqd);
  9627. },
  9628. unpad: _unpadLength
  9629. };
  9630. // ISO 10126
  9631. //
  9632. // The final block is padded with random bytes except for the last
  9633. // byte of the last block which contains the number of padding bytes.
  9634. C_pad.iso10126 = {
  9635. pad: function pad(cipher, message) {
  9636. var reqd = _requiredPadding(cipher, message);
  9637. for (var i = 1; i < reqd; i++) {
  9638. message.push(Math.floor(Math.random() * 256));
  9639. }
  9640. message.push(reqd);
  9641. },
  9642. unpad: _unpadLength
  9643. };
  9644. // PKCS7 padding
  9645. //
  9646. // PKCS7 is described in RFC 5652. Padding is in whole bytes. The
  9647. // value of each added byte is the number of bytes that are added,
  9648. // i.e. N bytes, each of value N are added.
  9649. C_pad.pkcs7 = {
  9650. pad: function pad(cipher, message) {
  9651. var reqd = _requiredPadding(cipher, message);
  9652. for (var i = 0; i < reqd; i++) {
  9653. message.push(reqd);
  9654. }
  9655. },
  9656. unpad: _unpadLength
  9657. };
  9658. // Create mode namespace
  9659. var C_mode = C.mode = {};
  9660. /**
  9661. * Mode base "class".
  9662. */
  9663. var Mode = C_mode.Mode = function (padding) {
  9664. if (padding) {
  9665. this._padding = padding;
  9666. }
  9667. };
  9668. Mode.prototype = {
  9669. encrypt: function encrypt(cipher, m, iv) {
  9670. this._padding.pad(cipher, m);
  9671. this._doEncrypt(cipher, m, iv);
  9672. },
  9673. decrypt: function decrypt(cipher, m, iv) {
  9674. this._doDecrypt(cipher, m, iv);
  9675. this._padding.unpad(m);
  9676. },
  9677. // Default padding
  9678. _padding: C_pad.iso7816
  9679. };
  9680. /**
  9681. * Electronic Code Book mode.
  9682. *
  9683. * ECB applies the cipher directly against each block of the input.
  9684. *
  9685. * ECB does not require an initialization vector.
  9686. */
  9687. var ECB = C_mode.ECB = function () {
  9688. // Call parent constructor
  9689. Mode.apply(this, arguments);
  9690. };
  9691. // Inherit from Mode
  9692. var ECB_prototype = ECB.prototype = new Mode();
  9693. // Concrete steps for Mode template
  9694. ECB_prototype._doEncrypt = function (cipher, m, iv) {
  9695. var blockSizeInBytes = cipher._blocksize * 4;
  9696. // Encrypt each block
  9697. for (var offset = 0; offset < m.length; offset += blockSizeInBytes) {
  9698. cipher._encryptblock(m, offset);
  9699. }
  9700. };
  9701. ECB_prototype._doDecrypt = function (cipher, c, iv) {
  9702. var blockSizeInBytes = cipher._blocksize * 4;
  9703. // Decrypt each block
  9704. for (var offset = 0; offset < c.length; offset += blockSizeInBytes) {
  9705. cipher._decryptblock(c, offset);
  9706. }
  9707. };
  9708. // ECB never uses an IV
  9709. ECB_prototype.fixOptions = function (options) {
  9710. options.iv = [];
  9711. };
  9712. /**
  9713. * Cipher block chaining
  9714. *
  9715. * The first block is XORed with the IV. Subsequent blocks are XOR with the
  9716. * previous cipher output.
  9717. */
  9718. var CBC = C_mode.CBC = function () {
  9719. // Call parent constructor
  9720. Mode.apply(this, arguments);
  9721. };
  9722. // Inherit from Mode
  9723. var CBC_prototype = CBC.prototype = new Mode();
  9724. // Concrete steps for Mode template
  9725. CBC_prototype._doEncrypt = function (cipher, m, iv) {
  9726. var blockSizeInBytes = cipher._blocksize * 4;
  9727. // Encrypt each block
  9728. for (var offset = 0; offset < m.length; offset += blockSizeInBytes) {
  9729. if (offset == 0) {
  9730. // XOR first block using IV
  9731. for (var i = 0; i < blockSizeInBytes; i++) {
  9732. m[i] ^= iv[i];
  9733. }
  9734. } else {
  9735. // XOR this block using previous crypted block
  9736. for (var i = 0; i < blockSizeInBytes; i++) {
  9737. m[offset + i] ^= m[offset + i - blockSizeInBytes];
  9738. }
  9739. }
  9740. // Encrypt block
  9741. cipher._encryptblock(m, offset);
  9742. }
  9743. };
  9744. CBC_prototype._doDecrypt = function (cipher, c, iv) {
  9745. var blockSizeInBytes = cipher._blocksize * 4;
  9746. // At the start, the previously crypted block is the IV
  9747. var prevCryptedBlock = iv;
  9748. // Decrypt each block
  9749. for (var offset = 0; offset < c.length; offset += blockSizeInBytes) {
  9750. // Save this crypted block
  9751. var thisCryptedBlock = c.slice(offset, offset + blockSizeInBytes);
  9752. // Decrypt block
  9753. cipher._decryptblock(c, offset);
  9754. // XOR decrypted block using previous crypted block
  9755. for (var i = 0; i < blockSizeInBytes; i++) {
  9756. c[offset + i] ^= prevCryptedBlock[i];
  9757. }
  9758. prevCryptedBlock = thisCryptedBlock;
  9759. }
  9760. };
  9761. /**
  9762. * Cipher feed back
  9763. *
  9764. * The cipher output is XORed with the plain text to produce the cipher output,
  9765. * which is then fed back into the cipher to produce a bit pattern to XOR the
  9766. * next block with.
  9767. *
  9768. * This is a stream cipher mode and does not require padding.
  9769. */
  9770. var CFB = C_mode.CFB = function () {
  9771. // Call parent constructor
  9772. Mode.apply(this, arguments);
  9773. };
  9774. // Inherit from Mode
  9775. var CFB_prototype = CFB.prototype = new Mode();
  9776. // Override padding
  9777. CFB_prototype._padding = C_pad.NoPadding;
  9778. // Concrete steps for Mode template
  9779. CFB_prototype._doEncrypt = function (cipher, m, iv) {
  9780. var blockSizeInBytes = cipher._blocksize * 4,
  9781. keystream = iv.slice(0);
  9782. // Encrypt each byte
  9783. for (var i = 0; i < m.length; i++) {
  9784. var j = i % blockSizeInBytes;
  9785. if (j == 0) cipher._encryptblock(keystream, 0);
  9786. m[i] ^= keystream[j];
  9787. keystream[j] = m[i];
  9788. }
  9789. };
  9790. CFB_prototype._doDecrypt = function (cipher, c, iv) {
  9791. var blockSizeInBytes = cipher._blocksize * 4,
  9792. keystream = iv.slice(0);
  9793. // Encrypt each byte
  9794. for (var i = 0; i < c.length; i++) {
  9795. var j = i % blockSizeInBytes;
  9796. if (j == 0) cipher._encryptblock(keystream, 0);
  9797. var b = c[i];
  9798. c[i] ^= keystream[j];
  9799. keystream[j] = b;
  9800. }
  9801. };
  9802. /**
  9803. * Output feed back
  9804. *
  9805. * The cipher repeatedly encrypts its own output. The output is XORed with the
  9806. * plain text to produce the cipher text.
  9807. *
  9808. * This is a stream cipher mode and does not require padding.
  9809. */
  9810. var OFB = C_mode.OFB = function () {
  9811. // Call parent constructor
  9812. Mode.apply(this, arguments);
  9813. };
  9814. // Inherit from Mode
  9815. var OFB_prototype = OFB.prototype = new Mode();
  9816. // Override padding
  9817. OFB_prototype._padding = C_pad.NoPadding;
  9818. // Concrete steps for Mode template
  9819. OFB_prototype._doEncrypt = function (cipher, m, iv) {
  9820. var blockSizeInBytes = cipher._blocksize * 4,
  9821. keystream = iv.slice(0);
  9822. // Encrypt each byte
  9823. for (var i = 0; i < m.length; i++) {
  9824. // Generate keystream
  9825. if (i % blockSizeInBytes == 0) cipher._encryptblock(keystream, 0);
  9826. // Encrypt byte
  9827. m[i] ^= keystream[i % blockSizeInBytes];
  9828. }
  9829. };
  9830. OFB_prototype._doDecrypt = OFB_prototype._doEncrypt;
  9831. /**
  9832. * Counter
  9833. * @author Gergely Risko
  9834. *
  9835. * After every block the last 4 bytes of the IV is increased by one
  9836. * with carry and that IV is used for the next block.
  9837. *
  9838. * This is a stream cipher mode and does not require padding.
  9839. */
  9840. var CTR = C_mode.CTR = function () {
  9841. // Call parent constructor
  9842. Mode.apply(this, arguments);
  9843. };
  9844. // Inherit from Mode
  9845. var CTR_prototype = CTR.prototype = new Mode();
  9846. // Override padding
  9847. CTR_prototype._padding = C_pad.NoPadding;
  9848. CTR_prototype._doEncrypt = function (cipher, m, iv) {
  9849. var blockSizeInBytes = cipher._blocksize * 4;
  9850. var counter = iv.slice(0);
  9851. for (var i = 0; i < m.length;) {
  9852. // do not lose iv
  9853. var keystream = counter.slice(0);
  9854. // Generate keystream for next block
  9855. cipher._encryptblock(keystream, 0);
  9856. // XOR keystream with block
  9857. for (var j = 0; i < m.length && j < blockSizeInBytes; j++, i++) {
  9858. m[i] ^= keystream[j];
  9859. }
  9860. // Increase counter
  9861. if (++counter[blockSizeInBytes - 1] == 256) {
  9862. counter[blockSizeInBytes - 1] = 0;
  9863. if (++counter[blockSizeInBytes - 2] == 256) {
  9864. counter[blockSizeInBytes - 2] = 0;
  9865. if (++counter[blockSizeInBytes - 3] == 256) {
  9866. counter[blockSizeInBytes - 3] = 0;
  9867. ++counter[blockSizeInBytes - 4];
  9868. }
  9869. }
  9870. }
  9871. }
  9872. };
  9873. CTR_prototype._doDecrypt = CTR_prototype._doEncrypt;
  9874. })();
  9875. /***/ }),
  9876. /* 41 */
  9877. /*!*******************************************************************************!*\
  9878. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/CryptoMath.js ***!
  9879. \*******************************************************************************/
  9880. /*! no static exports found */
  9881. /***/ (function(module, exports, __webpack_require__) {
  9882. (function () {
  9883. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  9884. // Shortcut
  9885. var util = C.util;
  9886. // Convert n to unsigned 32-bit integer
  9887. util.u32 = function (n) {
  9888. return n >>> 0;
  9889. };
  9890. // Unsigned 32-bit addition
  9891. util.add = function () {
  9892. var result = this.u32(arguments[0]);
  9893. for (var i = 1; i < arguments.length; i++) {
  9894. result = this.u32(result + this.u32(arguments[i]));
  9895. }
  9896. return result;
  9897. };
  9898. // Unsigned 32-bit multiplication
  9899. util.mult = function (m, n) {
  9900. return this.add((n & 0xFFFF0000) * m, (n & 0x0000FFFF) * m);
  9901. };
  9902. // Unsigned 32-bit greater than (>) comparison
  9903. util.gt = function (m, n) {
  9904. return this.u32(m) > this.u32(n);
  9905. };
  9906. // Unsigned 32-bit less than (<) comparison
  9907. util.lt = function (m, n) {
  9908. return this.u32(m) < this.u32(n);
  9909. };
  9910. })();
  9911. /***/ }),
  9912. /* 42 */
  9913. /*!************************************************************************!*\
  9914. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/DES.js ***!
  9915. \************************************************************************/
  9916. /*! no static exports found */
  9917. /***/ (function(module, exports, __webpack_require__) {
  9918. /**
  9919. * Definition of Data Encryption Standard (DES) taken from:
  9920. * http://www.itl.nist.gov/fipspubs/fip46-2.htm
  9921. */
  9922. (function () {
  9923. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  9924. // Shortcuts
  9925. var util = C.util,
  9926. charenc = C.charenc,
  9927. UTF8 = charenc.UTF8;
  9928. /***************************************************************************
  9929. *
  9930. * DES Key Schedule.
  9931. *
  9932. * The Key consists of 16 sub-keys of 48 bits each. As each sub-key is
  9933. * applied to an expanded 32-bit value where each 4 bits of input is
  9934. * expanded into 6 bits of output the sub-key can be broken down into 8
  9935. * 32-bit values which allows the key to be used without expansion.
  9936. *
  9937. * To create the 16 sub-keys, 56 bits are selected from the input 64 bit key
  9938. * according to <i>PC1</i>. Each sub-key is generated by left rotating the
  9939. * bits a different amount and then selecting 48 bits according to <i>PC2</i>.
  9940. *
  9941. **************************************************************************/
  9942. var KeySchedule;
  9943. /**
  9944. * Representation of a DES key schedule.
  9945. *
  9946. * @param {Array
  9947. * of 8 bytes} key The cipher key
  9948. *
  9949. * @constructor
  9950. */
  9951. KeySchedule = function KeySchedule(key) {
  9952. /**
  9953. * The schedule of 16 keys
  9954. */
  9955. this.keys = new Array(16);
  9956. this._initialiseKeys(key);
  9957. };
  9958. /**
  9959. * Permuted Choice 1 (PC1) byte offsets into the key. Each of the 56 entries
  9960. * selects one bit of DES's 56 bit key.
  9961. * <p>
  9962. *
  9963. * <pre>
  9964. * The PC1 is defined as:
  9965. *
  9966. * 57, 49, 41, 33, 25, 17, 9,
  9967. * 1, 58, 50, 42, 34, 26, 18,
  9968. * 10, 2, 59, 51, 43, 35, 27,
  9969. * 19, 11, 3, 60, 52, 44, 36,
  9970. * 63, 55, 47, 39, 31, 23, 15,
  9971. * 7, 62, 54, 46, 38, 30, 22,
  9972. * 14, 6, 61, 53, 45, 37, 29,
  9973. * 21, 13, 5, 28, 20, 12, 4
  9974. * </pre>
  9975. *
  9976. * We represent this as an offset into an 8-byte array and a bit mask upon
  9977. * that byte. For example 57=(7*8)+1 so is the first (MSB) of the 7th byte.
  9978. *
  9979. * @constant
  9980. */
  9981. KeySchedule.PC1_offsets = [7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0];
  9982. /**
  9983. * Permuted Choice 1 (PC1) bit masks. Each of the 56 entries selects one bit
  9984. * of DES's 56 bit key.
  9985. *
  9986. * @constant
  9987. */
  9988. KeySchedule.PC1_masks = [128, 128, 128, 128, 128, 128, 128, 128, 64, 64, 64, 64, 64, 64, 64, 64, 32, 32, 32, 32, 32, 32, 32, 32, 16, 16, 16, 16, 2, 2, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 8, 8, 8, 8, 16, 16, 16, 16];
  9989. /**
  9990. * Permuted Choice 2 (PC2) selects the active 48 bits from the 56 bits of
  9991. * the key.
  9992. * <p>
  9993. *
  9994. * <pre>
  9995. * The PC2 is defined as:
  9996. *
  9997. * 14, 17, 11, 24, 1, 5,
  9998. * 3, 28, 15, 6, 21, 10,
  9999. * 23, 19, 12, 4, 26, 8,
  10000. * 16, 7, 27, 20, 13, 2,
  10001. * 41, 52, 31, 37, 47, 55,
  10002. * 30, 40, 51, 45, 33, 48,
  10003. * 44, 49, 39, 56, 34, 53,
  10004. * 46, 42, 50, 36, 29, 32
  10005. * </pre>
  10006. *
  10007. * We invert the choice to specify what each bit adds to each 6-bit value of
  10008. * the key. For example, bit 1 is the 5th bit selected so this add 2 to the
  10009. * first 6-bit value.
  10010. *
  10011. * @constant
  10012. */
  10013. KeySchedule.PC2_offsets1 = [0, 3, 1, 2, 0, 1, 3, 2, 0, 1, 0, 2, 3, 0, 1, 3, 0, 0, 2, 3, 1, 0, 2, 0, 0, 2, 3, 1];
  10014. /**
  10015. * PC2 offsets for 2nd block.
  10016. *
  10017. * @constant
  10018. */
  10019. KeySchedule.PC2_offsets2 = [7, 5, 4, 7, 5, 6, 0, 7, 4, 0, 6, 5, 4, 7, 0, 6, 5, 7, 4, 5, 6, 7, 5, 4, 6, 0, 4, 6];
  10020. /**
  10021. * Permuted Choice 2 (PC2) masks for 1st block.
  10022. *
  10023. * @constant
  10024. */
  10025. KeySchedule.PC2_masks1 = [2, 1, 32, 4, 1, 4, 16, 1, 0, 1, 8, 8, 2, 32, 8, 32, 16, 0, 16, 4, 2, 0, 32, 4, 0, 2, 8, 16];
  10026. /**
  10027. * PC2 masks for 2nd block.
  10028. *
  10029. * @constant
  10030. */
  10031. KeySchedule.PC2_masks2 = [2, 32, 8, 1, 2, 2, 0, 4, 4, 0, 8, 16, 32, 16, 0, 32, 4, 32, 2, 1, 16, 8, 8, 16, 1, 0, 1, 4];
  10032. /**
  10033. * Cumulative key shifts.
  10034. *
  10035. * @constant
  10036. */
  10037. KeySchedule.keyShifts = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
  10038. KeySchedule.prototype._initialiseKeys = function (key) {
  10039. var i;
  10040. // extract 56 key bits in order determined by PC1
  10041. var bits = new Array(56);
  10042. for (i = 0; i < 56; i++) {
  10043. bits[i] = (key[KeySchedule.PC1_offsets[i]] & KeySchedule.PC1_masks[i]) != 0;
  10044. }
  10045. // split 56 bits into two 28-bit chunks
  10046. var bits1 = bits.slice(0, 28);
  10047. var bits2 = bits.slice(28, 56);
  10048. // duplicate each half to allow for easy bit shifts
  10049. bits1 = bits1.concat(bits1);
  10050. bits2 = bits2.concat(bits2);
  10051. // assemble the 16 keys
  10052. for (i = 0; i < 16; i++) {
  10053. var k = [0, 0, 0, 0, 0, 0, 0, 0];
  10054. // select the bits of the key according to PC2
  10055. var s = KeySchedule.keyShifts[i];
  10056. for (var j = 0; j < 28; j++) {
  10057. if (bits1[j + s]) {
  10058. k[KeySchedule.PC2_offsets1[j]] += KeySchedule.PC2_masks1[j];
  10059. }
  10060. if (bits2[j + s]) {
  10061. k[KeySchedule.PC2_offsets2[j]] += KeySchedule.PC2_masks2[j];
  10062. }
  10063. }
  10064. // Scale each of the 8 blocks to a 32-bit mask.
  10065. k[0] = ((k[0] & 0x1f) << 27) + ((k[0] & 0x20) >> 5);
  10066. for (var j = 1; j <= 6; j++) {
  10067. k[j] = k[j] << 27 - 4 * j;
  10068. }
  10069. k[7] = ((k[7] & 0x3e) >> 1) + ((k[7] & 0x1) << 31);
  10070. this.keys[i] = k;
  10071. }
  10072. };
  10073. /**
  10074. * Retrieve the key for a specified round
  10075. *
  10076. * @param i
  10077. * the round
  10078. * @returns the key
  10079. */
  10080. KeySchedule.prototype.getKey = function (i) {
  10081. return this.keys[i];
  10082. };
  10083. /***************************************************************************
  10084. *
  10085. * DES Engine State
  10086. *
  10087. **************************************************************************/
  10088. var State;
  10089. /**
  10090. * The algorithm's state. DES operates on two sets of 32-bits, with each
  10091. * block of 32-bits treated as a single number.
  10092. *
  10093. * @class
  10094. */
  10095. State = function State() {
  10096. /** The LHS of the Feistel scheme */
  10097. this.lhs = 0;
  10098. /** The RHS of the Feistel scheme */
  10099. this.rhs = 0;
  10100. };
  10101. /**
  10102. * The masks that select the SBOX input. Each SBOX accepts 6 bits from the
  10103. * input.
  10104. *
  10105. * @constant
  10106. */
  10107. State.SBOX_MASK = [0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000, 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f];
  10108. /**
  10109. * The SBOXes. The 8 SBOXes each map 6 bit masked bit of the input to 4 bits
  10110. * of output. These SBOXes include the post SBOX permutation and benefit
  10111. * from JavaScript's sparse arrays to make specifying the input match
  10112. * simple.
  10113. *
  10114. * @constant
  10115. */
  10116. State.SBOX = new Array(8);
  10117. var SBOX = State.SBOX;
  10118. SBOX[0] = new Array();
  10119. SBOX[0][0] = 0x808200; // 0 (0, 0) = 14
  10120. SBOX[0][268435456] = 0x8000; // 10000000 (0, 1) = 4
  10121. SBOX[0][536870912] = 0x808002; // 20000000 (0, 2) = 13
  10122. SBOX[0][805306368] = 0x2; // 30000000 (0, 3) = 1
  10123. SBOX[0][1073741824] = 0x200; // 40000000 (0, 4) = 2
  10124. SBOX[0][1342177280] = 0x808202; // 50000000 (0, 5) = 15
  10125. SBOX[0][1610612736] = 0x800202; // 60000000 (0, 6) = 11
  10126. SBOX[0][1879048192] = 0x800000; // 70000000 (0, 7) = 8
  10127. SBOX[0][-2147483648] = 0x202; // 80000000 (0, 8) = 3
  10128. SBOX[0][-1879048192] = 0x800200; // 90000000 (0, 9) = 10
  10129. SBOX[0][-1610612736] = 0x8200; // a0000000 (0, 10) = 6
  10130. SBOX[0][-1342177280] = 0x808000; // b0000000 (0, 11) = 12
  10131. SBOX[0][-1073741824] = 0x8002; // c0000000 (0, 12) = 5
  10132. SBOX[0][-805306368] = 0x800002; // d0000000 (0, 13) = 9
  10133. SBOX[0][-536870912] = 0x0; // e0000000 (0, 14) = 0
  10134. SBOX[0][-268435456] = 0x8202; // f0000000 (0, 15) = 7
  10135. SBOX[0][134217728] = 0x0; // 8000000 (1, 0) = 0
  10136. SBOX[0][402653184] = 0x808202; // 18000000 (1, 1) = 15
  10137. SBOX[0][671088640] = 0x8202; // 28000000 (1, 2) = 7
  10138. SBOX[0][939524096] = 0x8000; // 38000000 (1, 3) = 4
  10139. SBOX[0][1207959552] = 0x808200; // 48000000 (1, 4) = 14
  10140. SBOX[0][1476395008] = 0x200; // 58000000 (1, 5) = 2
  10141. SBOX[0][1744830464] = 0x808002; // 68000000 (1, 6) = 13
  10142. SBOX[0][2013265920] = 0x2; // 78000000 (1, 7) = 1
  10143. SBOX[0][-2013265920] = 0x800200; // 88000000 (1, 8) = 10
  10144. SBOX[0][-1744830464] = 0x8200; // 98000000 (1, 9) = 6
  10145. SBOX[0][-1476395008] = 0x808000; // a8000000 (1, 10) = 12
  10146. SBOX[0][-1207959552] = 0x800202; // b8000000 (1, 11) = 11
  10147. SBOX[0][-939524096] = 0x800002; // c8000000 (1, 12) = 9
  10148. SBOX[0][-671088640] = 0x8002; // d8000000 (1, 13) = 5
  10149. SBOX[0][-402653184] = 0x202; // e8000000 (1, 14) = 3
  10150. SBOX[0][-134217728] = 0x800000; // f8000000 (1, 15) = 8
  10151. SBOX[0][1] = 0x8000; // 1 (2, 0) = 4
  10152. SBOX[0][268435457] = 0x2; // 10000001 (2, 1) = 1
  10153. SBOX[0][536870913] = 0x808200; // 20000001 (2, 2) = 14
  10154. SBOX[0][805306369] = 0x800000; // 30000001 (2, 3) = 8
  10155. SBOX[0][1073741825] = 0x808002; // 40000001 (2, 4) = 13
  10156. SBOX[0][1342177281] = 0x8200; // 50000001 (2, 5) = 6
  10157. SBOX[0][1610612737] = 0x200; // 60000001 (2, 6) = 2
  10158. SBOX[0][1879048193] = 0x800202; // 70000001 (2, 7) = 11
  10159. SBOX[0][-2147483647] = 0x808202; // 80000001 (2, 8) = 15
  10160. SBOX[0][-1879048191] = 0x808000; // 90000001 (2, 9) = 12
  10161. SBOX[0][-1610612735] = 0x800002; // a0000001 (2, 10) = 9
  10162. SBOX[0][-1342177279] = 0x8202; // b0000001 (2, 11) = 7
  10163. SBOX[0][-1073741823] = 0x202; // c0000001 (2, 12) = 3
  10164. SBOX[0][-805306367] = 0x800200; // d0000001 (2, 13) = 10
  10165. SBOX[0][-536870911] = 0x8002; // e0000001 (2, 14) = 5
  10166. SBOX[0][-268435455] = 0x0; // f0000001 (2, 15) = 0
  10167. SBOX[0][134217729] = 0x808202; // 8000001 (3, 0) = 15
  10168. SBOX[0][402653185] = 0x808000; // 18000001 (3, 1) = 12
  10169. SBOX[0][671088641] = 0x800000; // 28000001 (3, 2) = 8
  10170. SBOX[0][939524097] = 0x200; // 38000001 (3, 3) = 2
  10171. SBOX[0][1207959553] = 0x8000; // 48000001 (3, 4) = 4
  10172. SBOX[0][1476395009] = 0x800002; // 58000001 (3, 5) = 9
  10173. SBOX[0][1744830465] = 0x2; // 68000001 (3, 6) = 1
  10174. SBOX[0][2013265921] = 0x8202; // 78000001 (3, 7) = 7
  10175. SBOX[0][-2013265919] = 0x8002; // 88000001 (3, 8) = 5
  10176. SBOX[0][-1744830463] = 0x800202; // 98000001 (3, 9) = 11
  10177. SBOX[0][-1476395007] = 0x202; // a8000001 (3, 10) = 3
  10178. SBOX[0][-1207959551] = 0x808200; // b8000001 (3, 11) = 14
  10179. SBOX[0][-939524095] = 0x800200; // c8000001 (3, 12) = 10
  10180. SBOX[0][-671088639] = 0x0; // d8000001 (3, 13) = 0
  10181. SBOX[0][-402653183] = 0x8200; // e8000001 (3, 14) = 6
  10182. SBOX[0][-134217727] = 0x808002; // f8000001 (3, 15) = 13
  10183. SBOX[1] = new Array();
  10184. SBOX[1][0] = 0x40084010; // 0 (0, 0) = 15
  10185. SBOX[1][16777216] = 0x4000; // 1000000 (0, 1) = 1
  10186. SBOX[1][33554432] = 0x80000; // 2000000 (0, 2) = 8
  10187. SBOX[1][50331648] = 0x40080010; // 3000000 (0, 3) = 14
  10188. SBOX[1][67108864] = 0x40000010; // 4000000 (0, 4) = 6
  10189. SBOX[1][83886080] = 0x40084000; // 5000000 (0, 5) = 11
  10190. SBOX[1][100663296] = 0x40004000; // 6000000 (0, 6) = 3
  10191. SBOX[1][117440512] = 0x10; // 7000000 (0, 7) = 4
  10192. SBOX[1][134217728] = 0x84000; // 8000000 (0, 8) = 9
  10193. SBOX[1][150994944] = 0x40004010; // 9000000 (0, 9) = 7
  10194. SBOX[1][167772160] = 0x40000000; // a000000 (0, 10) = 2
  10195. SBOX[1][184549376] = 0x84010; // b000000 (0, 11) = 13
  10196. SBOX[1][201326592] = 0x80010; // c000000 (0, 12) = 12
  10197. SBOX[1][218103808] = 0x0; // d000000 (0, 13) = 0
  10198. SBOX[1][234881024] = 0x4010; // e000000 (0, 14) = 5
  10199. SBOX[1][251658240] = 0x40080000; // f000000 (0, 15) = 10
  10200. SBOX[1][8388608] = 0x40004000; // 800000 (1, 0) = 3
  10201. SBOX[1][25165824] = 0x84010; // 1800000 (1, 1) = 13
  10202. SBOX[1][41943040] = 0x10; // 2800000 (1, 2) = 4
  10203. SBOX[1][58720256] = 0x40004010; // 3800000 (1, 3) = 7
  10204. SBOX[1][75497472] = 0x40084010; // 4800000 (1, 4) = 15
  10205. SBOX[1][92274688] = 0x40000000; // 5800000 (1, 5) = 2
  10206. SBOX[1][109051904] = 0x80000; // 6800000 (1, 6) = 8
  10207. SBOX[1][125829120] = 0x40080010; // 7800000 (1, 7) = 14
  10208. SBOX[1][142606336] = 0x80010; // 8800000 (1, 8) = 12
  10209. SBOX[1][159383552] = 0x0; // 9800000 (1, 9) = 0
  10210. SBOX[1][176160768] = 0x4000; // a800000 (1, 10) = 1
  10211. SBOX[1][192937984] = 0x40080000; // b800000 (1, 11) = 10
  10212. SBOX[1][209715200] = 0x40000010; // c800000 (1, 12) = 6
  10213. SBOX[1][226492416] = 0x84000; // d800000 (1, 13) = 9
  10214. SBOX[1][243269632] = 0x40084000; // e800000 (1, 14) = 11
  10215. SBOX[1][260046848] = 0x4010; // f800000 (1, 15) = 5
  10216. SBOX[1][268435456] = 0x0; // 10000000 (2, 0) = 0
  10217. SBOX[1][285212672] = 0x40080010; // 11000000 (2, 1) = 14
  10218. SBOX[1][301989888] = 0x40004010; // 12000000 (2, 2) = 7
  10219. SBOX[1][318767104] = 0x40084000; // 13000000 (2, 3) = 11
  10220. SBOX[1][335544320] = 0x40080000; // 14000000 (2, 4) = 10
  10221. SBOX[1][352321536] = 0x10; // 15000000 (2, 5) = 4
  10222. SBOX[1][369098752] = 0x84010; // 16000000 (2, 6) = 13
  10223. SBOX[1][385875968] = 0x4000; // 17000000 (2, 7) = 1
  10224. SBOX[1][402653184] = 0x4010; // 18000000 (2, 8) = 5
  10225. SBOX[1][419430400] = 0x80000; // 19000000 (2, 9) = 8
  10226. SBOX[1][436207616] = 0x80010; // 1a000000 (2, 10) = 12
  10227. SBOX[1][452984832] = 0x40000010; // 1b000000 (2, 11) = 6
  10228. SBOX[1][469762048] = 0x84000; // 1c000000 (2, 12) = 9
  10229. SBOX[1][486539264] = 0x40004000; // 1d000000 (2, 13) = 3
  10230. SBOX[1][503316480] = 0x40000000; // 1e000000 (2, 14) = 2
  10231. SBOX[1][520093696] = 0x40084010; // 1f000000 (2, 15) = 15
  10232. SBOX[1][276824064] = 0x84010; // 10800000 (3, 0) = 13
  10233. SBOX[1][293601280] = 0x80000; // 11800000 (3, 1) = 8
  10234. SBOX[1][310378496] = 0x40080000; // 12800000 (3, 2) = 10
  10235. SBOX[1][327155712] = 0x4000; // 13800000 (3, 3) = 1
  10236. SBOX[1][343932928] = 0x40004000; // 14800000 (3, 4) = 3
  10237. SBOX[1][360710144] = 0x40084010; // 15800000 (3, 5) = 15
  10238. SBOX[1][377487360] = 0x10; // 16800000 (3, 6) = 4
  10239. SBOX[1][394264576] = 0x40000000; // 17800000 (3, 7) = 2
  10240. SBOX[1][411041792] = 0x40084000; // 18800000 (3, 8) = 11
  10241. SBOX[1][427819008] = 0x40000010; // 19800000 (3, 9) = 6
  10242. SBOX[1][444596224] = 0x40004010; // 1a800000 (3, 10) = 7
  10243. SBOX[1][461373440] = 0x80010; // 1b800000 (3, 11) = 12
  10244. SBOX[1][478150656] = 0x0; // 1c800000 (3, 12) = 0
  10245. SBOX[1][494927872] = 0x4010; // 1d800000 (3, 13) = 5
  10246. SBOX[1][511705088] = 0x40080010; // 1e800000 (3, 14) = 14
  10247. SBOX[1][528482304] = 0x84000; // 1f800000 (3, 15) = 9
  10248. SBOX[2] = new Array();
  10249. SBOX[2][0] = 0x104; // 0 (0, 0) = 10
  10250. SBOX[2][1048576] = 0x0; // 100000 (0, 1) = 0
  10251. SBOX[2][2097152] = 0x4000100; // 200000 (0, 2) = 9
  10252. SBOX[2][3145728] = 0x10104; // 300000 (0, 3) = 14
  10253. SBOX[2][4194304] = 0x10004; // 400000 (0, 4) = 6
  10254. SBOX[2][5242880] = 0x4000004; // 500000 (0, 5) = 3
  10255. SBOX[2][6291456] = 0x4010104; // 600000 (0, 6) = 15
  10256. SBOX[2][7340032] = 0x4010000; // 700000 (0, 7) = 5
  10257. SBOX[2][8388608] = 0x4000000; // 800000 (0, 8) = 1
  10258. SBOX[2][9437184] = 0x4010100; // 900000 (0, 9) = 13
  10259. SBOX[2][10485760] = 0x10100; // a00000 (0, 10) = 12
  10260. SBOX[2][11534336] = 0x4010004; // b00000 (0, 11) = 7
  10261. SBOX[2][12582912] = 0x4000104; // c00000 (0, 12) = 11
  10262. SBOX[2][13631488] = 0x10000; // d00000 (0, 13) = 4
  10263. SBOX[2][14680064] = 0x4; // e00000 (0, 14) = 2
  10264. SBOX[2][15728640] = 0x100; // f00000 (0, 15) = 8
  10265. SBOX[2][524288] = 0x4010100; // 80000 (1, 0) = 13
  10266. SBOX[2][1572864] = 0x4010004; // 180000 (1, 1) = 7
  10267. SBOX[2][2621440] = 0x0; // 280000 (1, 2) = 0
  10268. SBOX[2][3670016] = 0x4000100; // 380000 (1, 3) = 9
  10269. SBOX[2][4718592] = 0x4000004; // 480000 (1, 4) = 3
  10270. SBOX[2][5767168] = 0x10000; // 580000 (1, 5) = 4
  10271. SBOX[2][6815744] = 0x10004; // 680000 (1, 6) = 6
  10272. SBOX[2][7864320] = 0x104; // 780000 (1, 7) = 10
  10273. SBOX[2][8912896] = 0x4; // 880000 (1, 8) = 2
  10274. SBOX[2][9961472] = 0x100; // 980000 (1, 9) = 8
  10275. SBOX[2][11010048] = 0x4010000; // a80000 (1, 10) = 5
  10276. SBOX[2][12058624] = 0x10104; // b80000 (1, 11) = 14
  10277. SBOX[2][13107200] = 0x10100; // c80000 (1, 12) = 12
  10278. SBOX[2][14155776] = 0x4000104; // d80000 (1, 13) = 11
  10279. SBOX[2][15204352] = 0x4010104; // e80000 (1, 14) = 15
  10280. SBOX[2][16252928] = 0x4000000; // f80000 (1, 15) = 1
  10281. SBOX[2][16777216] = 0x4010100; // 1000000 (2, 0) = 13
  10282. SBOX[2][17825792] = 0x10004; // 1100000 (2, 1) = 6
  10283. SBOX[2][18874368] = 0x10000; // 1200000 (2, 2) = 4
  10284. SBOX[2][19922944] = 0x4000100; // 1300000 (2, 3) = 9
  10285. SBOX[2][20971520] = 0x100; // 1400000 (2, 4) = 8
  10286. SBOX[2][22020096] = 0x4010104; // 1500000 (2, 5) = 15
  10287. SBOX[2][23068672] = 0x4000004; // 1600000 (2, 6) = 3
  10288. SBOX[2][24117248] = 0x0; // 1700000 (2, 7) = 0
  10289. SBOX[2][25165824] = 0x4000104; // 1800000 (2, 8) = 11
  10290. SBOX[2][26214400] = 0x4000000; // 1900000 (2, 9) = 1
  10291. SBOX[2][27262976] = 0x4; // 1a00000 (2, 10) = 2
  10292. SBOX[2][28311552] = 0x10100; // 1b00000 (2, 11) = 12
  10293. SBOX[2][29360128] = 0x4010000; // 1c00000 (2, 12) = 5
  10294. SBOX[2][30408704] = 0x104; // 1d00000 (2, 13) = 10
  10295. SBOX[2][31457280] = 0x10104; // 1e00000 (2, 14) = 14
  10296. SBOX[2][32505856] = 0x4010004; // 1f00000 (2, 15) = 7
  10297. SBOX[2][17301504] = 0x4000000; // 1080000 (3, 0) = 1
  10298. SBOX[2][18350080] = 0x104; // 1180000 (3, 1) = 10
  10299. SBOX[2][19398656] = 0x4010100; // 1280000 (3, 2) = 13
  10300. SBOX[2][20447232] = 0x0; // 1380000 (3, 3) = 0
  10301. SBOX[2][21495808] = 0x10004; // 1480000 (3, 4) = 6
  10302. SBOX[2][22544384] = 0x4000100; // 1580000 (3, 5) = 9
  10303. SBOX[2][23592960] = 0x100; // 1680000 (3, 6) = 8
  10304. SBOX[2][24641536] = 0x4010004; // 1780000 (3, 7) = 7
  10305. SBOX[2][25690112] = 0x10000; // 1880000 (3, 8) = 4
  10306. SBOX[2][26738688] = 0x4010104; // 1980000 (3, 9) = 15
  10307. SBOX[2][27787264] = 0x10104; // 1a80000 (3, 10) = 14
  10308. SBOX[2][28835840] = 0x4000004; // 1b80000 (3, 11) = 3
  10309. SBOX[2][29884416] = 0x4000104; // 1c80000 (3, 12) = 11
  10310. SBOX[2][30932992] = 0x4010000; // 1d80000 (3, 13) = 5
  10311. SBOX[2][31981568] = 0x4; // 1e80000 (3, 14) = 2
  10312. SBOX[2][33030144] = 0x10100; // 1f80000 (3, 15) = 12
  10313. SBOX[3] = new Array();
  10314. SBOX[3][0] = 0x80401000; // 0 (0, 0) = 7
  10315. SBOX[3][65536] = 0x80001040; // 10000 (0, 1) = 13
  10316. SBOX[3][131072] = 0x401040; // 20000 (0, 2) = 14
  10317. SBOX[3][196608] = 0x80400000; // 30000 (0, 3) = 3
  10318. SBOX[3][262144] = 0x0; // 40000 (0, 4) = 0
  10319. SBOX[3][327680] = 0x401000; // 50000 (0, 5) = 6
  10320. SBOX[3][393216] = 0x80000040; // 60000 (0, 6) = 9
  10321. SBOX[3][458752] = 0x400040; // 70000 (0, 7) = 10
  10322. SBOX[3][524288] = 0x80000000; // 80000 (0, 8) = 1
  10323. SBOX[3][589824] = 0x400000; // 90000 (0, 9) = 2
  10324. SBOX[3][655360] = 0x40; // a0000 (0, 10) = 8
  10325. SBOX[3][720896] = 0x80001000; // b0000 (0, 11) = 5
  10326. SBOX[3][786432] = 0x80400040; // c0000 (0, 12) = 11
  10327. SBOX[3][851968] = 0x1040; // d0000 (0, 13) = 12
  10328. SBOX[3][917504] = 0x1000; // e0000 (0, 14) = 4
  10329. SBOX[3][983040] = 0x80401040; // f0000 (0, 15) = 15
  10330. SBOX[3][32768] = 0x80001040; // 8000 (1, 0) = 13
  10331. SBOX[3][98304] = 0x40; // 18000 (1, 1) = 8
  10332. SBOX[3][163840] = 0x80400040; // 28000 (1, 2) = 11
  10333. SBOX[3][229376] = 0x80001000; // 38000 (1, 3) = 5
  10334. SBOX[3][294912] = 0x401000; // 48000 (1, 4) = 6
  10335. SBOX[3][360448] = 0x80401040; // 58000 (1, 5) = 15
  10336. SBOX[3][425984] = 0x0; // 68000 (1, 6) = 0
  10337. SBOX[3][491520] = 0x80400000; // 78000 (1, 7) = 3
  10338. SBOX[3][557056] = 0x1000; // 88000 (1, 8) = 4
  10339. SBOX[3][622592] = 0x80401000; // 98000 (1, 9) = 7
  10340. SBOX[3][688128] = 0x400000; // a8000 (1, 10) = 2
  10341. SBOX[3][753664] = 0x1040; // b8000 (1, 11) = 12
  10342. SBOX[3][819200] = 0x80000000; // c8000 (1, 12) = 1
  10343. SBOX[3][884736] = 0x400040; // d8000 (1, 13) = 10
  10344. SBOX[3][950272] = 0x401040; // e8000 (1, 14) = 14
  10345. SBOX[3][1015808] = 0x80000040; // f8000 (1, 15) = 9
  10346. SBOX[3][1048576] = 0x400040; // 100000 (2, 0) = 10
  10347. SBOX[3][1114112] = 0x401000; // 110000 (2, 1) = 6
  10348. SBOX[3][1179648] = 0x80000040; // 120000 (2, 2) = 9
  10349. SBOX[3][1245184] = 0x0; // 130000 (2, 3) = 0
  10350. SBOX[3][1310720] = 0x1040; // 140000 (2, 4) = 12
  10351. SBOX[3][1376256] = 0x80400040; // 150000 (2, 5) = 11
  10352. SBOX[3][1441792] = 0x80401000; // 160000 (2, 6) = 7
  10353. SBOX[3][1507328] = 0x80001040; // 170000 (2, 7) = 13
  10354. SBOX[3][1572864] = 0x80401040; // 180000 (2, 8) = 15
  10355. SBOX[3][1638400] = 0x80000000; // 190000 (2, 9) = 1
  10356. SBOX[3][1703936] = 0x80400000; // 1a0000 (2, 10) = 3
  10357. SBOX[3][1769472] = 0x401040; // 1b0000 (2, 11) = 14
  10358. SBOX[3][1835008] = 0x80001000; // 1c0000 (2, 12) = 5
  10359. SBOX[3][1900544] = 0x400000; // 1d0000 (2, 13) = 2
  10360. SBOX[3][1966080] = 0x40; // 1e0000 (2, 14) = 8
  10361. SBOX[3][2031616] = 0x1000; // 1f0000 (2, 15) = 4
  10362. SBOX[3][1081344] = 0x80400000; // 108000 (3, 0) = 3
  10363. SBOX[3][1146880] = 0x80401040; // 118000 (3, 1) = 15
  10364. SBOX[3][1212416] = 0x0; // 128000 (3, 2) = 0
  10365. SBOX[3][1277952] = 0x401000; // 138000 (3, 3) = 6
  10366. SBOX[3][1343488] = 0x400040; // 148000 (3, 4) = 10
  10367. SBOX[3][1409024] = 0x80000000; // 158000 (3, 5) = 1
  10368. SBOX[3][1474560] = 0x80001040; // 168000 (3, 6) = 13
  10369. SBOX[3][1540096] = 0x40; // 178000 (3, 7) = 8
  10370. SBOX[3][1605632] = 0x80000040; // 188000 (3, 8) = 9
  10371. SBOX[3][1671168] = 0x1000; // 198000 (3, 9) = 4
  10372. SBOX[3][1736704] = 0x80001000; // 1a8000 (3, 10) = 5
  10373. SBOX[3][1802240] = 0x80400040; // 1b8000 (3, 11) = 11
  10374. SBOX[3][1867776] = 0x1040; // 1c8000 (3, 12) = 12
  10375. SBOX[3][1933312] = 0x80401000; // 1d8000 (3, 13) = 7
  10376. SBOX[3][1998848] = 0x400000; // 1e8000 (3, 14) = 2
  10377. SBOX[3][2064384] = 0x401040; // 1f8000 (3, 15) = 14
  10378. SBOX[4] = new Array();
  10379. SBOX[4][0] = 0x80; // 0 (0, 0) = 2
  10380. SBOX[4][4096] = 0x1040000; // 1000 (0, 1) = 12
  10381. SBOX[4][8192] = 0x40000; // 2000 (0, 2) = 4
  10382. SBOX[4][12288] = 0x20000000; // 3000 (0, 3) = 1
  10383. SBOX[4][16384] = 0x20040080; // 4000 (0, 4) = 7
  10384. SBOX[4][20480] = 0x1000080; // 5000 (0, 5) = 10
  10385. SBOX[4][24576] = 0x21000080; // 6000 (0, 6) = 11
  10386. SBOX[4][28672] = 0x40080; // 7000 (0, 7) = 6
  10387. SBOX[4][32768] = 0x1000000; // 8000 (0, 8) = 8
  10388. SBOX[4][36864] = 0x20040000; // 9000 (0, 9) = 5
  10389. SBOX[4][40960] = 0x20000080; // a000 (0, 10) = 3
  10390. SBOX[4][45056] = 0x21040080; // b000 (0, 11) = 15
  10391. SBOX[4][49152] = 0x21040000; // c000 (0, 12) = 13
  10392. SBOX[4][53248] = 0x0; // d000 (0, 13) = 0
  10393. SBOX[4][57344] = 0x1040080; // e000 (0, 14) = 14
  10394. SBOX[4][61440] = 0x21000000; // f000 (0, 15) = 9
  10395. SBOX[4][2048] = 0x1040080; // 800 (1, 0) = 14
  10396. SBOX[4][6144] = 0x21000080; // 1800 (1, 1) = 11
  10397. SBOX[4][10240] = 0x80; // 2800 (1, 2) = 2
  10398. SBOX[4][14336] = 0x1040000; // 3800 (1, 3) = 12
  10399. SBOX[4][18432] = 0x40000; // 4800 (1, 4) = 4
  10400. SBOX[4][22528] = 0x20040080; // 5800 (1, 5) = 7
  10401. SBOX[4][26624] = 0x21040000; // 6800 (1, 6) = 13
  10402. SBOX[4][30720] = 0x20000000; // 7800 (1, 7) = 1
  10403. SBOX[4][34816] = 0x20040000; // 8800 (1, 8) = 5
  10404. SBOX[4][38912] = 0x0; // 9800 (1, 9) = 0
  10405. SBOX[4][43008] = 0x21040080; // a800 (1, 10) = 15
  10406. SBOX[4][47104] = 0x1000080; // b800 (1, 11) = 10
  10407. SBOX[4][51200] = 0x20000080; // c800 (1, 12) = 3
  10408. SBOX[4][55296] = 0x21000000; // d800 (1, 13) = 9
  10409. SBOX[4][59392] = 0x1000000; // e800 (1, 14) = 8
  10410. SBOX[4][63488] = 0x40080; // f800 (1, 15) = 6
  10411. SBOX[4][65536] = 0x40000; // 10000 (2, 0) = 4
  10412. SBOX[4][69632] = 0x80; // 11000 (2, 1) = 2
  10413. SBOX[4][73728] = 0x20000000; // 12000 (2, 2) = 1
  10414. SBOX[4][77824] = 0x21000080; // 13000 (2, 3) = 11
  10415. SBOX[4][81920] = 0x1000080; // 14000 (2, 4) = 10
  10416. SBOX[4][86016] = 0x21040000; // 15000 (2, 5) = 13
  10417. SBOX[4][90112] = 0x20040080; // 16000 (2, 6) = 7
  10418. SBOX[4][94208] = 0x1000000; // 17000 (2, 7) = 8
  10419. SBOX[4][98304] = 0x21040080; // 18000 (2, 8) = 15
  10420. SBOX[4][102400] = 0x21000000; // 19000 (2, 9) = 9
  10421. SBOX[4][106496] = 0x1040000; // 1a000 (2, 10) = 12
  10422. SBOX[4][110592] = 0x20040000; // 1b000 (2, 11) = 5
  10423. SBOX[4][114688] = 0x40080; // 1c000 (2, 12) = 6
  10424. SBOX[4][118784] = 0x20000080; // 1d000 (2, 13) = 3
  10425. SBOX[4][122880] = 0x0; // 1e000 (2, 14) = 0
  10426. SBOX[4][126976] = 0x1040080; // 1f000 (2, 15) = 14
  10427. SBOX[4][67584] = 0x21000080; // 10800 (3, 0) = 11
  10428. SBOX[4][71680] = 0x1000000; // 11800 (3, 1) = 8
  10429. SBOX[4][75776] = 0x1040000; // 12800 (3, 2) = 12
  10430. SBOX[4][79872] = 0x20040080; // 13800 (3, 3) = 7
  10431. SBOX[4][83968] = 0x20000000; // 14800 (3, 4) = 1
  10432. SBOX[4][88064] = 0x1040080; // 15800 (3, 5) = 14
  10433. SBOX[4][92160] = 0x80; // 16800 (3, 6) = 2
  10434. SBOX[4][96256] = 0x21040000; // 17800 (3, 7) = 13
  10435. SBOX[4][100352] = 0x40080; // 18800 (3, 8) = 6
  10436. SBOX[4][104448] = 0x21040080; // 19800 (3, 9) = 15
  10437. SBOX[4][108544] = 0x0; // 1a800 (3, 10) = 0
  10438. SBOX[4][112640] = 0x21000000; // 1b800 (3, 11) = 9
  10439. SBOX[4][116736] = 0x1000080; // 1c800 (3, 12) = 10
  10440. SBOX[4][120832] = 0x40000; // 1d800 (3, 13) = 4
  10441. SBOX[4][124928] = 0x20040000; // 1e800 (3, 14) = 5
  10442. SBOX[4][129024] = 0x20000080; // 1f800 (3, 15) = 3
  10443. SBOX[5] = new Array();
  10444. SBOX[5][0] = 0x10000008; // 0 (0, 0) = 12
  10445. SBOX[5][256] = 0x2000; // 100 (0, 1) = 1
  10446. SBOX[5][512] = 0x10200000; // 200 (0, 2) = 10
  10447. SBOX[5][768] = 0x10202008; // 300 (0, 3) = 15
  10448. SBOX[5][1024] = 0x10002000; // 400 (0, 4) = 9
  10449. SBOX[5][1280] = 0x200000; // 500 (0, 5) = 2
  10450. SBOX[5][1536] = 0x200008; // 600 (0, 6) = 6
  10451. SBOX[5][1792] = 0x10000000; // 700 (0, 7) = 8
  10452. SBOX[5][2048] = 0x0; // 800 (0, 8) = 0
  10453. SBOX[5][2304] = 0x10002008; // 900 (0, 9) = 13
  10454. SBOX[5][2560] = 0x202000; // a00 (0, 10) = 3
  10455. SBOX[5][2816] = 0x8; // b00 (0, 11) = 4
  10456. SBOX[5][3072] = 0x10200008; // c00 (0, 12) = 14
  10457. SBOX[5][3328] = 0x202008; // d00 (0, 13) = 7
  10458. SBOX[5][3584] = 0x2008; // e00 (0, 14) = 5
  10459. SBOX[5][3840] = 0x10202000; // f00 (0, 15) = 11
  10460. SBOX[5][128] = 0x10200000; // 80 (1, 0) = 10
  10461. SBOX[5][384] = 0x10202008; // 180 (1, 1) = 15
  10462. SBOX[5][640] = 0x8; // 280 (1, 2) = 4
  10463. SBOX[5][896] = 0x200000; // 380 (1, 3) = 2
  10464. SBOX[5][1152] = 0x202008; // 480 (1, 4) = 7
  10465. SBOX[5][1408] = 0x10000008; // 580 (1, 5) = 12
  10466. SBOX[5][1664] = 0x10002000; // 680 (1, 6) = 9
  10467. SBOX[5][1920] = 0x2008; // 780 (1, 7) = 5
  10468. SBOX[5][2176] = 0x200008; // 880 (1, 8) = 6
  10469. SBOX[5][2432] = 0x2000; // 980 (1, 9) = 1
  10470. SBOX[5][2688] = 0x10002008; // a80 (1, 10) = 13
  10471. SBOX[5][2944] = 0x10200008; // b80 (1, 11) = 14
  10472. SBOX[5][3200] = 0x0; // c80 (1, 12) = 0
  10473. SBOX[5][3456] = 0x10202000; // d80 (1, 13) = 11
  10474. SBOX[5][3712] = 0x202000; // e80 (1, 14) = 3
  10475. SBOX[5][3968] = 0x10000000; // f80 (1, 15) = 8
  10476. SBOX[5][4096] = 0x10002000; // 1000 (2, 0) = 9
  10477. SBOX[5][4352] = 0x10200008; // 1100 (2, 1) = 14
  10478. SBOX[5][4608] = 0x10202008; // 1200 (2, 2) = 15
  10479. SBOX[5][4864] = 0x2008; // 1300 (2, 3) = 5
  10480. SBOX[5][5120] = 0x200000; // 1400 (2, 4) = 2
  10481. SBOX[5][5376] = 0x10000000; // 1500 (2, 5) = 8
  10482. SBOX[5][5632] = 0x10000008; // 1600 (2, 6) = 12
  10483. SBOX[5][5888] = 0x202000; // 1700 (2, 7) = 3
  10484. SBOX[5][6144] = 0x202008; // 1800 (2, 8) = 7
  10485. SBOX[5][6400] = 0x0; // 1900 (2, 9) = 0
  10486. SBOX[5][6656] = 0x8; // 1a00 (2, 10) = 4
  10487. SBOX[5][6912] = 0x10200000; // 1b00 (2, 11) = 10
  10488. SBOX[5][7168] = 0x2000; // 1c00 (2, 12) = 1
  10489. SBOX[5][7424] = 0x10002008; // 1d00 (2, 13) = 13
  10490. SBOX[5][7680] = 0x10202000; // 1e00 (2, 14) = 11
  10491. SBOX[5][7936] = 0x200008; // 1f00 (2, 15) = 6
  10492. SBOX[5][4224] = 0x8; // 1080 (3, 0) = 4
  10493. SBOX[5][4480] = 0x202000; // 1180 (3, 1) = 3
  10494. SBOX[5][4736] = 0x200000; // 1280 (3, 2) = 2
  10495. SBOX[5][4992] = 0x10000008; // 1380 (3, 3) = 12
  10496. SBOX[5][5248] = 0x10002000; // 1480 (3, 4) = 9
  10497. SBOX[5][5504] = 0x2008; // 1580 (3, 5) = 5
  10498. SBOX[5][5760] = 0x10202008; // 1680 (3, 6) = 15
  10499. SBOX[5][6016] = 0x10200000; // 1780 (3, 7) = 10
  10500. SBOX[5][6272] = 0x10202000; // 1880 (3, 8) = 11
  10501. SBOX[5][6528] = 0x10200008; // 1980 (3, 9) = 14
  10502. SBOX[5][6784] = 0x2000; // 1a80 (3, 10) = 1
  10503. SBOX[5][7040] = 0x202008; // 1b80 (3, 11) = 7
  10504. SBOX[5][7296] = 0x200008; // 1c80 (3, 12) = 6
  10505. SBOX[5][7552] = 0x0; // 1d80 (3, 13) = 0
  10506. SBOX[5][7808] = 0x10000000; // 1e80 (3, 14) = 8
  10507. SBOX[5][8064] = 0x10002008; // 1f80 (3, 15) = 13
  10508. SBOX[6] = new Array();
  10509. SBOX[6][0] = 0x100000; // 0 (0, 0) = 4
  10510. SBOX[6][16] = 0x2000401; // 10 (0, 1) = 11
  10511. SBOX[6][32] = 0x400; // 20 (0, 2) = 2
  10512. SBOX[6][48] = 0x100401; // 30 (0, 3) = 14
  10513. SBOX[6][64] = 0x2100401; // 40 (0, 4) = 15
  10514. SBOX[6][80] = 0x0; // 50 (0, 5) = 0
  10515. SBOX[6][96] = 0x1; // 60 (0, 6) = 8
  10516. SBOX[6][112] = 0x2100001; // 70 (0, 7) = 13
  10517. SBOX[6][128] = 0x2000400; // 80 (0, 8) = 3
  10518. SBOX[6][144] = 0x100001; // 90 (0, 9) = 12
  10519. SBOX[6][160] = 0x2000001; // a0 (0, 10) = 9
  10520. SBOX[6][176] = 0x2100400; // b0 (0, 11) = 7
  10521. SBOX[6][192] = 0x2100000; // c0 (0, 12) = 5
  10522. SBOX[6][208] = 0x401; // d0 (0, 13) = 10
  10523. SBOX[6][224] = 0x100400; // e0 (0, 14) = 6
  10524. SBOX[6][240] = 0x2000000; // f0 (0, 15) = 1
  10525. SBOX[6][8] = 0x2100001; // 8 (1, 0) = 13
  10526. SBOX[6][24] = 0x0; // 18 (1, 1) = 0
  10527. SBOX[6][40] = 0x2000401; // 28 (1, 2) = 11
  10528. SBOX[6][56] = 0x2100400; // 38 (1, 3) = 7
  10529. SBOX[6][72] = 0x100000; // 48 (1, 4) = 4
  10530. SBOX[6][88] = 0x2000001; // 58 (1, 5) = 9
  10531. SBOX[6][104] = 0x2000000; // 68 (1, 6) = 1
  10532. SBOX[6][120] = 0x401; // 78 (1, 7) = 10
  10533. SBOX[6][136] = 0x100401; // 88 (1, 8) = 14
  10534. SBOX[6][152] = 0x2000400; // 98 (1, 9) = 3
  10535. SBOX[6][168] = 0x2100000; // a8 (1, 10) = 5
  10536. SBOX[6][184] = 0x100001; // b8 (1, 11) = 12
  10537. SBOX[6][200] = 0x400; // c8 (1, 12) = 2
  10538. SBOX[6][216] = 0x2100401; // d8 (1, 13) = 15
  10539. SBOX[6][232] = 0x1; // e8 (1, 14) = 8
  10540. SBOX[6][248] = 0x100400; // f8 (1, 15) = 6
  10541. SBOX[6][256] = 0x2000000; // 100 (2, 0) = 1
  10542. SBOX[6][272] = 0x100000; // 110 (2, 1) = 4
  10543. SBOX[6][288] = 0x2000401; // 120 (2, 2) = 11
  10544. SBOX[6][304] = 0x2100001; // 130 (2, 3) = 13
  10545. SBOX[6][320] = 0x100001; // 140 (2, 4) = 12
  10546. SBOX[6][336] = 0x2000400; // 150 (2, 5) = 3
  10547. SBOX[6][352] = 0x2100400; // 160 (2, 6) = 7
  10548. SBOX[6][368] = 0x100401; // 170 (2, 7) = 14
  10549. SBOX[6][384] = 0x401; // 180 (2, 8) = 10
  10550. SBOX[6][400] = 0x2100401; // 190 (2, 9) = 15
  10551. SBOX[6][416] = 0x100400; // 1a0 (2, 10) = 6
  10552. SBOX[6][432] = 0x1; // 1b0 (2, 11) = 8
  10553. SBOX[6][448] = 0x0; // 1c0 (2, 12) = 0
  10554. SBOX[6][464] = 0x2100000; // 1d0 (2, 13) = 5
  10555. SBOX[6][480] = 0x2000001; // 1e0 (2, 14) = 9
  10556. SBOX[6][496] = 0x400; // 1f0 (2, 15) = 2
  10557. SBOX[6][264] = 0x100400; // 108 (3, 0) = 6
  10558. SBOX[6][280] = 0x2000401; // 118 (3, 1) = 11
  10559. SBOX[6][296] = 0x2100001; // 128 (3, 2) = 13
  10560. SBOX[6][312] = 0x1; // 138 (3, 3) = 8
  10561. SBOX[6][328] = 0x2000000; // 148 (3, 4) = 1
  10562. SBOX[6][344] = 0x100000; // 158 (3, 5) = 4
  10563. SBOX[6][360] = 0x401; // 168 (3, 6) = 10
  10564. SBOX[6][376] = 0x2100400; // 178 (3, 7) = 7
  10565. SBOX[6][392] = 0x2000001; // 188 (3, 8) = 9
  10566. SBOX[6][408] = 0x2100000; // 198 (3, 9) = 5
  10567. SBOX[6][424] = 0x0; // 1a8 (3, 10) = 0
  10568. SBOX[6][440] = 0x2100401; // 1b8 (3, 11) = 15
  10569. SBOX[6][456] = 0x100401; // 1c8 (3, 12) = 14
  10570. SBOX[6][472] = 0x400; // 1d8 (3, 13) = 2
  10571. SBOX[6][488] = 0x2000400; // 1e8 (3, 14) = 3
  10572. SBOX[6][504] = 0x100001; // 1f8 (3, 15) = 12
  10573. SBOX[7] = new Array();
  10574. SBOX[7][0] = 0x8000820; // 0 (0, 0) = 13
  10575. SBOX[7][1] = 0x20000; // 1 (0, 1) = 2
  10576. SBOX[7][2] = 0x8000000; // 2 (0, 2) = 8
  10577. SBOX[7][3] = 0x20; // 3 (0, 3) = 4
  10578. SBOX[7][4] = 0x20020; // 4 (0, 4) = 6
  10579. SBOX[7][5] = 0x8020820; // 5 (0, 5) = 15
  10580. SBOX[7][6] = 0x8020800; // 6 (0, 6) = 11
  10581. SBOX[7][7] = 0x800; // 7 (0, 7) = 1
  10582. SBOX[7][8] = 0x8020000; // 8 (0, 8) = 10
  10583. SBOX[7][9] = 0x8000800; // 9 (0, 9) = 9
  10584. SBOX[7][10] = 0x20800; // a (0, 10) = 3
  10585. SBOX[7][11] = 0x8020020; // b (0, 11) = 14
  10586. SBOX[7][12] = 0x820; // c (0, 12) = 5
  10587. SBOX[7][13] = 0x0; // d (0, 13) = 0
  10588. SBOX[7][14] = 0x8000020; // e (0, 14) = 12
  10589. SBOX[7][15] = 0x20820; // f (0, 15) = 7
  10590. SBOX[7][-2147483648] = 0x800; // 80000000 (1, 0) = 1
  10591. SBOX[7][-2147483647] = 0x8020820; // 80000001 (1, 1) = 15
  10592. SBOX[7][-2147483646] = 0x8000820; // 80000002 (1, 2) = 13
  10593. SBOX[7][-2147483645] = 0x8000000; // 80000003 (1, 3) = 8
  10594. SBOX[7][-2147483644] = 0x8020000; // 80000004 (1, 4) = 10
  10595. SBOX[7][-2147483643] = 0x20800; // 80000005 (1, 5) = 3
  10596. SBOX[7][-2147483642] = 0x20820; // 80000006 (1, 6) = 7
  10597. SBOX[7][-2147483641] = 0x20; // 80000007 (1, 7) = 4
  10598. SBOX[7][-2147483640] = 0x8000020; // 80000008 (1, 8) = 12
  10599. SBOX[7][-2147483639] = 0x820; // 80000009 (1, 9) = 5
  10600. SBOX[7][-2147483638] = 0x20020; // 8000000a (1, 10) = 6
  10601. SBOX[7][-2147483637] = 0x8020800; // 8000000b (1, 11) = 11
  10602. SBOX[7][-2147483636] = 0x0; // 8000000c (1, 12) = 0
  10603. SBOX[7][-2147483635] = 0x8020020; // 8000000d (1, 13) = 14
  10604. SBOX[7][-2147483634] = 0x8000800; // 8000000e (1, 14) = 9
  10605. SBOX[7][-2147483633] = 0x20000; // 8000000f (1, 15) = 2
  10606. SBOX[7][16] = 0x20820; // 10 (2, 0) = 7
  10607. SBOX[7][17] = 0x8020800; // 11 (2, 1) = 11
  10608. SBOX[7][18] = 0x20; // 12 (2, 2) = 4
  10609. SBOX[7][19] = 0x800; // 13 (2, 3) = 1
  10610. SBOX[7][20] = 0x8000800; // 14 (2, 4) = 9
  10611. SBOX[7][21] = 0x8000020; // 15 (2, 5) = 12
  10612. SBOX[7][22] = 0x8020020; // 16 (2, 6) = 14
  10613. SBOX[7][23] = 0x20000; // 17 (2, 7) = 2
  10614. SBOX[7][24] = 0x0; // 18 (2, 8) = 0
  10615. SBOX[7][25] = 0x20020; // 19 (2, 9) = 6
  10616. SBOX[7][26] = 0x8020000; // 1a (2, 10) = 10
  10617. SBOX[7][27] = 0x8000820; // 1b (2, 11) = 13
  10618. SBOX[7][28] = 0x8020820; // 1c (2, 12) = 15
  10619. SBOX[7][29] = 0x20800; // 1d (2, 13) = 3
  10620. SBOX[7][30] = 0x820; // 1e (2, 14) = 5
  10621. SBOX[7][31] = 0x8000000; // 1f (2, 15) = 8
  10622. SBOX[7][-2147483632] = 0x20000; // 80000010 (3, 0) = 2
  10623. SBOX[7][-2147483631] = 0x800; // 80000011 (3, 1) = 1
  10624. SBOX[7][-2147483630] = 0x8020020; // 80000012 (3, 2) = 14
  10625. SBOX[7][-2147483629] = 0x20820; // 80000013 (3, 3) = 7
  10626. SBOX[7][-2147483628] = 0x20; // 80000014 (3, 4) = 4
  10627. SBOX[7][-2147483627] = 0x8020000; // 80000015 (3, 5) = 10
  10628. SBOX[7][-2147483626] = 0x8000000; // 80000016 (3, 6) = 8
  10629. SBOX[7][-2147483625] = 0x8000820; // 80000017 (3, 7) = 13
  10630. SBOX[7][-2147483624] = 0x8020820; // 80000018 (3, 8) = 15
  10631. SBOX[7][-2147483623] = 0x8000020; // 80000019 (3, 9) = 12
  10632. SBOX[7][-2147483622] = 0x8000800; // 8000001a (3, 10) = 9
  10633. SBOX[7][-2147483621] = 0x0; // 8000001b (3, 11) = 0
  10634. SBOX[7][-2147483620] = 0x20800; // 8000001c (3, 12) = 3
  10635. SBOX[7][-2147483619] = 0x820; // 8000001d (3, 13) = 5
  10636. SBOX[7][-2147483618] = 0x20020; // 8000001e (3, 14) = 6
  10637. SBOX[7][-2147483617] = 0x8020800; // 8000001f (3, 15) = 11
  10638. State.prototype._exchangeLR = function (v, m) {
  10639. var t = (this.lhs >> v ^ this.rhs) & m;
  10640. this.rhs ^= t;
  10641. this.lhs ^= t << v;
  10642. };
  10643. State.prototype._exchangeRL = function (v, m) {
  10644. var t = (this.rhs >> v ^ this.lhs) & m;
  10645. this.lhs ^= t;
  10646. this.rhs ^= t << v;
  10647. };
  10648. /**
  10649. * Perform the initial permutation of the input to create the starting state
  10650. * of the algorithm. The initial permutation maps each consecutive bit of
  10651. * the input into a different byte of the state.
  10652. *
  10653. * <pre>
  10654. * The initial permutation is defined to be:
  10655. *
  10656. * 58 50 42 34 26 18 10 2
  10657. * 60 52 44 36 28 20 12 4
  10658. * 62 54 46 38 30 22 14 6
  10659. * 64 56 48 40 32 24 16 8
  10660. * 57 49 41 33 25 17 9 1
  10661. * 59 51 43 35 27 19 11 3
  10662. * 61 53 45 37 29 21 13 5
  10663. * 63 55 47 39 31 23 15 7
  10664. * </pre>
  10665. *
  10666. *
  10667. * @param message
  10668. * The message as an array of unsigned bytes.
  10669. * @param offset
  10670. * The offset into the message that the current 64-bit block
  10671. * begins.
  10672. * @returns the initial engine state
  10673. */
  10674. State.prototype.initialPerm = function (message, offset) {
  10675. var input = message.slice(offset, offset + 8);
  10676. this.lhs = (input[0] << 24) + (input[1] << 16) + (input[2] << 8) + input[3];
  10677. this.rhs = (input[4] << 24) + (input[5] << 16) + (input[6] << 8) + input[7];
  10678. this._exchangeLR(4, 0x0f0f0f0f);
  10679. this._exchangeLR(16, 0x0000ffff);
  10680. this._exchangeRL(2, 0x33333333);
  10681. this._exchangeRL(8, 0x00ff00ff);
  10682. this._exchangeLR(1, 0x55555555);
  10683. };
  10684. /**
  10685. * Perform one round of the DES algorithm using the given key. A round is
  10686. * defined as:
  10687. *
  10688. * <pre>
  10689. * L&amp;rsquo = R
  10690. * R&amp;rsquo = L &circ; f(R, k)
  10691. * </pre>
  10692. *
  10693. * where f consists of expanding, XORing with the key and contracting back
  10694. * with the SBOXes.
  10695. *
  10696. * Note that the final round is defined slightly differently as:
  10697. *
  10698. * <pre>
  10699. * L&amp;rsquo = L &circ; f(R, k)
  10700. * R&amp;rsquo = R
  10701. * </pre>
  10702. *
  10703. * Therefore in the final round this function produces LHS and RHS the wrong
  10704. * way around.
  10705. *
  10706. * @param k
  10707. * the key
  10708. */
  10709. State.prototype.round = function (k) {
  10710. var r = this.rhs,
  10711. l = this.lhs;
  10712. var f = 0;
  10713. for (var i = 0; i < 8; i++) {
  10714. var v = (r ^ k[i]) & State.SBOX_MASK[i];
  10715. f += State.SBOX[i][v];
  10716. }
  10717. this.lhs = r;
  10718. this.rhs = l ^ f;
  10719. };
  10720. /**
  10721. * Apply the inverse of the initial permutation.
  10722. *
  10723. * <pre>
  10724. * The inverse is defined to be:
  10725. *
  10726. * 40 8 48 16 56 24 64 32
  10727. * 39 7 47 15 55 23 63 31
  10728. * 38 6 46 14 54 22 62 30
  10729. * 37 5 45 13 53 21 61 29
  10730. * 36 4 44 12 52 20 60 28
  10731. * 35 3 43 11 51 19 59 27
  10732. * 34 2 42 10 50 18 58 26
  10733. * 33 1 41 9 49 17 57 25
  10734. * </pre>
  10735. *
  10736. * @param cipherText
  10737. * @param offset
  10738. */
  10739. State.prototype.finalPerm = function (cipherText, offset) {
  10740. var t = this.lhs;
  10741. this.lhs = this.rhs;
  10742. this.rhs = t;
  10743. this._exchangeLR(1, 0x55555555);
  10744. this._exchangeRL(8, 0x00ff00ff);
  10745. this._exchangeRL(2, 0x33333333);
  10746. this._exchangeLR(16, 0x0000ffff);
  10747. this._exchangeLR(4, 0x0f0f0f0f);
  10748. cipherText[offset] = this.lhs >> 24 & 0xff;
  10749. cipherText[offset + 1] = this.lhs >> 16 & 0xff;
  10750. cipherText[offset + 2] = this.lhs >> 8 & 0xff;
  10751. cipherText[offset + 3] = this.lhs & 0xff;
  10752. cipherText[offset + 4] = this.rhs >> 24 & 0xff;
  10753. cipherText[offset + 5] = this.rhs >> 16 & 0xff;
  10754. cipherText[offset + 6] = this.rhs >> 8 & 0xff;
  10755. cipherText[offset + 7] = this.rhs & 0xff;
  10756. };
  10757. /**
  10758. * DES cipher
  10759. */
  10760. var DES = C.DES = {
  10761. _blocksize: 2,
  10762. _keyschedule: null,
  10763. _state: new State(),
  10764. _init: function _init(k) {
  10765. this._keyschedule = new KeySchedule(k);
  10766. },
  10767. encrypt: function encrypt(message, password, options) {
  10768. options = options || {};
  10769. // Determine mode
  10770. var mode = options.mode || new C.mode.OFB();
  10771. // Allow mode to override options
  10772. if (mode.fixOptions) mode.fixOptions(options);
  10773. var
  10774. // Convert to bytes if message is a string
  10775. m = message.constructor == String ? UTF8.stringToBytes(message) : message,
  10776. // Generate random IV
  10777. iv = options.iv || util.randomBytes(8),
  10778. // Generate key
  10779. k = password.constructor == String ?
  10780. // Derive key from passphrase
  10781. C.PBKDF2(password, iv, 8, {
  10782. asBytes: true
  10783. }) :
  10784. // else, assume byte array representing cryptographic key
  10785. password;
  10786. // Create key schedule
  10787. this._keyschedule = new KeySchedule(k);
  10788. // Encrypt
  10789. mode.encrypt(DES, m, iv);
  10790. // Return ciphertext
  10791. m = options.iv ? m : iv.concat(m);
  10792. return options && options.asBytes ? m : util.bytesToBase64(m);
  10793. },
  10794. _encryptblock: function _encryptblock(message, offset) {
  10795. this._state.initialPerm(message, offset);
  10796. for (var i = 0; i <= 15; i++) {
  10797. this._state.round(this._keyschedule.getKey(i));
  10798. }
  10799. this._state.finalPerm(message, offset);
  10800. },
  10801. decrypt: function decrypt(ciphertext, password, options) {
  10802. options = options || {};
  10803. // Determine mode
  10804. var mode = options.mode || new C.mode.OFB();
  10805. // Allow mode to override options
  10806. if (mode.fixOptions) mode.fixOptions(options);
  10807. var
  10808. // Convert to bytes if ciphertext is a string
  10809. c = ciphertext.constructor == String ? util.base64ToBytes(ciphertext) : ciphertext,
  10810. // Separate IV and message
  10811. iv = options.iv || c.splice(0, 8),
  10812. // Generate key
  10813. k = password.constructor == String ?
  10814. // Derive key from passphrase
  10815. C.PBKDF2(password, iv, 32, {
  10816. asBytes: true
  10817. }) :
  10818. // else, assume byte array representing cryptographic key
  10819. password;
  10820. // Create key schedule
  10821. this._keyschedule = new KeySchedule(k);
  10822. mode.decrypt(DES, c, iv);
  10823. // Return plaintext
  10824. return options && options.asBytes ? c : UTF8.bytesToString(c);
  10825. },
  10826. _decryptblock: function _decryptblock(message, offset) {
  10827. this._state.initialPerm(message, offset);
  10828. for (var i = 15; i >= 0; i--) {
  10829. this._state.round(this._keyschedule.getKey(i));
  10830. }
  10831. this._state.finalPerm(message, offset);
  10832. }
  10833. };
  10834. })();
  10835. /***/ }),
  10836. /* 43 */
  10837. /*!*************************************************************************!*\
  10838. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/HMAC.js ***!
  10839. \*************************************************************************/
  10840. /*! no static exports found */
  10841. /***/ (function(module, exports, __webpack_require__) {
  10842. (function () {
  10843. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  10844. // Shortcuts
  10845. var util = C.util,
  10846. charenc = C.charenc,
  10847. UTF8 = charenc.UTF8,
  10848. Binary = charenc.Binary;
  10849. C.HMAC = function (hasher, message, key, options) {
  10850. // Convert to byte arrays
  10851. if (message.constructor == String) message = UTF8.stringToBytes(message);
  10852. if (key.constructor == String) key = UTF8.stringToBytes(key);
  10853. /* else, assume byte arrays already */
  10854. // Allow arbitrary length keys
  10855. if (key.length > hasher._blocksize * 4) key = hasher(key, {
  10856. asBytes: true
  10857. });
  10858. // XOR keys with pad constants
  10859. var okey = key.slice(0),
  10860. ikey = key.slice(0);
  10861. for (var i = 0; i < hasher._blocksize * 4; i++) {
  10862. okey[i] ^= 0x5C;
  10863. ikey[i] ^= 0x36;
  10864. }
  10865. var hmacbytes = hasher(okey.concat(hasher(ikey.concat(message), {
  10866. asBytes: true
  10867. })), {
  10868. asBytes: true
  10869. });
  10870. return options && options.asBytes ? hmacbytes : options && options.asString ? Binary.bytesToString(hmacbytes) : util.bytesToHex(hmacbytes);
  10871. };
  10872. })();
  10873. /***/ }),
  10874. /* 44 */
  10875. /*!**************************************************************************!*\
  10876. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/MARC4.js ***!
  10877. \**************************************************************************/
  10878. /*! no static exports found */
  10879. /***/ (function(module, exports, __webpack_require__) {
  10880. (function () {
  10881. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  10882. // Shortcuts
  10883. var util = C.util,
  10884. charenc = C.charenc,
  10885. UTF8 = charenc.UTF8,
  10886. Binary = charenc.Binary;
  10887. var MARC4 = C.MARC4 = {
  10888. /**
  10889. * Public API
  10890. */
  10891. encrypt: function encrypt(message, password) {
  10892. var
  10893. // Convert to bytes
  10894. m = UTF8.stringToBytes(message),
  10895. // Generate random IV
  10896. iv = util.randomBytes(16),
  10897. // Generate key
  10898. k = password.constructor == String ?
  10899. // Derive key from passphrase
  10900. C.PBKDF2(password, iv, 32, {
  10901. asBytes: true
  10902. }) :
  10903. // else, assume byte array representing cryptographic key
  10904. password;
  10905. // Encrypt
  10906. MARC4._marc4(m, k, 1536);
  10907. // Return ciphertext
  10908. return util.bytesToBase64(iv.concat(m));
  10909. },
  10910. decrypt: function decrypt(ciphertext, password) {
  10911. var
  10912. // Convert to bytes
  10913. c = util.base64ToBytes(ciphertext),
  10914. // Separate IV and message
  10915. iv = c.splice(0, 16),
  10916. // Generate key
  10917. k = password.constructor == String ?
  10918. // Derive key from passphrase
  10919. C.PBKDF2(password, iv, 32, {
  10920. asBytes: true
  10921. }) :
  10922. // else, assume byte array representing cryptographic key
  10923. password;
  10924. // Decrypt
  10925. MARC4._marc4(c, k, 1536);
  10926. // Return plaintext
  10927. return UTF8.bytesToString(c);
  10928. },
  10929. /**
  10930. * Internal methods
  10931. */
  10932. // The core
  10933. _marc4: function _marc4(m, k, drop) {
  10934. // State variables
  10935. var i, j, s, temp;
  10936. // Key setup
  10937. for (i = 0, s = []; i < 256; i++) {
  10938. s[i] = i;
  10939. }
  10940. for (i = 0, j = 0; i < 256; i++) {
  10941. j = (j + s[i] + k[i % k.length]) % 256;
  10942. // Swap
  10943. temp = s[i];
  10944. s[i] = s[j];
  10945. s[j] = temp;
  10946. }
  10947. // Clear counters
  10948. i = j = 0;
  10949. // Encryption
  10950. for (var k = -drop; k < m.length; k++) {
  10951. i = (i + 1) % 256;
  10952. j = (j + s[i]) % 256;
  10953. // Swap
  10954. temp = s[i];
  10955. s[i] = s[j];
  10956. s[j] = temp;
  10957. // Stop here if we're still dropping keystream
  10958. if (k < 0) continue;
  10959. // Encrypt
  10960. m[k] ^= s[(s[i] + s[j]) % 256];
  10961. }
  10962. }
  10963. };
  10964. })();
  10965. /***/ }),
  10966. /* 45 */
  10967. /*!************************************************************************!*\
  10968. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/MD5.js ***!
  10969. \************************************************************************/
  10970. /*! no static exports found */
  10971. /***/ (function(module, exports, __webpack_require__) {
  10972. (function () {
  10973. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  10974. // Shortcuts
  10975. var util = C.util,
  10976. charenc = C.charenc,
  10977. UTF8 = charenc.UTF8,
  10978. Binary = charenc.Binary;
  10979. // Public API
  10980. var MD5 = C.MD5 = function (message, options) {
  10981. var digestbytes = util.wordsToBytes(MD5._md5(message));
  10982. return options && options.asBytes ? digestbytes : options && options.asString ? Binary.bytesToString(digestbytes) : util.bytesToHex(digestbytes);
  10983. };
  10984. // The core
  10985. MD5._md5 = function (message) {
  10986. // Convert to byte array
  10987. if (message.constructor == String) message = UTF8.stringToBytes(message);
  10988. /* else, assume byte array already */
  10989. var m = util.bytesToWords(message),
  10990. l = message.length * 8,
  10991. a = 1732584193,
  10992. b = -271733879,
  10993. c = -1732584194,
  10994. d = 271733878;
  10995. // Swap endian
  10996. for (var i = 0; i < m.length; i++) {
  10997. m[i] = (m[i] << 8 | m[i] >>> 24) & 0x00FF00FF | (m[i] << 24 | m[i] >>> 8) & 0xFF00FF00;
  10998. }
  10999. // Padding
  11000. m[l >>> 5] |= 0x80 << l % 32;
  11001. m[(l + 64 >>> 9 << 4) + 14] = l;
  11002. // Method shortcuts
  11003. var FF = MD5._ff,
  11004. GG = MD5._gg,
  11005. HH = MD5._hh,
  11006. II = MD5._ii;
  11007. for (var i = 0; i < m.length; i += 16) {
  11008. var aa = a,
  11009. bb = b,
  11010. cc = c,
  11011. dd = d;
  11012. a = FF(a, b, c, d, m[i + 0], 7, -680876936);
  11013. d = FF(d, a, b, c, m[i + 1], 12, -389564586);
  11014. c = FF(c, d, a, b, m[i + 2], 17, 606105819);
  11015. b = FF(b, c, d, a, m[i + 3], 22, -1044525330);
  11016. a = FF(a, b, c, d, m[i + 4], 7, -176418897);
  11017. d = FF(d, a, b, c, m[i + 5], 12, 1200080426);
  11018. c = FF(c, d, a, b, m[i + 6], 17, -1473231341);
  11019. b = FF(b, c, d, a, m[i + 7], 22, -45705983);
  11020. a = FF(a, b, c, d, m[i + 8], 7, 1770035416);
  11021. d = FF(d, a, b, c, m[i + 9], 12, -1958414417);
  11022. c = FF(c, d, a, b, m[i + 10], 17, -42063);
  11023. b = FF(b, c, d, a, m[i + 11], 22, -1990404162);
  11024. a = FF(a, b, c, d, m[i + 12], 7, 1804603682);
  11025. d = FF(d, a, b, c, m[i + 13], 12, -40341101);
  11026. c = FF(c, d, a, b, m[i + 14], 17, -1502002290);
  11027. b = FF(b, c, d, a, m[i + 15], 22, 1236535329);
  11028. a = GG(a, b, c, d, m[i + 1], 5, -165796510);
  11029. d = GG(d, a, b, c, m[i + 6], 9, -1069501632);
  11030. c = GG(c, d, a, b, m[i + 11], 14, 643717713);
  11031. b = GG(b, c, d, a, m[i + 0], 20, -373897302);
  11032. a = GG(a, b, c, d, m[i + 5], 5, -701558691);
  11033. d = GG(d, a, b, c, m[i + 10], 9, 38016083);
  11034. c = GG(c, d, a, b, m[i + 15], 14, -660478335);
  11035. b = GG(b, c, d, a, m[i + 4], 20, -405537848);
  11036. a = GG(a, b, c, d, m[i + 9], 5, 568446438);
  11037. d = GG(d, a, b, c, m[i + 14], 9, -1019803690);
  11038. c = GG(c, d, a, b, m[i + 3], 14, -187363961);
  11039. b = GG(b, c, d, a, m[i + 8], 20, 1163531501);
  11040. a = GG(a, b, c, d, m[i + 13], 5, -1444681467);
  11041. d = GG(d, a, b, c, m[i + 2], 9, -51403784);
  11042. c = GG(c, d, a, b, m[i + 7], 14, 1735328473);
  11043. b = GG(b, c, d, a, m[i + 12], 20, -1926607734);
  11044. a = HH(a, b, c, d, m[i + 5], 4, -378558);
  11045. d = HH(d, a, b, c, m[i + 8], 11, -2022574463);
  11046. c = HH(c, d, a, b, m[i + 11], 16, 1839030562);
  11047. b = HH(b, c, d, a, m[i + 14], 23, -35309556);
  11048. a = HH(a, b, c, d, m[i + 1], 4, -1530992060);
  11049. d = HH(d, a, b, c, m[i + 4], 11, 1272893353);
  11050. c = HH(c, d, a, b, m[i + 7], 16, -155497632);
  11051. b = HH(b, c, d, a, m[i + 10], 23, -1094730640);
  11052. a = HH(a, b, c, d, m[i + 13], 4, 681279174);
  11053. d = HH(d, a, b, c, m[i + 0], 11, -358537222);
  11054. c = HH(c, d, a, b, m[i + 3], 16, -722521979);
  11055. b = HH(b, c, d, a, m[i + 6], 23, 76029189);
  11056. a = HH(a, b, c, d, m[i + 9], 4, -640364487);
  11057. d = HH(d, a, b, c, m[i + 12], 11, -421815835);
  11058. c = HH(c, d, a, b, m[i + 15], 16, 530742520);
  11059. b = HH(b, c, d, a, m[i + 2], 23, -995338651);
  11060. a = II(a, b, c, d, m[i + 0], 6, -198630844);
  11061. d = II(d, a, b, c, m[i + 7], 10, 1126891415);
  11062. c = II(c, d, a, b, m[i + 14], 15, -1416354905);
  11063. b = II(b, c, d, a, m[i + 5], 21, -57434055);
  11064. a = II(a, b, c, d, m[i + 12], 6, 1700485571);
  11065. d = II(d, a, b, c, m[i + 3], 10, -1894986606);
  11066. c = II(c, d, a, b, m[i + 10], 15, -1051523);
  11067. b = II(b, c, d, a, m[i + 1], 21, -2054922799);
  11068. a = II(a, b, c, d, m[i + 8], 6, 1873313359);
  11069. d = II(d, a, b, c, m[i + 15], 10, -30611744);
  11070. c = II(c, d, a, b, m[i + 6], 15, -1560198380);
  11071. b = II(b, c, d, a, m[i + 13], 21, 1309151649);
  11072. a = II(a, b, c, d, m[i + 4], 6, -145523070);
  11073. d = II(d, a, b, c, m[i + 11], 10, -1120210379);
  11074. c = II(c, d, a, b, m[i + 2], 15, 718787259);
  11075. b = II(b, c, d, a, m[i + 9], 21, -343485551);
  11076. a = a + aa >>> 0;
  11077. b = b + bb >>> 0;
  11078. c = c + cc >>> 0;
  11079. d = d + dd >>> 0;
  11080. }
  11081. return util.endian([a, b, c, d]);
  11082. };
  11083. // Auxiliary functions
  11084. MD5._ff = function (a, b, c, d, x, s, t) {
  11085. var n = a + (b & c | ~b & d) + (x >>> 0) + t;
  11086. return (n << s | n >>> 32 - s) + b;
  11087. };
  11088. MD5._gg = function (a, b, c, d, x, s, t) {
  11089. var n = a + (b & d | c & ~d) + (x >>> 0) + t;
  11090. return (n << s | n >>> 32 - s) + b;
  11091. };
  11092. MD5._hh = function (a, b, c, d, x, s, t) {
  11093. var n = a + (b ^ c ^ d) + (x >>> 0) + t;
  11094. return (n << s | n >>> 32 - s) + b;
  11095. };
  11096. MD5._ii = function (a, b, c, d, x, s, t) {
  11097. var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
  11098. return (n << s | n >>> 32 - s) + b;
  11099. };
  11100. // Package private blocksize
  11101. MD5._blocksize = 16;
  11102. MD5._digestsize = 16;
  11103. })();
  11104. /***/ }),
  11105. /* 46 */
  11106. /*!***************************************************************************!*\
  11107. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/PBKDF2.js ***!
  11108. \***************************************************************************/
  11109. /*! no static exports found */
  11110. /***/ (function(module, exports, __webpack_require__) {
  11111. (function () {
  11112. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11113. // Shortcuts
  11114. var util = C.util,
  11115. charenc = C.charenc,
  11116. UTF8 = charenc.UTF8,
  11117. Binary = charenc.Binary;
  11118. C.PBKDF2 = function (password, salt, keylen, options) {
  11119. // Convert to byte arrays
  11120. if (password.constructor == String) password = UTF8.stringToBytes(password);
  11121. if (salt.constructor == String) salt = UTF8.stringToBytes(salt);
  11122. /* else, assume byte arrays already */
  11123. // Defaults
  11124. var hasher = options && options.hasher || C.SHA1,
  11125. iterations = options && options.iterations || 1;
  11126. // Pseudo-random function
  11127. function PRF(password, salt) {
  11128. return C.HMAC(hasher, salt, password, {
  11129. asBytes: true
  11130. });
  11131. }
  11132. // Generate key
  11133. var derivedKeyBytes = [],
  11134. blockindex = 1;
  11135. while (derivedKeyBytes.length < keylen) {
  11136. var block = PRF(password, salt.concat(util.wordsToBytes([blockindex])));
  11137. for (var u = block, i = 1; i < iterations; i++) {
  11138. u = PRF(password, u);
  11139. for (var j = 0; j < block.length; j++) {
  11140. block[j] ^= u[j];
  11141. }
  11142. }
  11143. derivedKeyBytes = derivedKeyBytes.concat(block);
  11144. blockindex++;
  11145. }
  11146. // Truncate excess bytes
  11147. derivedKeyBytes.length = keylen;
  11148. return options && options.asBytes ? derivedKeyBytes : options && options.asString ? Binary.bytesToString(derivedKeyBytes) : util.bytesToHex(derivedKeyBytes);
  11149. };
  11150. })();
  11151. /***/ }),
  11152. /* 47 */
  11153. /*!********************************************************************************!*\
  11154. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/PBKDF2Async.js ***!
  11155. \********************************************************************************/
  11156. /*! no static exports found */
  11157. /***/ (function(module, exports, __webpack_require__) {
  11158. /* WEBPACK VAR INJECTION */(function(process) {(function () {
  11159. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11160. // Shortcuts
  11161. var util = C.util,
  11162. charenc = C.charenc,
  11163. UTF8 = charenc.UTF8,
  11164. Binary = charenc.Binary;
  11165. if (!C.nextTick) {
  11166. // node.js has setTime out but prefer process.nextTick
  11167. if (typeof process != 'undefined' && typeof process.nextTick !== 'undefined') {
  11168. C.nextTick = process.nextTick;
  11169. } else if (typeof setTimeout !== 'undefined') {
  11170. C.nextTick = function (callback) {
  11171. setTimeout(callback, 0);
  11172. };
  11173. }
  11174. }
  11175. C.PBKDF2Async = function (password, salt, keylen, callback, options) {
  11176. // Convert to byte arrays
  11177. if (password.constructor == String) password = UTF8.stringToBytes(password);
  11178. if (salt.constructor == String) salt = UTF8.stringToBytes(salt);
  11179. /* else, assume byte arrays already */
  11180. // Defaults
  11181. var hasher = options && options.hasher || C.SHA1,
  11182. iterations = options && options.iterations || 1;
  11183. // Progress callback option
  11184. var progressChangeHandler = options && options.onProgressChange;
  11185. var totalIterations = Math.ceil(keylen / hasher._digestsize) * iterations;
  11186. function fireProgressChange(currentIteration) {
  11187. if (progressChangeHandler) {
  11188. var iterationsSoFar = derivedKeyBytes.length / hasher._digestsize * iterations + currentIteration;
  11189. setTimeout(function () {
  11190. progressChangeHandler(Math.round(iterationsSoFar / totalIterations * 100));
  11191. }, 0);
  11192. }
  11193. }
  11194. // Pseudo-random function
  11195. function PRF(password, salt) {
  11196. return C.HMAC(hasher, salt, password, {
  11197. asBytes: true
  11198. });
  11199. }
  11200. var nextTick = C.nextTick;
  11201. // Generate key
  11202. var derivedKeyBytes = [],
  11203. blockindex = 1;
  11204. var _outer, _inner;
  11205. nextTick(_outer = function outer() {
  11206. if (derivedKeyBytes.length < keylen) {
  11207. var block = PRF(password, salt.concat(util.wordsToBytes([blockindex])));
  11208. fireProgressChange(1);
  11209. var u = block,
  11210. i = 1;
  11211. nextTick(_inner = function inner() {
  11212. if (i < iterations) {
  11213. u = PRF(password, u);
  11214. for (var j = 0; j < block.length; j++) {
  11215. block[j] ^= u[j];
  11216. }
  11217. i++;
  11218. fireProgressChange(i);
  11219. nextTick(_inner);
  11220. } else {
  11221. derivedKeyBytes = derivedKeyBytes.concat(block);
  11222. blockindex++;
  11223. nextTick(_outer);
  11224. }
  11225. });
  11226. } else {
  11227. // Truncate excess bytes
  11228. derivedKeyBytes.length = keylen;
  11229. callback(options && options.asBytes ? derivedKeyBytes : options && options.asString ? Binary.bytesToString(derivedKeyBytes) : util.bytesToHex(derivedKeyBytes));
  11230. }
  11231. });
  11232. };
  11233. })();
  11234. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../HBuilderX.3.4.18.20220630/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 48)))
  11235. /***/ }),
  11236. /* 48 */
  11237. /*!********************************************************!*\
  11238. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  11239. \********************************************************/
  11240. /*! no static exports found */
  11241. /***/ (function(module, exports, __webpack_require__) {
  11242. exports.nextTick = function nextTick(fn) {
  11243. var args = Array.prototype.slice.call(arguments);
  11244. args.shift();
  11245. setTimeout(function () {
  11246. fn.apply(null, args);
  11247. }, 0);
  11248. };
  11249. exports.platform = exports.arch =
  11250. exports.execPath = exports.title = 'browser';
  11251. exports.pid = 1;
  11252. exports.browser = true;
  11253. exports.env = {};
  11254. exports.argv = [];
  11255. exports.binding = function (name) {
  11256. throw new Error('No such module. (Possibly not yet loaded)')
  11257. };
  11258. (function () {
  11259. var cwd = '/';
  11260. var path;
  11261. exports.cwd = function () { return cwd };
  11262. exports.chdir = function (dir) {
  11263. if (!path) path = __webpack_require__(/*! path */ 49);
  11264. cwd = path.resolve(dir, cwd);
  11265. };
  11266. })();
  11267. exports.exit = exports.kill =
  11268. exports.umask = exports.dlopen =
  11269. exports.uptime = exports.memoryUsage =
  11270. exports.uvCounters = function() {};
  11271. exports.features = {};
  11272. /***/ }),
  11273. /* 49 */
  11274. /*!***********************************************!*\
  11275. !*** ./node_modules/path-browserify/index.js ***!
  11276. \***********************************************/
  11277. /*! no static exports found */
  11278. /***/ (function(module, exports, __webpack_require__) {
  11279. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  11280. // backported and transplited with Babel, with backwards-compat fixes
  11281. // Copyright Joyent, Inc. and other Node contributors.
  11282. //
  11283. // Permission is hereby granted, free of charge, to any person obtaining a
  11284. // copy of this software and associated documentation files (the
  11285. // "Software"), to deal in the Software without restriction, including
  11286. // without limitation the rights to use, copy, modify, merge, publish,
  11287. // distribute, sublicense, and/or sell copies of the Software, and to permit
  11288. // persons to whom the Software is furnished to do so, subject to the
  11289. // following conditions:
  11290. //
  11291. // The above copyright notice and this permission notice shall be included
  11292. // in all copies or substantial portions of the Software.
  11293. //
  11294. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  11295. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  11296. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  11297. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  11298. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  11299. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  11300. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  11301. // resolves . and .. elements in a path array with directory names there
  11302. // must be no slashes, empty elements, or device names (c:\) in the array
  11303. // (so also no leading and trailing slashes - it does not distinguish
  11304. // relative and absolute paths)
  11305. function normalizeArray(parts, allowAboveRoot) {
  11306. // if the path tries to go above the root, `up` ends up > 0
  11307. var up = 0;
  11308. for (var i = parts.length - 1; i >= 0; i--) {
  11309. var last = parts[i];
  11310. if (last === '.') {
  11311. parts.splice(i, 1);
  11312. } else if (last === '..') {
  11313. parts.splice(i, 1);
  11314. up++;
  11315. } else if (up) {
  11316. parts.splice(i, 1);
  11317. up--;
  11318. }
  11319. }
  11320. // if the path is allowed to go above the root, restore leading ..s
  11321. if (allowAboveRoot) {
  11322. for (; up--; up) {
  11323. parts.unshift('..');
  11324. }
  11325. }
  11326. return parts;
  11327. }
  11328. // path.resolve([from ...], to)
  11329. // posix version
  11330. exports.resolve = function() {
  11331. var resolvedPath = '',
  11332. resolvedAbsolute = false;
  11333. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  11334. var path = (i >= 0) ? arguments[i] : process.cwd();
  11335. // Skip empty and invalid entries
  11336. if (typeof path !== 'string') {
  11337. throw new TypeError('Arguments to path.resolve must be strings');
  11338. } else if (!path) {
  11339. continue;
  11340. }
  11341. resolvedPath = path + '/' + resolvedPath;
  11342. resolvedAbsolute = path.charAt(0) === '/';
  11343. }
  11344. // At this point the path should be resolved to a full absolute path, but
  11345. // handle relative paths to be safe (might happen when process.cwd() fails)
  11346. // Normalize the path
  11347. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  11348. return !!p;
  11349. }), !resolvedAbsolute).join('/');
  11350. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  11351. };
  11352. // path.normalize(path)
  11353. // posix version
  11354. exports.normalize = function(path) {
  11355. var isAbsolute = exports.isAbsolute(path),
  11356. trailingSlash = substr(path, -1) === '/';
  11357. // Normalize the path
  11358. path = normalizeArray(filter(path.split('/'), function(p) {
  11359. return !!p;
  11360. }), !isAbsolute).join('/');
  11361. if (!path && !isAbsolute) {
  11362. path = '.';
  11363. }
  11364. if (path && trailingSlash) {
  11365. path += '/';
  11366. }
  11367. return (isAbsolute ? '/' : '') + path;
  11368. };
  11369. // posix version
  11370. exports.isAbsolute = function(path) {
  11371. return path.charAt(0) === '/';
  11372. };
  11373. // posix version
  11374. exports.join = function() {
  11375. var paths = Array.prototype.slice.call(arguments, 0);
  11376. return exports.normalize(filter(paths, function(p, index) {
  11377. if (typeof p !== 'string') {
  11378. throw new TypeError('Arguments to path.join must be strings');
  11379. }
  11380. return p;
  11381. }).join('/'));
  11382. };
  11383. // path.relative(from, to)
  11384. // posix version
  11385. exports.relative = function(from, to) {
  11386. from = exports.resolve(from).substr(1);
  11387. to = exports.resolve(to).substr(1);
  11388. function trim(arr) {
  11389. var start = 0;
  11390. for (; start < arr.length; start++) {
  11391. if (arr[start] !== '') break;
  11392. }
  11393. var end = arr.length - 1;
  11394. for (; end >= 0; end--) {
  11395. if (arr[end] !== '') break;
  11396. }
  11397. if (start > end) return [];
  11398. return arr.slice(start, end - start + 1);
  11399. }
  11400. var fromParts = trim(from.split('/'));
  11401. var toParts = trim(to.split('/'));
  11402. var length = Math.min(fromParts.length, toParts.length);
  11403. var samePartsLength = length;
  11404. for (var i = 0; i < length; i++) {
  11405. if (fromParts[i] !== toParts[i]) {
  11406. samePartsLength = i;
  11407. break;
  11408. }
  11409. }
  11410. var outputParts = [];
  11411. for (var i = samePartsLength; i < fromParts.length; i++) {
  11412. outputParts.push('..');
  11413. }
  11414. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  11415. return outputParts.join('/');
  11416. };
  11417. exports.sep = '/';
  11418. exports.delimiter = ':';
  11419. exports.dirname = function (path) {
  11420. if (typeof path !== 'string') path = path + '';
  11421. if (path.length === 0) return '.';
  11422. var code = path.charCodeAt(0);
  11423. var hasRoot = code === 47 /*/*/;
  11424. var end = -1;
  11425. var matchedSlash = true;
  11426. for (var i = path.length - 1; i >= 1; --i) {
  11427. code = path.charCodeAt(i);
  11428. if (code === 47 /*/*/) {
  11429. if (!matchedSlash) {
  11430. end = i;
  11431. break;
  11432. }
  11433. } else {
  11434. // We saw the first non-path separator
  11435. matchedSlash = false;
  11436. }
  11437. }
  11438. if (end === -1) return hasRoot ? '/' : '.';
  11439. if (hasRoot && end === 1) {
  11440. // return '//';
  11441. // Backwards-compat fix:
  11442. return '/';
  11443. }
  11444. return path.slice(0, end);
  11445. };
  11446. function basename(path) {
  11447. if (typeof path !== 'string') path = path + '';
  11448. var start = 0;
  11449. var end = -1;
  11450. var matchedSlash = true;
  11451. var i;
  11452. for (i = path.length - 1; i >= 0; --i) {
  11453. if (path.charCodeAt(i) === 47 /*/*/) {
  11454. // If we reached a path separator that was not part of a set of path
  11455. // separators at the end of the string, stop now
  11456. if (!matchedSlash) {
  11457. start = i + 1;
  11458. break;
  11459. }
  11460. } else if (end === -1) {
  11461. // We saw the first non-path separator, mark this as the end of our
  11462. // path component
  11463. matchedSlash = false;
  11464. end = i + 1;
  11465. }
  11466. }
  11467. if (end === -1) return '';
  11468. return path.slice(start, end);
  11469. }
  11470. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  11471. // in new Node.js versions, so only basename() above is backported here
  11472. exports.basename = function (path, ext) {
  11473. var f = basename(path);
  11474. if (ext && f.substr(-1 * ext.length) === ext) {
  11475. f = f.substr(0, f.length - ext.length);
  11476. }
  11477. return f;
  11478. };
  11479. exports.extname = function (path) {
  11480. if (typeof path !== 'string') path = path + '';
  11481. var startDot = -1;
  11482. var startPart = 0;
  11483. var end = -1;
  11484. var matchedSlash = true;
  11485. // Track the state of characters (if any) we see before our first dot and
  11486. // after any path separator we find
  11487. var preDotState = 0;
  11488. for (var i = path.length - 1; i >= 0; --i) {
  11489. var code = path.charCodeAt(i);
  11490. if (code === 47 /*/*/) {
  11491. // If we reached a path separator that was not part of a set of path
  11492. // separators at the end of the string, stop now
  11493. if (!matchedSlash) {
  11494. startPart = i + 1;
  11495. break;
  11496. }
  11497. continue;
  11498. }
  11499. if (end === -1) {
  11500. // We saw the first non-path separator, mark this as the end of our
  11501. // extension
  11502. matchedSlash = false;
  11503. end = i + 1;
  11504. }
  11505. if (code === 46 /*.*/) {
  11506. // If this is our first dot, mark it as the start of our extension
  11507. if (startDot === -1)
  11508. startDot = i;
  11509. else if (preDotState !== 1)
  11510. preDotState = 1;
  11511. } else if (startDot !== -1) {
  11512. // We saw a non-dot and non-path separator before our dot, so we should
  11513. // have a good chance at having a non-empty extension
  11514. preDotState = -1;
  11515. }
  11516. }
  11517. if (startDot === -1 || end === -1 ||
  11518. // We saw a non-dot character immediately before the dot
  11519. preDotState === 0 ||
  11520. // The (right-most) trimmed path component is exactly '..'
  11521. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  11522. return '';
  11523. }
  11524. return path.slice(startDot, end);
  11525. };
  11526. function filter (xs, f) {
  11527. if (xs.filter) return xs.filter(f);
  11528. var res = [];
  11529. for (var i = 0; i < xs.length; i++) {
  11530. if (f(xs[i], i, xs)) res.push(xs[i]);
  11531. }
  11532. return res;
  11533. }
  11534. // String.prototype.substr - negative index don't work in IE8
  11535. var substr = 'ab'.substr(-1) === 'b'
  11536. ? function (str, start, len) { return str.substr(start, len) }
  11537. : function (str, start, len) {
  11538. if (start < 0) start = str.length + start;
  11539. return str.substr(start, len);
  11540. }
  11541. ;
  11542. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 48)))
  11543. /***/ }),
  11544. /* 50 */
  11545. /*!***************************************************************************!*\
  11546. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/Rabbit.js ***!
  11547. \***************************************************************************/
  11548. /*! no static exports found */
  11549. /***/ (function(module, exports, __webpack_require__) {
  11550. (function () {
  11551. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11552. // Shortcuts
  11553. var util = C.util,
  11554. charenc = C.charenc,
  11555. UTF8 = charenc.UTF8,
  11556. Binary = charenc.Binary;
  11557. // Inner state
  11558. var x = [],
  11559. c = [],
  11560. b;
  11561. var Rabbit = C.Rabbit = {
  11562. /**
  11563. * Public API
  11564. */
  11565. encrypt: function encrypt(message, password) {
  11566. var
  11567. // Convert to bytes
  11568. m = UTF8.stringToBytes(message),
  11569. // Generate random IV
  11570. iv = util.randomBytes(8),
  11571. // Generate key
  11572. k = password.constructor == String ?
  11573. // Derive key from passphrase
  11574. C.PBKDF2(password, iv, 32, {
  11575. asBytes: true
  11576. }) :
  11577. // else, assume byte array representing cryptographic key
  11578. password;
  11579. // Encrypt
  11580. Rabbit._rabbit(m, k, util.bytesToWords(iv));
  11581. // Return ciphertext
  11582. return util.bytesToBase64(iv.concat(m));
  11583. },
  11584. decrypt: function decrypt(ciphertext, password) {
  11585. var
  11586. // Convert to bytes
  11587. c = util.base64ToBytes(ciphertext),
  11588. // Separate IV and message
  11589. iv = c.splice(0, 8),
  11590. // Generate key
  11591. k = password.constructor == String ?
  11592. // Derive key from passphrase
  11593. C.PBKDF2(password, iv, 32, {
  11594. asBytes: true
  11595. }) :
  11596. // else, assume byte array representing cryptographic key
  11597. password;
  11598. // Decrypt
  11599. Rabbit._rabbit(c, k, util.bytesToWords(iv));
  11600. // Return plaintext
  11601. return UTF8.bytesToString(c);
  11602. },
  11603. /**
  11604. * Internal methods
  11605. */
  11606. // Encryption/decryption scheme
  11607. _rabbit: function _rabbit(m, k, iv) {
  11608. Rabbit._keysetup(k);
  11609. if (iv) Rabbit._ivsetup(iv);
  11610. for (var s = [], i = 0; i < m.length; i++) {
  11611. if (i % 16 == 0) {
  11612. // Iterate the system
  11613. Rabbit._nextstate();
  11614. // Generate 16 bytes of pseudo-random data
  11615. s[0] = x[0] ^ x[5] >>> 16 ^ x[3] << 16;
  11616. s[1] = x[2] ^ x[7] >>> 16 ^ x[5] << 16;
  11617. s[2] = x[4] ^ x[1] >>> 16 ^ x[7] << 16;
  11618. s[3] = x[6] ^ x[3] >>> 16 ^ x[1] << 16;
  11619. // Swap endian
  11620. for (var j = 0; j < 4; j++) {
  11621. s[j] = (s[j] << 8 | s[j] >>> 24) & 0x00FF00FF | (s[j] << 24 | s[j] >>> 8) & 0xFF00FF00;
  11622. }
  11623. // Convert words to bytes
  11624. for (var b = 120; b >= 0; b -= 8) {
  11625. s[b / 8] = s[b >>> 5] >>> 24 - b % 32 & 0xFF;
  11626. }
  11627. }
  11628. m[i] ^= s[i % 16];
  11629. }
  11630. },
  11631. // Key setup scheme
  11632. _keysetup: function _keysetup(k) {
  11633. // Generate initial state values
  11634. x[0] = k[0];
  11635. x[2] = k[1];
  11636. x[4] = k[2];
  11637. x[6] = k[3];
  11638. x[1] = k[3] << 16 | k[2] >>> 16;
  11639. x[3] = k[0] << 16 | k[3] >>> 16;
  11640. x[5] = k[1] << 16 | k[0] >>> 16;
  11641. x[7] = k[2] << 16 | k[1] >>> 16;
  11642. // Generate initial counter values
  11643. c[0] = util.rotl(k[2], 16);
  11644. c[2] = util.rotl(k[3], 16);
  11645. c[4] = util.rotl(k[0], 16);
  11646. c[6] = util.rotl(k[1], 16);
  11647. c[1] = k[0] & 0xFFFF0000 | k[1] & 0xFFFF;
  11648. c[3] = k[1] & 0xFFFF0000 | k[2] & 0xFFFF;
  11649. c[5] = k[2] & 0xFFFF0000 | k[3] & 0xFFFF;
  11650. c[7] = k[3] & 0xFFFF0000 | k[0] & 0xFFFF;
  11651. // Clear carry bit
  11652. b = 0;
  11653. // Iterate the system four times
  11654. for (var i = 0; i < 4; i++) {
  11655. Rabbit._nextstate();
  11656. }
  11657. // Modify the counters
  11658. for (var i = 0; i < 8; i++) {
  11659. c[i] ^= x[i + 4 & 7];
  11660. }
  11661. },
  11662. // IV setup scheme
  11663. _ivsetup: function _ivsetup(iv) {
  11664. // Generate four subvectors
  11665. var i0 = util.endian(iv[0]),
  11666. i2 = util.endian(iv[1]),
  11667. i1 = i0 >>> 16 | i2 & 0xFFFF0000,
  11668. i3 = i2 << 16 | i0 & 0x0000FFFF;
  11669. // Modify counter values
  11670. c[0] ^= i0;
  11671. c[1] ^= i1;
  11672. c[2] ^= i2;
  11673. c[3] ^= i3;
  11674. c[4] ^= i0;
  11675. c[5] ^= i1;
  11676. c[6] ^= i2;
  11677. c[7] ^= i3;
  11678. // Iterate the system four times
  11679. for (var i = 0; i < 4; i++) {
  11680. Rabbit._nextstate();
  11681. }
  11682. },
  11683. // Next-state function
  11684. _nextstate: function _nextstate() {
  11685. // Save old counter values
  11686. for (var c_old = [], i = 0; i < 8; i++) {
  11687. c_old[i] = c[i];
  11688. }
  11689. // Calculate new counter values
  11690. c[0] = c[0] + 0x4D34D34D + b >>> 0;
  11691. c[1] = c[1] + 0xD34D34D3 + (c[0] >>> 0 < c_old[0] >>> 0 ? 1 : 0) >>> 0;
  11692. c[2] = c[2] + 0x34D34D34 + (c[1] >>> 0 < c_old[1] >>> 0 ? 1 : 0) >>> 0;
  11693. c[3] = c[3] + 0x4D34D34D + (c[2] >>> 0 < c_old[2] >>> 0 ? 1 : 0) >>> 0;
  11694. c[4] = c[4] + 0xD34D34D3 + (c[3] >>> 0 < c_old[3] >>> 0 ? 1 : 0) >>> 0;
  11695. c[5] = c[5] + 0x34D34D34 + (c[4] >>> 0 < c_old[4] >>> 0 ? 1 : 0) >>> 0;
  11696. c[6] = c[6] + 0x4D34D34D + (c[5] >>> 0 < c_old[5] >>> 0 ? 1 : 0) >>> 0;
  11697. c[7] = c[7] + 0xD34D34D3 + (c[6] >>> 0 < c_old[6] >>> 0 ? 1 : 0) >>> 0;
  11698. b = c[7] >>> 0 < c_old[7] >>> 0 ? 1 : 0;
  11699. // Calculate the g-values
  11700. for (var g = [], i = 0; i < 8; i++) {
  11701. var gx = x[i] + c[i] >>> 0;
  11702. // Construct high and low argument for squaring
  11703. var ga = gx & 0xFFFF,
  11704. gb = gx >>> 16;
  11705. // Calculate high and low result of squaring
  11706. var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb,
  11707. gl = ((gx & 0xFFFF0000) * gx >>> 0) + ((gx & 0x0000FFFF) * gx >>> 0) >>> 0;
  11708. // High XOR low
  11709. g[i] = gh ^ gl;
  11710. }
  11711. // Calculate new state values
  11712. x[0] = g[0] + (g[7] << 16 | g[7] >>> 16) + (g[6] << 16 | g[6] >>> 16);
  11713. x[1] = g[1] + (g[0] << 8 | g[0] >>> 24) + g[7];
  11714. x[2] = g[2] + (g[1] << 16 | g[1] >>> 16) + (g[0] << 16 | g[0] >>> 16);
  11715. x[3] = g[3] + (g[2] << 8 | g[2] >>> 24) + g[1];
  11716. x[4] = g[4] + (g[3] << 16 | g[3] >>> 16) + (g[2] << 16 | g[2] >>> 16);
  11717. x[5] = g[5] + (g[4] << 8 | g[4] >>> 24) + g[3];
  11718. x[6] = g[6] + (g[5] << 16 | g[5] >>> 16) + (g[4] << 16 | g[4] >>> 16);
  11719. x[7] = g[7] + (g[6] << 8 | g[6] >>> 24) + g[5];
  11720. }
  11721. };
  11722. })();
  11723. /***/ }),
  11724. /* 51 */
  11725. /*!*************************************************************************!*\
  11726. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/SHA1.js ***!
  11727. \*************************************************************************/
  11728. /*! no static exports found */
  11729. /***/ (function(module, exports, __webpack_require__) {
  11730. (function () {
  11731. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11732. // Shortcuts
  11733. var util = C.util,
  11734. charenc = C.charenc,
  11735. UTF8 = charenc.UTF8,
  11736. Binary = charenc.Binary;
  11737. // Public API
  11738. var SHA1 = C.SHA1 = function (message, options) {
  11739. var digestbytes = util.wordsToBytes(SHA1._sha1(message));
  11740. return options && options.asBytes ? digestbytes : options && options.asString ? Binary.bytesToString(digestbytes) : util.bytesToHex(digestbytes);
  11741. };
  11742. // The core
  11743. SHA1._sha1 = function (message) {
  11744. // Convert to byte array
  11745. if (message.constructor == String) message = UTF8.stringToBytes(message);
  11746. /* else, assume byte array already */
  11747. var m = util.bytesToWords(message),
  11748. l = message.length * 8,
  11749. w = [],
  11750. H0 = 1732584193,
  11751. H1 = -271733879,
  11752. H2 = -1732584194,
  11753. H3 = 271733878,
  11754. H4 = -1009589776;
  11755. // Padding
  11756. m[l >> 5] |= 0x80 << 24 - l % 32;
  11757. m[(l + 64 >>> 9 << 4) + 15] = l;
  11758. for (var i = 0; i < m.length; i += 16) {
  11759. var a = H0,
  11760. b = H1,
  11761. c = H2,
  11762. d = H3,
  11763. e = H4;
  11764. for (var j = 0; j < 80; j++) {
  11765. if (j < 16) w[j] = m[i + j];else {
  11766. var n = w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16];
  11767. w[j] = n << 1 | n >>> 31;
  11768. }
  11769. var t = (H0 << 5 | H0 >>> 27) + H4 + (w[j] >>> 0) + (j < 20 ? (H1 & H2 | ~H1 & H3) + 1518500249 : j < 40 ? (H1 ^ H2 ^ H3) + 1859775393 : j < 60 ? (H1 & H2 | H1 & H3 | H2 & H3) - 1894007588 : (H1 ^ H2 ^ H3) - 899497514);
  11770. H4 = H3;
  11771. H3 = H2;
  11772. H2 = H1 << 30 | H1 >>> 2;
  11773. H1 = H0;
  11774. H0 = t;
  11775. }
  11776. H0 += a;
  11777. H1 += b;
  11778. H2 += c;
  11779. H3 += d;
  11780. H4 += e;
  11781. }
  11782. return [H0, H1, H2, H3, H4];
  11783. };
  11784. // Package private blocksize
  11785. SHA1._blocksize = 16;
  11786. SHA1._digestsize = 20;
  11787. })();
  11788. /***/ }),
  11789. /* 52 */
  11790. /*!***************************************************************************!*\
  11791. !*** D:/demo/businessCard/xiaochengxu/util/cryptojs-master/lib/SHA256.js ***!
  11792. \***************************************************************************/
  11793. /*! no static exports found */
  11794. /***/ (function(module, exports, __webpack_require__) {
  11795. (function () {
  11796. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 37).Crypto : window.Crypto;
  11797. // Shortcuts
  11798. var util = C.util,
  11799. charenc = C.charenc,
  11800. UTF8 = charenc.UTF8,
  11801. Binary = charenc.Binary;
  11802. // Constants
  11803. var K = [0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5, 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3, 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174, 0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC, 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA, 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7, 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967, 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13, 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85, 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3, 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070, 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5, 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3, 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208, 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2];
  11804. // Public API
  11805. var SHA256 = C.SHA256 = function (message, options) {
  11806. var digestbytes = util.wordsToBytes(SHA256._sha256(message));
  11807. return options && options.asBytes ? digestbytes : options && options.asString ? Binary.bytesToString(digestbytes) : util.bytesToHex(digestbytes);
  11808. };
  11809. // The core
  11810. SHA256._sha256 = function (message) {
  11811. // Convert to byte array
  11812. if (message.constructor == String) message = UTF8.stringToBytes(message);
  11813. /* else, assume byte array already */
  11814. var m = util.bytesToWords(message),
  11815. l = message.length * 8,
  11816. H = [0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19],
  11817. w = [],
  11818. a,
  11819. b,
  11820. c,
  11821. d,
  11822. e,
  11823. f,
  11824. g,
  11825. h,
  11826. i,
  11827. j,
  11828. t1,
  11829. t2;
  11830. // Padding
  11831. m[l >> 5] |= 0x80 << 24 - l % 32;
  11832. m[(l + 64 >> 9 << 4) + 15] = l;
  11833. for (var i = 0; i < m.length; i += 16) {
  11834. a = H[0];
  11835. b = H[1];
  11836. c = H[2];
  11837. d = H[3];
  11838. e = H[4];
  11839. f = H[5];
  11840. g = H[6];
  11841. h = H[7];
  11842. for (var j = 0; j < 64; j++) {
  11843. if (j < 16) w[j] = m[j + i];else {
  11844. var gamma0x = w[j - 15],
  11845. gamma1x = w[j - 2],
  11846. gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (gamma0x << 14 | gamma0x >>> 18) ^ gamma0x >>> 3,
  11847. gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (gamma1x << 13 | gamma1x >>> 19) ^ gamma1x >>> 10;
  11848. w[j] = gamma0 + (w[j - 7] >>> 0) + gamma1 + (w[j - 16] >>> 0);
  11849. }
  11850. var ch = e & f ^ ~e & g,
  11851. maj = a & b ^ a & c ^ b & c,
  11852. sigma0 = (a << 30 | a >>> 2) ^ (a << 19 | a >>> 13) ^ (a << 10 | a >>> 22),
  11853. sigma1 = (e << 26 | e >>> 6) ^ (e << 21 | e >>> 11) ^ (e << 7 | e >>> 25);
  11854. t1 = (h >>> 0) + sigma1 + ch + K[j] + (w[j] >>> 0);
  11855. t2 = sigma0 + maj;
  11856. h = g;
  11857. g = f;
  11858. f = e;
  11859. e = d + t1 >>> 0;
  11860. d = c;
  11861. c = b;
  11862. b = a;
  11863. a = t1 + t2 >>> 0;
  11864. }
  11865. H[0] += a;
  11866. H[1] += b;
  11867. H[2] += c;
  11868. H[3] += d;
  11869. H[4] += e;
  11870. H[5] += f;
  11871. H[6] += g;
  11872. H[7] += h;
  11873. }
  11874. return H;
  11875. };
  11876. // Package private blocksize
  11877. SHA256._blocksize = 16;
  11878. SHA256._digestsize = 32;
  11879. })();
  11880. /***/ }),
  11881. /* 53 */
  11882. /*!**********************************************************************!*\
  11883. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/index.js ***!
  11884. \**********************************************************************/
  11885. /*! no static exports found */
  11886. /***/ (function(module, exports, __webpack_require__) {
  11887. "use strict";
  11888. /* WEBPACK VAR INJECTION */(function(uni) {
  11889. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11890. Object.defineProperty(exports, "__esModule", {
  11891. value: true
  11892. });
  11893. exports.default = void 0;
  11894. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  11895. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 54));
  11896. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 55));
  11897. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 56));
  11898. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 74));
  11899. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 78));
  11900. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 79));
  11901. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 80));
  11902. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 81));
  11903. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 82));
  11904. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 85));
  11905. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 86));
  11906. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 176));
  11907. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 134));
  11908. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 177));
  11909. 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; }
  11910. 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; }
  11911. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  11912. var pleaseSetTranspileDependencies = {},
  11913. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  11914. // 引入全局mixin
  11915. var $u = _objectSpread(_objectSpread({
  11916. route: _route.default,
  11917. date: _index.default.timeFormat,
  11918. // 另名date
  11919. colorGradient: _colorGradient.default.colorGradient,
  11920. hexToRgb: _colorGradient.default.hexToRgb,
  11921. rgbToHex: _colorGradient.default.rgbToHex,
  11922. colorToRgba: _colorGradient.default.colorToRgba,
  11923. test: _test.default,
  11924. type: ['primary', 'success', 'error', 'warning', 'info'],
  11925. http: new _luchRequest.default(),
  11926. config: _config.default,
  11927. // uView配置信息相关,比如版本号
  11928. zIndex: _zIndex.default,
  11929. debounce: _debounce.default,
  11930. throttle: _throttle.default,
  11931. mixin: _mixin.default,
  11932. mpMixin: _mpMixin.default,
  11933. props: _props.default
  11934. }, _index.default), {}, {
  11935. color: _color.default,
  11936. platform: _platform.default
  11937. });
  11938. // $u挂载到uni对象上
  11939. uni.$u = $u;
  11940. var install = function install(Vue) {
  11941. // 时间格式化,同时两个名称,date和timeFormat
  11942. Vue.filter('timeFormat', function (timestamp, format) {
  11943. return uni.$u.timeFormat(timestamp, format);
  11944. });
  11945. Vue.filter('date', function (timestamp, format) {
  11946. return uni.$u.timeFormat(timestamp, format);
  11947. });
  11948. // 将多久以前的方法,注入到全局过滤器
  11949. Vue.filter('timeFrom', function (timestamp, format) {
  11950. return uni.$u.timeFrom(timestamp, format);
  11951. });
  11952. // 同时挂载到uni和Vue.prototype中
  11953. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  11954. Vue.prototype.$u = $u;
  11955. Vue.mixin(_mixin.default);
  11956. };
  11957. var _default = {
  11958. install: install
  11959. };
  11960. exports.default = _default;
  11961. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  11962. /***/ }),
  11963. /* 54 */
  11964. /*!*********************************************************************************!*\
  11965. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  11966. \*********************************************************************************/
  11967. /*! no static exports found */
  11968. /***/ (function(module, exports, __webpack_require__) {
  11969. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  11970. // 定义每个组件都可能需要用到的外部样式以及类名
  11971. props: {
  11972. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  11973. customStyle: {
  11974. type: [Object, String],
  11975. default: function _default() {
  11976. return {};
  11977. }
  11978. },
  11979. customClass: {
  11980. type: String,
  11981. default: ''
  11982. },
  11983. // 跳转的页面路径
  11984. url: {
  11985. type: String,
  11986. default: ''
  11987. },
  11988. // 页面跳转的类型
  11989. linkType: {
  11990. type: String,
  11991. default: 'navigateTo'
  11992. }
  11993. },
  11994. data: function data() {
  11995. return {};
  11996. },
  11997. onLoad: function onLoad() {
  11998. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  11999. this.$u.getRect = this.$uGetRect;
  12000. },
  12001. created: function created() {
  12002. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  12003. this.$u.getRect = this.$uGetRect;
  12004. },
  12005. computed: {
  12006. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  12007. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  12008. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  12009. $u: function $u() {
  12010. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  12011. return uni.$u.deepMerge(uni.$u, {
  12012. props: undefined,
  12013. http: undefined,
  12014. mixin: undefined
  12015. });
  12016. },
  12017. /**
  12018. * 生成bem规则类名
  12019. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  12020. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  12021. * @param {String} name 组件名称
  12022. * @param {Array} fixed 一直会存在的类名
  12023. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  12024. * @returns {Array|string}
  12025. */
  12026. bem: function bem() {
  12027. return function (name, fixed, change) {
  12028. var _this = this;
  12029. // 类名前缀
  12030. var prefix = "u-".concat(name, "--");
  12031. var classes = {};
  12032. if (fixed) {
  12033. fixed.map(function (item) {
  12034. // 这里的类名,会一直存在
  12035. classes[prefix + _this[item]] = true;
  12036. });
  12037. }
  12038. if (change) {
  12039. change.map(function (item) {
  12040. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  12041. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  12042. });
  12043. }
  12044. return Object.keys(classes);
  12045. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  12046. };
  12047. }
  12048. },
  12049. methods: {
  12050. // 跳转某一个页面
  12051. openPage: function openPage() {
  12052. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  12053. var url = this[urlKey];
  12054. if (url) {
  12055. // 执行类似uni.navigateTo的方法
  12056. uni[this.linkType]({
  12057. url: url
  12058. });
  12059. }
  12060. },
  12061. // 查询节点信息
  12062. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  12063. // 解决办法为在组件根部再套一个没有任何作用的view元素
  12064. $uGetRect: function $uGetRect(selector, all) {
  12065. var _this2 = this;
  12066. return new Promise(function (resolve) {
  12067. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  12068. if (all && Array.isArray(rect) && rect.length) {
  12069. resolve(rect);
  12070. }
  12071. if (!all && rect) {
  12072. resolve(rect);
  12073. }
  12074. }).exec();
  12075. });
  12076. },
  12077. getParentData: function getParentData() {
  12078. var _this3 = this;
  12079. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  12080. // 避免在created中去定义parent变量
  12081. if (!this.parent) this.parent = {};
  12082. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  12083. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  12084. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  12085. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  12086. this.parent = uni.$u.$parent.call(this, parentName);
  12087. if (this.parent.children) {
  12088. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  12089. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  12090. }
  12091. if (this.parent && this.parentData) {
  12092. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  12093. Object.keys(this.parentData).map(function (key) {
  12094. _this3.parentData[key] = _this3.parent[key];
  12095. });
  12096. }
  12097. },
  12098. // 阻止事件冒泡
  12099. preventEvent: function preventEvent(e) {
  12100. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  12101. },
  12102. // 空操作
  12103. noop: function noop(e) {
  12104. this.preventEvent(e);
  12105. }
  12106. },
  12107. onReachBottom: function onReachBottom() {
  12108. uni.$emit('uOnReachBottom');
  12109. },
  12110. beforeDestroy: function beforeDestroy() {
  12111. var _this4 = this;
  12112. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  12113. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  12114. if (this.parent && uni.$u.test.array(this.parent.children)) {
  12115. // 组件销毁时,移除父组件中的children数组中对应的实例
  12116. var childrenList = this.parent.children;
  12117. childrenList.map(function (child, index) {
  12118. // 如果相等,则移除
  12119. if (child === _this4) {
  12120. childrenList.splice(index, 1);
  12121. }
  12122. });
  12123. }
  12124. }
  12125. };
  12126. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12127. /***/ }),
  12128. /* 55 */
  12129. /*!***********************************************************************************!*\
  12130. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  12131. \***********************************************************************************/
  12132. /*! no static exports found */
  12133. /***/ (function(module, exports, __webpack_require__) {
  12134. "use strict";
  12135. Object.defineProperty(exports, "__esModule", {
  12136. value: true
  12137. });
  12138. exports.default = void 0;
  12139. var _default = {
  12140. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  12141. options: {
  12142. virtualHost: true
  12143. }
  12144. };
  12145. exports.default = _default;
  12146. /***/ }),
  12147. /* 56 */
  12148. /*!****************************************************************************************!*\
  12149. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/index.js ***!
  12150. \****************************************************************************************/
  12151. /*! no static exports found */
  12152. /***/ (function(module, exports, __webpack_require__) {
  12153. "use strict";
  12154. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12155. Object.defineProperty(exports, "__esModule", {
  12156. value: true
  12157. });
  12158. exports.default = void 0;
  12159. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 57));
  12160. var _default = _Request.default;
  12161. exports.default = _default;
  12162. /***/ }),
  12163. /* 57 */
  12164. /*!***********************************************************************************************!*\
  12165. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  12166. \***********************************************************************************************/
  12167. /*! no static exports found */
  12168. /***/ (function(module, exports, __webpack_require__) {
  12169. "use strict";
  12170. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12171. Object.defineProperty(exports, "__esModule", {
  12172. value: true
  12173. });
  12174. exports.default = void 0;
  12175. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  12176. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12177. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12178. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 58));
  12179. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 66));
  12180. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 67));
  12181. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 68));
  12182. var _utils = __webpack_require__(/*! ../utils */ 61);
  12183. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 69));
  12184. 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; }
  12185. 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; }
  12186. var Request = /*#__PURE__*/function () {
  12187. /**
  12188. * @param {Object} arg - 全局配置
  12189. * @param {String} arg.baseURL - 全局根路径
  12190. * @param {Object} arg.header - 全局header
  12191. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  12192. * @param {String} arg.dataType = [json] - 全局默认的dataType
  12193. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  12194. * @param {Object} arg.custom - 全局默认的自定义参数
  12195. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  12196. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  12197. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  12198. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  12199. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  12200. */
  12201. function Request() {
  12202. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  12203. (0, _classCallCheck2.default)(this, Request);
  12204. if (!(0, _utils.isPlainObject)(arg)) {
  12205. arg = {};
  12206. console.warn('设置全局参数必须接收一个Object');
  12207. }
  12208. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  12209. this.interceptors = {
  12210. request: new _InterceptorManager.default(),
  12211. response: new _InterceptorManager.default()
  12212. };
  12213. }
  12214. /**
  12215. * @Function
  12216. * @param {Request~setConfigCallback} f - 设置全局默认配置
  12217. */
  12218. (0, _createClass2.default)(Request, [{
  12219. key: "setConfig",
  12220. value: function setConfig(f) {
  12221. this.config = f(this.config);
  12222. }
  12223. }, {
  12224. key: "middleware",
  12225. value: function middleware(config) {
  12226. config = (0, _mergeConfig.default)(this.config, config);
  12227. var chain = [_dispatchRequest.default, undefined];
  12228. var promise = Promise.resolve(config);
  12229. this.interceptors.request.forEach(function (interceptor) {
  12230. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  12231. });
  12232. this.interceptors.response.forEach(function (interceptor) {
  12233. chain.push(interceptor.fulfilled, interceptor.rejected);
  12234. });
  12235. while (chain.length) {
  12236. promise = promise.then(chain.shift(), chain.shift());
  12237. }
  12238. return promise;
  12239. }
  12240. /**
  12241. * @Function
  12242. * @param {Object} config - 请求配置项
  12243. * @prop {String} options.url - 请求路径
  12244. * @prop {Object} options.data - 请求参数
  12245. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  12246. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  12247. * @prop {Object} [options.header = config.header] - 请求header
  12248. * @prop {Object} [options.method = config.method] - 请求方法
  12249. * @returns {Promise<unknown>}
  12250. */
  12251. }, {
  12252. key: "request",
  12253. value: function request() {
  12254. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  12255. return this.middleware(config);
  12256. }
  12257. }, {
  12258. key: "get",
  12259. value: function get(url) {
  12260. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12261. return this.middleware(_objectSpread({
  12262. url: url,
  12263. method: 'GET'
  12264. }, options));
  12265. }
  12266. }, {
  12267. key: "post",
  12268. value: function post(url, data) {
  12269. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12270. return this.middleware(_objectSpread({
  12271. url: url,
  12272. data: data,
  12273. method: 'POST'
  12274. }, options));
  12275. }
  12276. }, {
  12277. key: "put",
  12278. value: function put(url, data) {
  12279. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12280. return this.middleware(_objectSpread({
  12281. url: url,
  12282. data: data,
  12283. method: 'PUT'
  12284. }, options));
  12285. }
  12286. }, {
  12287. key: "delete",
  12288. value: function _delete(url, data) {
  12289. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12290. return this.middleware(_objectSpread({
  12291. url: url,
  12292. data: data,
  12293. method: 'DELETE'
  12294. }, options));
  12295. }
  12296. }, {
  12297. key: "connect",
  12298. value: function connect(url, data) {
  12299. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12300. return this.middleware(_objectSpread({
  12301. url: url,
  12302. data: data,
  12303. method: 'CONNECT'
  12304. }, options));
  12305. }
  12306. }, {
  12307. key: "head",
  12308. value: function head(url, data) {
  12309. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12310. return this.middleware(_objectSpread({
  12311. url: url,
  12312. data: data,
  12313. method: 'HEAD'
  12314. }, options));
  12315. }
  12316. }, {
  12317. key: "options",
  12318. value: function options(url, data) {
  12319. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12320. return this.middleware(_objectSpread({
  12321. url: url,
  12322. data: data,
  12323. method: 'OPTIONS'
  12324. }, _options));
  12325. }
  12326. }, {
  12327. key: "trace",
  12328. value: function trace(url, data) {
  12329. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12330. return this.middleware(_objectSpread({
  12331. url: url,
  12332. data: data,
  12333. method: 'TRACE'
  12334. }, options));
  12335. }
  12336. }, {
  12337. key: "upload",
  12338. value: function upload(url) {
  12339. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12340. config.url = url;
  12341. config.method = 'UPLOAD';
  12342. return this.middleware(config);
  12343. }
  12344. }, {
  12345. key: "download",
  12346. value: function download(url) {
  12347. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12348. config.url = url;
  12349. config.method = 'DOWNLOAD';
  12350. return this.middleware(config);
  12351. }
  12352. }]);
  12353. return Request;
  12354. }();
  12355. /**
  12356. * setConfig回调
  12357. * @return {Object} - 返回操作后的config
  12358. * @callback Request~setConfigCallback
  12359. * @param {Object} config - 全局默认config
  12360. */
  12361. exports.default = Request;
  12362. /***/ }),
  12363. /* 58 */
  12364. /*!*******************************************************************************************************!*\
  12365. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  12366. \*******************************************************************************************************/
  12367. /*! no static exports found */
  12368. /***/ (function(module, exports, __webpack_require__) {
  12369. "use strict";
  12370. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12371. Object.defineProperty(exports, "__esModule", {
  12372. value: true
  12373. });
  12374. exports.default = void 0;
  12375. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 59));
  12376. var _default = function _default(config) {
  12377. return (0, _index.default)(config);
  12378. };
  12379. exports.default = _default;
  12380. /***/ }),
  12381. /* 59 */
  12382. /*!*************************************************************************************************!*\
  12383. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  12384. \*************************************************************************************************/
  12385. /*! no static exports found */
  12386. /***/ (function(module, exports, __webpack_require__) {
  12387. "use strict";
  12388. /* WEBPACK VAR INJECTION */(function(uni) {
  12389. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12390. Object.defineProperty(exports, "__esModule", {
  12391. value: true
  12392. });
  12393. exports.default = void 0;
  12394. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  12395. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 60));
  12396. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 62));
  12397. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 65));
  12398. var _utils = __webpack_require__(/*! ../utils */ 61);
  12399. 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; }
  12400. 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; }
  12401. /**
  12402. * 返回可选值存在的配置
  12403. * @param {Array} keys - 可选值数组
  12404. * @param {Object} config2 - 配置
  12405. * @return {{}} - 存在的配置项
  12406. */
  12407. var mergeKeys = function mergeKeys(keys, config2) {
  12408. var config = {};
  12409. keys.forEach(function (prop) {
  12410. if (!(0, _utils.isUndefined)(config2[prop])) {
  12411. config[prop] = config2[prop];
  12412. }
  12413. });
  12414. return config;
  12415. };
  12416. var _default = function _default(config) {
  12417. return new Promise(function (resolve, reject) {
  12418. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  12419. var _config = {
  12420. url: fullPath,
  12421. header: config.header,
  12422. complete: function complete(response) {
  12423. config.fullPath = fullPath;
  12424. response.config = config;
  12425. try {
  12426. // 对可能字符串不是json 的情况容错
  12427. if (typeof response.data === 'string') {
  12428. response.data = JSON.parse(response.data);
  12429. }
  12430. // eslint-disable-next-line no-empty
  12431. } catch (e) {}
  12432. (0, _settle.default)(resolve, reject, response);
  12433. }
  12434. };
  12435. var requestTask;
  12436. if (config.method === 'UPLOAD') {
  12437. delete _config.header['content-type'];
  12438. delete _config.header['Content-Type'];
  12439. var otherConfig = {
  12440. filePath: config.filePath,
  12441. name: config.name
  12442. };
  12443. var optionalKeys = ['formData'];
  12444. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  12445. } else if (config.method === 'DOWNLOAD') {
  12446. requestTask = uni.downloadFile(_config);
  12447. } else {
  12448. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  12449. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  12450. }
  12451. if (config.getTask) {
  12452. config.getTask(requestTask, config);
  12453. }
  12454. });
  12455. };
  12456. exports.default = _default;
  12457. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12458. /***/ }),
  12459. /* 60 */
  12460. /*!***************************************************************************************************!*\
  12461. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  12462. \***************************************************************************************************/
  12463. /*! no static exports found */
  12464. /***/ (function(module, exports, __webpack_require__) {
  12465. "use strict";
  12466. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  12467. Object.defineProperty(exports, "__esModule", {
  12468. value: true
  12469. });
  12470. exports.default = buildURL;
  12471. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 61));
  12472. function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
  12473. function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  12474. function encode(val) {
  12475. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  12476. }
  12477. /**
  12478. * Build a URL by appending params to the end
  12479. *
  12480. * @param {string} url The base of the url (e.g., http://www.google.com)
  12481. * @param {object} [params] The params to be appended
  12482. * @returns {string} The formatted url
  12483. */
  12484. function buildURL(url, params) {
  12485. /* eslint no-param-reassign:0 */
  12486. if (!params) {
  12487. return url;
  12488. }
  12489. var serializedParams;
  12490. if (utils.isURLSearchParams(params)) {
  12491. serializedParams = params.toString();
  12492. } else {
  12493. var parts = [];
  12494. utils.forEach(params, function (val, key) {
  12495. if (val === null || typeof val === 'undefined') {
  12496. return;
  12497. }
  12498. if (utils.isArray(val)) {
  12499. key = "".concat(key, "[]");
  12500. } else {
  12501. val = [val];
  12502. }
  12503. utils.forEach(val, function (v) {
  12504. if (utils.isDate(v)) {
  12505. v = v.toISOString();
  12506. } else if (utils.isObject(v)) {
  12507. v = JSON.stringify(v);
  12508. }
  12509. parts.push("".concat(encode(key), "=").concat(encode(v)));
  12510. });
  12511. });
  12512. serializedParams = parts.join('&');
  12513. }
  12514. if (serializedParams) {
  12515. var hashmarkIndex = url.indexOf('#');
  12516. if (hashmarkIndex !== -1) {
  12517. url = url.slice(0, hashmarkIndex);
  12518. }
  12519. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  12520. }
  12521. return url;
  12522. }
  12523. /***/ }),
  12524. /* 61 */
  12525. /*!****************************************************************************************!*\
  12526. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  12527. \****************************************************************************************/
  12528. /*! no static exports found */
  12529. /***/ (function(module, exports, __webpack_require__) {
  12530. "use strict";
  12531. // utils is a library of generic helper functions non-specific to axios
  12532. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12533. Object.defineProperty(exports, "__esModule", {
  12534. value: true
  12535. });
  12536. exports.deepMerge = deepMerge;
  12537. exports.forEach = forEach;
  12538. exports.isArray = isArray;
  12539. exports.isBoolean = isBoolean;
  12540. exports.isDate = isDate;
  12541. exports.isObject = isObject;
  12542. exports.isPlainObject = isPlainObject;
  12543. exports.isURLSearchParams = isURLSearchParams;
  12544. exports.isUndefined = isUndefined;
  12545. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12546. var toString = Object.prototype.toString;
  12547. /**
  12548. * Determine if a value is an Array
  12549. *
  12550. * @param {Object} val The value to test
  12551. * @returns {boolean} True if value is an Array, otherwise false
  12552. */
  12553. function isArray(val) {
  12554. return toString.call(val) === '[object Array]';
  12555. }
  12556. /**
  12557. * Determine if a value is an Object
  12558. *
  12559. * @param {Object} val The value to test
  12560. * @returns {boolean} True if value is an Object, otherwise false
  12561. */
  12562. function isObject(val) {
  12563. return val !== null && (0, _typeof2.default)(val) === 'object';
  12564. }
  12565. /**
  12566. * Determine if a value is a Date
  12567. *
  12568. * @param {Object} val The value to test
  12569. * @returns {boolean} True if value is a Date, otherwise false
  12570. */
  12571. function isDate(val) {
  12572. return toString.call(val) === '[object Date]';
  12573. }
  12574. /**
  12575. * Determine if a value is a URLSearchParams object
  12576. *
  12577. * @param {Object} val The value to test
  12578. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  12579. */
  12580. function isURLSearchParams(val) {
  12581. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  12582. }
  12583. /**
  12584. * Iterate over an Array or an Object invoking a function for each item.
  12585. *
  12586. * If `obj` is an Array callback will be called passing
  12587. * the value, index, and complete array for each item.
  12588. *
  12589. * If 'obj' is an Object callback will be called passing
  12590. * the value, key, and complete object for each property.
  12591. *
  12592. * @param {Object|Array} obj The object to iterate
  12593. * @param {Function} fn The callback to invoke for each item
  12594. */
  12595. function forEach(obj, fn) {
  12596. // Don't bother if no value provided
  12597. if (obj === null || typeof obj === 'undefined') {
  12598. return;
  12599. }
  12600. // Force an array if not already something iterable
  12601. if ((0, _typeof2.default)(obj) !== 'object') {
  12602. /* eslint no-param-reassign:0 */
  12603. obj = [obj];
  12604. }
  12605. if (isArray(obj)) {
  12606. // Iterate over array values
  12607. for (var i = 0, l = obj.length; i < l; i++) {
  12608. fn.call(null, obj[i], i, obj);
  12609. }
  12610. } else {
  12611. // Iterate over object keys
  12612. for (var key in obj) {
  12613. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  12614. fn.call(null, obj[key], key, obj);
  12615. }
  12616. }
  12617. }
  12618. }
  12619. /**
  12620. * 是否为boolean 值
  12621. * @param val
  12622. * @returns {boolean}
  12623. */
  12624. function isBoolean(val) {
  12625. return typeof val === 'boolean';
  12626. }
  12627. /**
  12628. * 是否为真正的对象{} new Object
  12629. * @param {any} obj - 检测的对象
  12630. * @returns {boolean}
  12631. */
  12632. function isPlainObject(obj) {
  12633. return Object.prototype.toString.call(obj) === '[object Object]';
  12634. }
  12635. /**
  12636. * Function equal to merge with the difference being that no reference
  12637. * to original objects is kept.
  12638. *
  12639. * @see merge
  12640. * @param {Object} obj1 Object to merge
  12641. * @returns {Object} Result of all merge properties
  12642. */
  12643. function deepMerge( /* obj1, obj2, obj3, ... */
  12644. ) {
  12645. var result = {};
  12646. function assignValue(val, key) {
  12647. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  12648. result[key] = deepMerge(result[key], val);
  12649. } else if ((0, _typeof2.default)(val) === 'object') {
  12650. result[key] = deepMerge({}, val);
  12651. } else {
  12652. result[key] = val;
  12653. }
  12654. }
  12655. for (var i = 0, l = arguments.length; i < l; i++) {
  12656. forEach(arguments[i], assignValue);
  12657. }
  12658. return result;
  12659. }
  12660. function isUndefined(val) {
  12661. return typeof val === 'undefined';
  12662. }
  12663. /***/ }),
  12664. /* 62 */
  12665. /*!*****************************************************************************************************!*\
  12666. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  12667. \*****************************************************************************************************/
  12668. /*! no static exports found */
  12669. /***/ (function(module, exports, __webpack_require__) {
  12670. "use strict";
  12671. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12672. Object.defineProperty(exports, "__esModule", {
  12673. value: true
  12674. });
  12675. exports.default = buildFullPath;
  12676. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 63));
  12677. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 64));
  12678. /**
  12679. * Creates a new URL by combining the baseURL with the requestedURL,
  12680. * only when the requestedURL is not already an absolute URL.
  12681. * If the requestURL is absolute, this function returns the requestedURL untouched.
  12682. *
  12683. * @param {string} baseURL The base URL
  12684. * @param {string} requestedURL Absolute or relative URL to combine
  12685. * @returns {string} The combined full path
  12686. */
  12687. function buildFullPath(baseURL, requestedURL) {
  12688. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  12689. return (0, _combineURLs.default)(baseURL, requestedURL);
  12690. }
  12691. return requestedURL;
  12692. }
  12693. /***/ }),
  12694. /* 63 */
  12695. /*!********************************************************************************************************!*\
  12696. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  12697. \********************************************************************************************************/
  12698. /*! no static exports found */
  12699. /***/ (function(module, exports, __webpack_require__) {
  12700. "use strict";
  12701. /**
  12702. * Determines whether the specified URL is absolute
  12703. *
  12704. * @param {string} url The URL to test
  12705. * @returns {boolean} True if the specified URL is absolute, otherwise false
  12706. */
  12707. Object.defineProperty(exports, "__esModule", {
  12708. value: true
  12709. });
  12710. exports.default = isAbsoluteURL;
  12711. function isAbsoluteURL(url) {
  12712. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  12713. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  12714. // by any combination of letters, digits, plus, period, or hyphen.
  12715. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  12716. }
  12717. /***/ }),
  12718. /* 64 */
  12719. /*!******************************************************************************************************!*\
  12720. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  12721. \******************************************************************************************************/
  12722. /*! no static exports found */
  12723. /***/ (function(module, exports, __webpack_require__) {
  12724. "use strict";
  12725. /**
  12726. * Creates a new URL by combining the specified URLs
  12727. *
  12728. * @param {string} baseURL The base URL
  12729. * @param {string} relativeURL The relative URL
  12730. * @returns {string} The combined URL
  12731. */
  12732. Object.defineProperty(exports, "__esModule", {
  12733. value: true
  12734. });
  12735. exports.default = combineURLs;
  12736. function combineURLs(baseURL, relativeURL) {
  12737. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  12738. }
  12739. /***/ }),
  12740. /* 65 */
  12741. /*!**********************************************************************************************!*\
  12742. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  12743. \**********************************************************************************************/
  12744. /*! no static exports found */
  12745. /***/ (function(module, exports, __webpack_require__) {
  12746. "use strict";
  12747. Object.defineProperty(exports, "__esModule", {
  12748. value: true
  12749. });
  12750. exports.default = settle;
  12751. /**
  12752. * Resolve or reject a Promise based on response status.
  12753. *
  12754. * @param {Function} resolve A function that resolves the promise.
  12755. * @param {Function} reject A function that rejects the promise.
  12756. * @param {object} response The response.
  12757. */
  12758. function settle(resolve, reject, response) {
  12759. var validateStatus = response.config.validateStatus;
  12760. var status = response.statusCode;
  12761. if (status && (!validateStatus || validateStatus(status))) {
  12762. resolve(response);
  12763. } else {
  12764. reject(response);
  12765. }
  12766. }
  12767. /***/ }),
  12768. /* 66 */
  12769. /*!**********************************************************************************************************!*\
  12770. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  12771. \**********************************************************************************************************/
  12772. /*! no static exports found */
  12773. /***/ (function(module, exports, __webpack_require__) {
  12774. "use strict";
  12775. Object.defineProperty(exports, "__esModule", {
  12776. value: true
  12777. });
  12778. exports.default = void 0;
  12779. function InterceptorManager() {
  12780. this.handlers = [];
  12781. }
  12782. /**
  12783. * Add a new interceptor to the stack
  12784. *
  12785. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  12786. * @param {Function} rejected The function to handle `reject` for a `Promise`
  12787. *
  12788. * @return {Number} An ID used to remove interceptor later
  12789. */
  12790. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  12791. this.handlers.push({
  12792. fulfilled: fulfilled,
  12793. rejected: rejected
  12794. });
  12795. return this.handlers.length - 1;
  12796. };
  12797. /**
  12798. * Remove an interceptor from the stack
  12799. *
  12800. * @param {Number} id The ID that was returned by `use`
  12801. */
  12802. InterceptorManager.prototype.eject = function eject(id) {
  12803. if (this.handlers[id]) {
  12804. this.handlers[id] = null;
  12805. }
  12806. };
  12807. /**
  12808. * Iterate over all the registered interceptors
  12809. *
  12810. * This method is particularly useful for skipping over any
  12811. * interceptors that may have become `null` calling `eject`.
  12812. *
  12813. * @param {Function} fn The function to call for each interceptor
  12814. */
  12815. InterceptorManager.prototype.forEach = function forEach(fn) {
  12816. this.handlers.forEach(function (h) {
  12817. if (h !== null) {
  12818. fn(h);
  12819. }
  12820. });
  12821. };
  12822. var _default = InterceptorManager;
  12823. exports.default = _default;
  12824. /***/ }),
  12825. /* 67 */
  12826. /*!***************************************************************************************************!*\
  12827. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  12828. \***************************************************************************************************/
  12829. /*! no static exports found */
  12830. /***/ (function(module, exports, __webpack_require__) {
  12831. "use strict";
  12832. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12833. Object.defineProperty(exports, "__esModule", {
  12834. value: true
  12835. });
  12836. exports.default = void 0;
  12837. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  12838. var _utils = __webpack_require__(/*! ../utils */ 61);
  12839. 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; }
  12840. 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; }
  12841. /**
  12842. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  12843. * @param {Array} keys - 配置项
  12844. * @param {Object} globalsConfig - 当前的全局配置
  12845. * @param {Object} config2 - 局部配置
  12846. * @return {{}}
  12847. */
  12848. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  12849. var config = {};
  12850. keys.forEach(function (prop) {
  12851. if (!(0, _utils.isUndefined)(config2[prop])) {
  12852. config[prop] = config2[prop];
  12853. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  12854. config[prop] = globalsConfig[prop];
  12855. }
  12856. });
  12857. return config;
  12858. };
  12859. /**
  12860. *
  12861. * @param globalsConfig - 当前实例的全局配置
  12862. * @param config2 - 当前的局部配置
  12863. * @return - 合并后的配置
  12864. */
  12865. var _default = function _default(globalsConfig) {
  12866. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12867. var method = config2.method || globalsConfig.method || 'GET';
  12868. var config = {
  12869. baseURL: globalsConfig.baseURL || '',
  12870. method: method,
  12871. url: config2.url || '',
  12872. params: config2.params || {},
  12873. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  12874. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  12875. };
  12876. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  12877. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  12878. // eslint-disable-next-line no-empty
  12879. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  12880. delete config.header['content-type'];
  12881. delete config.header['Content-Type'];
  12882. var uploadKeys = ['filePath', 'name', 'formData'];
  12883. uploadKeys.forEach(function (prop) {
  12884. if (!(0, _utils.isUndefined)(config2[prop])) {
  12885. config[prop] = config2[prop];
  12886. }
  12887. });
  12888. } else {
  12889. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  12890. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  12891. }
  12892. return config;
  12893. };
  12894. exports.default = _default;
  12895. /***/ }),
  12896. /* 68 */
  12897. /*!************************************************************************************************!*\
  12898. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  12899. \************************************************************************************************/
  12900. /*! no static exports found */
  12901. /***/ (function(module, exports, __webpack_require__) {
  12902. "use strict";
  12903. Object.defineProperty(exports, "__esModule", {
  12904. value: true
  12905. });
  12906. exports.default = void 0;
  12907. /**
  12908. * 默认的全局配置
  12909. */
  12910. var _default = {
  12911. baseURL: '',
  12912. header: {},
  12913. method: 'GET',
  12914. dataType: 'json',
  12915. responseType: 'text',
  12916. custom: {},
  12917. timeout: 60000,
  12918. validateStatus: function validateStatus(status) {
  12919. return status >= 200 && status < 300;
  12920. }
  12921. };
  12922. exports.default = _default;
  12923. /***/ }),
  12924. /* 69 */
  12925. /*!**********************************************************************************************!*\
  12926. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  12927. \**********************************************************************************************/
  12928. /*! no static exports found */
  12929. /***/ (function(module, exports, __webpack_require__) {
  12930. "use strict";
  12931. /* WEBPACK VAR INJECTION */(function(Buffer) {
  12932. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12933. Object.defineProperty(exports, "__esModule", {
  12934. value: true
  12935. });
  12936. exports.default = void 0;
  12937. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12938. /* eslint-disable */
  12939. var clone = function () {
  12940. 'use strict';
  12941. function _instanceof(obj, type) {
  12942. return type != null && obj instanceof type;
  12943. }
  12944. var nativeMap;
  12945. try {
  12946. nativeMap = Map;
  12947. } catch (_) {
  12948. // maybe a reference error because no `Map`. Give it a dummy value that no
  12949. // value will ever be an instanceof.
  12950. nativeMap = function nativeMap() {};
  12951. }
  12952. var nativeSet;
  12953. try {
  12954. nativeSet = Set;
  12955. } catch (_) {
  12956. nativeSet = function nativeSet() {};
  12957. }
  12958. var nativePromise;
  12959. try {
  12960. nativePromise = Promise;
  12961. } catch (_) {
  12962. nativePromise = function nativePromise() {};
  12963. }
  12964. /**
  12965. * Clones (copies) an Object using deep copying.
  12966. *
  12967. * This function supports circular references by default, but if you are certain
  12968. * there are no circular references in your object, you can save some CPU time
  12969. * by calling clone(obj, false).
  12970. *
  12971. * Caution: if `circular` is false and `parent` contains circular references,
  12972. * your program may enter an infinite loop and crash.
  12973. *
  12974. * @param `parent` - the object to be cloned
  12975. * @param `circular` - set to true if the object to be cloned may contain
  12976. * circular references. (optional - true by default)
  12977. * @param `depth` - set to a number if the object is only to be cloned to
  12978. * a particular depth. (optional - defaults to Infinity)
  12979. * @param `prototype` - sets the prototype to be used when cloning an object.
  12980. * (optional - defaults to parent prototype).
  12981. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  12982. * should be cloned as well. Non-enumerable properties on the prototype
  12983. * chain will be ignored. (optional - false by default)
  12984. */
  12985. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  12986. if ((0, _typeof2.default)(circular) === 'object') {
  12987. depth = circular.depth;
  12988. prototype = circular.prototype;
  12989. includeNonEnumerable = circular.includeNonEnumerable;
  12990. circular = circular.circular;
  12991. }
  12992. // maintain two arrays for circular references, where corresponding parents
  12993. // and children have the same index
  12994. var allParents = [];
  12995. var allChildren = [];
  12996. var useBuffer = typeof Buffer != 'undefined';
  12997. if (typeof circular == 'undefined') circular = true;
  12998. if (typeof depth == 'undefined') depth = Infinity;
  12999. // recurse this function so we don't reset allParents and allChildren
  13000. function _clone(parent, depth) {
  13001. // cloning null always returns null
  13002. if (parent === null) return null;
  13003. if (depth === 0) return parent;
  13004. var child;
  13005. var proto;
  13006. if ((0, _typeof2.default)(parent) != 'object') {
  13007. return parent;
  13008. }
  13009. if (_instanceof(parent, nativeMap)) {
  13010. child = new nativeMap();
  13011. } else if (_instanceof(parent, nativeSet)) {
  13012. child = new nativeSet();
  13013. } else if (_instanceof(parent, nativePromise)) {
  13014. child = new nativePromise(function (resolve, reject) {
  13015. parent.then(function (value) {
  13016. resolve(_clone(value, depth - 1));
  13017. }, function (err) {
  13018. reject(_clone(err, depth - 1));
  13019. });
  13020. });
  13021. } else if (clone.__isArray(parent)) {
  13022. child = [];
  13023. } else if (clone.__isRegExp(parent)) {
  13024. child = new RegExp(parent.source, __getRegExpFlags(parent));
  13025. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  13026. } else if (clone.__isDate(parent)) {
  13027. child = new Date(parent.getTime());
  13028. } else if (useBuffer && Buffer.isBuffer(parent)) {
  13029. if (Buffer.from) {
  13030. // Node.js >= 5.10.0
  13031. child = Buffer.from(parent);
  13032. } else {
  13033. // Older Node.js versions
  13034. child = new Buffer(parent.length);
  13035. parent.copy(child);
  13036. }
  13037. return child;
  13038. } else if (_instanceof(parent, Error)) {
  13039. child = Object.create(parent);
  13040. } else {
  13041. if (typeof prototype == 'undefined') {
  13042. proto = Object.getPrototypeOf(parent);
  13043. child = Object.create(proto);
  13044. } else {
  13045. child = Object.create(prototype);
  13046. proto = prototype;
  13047. }
  13048. }
  13049. if (circular) {
  13050. var index = allParents.indexOf(parent);
  13051. if (index != -1) {
  13052. return allChildren[index];
  13053. }
  13054. allParents.push(parent);
  13055. allChildren.push(child);
  13056. }
  13057. if (_instanceof(parent, nativeMap)) {
  13058. parent.forEach(function (value, key) {
  13059. var keyChild = _clone(key, depth - 1);
  13060. var valueChild = _clone(value, depth - 1);
  13061. child.set(keyChild, valueChild);
  13062. });
  13063. }
  13064. if (_instanceof(parent, nativeSet)) {
  13065. parent.forEach(function (value) {
  13066. var entryChild = _clone(value, depth - 1);
  13067. child.add(entryChild);
  13068. });
  13069. }
  13070. for (var i in parent) {
  13071. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  13072. if (attrs) {
  13073. child[i] = _clone(parent[i], depth - 1);
  13074. }
  13075. try {
  13076. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  13077. if (objProperty.set === 'undefined') {
  13078. // no setter defined. Skip cloning this property
  13079. continue;
  13080. }
  13081. child[i] = _clone(parent[i], depth - 1);
  13082. } catch (e) {
  13083. if (e instanceof TypeError) {
  13084. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  13085. // we can't do anything about this, other than inform the user that this property cannot be set.
  13086. continue;
  13087. } else if (e instanceof ReferenceError) {
  13088. //this may happen in non strict mode
  13089. continue;
  13090. }
  13091. }
  13092. }
  13093. if (Object.getOwnPropertySymbols) {
  13094. var symbols = Object.getOwnPropertySymbols(parent);
  13095. for (var i = 0; i < symbols.length; i++) {
  13096. // Don't need to worry about cloning a symbol because it is a primitive,
  13097. // like a number or string.
  13098. var symbol = symbols[i];
  13099. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  13100. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  13101. continue;
  13102. }
  13103. child[symbol] = _clone(parent[symbol], depth - 1);
  13104. Object.defineProperty(child, symbol, descriptor);
  13105. }
  13106. }
  13107. if (includeNonEnumerable) {
  13108. var allPropertyNames = Object.getOwnPropertyNames(parent);
  13109. for (var i = 0; i < allPropertyNames.length; i++) {
  13110. var propertyName = allPropertyNames[i];
  13111. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  13112. if (descriptor && descriptor.enumerable) {
  13113. continue;
  13114. }
  13115. child[propertyName] = _clone(parent[propertyName], depth - 1);
  13116. Object.defineProperty(child, propertyName, descriptor);
  13117. }
  13118. }
  13119. return child;
  13120. }
  13121. return _clone(parent, depth);
  13122. }
  13123. /**
  13124. * Simple flat clone using prototype, accepts only objects, usefull for property
  13125. * override on FLAT configuration object (no nested props).
  13126. *
  13127. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  13128. * works.
  13129. */
  13130. clone.clonePrototype = function clonePrototype(parent) {
  13131. if (parent === null) return null;
  13132. var c = function c() {};
  13133. c.prototype = parent;
  13134. return new c();
  13135. };
  13136. // private utility functions
  13137. function __objToStr(o) {
  13138. return Object.prototype.toString.call(o);
  13139. }
  13140. clone.__objToStr = __objToStr;
  13141. function __isDate(o) {
  13142. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  13143. }
  13144. clone.__isDate = __isDate;
  13145. function __isArray(o) {
  13146. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  13147. }
  13148. clone.__isArray = __isArray;
  13149. function __isRegExp(o) {
  13150. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  13151. }
  13152. clone.__isRegExp = __isRegExp;
  13153. function __getRegExpFlags(re) {
  13154. var flags = '';
  13155. if (re.global) flags += 'g';
  13156. if (re.ignoreCase) flags += 'i';
  13157. if (re.multiline) flags += 'm';
  13158. return flags;
  13159. }
  13160. clone.__getRegExpFlags = __getRegExpFlags;
  13161. return clone;
  13162. }();
  13163. var _default = clone;
  13164. exports.default = _default;
  13165. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../HBuilderX.3.4.18.20220630/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 70).Buffer))
  13166. /***/ }),
  13167. /* 70 */
  13168. /*!**************************************!*\
  13169. !*** ./node_modules/buffer/index.js ***!
  13170. \**************************************/
  13171. /*! no static exports found */
  13172. /***/ (function(module, exports, __webpack_require__) {
  13173. "use strict";
  13174. /* WEBPACK VAR INJECTION */(function(global) {/*!
  13175. * The buffer module from node.js, for the browser.
  13176. *
  13177. * @author Feross Aboukhadijeh <http://feross.org>
  13178. * @license MIT
  13179. */
  13180. /* eslint-disable no-proto */
  13181. var base64 = __webpack_require__(/*! base64-js */ 71)
  13182. var ieee754 = __webpack_require__(/*! ieee754 */ 72)
  13183. var isArray = __webpack_require__(/*! isarray */ 73)
  13184. exports.Buffer = Buffer
  13185. exports.SlowBuffer = SlowBuffer
  13186. exports.INSPECT_MAX_BYTES = 50
  13187. /**
  13188. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  13189. * === true Use Uint8Array implementation (fastest)
  13190. * === false Use Object implementation (most compatible, even IE6)
  13191. *
  13192. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  13193. * Opera 11.6+, iOS 4.2+.
  13194. *
  13195. * Due to various browser bugs, sometimes the Object implementation will be used even
  13196. * when the browser supports typed arrays.
  13197. *
  13198. * Note:
  13199. *
  13200. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  13201. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  13202. *
  13203. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  13204. *
  13205. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  13206. * incorrect length in some situations.
  13207. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  13208. * get the Object implementation, which is slower but behaves correctly.
  13209. */
  13210. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  13211. ? global.TYPED_ARRAY_SUPPORT
  13212. : typedArraySupport()
  13213. /*
  13214. * Export kMaxLength after typed array support is determined.
  13215. */
  13216. exports.kMaxLength = kMaxLength()
  13217. function typedArraySupport () {
  13218. try {
  13219. var arr = new Uint8Array(1)
  13220. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  13221. return arr.foo() === 42 && // typed array instances can be augmented
  13222. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  13223. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  13224. } catch (e) {
  13225. return false
  13226. }
  13227. }
  13228. function kMaxLength () {
  13229. return Buffer.TYPED_ARRAY_SUPPORT
  13230. ? 0x7fffffff
  13231. : 0x3fffffff
  13232. }
  13233. function createBuffer (that, length) {
  13234. if (kMaxLength() < length) {
  13235. throw new RangeError('Invalid typed array length')
  13236. }
  13237. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13238. // Return an augmented `Uint8Array` instance, for best performance
  13239. that = new Uint8Array(length)
  13240. that.__proto__ = Buffer.prototype
  13241. } else {
  13242. // Fallback: Return an object instance of the Buffer class
  13243. if (that === null) {
  13244. that = new Buffer(length)
  13245. }
  13246. that.length = length
  13247. }
  13248. return that
  13249. }
  13250. /**
  13251. * The Buffer constructor returns instances of `Uint8Array` that have their
  13252. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  13253. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  13254. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  13255. * returns a single octet.
  13256. *
  13257. * The `Uint8Array` prototype remains unmodified.
  13258. */
  13259. function Buffer (arg, encodingOrOffset, length) {
  13260. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  13261. return new Buffer(arg, encodingOrOffset, length)
  13262. }
  13263. // Common case.
  13264. if (typeof arg === 'number') {
  13265. if (typeof encodingOrOffset === 'string') {
  13266. throw new Error(
  13267. 'If encoding is specified then the first argument must be a string'
  13268. )
  13269. }
  13270. return allocUnsafe(this, arg)
  13271. }
  13272. return from(this, arg, encodingOrOffset, length)
  13273. }
  13274. Buffer.poolSize = 8192 // not used by this implementation
  13275. // TODO: Legacy, not needed anymore. Remove in next major version.
  13276. Buffer._augment = function (arr) {
  13277. arr.__proto__ = Buffer.prototype
  13278. return arr
  13279. }
  13280. function from (that, value, encodingOrOffset, length) {
  13281. if (typeof value === 'number') {
  13282. throw new TypeError('"value" argument must not be a number')
  13283. }
  13284. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  13285. return fromArrayBuffer(that, value, encodingOrOffset, length)
  13286. }
  13287. if (typeof value === 'string') {
  13288. return fromString(that, value, encodingOrOffset)
  13289. }
  13290. return fromObject(that, value)
  13291. }
  13292. /**
  13293. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  13294. * if value is a number.
  13295. * Buffer.from(str[, encoding])
  13296. * Buffer.from(array)
  13297. * Buffer.from(buffer)
  13298. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  13299. **/
  13300. Buffer.from = function (value, encodingOrOffset, length) {
  13301. return from(null, value, encodingOrOffset, length)
  13302. }
  13303. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13304. Buffer.prototype.__proto__ = Uint8Array.prototype
  13305. Buffer.__proto__ = Uint8Array
  13306. if (typeof Symbol !== 'undefined' && Symbol.species &&
  13307. Buffer[Symbol.species] === Buffer) {
  13308. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  13309. Object.defineProperty(Buffer, Symbol.species, {
  13310. value: null,
  13311. configurable: true
  13312. })
  13313. }
  13314. }
  13315. function assertSize (size) {
  13316. if (typeof size !== 'number') {
  13317. throw new TypeError('"size" argument must be a number')
  13318. } else if (size < 0) {
  13319. throw new RangeError('"size" argument must not be negative')
  13320. }
  13321. }
  13322. function alloc (that, size, fill, encoding) {
  13323. assertSize(size)
  13324. if (size <= 0) {
  13325. return createBuffer(that, size)
  13326. }
  13327. if (fill !== undefined) {
  13328. // Only pay attention to encoding if it's a string. This
  13329. // prevents accidentally sending in a number that would
  13330. // be interpretted as a start offset.
  13331. return typeof encoding === 'string'
  13332. ? createBuffer(that, size).fill(fill, encoding)
  13333. : createBuffer(that, size).fill(fill)
  13334. }
  13335. return createBuffer(that, size)
  13336. }
  13337. /**
  13338. * Creates a new filled Buffer instance.
  13339. * alloc(size[, fill[, encoding]])
  13340. **/
  13341. Buffer.alloc = function (size, fill, encoding) {
  13342. return alloc(null, size, fill, encoding)
  13343. }
  13344. function allocUnsafe (that, size) {
  13345. assertSize(size)
  13346. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  13347. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  13348. for (var i = 0; i < size; ++i) {
  13349. that[i] = 0
  13350. }
  13351. }
  13352. return that
  13353. }
  13354. /**
  13355. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  13356. * */
  13357. Buffer.allocUnsafe = function (size) {
  13358. return allocUnsafe(null, size)
  13359. }
  13360. /**
  13361. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  13362. */
  13363. Buffer.allocUnsafeSlow = function (size) {
  13364. return allocUnsafe(null, size)
  13365. }
  13366. function fromString (that, string, encoding) {
  13367. if (typeof encoding !== 'string' || encoding === '') {
  13368. encoding = 'utf8'
  13369. }
  13370. if (!Buffer.isEncoding(encoding)) {
  13371. throw new TypeError('"encoding" must be a valid string encoding')
  13372. }
  13373. var length = byteLength(string, encoding) | 0
  13374. that = createBuffer(that, length)
  13375. var actual = that.write(string, encoding)
  13376. if (actual !== length) {
  13377. // Writing a hex string, for example, that contains invalid characters will
  13378. // cause everything after the first invalid character to be ignored. (e.g.
  13379. // 'abxxcd' will be treated as 'ab')
  13380. that = that.slice(0, actual)
  13381. }
  13382. return that
  13383. }
  13384. function fromArrayLike (that, array) {
  13385. var length = array.length < 0 ? 0 : checked(array.length) | 0
  13386. that = createBuffer(that, length)
  13387. for (var i = 0; i < length; i += 1) {
  13388. that[i] = array[i] & 255
  13389. }
  13390. return that
  13391. }
  13392. function fromArrayBuffer (that, array, byteOffset, length) {
  13393. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  13394. if (byteOffset < 0 || array.byteLength < byteOffset) {
  13395. throw new RangeError('\'offset\' is out of bounds')
  13396. }
  13397. if (array.byteLength < byteOffset + (length || 0)) {
  13398. throw new RangeError('\'length\' is out of bounds')
  13399. }
  13400. if (byteOffset === undefined && length === undefined) {
  13401. array = new Uint8Array(array)
  13402. } else if (length === undefined) {
  13403. array = new Uint8Array(array, byteOffset)
  13404. } else {
  13405. array = new Uint8Array(array, byteOffset, length)
  13406. }
  13407. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13408. // Return an augmented `Uint8Array` instance, for best performance
  13409. that = array
  13410. that.__proto__ = Buffer.prototype
  13411. } else {
  13412. // Fallback: Return an object instance of the Buffer class
  13413. that = fromArrayLike(that, array)
  13414. }
  13415. return that
  13416. }
  13417. function fromObject (that, obj) {
  13418. if (Buffer.isBuffer(obj)) {
  13419. var len = checked(obj.length) | 0
  13420. that = createBuffer(that, len)
  13421. if (that.length === 0) {
  13422. return that
  13423. }
  13424. obj.copy(that, 0, 0, len)
  13425. return that
  13426. }
  13427. if (obj) {
  13428. if ((typeof ArrayBuffer !== 'undefined' &&
  13429. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  13430. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  13431. return createBuffer(that, 0)
  13432. }
  13433. return fromArrayLike(that, obj)
  13434. }
  13435. if (obj.type === 'Buffer' && isArray(obj.data)) {
  13436. return fromArrayLike(that, obj.data)
  13437. }
  13438. }
  13439. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  13440. }
  13441. function checked (length) {
  13442. // Note: cannot use `length < kMaxLength()` here because that fails when
  13443. // length is NaN (which is otherwise coerced to zero.)
  13444. if (length >= kMaxLength()) {
  13445. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  13446. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  13447. }
  13448. return length | 0
  13449. }
  13450. function SlowBuffer (length) {
  13451. if (+length != length) { // eslint-disable-line eqeqeq
  13452. length = 0
  13453. }
  13454. return Buffer.alloc(+length)
  13455. }
  13456. Buffer.isBuffer = function isBuffer (b) {
  13457. return !!(b != null && b._isBuffer)
  13458. }
  13459. Buffer.compare = function compare (a, b) {
  13460. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  13461. throw new TypeError('Arguments must be Buffers')
  13462. }
  13463. if (a === b) return 0
  13464. var x = a.length
  13465. var y = b.length
  13466. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  13467. if (a[i] !== b[i]) {
  13468. x = a[i]
  13469. y = b[i]
  13470. break
  13471. }
  13472. }
  13473. if (x < y) return -1
  13474. if (y < x) return 1
  13475. return 0
  13476. }
  13477. Buffer.isEncoding = function isEncoding (encoding) {
  13478. switch (String(encoding).toLowerCase()) {
  13479. case 'hex':
  13480. case 'utf8':
  13481. case 'utf-8':
  13482. case 'ascii':
  13483. case 'latin1':
  13484. case 'binary':
  13485. case 'base64':
  13486. case 'ucs2':
  13487. case 'ucs-2':
  13488. case 'utf16le':
  13489. case 'utf-16le':
  13490. return true
  13491. default:
  13492. return false
  13493. }
  13494. }
  13495. Buffer.concat = function concat (list, length) {
  13496. if (!isArray(list)) {
  13497. throw new TypeError('"list" argument must be an Array of Buffers')
  13498. }
  13499. if (list.length === 0) {
  13500. return Buffer.alloc(0)
  13501. }
  13502. var i
  13503. if (length === undefined) {
  13504. length = 0
  13505. for (i = 0; i < list.length; ++i) {
  13506. length += list[i].length
  13507. }
  13508. }
  13509. var buffer = Buffer.allocUnsafe(length)
  13510. var pos = 0
  13511. for (i = 0; i < list.length; ++i) {
  13512. var buf = list[i]
  13513. if (!Buffer.isBuffer(buf)) {
  13514. throw new TypeError('"list" argument must be an Array of Buffers')
  13515. }
  13516. buf.copy(buffer, pos)
  13517. pos += buf.length
  13518. }
  13519. return buffer
  13520. }
  13521. function byteLength (string, encoding) {
  13522. if (Buffer.isBuffer(string)) {
  13523. return string.length
  13524. }
  13525. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  13526. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  13527. return string.byteLength
  13528. }
  13529. if (typeof string !== 'string') {
  13530. string = '' + string
  13531. }
  13532. var len = string.length
  13533. if (len === 0) return 0
  13534. // Use a for loop to avoid recursion
  13535. var loweredCase = false
  13536. for (;;) {
  13537. switch (encoding) {
  13538. case 'ascii':
  13539. case 'latin1':
  13540. case 'binary':
  13541. return len
  13542. case 'utf8':
  13543. case 'utf-8':
  13544. case undefined:
  13545. return utf8ToBytes(string).length
  13546. case 'ucs2':
  13547. case 'ucs-2':
  13548. case 'utf16le':
  13549. case 'utf-16le':
  13550. return len * 2
  13551. case 'hex':
  13552. return len >>> 1
  13553. case 'base64':
  13554. return base64ToBytes(string).length
  13555. default:
  13556. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  13557. encoding = ('' + encoding).toLowerCase()
  13558. loweredCase = true
  13559. }
  13560. }
  13561. }
  13562. Buffer.byteLength = byteLength
  13563. function slowToString (encoding, start, end) {
  13564. var loweredCase = false
  13565. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  13566. // property of a typed array.
  13567. // This behaves neither like String nor Uint8Array in that we set start/end
  13568. // to their upper/lower bounds if the value passed is out of range.
  13569. // undefined is handled specially as per ECMA-262 6th Edition,
  13570. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  13571. if (start === undefined || start < 0) {
  13572. start = 0
  13573. }
  13574. // Return early if start > this.length. Done here to prevent potential uint32
  13575. // coercion fail below.
  13576. if (start > this.length) {
  13577. return ''
  13578. }
  13579. if (end === undefined || end > this.length) {
  13580. end = this.length
  13581. }
  13582. if (end <= 0) {
  13583. return ''
  13584. }
  13585. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  13586. end >>>= 0
  13587. start >>>= 0
  13588. if (end <= start) {
  13589. return ''
  13590. }
  13591. if (!encoding) encoding = 'utf8'
  13592. while (true) {
  13593. switch (encoding) {
  13594. case 'hex':
  13595. return hexSlice(this, start, end)
  13596. case 'utf8':
  13597. case 'utf-8':
  13598. return utf8Slice(this, start, end)
  13599. case 'ascii':
  13600. return asciiSlice(this, start, end)
  13601. case 'latin1':
  13602. case 'binary':
  13603. return latin1Slice(this, start, end)
  13604. case 'base64':
  13605. return base64Slice(this, start, end)
  13606. case 'ucs2':
  13607. case 'ucs-2':
  13608. case 'utf16le':
  13609. case 'utf-16le':
  13610. return utf16leSlice(this, start, end)
  13611. default:
  13612. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  13613. encoding = (encoding + '').toLowerCase()
  13614. loweredCase = true
  13615. }
  13616. }
  13617. }
  13618. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  13619. // Buffer instances.
  13620. Buffer.prototype._isBuffer = true
  13621. function swap (b, n, m) {
  13622. var i = b[n]
  13623. b[n] = b[m]
  13624. b[m] = i
  13625. }
  13626. Buffer.prototype.swap16 = function swap16 () {
  13627. var len = this.length
  13628. if (len % 2 !== 0) {
  13629. throw new RangeError('Buffer size must be a multiple of 16-bits')
  13630. }
  13631. for (var i = 0; i < len; i += 2) {
  13632. swap(this, i, i + 1)
  13633. }
  13634. return this
  13635. }
  13636. Buffer.prototype.swap32 = function swap32 () {
  13637. var len = this.length
  13638. if (len % 4 !== 0) {
  13639. throw new RangeError('Buffer size must be a multiple of 32-bits')
  13640. }
  13641. for (var i = 0; i < len; i += 4) {
  13642. swap(this, i, i + 3)
  13643. swap(this, i + 1, i + 2)
  13644. }
  13645. return this
  13646. }
  13647. Buffer.prototype.swap64 = function swap64 () {
  13648. var len = this.length
  13649. if (len % 8 !== 0) {
  13650. throw new RangeError('Buffer size must be a multiple of 64-bits')
  13651. }
  13652. for (var i = 0; i < len; i += 8) {
  13653. swap(this, i, i + 7)
  13654. swap(this, i + 1, i + 6)
  13655. swap(this, i + 2, i + 5)
  13656. swap(this, i + 3, i + 4)
  13657. }
  13658. return this
  13659. }
  13660. Buffer.prototype.toString = function toString () {
  13661. var length = this.length | 0
  13662. if (length === 0) return ''
  13663. if (arguments.length === 0) return utf8Slice(this, 0, length)
  13664. return slowToString.apply(this, arguments)
  13665. }
  13666. Buffer.prototype.equals = function equals (b) {
  13667. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  13668. if (this === b) return true
  13669. return Buffer.compare(this, b) === 0
  13670. }
  13671. Buffer.prototype.inspect = function inspect () {
  13672. var str = ''
  13673. var max = exports.INSPECT_MAX_BYTES
  13674. if (this.length > 0) {
  13675. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  13676. if (this.length > max) str += ' ... '
  13677. }
  13678. return '<Buffer ' + str + '>'
  13679. }
  13680. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  13681. if (!Buffer.isBuffer(target)) {
  13682. throw new TypeError('Argument must be a Buffer')
  13683. }
  13684. if (start === undefined) {
  13685. start = 0
  13686. }
  13687. if (end === undefined) {
  13688. end = target ? target.length : 0
  13689. }
  13690. if (thisStart === undefined) {
  13691. thisStart = 0
  13692. }
  13693. if (thisEnd === undefined) {
  13694. thisEnd = this.length
  13695. }
  13696. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  13697. throw new RangeError('out of range index')
  13698. }
  13699. if (thisStart >= thisEnd && start >= end) {
  13700. return 0
  13701. }
  13702. if (thisStart >= thisEnd) {
  13703. return -1
  13704. }
  13705. if (start >= end) {
  13706. return 1
  13707. }
  13708. start >>>= 0
  13709. end >>>= 0
  13710. thisStart >>>= 0
  13711. thisEnd >>>= 0
  13712. if (this === target) return 0
  13713. var x = thisEnd - thisStart
  13714. var y = end - start
  13715. var len = Math.min(x, y)
  13716. var thisCopy = this.slice(thisStart, thisEnd)
  13717. var targetCopy = target.slice(start, end)
  13718. for (var i = 0; i < len; ++i) {
  13719. if (thisCopy[i] !== targetCopy[i]) {
  13720. x = thisCopy[i]
  13721. y = targetCopy[i]
  13722. break
  13723. }
  13724. }
  13725. if (x < y) return -1
  13726. if (y < x) return 1
  13727. return 0
  13728. }
  13729. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  13730. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  13731. //
  13732. // Arguments:
  13733. // - buffer - a Buffer to search
  13734. // - val - a string, Buffer, or number
  13735. // - byteOffset - an index into `buffer`; will be clamped to an int32
  13736. // - encoding - an optional encoding, relevant is val is a string
  13737. // - dir - true for indexOf, false for lastIndexOf
  13738. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  13739. // Empty buffer means no match
  13740. if (buffer.length === 0) return -1
  13741. // Normalize byteOffset
  13742. if (typeof byteOffset === 'string') {
  13743. encoding = byteOffset
  13744. byteOffset = 0
  13745. } else if (byteOffset > 0x7fffffff) {
  13746. byteOffset = 0x7fffffff
  13747. } else if (byteOffset < -0x80000000) {
  13748. byteOffset = -0x80000000
  13749. }
  13750. byteOffset = +byteOffset // Coerce to Number.
  13751. if (isNaN(byteOffset)) {
  13752. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  13753. byteOffset = dir ? 0 : (buffer.length - 1)
  13754. }
  13755. // Normalize byteOffset: negative offsets start from the end of the buffer
  13756. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  13757. if (byteOffset >= buffer.length) {
  13758. if (dir) return -1
  13759. else byteOffset = buffer.length - 1
  13760. } else if (byteOffset < 0) {
  13761. if (dir) byteOffset = 0
  13762. else return -1
  13763. }
  13764. // Normalize val
  13765. if (typeof val === 'string') {
  13766. val = Buffer.from(val, encoding)
  13767. }
  13768. // Finally, search either indexOf (if dir is true) or lastIndexOf
  13769. if (Buffer.isBuffer(val)) {
  13770. // Special case: looking for empty string/buffer always fails
  13771. if (val.length === 0) {
  13772. return -1
  13773. }
  13774. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  13775. } else if (typeof val === 'number') {
  13776. val = val & 0xFF // Search for a byte value [0-255]
  13777. if (Buffer.TYPED_ARRAY_SUPPORT &&
  13778. typeof Uint8Array.prototype.indexOf === 'function') {
  13779. if (dir) {
  13780. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  13781. } else {
  13782. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  13783. }
  13784. }
  13785. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  13786. }
  13787. throw new TypeError('val must be string, number or Buffer')
  13788. }
  13789. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  13790. var indexSize = 1
  13791. var arrLength = arr.length
  13792. var valLength = val.length
  13793. if (encoding !== undefined) {
  13794. encoding = String(encoding).toLowerCase()
  13795. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  13796. encoding === 'utf16le' || encoding === 'utf-16le') {
  13797. if (arr.length < 2 || val.length < 2) {
  13798. return -1
  13799. }
  13800. indexSize = 2
  13801. arrLength /= 2
  13802. valLength /= 2
  13803. byteOffset /= 2
  13804. }
  13805. }
  13806. function read (buf, i) {
  13807. if (indexSize === 1) {
  13808. return buf[i]
  13809. } else {
  13810. return buf.readUInt16BE(i * indexSize)
  13811. }
  13812. }
  13813. var i
  13814. if (dir) {
  13815. var foundIndex = -1
  13816. for (i = byteOffset; i < arrLength; i++) {
  13817. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  13818. if (foundIndex === -1) foundIndex = i
  13819. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  13820. } else {
  13821. if (foundIndex !== -1) i -= i - foundIndex
  13822. foundIndex = -1
  13823. }
  13824. }
  13825. } else {
  13826. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  13827. for (i = byteOffset; i >= 0; i--) {
  13828. var found = true
  13829. for (var j = 0; j < valLength; j++) {
  13830. if (read(arr, i + j) !== read(val, j)) {
  13831. found = false
  13832. break
  13833. }
  13834. }
  13835. if (found) return i
  13836. }
  13837. }
  13838. return -1
  13839. }
  13840. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  13841. return this.indexOf(val, byteOffset, encoding) !== -1
  13842. }
  13843. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  13844. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  13845. }
  13846. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  13847. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  13848. }
  13849. function hexWrite (buf, string, offset, length) {
  13850. offset = Number(offset) || 0
  13851. var remaining = buf.length - offset
  13852. if (!length) {
  13853. length = remaining
  13854. } else {
  13855. length = Number(length)
  13856. if (length > remaining) {
  13857. length = remaining
  13858. }
  13859. }
  13860. // must be an even number of digits
  13861. var strLen = string.length
  13862. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  13863. if (length > strLen / 2) {
  13864. length = strLen / 2
  13865. }
  13866. for (var i = 0; i < length; ++i) {
  13867. var parsed = parseInt(string.substr(i * 2, 2), 16)
  13868. if (isNaN(parsed)) return i
  13869. buf[offset + i] = parsed
  13870. }
  13871. return i
  13872. }
  13873. function utf8Write (buf, string, offset, length) {
  13874. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  13875. }
  13876. function asciiWrite (buf, string, offset, length) {
  13877. return blitBuffer(asciiToBytes(string), buf, offset, length)
  13878. }
  13879. function latin1Write (buf, string, offset, length) {
  13880. return asciiWrite(buf, string, offset, length)
  13881. }
  13882. function base64Write (buf, string, offset, length) {
  13883. return blitBuffer(base64ToBytes(string), buf, offset, length)
  13884. }
  13885. function ucs2Write (buf, string, offset, length) {
  13886. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  13887. }
  13888. Buffer.prototype.write = function write (string, offset, length, encoding) {
  13889. // Buffer#write(string)
  13890. if (offset === undefined) {
  13891. encoding = 'utf8'
  13892. length = this.length
  13893. offset = 0
  13894. // Buffer#write(string, encoding)
  13895. } else if (length === undefined && typeof offset === 'string') {
  13896. encoding = offset
  13897. length = this.length
  13898. offset = 0
  13899. // Buffer#write(string, offset[, length][, encoding])
  13900. } else if (isFinite(offset)) {
  13901. offset = offset | 0
  13902. if (isFinite(length)) {
  13903. length = length | 0
  13904. if (encoding === undefined) encoding = 'utf8'
  13905. } else {
  13906. encoding = length
  13907. length = undefined
  13908. }
  13909. // legacy write(string, encoding, offset, length) - remove in v0.13
  13910. } else {
  13911. throw new Error(
  13912. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  13913. )
  13914. }
  13915. var remaining = this.length - offset
  13916. if (length === undefined || length > remaining) length = remaining
  13917. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  13918. throw new RangeError('Attempt to write outside buffer bounds')
  13919. }
  13920. if (!encoding) encoding = 'utf8'
  13921. var loweredCase = false
  13922. for (;;) {
  13923. switch (encoding) {
  13924. case 'hex':
  13925. return hexWrite(this, string, offset, length)
  13926. case 'utf8':
  13927. case 'utf-8':
  13928. return utf8Write(this, string, offset, length)
  13929. case 'ascii':
  13930. return asciiWrite(this, string, offset, length)
  13931. case 'latin1':
  13932. case 'binary':
  13933. return latin1Write(this, string, offset, length)
  13934. case 'base64':
  13935. // Warning: maxLength not taken into account in base64Write
  13936. return base64Write(this, string, offset, length)
  13937. case 'ucs2':
  13938. case 'ucs-2':
  13939. case 'utf16le':
  13940. case 'utf-16le':
  13941. return ucs2Write(this, string, offset, length)
  13942. default:
  13943. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  13944. encoding = ('' + encoding).toLowerCase()
  13945. loweredCase = true
  13946. }
  13947. }
  13948. }
  13949. Buffer.prototype.toJSON = function toJSON () {
  13950. return {
  13951. type: 'Buffer',
  13952. data: Array.prototype.slice.call(this._arr || this, 0)
  13953. }
  13954. }
  13955. function base64Slice (buf, start, end) {
  13956. if (start === 0 && end === buf.length) {
  13957. return base64.fromByteArray(buf)
  13958. } else {
  13959. return base64.fromByteArray(buf.slice(start, end))
  13960. }
  13961. }
  13962. function utf8Slice (buf, start, end) {
  13963. end = Math.min(buf.length, end)
  13964. var res = []
  13965. var i = start
  13966. while (i < end) {
  13967. var firstByte = buf[i]
  13968. var codePoint = null
  13969. var bytesPerSequence = (firstByte > 0xEF) ? 4
  13970. : (firstByte > 0xDF) ? 3
  13971. : (firstByte > 0xBF) ? 2
  13972. : 1
  13973. if (i + bytesPerSequence <= end) {
  13974. var secondByte, thirdByte, fourthByte, tempCodePoint
  13975. switch (bytesPerSequence) {
  13976. case 1:
  13977. if (firstByte < 0x80) {
  13978. codePoint = firstByte
  13979. }
  13980. break
  13981. case 2:
  13982. secondByte = buf[i + 1]
  13983. if ((secondByte & 0xC0) === 0x80) {
  13984. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  13985. if (tempCodePoint > 0x7F) {
  13986. codePoint = tempCodePoint
  13987. }
  13988. }
  13989. break
  13990. case 3:
  13991. secondByte = buf[i + 1]
  13992. thirdByte = buf[i + 2]
  13993. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  13994. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  13995. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  13996. codePoint = tempCodePoint
  13997. }
  13998. }
  13999. break
  14000. case 4:
  14001. secondByte = buf[i + 1]
  14002. thirdByte = buf[i + 2]
  14003. fourthByte = buf[i + 3]
  14004. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  14005. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  14006. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  14007. codePoint = tempCodePoint
  14008. }
  14009. }
  14010. }
  14011. }
  14012. if (codePoint === null) {
  14013. // we did not generate a valid codePoint so insert a
  14014. // replacement char (U+FFFD) and advance only 1 byte
  14015. codePoint = 0xFFFD
  14016. bytesPerSequence = 1
  14017. } else if (codePoint > 0xFFFF) {
  14018. // encode to utf16 (surrogate pair dance)
  14019. codePoint -= 0x10000
  14020. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  14021. codePoint = 0xDC00 | codePoint & 0x3FF
  14022. }
  14023. res.push(codePoint)
  14024. i += bytesPerSequence
  14025. }
  14026. return decodeCodePointsArray(res)
  14027. }
  14028. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  14029. // the lowest limit is Chrome, with 0x10000 args.
  14030. // We go 1 magnitude less, for safety
  14031. var MAX_ARGUMENTS_LENGTH = 0x1000
  14032. function decodeCodePointsArray (codePoints) {
  14033. var len = codePoints.length
  14034. if (len <= MAX_ARGUMENTS_LENGTH) {
  14035. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  14036. }
  14037. // Decode in chunks to avoid "call stack size exceeded".
  14038. var res = ''
  14039. var i = 0
  14040. while (i < len) {
  14041. res += String.fromCharCode.apply(
  14042. String,
  14043. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  14044. )
  14045. }
  14046. return res
  14047. }
  14048. function asciiSlice (buf, start, end) {
  14049. var ret = ''
  14050. end = Math.min(buf.length, end)
  14051. for (var i = start; i < end; ++i) {
  14052. ret += String.fromCharCode(buf[i] & 0x7F)
  14053. }
  14054. return ret
  14055. }
  14056. function latin1Slice (buf, start, end) {
  14057. var ret = ''
  14058. end = Math.min(buf.length, end)
  14059. for (var i = start; i < end; ++i) {
  14060. ret += String.fromCharCode(buf[i])
  14061. }
  14062. return ret
  14063. }
  14064. function hexSlice (buf, start, end) {
  14065. var len = buf.length
  14066. if (!start || start < 0) start = 0
  14067. if (!end || end < 0 || end > len) end = len
  14068. var out = ''
  14069. for (var i = start; i < end; ++i) {
  14070. out += toHex(buf[i])
  14071. }
  14072. return out
  14073. }
  14074. function utf16leSlice (buf, start, end) {
  14075. var bytes = buf.slice(start, end)
  14076. var res = ''
  14077. for (var i = 0; i < bytes.length; i += 2) {
  14078. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  14079. }
  14080. return res
  14081. }
  14082. Buffer.prototype.slice = function slice (start, end) {
  14083. var len = this.length
  14084. start = ~~start
  14085. end = end === undefined ? len : ~~end
  14086. if (start < 0) {
  14087. start += len
  14088. if (start < 0) start = 0
  14089. } else if (start > len) {
  14090. start = len
  14091. }
  14092. if (end < 0) {
  14093. end += len
  14094. if (end < 0) end = 0
  14095. } else if (end > len) {
  14096. end = len
  14097. }
  14098. if (end < start) end = start
  14099. var newBuf
  14100. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14101. newBuf = this.subarray(start, end)
  14102. newBuf.__proto__ = Buffer.prototype
  14103. } else {
  14104. var sliceLen = end - start
  14105. newBuf = new Buffer(sliceLen, undefined)
  14106. for (var i = 0; i < sliceLen; ++i) {
  14107. newBuf[i] = this[i + start]
  14108. }
  14109. }
  14110. return newBuf
  14111. }
  14112. /*
  14113. * Need to make sure that buffer isn't trying to write out of bounds.
  14114. */
  14115. function checkOffset (offset, ext, length) {
  14116. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  14117. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  14118. }
  14119. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  14120. offset = offset | 0
  14121. byteLength = byteLength | 0
  14122. if (!noAssert) checkOffset(offset, byteLength, this.length)
  14123. var val = this[offset]
  14124. var mul = 1
  14125. var i = 0
  14126. while (++i < byteLength && (mul *= 0x100)) {
  14127. val += this[offset + i] * mul
  14128. }
  14129. return val
  14130. }
  14131. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  14132. offset = offset | 0
  14133. byteLength = byteLength | 0
  14134. if (!noAssert) {
  14135. checkOffset(offset, byteLength, this.length)
  14136. }
  14137. var val = this[offset + --byteLength]
  14138. var mul = 1
  14139. while (byteLength > 0 && (mul *= 0x100)) {
  14140. val += this[offset + --byteLength] * mul
  14141. }
  14142. return val
  14143. }
  14144. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  14145. if (!noAssert) checkOffset(offset, 1, this.length)
  14146. return this[offset]
  14147. }
  14148. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  14149. if (!noAssert) checkOffset(offset, 2, this.length)
  14150. return this[offset] | (this[offset + 1] << 8)
  14151. }
  14152. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  14153. if (!noAssert) checkOffset(offset, 2, this.length)
  14154. return (this[offset] << 8) | this[offset + 1]
  14155. }
  14156. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  14157. if (!noAssert) checkOffset(offset, 4, this.length)
  14158. return ((this[offset]) |
  14159. (this[offset + 1] << 8) |
  14160. (this[offset + 2] << 16)) +
  14161. (this[offset + 3] * 0x1000000)
  14162. }
  14163. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  14164. if (!noAssert) checkOffset(offset, 4, this.length)
  14165. return (this[offset] * 0x1000000) +
  14166. ((this[offset + 1] << 16) |
  14167. (this[offset + 2] << 8) |
  14168. this[offset + 3])
  14169. }
  14170. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  14171. offset = offset | 0
  14172. byteLength = byteLength | 0
  14173. if (!noAssert) checkOffset(offset, byteLength, this.length)
  14174. var val = this[offset]
  14175. var mul = 1
  14176. var i = 0
  14177. while (++i < byteLength && (mul *= 0x100)) {
  14178. val += this[offset + i] * mul
  14179. }
  14180. mul *= 0x80
  14181. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  14182. return val
  14183. }
  14184. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  14185. offset = offset | 0
  14186. byteLength = byteLength | 0
  14187. if (!noAssert) checkOffset(offset, byteLength, this.length)
  14188. var i = byteLength
  14189. var mul = 1
  14190. var val = this[offset + --i]
  14191. while (i > 0 && (mul *= 0x100)) {
  14192. val += this[offset + --i] * mul
  14193. }
  14194. mul *= 0x80
  14195. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  14196. return val
  14197. }
  14198. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  14199. if (!noAssert) checkOffset(offset, 1, this.length)
  14200. if (!(this[offset] & 0x80)) return (this[offset])
  14201. return ((0xff - this[offset] + 1) * -1)
  14202. }
  14203. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  14204. if (!noAssert) checkOffset(offset, 2, this.length)
  14205. var val = this[offset] | (this[offset + 1] << 8)
  14206. return (val & 0x8000) ? val | 0xFFFF0000 : val
  14207. }
  14208. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  14209. if (!noAssert) checkOffset(offset, 2, this.length)
  14210. var val = this[offset + 1] | (this[offset] << 8)
  14211. return (val & 0x8000) ? val | 0xFFFF0000 : val
  14212. }
  14213. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  14214. if (!noAssert) checkOffset(offset, 4, this.length)
  14215. return (this[offset]) |
  14216. (this[offset + 1] << 8) |
  14217. (this[offset + 2] << 16) |
  14218. (this[offset + 3] << 24)
  14219. }
  14220. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  14221. if (!noAssert) checkOffset(offset, 4, this.length)
  14222. return (this[offset] << 24) |
  14223. (this[offset + 1] << 16) |
  14224. (this[offset + 2] << 8) |
  14225. (this[offset + 3])
  14226. }
  14227. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  14228. if (!noAssert) checkOffset(offset, 4, this.length)
  14229. return ieee754.read(this, offset, true, 23, 4)
  14230. }
  14231. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  14232. if (!noAssert) checkOffset(offset, 4, this.length)
  14233. return ieee754.read(this, offset, false, 23, 4)
  14234. }
  14235. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  14236. if (!noAssert) checkOffset(offset, 8, this.length)
  14237. return ieee754.read(this, offset, true, 52, 8)
  14238. }
  14239. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  14240. if (!noAssert) checkOffset(offset, 8, this.length)
  14241. return ieee754.read(this, offset, false, 52, 8)
  14242. }
  14243. function checkInt (buf, value, offset, ext, max, min) {
  14244. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  14245. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  14246. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  14247. }
  14248. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  14249. value = +value
  14250. offset = offset | 0
  14251. byteLength = byteLength | 0
  14252. if (!noAssert) {
  14253. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  14254. checkInt(this, value, offset, byteLength, maxBytes, 0)
  14255. }
  14256. var mul = 1
  14257. var i = 0
  14258. this[offset] = value & 0xFF
  14259. while (++i < byteLength && (mul *= 0x100)) {
  14260. this[offset + i] = (value / mul) & 0xFF
  14261. }
  14262. return offset + byteLength
  14263. }
  14264. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  14265. value = +value
  14266. offset = offset | 0
  14267. byteLength = byteLength | 0
  14268. if (!noAssert) {
  14269. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  14270. checkInt(this, value, offset, byteLength, maxBytes, 0)
  14271. }
  14272. var i = byteLength - 1
  14273. var mul = 1
  14274. this[offset + i] = value & 0xFF
  14275. while (--i >= 0 && (mul *= 0x100)) {
  14276. this[offset + i] = (value / mul) & 0xFF
  14277. }
  14278. return offset + byteLength
  14279. }
  14280. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  14281. value = +value
  14282. offset = offset | 0
  14283. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  14284. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  14285. this[offset] = (value & 0xff)
  14286. return offset + 1
  14287. }
  14288. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  14289. if (value < 0) value = 0xffff + value + 1
  14290. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  14291. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  14292. (littleEndian ? i : 1 - i) * 8
  14293. }
  14294. }
  14295. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  14296. value = +value
  14297. offset = offset | 0
  14298. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  14299. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14300. this[offset] = (value & 0xff)
  14301. this[offset + 1] = (value >>> 8)
  14302. } else {
  14303. objectWriteUInt16(this, value, offset, true)
  14304. }
  14305. return offset + 2
  14306. }
  14307. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  14308. value = +value
  14309. offset = offset | 0
  14310. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  14311. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14312. this[offset] = (value >>> 8)
  14313. this[offset + 1] = (value & 0xff)
  14314. } else {
  14315. objectWriteUInt16(this, value, offset, false)
  14316. }
  14317. return offset + 2
  14318. }
  14319. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  14320. if (value < 0) value = 0xffffffff + value + 1
  14321. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  14322. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  14323. }
  14324. }
  14325. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  14326. value = +value
  14327. offset = offset | 0
  14328. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  14329. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14330. this[offset + 3] = (value >>> 24)
  14331. this[offset + 2] = (value >>> 16)
  14332. this[offset + 1] = (value >>> 8)
  14333. this[offset] = (value & 0xff)
  14334. } else {
  14335. objectWriteUInt32(this, value, offset, true)
  14336. }
  14337. return offset + 4
  14338. }
  14339. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  14340. value = +value
  14341. offset = offset | 0
  14342. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  14343. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14344. this[offset] = (value >>> 24)
  14345. this[offset + 1] = (value >>> 16)
  14346. this[offset + 2] = (value >>> 8)
  14347. this[offset + 3] = (value & 0xff)
  14348. } else {
  14349. objectWriteUInt32(this, value, offset, false)
  14350. }
  14351. return offset + 4
  14352. }
  14353. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  14354. value = +value
  14355. offset = offset | 0
  14356. if (!noAssert) {
  14357. var limit = Math.pow(2, 8 * byteLength - 1)
  14358. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  14359. }
  14360. var i = 0
  14361. var mul = 1
  14362. var sub = 0
  14363. this[offset] = value & 0xFF
  14364. while (++i < byteLength && (mul *= 0x100)) {
  14365. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  14366. sub = 1
  14367. }
  14368. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  14369. }
  14370. return offset + byteLength
  14371. }
  14372. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  14373. value = +value
  14374. offset = offset | 0
  14375. if (!noAssert) {
  14376. var limit = Math.pow(2, 8 * byteLength - 1)
  14377. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  14378. }
  14379. var i = byteLength - 1
  14380. var mul = 1
  14381. var sub = 0
  14382. this[offset + i] = value & 0xFF
  14383. while (--i >= 0 && (mul *= 0x100)) {
  14384. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  14385. sub = 1
  14386. }
  14387. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  14388. }
  14389. return offset + byteLength
  14390. }
  14391. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  14392. value = +value
  14393. offset = offset | 0
  14394. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  14395. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  14396. if (value < 0) value = 0xff + value + 1
  14397. this[offset] = (value & 0xff)
  14398. return offset + 1
  14399. }
  14400. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  14401. value = +value
  14402. offset = offset | 0
  14403. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  14404. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14405. this[offset] = (value & 0xff)
  14406. this[offset + 1] = (value >>> 8)
  14407. } else {
  14408. objectWriteUInt16(this, value, offset, true)
  14409. }
  14410. return offset + 2
  14411. }
  14412. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  14413. value = +value
  14414. offset = offset | 0
  14415. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  14416. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14417. this[offset] = (value >>> 8)
  14418. this[offset + 1] = (value & 0xff)
  14419. } else {
  14420. objectWriteUInt16(this, value, offset, false)
  14421. }
  14422. return offset + 2
  14423. }
  14424. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  14425. value = +value
  14426. offset = offset | 0
  14427. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  14428. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14429. this[offset] = (value & 0xff)
  14430. this[offset + 1] = (value >>> 8)
  14431. this[offset + 2] = (value >>> 16)
  14432. this[offset + 3] = (value >>> 24)
  14433. } else {
  14434. objectWriteUInt32(this, value, offset, true)
  14435. }
  14436. return offset + 4
  14437. }
  14438. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  14439. value = +value
  14440. offset = offset | 0
  14441. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  14442. if (value < 0) value = 0xffffffff + value + 1
  14443. if (Buffer.TYPED_ARRAY_SUPPORT) {
  14444. this[offset] = (value >>> 24)
  14445. this[offset + 1] = (value >>> 16)
  14446. this[offset + 2] = (value >>> 8)
  14447. this[offset + 3] = (value & 0xff)
  14448. } else {
  14449. objectWriteUInt32(this, value, offset, false)
  14450. }
  14451. return offset + 4
  14452. }
  14453. function checkIEEE754 (buf, value, offset, ext, max, min) {
  14454. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  14455. if (offset < 0) throw new RangeError('Index out of range')
  14456. }
  14457. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  14458. if (!noAssert) {
  14459. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  14460. }
  14461. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  14462. return offset + 4
  14463. }
  14464. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  14465. return writeFloat(this, value, offset, true, noAssert)
  14466. }
  14467. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  14468. return writeFloat(this, value, offset, false, noAssert)
  14469. }
  14470. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  14471. if (!noAssert) {
  14472. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  14473. }
  14474. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  14475. return offset + 8
  14476. }
  14477. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  14478. return writeDouble(this, value, offset, true, noAssert)
  14479. }
  14480. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  14481. return writeDouble(this, value, offset, false, noAssert)
  14482. }
  14483. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  14484. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  14485. if (!start) start = 0
  14486. if (!end && end !== 0) end = this.length
  14487. if (targetStart >= target.length) targetStart = target.length
  14488. if (!targetStart) targetStart = 0
  14489. if (end > 0 && end < start) end = start
  14490. // Copy 0 bytes; we're done
  14491. if (end === start) return 0
  14492. if (target.length === 0 || this.length === 0) return 0
  14493. // Fatal error conditions
  14494. if (targetStart < 0) {
  14495. throw new RangeError('targetStart out of bounds')
  14496. }
  14497. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  14498. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  14499. // Are we oob?
  14500. if (end > this.length) end = this.length
  14501. if (target.length - targetStart < end - start) {
  14502. end = target.length - targetStart + start
  14503. }
  14504. var len = end - start
  14505. var i
  14506. if (this === target && start < targetStart && targetStart < end) {
  14507. // descending copy from end
  14508. for (i = len - 1; i >= 0; --i) {
  14509. target[i + targetStart] = this[i + start]
  14510. }
  14511. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  14512. // ascending copy from start
  14513. for (i = 0; i < len; ++i) {
  14514. target[i + targetStart] = this[i + start]
  14515. }
  14516. } else {
  14517. Uint8Array.prototype.set.call(
  14518. target,
  14519. this.subarray(start, start + len),
  14520. targetStart
  14521. )
  14522. }
  14523. return len
  14524. }
  14525. // Usage:
  14526. // buffer.fill(number[, offset[, end]])
  14527. // buffer.fill(buffer[, offset[, end]])
  14528. // buffer.fill(string[, offset[, end]][, encoding])
  14529. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  14530. // Handle string cases:
  14531. if (typeof val === 'string') {
  14532. if (typeof start === 'string') {
  14533. encoding = start
  14534. start = 0
  14535. end = this.length
  14536. } else if (typeof end === 'string') {
  14537. encoding = end
  14538. end = this.length
  14539. }
  14540. if (val.length === 1) {
  14541. var code = val.charCodeAt(0)
  14542. if (code < 256) {
  14543. val = code
  14544. }
  14545. }
  14546. if (encoding !== undefined && typeof encoding !== 'string') {
  14547. throw new TypeError('encoding must be a string')
  14548. }
  14549. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  14550. throw new TypeError('Unknown encoding: ' + encoding)
  14551. }
  14552. } else if (typeof val === 'number') {
  14553. val = val & 255
  14554. }
  14555. // Invalid ranges are not set to a default, so can range check early.
  14556. if (start < 0 || this.length < start || this.length < end) {
  14557. throw new RangeError('Out of range index')
  14558. }
  14559. if (end <= start) {
  14560. return this
  14561. }
  14562. start = start >>> 0
  14563. end = end === undefined ? this.length : end >>> 0
  14564. if (!val) val = 0
  14565. var i
  14566. if (typeof val === 'number') {
  14567. for (i = start; i < end; ++i) {
  14568. this[i] = val
  14569. }
  14570. } else {
  14571. var bytes = Buffer.isBuffer(val)
  14572. ? val
  14573. : utf8ToBytes(new Buffer(val, encoding).toString())
  14574. var len = bytes.length
  14575. for (i = 0; i < end - start; ++i) {
  14576. this[i + start] = bytes[i % len]
  14577. }
  14578. }
  14579. return this
  14580. }
  14581. // HELPER FUNCTIONS
  14582. // ================
  14583. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  14584. function base64clean (str) {
  14585. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  14586. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  14587. // Node converts strings with length < 2 to ''
  14588. if (str.length < 2) return ''
  14589. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  14590. while (str.length % 4 !== 0) {
  14591. str = str + '='
  14592. }
  14593. return str
  14594. }
  14595. function stringtrim (str) {
  14596. if (str.trim) return str.trim()
  14597. return str.replace(/^\s+|\s+$/g, '')
  14598. }
  14599. function toHex (n) {
  14600. if (n < 16) return '0' + n.toString(16)
  14601. return n.toString(16)
  14602. }
  14603. function utf8ToBytes (string, units) {
  14604. units = units || Infinity
  14605. var codePoint
  14606. var length = string.length
  14607. var leadSurrogate = null
  14608. var bytes = []
  14609. for (var i = 0; i < length; ++i) {
  14610. codePoint = string.charCodeAt(i)
  14611. // is surrogate component
  14612. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  14613. // last char was a lead
  14614. if (!leadSurrogate) {
  14615. // no lead yet
  14616. if (codePoint > 0xDBFF) {
  14617. // unexpected trail
  14618. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  14619. continue
  14620. } else if (i + 1 === length) {
  14621. // unpaired lead
  14622. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  14623. continue
  14624. }
  14625. // valid lead
  14626. leadSurrogate = codePoint
  14627. continue
  14628. }
  14629. // 2 leads in a row
  14630. if (codePoint < 0xDC00) {
  14631. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  14632. leadSurrogate = codePoint
  14633. continue
  14634. }
  14635. // valid surrogate pair
  14636. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  14637. } else if (leadSurrogate) {
  14638. // valid bmp char, but last char was a lead
  14639. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  14640. }
  14641. leadSurrogate = null
  14642. // encode utf8
  14643. if (codePoint < 0x80) {
  14644. if ((units -= 1) < 0) break
  14645. bytes.push(codePoint)
  14646. } else if (codePoint < 0x800) {
  14647. if ((units -= 2) < 0) break
  14648. bytes.push(
  14649. codePoint >> 0x6 | 0xC0,
  14650. codePoint & 0x3F | 0x80
  14651. )
  14652. } else if (codePoint < 0x10000) {
  14653. if ((units -= 3) < 0) break
  14654. bytes.push(
  14655. codePoint >> 0xC | 0xE0,
  14656. codePoint >> 0x6 & 0x3F | 0x80,
  14657. codePoint & 0x3F | 0x80
  14658. )
  14659. } else if (codePoint < 0x110000) {
  14660. if ((units -= 4) < 0) break
  14661. bytes.push(
  14662. codePoint >> 0x12 | 0xF0,
  14663. codePoint >> 0xC & 0x3F | 0x80,
  14664. codePoint >> 0x6 & 0x3F | 0x80,
  14665. codePoint & 0x3F | 0x80
  14666. )
  14667. } else {
  14668. throw new Error('Invalid code point')
  14669. }
  14670. }
  14671. return bytes
  14672. }
  14673. function asciiToBytes (str) {
  14674. var byteArray = []
  14675. for (var i = 0; i < str.length; ++i) {
  14676. // Node's code seems to be doing this and not & 0x7F..
  14677. byteArray.push(str.charCodeAt(i) & 0xFF)
  14678. }
  14679. return byteArray
  14680. }
  14681. function utf16leToBytes (str, units) {
  14682. var c, hi, lo
  14683. var byteArray = []
  14684. for (var i = 0; i < str.length; ++i) {
  14685. if ((units -= 2) < 0) break
  14686. c = str.charCodeAt(i)
  14687. hi = c >> 8
  14688. lo = c % 256
  14689. byteArray.push(lo)
  14690. byteArray.push(hi)
  14691. }
  14692. return byteArray
  14693. }
  14694. function base64ToBytes (str) {
  14695. return base64.toByteArray(base64clean(str))
  14696. }
  14697. function blitBuffer (src, dst, offset, length) {
  14698. for (var i = 0; i < length; ++i) {
  14699. if ((i + offset >= dst.length) || (i >= src.length)) break
  14700. dst[i + offset] = src[i]
  14701. }
  14702. return i
  14703. }
  14704. function isnan (val) {
  14705. return val !== val // eslint-disable-line no-self-compare
  14706. }
  14707. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  14708. /***/ }),
  14709. /* 71 */
  14710. /*!*****************************************!*\
  14711. !*** ./node_modules/base64-js/index.js ***!
  14712. \*****************************************/
  14713. /*! no static exports found */
  14714. /***/ (function(module, exports, __webpack_require__) {
  14715. "use strict";
  14716. exports.byteLength = byteLength
  14717. exports.toByteArray = toByteArray
  14718. exports.fromByteArray = fromByteArray
  14719. var lookup = []
  14720. var revLookup = []
  14721. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  14722. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  14723. for (var i = 0, len = code.length; i < len; ++i) {
  14724. lookup[i] = code[i]
  14725. revLookup[code.charCodeAt(i)] = i
  14726. }
  14727. // Support decoding URL-safe base64 strings, as Node.js does.
  14728. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  14729. revLookup['-'.charCodeAt(0)] = 62
  14730. revLookup['_'.charCodeAt(0)] = 63
  14731. function getLens (b64) {
  14732. var len = b64.length
  14733. if (len % 4 > 0) {
  14734. throw new Error('Invalid string. Length must be a multiple of 4')
  14735. }
  14736. // Trim off extra bytes after placeholder bytes are found
  14737. // See: https://github.com/beatgammit/base64-js/issues/42
  14738. var validLen = b64.indexOf('=')
  14739. if (validLen === -1) validLen = len
  14740. var placeHoldersLen = validLen === len
  14741. ? 0
  14742. : 4 - (validLen % 4)
  14743. return [validLen, placeHoldersLen]
  14744. }
  14745. // base64 is 4/3 + up to two characters of the original data
  14746. function byteLength (b64) {
  14747. var lens = getLens(b64)
  14748. var validLen = lens[0]
  14749. var placeHoldersLen = lens[1]
  14750. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  14751. }
  14752. function _byteLength (b64, validLen, placeHoldersLen) {
  14753. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  14754. }
  14755. function toByteArray (b64) {
  14756. var tmp
  14757. var lens = getLens(b64)
  14758. var validLen = lens[0]
  14759. var placeHoldersLen = lens[1]
  14760. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  14761. var curByte = 0
  14762. // if there are placeholders, only get up to the last complete 4 chars
  14763. var len = placeHoldersLen > 0
  14764. ? validLen - 4
  14765. : validLen
  14766. var i
  14767. for (i = 0; i < len; i += 4) {
  14768. tmp =
  14769. (revLookup[b64.charCodeAt(i)] << 18) |
  14770. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  14771. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  14772. revLookup[b64.charCodeAt(i + 3)]
  14773. arr[curByte++] = (tmp >> 16) & 0xFF
  14774. arr[curByte++] = (tmp >> 8) & 0xFF
  14775. arr[curByte++] = tmp & 0xFF
  14776. }
  14777. if (placeHoldersLen === 2) {
  14778. tmp =
  14779. (revLookup[b64.charCodeAt(i)] << 2) |
  14780. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  14781. arr[curByte++] = tmp & 0xFF
  14782. }
  14783. if (placeHoldersLen === 1) {
  14784. tmp =
  14785. (revLookup[b64.charCodeAt(i)] << 10) |
  14786. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  14787. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  14788. arr[curByte++] = (tmp >> 8) & 0xFF
  14789. arr[curByte++] = tmp & 0xFF
  14790. }
  14791. return arr
  14792. }
  14793. function tripletToBase64 (num) {
  14794. return lookup[num >> 18 & 0x3F] +
  14795. lookup[num >> 12 & 0x3F] +
  14796. lookup[num >> 6 & 0x3F] +
  14797. lookup[num & 0x3F]
  14798. }
  14799. function encodeChunk (uint8, start, end) {
  14800. var tmp
  14801. var output = []
  14802. for (var i = start; i < end; i += 3) {
  14803. tmp =
  14804. ((uint8[i] << 16) & 0xFF0000) +
  14805. ((uint8[i + 1] << 8) & 0xFF00) +
  14806. (uint8[i + 2] & 0xFF)
  14807. output.push(tripletToBase64(tmp))
  14808. }
  14809. return output.join('')
  14810. }
  14811. function fromByteArray (uint8) {
  14812. var tmp
  14813. var len = uint8.length
  14814. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  14815. var parts = []
  14816. var maxChunkLength = 16383 // must be multiple of 3
  14817. // go through the array every three bytes, we'll deal with trailing stuff later
  14818. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  14819. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  14820. }
  14821. // pad the end with zeros, but make sure to not forget the extra bytes
  14822. if (extraBytes === 1) {
  14823. tmp = uint8[len - 1]
  14824. parts.push(
  14825. lookup[tmp >> 2] +
  14826. lookup[(tmp << 4) & 0x3F] +
  14827. '=='
  14828. )
  14829. } else if (extraBytes === 2) {
  14830. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  14831. parts.push(
  14832. lookup[tmp >> 10] +
  14833. lookup[(tmp >> 4) & 0x3F] +
  14834. lookup[(tmp << 2) & 0x3F] +
  14835. '='
  14836. )
  14837. }
  14838. return parts.join('')
  14839. }
  14840. /***/ }),
  14841. /* 72 */
  14842. /*!***************************************!*\
  14843. !*** ./node_modules/ieee754/index.js ***!
  14844. \***************************************/
  14845. /*! no static exports found */
  14846. /***/ (function(module, exports) {
  14847. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  14848. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  14849. var e, m
  14850. var eLen = (nBytes * 8) - mLen - 1
  14851. var eMax = (1 << eLen) - 1
  14852. var eBias = eMax >> 1
  14853. var nBits = -7
  14854. var i = isLE ? (nBytes - 1) : 0
  14855. var d = isLE ? -1 : 1
  14856. var s = buffer[offset + i]
  14857. i += d
  14858. e = s & ((1 << (-nBits)) - 1)
  14859. s >>= (-nBits)
  14860. nBits += eLen
  14861. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  14862. m = e & ((1 << (-nBits)) - 1)
  14863. e >>= (-nBits)
  14864. nBits += mLen
  14865. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  14866. if (e === 0) {
  14867. e = 1 - eBias
  14868. } else if (e === eMax) {
  14869. return m ? NaN : ((s ? -1 : 1) * Infinity)
  14870. } else {
  14871. m = m + Math.pow(2, mLen)
  14872. e = e - eBias
  14873. }
  14874. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  14875. }
  14876. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  14877. var e, m, c
  14878. var eLen = (nBytes * 8) - mLen - 1
  14879. var eMax = (1 << eLen) - 1
  14880. var eBias = eMax >> 1
  14881. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  14882. var i = isLE ? 0 : (nBytes - 1)
  14883. var d = isLE ? 1 : -1
  14884. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  14885. value = Math.abs(value)
  14886. if (isNaN(value) || value === Infinity) {
  14887. m = isNaN(value) ? 1 : 0
  14888. e = eMax
  14889. } else {
  14890. e = Math.floor(Math.log(value) / Math.LN2)
  14891. if (value * (c = Math.pow(2, -e)) < 1) {
  14892. e--
  14893. c *= 2
  14894. }
  14895. if (e + eBias >= 1) {
  14896. value += rt / c
  14897. } else {
  14898. value += rt * Math.pow(2, 1 - eBias)
  14899. }
  14900. if (value * c >= 2) {
  14901. e++
  14902. c /= 2
  14903. }
  14904. if (e + eBias >= eMax) {
  14905. m = 0
  14906. e = eMax
  14907. } else if (e + eBias >= 1) {
  14908. m = ((value * c) - 1) * Math.pow(2, mLen)
  14909. e = e + eBias
  14910. } else {
  14911. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  14912. e = 0
  14913. }
  14914. }
  14915. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  14916. e = (e << mLen) | m
  14917. eLen += mLen
  14918. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  14919. buffer[offset + i - d] |= s * 128
  14920. }
  14921. /***/ }),
  14922. /* 73 */
  14923. /*!***************************************!*\
  14924. !*** ./node_modules/isarray/index.js ***!
  14925. \***************************************/
  14926. /*! no static exports found */
  14927. /***/ (function(module, exports) {
  14928. var toString = {}.toString;
  14929. module.exports = Array.isArray || function (arr) {
  14930. return toString.call(arr) == '[object Array]';
  14931. };
  14932. /***/ }),
  14933. /* 74 */
  14934. /*!********************************************************************************!*\
  14935. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/util/route.js ***!
  14936. \********************************************************************************/
  14937. /*! no static exports found */
  14938. /***/ (function(module, exports, __webpack_require__) {
  14939. "use strict";
  14940. /* WEBPACK VAR INJECTION */(function(uni) {
  14941. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14942. Object.defineProperty(exports, "__esModule", {
  14943. value: true
  14944. });
  14945. exports.default = void 0;
  14946. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 75));
  14947. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 77));
  14948. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  14949. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  14950. /**
  14951. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  14952. * 并且带有路由拦截功能
  14953. */
  14954. var Router = /*#__PURE__*/function () {
  14955. function Router() {
  14956. (0, _classCallCheck2.default)(this, Router);
  14957. // 原始属性定义
  14958. this.config = {
  14959. type: 'navigateTo',
  14960. url: '',
  14961. delta: 1,
  14962. // navigateBack页面后退时,回退的层数
  14963. params: {},
  14964. // 传递的参数
  14965. animationType: 'pop-in',
  14966. // 窗口动画,只在APP有效
  14967. animationDuration: 300,
  14968. // 窗口动画持续时间,单位毫秒,只在APP有效
  14969. intercept: false // 是否需要拦截
  14970. };
  14971. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  14972. // 这里在构造函数中进行this绑定
  14973. this.route = this.route.bind(this);
  14974. }
  14975. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  14976. (0, _createClass2.default)(Router, [{
  14977. key: "addRootPath",
  14978. value: function addRootPath(url) {
  14979. return url[0] === '/' ? url : "/".concat(url);
  14980. }
  14981. // 整合路由参数
  14982. }, {
  14983. key: "mixinParam",
  14984. value: function mixinParam(url, params) {
  14985. url = url && this.addRootPath(url);
  14986. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  14987. // 如果有url中有get参数,转换后无需带上"?"
  14988. var query = '';
  14989. if (/.*\/.*\?.*=.*/.test(url)) {
  14990. // object对象转为get类型的参数
  14991. query = uni.$u.queryParams(params, false);
  14992. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  14993. return url += "&".concat(query);
  14994. }
  14995. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  14996. query = uni.$u.queryParams(params);
  14997. return url += query;
  14998. }
  14999. // 对外的方法名称
  15000. }, {
  15001. key: "route",
  15002. value: function () {
  15003. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  15004. var options,
  15005. params,
  15006. mergeConfig,
  15007. isNext,
  15008. _args = arguments;
  15009. return _regenerator.default.wrap(function _callee$(_context) {
  15010. while (1) {
  15011. switch (_context.prev = _context.next) {
  15012. case 0:
  15013. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  15014. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  15015. // 合并用户的配置和内部的默认配置
  15016. mergeConfig = {};
  15017. if (typeof options === 'string') {
  15018. // 如果options为字符串,则为route(url, params)的形式
  15019. mergeConfig.url = this.mixinParam(options, params);
  15020. mergeConfig.type = 'navigateTo';
  15021. } else {
  15022. mergeConfig = uni.$u.deepMerge(this.config, options);
  15023. // 否则正常使用mergeConfig中的url和params进行拼接
  15024. mergeConfig.url = this.mixinParam(options.url, options.params);
  15025. }
  15026. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  15027. if (!(mergeConfig.url === uni.$u.page())) {
  15028. _context.next = 6;
  15029. break;
  15030. }
  15031. return _context.abrupt("return");
  15032. case 6:
  15033. if (params.intercept) {
  15034. this.config.intercept = params.intercept;
  15035. }
  15036. // params参数也带给拦截器
  15037. mergeConfig.params = params;
  15038. // 合并内外部参数
  15039. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  15040. // 判断用户是否定义了拦截器
  15041. if (!(typeof uni.$u.routeIntercept === 'function')) {
  15042. _context.next = 16;
  15043. break;
  15044. }
  15045. _context.next = 12;
  15046. return new Promise(function (resolve, reject) {
  15047. uni.$u.routeIntercept(mergeConfig, resolve);
  15048. });
  15049. case 12:
  15050. isNext = _context.sent;
  15051. // 如果isNext为true,则执行路由跳转
  15052. isNext && this.openPage(mergeConfig);
  15053. _context.next = 17;
  15054. break;
  15055. case 16:
  15056. this.openPage(mergeConfig);
  15057. case 17:
  15058. case "end":
  15059. return _context.stop();
  15060. }
  15061. }
  15062. }, _callee, this);
  15063. }));
  15064. function route() {
  15065. return _route.apply(this, arguments);
  15066. }
  15067. return route;
  15068. }() // 执行路由跳转
  15069. }, {
  15070. key: "openPage",
  15071. value: function openPage(config) {
  15072. // 解构参数
  15073. var url = config.url,
  15074. type = config.type,
  15075. delta = config.delta,
  15076. animationType = config.animationType,
  15077. animationDuration = config.animationDuration;
  15078. if (config.type == 'navigateTo' || config.type == 'to') {
  15079. uni.navigateTo({
  15080. url: url,
  15081. animationType: animationType,
  15082. animationDuration: animationDuration
  15083. });
  15084. }
  15085. if (config.type == 'redirectTo' || config.type == 'redirect') {
  15086. uni.redirectTo({
  15087. url: url
  15088. });
  15089. }
  15090. if (config.type == 'switchTab' || config.type == 'tab') {
  15091. uni.switchTab({
  15092. url: url
  15093. });
  15094. }
  15095. if (config.type == 'reLaunch' || config.type == 'launch') {
  15096. uni.reLaunch({
  15097. url: url
  15098. });
  15099. }
  15100. if (config.type == 'navigateBack' || config.type == 'back') {
  15101. uni.navigateBack({
  15102. delta: delta
  15103. });
  15104. }
  15105. }
  15106. }]);
  15107. return Router;
  15108. }();
  15109. var _default = new Router().route;
  15110. exports.default = _default;
  15111. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  15112. /***/ }),
  15113. /* 75 */
  15114. /*!************************************************************************************************!*\
  15115. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  15116. \************************************************************************************************/
  15117. /*! no static exports found */
  15118. /***/ (function(module, exports, __webpack_require__) {
  15119. // TODO(Babel 8): Remove this file.
  15120. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 76)();
  15121. module.exports = runtime;
  15122. /***/ }),
  15123. /* 76 */
  15124. /*!*******************************************************************!*\
  15125. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  15126. \*******************************************************************/
  15127. /*! no static exports found */
  15128. /***/ (function(module, exports, __webpack_require__) {
  15129. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  15130. function _regeneratorRuntime() {
  15131. "use strict";
  15132. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  15133. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  15134. return exports;
  15135. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15136. var exports = {},
  15137. Op = Object.prototype,
  15138. hasOwn = Op.hasOwnProperty,
  15139. defineProperty = Object.defineProperty || function (obj, key, desc) {
  15140. obj[key] = desc.value;
  15141. },
  15142. $Symbol = "function" == typeof Symbol ? Symbol : {},
  15143. iteratorSymbol = $Symbol.iterator || "@@iterator",
  15144. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  15145. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  15146. function define(obj, key, value) {
  15147. return Object.defineProperty(obj, key, {
  15148. value: value,
  15149. enumerable: !0,
  15150. configurable: !0,
  15151. writable: !0
  15152. }), obj[key];
  15153. }
  15154. try {
  15155. define({}, "");
  15156. } catch (err) {
  15157. define = function define(obj, key, value) {
  15158. return obj[key] = value;
  15159. };
  15160. }
  15161. function wrap(innerFn, outerFn, self, tryLocsList) {
  15162. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  15163. generator = Object.create(protoGenerator.prototype),
  15164. context = new Context(tryLocsList || []);
  15165. return defineProperty(generator, "_invoke", {
  15166. value: makeInvokeMethod(innerFn, self, context)
  15167. }), generator;
  15168. }
  15169. function tryCatch(fn, obj, arg) {
  15170. try {
  15171. return {
  15172. type: "normal",
  15173. arg: fn.call(obj, arg)
  15174. };
  15175. } catch (err) {
  15176. return {
  15177. type: "throw",
  15178. arg: err
  15179. };
  15180. }
  15181. }
  15182. exports.wrap = wrap;
  15183. var ContinueSentinel = {};
  15184. function Generator() {}
  15185. function GeneratorFunction() {}
  15186. function GeneratorFunctionPrototype() {}
  15187. var IteratorPrototype = {};
  15188. define(IteratorPrototype, iteratorSymbol, function () {
  15189. return this;
  15190. });
  15191. var getProto = Object.getPrototypeOf,
  15192. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  15193. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  15194. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  15195. function defineIteratorMethods(prototype) {
  15196. ["next", "throw", "return"].forEach(function (method) {
  15197. define(prototype, method, function (arg) {
  15198. return this._invoke(method, arg);
  15199. });
  15200. });
  15201. }
  15202. function AsyncIterator(generator, PromiseImpl) {
  15203. function invoke(method, arg, resolve, reject) {
  15204. var record = tryCatch(generator[method], generator, arg);
  15205. if ("throw" !== record.type) {
  15206. var result = record.arg,
  15207. value = result.value;
  15208. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  15209. invoke("next", value, resolve, reject);
  15210. }, function (err) {
  15211. invoke("throw", err, resolve, reject);
  15212. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  15213. result.value = unwrapped, resolve(result);
  15214. }, function (error) {
  15215. return invoke("throw", error, resolve, reject);
  15216. });
  15217. }
  15218. reject(record.arg);
  15219. }
  15220. var previousPromise;
  15221. defineProperty(this, "_invoke", {
  15222. value: function value(method, arg) {
  15223. function callInvokeWithMethodAndArg() {
  15224. return new PromiseImpl(function (resolve, reject) {
  15225. invoke(method, arg, resolve, reject);
  15226. });
  15227. }
  15228. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  15229. }
  15230. });
  15231. }
  15232. function makeInvokeMethod(innerFn, self, context) {
  15233. var state = "suspendedStart";
  15234. return function (method, arg) {
  15235. if ("executing" === state) throw new Error("Generator is already running");
  15236. if ("completed" === state) {
  15237. if ("throw" === method) throw arg;
  15238. return doneResult();
  15239. }
  15240. for (context.method = method, context.arg = arg;;) {
  15241. var delegate = context.delegate;
  15242. if (delegate) {
  15243. var delegateResult = maybeInvokeDelegate(delegate, context);
  15244. if (delegateResult) {
  15245. if (delegateResult === ContinueSentinel) continue;
  15246. return delegateResult;
  15247. }
  15248. }
  15249. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  15250. if ("suspendedStart" === state) throw state = "completed", context.arg;
  15251. context.dispatchException(context.arg);
  15252. } else "return" === context.method && context.abrupt("return", context.arg);
  15253. state = "executing";
  15254. var record = tryCatch(innerFn, self, context);
  15255. if ("normal" === record.type) {
  15256. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  15257. return {
  15258. value: record.arg,
  15259. done: context.done
  15260. };
  15261. }
  15262. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  15263. }
  15264. };
  15265. }
  15266. function maybeInvokeDelegate(delegate, context) {
  15267. var methodName = context.method,
  15268. method = delegate.iterator[methodName];
  15269. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  15270. var record = tryCatch(method, delegate.iterator, context.arg);
  15271. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  15272. var info = record.arg;
  15273. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  15274. }
  15275. function pushTryEntry(locs) {
  15276. var entry = {
  15277. tryLoc: locs[0]
  15278. };
  15279. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  15280. }
  15281. function resetTryEntry(entry) {
  15282. var record = entry.completion || {};
  15283. record.type = "normal", delete record.arg, entry.completion = record;
  15284. }
  15285. function Context(tryLocsList) {
  15286. this.tryEntries = [{
  15287. tryLoc: "root"
  15288. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  15289. }
  15290. function values(iterable) {
  15291. if (iterable) {
  15292. var iteratorMethod = iterable[iteratorSymbol];
  15293. if (iteratorMethod) return iteratorMethod.call(iterable);
  15294. if ("function" == typeof iterable.next) return iterable;
  15295. if (!isNaN(iterable.length)) {
  15296. var i = -1,
  15297. next = function next() {
  15298. for (; ++i < iterable.length;) {
  15299. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  15300. }
  15301. return next.value = undefined, next.done = !0, next;
  15302. };
  15303. return next.next = next;
  15304. }
  15305. }
  15306. return {
  15307. next: doneResult
  15308. };
  15309. }
  15310. function doneResult() {
  15311. return {
  15312. value: undefined,
  15313. done: !0
  15314. };
  15315. }
  15316. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  15317. value: GeneratorFunctionPrototype,
  15318. configurable: !0
  15319. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  15320. value: GeneratorFunction,
  15321. configurable: !0
  15322. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  15323. var ctor = "function" == typeof genFun && genFun.constructor;
  15324. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  15325. }, exports.mark = function (genFun) {
  15326. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  15327. }, exports.awrap = function (arg) {
  15328. return {
  15329. __await: arg
  15330. };
  15331. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  15332. return this;
  15333. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  15334. void 0 === PromiseImpl && (PromiseImpl = Promise);
  15335. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  15336. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  15337. return result.done ? result.value : iter.next();
  15338. });
  15339. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  15340. return this;
  15341. }), define(Gp, "toString", function () {
  15342. return "[object Generator]";
  15343. }), exports.keys = function (val) {
  15344. var object = Object(val),
  15345. keys = [];
  15346. for (var key in object) {
  15347. keys.push(key);
  15348. }
  15349. return keys.reverse(), function next() {
  15350. for (; keys.length;) {
  15351. var key = keys.pop();
  15352. if (key in object) return next.value = key, next.done = !1, next;
  15353. }
  15354. return next.done = !0, next;
  15355. };
  15356. }, exports.values = values, Context.prototype = {
  15357. constructor: Context,
  15358. reset: function reset(skipTempReset) {
  15359. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  15360. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  15361. }
  15362. },
  15363. stop: function stop() {
  15364. this.done = !0;
  15365. var rootRecord = this.tryEntries[0].completion;
  15366. if ("throw" === rootRecord.type) throw rootRecord.arg;
  15367. return this.rval;
  15368. },
  15369. dispatchException: function dispatchException(exception) {
  15370. if (this.done) throw exception;
  15371. var context = this;
  15372. function handle(loc, caught) {
  15373. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  15374. }
  15375. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  15376. var entry = this.tryEntries[i],
  15377. record = entry.completion;
  15378. if ("root" === entry.tryLoc) return handle("end");
  15379. if (entry.tryLoc <= this.prev) {
  15380. var hasCatch = hasOwn.call(entry, "catchLoc"),
  15381. hasFinally = hasOwn.call(entry, "finallyLoc");
  15382. if (hasCatch && hasFinally) {
  15383. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  15384. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  15385. } else if (hasCatch) {
  15386. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  15387. } else {
  15388. if (!hasFinally) throw new Error("try statement without catch or finally");
  15389. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  15390. }
  15391. }
  15392. }
  15393. },
  15394. abrupt: function abrupt(type, arg) {
  15395. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  15396. var entry = this.tryEntries[i];
  15397. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  15398. var finallyEntry = entry;
  15399. break;
  15400. }
  15401. }
  15402. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  15403. var record = finallyEntry ? finallyEntry.completion : {};
  15404. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  15405. },
  15406. complete: function complete(record, afterLoc) {
  15407. if ("throw" === record.type) throw record.arg;
  15408. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  15409. },
  15410. finish: function finish(finallyLoc) {
  15411. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  15412. var entry = this.tryEntries[i];
  15413. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  15414. }
  15415. },
  15416. "catch": function _catch(tryLoc) {
  15417. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  15418. var entry = this.tryEntries[i];
  15419. if (entry.tryLoc === tryLoc) {
  15420. var record = entry.completion;
  15421. if ("throw" === record.type) {
  15422. var thrown = record.arg;
  15423. resetTryEntry(entry);
  15424. }
  15425. return thrown;
  15426. }
  15427. }
  15428. throw new Error("illegal catch attempt");
  15429. },
  15430. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  15431. return this.delegate = {
  15432. iterator: values(iterable),
  15433. resultName: resultName,
  15434. nextLoc: nextLoc
  15435. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  15436. }
  15437. }, exports;
  15438. }
  15439. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15440. /***/ }),
  15441. /* 77 */
  15442. /*!*****************************************************************!*\
  15443. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  15444. \*****************************************************************/
  15445. /*! no static exports found */
  15446. /***/ (function(module, exports) {
  15447. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  15448. try {
  15449. var info = gen[key](arg);
  15450. var value = info.value;
  15451. } catch (error) {
  15452. reject(error);
  15453. return;
  15454. }
  15455. if (info.done) {
  15456. resolve(value);
  15457. } else {
  15458. Promise.resolve(value).then(_next, _throw);
  15459. }
  15460. }
  15461. function _asyncToGenerator(fn) {
  15462. return function () {
  15463. var self = this,
  15464. args = arguments;
  15465. return new Promise(function (resolve, reject) {
  15466. var gen = fn.apply(self, args);
  15467. function _next(value) {
  15468. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  15469. }
  15470. function _throw(err) {
  15471. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  15472. }
  15473. _next(undefined);
  15474. });
  15475. };
  15476. }
  15477. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15478. /***/ }),
  15479. /* 78 */
  15480. /*!********************************************************************************************!*\
  15481. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  15482. \********************************************************************************************/
  15483. /*! no static exports found */
  15484. /***/ (function(module, exports, __webpack_require__) {
  15485. "use strict";
  15486. Object.defineProperty(exports, "__esModule", {
  15487. value: true
  15488. });
  15489. exports.default = void 0;
  15490. /**
  15491. * 求两个颜色之间的渐变值
  15492. * @param {string} startColor 开始的颜色
  15493. * @param {string} endColor 结束的颜色
  15494. * @param {number} step 颜色等分的份额
  15495. * */
  15496. function colorGradient() {
  15497. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  15498. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  15499. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  15500. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  15501. var startR = startRGB[0];
  15502. var startG = startRGB[1];
  15503. var startB = startRGB[2];
  15504. var endRGB = hexToRgb(endColor, false);
  15505. var endR = endRGB[0];
  15506. var endG = endRGB[1];
  15507. var endB = endRGB[2];
  15508. var sR = (endR - startR) / step; // 总差值
  15509. var sG = (endG - startG) / step;
  15510. var sB = (endB - startB) / step;
  15511. var colorArr = [];
  15512. for (var i = 0; i < step; i++) {
  15513. // 计算每一步的hex值
  15514. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  15515. // 确保第一个颜色值为startColor的值
  15516. if (i === 0) hex = rgbToHex(startColor);
  15517. // 确保最后一个颜色值为endColor的值
  15518. if (i === step - 1) hex = rgbToHex(endColor);
  15519. colorArr.push(hex);
  15520. }
  15521. return colorArr;
  15522. }
  15523. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  15524. function hexToRgb(sColor) {
  15525. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  15526. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  15527. sColor = String(sColor).toLowerCase();
  15528. if (sColor && reg.test(sColor)) {
  15529. if (sColor.length === 4) {
  15530. var sColorNew = '#';
  15531. for (var i = 1; i < 4; i += 1) {
  15532. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  15533. }
  15534. sColor = sColorNew;
  15535. }
  15536. // 处理六位的颜色值
  15537. var sColorChange = [];
  15538. for (var _i = 1; _i < 7; _i += 2) {
  15539. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  15540. }
  15541. if (!str) {
  15542. return sColorChange;
  15543. }
  15544. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  15545. }
  15546. if (/^(rgb|RGB)/.test(sColor)) {
  15547. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  15548. return arr.map(function (val) {
  15549. return Number(val);
  15550. });
  15551. }
  15552. return sColor;
  15553. }
  15554. // 将rgb表示方式转换为hex表示方式
  15555. function rgbToHex(rgb) {
  15556. var _this = rgb;
  15557. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  15558. if (/^(rgb|RGB)/.test(_this)) {
  15559. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  15560. var strHex = '#';
  15561. for (var i = 0; i < aColor.length; i++) {
  15562. var hex = Number(aColor[i]).toString(16);
  15563. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  15564. if (hex === '0') {
  15565. hex += hex;
  15566. }
  15567. strHex += hex;
  15568. }
  15569. if (strHex.length !== 7) {
  15570. strHex = _this;
  15571. }
  15572. return strHex;
  15573. }
  15574. if (reg.test(_this)) {
  15575. var aNum = _this.replace(/#/, '').split('');
  15576. if (aNum.length === 6) {
  15577. return _this;
  15578. }
  15579. if (aNum.length === 3) {
  15580. var numHex = '#';
  15581. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  15582. numHex += aNum[_i2] + aNum[_i2];
  15583. }
  15584. return numHex;
  15585. }
  15586. } else {
  15587. return _this;
  15588. }
  15589. }
  15590. /**
  15591. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  15592. * sHex为传入的十六进制的色值
  15593. * alpha为rgba的透明度
  15594. */
  15595. function colorToRgba(color, alpha) {
  15596. color = rgbToHex(color);
  15597. // 十六进制颜色值的正则表达式
  15598. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  15599. /* 16进制颜色转为RGB格式 */
  15600. var sColor = String(color).toLowerCase();
  15601. if (sColor && reg.test(sColor)) {
  15602. if (sColor.length === 4) {
  15603. var sColorNew = '#';
  15604. for (var i = 1; i < 4; i += 1) {
  15605. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  15606. }
  15607. sColor = sColorNew;
  15608. }
  15609. // 处理六位的颜色值
  15610. var sColorChange = [];
  15611. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  15612. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  15613. }
  15614. // return sColorChange.join(',')
  15615. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  15616. }
  15617. return sColor;
  15618. }
  15619. var _default = {
  15620. colorGradient: colorGradient,
  15621. hexToRgb: hexToRgb,
  15622. rgbToHex: rgbToHex,
  15623. colorToRgba: colorToRgba
  15624. };
  15625. exports.default = _default;
  15626. /***/ }),
  15627. /* 79 */
  15628. /*!***********************************************************************************!*\
  15629. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/function/test.js ***!
  15630. \***********************************************************************************/
  15631. /*! no static exports found */
  15632. /***/ (function(module, exports, __webpack_require__) {
  15633. "use strict";
  15634. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15635. Object.defineProperty(exports, "__esModule", {
  15636. value: true
  15637. });
  15638. exports.default = void 0;
  15639. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  15640. /**
  15641. * 验证电子邮箱格式
  15642. */
  15643. function email(value) {
  15644. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  15645. }
  15646. /**
  15647. * 验证手机格式
  15648. */
  15649. function mobile(value) {
  15650. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  15651. }
  15652. /**
  15653. * 验证URL格式
  15654. */
  15655. function url(value) {
  15656. return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(value);
  15657. }
  15658. /**
  15659. * 验证日期格式
  15660. */
  15661. function date(value) {
  15662. if (!value) return false;
  15663. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  15664. if (number(value)) value = +value;
  15665. return !/Invalid|NaN/.test(new Date(value).toString());
  15666. }
  15667. /**
  15668. * 验证ISO类型的日期格式
  15669. */
  15670. function dateISO(value) {
  15671. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  15672. }
  15673. /**
  15674. * 验证十进制数字
  15675. */
  15676. function number(value) {
  15677. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  15678. }
  15679. /**
  15680. * 验证字符串
  15681. */
  15682. function string(value) {
  15683. return typeof value === 'string';
  15684. }
  15685. /**
  15686. * 验证整数
  15687. */
  15688. function digits(value) {
  15689. return /^\d+$/.test(value);
  15690. }
  15691. /**
  15692. * 验证身份证号码
  15693. */
  15694. function idCard(value) {
  15695. return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(value);
  15696. }
  15697. /**
  15698. * 是否车牌号
  15699. */
  15700. function carNo(value) {
  15701. // 新能源车牌
  15702. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  15703. // 旧车牌
  15704. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  15705. if (value.length === 7) {
  15706. return creg.test(value);
  15707. }
  15708. if (value.length === 8) {
  15709. return xreg.test(value);
  15710. }
  15711. return false;
  15712. }
  15713. /**
  15714. * 金额,只允许2位小数
  15715. */
  15716. function amount(value) {
  15717. // 金额,只允许保留两位小数
  15718. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  15719. }
  15720. /**
  15721. * 中文
  15722. */
  15723. function chinese(value) {
  15724. var reg = /^[\u4e00-\u9fa5]+$/gi;
  15725. return reg.test(value);
  15726. }
  15727. /**
  15728. * 只能输入字母
  15729. */
  15730. function letter(value) {
  15731. return /^[a-zA-Z]*$/.test(value);
  15732. }
  15733. /**
  15734. * 只能是字母或者数字
  15735. */
  15736. function enOrNum(value) {
  15737. // 英文或者数字
  15738. var reg = /^[0-9a-zA-Z]*$/g;
  15739. return reg.test(value);
  15740. }
  15741. /**
  15742. * 验证是否包含某个值
  15743. */
  15744. function contains(value, param) {
  15745. return value.indexOf(param) >= 0;
  15746. }
  15747. /**
  15748. * 验证一个值范围[min, max]
  15749. */
  15750. function range(value, param) {
  15751. return value >= param[0] && value <= param[1];
  15752. }
  15753. /**
  15754. * 验证一个长度范围[min, max]
  15755. */
  15756. function rangeLength(value, param) {
  15757. return value.length >= param[0] && value.length <= param[1];
  15758. }
  15759. /**
  15760. * 是否固定电话
  15761. */
  15762. function landline(value) {
  15763. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  15764. return reg.test(value);
  15765. }
  15766. /**
  15767. * 判断是否为空
  15768. */
  15769. function empty(value) {
  15770. switch ((0, _typeof2.default)(value)) {
  15771. case 'undefined':
  15772. return true;
  15773. case 'string':
  15774. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  15775. break;
  15776. case 'boolean':
  15777. if (!value) return true;
  15778. break;
  15779. case 'number':
  15780. if (value === 0 || isNaN(value)) return true;
  15781. break;
  15782. case 'object':
  15783. if (value === null || value.length === 0) return true;
  15784. for (var i in value) {
  15785. return false;
  15786. }
  15787. return true;
  15788. }
  15789. return false;
  15790. }
  15791. /**
  15792. * 是否json字符串
  15793. */
  15794. function jsonString(value) {
  15795. if (typeof value === 'string') {
  15796. try {
  15797. var obj = JSON.parse(value);
  15798. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  15799. return true;
  15800. }
  15801. return false;
  15802. } catch (e) {
  15803. return false;
  15804. }
  15805. }
  15806. return false;
  15807. }
  15808. /**
  15809. * 是否数组
  15810. */
  15811. function array(value) {
  15812. if (typeof Array.isArray === 'function') {
  15813. return Array.isArray(value);
  15814. }
  15815. return Object.prototype.toString.call(value) === '[object Array]';
  15816. }
  15817. /**
  15818. * 是否对象
  15819. */
  15820. function object(value) {
  15821. return Object.prototype.toString.call(value) === '[object Object]';
  15822. }
  15823. /**
  15824. * 是否短信验证码
  15825. */
  15826. function code(value) {
  15827. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  15828. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  15829. }
  15830. /**
  15831. * 是否函数方法
  15832. * @param {Object} value
  15833. */
  15834. function func(value) {
  15835. return typeof value === 'function';
  15836. }
  15837. /**
  15838. * 是否promise对象
  15839. * @param {Object} value
  15840. */
  15841. function promise(value) {
  15842. return object(value) && func(value.then) && func(value.catch);
  15843. }
  15844. /** 是否图片格式
  15845. * @param {Object} value
  15846. */
  15847. function image(value) {
  15848. var newValue = value.split('?')[0];
  15849. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  15850. return IMAGE_REGEXP.test(newValue);
  15851. }
  15852. /**
  15853. * 是否视频格式
  15854. * @param {Object} value
  15855. */
  15856. function video(value) {
  15857. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  15858. return VIDEO_REGEXP.test(value);
  15859. }
  15860. /**
  15861. * 是否为正则对象
  15862. * @param {Object}
  15863. * @return {Boolean}
  15864. */
  15865. function regExp(o) {
  15866. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  15867. }
  15868. var _default = {
  15869. email: email,
  15870. mobile: mobile,
  15871. url: url,
  15872. date: date,
  15873. dateISO: dateISO,
  15874. number: number,
  15875. digits: digits,
  15876. idCard: idCard,
  15877. carNo: carNo,
  15878. amount: amount,
  15879. chinese: chinese,
  15880. letter: letter,
  15881. enOrNum: enOrNum,
  15882. contains: contains,
  15883. range: range,
  15884. rangeLength: rangeLength,
  15885. empty: empty,
  15886. isEmpty: empty,
  15887. jsonString: jsonString,
  15888. landline: landline,
  15889. object: object,
  15890. array: array,
  15891. code: code,
  15892. func: func,
  15893. promise: promise,
  15894. video: video,
  15895. image: image,
  15896. regExp: regExp,
  15897. string: string
  15898. };
  15899. exports.default = _default;
  15900. /***/ }),
  15901. /* 80 */
  15902. /*!***************************************************************************************!*\
  15903. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/function/debounce.js ***!
  15904. \***************************************************************************************/
  15905. /*! no static exports found */
  15906. /***/ (function(module, exports, __webpack_require__) {
  15907. "use strict";
  15908. Object.defineProperty(exports, "__esModule", {
  15909. value: true
  15910. });
  15911. exports.default = void 0;
  15912. var timeout = null;
  15913. /**
  15914. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  15915. *
  15916. * @param {Function} func 要执行的回调函数
  15917. * @param {Number} wait 延时的时间
  15918. * @param {Boolean} immediate 是否立即执行
  15919. * @return null
  15920. */
  15921. function debounce(func) {
  15922. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  15923. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  15924. // 清除定时器
  15925. if (timeout !== null) clearTimeout(timeout);
  15926. // 立即执行,此类情况一般用不到
  15927. if (immediate) {
  15928. var callNow = !timeout;
  15929. timeout = setTimeout(function () {
  15930. timeout = null;
  15931. }, wait);
  15932. if (callNow) typeof func === 'function' && func();
  15933. } else {
  15934. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  15935. timeout = setTimeout(function () {
  15936. typeof func === 'function' && func();
  15937. }, wait);
  15938. }
  15939. }
  15940. var _default = debounce;
  15941. exports.default = _default;
  15942. /***/ }),
  15943. /* 81 */
  15944. /*!***************************************************************************************!*\
  15945. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/function/throttle.js ***!
  15946. \***************************************************************************************/
  15947. /*! no static exports found */
  15948. /***/ (function(module, exports, __webpack_require__) {
  15949. "use strict";
  15950. Object.defineProperty(exports, "__esModule", {
  15951. value: true
  15952. });
  15953. exports.default = void 0;
  15954. var timer;
  15955. var flag;
  15956. /**
  15957. * 节流原理:在一定时间内,只能触发一次
  15958. *
  15959. * @param {Function} func 要执行的回调函数
  15960. * @param {Number} wait 延时的时间
  15961. * @param {Boolean} immediate 是否立即执行
  15962. * @return null
  15963. */
  15964. function throttle(func) {
  15965. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  15966. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  15967. if (immediate) {
  15968. if (!flag) {
  15969. flag = true;
  15970. // 如果是立即执行,则在wait毫秒内开始时执行
  15971. typeof func === 'function' && func();
  15972. timer = setTimeout(function () {
  15973. flag = false;
  15974. }, wait);
  15975. }
  15976. } else if (!flag) {
  15977. flag = true;
  15978. // 如果是非立即执行,则在wait毫秒内的结束处执行
  15979. timer = setTimeout(function () {
  15980. flag = false;
  15981. typeof func === 'function' && func();
  15982. }, wait);
  15983. }
  15984. }
  15985. var _default = throttle;
  15986. exports.default = _default;
  15987. /***/ }),
  15988. /* 82 */
  15989. /*!************************************************************************************!*\
  15990. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/function/index.js ***!
  15991. \************************************************************************************/
  15992. /*! no static exports found */
  15993. /***/ (function(module, exports, __webpack_require__) {
  15994. "use strict";
  15995. /* WEBPACK VAR INJECTION */(function(uni) {
  15996. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15997. Object.defineProperty(exports, "__esModule", {
  15998. value: true
  15999. });
  16000. exports.default = void 0;
  16001. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  16002. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  16003. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 79));
  16004. var _digit = __webpack_require__(/*! ./digit.js */ 83);
  16005. /**
  16006. * @description 如果value小于min,取min;如果value大于max,取max
  16007. * @param {number} min
  16008. * @param {number} max
  16009. * @param {number} value
  16010. */
  16011. function range() {
  16012. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  16013. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  16014. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  16015. return Math.max(min, Math.min(max, Number(value)));
  16016. }
  16017. /**
  16018. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  16019. * @param {number|string} value 用户传递值的px值
  16020. * @param {boolean} unit
  16021. * @returns {number|string}
  16022. */
  16023. function getPx(value) {
  16024. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  16025. if (_test.default.number(value)) {
  16026. return unit ? "".concat(value, "px") : Number(value);
  16027. }
  16028. // 如果带有rpx,先取出其数值部分,再转为px值
  16029. if (/(rpx|upx)$/.test(value)) {
  16030. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  16031. }
  16032. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  16033. }
  16034. /**
  16035. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  16036. * @param {number} value 堵塞时间 单位ms 毫秒
  16037. * @returns {Promise} 返回promise
  16038. */
  16039. function sleep() {
  16040. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  16041. return new Promise(function (resolve) {
  16042. setTimeout(function () {
  16043. resolve();
  16044. }, value);
  16045. });
  16046. }
  16047. /**
  16048. * @description 运行期判断平台
  16049. * @returns {string} 返回所在平台(小写)
  16050. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  16051. */
  16052. function os() {
  16053. return uni.getSystemInfoSync().platform.toLowerCase();
  16054. }
  16055. /**
  16056. * @description 获取系统信息同步接口
  16057. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  16058. */
  16059. function sys() {
  16060. return uni.getSystemInfoSync();
  16061. }
  16062. /**
  16063. * @description 取一个区间数
  16064. * @param {Number} min 最小值
  16065. * @param {Number} max 最大值
  16066. */
  16067. function random(min, max) {
  16068. if (min >= 0 && max > 0 && max >= min) {
  16069. var gab = max - min + 1;
  16070. return Math.floor(Math.random() * gab + min);
  16071. }
  16072. return 0;
  16073. }
  16074. /**
  16075. * @param {Number} len uuid的长度
  16076. * @param {Boolean} firstU 将返回的首字母置为"u"
  16077. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  16078. */
  16079. function guid() {
  16080. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  16081. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  16082. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  16083. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  16084. var uuid = [];
  16085. radix = radix || chars.length;
  16086. if (len) {
  16087. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  16088. for (var i = 0; i < len; i++) {
  16089. uuid[i] = chars[0 | Math.random() * radix];
  16090. }
  16091. } else {
  16092. var r;
  16093. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  16094. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  16095. uuid[14] = '4';
  16096. for (var _i = 0; _i < 36; _i++) {
  16097. if (!uuid[_i]) {
  16098. r = 0 | Math.random() * 16;
  16099. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  16100. }
  16101. }
  16102. }
  16103. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  16104. if (firstU) {
  16105. uuid.shift();
  16106. return "u".concat(uuid.join(''));
  16107. }
  16108. return uuid.join('');
  16109. }
  16110. /**
  16111. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  16112. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  16113. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  16114. 值(默认为undefined),就是查找最顶层的$parent
  16115. * @param {string|undefined} name 父组件的参数名
  16116. */
  16117. function $parent() {
  16118. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  16119. var parent = this.$parent;
  16120. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  16121. while (parent) {
  16122. // 父组件
  16123. if (parent.$options && parent.$options.name !== name) {
  16124. // 如果组件的name不相等,继续上一级寻找
  16125. parent = parent.$parent;
  16126. } else {
  16127. return parent;
  16128. }
  16129. }
  16130. return false;
  16131. }
  16132. /**
  16133. * @description 样式转换
  16134. * 对象转字符串,或者字符串转对象
  16135. * @param {object | string} customStyle 需要转换的目标
  16136. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  16137. * @returns {object|string}
  16138. */
  16139. function addStyle(customStyle) {
  16140. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  16141. // 字符串转字符串,对象转对象情形,直接返回
  16142. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  16143. return customStyle;
  16144. }
  16145. // 字符串转对象
  16146. if (target === 'object') {
  16147. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  16148. customStyle = trim(customStyle);
  16149. // 根据";"将字符串转为数组形式
  16150. var styleArray = customStyle.split(';');
  16151. var style = {};
  16152. // 历遍数组,拼接成对象
  16153. for (var i = 0; i < styleArray.length; i++) {
  16154. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  16155. if (styleArray[i]) {
  16156. var item = styleArray[i].split(':');
  16157. style[trim(item[0])] = trim(item[1]);
  16158. }
  16159. }
  16160. return style;
  16161. }
  16162. // 这里为对象转字符串形式
  16163. var string = '';
  16164. for (var _i2 in customStyle) {
  16165. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  16166. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  16167. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  16168. }
  16169. // 去除两端空格
  16170. return trim(string);
  16171. }
  16172. /**
  16173. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  16174. * @param {string|number} value 需要添加单位的值
  16175. * @param {string} unit 添加的单位名 比如px
  16176. */
  16177. function addUnit() {
  16178. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  16179. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  16180. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (_uni$$u$config$unit = (_uni = uni) === null || _uni === void 0 ? void 0 : (_uni$$u = _uni.$u) === null || _uni$$u === void 0 ? void 0 : (_uni$$u$config = _uni$$u.config) === null || _uni$$u$config === void 0 ? void 0 : _uni$$u$config.unit) !== null && _uni$$u$config$unit !== void 0 ? _uni$$u$config$unit : 'px';
  16181. value = String(value);
  16182. // 用uView内置验证规则中的number判断是否为数值
  16183. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  16184. }
  16185. /**
  16186. * @description 深度克隆
  16187. * @param {object} obj 需要深度克隆的对象
  16188. * @param cache 缓存
  16189. * @returns {*} 克隆后的对象或者原值(不是对象)
  16190. */
  16191. function deepClone(obj) {
  16192. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  16193. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  16194. if (cache.has(obj)) return cache.get(obj);
  16195. var clone;
  16196. if (obj instanceof Date) {
  16197. clone = new Date(obj.getTime());
  16198. } else if (obj instanceof RegExp) {
  16199. clone = new RegExp(obj);
  16200. } else if (obj instanceof Map) {
  16201. clone = new Map(Array.from(obj, function (_ref) {
  16202. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  16203. key = _ref2[0],
  16204. value = _ref2[1];
  16205. return [key, deepClone(value, cache)];
  16206. }));
  16207. } else if (obj instanceof Set) {
  16208. clone = new Set(Array.from(obj, function (value) {
  16209. return deepClone(value, cache);
  16210. }));
  16211. } else if (Array.isArray(obj)) {
  16212. clone = obj.map(function (value) {
  16213. return deepClone(value, cache);
  16214. });
  16215. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  16216. clone = Object.create(Object.getPrototypeOf(obj));
  16217. cache.set(obj, clone);
  16218. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  16219. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  16220. key = _Object$entries$_i[0],
  16221. value = _Object$entries$_i[1];
  16222. clone[key] = deepClone(value, cache);
  16223. }
  16224. } else {
  16225. clone = Object.assign({}, obj);
  16226. }
  16227. cache.set(obj, clone);
  16228. return clone;
  16229. }
  16230. /**
  16231. * @description JS对象深度合并
  16232. * @param {object} target 需要拷贝的对象
  16233. * @param {object} source 拷贝的来源对象
  16234. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  16235. */
  16236. function deepMerge() {
  16237. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16238. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16239. target = deepClone(target);
  16240. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  16241. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  16242. for (var prop in source) {
  16243. if (!source.hasOwnProperty(prop)) continue;
  16244. var sourceValue = source[prop];
  16245. var targetValue = merged[prop];
  16246. if (sourceValue instanceof Date) {
  16247. merged[prop] = new Date(sourceValue);
  16248. } else if (sourceValue instanceof RegExp) {
  16249. merged[prop] = new RegExp(sourceValue);
  16250. } else if (sourceValue instanceof Map) {
  16251. merged[prop] = new Map(sourceValue);
  16252. } else if (sourceValue instanceof Set) {
  16253. merged[prop] = new Set(sourceValue);
  16254. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  16255. merged[prop] = deepMerge(targetValue, sourceValue);
  16256. } else {
  16257. merged[prop] = sourceValue;
  16258. }
  16259. }
  16260. return merged;
  16261. }
  16262. /**
  16263. * @description error提示
  16264. * @param {*} err 错误内容
  16265. */
  16266. function error(err) {
  16267. // 开发环境才提示,生产环境不会提示
  16268. if (true) {
  16269. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  16270. }
  16271. }
  16272. /**
  16273. * @description 打乱数组
  16274. * @param {array} array 需要打乱的数组
  16275. * @returns {array} 打乱后的数组
  16276. */
  16277. function randomArray() {
  16278. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16279. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  16280. return array.sort(function () {
  16281. return Math.random() - 0.5;
  16282. });
  16283. }
  16284. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  16285. // 所以这里做一个兼容polyfill的兼容处理
  16286. if (!String.prototype.padStart) {
  16287. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  16288. String.prototype.padStart = function (maxLength) {
  16289. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  16290. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  16291. throw new TypeError('fillString must be String');
  16292. }
  16293. var str = this;
  16294. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  16295. if (str.length >= maxLength) return String(str);
  16296. var fillLength = maxLength - str.length;
  16297. var times = Math.ceil(fillLength / fillString.length);
  16298. while (times >>= 1) {
  16299. fillString += fillString;
  16300. if (times === 1) {
  16301. fillString += fillString;
  16302. }
  16303. }
  16304. return fillString.slice(0, fillLength) + str;
  16305. };
  16306. }
  16307. /**
  16308. * @description 格式化时间
  16309. * @param {String|Number} dateTime 需要格式化的时间戳
  16310. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  16311. * @returns {string} 返回格式化后的字符串
  16312. */
  16313. function timeFormat() {
  16314. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  16315. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  16316. var date;
  16317. // 若传入时间为假值,则取当前时间
  16318. if (!dateTime) {
  16319. date = new Date();
  16320. }
  16321. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  16322. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  16323. date = new Date(dateTime * 1000);
  16324. }
  16325. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  16326. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  16327. date = new Date(Number(dateTime));
  16328. }
  16329. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  16330. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  16331. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  16332. date = new Date(dateTime.replace(/-/g, '/'));
  16333. }
  16334. // 其他都认为符合 RFC 2822 规范
  16335. else {
  16336. date = new Date(dateTime);
  16337. }
  16338. var timeSource = {
  16339. 'y': date.getFullYear().toString(),
  16340. // 年
  16341. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  16342. // 月
  16343. 'd': date.getDate().toString().padStart(2, '0'),
  16344. // 日
  16345. 'h': date.getHours().toString().padStart(2, '0'),
  16346. // 时
  16347. 'M': date.getMinutes().toString().padStart(2, '0'),
  16348. // 分
  16349. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  16350. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  16351. };
  16352. for (var key in timeSource) {
  16353. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  16354. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  16355. ret = _ref4[0];
  16356. if (ret) {
  16357. // 年可能只需展示两位
  16358. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  16359. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  16360. }
  16361. }
  16362. return formatStr;
  16363. }
  16364. /**
  16365. * @description 时间戳转为多久之前
  16366. * @param {String|Number} timestamp 时间戳
  16367. * @param {String|Boolean} format
  16368. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  16369. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  16370. * @returns {string} 转化后的内容
  16371. */
  16372. function timeFrom() {
  16373. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  16374. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  16375. if (timestamp == null) timestamp = Number(new Date());
  16376. timestamp = parseInt(timestamp);
  16377. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  16378. if (timestamp.toString().length == 10) timestamp *= 1000;
  16379. var timer = new Date().getTime() - timestamp;
  16380. timer = parseInt(timer / 1000);
  16381. // 如果小于5分钟,则返回"刚刚",其他以此类推
  16382. var tips = '';
  16383. switch (true) {
  16384. case timer < 300:
  16385. tips = '刚刚';
  16386. break;
  16387. case timer >= 300 && timer < 3600:
  16388. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  16389. break;
  16390. case timer >= 3600 && timer < 86400:
  16391. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  16392. break;
  16393. case timer >= 86400 && timer < 2592000:
  16394. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  16395. break;
  16396. default:
  16397. // 如果format为false,则无论什么时间戳,都显示xx之前
  16398. if (format === false) {
  16399. if (timer >= 2592000 && timer < 365 * 86400) {
  16400. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  16401. } else {
  16402. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  16403. }
  16404. } else {
  16405. tips = timeFormat(timestamp, format);
  16406. }
  16407. }
  16408. return tips;
  16409. }
  16410. /**
  16411. * @description 去除空格
  16412. * @param String str 需要去除空格的字符串
  16413. * @param String pos both(左右)|left|right|all 默认both
  16414. */
  16415. function trim(str) {
  16416. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  16417. str = String(str);
  16418. if (pos == 'both') {
  16419. return str.replace(/^\s+|\s+$/g, '');
  16420. }
  16421. if (pos == 'left') {
  16422. return str.replace(/^\s*/, '');
  16423. }
  16424. if (pos == 'right') {
  16425. return str.replace(/(\s*$)/g, '');
  16426. }
  16427. if (pos == 'all') {
  16428. return str.replace(/\s+/g, '');
  16429. }
  16430. return str;
  16431. }
  16432. /**
  16433. * @description 对象转url参数
  16434. * @param {object} data,对象
  16435. * @param {Boolean} isPrefix,是否自动加上"?"
  16436. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  16437. */
  16438. function queryParams() {
  16439. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16440. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  16441. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  16442. var prefix = isPrefix ? '?' : '';
  16443. var _result = [];
  16444. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  16445. var _loop = function _loop(key) {
  16446. var value = data[key];
  16447. // 去掉为空的参数
  16448. if (['', undefined, null].indexOf(value) >= 0) {
  16449. return "continue";
  16450. }
  16451. // 如果值为数组,另行处理
  16452. if (value.constructor === Array) {
  16453. // e.g. {ids: [1, 2, 3]}
  16454. switch (arrayFormat) {
  16455. case 'indices':
  16456. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  16457. for (var i = 0; i < value.length; i++) {
  16458. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  16459. }
  16460. break;
  16461. case 'brackets':
  16462. // 结果: ids[]=1&ids[]=2&ids[]=3
  16463. value.forEach(function (_value) {
  16464. _result.push("".concat(key, "[]=").concat(_value));
  16465. });
  16466. break;
  16467. case 'repeat':
  16468. // 结果: ids=1&ids=2&ids=3
  16469. value.forEach(function (_value) {
  16470. _result.push("".concat(key, "=").concat(_value));
  16471. });
  16472. break;
  16473. case 'comma':
  16474. // 结果: ids=1,2,3
  16475. var commaStr = '';
  16476. value.forEach(function (_value) {
  16477. commaStr += (commaStr ? ',' : '') + _value;
  16478. });
  16479. _result.push("".concat(key, "=").concat(commaStr));
  16480. break;
  16481. default:
  16482. value.forEach(function (_value) {
  16483. _result.push("".concat(key, "[]=").concat(_value));
  16484. });
  16485. }
  16486. } else {
  16487. _result.push("".concat(key, "=").concat(value));
  16488. }
  16489. };
  16490. for (var key in data) {
  16491. var _ret = _loop(key);
  16492. if (_ret === "continue") continue;
  16493. }
  16494. return _result.length ? prefix + _result.join('&') : '';
  16495. }
  16496. /**
  16497. * 显示消息提示框
  16498. * @param {String} title 提示的内容,长度与 icon 取值有关。
  16499. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  16500. */
  16501. function toast(title) {
  16502. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  16503. uni.showToast({
  16504. title: String(title),
  16505. icon: 'none',
  16506. duration: duration
  16507. });
  16508. }
  16509. /**
  16510. * @description 根据主题type值,获取对应的图标
  16511. * @param {String} type 主题名称,primary|info|error|warning|success
  16512. * @param {boolean} fill 是否使用fill填充实体的图标
  16513. */
  16514. function type2icon() {
  16515. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  16516. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  16517. // 如果非预置值,默认为success
  16518. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  16519. var iconName = '';
  16520. // 目前(2019-12-12),info和primary使用同一个图标
  16521. switch (type) {
  16522. case 'primary':
  16523. iconName = 'info-circle';
  16524. break;
  16525. case 'info':
  16526. iconName = 'info-circle';
  16527. break;
  16528. case 'error':
  16529. iconName = 'close-circle';
  16530. break;
  16531. case 'warning':
  16532. iconName = 'error-circle';
  16533. break;
  16534. case 'success':
  16535. iconName = 'checkmark-circle';
  16536. break;
  16537. default:
  16538. iconName = 'checkmark-circle';
  16539. }
  16540. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  16541. if (fill) iconName += '-fill';
  16542. return iconName;
  16543. }
  16544. /**
  16545. * @description 数字格式化
  16546. * @param {number|string} number 要格式化的数字
  16547. * @param {number} decimals 保留几位小数
  16548. * @param {string} decimalPoint 小数点符号
  16549. * @param {string} thousandsSeparator 千分位符号
  16550. * @returns {string} 格式化后的数字
  16551. */
  16552. function priceFormat(number) {
  16553. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  16554. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  16555. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  16556. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  16557. var n = !isFinite(+number) ? 0 : +number;
  16558. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  16559. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  16560. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  16561. var s = '';
  16562. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  16563. var re = /(-?\d+)(\d{3})/;
  16564. while (re.test(s[0])) {
  16565. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  16566. }
  16567. if ((s[1] || '').length < prec) {
  16568. s[1] = s[1] || '';
  16569. s[1] += new Array(prec - s[1].length + 1).join('0');
  16570. }
  16571. return s.join(dec);
  16572. }
  16573. /**
  16574. * @description 获取duration值
  16575. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  16576. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  16577. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  16578. * @param {boolean} unit 提示: 如果是false 默认返回number
  16579. * @return {string|number}
  16580. */
  16581. function getDuration(value) {
  16582. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  16583. var valueNum = parseInt(value);
  16584. if (unit) {
  16585. if (/s$/.test(value)) return value;
  16586. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  16587. }
  16588. if (/ms$/.test(value)) return valueNum;
  16589. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  16590. return valueNum;
  16591. }
  16592. /**
  16593. * @description 日期的月或日补零操作
  16594. * @param {String} value 需要补零的值
  16595. */
  16596. function padZero(value) {
  16597. return "00".concat(value).slice(-2);
  16598. }
  16599. /**
  16600. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  16601. * @param {*} instance
  16602. * @param {*} event
  16603. */
  16604. function formValidate(instance, event) {
  16605. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  16606. var form = uni.$u.$parent.call(instance, 'u-form');
  16607. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  16608. // 同时将form-item的pros传递给form,让其进行精确对象验证
  16609. if (formItem && form) {
  16610. form.validateField(formItem.prop, function () {}, event);
  16611. }
  16612. }
  16613. /**
  16614. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  16615. * @param {object} obj 对象
  16616. * @param {string} key 需要获取的属性字段
  16617. * @returns {*}
  16618. */
  16619. function getProperty(obj, key) {
  16620. if (!obj) {
  16621. return;
  16622. }
  16623. if (typeof key !== 'string' || key === '') {
  16624. return '';
  16625. }
  16626. if (key.indexOf('.') !== -1) {
  16627. var keys = key.split('.');
  16628. var firstObj = obj[keys[0]] || {};
  16629. for (var i = 1; i < keys.length; i++) {
  16630. if (firstObj) {
  16631. firstObj = firstObj[keys[i]];
  16632. }
  16633. }
  16634. return firstObj;
  16635. }
  16636. return obj[key];
  16637. }
  16638. /**
  16639. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  16640. * @param {object} obj 对象
  16641. * @param {string} key 需要设置的属性
  16642. * @param {string} value 设置的值
  16643. */
  16644. function setProperty(obj, key, value) {
  16645. if (!obj) {
  16646. return;
  16647. }
  16648. // 递归赋值
  16649. var inFn = function inFn(_obj, keys, v) {
  16650. // 最后一个属性key
  16651. if (keys.length === 1) {
  16652. _obj[keys[0]] = v;
  16653. return;
  16654. }
  16655. // 0~length-1个key
  16656. while (keys.length > 1) {
  16657. var k = keys[0];
  16658. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  16659. _obj[k] = {};
  16660. }
  16661. var _key = keys.shift();
  16662. // 自调用判断是否存在属性,不存在则自动创建对象
  16663. inFn(_obj[k], keys, v);
  16664. }
  16665. };
  16666. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  16667. // 支持多层级赋值操作
  16668. var keys = key.split('.');
  16669. inFn(obj, keys, value);
  16670. } else {
  16671. obj[key] = value;
  16672. }
  16673. }
  16674. /**
  16675. * @description 获取当前页面路径
  16676. */
  16677. function page() {
  16678. var _pages$route, _pages;
  16679. var pages = getCurrentPages();
  16680. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  16681. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  16682. }
  16683. /**
  16684. * @description 获取当前路由栈实例数组
  16685. */
  16686. function pages() {
  16687. var pages = getCurrentPages();
  16688. return pages;
  16689. }
  16690. /**
  16691. * 获取页面历史栈指定层实例
  16692. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  16693. */
  16694. function getHistoryPage() {
  16695. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  16696. var pages = getCurrentPages();
  16697. var len = pages.length;
  16698. return pages[len - 1 + back];
  16699. }
  16700. /**
  16701. * @description 修改uView内置属性值
  16702. * @param {object} props 修改内置props属性
  16703. * @param {object} config 修改内置config属性
  16704. * @param {object} color 修改内置color属性
  16705. * @param {object} zIndex 修改内置zIndex属性
  16706. */
  16707. function setConfig(_ref5) {
  16708. var _ref5$props = _ref5.props,
  16709. props = _ref5$props === void 0 ? {} : _ref5$props,
  16710. _ref5$config = _ref5.config,
  16711. config = _ref5$config === void 0 ? {} : _ref5$config,
  16712. _ref5$color = _ref5.color,
  16713. color = _ref5$color === void 0 ? {} : _ref5$color,
  16714. _ref5$zIndex = _ref5.zIndex,
  16715. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  16716. var deepMerge = uni.$u.deepMerge;
  16717. uni.$u.config = deepMerge(uni.$u.config, config);
  16718. uni.$u.props = deepMerge(uni.$u.props, props);
  16719. uni.$u.color = deepMerge(uni.$u.color, color);
  16720. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  16721. }
  16722. var _default = {
  16723. range: range,
  16724. getPx: getPx,
  16725. sleep: sleep,
  16726. os: os,
  16727. sys: sys,
  16728. random: random,
  16729. guid: guid,
  16730. $parent: $parent,
  16731. addStyle: addStyle,
  16732. addUnit: addUnit,
  16733. deepClone: deepClone,
  16734. deepMerge: deepMerge,
  16735. error: error,
  16736. randomArray: randomArray,
  16737. timeFormat: timeFormat,
  16738. timeFrom: timeFrom,
  16739. trim: trim,
  16740. queryParams: queryParams,
  16741. toast: toast,
  16742. type2icon: type2icon,
  16743. priceFormat: priceFormat,
  16744. getDuration: getDuration,
  16745. padZero: padZero,
  16746. formValidate: formValidate,
  16747. getProperty: getProperty,
  16748. setProperty: setProperty,
  16749. page: page,
  16750. pages: pages,
  16751. getHistoryPage: getHistoryPage,
  16752. setConfig: setConfig
  16753. };
  16754. exports.default = _default;
  16755. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  16756. /***/ }),
  16757. /* 83 */
  16758. /*!************************************************************************************!*\
  16759. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/function/digit.js ***!
  16760. \************************************************************************************/
  16761. /*! no static exports found */
  16762. /***/ (function(module, exports, __webpack_require__) {
  16763. "use strict";
  16764. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16765. Object.defineProperty(exports, "__esModule", {
  16766. value: true
  16767. });
  16768. exports.default = void 0;
  16769. exports.divide = divide;
  16770. exports.enableBoundaryChecking = enableBoundaryChecking;
  16771. exports.minus = minus;
  16772. exports.plus = plus;
  16773. exports.round = round;
  16774. exports.times = times;
  16775. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 84));
  16776. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  16777. /**
  16778. * 把错误的数据转正
  16779. * @private
  16780. * @example strip(0.09999999999999998)=0.1
  16781. */
  16782. function strip(num) {
  16783. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  16784. return +parseFloat(Number(num).toPrecision(precision));
  16785. }
  16786. /**
  16787. * Return digits length of a number
  16788. * @private
  16789. * @param {*number} num Input number
  16790. */
  16791. function digitLength(num) {
  16792. // Get digit length of e
  16793. var eSplit = num.toString().split(/[eE]/);
  16794. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  16795. return len > 0 ? len : 0;
  16796. }
  16797. /**
  16798. * 把小数转成整数,如果是小数则放大成整数
  16799. * @private
  16800. * @param {*number} num 输入数
  16801. */
  16802. function float2Fixed(num) {
  16803. if (num.toString().indexOf('e') === -1) {
  16804. return Number(num.toString().replace('.', ''));
  16805. }
  16806. var dLen = digitLength(num);
  16807. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  16808. }
  16809. /**
  16810. * 检测数字是否越界,如果越界给出提示
  16811. * @private
  16812. * @param {*number} num 输入数
  16813. */
  16814. function checkBoundary(num) {
  16815. if (_boundaryCheckingState) {
  16816. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  16817. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  16818. }
  16819. }
  16820. }
  16821. /**
  16822. * 把递归操作扁平迭代化
  16823. * @param {number[]} arr 要操作的数字数组
  16824. * @param {function} operation 迭代操作
  16825. * @private
  16826. */
  16827. function iteratorOperation(arr, operation) {
  16828. var _arr = (0, _toArray2.default)(arr),
  16829. num1 = _arr[0],
  16830. num2 = _arr[1],
  16831. others = _arr.slice(2);
  16832. var res = operation(num1, num2);
  16833. others.forEach(function (num) {
  16834. res = operation(res, num);
  16835. });
  16836. return res;
  16837. }
  16838. /**
  16839. * 高精度乘法
  16840. * @export
  16841. */
  16842. function times() {
  16843. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  16844. nums[_key] = arguments[_key];
  16845. }
  16846. if (nums.length > 2) {
  16847. return iteratorOperation(nums, times);
  16848. }
  16849. var num1 = nums[0],
  16850. num2 = nums[1];
  16851. var num1Changed = float2Fixed(num1);
  16852. var num2Changed = float2Fixed(num2);
  16853. var baseNum = digitLength(num1) + digitLength(num2);
  16854. var leftValue = num1Changed * num2Changed;
  16855. checkBoundary(leftValue);
  16856. return leftValue / Math.pow(10, baseNum);
  16857. }
  16858. /**
  16859. * 高精度加法
  16860. * @export
  16861. */
  16862. function plus() {
  16863. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  16864. nums[_key2] = arguments[_key2];
  16865. }
  16866. if (nums.length > 2) {
  16867. return iteratorOperation(nums, plus);
  16868. }
  16869. var num1 = nums[0],
  16870. num2 = nums[1];
  16871. // 取最大的小数位
  16872. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  16873. // 把小数都转为整数然后再计算
  16874. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  16875. }
  16876. /**
  16877. * 高精度减法
  16878. * @export
  16879. */
  16880. function minus() {
  16881. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  16882. nums[_key3] = arguments[_key3];
  16883. }
  16884. if (nums.length > 2) {
  16885. return iteratorOperation(nums, minus);
  16886. }
  16887. var num1 = nums[0],
  16888. num2 = nums[1];
  16889. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  16890. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  16891. }
  16892. /**
  16893. * 高精度除法
  16894. * @export
  16895. */
  16896. function divide() {
  16897. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  16898. nums[_key4] = arguments[_key4];
  16899. }
  16900. if (nums.length > 2) {
  16901. return iteratorOperation(nums, divide);
  16902. }
  16903. var num1 = nums[0],
  16904. num2 = nums[1];
  16905. var num1Changed = float2Fixed(num1);
  16906. var num2Changed = float2Fixed(num2);
  16907. checkBoundary(num1Changed);
  16908. checkBoundary(num2Changed);
  16909. // 重要,这里必须用strip进行修正
  16910. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  16911. }
  16912. /**
  16913. * 四舍五入
  16914. * @export
  16915. */
  16916. function round(num, ratio) {
  16917. var base = Math.pow(10, ratio);
  16918. var result = divide(Math.round(Math.abs(times(num, base))), base);
  16919. if (num < 0 && result !== 0) {
  16920. result = times(result, -1);
  16921. }
  16922. // 位数不足则补0
  16923. return result;
  16924. }
  16925. /**
  16926. * 是否进行边界检查,默认开启
  16927. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  16928. * @export
  16929. */
  16930. function enableBoundaryChecking() {
  16931. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  16932. _boundaryCheckingState = flag;
  16933. }
  16934. var _default = {
  16935. times: times,
  16936. plus: plus,
  16937. minus: minus,
  16938. divide: divide,
  16939. round: round,
  16940. enableBoundaryChecking: enableBoundaryChecking
  16941. };
  16942. exports.default = _default;
  16943. /***/ }),
  16944. /* 84 */
  16945. /*!********************************************************!*\
  16946. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  16947. \********************************************************/
  16948. /*! no static exports found */
  16949. /***/ (function(module, exports, __webpack_require__) {
  16950. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  16951. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  16952. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  16953. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  16954. function _toArray(arr) {
  16955. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  16956. }
  16957. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  16958. /***/ }),
  16959. /* 85 */
  16960. /*!***********************************************************************************!*\
  16961. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/config.js ***!
  16962. \***********************************************************************************/
  16963. /*! no static exports found */
  16964. /***/ (function(module, exports, __webpack_require__) {
  16965. "use strict";
  16966. Object.defineProperty(exports, "__esModule", {
  16967. value: true
  16968. });
  16969. exports.default = void 0;
  16970. // 此版本发布于2023-03-27
  16971. var version = '2.0.36';
  16972. // 开发环境才提示,生产环境不会提示
  16973. if (true) {
  16974. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  16975. }
  16976. var _default = {
  16977. v: version,
  16978. version: version,
  16979. // 主题名称
  16980. type: ['primary', 'success', 'info', 'error', 'warning'],
  16981. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  16982. color: {
  16983. 'u-primary': '#2979ff',
  16984. 'u-warning': '#ff9900',
  16985. 'u-success': '#19be6b',
  16986. 'u-error': '#fa3534',
  16987. 'u-info': '#909399',
  16988. 'u-main-color': '#303133',
  16989. 'u-content-color': '#606266',
  16990. 'u-tips-color': '#909399',
  16991. 'u-light-color': '#c0c4cc'
  16992. },
  16993. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  16994. unit: 'px'
  16995. };
  16996. exports.default = _default;
  16997. /***/ }),
  16998. /* 86 */
  16999. /*!**********************************************************************************!*\
  17000. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props.js ***!
  17001. \**********************************************************************************/
  17002. /*! no static exports found */
  17003. /***/ (function(module, exports, __webpack_require__) {
  17004. "use strict";
  17005. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17006. Object.defineProperty(exports, "__esModule", {
  17007. value: true
  17008. });
  17009. exports.default = void 0;
  17010. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  17011. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 85));
  17012. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 87));
  17013. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 88));
  17014. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 89));
  17015. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 90));
  17016. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 91));
  17017. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 92));
  17018. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 93));
  17019. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 94));
  17020. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 95));
  17021. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 96));
  17022. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 97));
  17023. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 98));
  17024. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 99));
  17025. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 100));
  17026. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 101));
  17027. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 102));
  17028. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 103));
  17029. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 104));
  17030. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 105));
  17031. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 106));
  17032. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 107));
  17033. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 108));
  17034. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 109));
  17035. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 110));
  17036. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 111));
  17037. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 112));
  17038. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 113));
  17039. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 114));
  17040. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 115));
  17041. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 116));
  17042. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 117));
  17043. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 118));
  17044. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 119));
  17045. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 120));
  17046. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 121));
  17047. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 122));
  17048. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 123));
  17049. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 124));
  17050. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 125));
  17051. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 126));
  17052. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 127));
  17053. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 128));
  17054. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 129));
  17055. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 130));
  17056. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 131));
  17057. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 132));
  17058. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 133));
  17059. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 135));
  17060. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 136));
  17061. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 137));
  17062. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 138));
  17063. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 139));
  17064. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 140));
  17065. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 141));
  17066. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 142));
  17067. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 143));
  17068. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 144));
  17069. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 145));
  17070. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 146));
  17071. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 147));
  17072. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 148));
  17073. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 149));
  17074. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 150));
  17075. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 151));
  17076. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 152));
  17077. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 153));
  17078. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 154));
  17079. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 155));
  17080. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 156));
  17081. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 157));
  17082. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 158));
  17083. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 159));
  17084. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 160));
  17085. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 161));
  17086. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 162));
  17087. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 163));
  17088. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 164));
  17089. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 165));
  17090. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 166));
  17091. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 167));
  17092. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 168));
  17093. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 169));
  17094. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 170));
  17095. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 171));
  17096. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 172));
  17097. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 173));
  17098. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 174));
  17099. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 175));
  17100. 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; }
  17101. 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; }
  17102. var color = _config.default.color;
  17103. var _default = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _actionSheet.default), _album.default), _alert.default), _avatar.default), _avatarGroup.default), _backtop.default), _badge.default), _button.default), _calendar.default), _carKeyboard.default), _cell.default), _cellGroup.default), _checkbox.default), _checkboxGroup.default), _circleProgress.default), _code.default), _codeInput.default), _col.default), _collapse.default), _collapseItem.default), _columnNotice.default), _countDown.default), _countTo.default), _datetimePicker.default), _divider.default), _empty.default), _form.default), _formItem.default), _gap.default), _grid.default), _gridItem.default), _icon.default), _image.default), _indexAnchor.default), _indexList.default), _input.default), _keyboard.default), _line.default), _lineProgress.default), _link.default), _list.default), _listItem.default), _loadingIcon.default), _loadingPage.default), _loadmore.default), _modal.default), _navbar.default), _noNetwork.default), _noticeBar.default), _notify.default), _numberBox.default), _numberKeyboard.default), _overlay.default), _parse.default), _picker.default), _popup.default), _radio.default), _radioGroup.default), _rate.default), _readMore.default), _row.default), _rowNotice.default), _scrollList.default), _search.default), _section.default), _skeleton.default), _slider.default), _statusBar.default), _steps.default), _stepsItem.default), _sticky.default), _subsection.default), _swipeAction.default), _swipeActionItem.default), _swiper.default), _swipterIndicator.default), _switch2.default), _tabbar.default), _tabbarItem.default), _tabs.default), _tag.default), _text.default), _textarea.default), _toast.default), _toolbar.default), _tooltip.default), _transition.default), _upload.default);
  17104. exports.default = _default;
  17105. /***/ }),
  17106. /* 87 */
  17107. /*!**********************************************************************************************!*\
  17108. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  17109. \**********************************************************************************************/
  17110. /*! no static exports found */
  17111. /***/ (function(module, exports, __webpack_require__) {
  17112. "use strict";
  17113. Object.defineProperty(exports, "__esModule", {
  17114. value: true
  17115. });
  17116. exports.default = void 0;
  17117. /*
  17118. * @Author : LQ
  17119. * @Description :
  17120. * @version : 1.0
  17121. * @Date : 2021-08-20 16:44:21
  17122. * @LastAuthor : LQ
  17123. * @lastTime : 2021-08-20 16:44:35
  17124. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  17125. */
  17126. var _default = {
  17127. // action-sheet组件
  17128. actionSheet: {
  17129. show: false,
  17130. title: '',
  17131. description: '',
  17132. actions: function actions() {
  17133. return [];
  17134. },
  17135. index: '',
  17136. cancelText: '',
  17137. closeOnClickAction: true,
  17138. safeAreaInsetBottom: true,
  17139. openType: '',
  17140. closeOnClickOverlay: true,
  17141. round: 0
  17142. }
  17143. };
  17144. exports.default = _default;
  17145. /***/ }),
  17146. /* 88 */
  17147. /*!****************************************************************************************!*\
  17148. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/album.js ***!
  17149. \****************************************************************************************/
  17150. /*! no static exports found */
  17151. /***/ (function(module, exports, __webpack_require__) {
  17152. "use strict";
  17153. Object.defineProperty(exports, "__esModule", {
  17154. value: true
  17155. });
  17156. exports.default = void 0;
  17157. /*
  17158. * @Author : LQ
  17159. * @Description :
  17160. * @version : 1.0
  17161. * @Date : 2021-08-20 16:44:21
  17162. * @LastAuthor : LQ
  17163. * @lastTime : 2021-08-20 16:47:24
  17164. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  17165. */
  17166. var _default = {
  17167. // album 组件
  17168. album: {
  17169. urls: function urls() {
  17170. return [];
  17171. },
  17172. keyName: '',
  17173. singleSize: 180,
  17174. multipleSize: 70,
  17175. space: 6,
  17176. singleMode: 'scaleToFill',
  17177. multipleMode: 'aspectFill',
  17178. maxCount: 9,
  17179. previewFullImage: true,
  17180. rowCount: 3,
  17181. showMore: true
  17182. }
  17183. };
  17184. exports.default = _default;
  17185. /***/ }),
  17186. /* 89 */
  17187. /*!****************************************************************************************!*\
  17188. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/alert.js ***!
  17189. \****************************************************************************************/
  17190. /*! no static exports found */
  17191. /***/ (function(module, exports, __webpack_require__) {
  17192. "use strict";
  17193. Object.defineProperty(exports, "__esModule", {
  17194. value: true
  17195. });
  17196. exports.default = void 0;
  17197. /*
  17198. * @Author : LQ
  17199. * @Description :
  17200. * @version : 1.0
  17201. * @Date : 2021-08-20 16:44:21
  17202. * @LastAuthor : LQ
  17203. * @lastTime : 2021-08-20 16:48:53
  17204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  17205. */
  17206. var _default = {
  17207. // alert警告组件
  17208. alert: {
  17209. title: '',
  17210. type: 'warning',
  17211. description: '',
  17212. closable: false,
  17213. showIcon: false,
  17214. effect: 'light',
  17215. center: false,
  17216. fontSize: 14
  17217. }
  17218. };
  17219. exports.default = _default;
  17220. /***/ }),
  17221. /* 90 */
  17222. /*!*****************************************************************************************!*\
  17223. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  17224. \*****************************************************************************************/
  17225. /*! no static exports found */
  17226. /***/ (function(module, exports, __webpack_require__) {
  17227. "use strict";
  17228. Object.defineProperty(exports, "__esModule", {
  17229. value: true
  17230. });
  17231. exports.default = void 0;
  17232. /*
  17233. * @Author : LQ
  17234. * @Description :
  17235. * @version : 1.0
  17236. * @Date : 2021-08-20 16:44:21
  17237. * @LastAuthor : LQ
  17238. * @lastTime : 2021-08-20 16:49:22
  17239. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  17240. */
  17241. var _default = {
  17242. // avatar 组件
  17243. avatar: {
  17244. src: '',
  17245. shape: 'circle',
  17246. size: 40,
  17247. mode: 'scaleToFill',
  17248. text: '',
  17249. bgColor: '#c0c4cc',
  17250. color: '#ffffff',
  17251. fontSize: 18,
  17252. icon: '',
  17253. mpAvatar: false,
  17254. randomBgColor: false,
  17255. defaultUrl: '',
  17256. colorIndex: '',
  17257. name: ''
  17258. }
  17259. };
  17260. exports.default = _default;
  17261. /***/ }),
  17262. /* 91 */
  17263. /*!**********************************************************************************************!*\
  17264. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  17265. \**********************************************************************************************/
  17266. /*! no static exports found */
  17267. /***/ (function(module, exports, __webpack_require__) {
  17268. "use strict";
  17269. Object.defineProperty(exports, "__esModule", {
  17270. value: true
  17271. });
  17272. exports.default = void 0;
  17273. /*
  17274. * @Author : LQ
  17275. * @Description :
  17276. * @version : 1.0
  17277. * @Date : 2021-08-20 16:44:21
  17278. * @LastAuthor : LQ
  17279. * @lastTime : 2021-08-20 16:49:55
  17280. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  17281. */
  17282. var _default = {
  17283. // avatarGroup 组件
  17284. avatarGroup: {
  17285. urls: function urls() {
  17286. return [];
  17287. },
  17288. maxCount: 5,
  17289. shape: 'circle',
  17290. mode: 'scaleToFill',
  17291. showMore: true,
  17292. size: 40,
  17293. keyName: '',
  17294. gap: 0.5,
  17295. extraValue: 0
  17296. }
  17297. };
  17298. exports.default = _default;
  17299. /***/ }),
  17300. /* 92 */
  17301. /*!******************************************************************************************!*\
  17302. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  17303. \******************************************************************************************/
  17304. /*! no static exports found */
  17305. /***/ (function(module, exports, __webpack_require__) {
  17306. "use strict";
  17307. Object.defineProperty(exports, "__esModule", {
  17308. value: true
  17309. });
  17310. exports.default = void 0;
  17311. /*
  17312. * @Author : LQ
  17313. * @Description :
  17314. * @version : 1.0
  17315. * @Date : 2021-08-20 16:44:21
  17316. * @LastAuthor : LQ
  17317. * @lastTime : 2021-08-20 16:50:18
  17318. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  17319. */
  17320. var _default = {
  17321. // backtop组件
  17322. backtop: {
  17323. mode: 'circle',
  17324. icon: 'arrow-upward',
  17325. text: '',
  17326. duration: 100,
  17327. scrollTop: 0,
  17328. top: 400,
  17329. bottom: 100,
  17330. right: 20,
  17331. zIndex: 9,
  17332. iconStyle: function iconStyle() {
  17333. return {
  17334. color: '#909399',
  17335. fontSize: '19px'
  17336. };
  17337. }
  17338. }
  17339. };
  17340. exports.default = _default;
  17341. /***/ }),
  17342. /* 93 */
  17343. /*!****************************************************************************************!*\
  17344. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/badge.js ***!
  17345. \****************************************************************************************/
  17346. /*! no static exports found */
  17347. /***/ (function(module, exports, __webpack_require__) {
  17348. "use strict";
  17349. Object.defineProperty(exports, "__esModule", {
  17350. value: true
  17351. });
  17352. exports.default = void 0;
  17353. /*
  17354. * @Author : LQ
  17355. * @Description :
  17356. * @version : 1.0
  17357. * @Date : 2021-08-20 16:44:21
  17358. * @LastAuthor : LQ
  17359. * @lastTime : 2021-08-23 19:51:50
  17360. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  17361. */
  17362. var _default = {
  17363. // 徽标数组件
  17364. badge: {
  17365. isDot: false,
  17366. value: '',
  17367. show: true,
  17368. max: 999,
  17369. type: 'error',
  17370. showZero: false,
  17371. bgColor: null,
  17372. color: null,
  17373. shape: 'circle',
  17374. numberType: 'overflow',
  17375. offset: function offset() {
  17376. return [];
  17377. },
  17378. inverted: false,
  17379. absolute: false
  17380. }
  17381. };
  17382. exports.default = _default;
  17383. /***/ }),
  17384. /* 94 */
  17385. /*!*****************************************************************************************!*\
  17386. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/button.js ***!
  17387. \*****************************************************************************************/
  17388. /*! no static exports found */
  17389. /***/ (function(module, exports, __webpack_require__) {
  17390. "use strict";
  17391. Object.defineProperty(exports, "__esModule", {
  17392. value: true
  17393. });
  17394. exports.default = void 0;
  17395. /*
  17396. * @Author : LQ
  17397. * @Description :
  17398. * @version : 1.0
  17399. * @Date : 2021-08-20 16:44:21
  17400. * @LastAuthor : LQ
  17401. * @lastTime : 2021-08-20 16:51:27
  17402. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  17403. */
  17404. var _default = {
  17405. // button组件
  17406. button: {
  17407. hairline: false,
  17408. type: 'info',
  17409. size: 'normal',
  17410. shape: 'square',
  17411. plain: false,
  17412. disabled: false,
  17413. loading: false,
  17414. loadingText: '',
  17415. loadingMode: 'spinner',
  17416. loadingSize: 15,
  17417. openType: '',
  17418. formType: '',
  17419. appParameter: '',
  17420. hoverStopPropagation: true,
  17421. lang: 'en',
  17422. sessionFrom: '',
  17423. sendMessageTitle: '',
  17424. sendMessagePath: '',
  17425. sendMessageImg: '',
  17426. showMessageCard: false,
  17427. dataName: '',
  17428. throttleTime: 0,
  17429. hoverStartTime: 0,
  17430. hoverStayTime: 200,
  17431. text: '',
  17432. icon: '',
  17433. iconColor: '',
  17434. color: ''
  17435. }
  17436. };
  17437. exports.default = _default;
  17438. /***/ }),
  17439. /* 95 */
  17440. /*!*******************************************************************************************!*\
  17441. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  17442. \*******************************************************************************************/
  17443. /*! no static exports found */
  17444. /***/ (function(module, exports, __webpack_require__) {
  17445. "use strict";
  17446. Object.defineProperty(exports, "__esModule", {
  17447. value: true
  17448. });
  17449. exports.default = void 0;
  17450. /*
  17451. * @Author : LQ
  17452. * @Description :
  17453. * @version : 1.0
  17454. * @Date : 2021-08-20 16:44:21
  17455. * @LastAuthor : LQ
  17456. * @lastTime : 2021-08-20 16:52:43
  17457. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  17458. */
  17459. var _default = {
  17460. // calendar 组件
  17461. calendar: {
  17462. title: '日期选择',
  17463. showTitle: true,
  17464. showSubtitle: true,
  17465. mode: 'single',
  17466. startText: '开始',
  17467. endText: '结束',
  17468. customList: function customList() {
  17469. return [];
  17470. },
  17471. color: '#3c9cff',
  17472. minDate: 0,
  17473. maxDate: 0,
  17474. defaultDate: null,
  17475. maxCount: Number.MAX_SAFE_INTEGER,
  17476. // Infinity
  17477. rowHeight: 56,
  17478. formatter: null,
  17479. showLunar: false,
  17480. showMark: true,
  17481. confirmText: '确定',
  17482. confirmDisabledText: '确定',
  17483. show: false,
  17484. closeOnClickOverlay: false,
  17485. readonly: false,
  17486. showConfirm: true,
  17487. maxRange: Number.MAX_SAFE_INTEGER,
  17488. // Infinity
  17489. rangePrompt: '',
  17490. showRangePrompt: true,
  17491. allowSameDay: false,
  17492. round: 0,
  17493. monthNum: 3
  17494. }
  17495. };
  17496. exports.default = _default;
  17497. /***/ }),
  17498. /* 96 */
  17499. /*!**********************************************************************************************!*\
  17500. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  17501. \**********************************************************************************************/
  17502. /*! no static exports found */
  17503. /***/ (function(module, exports, __webpack_require__) {
  17504. "use strict";
  17505. Object.defineProperty(exports, "__esModule", {
  17506. value: true
  17507. });
  17508. exports.default = void 0;
  17509. /*
  17510. * @Author : LQ
  17511. * @Description :
  17512. * @version : 1.0
  17513. * @Date : 2021-08-20 16:44:21
  17514. * @LastAuthor : LQ
  17515. * @lastTime : 2021-08-20 16:53:20
  17516. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  17517. */
  17518. var _default = {
  17519. // 车牌号键盘
  17520. carKeyboard: {
  17521. random: false
  17522. }
  17523. };
  17524. exports.default = _default;
  17525. /***/ }),
  17526. /* 97 */
  17527. /*!***************************************************************************************!*\
  17528. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/cell.js ***!
  17529. \***************************************************************************************/
  17530. /*! no static exports found */
  17531. /***/ (function(module, exports, __webpack_require__) {
  17532. "use strict";
  17533. Object.defineProperty(exports, "__esModule", {
  17534. value: true
  17535. });
  17536. exports.default = void 0;
  17537. /*
  17538. * @Author : LQ
  17539. * @Description :
  17540. * @version : 1.0
  17541. * @Date : 2021-08-20 16:44:21
  17542. * @LastAuthor : LQ
  17543. * @lastTime : 2021-08-23 20:53:09
  17544. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  17545. */
  17546. var _default = {
  17547. // cell组件的props
  17548. cell: {
  17549. customClass: '',
  17550. title: '',
  17551. label: '',
  17552. value: '',
  17553. icon: '',
  17554. disabled: false,
  17555. border: true,
  17556. center: false,
  17557. url: '',
  17558. linkType: 'navigateTo',
  17559. clickable: false,
  17560. isLink: false,
  17561. required: false,
  17562. arrowDirection: '',
  17563. iconStyle: {},
  17564. rightIconStyle: {},
  17565. rightIcon: 'arrow-right',
  17566. titleStyle: {},
  17567. size: '',
  17568. stop: true,
  17569. name: ''
  17570. }
  17571. };
  17572. exports.default = _default;
  17573. /***/ }),
  17574. /* 98 */
  17575. /*!********************************************************************************************!*\
  17576. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  17577. \********************************************************************************************/
  17578. /*! no static exports found */
  17579. /***/ (function(module, exports, __webpack_require__) {
  17580. "use strict";
  17581. Object.defineProperty(exports, "__esModule", {
  17582. value: true
  17583. });
  17584. exports.default = void 0;
  17585. /*
  17586. * @Author : LQ
  17587. * @Description :
  17588. * @version : 1.0
  17589. * @Date : 2021-08-20 16:44:21
  17590. * @LastAuthor : LQ
  17591. * @lastTime : 2021-08-20 16:54:16
  17592. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  17593. */
  17594. var _default = {
  17595. // cell-group组件的props
  17596. cellGroup: {
  17597. title: '',
  17598. border: true,
  17599. customStyle: {}
  17600. }
  17601. };
  17602. exports.default = _default;
  17603. /***/ }),
  17604. /* 99 */
  17605. /*!*******************************************************************************************!*\
  17606. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  17607. \*******************************************************************************************/
  17608. /*! no static exports found */
  17609. /***/ (function(module, exports, __webpack_require__) {
  17610. "use strict";
  17611. Object.defineProperty(exports, "__esModule", {
  17612. value: true
  17613. });
  17614. exports.default = void 0;
  17615. /*
  17616. * @Author : LQ
  17617. * @Description :
  17618. * @version : 1.0
  17619. * @Date : 2021-08-20 16:44:21
  17620. * @LastAuthor : LQ
  17621. * @lastTime : 2021-08-23 21:06:59
  17622. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  17623. */
  17624. var _default = {
  17625. // checkbox组件
  17626. checkbox: {
  17627. name: '',
  17628. shape: '',
  17629. size: '',
  17630. checkbox: false,
  17631. disabled: '',
  17632. activeColor: '',
  17633. inactiveColor: '',
  17634. iconSize: '',
  17635. iconColor: '',
  17636. label: '',
  17637. labelSize: '',
  17638. labelColor: '',
  17639. labelDisabled: ''
  17640. }
  17641. };
  17642. exports.default = _default;
  17643. /***/ }),
  17644. /* 100 */
  17645. /*!************************************************************************************************!*\
  17646. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  17647. \************************************************************************************************/
  17648. /*! no static exports found */
  17649. /***/ (function(module, exports, __webpack_require__) {
  17650. "use strict";
  17651. Object.defineProperty(exports, "__esModule", {
  17652. value: true
  17653. });
  17654. exports.default = void 0;
  17655. /*
  17656. * @Author : LQ
  17657. * @Description :
  17658. * @version : 1.0
  17659. * @Date : 2021-08-20 16:44:21
  17660. * @LastAuthor : LQ
  17661. * @lastTime : 2021-08-20 16:54:47
  17662. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  17663. */
  17664. var _default = {
  17665. // checkbox-group组件
  17666. checkboxGroup: {
  17667. name: '',
  17668. value: function value() {
  17669. return [];
  17670. },
  17671. shape: 'square',
  17672. disabled: false,
  17673. activeColor: '#2979ff',
  17674. inactiveColor: '#c8c9cc',
  17675. size: 18,
  17676. placement: 'row',
  17677. labelSize: 14,
  17678. labelColor: '#303133',
  17679. labelDisabled: false,
  17680. iconColor: '#ffffff',
  17681. iconSize: 12,
  17682. iconPlacement: 'left',
  17683. borderBottom: false
  17684. }
  17685. };
  17686. exports.default = _default;
  17687. /***/ }),
  17688. /* 101 */
  17689. /*!*************************************************************************************************!*\
  17690. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  17691. \*************************************************************************************************/
  17692. /*! no static exports found */
  17693. /***/ (function(module, exports, __webpack_require__) {
  17694. "use strict";
  17695. Object.defineProperty(exports, "__esModule", {
  17696. value: true
  17697. });
  17698. exports.default = void 0;
  17699. /*
  17700. * @Author : LQ
  17701. * @Description :
  17702. * @version : 1.0
  17703. * @Date : 2021-08-20 16:44:21
  17704. * @LastAuthor : LQ
  17705. * @lastTime : 2021-08-20 16:55:02
  17706. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  17707. */
  17708. var _default = {
  17709. // circleProgress 组件
  17710. circleProgress: {
  17711. percentage: 30
  17712. }
  17713. };
  17714. exports.default = _default;
  17715. /***/ }),
  17716. /* 102 */
  17717. /*!***************************************************************************************!*\
  17718. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/code.js ***!
  17719. \***************************************************************************************/
  17720. /*! no static exports found */
  17721. /***/ (function(module, exports, __webpack_require__) {
  17722. "use strict";
  17723. Object.defineProperty(exports, "__esModule", {
  17724. value: true
  17725. });
  17726. exports.default = void 0;
  17727. /*
  17728. * @Author : LQ
  17729. * @Description :
  17730. * @version : 1.0
  17731. * @Date : 2021-08-20 16:44:21
  17732. * @LastAuthor : LQ
  17733. * @lastTime : 2021-08-20 16:55:27
  17734. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  17735. */
  17736. var _default = {
  17737. // code 组件
  17738. code: {
  17739. seconds: 60,
  17740. startText: '获取验证码',
  17741. changeText: 'X秒重新获取',
  17742. endText: '重新获取',
  17743. keepRunning: false,
  17744. uniqueKey: ''
  17745. }
  17746. };
  17747. exports.default = _default;
  17748. /***/ }),
  17749. /* 103 */
  17750. /*!********************************************************************************************!*\
  17751. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  17752. \********************************************************************************************/
  17753. /*! no static exports found */
  17754. /***/ (function(module, exports, __webpack_require__) {
  17755. "use strict";
  17756. Object.defineProperty(exports, "__esModule", {
  17757. value: true
  17758. });
  17759. exports.default = void 0;
  17760. /*
  17761. * @Author : LQ
  17762. * @Description :
  17763. * @version : 1.0
  17764. * @Date : 2021-08-20 16:44:21
  17765. * @LastAuthor : LQ
  17766. * @lastTime : 2021-08-20 16:55:58
  17767. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  17768. */
  17769. var _default = {
  17770. // codeInput 组件
  17771. codeInput: {
  17772. adjustPosition: true,
  17773. maxlength: 6,
  17774. dot: false,
  17775. mode: 'box',
  17776. hairline: false,
  17777. space: 10,
  17778. value: '',
  17779. focus: false,
  17780. bold: false,
  17781. color: '#606266',
  17782. fontSize: 18,
  17783. size: 35,
  17784. disabledKeyboard: false,
  17785. borderColor: '#c9cacc',
  17786. disabledDot: true
  17787. }
  17788. };
  17789. exports.default = _default;
  17790. /***/ }),
  17791. /* 104 */
  17792. /*!**************************************************************************************!*\
  17793. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/col.js ***!
  17794. \**************************************************************************************/
  17795. /*! no static exports found */
  17796. /***/ (function(module, exports, __webpack_require__) {
  17797. "use strict";
  17798. Object.defineProperty(exports, "__esModule", {
  17799. value: true
  17800. });
  17801. exports.default = void 0;
  17802. /*
  17803. * @Author : LQ
  17804. * @Description :
  17805. * @version : 1.0
  17806. * @Date : 2021-08-20 16:44:21
  17807. * @LastAuthor : LQ
  17808. * @lastTime : 2021-08-20 16:56:12
  17809. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  17810. */
  17811. var _default = {
  17812. // col 组件
  17813. col: {
  17814. span: 12,
  17815. offset: 0,
  17816. justify: 'start',
  17817. align: 'stretch',
  17818. textAlign: 'left'
  17819. }
  17820. };
  17821. exports.default = _default;
  17822. /***/ }),
  17823. /* 105 */
  17824. /*!*******************************************************************************************!*\
  17825. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  17826. \*******************************************************************************************/
  17827. /*! no static exports found */
  17828. /***/ (function(module, exports, __webpack_require__) {
  17829. "use strict";
  17830. Object.defineProperty(exports, "__esModule", {
  17831. value: true
  17832. });
  17833. exports.default = void 0;
  17834. /*
  17835. * @Author : LQ
  17836. * @Description :
  17837. * @version : 1.0
  17838. * @Date : 2021-08-20 16:44:21
  17839. * @LastAuthor : LQ
  17840. * @lastTime : 2021-08-20 16:56:30
  17841. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  17842. */
  17843. var _default = {
  17844. // collapse 组件
  17845. collapse: {
  17846. value: null,
  17847. accordion: false,
  17848. border: true
  17849. }
  17850. };
  17851. exports.default = _default;
  17852. /***/ }),
  17853. /* 106 */
  17854. /*!***********************************************************************************************!*\
  17855. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  17856. \***********************************************************************************************/
  17857. /*! no static exports found */
  17858. /***/ (function(module, exports, __webpack_require__) {
  17859. "use strict";
  17860. Object.defineProperty(exports, "__esModule", {
  17861. value: true
  17862. });
  17863. exports.default = void 0;
  17864. /*
  17865. * @Author : LQ
  17866. * @Description :
  17867. * @version : 1.0
  17868. * @Date : 2021-08-20 16:44:21
  17869. * @LastAuthor : LQ
  17870. * @lastTime : 2021-08-20 16:56:42
  17871. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  17872. */
  17873. var _default = {
  17874. // collapseItem 组件
  17875. collapseItem: {
  17876. title: '',
  17877. value: '',
  17878. label: '',
  17879. disabled: false,
  17880. isLink: true,
  17881. clickable: true,
  17882. border: true,
  17883. align: 'left',
  17884. name: '',
  17885. icon: '',
  17886. duration: 300
  17887. }
  17888. };
  17889. exports.default = _default;
  17890. /***/ }),
  17891. /* 107 */
  17892. /*!***********************************************************************************************!*\
  17893. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  17894. \***********************************************************************************************/
  17895. /*! no static exports found */
  17896. /***/ (function(module, exports, __webpack_require__) {
  17897. "use strict";
  17898. Object.defineProperty(exports, "__esModule", {
  17899. value: true
  17900. });
  17901. exports.default = void 0;
  17902. /*
  17903. * @Author : LQ
  17904. * @Description :
  17905. * @version : 1.0
  17906. * @Date : 2021-08-20 16:44:21
  17907. * @LastAuthor : LQ
  17908. * @lastTime : 2021-08-20 16:57:16
  17909. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  17910. */
  17911. var _default = {
  17912. // columnNotice 组件
  17913. columnNotice: {
  17914. text: '',
  17915. icon: 'volume',
  17916. mode: '',
  17917. color: '#f9ae3d',
  17918. bgColor: '#fdf6ec',
  17919. fontSize: 14,
  17920. speed: 80,
  17921. step: false,
  17922. duration: 1500,
  17923. disableTouch: true
  17924. }
  17925. };
  17926. exports.default = _default;
  17927. /***/ }),
  17928. /* 108 */
  17929. /*!********************************************************************************************!*\
  17930. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  17931. \********************************************************************************************/
  17932. /*! no static exports found */
  17933. /***/ (function(module, exports, __webpack_require__) {
  17934. "use strict";
  17935. Object.defineProperty(exports, "__esModule", {
  17936. value: true
  17937. });
  17938. exports.default = void 0;
  17939. /*
  17940. * @Author : LQ
  17941. * @Description :
  17942. * @version : 1.0
  17943. * @Date : 2021-08-20 16:44:21
  17944. * @LastAuthor : LQ
  17945. * @lastTime : 2021-08-20 17:11:29
  17946. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  17947. */
  17948. var _default = {
  17949. // u-count-down 计时器组件
  17950. countDown: {
  17951. time: 0,
  17952. format: 'HH:mm:ss',
  17953. autoStart: true,
  17954. millisecond: false
  17955. }
  17956. };
  17957. exports.default = _default;
  17958. /***/ }),
  17959. /* 109 */
  17960. /*!******************************************************************************************!*\
  17961. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  17962. \******************************************************************************************/
  17963. /*! no static exports found */
  17964. /***/ (function(module, exports, __webpack_require__) {
  17965. "use strict";
  17966. Object.defineProperty(exports, "__esModule", {
  17967. value: true
  17968. });
  17969. exports.default = void 0;
  17970. /*
  17971. * @Author : LQ
  17972. * @Description :
  17973. * @version : 1.0
  17974. * @Date : 2021-08-20 16:44:21
  17975. * @LastAuthor : LQ
  17976. * @lastTime : 2021-08-20 16:57:32
  17977. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  17978. */
  17979. var _default = {
  17980. // countTo 组件
  17981. countTo: {
  17982. startVal: 0,
  17983. endVal: 0,
  17984. duration: 2000,
  17985. autoplay: true,
  17986. decimals: 0,
  17987. useEasing: true,
  17988. decimal: '.',
  17989. color: '#606266',
  17990. fontSize: 22,
  17991. bold: false,
  17992. separator: ''
  17993. }
  17994. };
  17995. exports.default = _default;
  17996. /***/ }),
  17997. /* 110 */
  17998. /*!*************************************************************************************************!*\
  17999. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  18000. \*************************************************************************************************/
  18001. /*! no static exports found */
  18002. /***/ (function(module, exports, __webpack_require__) {
  18003. "use strict";
  18004. Object.defineProperty(exports, "__esModule", {
  18005. value: true
  18006. });
  18007. exports.default = void 0;
  18008. /*
  18009. * @Author : LQ
  18010. * @Description :
  18011. * @version : 1.0
  18012. * @Date : 2021-08-20 16:44:21
  18013. * @LastAuthor : LQ
  18014. * @lastTime : 2021-08-20 16:57:48
  18015. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  18016. */
  18017. var _default = {
  18018. // datetimePicker 组件
  18019. datetimePicker: {
  18020. show: false,
  18021. showToolbar: true,
  18022. value: '',
  18023. title: '',
  18024. mode: 'datetime',
  18025. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  18026. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  18027. minHour: 0,
  18028. maxHour: 23,
  18029. minMinute: 0,
  18030. maxMinute: 59,
  18031. filter: null,
  18032. formatter: null,
  18033. loading: false,
  18034. itemHeight: 44,
  18035. cancelText: '取消',
  18036. confirmText: '确认',
  18037. cancelColor: '#909193',
  18038. confirmColor: '#3c9cff',
  18039. visibleItemCount: 5,
  18040. closeOnClickOverlay: false,
  18041. defaultIndex: function defaultIndex() {
  18042. return [];
  18043. }
  18044. }
  18045. };
  18046. exports.default = _default;
  18047. /***/ }),
  18048. /* 111 */
  18049. /*!******************************************************************************************!*\
  18050. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/divider.js ***!
  18051. \******************************************************************************************/
  18052. /*! no static exports found */
  18053. /***/ (function(module, exports, __webpack_require__) {
  18054. "use strict";
  18055. Object.defineProperty(exports, "__esModule", {
  18056. value: true
  18057. });
  18058. exports.default = void 0;
  18059. /*
  18060. * @Author : LQ
  18061. * @Description :
  18062. * @version : 1.0
  18063. * @Date : 2021-08-20 16:44:21
  18064. * @LastAuthor : LQ
  18065. * @lastTime : 2021-08-20 16:58:03
  18066. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  18067. */
  18068. var _default = {
  18069. // divider组件
  18070. divider: {
  18071. dashed: false,
  18072. hairline: true,
  18073. dot: false,
  18074. textPosition: 'center',
  18075. text: '',
  18076. textSize: 14,
  18077. textColor: '#909399',
  18078. lineColor: '#dcdfe6'
  18079. }
  18080. };
  18081. exports.default = _default;
  18082. /***/ }),
  18083. /* 112 */
  18084. /*!****************************************************************************************!*\
  18085. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/empty.js ***!
  18086. \****************************************************************************************/
  18087. /*! no static exports found */
  18088. /***/ (function(module, exports, __webpack_require__) {
  18089. "use strict";
  18090. Object.defineProperty(exports, "__esModule", {
  18091. value: true
  18092. });
  18093. exports.default = void 0;
  18094. /*
  18095. * @Author : LQ
  18096. * @Description :
  18097. * @version : 1.0
  18098. * @Date : 2021-08-20 16:44:21
  18099. * @LastAuthor : LQ
  18100. * @lastTime : 2021-08-20 17:03:27
  18101. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  18102. */
  18103. var _default = {
  18104. // empty组件
  18105. empty: {
  18106. icon: '',
  18107. text: '',
  18108. textColor: '#c0c4cc',
  18109. textSize: 14,
  18110. iconColor: '#c0c4cc',
  18111. iconSize: 90,
  18112. mode: 'data',
  18113. width: 160,
  18114. height: 160,
  18115. show: true,
  18116. marginTop: 0
  18117. }
  18118. };
  18119. exports.default = _default;
  18120. /***/ }),
  18121. /* 113 */
  18122. /*!***************************************************************************************!*\
  18123. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/form.js ***!
  18124. \***************************************************************************************/
  18125. /*! no static exports found */
  18126. /***/ (function(module, exports, __webpack_require__) {
  18127. "use strict";
  18128. Object.defineProperty(exports, "__esModule", {
  18129. value: true
  18130. });
  18131. exports.default = void 0;
  18132. /*
  18133. * @Author : LQ
  18134. * @Description :
  18135. * @version : 1.0
  18136. * @Date : 2021-08-20 16:44:21
  18137. * @LastAuthor : LQ
  18138. * @lastTime : 2021-08-20 17:03:49
  18139. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  18140. */
  18141. var _default = {
  18142. // form 组件
  18143. form: {
  18144. model: function model() {
  18145. return {};
  18146. },
  18147. rules: function rules() {
  18148. return {};
  18149. },
  18150. errorType: 'message',
  18151. borderBottom: true,
  18152. labelPosition: 'left',
  18153. labelWidth: 45,
  18154. labelAlign: 'left',
  18155. labelStyle: function labelStyle() {
  18156. return {};
  18157. }
  18158. }
  18159. };
  18160. exports.default = _default;
  18161. /***/ }),
  18162. /* 114 */
  18163. /*!*******************************************************************************************!*\
  18164. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  18165. \*******************************************************************************************/
  18166. /*! no static exports found */
  18167. /***/ (function(module, exports, __webpack_require__) {
  18168. "use strict";
  18169. Object.defineProperty(exports, "__esModule", {
  18170. value: true
  18171. });
  18172. exports.default = void 0;
  18173. /*
  18174. * @Author : LQ
  18175. * @Description :
  18176. * @version : 1.0
  18177. * @Date : 2021-08-20 16:44:21
  18178. * @LastAuthor : LQ
  18179. * @lastTime : 2021-08-20 17:04:32
  18180. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  18181. */
  18182. var _default = {
  18183. // formItem 组件
  18184. formItem: {
  18185. label: '',
  18186. prop: '',
  18187. borderBottom: '',
  18188. labelPosition: '',
  18189. labelWidth: '',
  18190. rightIcon: '',
  18191. leftIcon: '',
  18192. required: false,
  18193. leftIconStyle: ''
  18194. }
  18195. };
  18196. exports.default = _default;
  18197. /***/ }),
  18198. /* 115 */
  18199. /*!**************************************************************************************!*\
  18200. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/gap.js ***!
  18201. \**************************************************************************************/
  18202. /*! no static exports found */
  18203. /***/ (function(module, exports, __webpack_require__) {
  18204. "use strict";
  18205. Object.defineProperty(exports, "__esModule", {
  18206. value: true
  18207. });
  18208. exports.default = void 0;
  18209. /*
  18210. * @Author : LQ
  18211. * @Description :
  18212. * @version : 1.0
  18213. * @Date : 2021-08-20 16:44:21
  18214. * @LastAuthor : LQ
  18215. * @lastTime : 2021-08-20 17:05:25
  18216. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  18217. */
  18218. var _default = {
  18219. // gap组件
  18220. gap: {
  18221. bgColor: 'transparent',
  18222. height: 20,
  18223. marginTop: 0,
  18224. marginBottom: 0,
  18225. customStyle: {}
  18226. }
  18227. };
  18228. exports.default = _default;
  18229. /***/ }),
  18230. /* 116 */
  18231. /*!***************************************************************************************!*\
  18232. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/grid.js ***!
  18233. \***************************************************************************************/
  18234. /*! no static exports found */
  18235. /***/ (function(module, exports, __webpack_require__) {
  18236. "use strict";
  18237. Object.defineProperty(exports, "__esModule", {
  18238. value: true
  18239. });
  18240. exports.default = void 0;
  18241. /*
  18242. * @Author : LQ
  18243. * @Description :
  18244. * @version : 1.0
  18245. * @Date : 2021-08-20 16:44:21
  18246. * @LastAuthor : LQ
  18247. * @lastTime : 2021-08-20 17:05:57
  18248. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  18249. */
  18250. var _default = {
  18251. // grid组件
  18252. grid: {
  18253. col: 3,
  18254. border: false,
  18255. align: 'left'
  18256. }
  18257. };
  18258. exports.default = _default;
  18259. /***/ }),
  18260. /* 117 */
  18261. /*!*******************************************************************************************!*\
  18262. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  18263. \*******************************************************************************************/
  18264. /*! no static exports found */
  18265. /***/ (function(module, exports, __webpack_require__) {
  18266. "use strict";
  18267. Object.defineProperty(exports, "__esModule", {
  18268. value: true
  18269. });
  18270. exports.default = void 0;
  18271. /*
  18272. * @Author : LQ
  18273. * @Description :
  18274. * @version : 1.0
  18275. * @Date : 2021-08-20 16:44:21
  18276. * @LastAuthor : LQ
  18277. * @lastTime : 2021-08-20 17:06:13
  18278. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  18279. */
  18280. var _default = {
  18281. // grid-item组件
  18282. gridItem: {
  18283. name: null,
  18284. bgColor: 'transparent'
  18285. }
  18286. };
  18287. exports.default = _default;
  18288. /***/ }),
  18289. /* 118 */
  18290. /*!***************************************************************************************!*\
  18291. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/icon.js ***!
  18292. \***************************************************************************************/
  18293. /*! no static exports found */
  18294. /***/ (function(module, exports, __webpack_require__) {
  18295. "use strict";
  18296. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18297. Object.defineProperty(exports, "__esModule", {
  18298. value: true
  18299. });
  18300. exports.default = void 0;
  18301. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 85));
  18302. /*
  18303. * @Author : LQ
  18304. * @Description :
  18305. * @version : 1.0
  18306. * @Date : 2021-08-20 16:44:21
  18307. * @LastAuthor : LQ
  18308. * @lastTime : 2021-08-20 18:00:14
  18309. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  18310. */
  18311. var color = _config.default.color;
  18312. var _default = {
  18313. // icon组件
  18314. icon: {
  18315. name: '',
  18316. color: color['u-content-color'],
  18317. size: '16px',
  18318. bold: false,
  18319. index: '',
  18320. hoverClass: '',
  18321. customPrefix: 'uicon',
  18322. label: '',
  18323. labelPos: 'right',
  18324. labelSize: '15px',
  18325. labelColor: color['u-content-color'],
  18326. space: '3px',
  18327. imgMode: '',
  18328. width: '',
  18329. height: '',
  18330. top: 0,
  18331. stop: false
  18332. }
  18333. };
  18334. exports.default = _default;
  18335. /***/ }),
  18336. /* 119 */
  18337. /*!****************************************************************************************!*\
  18338. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/image.js ***!
  18339. \****************************************************************************************/
  18340. /*! no static exports found */
  18341. /***/ (function(module, exports, __webpack_require__) {
  18342. "use strict";
  18343. Object.defineProperty(exports, "__esModule", {
  18344. value: true
  18345. });
  18346. exports.default = void 0;
  18347. /*
  18348. * @Author : LQ
  18349. * @Description :
  18350. * @version : 1.0
  18351. * @Date : 2021-08-20 16:44:21
  18352. * @LastAuthor : LQ
  18353. * @lastTime : 2021-08-20 17:01:51
  18354. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  18355. */
  18356. var _default = {
  18357. // image组件
  18358. image: {
  18359. src: '',
  18360. mode: 'aspectFill',
  18361. width: '300',
  18362. height: '225',
  18363. shape: 'square',
  18364. radius: 0,
  18365. lazyLoad: true,
  18366. showMenuByLongpress: true,
  18367. loadingIcon: 'photo',
  18368. errorIcon: 'error-circle',
  18369. showLoading: true,
  18370. showError: true,
  18371. fade: true,
  18372. webp: false,
  18373. duration: 500,
  18374. bgColor: '#f3f4f6'
  18375. }
  18376. };
  18377. exports.default = _default;
  18378. /***/ }),
  18379. /* 120 */
  18380. /*!**********************************************************************************************!*\
  18381. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  18382. \**********************************************************************************************/
  18383. /*! no static exports found */
  18384. /***/ (function(module, exports, __webpack_require__) {
  18385. "use strict";
  18386. Object.defineProperty(exports, "__esModule", {
  18387. value: true
  18388. });
  18389. exports.default = void 0;
  18390. /*
  18391. * @Author : LQ
  18392. * @Description :
  18393. * @version : 1.0
  18394. * @Date : 2021-08-20 16:44:21
  18395. * @LastAuthor : LQ
  18396. * @lastTime : 2021-08-20 17:13:15
  18397. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  18398. */
  18399. var _default = {
  18400. // indexAnchor 组件
  18401. indexAnchor: {
  18402. text: '',
  18403. color: '#606266',
  18404. size: 14,
  18405. bgColor: '#dedede',
  18406. height: 32
  18407. }
  18408. };
  18409. exports.default = _default;
  18410. /***/ }),
  18411. /* 121 */
  18412. /*!********************************************************************************************!*\
  18413. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  18414. \********************************************************************************************/
  18415. /*! no static exports found */
  18416. /***/ (function(module, exports, __webpack_require__) {
  18417. "use strict";
  18418. Object.defineProperty(exports, "__esModule", {
  18419. value: true
  18420. });
  18421. exports.default = void 0;
  18422. /*
  18423. * @Author : LQ
  18424. * @Description :
  18425. * @version : 1.0
  18426. * @Date : 2021-08-20 16:44:21
  18427. * @LastAuthor : LQ
  18428. * @lastTime : 2021-08-20 17:13:35
  18429. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  18430. */
  18431. var _default = {
  18432. // indexList 组件
  18433. indexList: {
  18434. inactiveColor: '#606266',
  18435. activeColor: '#5677fc',
  18436. indexList: function indexList() {
  18437. return [];
  18438. },
  18439. sticky: true,
  18440. customNavHeight: 0
  18441. }
  18442. };
  18443. exports.default = _default;
  18444. /***/ }),
  18445. /* 122 */
  18446. /*!****************************************************************************************!*\
  18447. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/input.js ***!
  18448. \****************************************************************************************/
  18449. /*! no static exports found */
  18450. /***/ (function(module, exports, __webpack_require__) {
  18451. "use strict";
  18452. Object.defineProperty(exports, "__esModule", {
  18453. value: true
  18454. });
  18455. exports.default = void 0;
  18456. /*
  18457. * @Author : LQ
  18458. * @Description :
  18459. * @version : 1.0
  18460. * @Date : 2021-08-20 16:44:21
  18461. * @LastAuthor : LQ
  18462. * @lastTime : 2021-08-20 17:13:55
  18463. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  18464. */
  18465. var _default = {
  18466. // index 组件
  18467. input: {
  18468. value: '',
  18469. type: 'text',
  18470. fixed: false,
  18471. disabled: false,
  18472. disabledColor: '#f5f7fa',
  18473. clearable: false,
  18474. password: false,
  18475. maxlength: -1,
  18476. placeholder: null,
  18477. placeholderClass: 'input-placeholder',
  18478. placeholderStyle: 'color: #c0c4cc',
  18479. showWordLimit: false,
  18480. confirmType: 'done',
  18481. confirmHold: false,
  18482. holdKeyboard: false,
  18483. focus: false,
  18484. autoBlur: false,
  18485. disableDefaultPadding: false,
  18486. cursor: -1,
  18487. cursorSpacing: 30,
  18488. selectionStart: -1,
  18489. selectionEnd: -1,
  18490. adjustPosition: true,
  18491. inputAlign: 'left',
  18492. fontSize: '15px',
  18493. color: '#303133',
  18494. prefixIcon: '',
  18495. prefixIconStyle: '',
  18496. suffixIcon: '',
  18497. suffixIconStyle: '',
  18498. border: 'surround',
  18499. readonly: false,
  18500. shape: 'square',
  18501. formatter: null
  18502. }
  18503. };
  18504. exports.default = _default;
  18505. /***/ }),
  18506. /* 123 */
  18507. /*!*******************************************************************************************!*\
  18508. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  18509. \*******************************************************************************************/
  18510. /*! no static exports found */
  18511. /***/ (function(module, exports, __webpack_require__) {
  18512. "use strict";
  18513. Object.defineProperty(exports, "__esModule", {
  18514. value: true
  18515. });
  18516. exports.default = void 0;
  18517. /*
  18518. * @Author : LQ
  18519. * @Description :
  18520. * @version : 1.0
  18521. * @Date : 2021-08-20 16:44:21
  18522. * @LastAuthor : LQ
  18523. * @lastTime : 2021-08-20 17:07:49
  18524. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  18525. */
  18526. var _default = {
  18527. // 键盘组件
  18528. keyboard: {
  18529. mode: 'number',
  18530. dotDisabled: false,
  18531. tooltip: true,
  18532. showTips: true,
  18533. tips: '',
  18534. showCancel: true,
  18535. showConfirm: true,
  18536. random: false,
  18537. safeAreaInsetBottom: true,
  18538. closeOnClickOverlay: true,
  18539. show: false,
  18540. overlay: true,
  18541. zIndex: 10075,
  18542. cancelText: '取消',
  18543. confirmText: '确定',
  18544. autoChange: false
  18545. }
  18546. };
  18547. exports.default = _default;
  18548. /***/ }),
  18549. /* 124 */
  18550. /*!***************************************************************************************!*\
  18551. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/line.js ***!
  18552. \***************************************************************************************/
  18553. /*! no static exports found */
  18554. /***/ (function(module, exports, __webpack_require__) {
  18555. "use strict";
  18556. Object.defineProperty(exports, "__esModule", {
  18557. value: true
  18558. });
  18559. exports.default = void 0;
  18560. /*
  18561. * @Author : LQ
  18562. * @Description :
  18563. * @version : 1.0
  18564. * @Date : 2021-08-20 16:44:21
  18565. * @LastAuthor : LQ
  18566. * @lastTime : 2021-08-20 17:04:49
  18567. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  18568. */
  18569. var _default = {
  18570. // line组件
  18571. line: {
  18572. color: '#d6d7d9',
  18573. length: '100%',
  18574. direction: 'row',
  18575. hairline: true,
  18576. margin: 0,
  18577. dashed: false
  18578. }
  18579. };
  18580. exports.default = _default;
  18581. /***/ }),
  18582. /* 125 */
  18583. /*!***********************************************************************************************!*\
  18584. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  18585. \***********************************************************************************************/
  18586. /*! no static exports found */
  18587. /***/ (function(module, exports, __webpack_require__) {
  18588. "use strict";
  18589. Object.defineProperty(exports, "__esModule", {
  18590. value: true
  18591. });
  18592. exports.default = void 0;
  18593. /*
  18594. * @Author : LQ
  18595. * @Description :
  18596. * @version : 1.0
  18597. * @Date : 2021-08-20 16:44:21
  18598. * @LastAuthor : LQ
  18599. * @lastTime : 2021-08-20 17:14:11
  18600. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  18601. */
  18602. var _default = {
  18603. // lineProgress 组件
  18604. lineProgress: {
  18605. activeColor: '#19be6b',
  18606. inactiveColor: '#ececec',
  18607. percentage: 0,
  18608. showText: true,
  18609. height: 12
  18610. }
  18611. };
  18612. exports.default = _default;
  18613. /***/ }),
  18614. /* 126 */
  18615. /*!***************************************************************************************!*\
  18616. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/link.js ***!
  18617. \***************************************************************************************/
  18618. /*! no static exports found */
  18619. /***/ (function(module, exports, __webpack_require__) {
  18620. "use strict";
  18621. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18622. Object.defineProperty(exports, "__esModule", {
  18623. value: true
  18624. });
  18625. exports.default = void 0;
  18626. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 85));
  18627. /*
  18628. * @Author : LQ
  18629. * @Description :
  18630. * @version : 1.0
  18631. * @Date : 2021-08-20 16:44:21
  18632. * @LastAuthor : LQ
  18633. * @lastTime : 2021-08-20 17:45:36
  18634. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  18635. */
  18636. var color = _config.default.color;
  18637. var _default = {
  18638. // link超链接组件props参数
  18639. link: {
  18640. color: color['u-primary'],
  18641. fontSize: 15,
  18642. underLine: false,
  18643. href: '',
  18644. mpTips: '链接已复制,请在浏览器打开',
  18645. lineColor: '',
  18646. text: ''
  18647. }
  18648. };
  18649. exports.default = _default;
  18650. /***/ }),
  18651. /* 127 */
  18652. /*!***************************************************************************************!*\
  18653. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/list.js ***!
  18654. \***************************************************************************************/
  18655. /*! no static exports found */
  18656. /***/ (function(module, exports, __webpack_require__) {
  18657. "use strict";
  18658. Object.defineProperty(exports, "__esModule", {
  18659. value: true
  18660. });
  18661. exports.default = void 0;
  18662. /*
  18663. * @Author : LQ
  18664. * @Description :
  18665. * @version : 1.0
  18666. * @Date : 2021-08-20 16:44:21
  18667. * @LastAuthor : LQ
  18668. * @lastTime : 2021-08-20 17:14:53
  18669. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  18670. */
  18671. var _default = {
  18672. // list 组件
  18673. list: {
  18674. showScrollbar: false,
  18675. lowerThreshold: 50,
  18676. upperThreshold: 0,
  18677. scrollTop: 0,
  18678. offsetAccuracy: 10,
  18679. enableFlex: false,
  18680. pagingEnabled: false,
  18681. scrollable: true,
  18682. scrollIntoView: '',
  18683. scrollWithAnimation: false,
  18684. enableBackToTop: false,
  18685. height: 0,
  18686. width: 0,
  18687. preLoadScreen: 1
  18688. }
  18689. };
  18690. exports.default = _default;
  18691. /***/ }),
  18692. /* 128 */
  18693. /*!*******************************************************************************************!*\
  18694. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  18695. \*******************************************************************************************/
  18696. /*! no static exports found */
  18697. /***/ (function(module, exports, __webpack_require__) {
  18698. "use strict";
  18699. Object.defineProperty(exports, "__esModule", {
  18700. value: true
  18701. });
  18702. exports.default = void 0;
  18703. /*
  18704. * @Author : LQ
  18705. * @Description :
  18706. * @version : 1.0
  18707. * @Date : 2021-08-20 16:44:21
  18708. * @LastAuthor : LQ
  18709. * @lastTime : 2021-08-20 17:15:40
  18710. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  18711. */
  18712. var _default = {
  18713. // listItem 组件
  18714. listItem: {
  18715. anchor: ''
  18716. }
  18717. };
  18718. exports.default = _default;
  18719. /***/ }),
  18720. /* 129 */
  18721. /*!**********************************************************************************************!*\
  18722. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  18723. \**********************************************************************************************/
  18724. /*! no static exports found */
  18725. /***/ (function(module, exports, __webpack_require__) {
  18726. "use strict";
  18727. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18728. Object.defineProperty(exports, "__esModule", {
  18729. value: true
  18730. });
  18731. exports.default = void 0;
  18732. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 85));
  18733. /*
  18734. * @Author : LQ
  18735. * @Description :
  18736. * @version : 1.0
  18737. * @Date : 2021-08-20 16:44:21
  18738. * @LastAuthor : LQ
  18739. * @lastTime : 2021-08-20 17:45:47
  18740. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  18741. */
  18742. var color = _config.default.color;
  18743. var _default = {
  18744. // loading-icon加载中图标组件
  18745. loadingIcon: {
  18746. show: true,
  18747. color: color['u-tips-color'],
  18748. textColor: color['u-tips-color'],
  18749. vertical: false,
  18750. mode: 'spinner',
  18751. size: 24,
  18752. textSize: 15,
  18753. text: '',
  18754. timingFunction: 'ease-in-out',
  18755. duration: 1200,
  18756. inactiveColor: ''
  18757. }
  18758. };
  18759. exports.default = _default;
  18760. /***/ }),
  18761. /* 130 */
  18762. /*!**********************************************************************************************!*\
  18763. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  18764. \**********************************************************************************************/
  18765. /*! no static exports found */
  18766. /***/ (function(module, exports, __webpack_require__) {
  18767. "use strict";
  18768. Object.defineProperty(exports, "__esModule", {
  18769. value: true
  18770. });
  18771. exports.default = void 0;
  18772. /*
  18773. * @Author : LQ
  18774. * @Description :
  18775. * @version : 1.0
  18776. * @Date : 2021-08-20 16:44:21
  18777. * @LastAuthor : LQ
  18778. * @lastTime : 2021-08-20 17:00:23
  18779. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  18780. */
  18781. var _default = {
  18782. // loading-page组件
  18783. loadingPage: {
  18784. loadingText: '正在加载',
  18785. image: '',
  18786. loadingMode: 'circle',
  18787. loading: false,
  18788. bgColor: '#ffffff',
  18789. color: '#C8C8C8',
  18790. fontSize: 19,
  18791. iconSize: 28,
  18792. loadingColor: '#C8C8C8'
  18793. }
  18794. };
  18795. exports.default = _default;
  18796. /***/ }),
  18797. /* 131 */
  18798. /*!*******************************************************************************************!*\
  18799. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  18800. \*******************************************************************************************/
  18801. /*! no static exports found */
  18802. /***/ (function(module, exports, __webpack_require__) {
  18803. "use strict";
  18804. Object.defineProperty(exports, "__esModule", {
  18805. value: true
  18806. });
  18807. exports.default = void 0;
  18808. /*
  18809. * @Author : LQ
  18810. * @Description :
  18811. * @version : 1.0
  18812. * @Date : 2021-08-20 16:44:21
  18813. * @LastAuthor : LQ
  18814. * @lastTime : 2021-08-20 17:15:26
  18815. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  18816. */
  18817. var _default = {
  18818. // loadmore 组件
  18819. loadmore: {
  18820. status: 'loadmore',
  18821. bgColor: 'transparent',
  18822. icon: true,
  18823. fontSize: 14,
  18824. iconSize: 17,
  18825. color: '#606266',
  18826. loadingIcon: 'spinner',
  18827. loadmoreText: '加载更多',
  18828. loadingText: '正在加载...',
  18829. nomoreText: '没有更多了',
  18830. isDot: false,
  18831. iconColor: '#b7b7b7',
  18832. marginTop: 10,
  18833. marginBottom: 10,
  18834. height: 'auto',
  18835. line: false,
  18836. lineColor: '#E6E8EB',
  18837. dashed: false
  18838. }
  18839. };
  18840. exports.default = _default;
  18841. /***/ }),
  18842. /* 132 */
  18843. /*!****************************************************************************************!*\
  18844. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/modal.js ***!
  18845. \****************************************************************************************/
  18846. /*! no static exports found */
  18847. /***/ (function(module, exports, __webpack_require__) {
  18848. "use strict";
  18849. Object.defineProperty(exports, "__esModule", {
  18850. value: true
  18851. });
  18852. exports.default = void 0;
  18853. /*
  18854. * @Author : LQ
  18855. * @Description :
  18856. * @version : 1.0
  18857. * @Date : 2021-08-20 16:44:21
  18858. * @LastAuthor : LQ
  18859. * @lastTime : 2021-08-20 17:15:59
  18860. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  18861. */
  18862. var _default = {
  18863. // modal 组件
  18864. modal: {
  18865. show: false,
  18866. title: '',
  18867. content: '',
  18868. confirmText: '确认',
  18869. cancelText: '取消',
  18870. showConfirmButton: true,
  18871. showCancelButton: false,
  18872. confirmColor: '#2979ff',
  18873. cancelColor: '#606266',
  18874. buttonReverse: false,
  18875. zoom: true,
  18876. asyncClose: false,
  18877. closeOnClickOverlay: false,
  18878. negativeTop: 0,
  18879. width: '650rpx',
  18880. confirmButtonShape: ''
  18881. }
  18882. };
  18883. exports.default = _default;
  18884. /***/ }),
  18885. /* 133 */
  18886. /*!*****************************************************************************************!*\
  18887. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  18888. \*****************************************************************************************/
  18889. /*! no static exports found */
  18890. /***/ (function(module, exports, __webpack_require__) {
  18891. "use strict";
  18892. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18893. Object.defineProperty(exports, "__esModule", {
  18894. value: true
  18895. });
  18896. exports.default = void 0;
  18897. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 134));
  18898. /*
  18899. * @Author : LQ
  18900. * @Description :
  18901. * @version : 1.0
  18902. * @Date : 2021-08-20 16:44:21
  18903. * @LastAuthor : LQ
  18904. * @lastTime : 2021-08-20 17:16:18
  18905. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  18906. */
  18907. var _default = {
  18908. // navbar 组件
  18909. navbar: {
  18910. safeAreaInsetTop: true,
  18911. placeholder: false,
  18912. fixed: true,
  18913. border: false,
  18914. leftIcon: 'arrow-left',
  18915. leftText: '',
  18916. rightText: '',
  18917. rightIcon: '',
  18918. title: '',
  18919. bgColor: '#ffffff',
  18920. titleWidth: '400rpx',
  18921. height: '44px',
  18922. leftIconSize: 20,
  18923. leftIconColor: _color.default.mainColor,
  18924. autoBack: false,
  18925. titleStyle: ''
  18926. }
  18927. };
  18928. exports.default = _default;
  18929. /***/ }),
  18930. /* 134 */
  18931. /*!**********************************************************************************!*\
  18932. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/color.js ***!
  18933. \**********************************************************************************/
  18934. /*! no static exports found */
  18935. /***/ (function(module, exports, __webpack_require__) {
  18936. "use strict";
  18937. Object.defineProperty(exports, "__esModule", {
  18938. value: true
  18939. });
  18940. exports.default = void 0;
  18941. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  18942. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  18943. var color = {
  18944. primary: '#3c9cff',
  18945. info: '#909399',
  18946. default: '#909399',
  18947. warning: '#f9ae3d',
  18948. error: '#f56c6c',
  18949. success: '#5ac725',
  18950. mainColor: '#303133',
  18951. contentColor: '#606266',
  18952. tipsColor: '#909399',
  18953. lightColor: '#c0c4cc',
  18954. borderColor: '#e4e7ed'
  18955. };
  18956. var _default = color;
  18957. exports.default = _default;
  18958. /***/ }),
  18959. /* 135 */
  18960. /*!********************************************************************************************!*\
  18961. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  18962. \********************************************************************************************/
  18963. /*! no static exports found */
  18964. /***/ (function(module, exports, __webpack_require__) {
  18965. "use strict";
  18966. Object.defineProperty(exports, "__esModule", {
  18967. value: true
  18968. });
  18969. exports.default = void 0;
  18970. /*
  18971. * @Author : LQ
  18972. * @Description :
  18973. * @version : 1.0
  18974. * @Date : 2021-08-20 16:44:21
  18975. * @LastAuthor : LQ
  18976. * @lastTime : 2021-08-20 17:16:39
  18977. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  18978. */
  18979. var _default = {
  18980. // noNetwork
  18981. noNetwork: {
  18982. tips: '哎呀,网络信号丢失',
  18983. zIndex: '',
  18984. image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC'
  18985. }
  18986. };
  18987. exports.default = _default;
  18988. /***/ }),
  18989. /* 136 */
  18990. /*!********************************************************************************************!*\
  18991. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  18992. \********************************************************************************************/
  18993. /*! no static exports found */
  18994. /***/ (function(module, exports, __webpack_require__) {
  18995. "use strict";
  18996. Object.defineProperty(exports, "__esModule", {
  18997. value: true
  18998. });
  18999. exports.default = void 0;
  19000. /*
  19001. * @Author : LQ
  19002. * @Description :
  19003. * @version : 1.0
  19004. * @Date : 2021-08-20 16:44:21
  19005. * @LastAuthor : LQ
  19006. * @lastTime : 2021-08-20 17:17:13
  19007. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  19008. */
  19009. var _default = {
  19010. // noticeBar
  19011. noticeBar: {
  19012. text: function text() {
  19013. return [];
  19014. },
  19015. direction: 'row',
  19016. step: false,
  19017. icon: 'volume',
  19018. mode: '',
  19019. color: '#f9ae3d',
  19020. bgColor: '#fdf6ec',
  19021. speed: 80,
  19022. fontSize: 14,
  19023. duration: 2000,
  19024. disableTouch: true,
  19025. url: '',
  19026. linkType: 'navigateTo'
  19027. }
  19028. };
  19029. exports.default = _default;
  19030. /***/ }),
  19031. /* 137 */
  19032. /*!*****************************************************************************************!*\
  19033. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/notify.js ***!
  19034. \*****************************************************************************************/
  19035. /*! no static exports found */
  19036. /***/ (function(module, exports, __webpack_require__) {
  19037. "use strict";
  19038. Object.defineProperty(exports, "__esModule", {
  19039. value: true
  19040. });
  19041. exports.default = void 0;
  19042. /*
  19043. * @Author : LQ
  19044. * @Description :
  19045. * @version : 1.0
  19046. * @Date : 2021-08-20 16:44:21
  19047. * @LastAuthor : LQ
  19048. * @lastTime : 2021-08-20 17:10:21
  19049. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  19050. */
  19051. var _default = {
  19052. // notify组件
  19053. notify: {
  19054. top: 0,
  19055. type: 'primary',
  19056. color: '#ffffff',
  19057. bgColor: '',
  19058. message: '',
  19059. duration: 3000,
  19060. fontSize: 15,
  19061. safeAreaInsetTop: false
  19062. }
  19063. };
  19064. exports.default = _default;
  19065. /***/ }),
  19066. /* 138 */
  19067. /*!********************************************************************************************!*\
  19068. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  19069. \********************************************************************************************/
  19070. /*! no static exports found */
  19071. /***/ (function(module, exports, __webpack_require__) {
  19072. "use strict";
  19073. Object.defineProperty(exports, "__esModule", {
  19074. value: true
  19075. });
  19076. exports.default = void 0;
  19077. /*
  19078. * @Author : LQ
  19079. * @Description :
  19080. * @version : 1.0
  19081. * @Date : 2021-08-20 16:44:21
  19082. * @LastAuthor : LQ
  19083. * @lastTime : 2021-08-20 17:11:46
  19084. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  19085. */
  19086. var _default = {
  19087. // 步进器组件
  19088. numberBox: {
  19089. name: '',
  19090. value: 0,
  19091. min: 1,
  19092. max: Number.MAX_SAFE_INTEGER,
  19093. step: 1,
  19094. integer: false,
  19095. disabled: false,
  19096. disabledInput: false,
  19097. asyncChange: false,
  19098. inputWidth: 35,
  19099. showMinus: true,
  19100. showPlus: true,
  19101. decimalLength: null,
  19102. longPress: true,
  19103. color: '#323233',
  19104. buttonSize: 30,
  19105. bgColor: '#EBECEE',
  19106. cursorSpacing: 100,
  19107. disableMinus: false,
  19108. disablePlus: false,
  19109. iconStyle: ''
  19110. }
  19111. };
  19112. exports.default = _default;
  19113. /***/ }),
  19114. /* 139 */
  19115. /*!*************************************************************************************************!*\
  19116. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  19117. \*************************************************************************************************/
  19118. /*! no static exports found */
  19119. /***/ (function(module, exports, __webpack_require__) {
  19120. "use strict";
  19121. Object.defineProperty(exports, "__esModule", {
  19122. value: true
  19123. });
  19124. exports.default = void 0;
  19125. /*
  19126. * @Author : LQ
  19127. * @Description :
  19128. * @version : 1.0
  19129. * @Date : 2021-08-20 16:44:21
  19130. * @LastAuthor : LQ
  19131. * @lastTime : 2021-08-20 17:08:05
  19132. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  19133. */
  19134. var _default = {
  19135. // 数字键盘
  19136. numberKeyboard: {
  19137. mode: 'number',
  19138. dotDisabled: false,
  19139. random: false
  19140. }
  19141. };
  19142. exports.default = _default;
  19143. /***/ }),
  19144. /* 140 */
  19145. /*!******************************************************************************************!*\
  19146. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  19147. \******************************************************************************************/
  19148. /*! no static exports found */
  19149. /***/ (function(module, exports, __webpack_require__) {
  19150. "use strict";
  19151. Object.defineProperty(exports, "__esModule", {
  19152. value: true
  19153. });
  19154. exports.default = void 0;
  19155. /*
  19156. * @Author : LQ
  19157. * @Description :
  19158. * @version : 1.0
  19159. * @Date : 2021-08-20 16:44:21
  19160. * @LastAuthor : LQ
  19161. * @lastTime : 2021-08-20 17:06:50
  19162. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  19163. */
  19164. var _default = {
  19165. // overlay组件
  19166. overlay: {
  19167. show: false,
  19168. zIndex: 10070,
  19169. duration: 300,
  19170. opacity: 0.5
  19171. }
  19172. };
  19173. exports.default = _default;
  19174. /***/ }),
  19175. /* 141 */
  19176. /*!****************************************************************************************!*\
  19177. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/parse.js ***!
  19178. \****************************************************************************************/
  19179. /*! no static exports found */
  19180. /***/ (function(module, exports, __webpack_require__) {
  19181. "use strict";
  19182. Object.defineProperty(exports, "__esModule", {
  19183. value: true
  19184. });
  19185. exports.default = void 0;
  19186. /*
  19187. * @Author : LQ
  19188. * @Description :
  19189. * @version : 1.0
  19190. * @Date : 2021-08-20 16:44:21
  19191. * @LastAuthor : LQ
  19192. * @lastTime : 2021-08-20 17:17:33
  19193. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  19194. */
  19195. var _default = {
  19196. // parse
  19197. parse: {
  19198. copyLink: true,
  19199. errorImg: '',
  19200. lazyLoad: false,
  19201. loadingImg: '',
  19202. pauseVideo: true,
  19203. previewImg: true,
  19204. setTitle: true,
  19205. showImgMenu: true
  19206. }
  19207. };
  19208. exports.default = _default;
  19209. /***/ }),
  19210. /* 142 */
  19211. /*!*****************************************************************************************!*\
  19212. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/picker.js ***!
  19213. \*****************************************************************************************/
  19214. /*! no static exports found */
  19215. /***/ (function(module, exports, __webpack_require__) {
  19216. "use strict";
  19217. Object.defineProperty(exports, "__esModule", {
  19218. value: true
  19219. });
  19220. exports.default = void 0;
  19221. /*
  19222. * @Author : LQ
  19223. * @Description :
  19224. * @version : 1.0
  19225. * @Date : 2021-08-20 16:44:21
  19226. * @LastAuthor : LQ
  19227. * @lastTime : 2021-08-20 17:18:20
  19228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  19229. */
  19230. var _default = {
  19231. // picker
  19232. picker: {
  19233. show: false,
  19234. showToolbar: true,
  19235. title: '',
  19236. columns: function columns() {
  19237. return [];
  19238. },
  19239. loading: false,
  19240. itemHeight: 44,
  19241. cancelText: '取消',
  19242. confirmText: '确定',
  19243. cancelColor: '#909193',
  19244. confirmColor: '#3c9cff',
  19245. visibleItemCount: 5,
  19246. keyName: 'text',
  19247. closeOnClickOverlay: false,
  19248. defaultIndex: function defaultIndex() {
  19249. return [];
  19250. },
  19251. immediateChange: false
  19252. }
  19253. };
  19254. exports.default = _default;
  19255. /***/ }),
  19256. /* 143 */
  19257. /*!****************************************************************************************!*\
  19258. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/popup.js ***!
  19259. \****************************************************************************************/
  19260. /*! no static exports found */
  19261. /***/ (function(module, exports, __webpack_require__) {
  19262. "use strict";
  19263. Object.defineProperty(exports, "__esModule", {
  19264. value: true
  19265. });
  19266. exports.default = void 0;
  19267. /*
  19268. * @Author : LQ
  19269. * @Description :
  19270. * @version : 1.0
  19271. * @Date : 2021-08-20 16:44:21
  19272. * @LastAuthor : LQ
  19273. * @lastTime : 2021-08-20 17:06:33
  19274. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  19275. */
  19276. var _default = {
  19277. // popup组件
  19278. popup: {
  19279. show: false,
  19280. overlay: true,
  19281. mode: 'bottom',
  19282. duration: 300,
  19283. closeable: false,
  19284. overlayStyle: function overlayStyle() {},
  19285. closeOnClickOverlay: true,
  19286. zIndex: 10075,
  19287. safeAreaInsetBottom: true,
  19288. safeAreaInsetTop: false,
  19289. closeIconPos: 'top-right',
  19290. round: 0,
  19291. zoom: true,
  19292. bgColor: '',
  19293. overlayOpacity: 0.5
  19294. }
  19295. };
  19296. exports.default = _default;
  19297. /***/ }),
  19298. /* 144 */
  19299. /*!****************************************************************************************!*\
  19300. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/radio.js ***!
  19301. \****************************************************************************************/
  19302. /*! no static exports found */
  19303. /***/ (function(module, exports, __webpack_require__) {
  19304. "use strict";
  19305. Object.defineProperty(exports, "__esModule", {
  19306. value: true
  19307. });
  19308. exports.default = void 0;
  19309. /*
  19310. * @Author : LQ
  19311. * @Description :
  19312. * @version : 1.0
  19313. * @Date : 2021-08-20 16:44:21
  19314. * @LastAuthor : LQ
  19315. * @lastTime : 2021-08-20 17:02:34
  19316. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  19317. */
  19318. var _default = {
  19319. // radio组件
  19320. radio: {
  19321. name: '',
  19322. shape: '',
  19323. disabled: '',
  19324. labelDisabled: '',
  19325. activeColor: '',
  19326. inactiveColor: '',
  19327. iconSize: '',
  19328. labelSize: '',
  19329. label: '',
  19330. labelColor: '',
  19331. size: '',
  19332. iconColor: '',
  19333. placement: ''
  19334. }
  19335. };
  19336. exports.default = _default;
  19337. /***/ }),
  19338. /* 145 */
  19339. /*!*********************************************************************************************!*\
  19340. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  19341. \*********************************************************************************************/
  19342. /*! no static exports found */
  19343. /***/ (function(module, exports, __webpack_require__) {
  19344. "use strict";
  19345. Object.defineProperty(exports, "__esModule", {
  19346. value: true
  19347. });
  19348. exports.default = void 0;
  19349. /*
  19350. * @Author : LQ
  19351. * @Description :
  19352. * @version : 1.0
  19353. * @Date : 2021-08-20 16:44:21
  19354. * @LastAuthor : LQ
  19355. * @lastTime : 2021-08-20 17:03:12
  19356. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  19357. */
  19358. var _default = {
  19359. // radio-group组件
  19360. radioGroup: {
  19361. value: '',
  19362. disabled: false,
  19363. shape: 'circle',
  19364. activeColor: '#2979ff',
  19365. inactiveColor: '#c8c9cc',
  19366. name: '',
  19367. size: 18,
  19368. placement: 'row',
  19369. label: '',
  19370. labelColor: '#303133',
  19371. labelSize: 14,
  19372. labelDisabled: false,
  19373. iconColor: '#ffffff',
  19374. iconSize: 12,
  19375. borderBottom: false,
  19376. iconPlacement: 'left'
  19377. }
  19378. };
  19379. exports.default = _default;
  19380. /***/ }),
  19381. /* 146 */
  19382. /*!***************************************************************************************!*\
  19383. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/rate.js ***!
  19384. \***************************************************************************************/
  19385. /*! no static exports found */
  19386. /***/ (function(module, exports, __webpack_require__) {
  19387. "use strict";
  19388. Object.defineProperty(exports, "__esModule", {
  19389. value: true
  19390. });
  19391. exports.default = void 0;
  19392. /*
  19393. * @Author : LQ
  19394. * @Description :
  19395. * @version : 1.0
  19396. * @Date : 2021-08-20 16:44:21
  19397. * @LastAuthor : LQ
  19398. * @lastTime : 2021-08-20 17:05:09
  19399. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  19400. */
  19401. var _default = {
  19402. // rate组件
  19403. rate: {
  19404. value: 1,
  19405. count: 5,
  19406. disabled: false,
  19407. size: 18,
  19408. inactiveColor: '#b2b2b2',
  19409. activeColor: '#FA3534',
  19410. gutter: 4,
  19411. minCount: 1,
  19412. allowHalf: false,
  19413. activeIcon: 'star-fill',
  19414. inactiveIcon: 'star',
  19415. touchable: true
  19416. }
  19417. };
  19418. exports.default = _default;
  19419. /***/ }),
  19420. /* 147 */
  19421. /*!*******************************************************************************************!*\
  19422. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  19423. \*******************************************************************************************/
  19424. /*! no static exports found */
  19425. /***/ (function(module, exports, __webpack_require__) {
  19426. "use strict";
  19427. Object.defineProperty(exports, "__esModule", {
  19428. value: true
  19429. });
  19430. exports.default = void 0;
  19431. /*
  19432. * @Author : LQ
  19433. * @Description :
  19434. * @version : 1.0
  19435. * @Date : 2021-08-20 16:44:21
  19436. * @LastAuthor : LQ
  19437. * @lastTime : 2021-08-20 17:18:41
  19438. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  19439. */
  19440. var _default = {
  19441. // readMore
  19442. readMore: {
  19443. showHeight: 400,
  19444. toggle: false,
  19445. closeText: '展开阅读全文',
  19446. openText: '收起',
  19447. color: '#2979ff',
  19448. fontSize: 14,
  19449. textIndent: '2em',
  19450. name: ''
  19451. }
  19452. };
  19453. exports.default = _default;
  19454. /***/ }),
  19455. /* 148 */
  19456. /*!**************************************************************************************!*\
  19457. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/row.js ***!
  19458. \**************************************************************************************/
  19459. /*! no static exports found */
  19460. /***/ (function(module, exports, __webpack_require__) {
  19461. "use strict";
  19462. Object.defineProperty(exports, "__esModule", {
  19463. value: true
  19464. });
  19465. exports.default = void 0;
  19466. /*
  19467. * @Author : LQ
  19468. * @Description :
  19469. * @version : 1.0
  19470. * @Date : 2021-08-20 16:44:21
  19471. * @LastAuthor : LQ
  19472. * @lastTime : 2021-08-20 17:18:58
  19473. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  19474. */
  19475. var _default = {
  19476. // row
  19477. row: {
  19478. gutter: 0,
  19479. justify: 'start',
  19480. align: 'center'
  19481. }
  19482. };
  19483. exports.default = _default;
  19484. /***/ }),
  19485. /* 149 */
  19486. /*!********************************************************************************************!*\
  19487. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  19488. \********************************************************************************************/
  19489. /*! no static exports found */
  19490. /***/ (function(module, exports, __webpack_require__) {
  19491. "use strict";
  19492. Object.defineProperty(exports, "__esModule", {
  19493. value: true
  19494. });
  19495. exports.default = void 0;
  19496. /*
  19497. * @Author : LQ
  19498. * @Description :
  19499. * @version : 1.0
  19500. * @Date : 2021-08-20 16:44:21
  19501. * @LastAuthor : LQ
  19502. * @lastTime : 2021-08-20 17:19:13
  19503. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  19504. */
  19505. var _default = {
  19506. // rowNotice
  19507. rowNotice: {
  19508. text: '',
  19509. icon: 'volume',
  19510. mode: '',
  19511. color: '#f9ae3d',
  19512. bgColor: '#fdf6ec',
  19513. fontSize: 14,
  19514. speed: 80
  19515. }
  19516. };
  19517. exports.default = _default;
  19518. /***/ }),
  19519. /* 150 */
  19520. /*!*********************************************************************************************!*\
  19521. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  19522. \*********************************************************************************************/
  19523. /*! no static exports found */
  19524. /***/ (function(module, exports, __webpack_require__) {
  19525. "use strict";
  19526. Object.defineProperty(exports, "__esModule", {
  19527. value: true
  19528. });
  19529. exports.default = void 0;
  19530. /*
  19531. * @Author : LQ
  19532. * @Description :
  19533. * @version : 1.0
  19534. * @Date : 2021-08-20 16:44:21
  19535. * @LastAuthor : LQ
  19536. * @lastTime : 2021-08-20 17:19:28
  19537. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  19538. */
  19539. var _default = {
  19540. // scrollList
  19541. scrollList: {
  19542. indicatorWidth: 50,
  19543. indicatorBarWidth: 20,
  19544. indicator: true,
  19545. indicatorColor: '#f2f2f2',
  19546. indicatorActiveColor: '#3c9cff',
  19547. indicatorStyle: ''
  19548. }
  19549. };
  19550. exports.default = _default;
  19551. /***/ }),
  19552. /* 151 */
  19553. /*!*****************************************************************************************!*\
  19554. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/search.js ***!
  19555. \*****************************************************************************************/
  19556. /*! no static exports found */
  19557. /***/ (function(module, exports, __webpack_require__) {
  19558. "use strict";
  19559. Object.defineProperty(exports, "__esModule", {
  19560. value: true
  19561. });
  19562. exports.default = void 0;
  19563. /*
  19564. * @Author : LQ
  19565. * @Description :
  19566. * @version : 1.0
  19567. * @Date : 2021-08-20 16:44:21
  19568. * @LastAuthor : LQ
  19569. * @lastTime : 2021-08-20 17:19:45
  19570. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  19571. */
  19572. var _default = {
  19573. // search
  19574. search: {
  19575. shape: 'round',
  19576. bgColor: '#f2f2f2',
  19577. placeholder: '请输入关键字',
  19578. clearabled: true,
  19579. focus: false,
  19580. showAction: true,
  19581. actionStyle: function actionStyle() {
  19582. return {};
  19583. },
  19584. actionText: '搜索',
  19585. inputAlign: 'left',
  19586. inputStyle: function inputStyle() {
  19587. return {};
  19588. },
  19589. disabled: false,
  19590. borderColor: 'transparent',
  19591. searchIconColor: '#909399',
  19592. searchIconSize: 22,
  19593. color: '#606266',
  19594. placeholderColor: '#909399',
  19595. searchIcon: 'search',
  19596. margin: '0',
  19597. animation: false,
  19598. value: '',
  19599. maxlength: '-1',
  19600. height: 32,
  19601. label: null
  19602. }
  19603. };
  19604. exports.default = _default;
  19605. /***/ }),
  19606. /* 152 */
  19607. /*!******************************************************************************************!*\
  19608. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/section.js ***!
  19609. \******************************************************************************************/
  19610. /*! no static exports found */
  19611. /***/ (function(module, exports, __webpack_require__) {
  19612. "use strict";
  19613. Object.defineProperty(exports, "__esModule", {
  19614. value: true
  19615. });
  19616. exports.default = void 0;
  19617. /*
  19618. * @Author : LQ
  19619. * @Description :
  19620. * @version : 1.0
  19621. * @Date : 2021-08-20 16:44:21
  19622. * @LastAuthor : LQ
  19623. * @lastTime : 2021-08-20 17:07:33
  19624. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  19625. */
  19626. var _default = {
  19627. // u-section组件
  19628. section: {
  19629. title: '',
  19630. subTitle: '更多',
  19631. right: true,
  19632. fontSize: 15,
  19633. bold: true,
  19634. color: '#303133',
  19635. subColor: '#909399',
  19636. showLine: true,
  19637. lineColor: '',
  19638. arrow: true
  19639. }
  19640. };
  19641. exports.default = _default;
  19642. /***/ }),
  19643. /* 153 */
  19644. /*!*******************************************************************************************!*\
  19645. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  19646. \*******************************************************************************************/
  19647. /*! no static exports found */
  19648. /***/ (function(module, exports, __webpack_require__) {
  19649. "use strict";
  19650. Object.defineProperty(exports, "__esModule", {
  19651. value: true
  19652. });
  19653. exports.default = void 0;
  19654. /*
  19655. * @Author : LQ
  19656. * @Description :
  19657. * @version : 1.0
  19658. * @Date : 2021-08-20 16:44:21
  19659. * @LastAuthor : LQ
  19660. * @lastTime : 2021-08-20 17:20:14
  19661. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  19662. */
  19663. var _default = {
  19664. // skeleton
  19665. skeleton: {
  19666. loading: true,
  19667. animate: true,
  19668. rows: 0,
  19669. rowsWidth: '100%',
  19670. rowsHeight: 18,
  19671. title: true,
  19672. titleWidth: '50%',
  19673. titleHeight: 18,
  19674. avatar: false,
  19675. avatarSize: 32,
  19676. avatarShape: 'circle'
  19677. }
  19678. };
  19679. exports.default = _default;
  19680. /***/ }),
  19681. /* 154 */
  19682. /*!*****************************************************************************************!*\
  19683. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/slider.js ***!
  19684. \*****************************************************************************************/
  19685. /*! no static exports found */
  19686. /***/ (function(module, exports, __webpack_require__) {
  19687. "use strict";
  19688. Object.defineProperty(exports, "__esModule", {
  19689. value: true
  19690. });
  19691. exports.default = void 0;
  19692. /*
  19693. * @Author : LQ
  19694. * @Description :
  19695. * @version : 1.0
  19696. * @Date : 2021-08-20 16:44:21
  19697. * @LastAuthor : LQ
  19698. * @lastTime : 2021-08-20 17:08:25
  19699. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  19700. */
  19701. var _default = {
  19702. // slider组件
  19703. slider: {
  19704. value: 0,
  19705. blockSize: 18,
  19706. min: 0,
  19707. max: 100,
  19708. step: 1,
  19709. activeColor: '#2979ff',
  19710. inactiveColor: '#c0c4cc',
  19711. blockColor: '#ffffff',
  19712. showValue: false,
  19713. disabled: false,
  19714. blockStyle: function blockStyle() {}
  19715. }
  19716. };
  19717. exports.default = _default;
  19718. /***/ }),
  19719. /* 155 */
  19720. /*!********************************************************************************************!*\
  19721. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  19722. \********************************************************************************************/
  19723. /*! no static exports found */
  19724. /***/ (function(module, exports, __webpack_require__) {
  19725. "use strict";
  19726. Object.defineProperty(exports, "__esModule", {
  19727. value: true
  19728. });
  19729. exports.default = void 0;
  19730. /*
  19731. * @Author : LQ
  19732. * @Description :
  19733. * @version : 1.0
  19734. * @Date : 2021-08-20 16:44:21
  19735. * @LastAuthor : LQ
  19736. * @lastTime : 2021-08-20 17:20:39
  19737. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  19738. */
  19739. var _default = {
  19740. // statusBar
  19741. statusBar: {
  19742. bgColor: 'transparent'
  19743. }
  19744. };
  19745. exports.default = _default;
  19746. /***/ }),
  19747. /* 156 */
  19748. /*!****************************************************************************************!*\
  19749. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/steps.js ***!
  19750. \****************************************************************************************/
  19751. /*! no static exports found */
  19752. /***/ (function(module, exports, __webpack_require__) {
  19753. "use strict";
  19754. Object.defineProperty(exports, "__esModule", {
  19755. value: true
  19756. });
  19757. exports.default = void 0;
  19758. /*
  19759. * @Author : LQ
  19760. * @Description :
  19761. * @version : 1.0
  19762. * @Date : 2021-08-20 16:44:21
  19763. * @LastAuthor : LQ
  19764. * @lastTime : 2021-08-20 17:12:37
  19765. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  19766. */
  19767. var _default = {
  19768. // steps组件
  19769. steps: {
  19770. direction: 'row',
  19771. current: 0,
  19772. activeColor: '#3c9cff',
  19773. inactiveColor: '#969799',
  19774. activeIcon: '',
  19775. inactiveIcon: '',
  19776. dot: false
  19777. }
  19778. };
  19779. exports.default = _default;
  19780. /***/ }),
  19781. /* 157 */
  19782. /*!********************************************************************************************!*\
  19783. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  19784. \********************************************************************************************/
  19785. /*! no static exports found */
  19786. /***/ (function(module, exports, __webpack_require__) {
  19787. "use strict";
  19788. Object.defineProperty(exports, "__esModule", {
  19789. value: true
  19790. });
  19791. exports.default = void 0;
  19792. /*
  19793. * @Author : LQ
  19794. * @Description :
  19795. * @version : 1.0
  19796. * @Date : 2021-08-20 16:44:21
  19797. * @LastAuthor : LQ
  19798. * @lastTime : 2021-08-20 17:12:55
  19799. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  19800. */
  19801. var _default = {
  19802. // steps-item组件
  19803. stepsItem: {
  19804. title: '',
  19805. desc: '',
  19806. iconSize: 17,
  19807. error: false
  19808. }
  19809. };
  19810. exports.default = _default;
  19811. /***/ }),
  19812. /* 158 */
  19813. /*!*****************************************************************************************!*\
  19814. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  19815. \*****************************************************************************************/
  19816. /*! no static exports found */
  19817. /***/ (function(module, exports, __webpack_require__) {
  19818. "use strict";
  19819. Object.defineProperty(exports, "__esModule", {
  19820. value: true
  19821. });
  19822. exports.default = void 0;
  19823. /*
  19824. * @Author : LQ
  19825. * @Description :
  19826. * @version : 1.0
  19827. * @Date : 2021-08-20 16:44:21
  19828. * @LastAuthor : LQ
  19829. * @lastTime : 2021-08-20 17:01:30
  19830. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  19831. */
  19832. var _default = {
  19833. // sticky组件
  19834. sticky: {
  19835. offsetTop: 0,
  19836. customNavHeight: 0,
  19837. disabled: false,
  19838. bgColor: 'transparent',
  19839. zIndex: '',
  19840. index: ''
  19841. }
  19842. };
  19843. exports.default = _default;
  19844. /***/ }),
  19845. /* 159 */
  19846. /*!*********************************************************************************************!*\
  19847. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  19848. \*********************************************************************************************/
  19849. /*! no static exports found */
  19850. /***/ (function(module, exports, __webpack_require__) {
  19851. "use strict";
  19852. Object.defineProperty(exports, "__esModule", {
  19853. value: true
  19854. });
  19855. exports.default = void 0;
  19856. /*
  19857. * @Author : LQ
  19858. * @Description :
  19859. * @version : 1.0
  19860. * @Date : 2021-08-20 16:44:21
  19861. * @LastAuthor : LQ
  19862. * @lastTime : 2021-08-20 17:12:20
  19863. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  19864. */
  19865. var _default = {
  19866. // subsection组件
  19867. subsection: {
  19868. list: [],
  19869. current: 0,
  19870. activeColor: '#3c9cff',
  19871. inactiveColor: '#303133',
  19872. mode: 'button',
  19873. fontSize: 12,
  19874. bold: true,
  19875. bgColor: '#eeeeef',
  19876. keyName: 'name'
  19877. }
  19878. };
  19879. exports.default = _default;
  19880. /***/ }),
  19881. /* 160 */
  19882. /*!**********************************************************************************************!*\
  19883. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  19884. \**********************************************************************************************/
  19885. /*! no static exports found */
  19886. /***/ (function(module, exports, __webpack_require__) {
  19887. "use strict";
  19888. Object.defineProperty(exports, "__esModule", {
  19889. value: true
  19890. });
  19891. exports.default = void 0;
  19892. /*
  19893. * @Author : LQ
  19894. * @Description :
  19895. * @version : 1.0
  19896. * @Date : 2021-08-20 16:44:21
  19897. * @LastAuthor : LQ
  19898. * @lastTime : 2021-08-20 17:00:42
  19899. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  19900. */
  19901. var _default = {
  19902. // swipe-action组件
  19903. swipeAction: {
  19904. autoClose: true
  19905. }
  19906. };
  19907. exports.default = _default;
  19908. /***/ }),
  19909. /* 161 */
  19910. /*!**************************************************************************************************!*\
  19911. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  19912. \**************************************************************************************************/
  19913. /*! no static exports found */
  19914. /***/ (function(module, exports, __webpack_require__) {
  19915. "use strict";
  19916. Object.defineProperty(exports, "__esModule", {
  19917. value: true
  19918. });
  19919. exports.default = void 0;
  19920. /*
  19921. * @Author : LQ
  19922. * @Description :
  19923. * @version : 1.0
  19924. * @Date : 2021-08-20 16:44:21
  19925. * @LastAuthor : LQ
  19926. * @lastTime : 2021-08-20 17:01:13
  19927. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  19928. */
  19929. var _default = {
  19930. // swipeActionItem 组件
  19931. swipeActionItem: {
  19932. show: false,
  19933. name: '',
  19934. disabled: false,
  19935. threshold: 20,
  19936. autoClose: true,
  19937. options: [],
  19938. duration: 300
  19939. }
  19940. };
  19941. exports.default = _default;
  19942. /***/ }),
  19943. /* 162 */
  19944. /*!*****************************************************************************************!*\
  19945. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  19946. \*****************************************************************************************/
  19947. /*! no static exports found */
  19948. /***/ (function(module, exports, __webpack_require__) {
  19949. "use strict";
  19950. Object.defineProperty(exports, "__esModule", {
  19951. value: true
  19952. });
  19953. exports.default = void 0;
  19954. /*
  19955. * @Author : LQ
  19956. * @Description :
  19957. * @version : 1.0
  19958. * @Date : 2021-08-20 16:44:21
  19959. * @LastAuthor : LQ
  19960. * @lastTime : 2021-08-20 17:21:38
  19961. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  19962. */
  19963. var _default = {
  19964. // swiper 组件
  19965. swiper: {
  19966. list: function list() {
  19967. return [];
  19968. },
  19969. indicator: false,
  19970. indicatorActiveColor: '#FFFFFF',
  19971. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  19972. indicatorStyle: '',
  19973. indicatorMode: 'line',
  19974. autoplay: true,
  19975. current: 0,
  19976. currentItemId: '',
  19977. interval: 3000,
  19978. duration: 300,
  19979. circular: false,
  19980. previousMargin: 0,
  19981. nextMargin: 0,
  19982. acceleration: false,
  19983. displayMultipleItems: 1,
  19984. easingFunction: 'default',
  19985. keyName: 'url',
  19986. imgMode: 'aspectFill',
  19987. height: 130,
  19988. bgColor: '#f3f4f6',
  19989. radius: 4,
  19990. loading: false,
  19991. showTitle: false
  19992. }
  19993. };
  19994. exports.default = _default;
  19995. /***/ }),
  19996. /* 163 */
  19997. /*!***************************************************************************************************!*\
  19998. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  19999. \***************************************************************************************************/
  20000. /*! no static exports found */
  20001. /***/ (function(module, exports, __webpack_require__) {
  20002. "use strict";
  20003. Object.defineProperty(exports, "__esModule", {
  20004. value: true
  20005. });
  20006. exports.default = void 0;
  20007. /*
  20008. * @Author : LQ
  20009. * @Description :
  20010. * @version : 1.0
  20011. * @Date : 2021-08-20 16:44:21
  20012. * @LastAuthor : LQ
  20013. * @lastTime : 2021-08-20 17:22:07
  20014. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  20015. */
  20016. var _default = {
  20017. // swiperIndicator 组件
  20018. swiperIndicator: {
  20019. length: 0,
  20020. current: 0,
  20021. indicatorActiveColor: '',
  20022. indicatorInactiveColor: '',
  20023. indicatorMode: 'line'
  20024. }
  20025. };
  20026. exports.default = _default;
  20027. /***/ }),
  20028. /* 164 */
  20029. /*!*****************************************************************************************!*\
  20030. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/switch.js ***!
  20031. \*****************************************************************************************/
  20032. /*! no static exports found */
  20033. /***/ (function(module, exports, __webpack_require__) {
  20034. "use strict";
  20035. Object.defineProperty(exports, "__esModule", {
  20036. value: true
  20037. });
  20038. exports.default = void 0;
  20039. /*
  20040. * @Author : LQ
  20041. * @Description :
  20042. * @version : 1.0
  20043. * @Date : 2021-08-20 16:44:21
  20044. * @LastAuthor : LQ
  20045. * @lastTime : 2021-08-20 17:22:24
  20046. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  20047. */
  20048. var _default = {
  20049. // switch
  20050. switch: {
  20051. loading: false,
  20052. disabled: false,
  20053. size: 25,
  20054. activeColor: '#2979ff',
  20055. inactiveColor: '#ffffff',
  20056. value: false,
  20057. activeValue: true,
  20058. inactiveValue: false,
  20059. asyncChange: false,
  20060. space: 0
  20061. }
  20062. };
  20063. exports.default = _default;
  20064. /***/ }),
  20065. /* 165 */
  20066. /*!*****************************************************************************************!*\
  20067. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  20068. \*****************************************************************************************/
  20069. /*! no static exports found */
  20070. /***/ (function(module, exports, __webpack_require__) {
  20071. "use strict";
  20072. Object.defineProperty(exports, "__esModule", {
  20073. value: true
  20074. });
  20075. exports.default = void 0;
  20076. /*
  20077. * @Author : LQ
  20078. * @Description :
  20079. * @version : 1.0
  20080. * @Date : 2021-08-20 16:44:21
  20081. * @LastAuthor : LQ
  20082. * @lastTime : 2021-08-20 17:22:40
  20083. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  20084. */
  20085. var _default = {
  20086. // tabbar
  20087. tabbar: {
  20088. value: null,
  20089. safeAreaInsetBottom: true,
  20090. border: true,
  20091. zIndex: 1,
  20092. activeColor: '#1989fa',
  20093. inactiveColor: '#7d7e80',
  20094. fixed: true,
  20095. placeholder: true
  20096. }
  20097. };
  20098. exports.default = _default;
  20099. /***/ }),
  20100. /* 166 */
  20101. /*!*********************************************************************************************!*\
  20102. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  20103. \*********************************************************************************************/
  20104. /*! no static exports found */
  20105. /***/ (function(module, exports, __webpack_require__) {
  20106. "use strict";
  20107. Object.defineProperty(exports, "__esModule", {
  20108. value: true
  20109. });
  20110. exports.default = void 0;
  20111. /*
  20112. * @Author : LQ
  20113. * @Description :
  20114. * @version : 1.0
  20115. * @Date : 2021-08-20 16:44:21
  20116. * @LastAuthor : LQ
  20117. * @lastTime : 2021-08-20 17:22:55
  20118. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  20119. */
  20120. var _default = {
  20121. //
  20122. tabbarItem: {
  20123. name: null,
  20124. icon: '',
  20125. badge: null,
  20126. dot: false,
  20127. text: '',
  20128. badgeStyle: 'top: 6px;right:2px;'
  20129. }
  20130. };
  20131. exports.default = _default;
  20132. /***/ }),
  20133. /* 167 */
  20134. /*!***************************************************************************************!*\
  20135. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  20136. \***************************************************************************************/
  20137. /*! no static exports found */
  20138. /***/ (function(module, exports, __webpack_require__) {
  20139. "use strict";
  20140. Object.defineProperty(exports, "__esModule", {
  20141. value: true
  20142. });
  20143. exports.default = void 0;
  20144. /*
  20145. * @Author : LQ
  20146. * @Description :
  20147. * @version : 1.0
  20148. * @Date : 2021-08-20 16:44:21
  20149. * @LastAuthor : LQ
  20150. * @lastTime : 2021-08-20 17:23:14
  20151. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  20152. */
  20153. var _default = {
  20154. //
  20155. tabs: {
  20156. duration: 300,
  20157. list: function list() {
  20158. return [];
  20159. },
  20160. lineColor: '#3c9cff',
  20161. activeStyle: function activeStyle() {
  20162. return {
  20163. color: '#303133'
  20164. };
  20165. },
  20166. inactiveStyle: function inactiveStyle() {
  20167. return {
  20168. color: '#606266'
  20169. };
  20170. },
  20171. lineWidth: 20,
  20172. lineHeight: 3,
  20173. lineBgSize: 'cover',
  20174. itemStyle: function itemStyle() {
  20175. return {
  20176. height: '44px'
  20177. };
  20178. },
  20179. scrollable: true,
  20180. current: 0,
  20181. keyName: 'name'
  20182. }
  20183. };
  20184. exports.default = _default;
  20185. /***/ }),
  20186. /* 168 */
  20187. /*!**************************************************************************************!*\
  20188. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/tag.js ***!
  20189. \**************************************************************************************/
  20190. /*! no static exports found */
  20191. /***/ (function(module, exports, __webpack_require__) {
  20192. "use strict";
  20193. Object.defineProperty(exports, "__esModule", {
  20194. value: true
  20195. });
  20196. exports.default = void 0;
  20197. /*
  20198. * @Author : LQ
  20199. * @Description :
  20200. * @version : 1.0
  20201. * @Date : 2021-08-20 16:44:21
  20202. * @LastAuthor : LQ
  20203. * @lastTime : 2021-08-20 17:23:37
  20204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  20205. */
  20206. var _default = {
  20207. // tag 组件
  20208. tag: {
  20209. type: 'primary',
  20210. disabled: false,
  20211. size: 'medium',
  20212. shape: 'square',
  20213. text: '',
  20214. bgColor: '',
  20215. color: '',
  20216. borderColor: '',
  20217. closeColor: '#C6C7CB',
  20218. name: '',
  20219. plainFill: false,
  20220. plain: false,
  20221. closable: false,
  20222. show: true,
  20223. icon: ''
  20224. }
  20225. };
  20226. exports.default = _default;
  20227. /***/ }),
  20228. /* 169 */
  20229. /*!***************************************************************************************!*\
  20230. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/text.js ***!
  20231. \***************************************************************************************/
  20232. /*! no static exports found */
  20233. /***/ (function(module, exports, __webpack_require__) {
  20234. "use strict";
  20235. Object.defineProperty(exports, "__esModule", {
  20236. value: true
  20237. });
  20238. exports.default = void 0;
  20239. /*
  20240. * @Author : LQ
  20241. * @Description :
  20242. * @version : 1.0
  20243. * @Date : 2021-08-20 16:44:21
  20244. * @LastAuthor : LQ
  20245. * @lastTime : 2021-08-20 17:23:58
  20246. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  20247. */
  20248. var _default = {
  20249. // text 组件
  20250. text: {
  20251. type: '',
  20252. show: true,
  20253. text: '',
  20254. prefixIcon: '',
  20255. suffixIcon: '',
  20256. mode: '',
  20257. href: '',
  20258. format: '',
  20259. call: false,
  20260. openType: '',
  20261. bold: false,
  20262. block: false,
  20263. lines: '',
  20264. color: '#303133',
  20265. size: 15,
  20266. iconStyle: function iconStyle() {
  20267. return {
  20268. fontSize: '15px'
  20269. };
  20270. },
  20271. decoration: 'none',
  20272. margin: 0,
  20273. lineHeight: '',
  20274. align: 'left',
  20275. wordWrap: 'normal'
  20276. }
  20277. };
  20278. exports.default = _default;
  20279. /***/ }),
  20280. /* 170 */
  20281. /*!*******************************************************************************************!*\
  20282. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  20283. \*******************************************************************************************/
  20284. /*! no static exports found */
  20285. /***/ (function(module, exports, __webpack_require__) {
  20286. "use strict";
  20287. Object.defineProperty(exports, "__esModule", {
  20288. value: true
  20289. });
  20290. exports.default = void 0;
  20291. /*
  20292. * @Author : LQ
  20293. * @Description :
  20294. * @version : 1.0
  20295. * @Date : 2021-08-20 16:44:21
  20296. * @LastAuthor : LQ
  20297. * @lastTime : 2021-08-20 17:24:32
  20298. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  20299. */
  20300. var _default = {
  20301. // textarea 组件
  20302. textarea: {
  20303. value: '',
  20304. placeholder: '',
  20305. placeholderClass: 'textarea-placeholder',
  20306. placeholderStyle: 'color: #c0c4cc',
  20307. height: 70,
  20308. confirmType: 'done',
  20309. disabled: false,
  20310. count: false,
  20311. focus: false,
  20312. autoHeight: false,
  20313. fixed: false,
  20314. cursorSpacing: 0,
  20315. cursor: '',
  20316. showConfirmBar: true,
  20317. selectionStart: -1,
  20318. selectionEnd: -1,
  20319. adjustPosition: true,
  20320. disableDefaultPadding: false,
  20321. holdKeyboard: false,
  20322. maxlength: 140,
  20323. border: 'surround',
  20324. formatter: null
  20325. }
  20326. };
  20327. exports.default = _default;
  20328. /***/ }),
  20329. /* 171 */
  20330. /*!****************************************************************************************!*\
  20331. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/toast.js ***!
  20332. \****************************************************************************************/
  20333. /*! no static exports found */
  20334. /***/ (function(module, exports, __webpack_require__) {
  20335. "use strict";
  20336. Object.defineProperty(exports, "__esModule", {
  20337. value: true
  20338. });
  20339. exports.default = void 0;
  20340. /*
  20341. * @Author : LQ
  20342. * @Description :
  20343. * @version : 1.0
  20344. * @Date : 2021-08-20 16:44:21
  20345. * @LastAuthor : LQ
  20346. * @lastTime : 2021-08-20 17:07:07
  20347. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  20348. */
  20349. var _default = {
  20350. // toast组件
  20351. toast: {
  20352. zIndex: 10090,
  20353. loading: false,
  20354. text: '',
  20355. icon: '',
  20356. type: '',
  20357. loadingMode: '',
  20358. show: '',
  20359. overlay: false,
  20360. position: 'center',
  20361. params: function params() {},
  20362. duration: 2000,
  20363. isTab: false,
  20364. url: '',
  20365. callback: null,
  20366. back: false
  20367. }
  20368. };
  20369. exports.default = _default;
  20370. /***/ }),
  20371. /* 172 */
  20372. /*!******************************************************************************************!*\
  20373. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  20374. \******************************************************************************************/
  20375. /*! no static exports found */
  20376. /***/ (function(module, exports, __webpack_require__) {
  20377. "use strict";
  20378. Object.defineProperty(exports, "__esModule", {
  20379. value: true
  20380. });
  20381. exports.default = void 0;
  20382. /*
  20383. * @Author : LQ
  20384. * @Description :
  20385. * @version : 1.0
  20386. * @Date : 2021-08-20 16:44:21
  20387. * @LastAuthor : LQ
  20388. * @lastTime : 2021-08-20 17:24:55
  20389. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  20390. */
  20391. var _default = {
  20392. // toolbar 组件
  20393. toolbar: {
  20394. show: true,
  20395. cancelText: '取消',
  20396. confirmText: '确认',
  20397. cancelColor: '#909193',
  20398. confirmColor: '#3c9cff',
  20399. title: ''
  20400. }
  20401. };
  20402. exports.default = _default;
  20403. /***/ }),
  20404. /* 173 */
  20405. /*!******************************************************************************************!*\
  20406. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  20407. \******************************************************************************************/
  20408. /*! no static exports found */
  20409. /***/ (function(module, exports, __webpack_require__) {
  20410. "use strict";
  20411. Object.defineProperty(exports, "__esModule", {
  20412. value: true
  20413. });
  20414. exports.default = void 0;
  20415. /*
  20416. * @Author : LQ
  20417. * @Description :
  20418. * @version : 1.0
  20419. * @Date : 2021-08-20 16:44:21
  20420. * @LastAuthor : LQ
  20421. * @lastTime : 2021-08-20 17:25:14
  20422. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  20423. */
  20424. var _default = {
  20425. // tooltip 组件
  20426. tooltip: {
  20427. text: '',
  20428. copyText: '',
  20429. size: 14,
  20430. color: '#606266',
  20431. bgColor: 'transparent',
  20432. direction: 'top',
  20433. zIndex: 10071,
  20434. showCopy: true,
  20435. buttons: function buttons() {
  20436. return [];
  20437. },
  20438. overlay: true,
  20439. showToast: true
  20440. }
  20441. };
  20442. exports.default = _default;
  20443. /***/ }),
  20444. /* 174 */
  20445. /*!*********************************************************************************************!*\
  20446. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/transition.js ***!
  20447. \*********************************************************************************************/
  20448. /*! no static exports found */
  20449. /***/ (function(module, exports, __webpack_require__) {
  20450. "use strict";
  20451. Object.defineProperty(exports, "__esModule", {
  20452. value: true
  20453. });
  20454. exports.default = void 0;
  20455. /*
  20456. * @Author : LQ
  20457. * @Description :
  20458. * @version : 1.0
  20459. * @Date : 2021-08-20 16:44:21
  20460. * @LastAuthor : LQ
  20461. * @lastTime : 2021-08-20 16:59:00
  20462. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  20463. */
  20464. var _default = {
  20465. // transition动画组件的props
  20466. transition: {
  20467. show: false,
  20468. mode: 'fade',
  20469. duration: '300',
  20470. timingFunction: 'ease-out'
  20471. }
  20472. };
  20473. exports.default = _default;
  20474. /***/ }),
  20475. /* 175 */
  20476. /*!*****************************************************************************************!*\
  20477. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/props/upload.js ***!
  20478. \*****************************************************************************************/
  20479. /*! no static exports found */
  20480. /***/ (function(module, exports, __webpack_require__) {
  20481. "use strict";
  20482. Object.defineProperty(exports, "__esModule", {
  20483. value: true
  20484. });
  20485. exports.default = void 0;
  20486. /*
  20487. * @Author : LQ
  20488. * @Description :
  20489. * @version : 1.0
  20490. * @Date : 2021-08-20 16:44:21
  20491. * @LastAuthor : LQ
  20492. * @lastTime : 2021-08-20 17:09:50
  20493. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  20494. */
  20495. var _default = {
  20496. // upload组件
  20497. upload: {
  20498. accept: 'image',
  20499. capture: function capture() {
  20500. return ['album', 'camera'];
  20501. },
  20502. compressed: true,
  20503. camera: 'back',
  20504. maxDuration: 60,
  20505. uploadIcon: 'camera-fill',
  20506. uploadIconColor: '#D3D4D6',
  20507. useBeforeRead: false,
  20508. previewFullImage: true,
  20509. maxCount: 52,
  20510. disabled: false,
  20511. imageMode: 'aspectFill',
  20512. name: '',
  20513. sizeType: function sizeType() {
  20514. return ['original', 'compressed'];
  20515. },
  20516. multiple: false,
  20517. deletable: true,
  20518. maxSize: Number.MAX_VALUE,
  20519. fileList: function fileList() {
  20520. return [];
  20521. },
  20522. uploadText: '',
  20523. width: 80,
  20524. height: 80,
  20525. previewImage: true
  20526. }
  20527. };
  20528. exports.default = _default;
  20529. /***/ }),
  20530. /* 176 */
  20531. /*!***********************************************************************************!*\
  20532. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/config/zIndex.js ***!
  20533. \***********************************************************************************/
  20534. /*! no static exports found */
  20535. /***/ (function(module, exports, __webpack_require__) {
  20536. "use strict";
  20537. Object.defineProperty(exports, "__esModule", {
  20538. value: true
  20539. });
  20540. exports.default = void 0;
  20541. // uniapp在H5中各API的z-index值如下:
  20542. /**
  20543. * actionsheet: 999
  20544. * modal: 999
  20545. * navigate: 998
  20546. * tabbar: 998
  20547. * toast: 999
  20548. */
  20549. var _default = {
  20550. toast: 10090,
  20551. noNetwork: 10080,
  20552. // popup包含popup,actionsheet,keyboard,picker的值
  20553. popup: 10075,
  20554. mask: 10070,
  20555. navbar: 980,
  20556. topTips: 975,
  20557. sticky: 970,
  20558. indexListSticky: 965
  20559. };
  20560. exports.default = _default;
  20561. /***/ }),
  20562. /* 177 */
  20563. /*!***************************************************************************************!*\
  20564. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/libs/function/platform.js ***!
  20565. \***************************************************************************************/
  20566. /*! no static exports found */
  20567. /***/ (function(module, exports, __webpack_require__) {
  20568. "use strict";
  20569. Object.defineProperty(exports, "__esModule", {
  20570. value: true
  20571. });
  20572. exports.default = void 0;
  20573. /**
  20574. * 注意:
  20575. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  20576. * module.exports = {
  20577. * transpileDependencies: ['uview-v2']
  20578. * }
  20579. */
  20580. var platform = 'none';
  20581. platform = 'vue2';
  20582. platform = 'weixin';
  20583. platform = 'mp';
  20584. var _default = platform;
  20585. exports.default = _default;
  20586. /***/ }),
  20587. /* 178 */
  20588. /*!*******************************************************!*\
  20589. !*** D:/demo/businessCard/xiaochengxu/store/index.js ***!
  20590. \*******************************************************/
  20591. /*! no static exports found */
  20592. /***/ (function(module, exports, __webpack_require__) {
  20593. "use strict";
  20594. /* WEBPACK VAR INJECTION */(function(uni) {
  20595. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20596. Object.defineProperty(exports, "__esModule", {
  20597. value: true
  20598. });
  20599. exports.default = void 0;
  20600. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  20601. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 179));
  20602. _vue.default.use(_vuex.default);
  20603. var lifeData = {};
  20604. try {
  20605. // 尝试获取本地是否存在lifeData变量,第一次启动APP时是不存在的
  20606. lifeData = uni.getStorageSync('lifeData');
  20607. } catch (e) {}
  20608. // 需要永久存储,且下次APP启动需要取出的,在state中的变量名
  20609. var saveStateKeys = ['userInfo', 'goods', 'isHaveService'];
  20610. // 保存变量到本地存储中
  20611. var saveLifeData = function saveLifeData(key, value) {
  20612. // 判断变量名是否在需要存储的数组中
  20613. if (saveStateKeys.indexOf(key) != -1) {
  20614. // 获取本地存储的lifeData对象,将变量添加到对象中
  20615. var tmp = uni.getStorageSync('lifeData');
  20616. // 第一次打开APP,不存在lifeData变量,故放一个{}空对象
  20617. tmp = tmp ? tmp : {};
  20618. // if(key == 'contractTip' && tmp[key] < value){
  20619. // uni.vibrateLong({
  20620. // success: function () {
  20621. // console.log('震动成功');
  20622. // }
  20623. // });
  20624. // }
  20625. // if(key == 'taskTip' && tmp[key] < value){
  20626. // uni.vibrateLong({
  20627. // success: function () {
  20628. // console.log('震动成功');
  20629. // }
  20630. // });
  20631. // }
  20632. tmp[key] = value;
  20633. // 执行这一步后,所有需要存储的变量,都挂载在本地的lifeData对象中
  20634. uni.setStorageSync('lifeData', tmp);
  20635. }
  20636. };
  20637. var store = new _vuex.default.Store({
  20638. modules: {},
  20639. state: {
  20640. sysinfo: uni.getSystemInfoSync(),
  20641. //系统信息
  20642. hasLogin: false,
  20643. isHaveService: false,
  20644. goods: []
  20645. },
  20646. mutations: {
  20647. $uStore: function $uStore(state, payload) {
  20648. // 判断是否多层级调用,state中为对象存在的情况,诸如user.info.score = 1
  20649. var nameArr = payload.name.split('.');
  20650. var saveKey = '';
  20651. var len = nameArr.length;
  20652. if (nameArr.length >= 2) {
  20653. var obj = state[nameArr[0]];
  20654. for (var i = 1; i < len - 1; i++) {
  20655. obj = obj[nameArr[i]];
  20656. }
  20657. obj[nameArr[len - 1]] = payload.value;
  20658. saveKey = nameArr[0];
  20659. } else {
  20660. // 单层级变量,在state就是一个普通变量的情况
  20661. state[payload.name] = payload.value;
  20662. saveKey = payload.name;
  20663. }
  20664. // 保存变量到本地,见顶部函数定义
  20665. saveLifeData(saveKey, state[saveKey]);
  20666. },
  20667. login: function login(state, provider) {
  20668. state.hasLogin = true;
  20669. state.userInfo = provider;
  20670. uni.setStorageSync('userInfo', provider);
  20671. },
  20672. logout: function logout(state) {
  20673. state.hasLogin = false;
  20674. state.userInfo = {};
  20675. uni.removeStorageSync('userInfo');
  20676. },
  20677. goodCar: function goodCar(state, provider) {
  20678. state.goods = provider;
  20679. uni.setStorageSync('goods', provider);
  20680. },
  20681. goodService: function goodService(state, provider) {
  20682. state.isHaveService = provider;
  20683. uni.setStorageSync('isHaveService', provider);
  20684. }
  20685. },
  20686. actions: {},
  20687. getters: {
  20688. getUserInfo: function getUserInfo(state) {
  20689. return state.userInfo;
  20690. }
  20691. }
  20692. });
  20693. var _default = store;
  20694. exports.default = _default;
  20695. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20696. /***/ }),
  20697. /* 179 */
  20698. /*!**************************************************************************************!*\
  20699. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  20700. \**************************************************************************************/
  20701. /*! no static exports found */
  20702. /***/ (function(module, exports, __webpack_require__) {
  20703. "use strict";
  20704. /* WEBPACK VAR INJECTION */(function(global) {/*!
  20705. * vuex v3.6.2
  20706. * (c) 2021 Evan You
  20707. * @license MIT
  20708. */
  20709. function applyMixin (Vue) {
  20710. var version = Number(Vue.version.split('.')[0]);
  20711. if (version >= 2) {
  20712. Vue.mixin({ beforeCreate: vuexInit });
  20713. } else {
  20714. // override init and inject vuex init procedure
  20715. // for 1.x backwards compatibility.
  20716. var _init = Vue.prototype._init;
  20717. Vue.prototype._init = function (options) {
  20718. if ( options === void 0 ) options = {};
  20719. options.init = options.init
  20720. ? [vuexInit].concat(options.init)
  20721. : vuexInit;
  20722. _init.call(this, options);
  20723. };
  20724. }
  20725. /**
  20726. * Vuex init hook, injected into each instances init hooks list.
  20727. */
  20728. function vuexInit () {
  20729. var options = this.$options;
  20730. // store injection
  20731. if (options.store) {
  20732. this.$store = typeof options.store === 'function'
  20733. ? options.store()
  20734. : options.store;
  20735. } else if (options.parent && options.parent.$store) {
  20736. this.$store = options.parent.$store;
  20737. }
  20738. }
  20739. }
  20740. var target = typeof window !== 'undefined'
  20741. ? window
  20742. : typeof global !== 'undefined'
  20743. ? global
  20744. : {};
  20745. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  20746. function devtoolPlugin (store) {
  20747. if (!devtoolHook) { return }
  20748. store._devtoolHook = devtoolHook;
  20749. devtoolHook.emit('vuex:init', store);
  20750. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  20751. store.replaceState(targetState);
  20752. });
  20753. store.subscribe(function (mutation, state) {
  20754. devtoolHook.emit('vuex:mutation', mutation, state);
  20755. }, { prepend: true });
  20756. store.subscribeAction(function (action, state) {
  20757. devtoolHook.emit('vuex:action', action, state);
  20758. }, { prepend: true });
  20759. }
  20760. /**
  20761. * Get the first item that pass the test
  20762. * by second argument function
  20763. *
  20764. * @param {Array} list
  20765. * @param {Function} f
  20766. * @return {*}
  20767. */
  20768. function find (list, f) {
  20769. return list.filter(f)[0]
  20770. }
  20771. /**
  20772. * Deep copy the given object considering circular structure.
  20773. * This function caches all nested objects and its copies.
  20774. * If it detects circular structure, use cached copy to avoid infinite loop.
  20775. *
  20776. * @param {*} obj
  20777. * @param {Array<Object>} cache
  20778. * @return {*}
  20779. */
  20780. function deepCopy (obj, cache) {
  20781. if ( cache === void 0 ) cache = [];
  20782. // just return if obj is immutable value
  20783. if (obj === null || typeof obj !== 'object') {
  20784. return obj
  20785. }
  20786. // if obj is hit, it is in circular structure
  20787. var hit = find(cache, function (c) { return c.original === obj; });
  20788. if (hit) {
  20789. return hit.copy
  20790. }
  20791. var copy = Array.isArray(obj) ? [] : {};
  20792. // put the copy into cache at first
  20793. // because we want to refer it in recursive deepCopy
  20794. cache.push({
  20795. original: obj,
  20796. copy: copy
  20797. });
  20798. Object.keys(obj).forEach(function (key) {
  20799. copy[key] = deepCopy(obj[key], cache);
  20800. });
  20801. return copy
  20802. }
  20803. /**
  20804. * forEach for object
  20805. */
  20806. function forEachValue (obj, fn) {
  20807. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  20808. }
  20809. function isObject (obj) {
  20810. return obj !== null && typeof obj === 'object'
  20811. }
  20812. function isPromise (val) {
  20813. return val && typeof val.then === 'function'
  20814. }
  20815. function assert (condition, msg) {
  20816. if (!condition) { throw new Error(("[vuex] " + msg)) }
  20817. }
  20818. function partial (fn, arg) {
  20819. return function () {
  20820. return fn(arg)
  20821. }
  20822. }
  20823. // Base data struct for store's module, package with some attribute and method
  20824. var Module = function Module (rawModule, runtime) {
  20825. this.runtime = runtime;
  20826. // Store some children item
  20827. this._children = Object.create(null);
  20828. // Store the origin module object which passed by programmer
  20829. this._rawModule = rawModule;
  20830. var rawState = rawModule.state;
  20831. // Store the origin module's state
  20832. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  20833. };
  20834. var prototypeAccessors = { namespaced: { configurable: true } };
  20835. prototypeAccessors.namespaced.get = function () {
  20836. return !!this._rawModule.namespaced
  20837. };
  20838. Module.prototype.addChild = function addChild (key, module) {
  20839. this._children[key] = module;
  20840. };
  20841. Module.prototype.removeChild = function removeChild (key) {
  20842. delete this._children[key];
  20843. };
  20844. Module.prototype.getChild = function getChild (key) {
  20845. return this._children[key]
  20846. };
  20847. Module.prototype.hasChild = function hasChild (key) {
  20848. return key in this._children
  20849. };
  20850. Module.prototype.update = function update (rawModule) {
  20851. this._rawModule.namespaced = rawModule.namespaced;
  20852. if (rawModule.actions) {
  20853. this._rawModule.actions = rawModule.actions;
  20854. }
  20855. if (rawModule.mutations) {
  20856. this._rawModule.mutations = rawModule.mutations;
  20857. }
  20858. if (rawModule.getters) {
  20859. this._rawModule.getters = rawModule.getters;
  20860. }
  20861. };
  20862. Module.prototype.forEachChild = function forEachChild (fn) {
  20863. forEachValue(this._children, fn);
  20864. };
  20865. Module.prototype.forEachGetter = function forEachGetter (fn) {
  20866. if (this._rawModule.getters) {
  20867. forEachValue(this._rawModule.getters, fn);
  20868. }
  20869. };
  20870. Module.prototype.forEachAction = function forEachAction (fn) {
  20871. if (this._rawModule.actions) {
  20872. forEachValue(this._rawModule.actions, fn);
  20873. }
  20874. };
  20875. Module.prototype.forEachMutation = function forEachMutation (fn) {
  20876. if (this._rawModule.mutations) {
  20877. forEachValue(this._rawModule.mutations, fn);
  20878. }
  20879. };
  20880. Object.defineProperties( Module.prototype, prototypeAccessors );
  20881. var ModuleCollection = function ModuleCollection (rawRootModule) {
  20882. // register root module (Vuex.Store options)
  20883. this.register([], rawRootModule, false);
  20884. };
  20885. ModuleCollection.prototype.get = function get (path) {
  20886. return path.reduce(function (module, key) {
  20887. return module.getChild(key)
  20888. }, this.root)
  20889. };
  20890. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  20891. var module = this.root;
  20892. return path.reduce(function (namespace, key) {
  20893. module = module.getChild(key);
  20894. return namespace + (module.namespaced ? key + '/' : '')
  20895. }, '')
  20896. };
  20897. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  20898. update([], this.root, rawRootModule);
  20899. };
  20900. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  20901. var this$1 = this;
  20902. if ( runtime === void 0 ) runtime = true;
  20903. if ((true)) {
  20904. assertRawModule(path, rawModule);
  20905. }
  20906. var newModule = new Module(rawModule, runtime);
  20907. if (path.length === 0) {
  20908. this.root = newModule;
  20909. } else {
  20910. var parent = this.get(path.slice(0, -1));
  20911. parent.addChild(path[path.length - 1], newModule);
  20912. }
  20913. // register nested modules
  20914. if (rawModule.modules) {
  20915. forEachValue(rawModule.modules, function (rawChildModule, key) {
  20916. this$1.register(path.concat(key), rawChildModule, runtime);
  20917. });
  20918. }
  20919. };
  20920. ModuleCollection.prototype.unregister = function unregister (path) {
  20921. var parent = this.get(path.slice(0, -1));
  20922. var key = path[path.length - 1];
  20923. var child = parent.getChild(key);
  20924. if (!child) {
  20925. if ((true)) {
  20926. console.warn(
  20927. "[vuex] trying to unregister module '" + key + "', which is " +
  20928. "not registered"
  20929. );
  20930. }
  20931. return
  20932. }
  20933. if (!child.runtime) {
  20934. return
  20935. }
  20936. parent.removeChild(key);
  20937. };
  20938. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  20939. var parent = this.get(path.slice(0, -1));
  20940. var key = path[path.length - 1];
  20941. if (parent) {
  20942. return parent.hasChild(key)
  20943. }
  20944. return false
  20945. };
  20946. function update (path, targetModule, newModule) {
  20947. if ((true)) {
  20948. assertRawModule(path, newModule);
  20949. }
  20950. // update target module
  20951. targetModule.update(newModule);
  20952. // update nested modules
  20953. if (newModule.modules) {
  20954. for (var key in newModule.modules) {
  20955. if (!targetModule.getChild(key)) {
  20956. if ((true)) {
  20957. console.warn(
  20958. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  20959. 'manual reload is needed'
  20960. );
  20961. }
  20962. return
  20963. }
  20964. update(
  20965. path.concat(key),
  20966. targetModule.getChild(key),
  20967. newModule.modules[key]
  20968. );
  20969. }
  20970. }
  20971. }
  20972. var functionAssert = {
  20973. assert: function (value) { return typeof value === 'function'; },
  20974. expected: 'function'
  20975. };
  20976. var objectAssert = {
  20977. assert: function (value) { return typeof value === 'function' ||
  20978. (typeof value === 'object' && typeof value.handler === 'function'); },
  20979. expected: 'function or object with "handler" function'
  20980. };
  20981. var assertTypes = {
  20982. getters: functionAssert,
  20983. mutations: functionAssert,
  20984. actions: objectAssert
  20985. };
  20986. function assertRawModule (path, rawModule) {
  20987. Object.keys(assertTypes).forEach(function (key) {
  20988. if (!rawModule[key]) { return }
  20989. var assertOptions = assertTypes[key];
  20990. forEachValue(rawModule[key], function (value, type) {
  20991. assert(
  20992. assertOptions.assert(value),
  20993. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  20994. );
  20995. });
  20996. });
  20997. }
  20998. function makeAssertionMessage (path, key, type, value, expected) {
  20999. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  21000. if (path.length > 0) {
  21001. buf += " in module \"" + (path.join('.')) + "\"";
  21002. }
  21003. buf += " is " + (JSON.stringify(value)) + ".";
  21004. return buf
  21005. }
  21006. var Vue; // bind on install
  21007. var Store = function Store (options) {
  21008. var this$1 = this;
  21009. if ( options === void 0 ) options = {};
  21010. // Auto install if it is not done yet and `window` has `Vue`.
  21011. // To allow users to avoid auto-installation in some cases,
  21012. // this code should be placed here. See #731
  21013. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  21014. install(window.Vue);
  21015. }
  21016. if ((true)) {
  21017. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  21018. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  21019. assert(this instanceof Store, "store must be called with the new operator.");
  21020. }
  21021. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  21022. var strict = options.strict; if ( strict === void 0 ) strict = false;
  21023. // store internal state
  21024. this._committing = false;
  21025. this._actions = Object.create(null);
  21026. this._actionSubscribers = [];
  21027. this._mutations = Object.create(null);
  21028. this._wrappedGetters = Object.create(null);
  21029. this._modules = new ModuleCollection(options);
  21030. this._modulesNamespaceMap = Object.create(null);
  21031. this._subscribers = [];
  21032. this._watcherVM = new Vue();
  21033. this._makeLocalGettersCache = Object.create(null);
  21034. // bind commit and dispatch to self
  21035. var store = this;
  21036. var ref = this;
  21037. var dispatch = ref.dispatch;
  21038. var commit = ref.commit;
  21039. this.dispatch = function boundDispatch (type, payload) {
  21040. return dispatch.call(store, type, payload)
  21041. };
  21042. this.commit = function boundCommit (type, payload, options) {
  21043. return commit.call(store, type, payload, options)
  21044. };
  21045. // strict mode
  21046. this.strict = strict;
  21047. var state = this._modules.root.state;
  21048. // init root module.
  21049. // this also recursively registers all sub-modules
  21050. // and collects all module getters inside this._wrappedGetters
  21051. installModule(this, state, [], this._modules.root);
  21052. // initialize the store vm, which is responsible for the reactivity
  21053. // (also registers _wrappedGetters as computed properties)
  21054. resetStoreVM(this, state);
  21055. // apply plugins
  21056. plugins.forEach(function (plugin) { return plugin(this$1); });
  21057. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  21058. if (useDevtools) {
  21059. devtoolPlugin(this);
  21060. }
  21061. };
  21062. var prototypeAccessors$1 = { state: { configurable: true } };
  21063. prototypeAccessors$1.state.get = function () {
  21064. return this._vm._data.$$state
  21065. };
  21066. prototypeAccessors$1.state.set = function (v) {
  21067. if ((true)) {
  21068. assert(false, "use store.replaceState() to explicit replace store state.");
  21069. }
  21070. };
  21071. Store.prototype.commit = function commit (_type, _payload, _options) {
  21072. var this$1 = this;
  21073. // check object-style commit
  21074. var ref = unifyObjectStyle(_type, _payload, _options);
  21075. var type = ref.type;
  21076. var payload = ref.payload;
  21077. var options = ref.options;
  21078. var mutation = { type: type, payload: payload };
  21079. var entry = this._mutations[type];
  21080. if (!entry) {
  21081. if ((true)) {
  21082. console.error(("[vuex] unknown mutation type: " + type));
  21083. }
  21084. return
  21085. }
  21086. this._withCommit(function () {
  21087. entry.forEach(function commitIterator (handler) {
  21088. handler(payload);
  21089. });
  21090. });
  21091. this._subscribers
  21092. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  21093. .forEach(function (sub) { return sub(mutation, this$1.state); });
  21094. if (
  21095. ( true) &&
  21096. options && options.silent
  21097. ) {
  21098. console.warn(
  21099. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  21100. 'Use the filter functionality in the vue-devtools'
  21101. );
  21102. }
  21103. };
  21104. Store.prototype.dispatch = function dispatch (_type, _payload) {
  21105. var this$1 = this;
  21106. // check object-style dispatch
  21107. var ref = unifyObjectStyle(_type, _payload);
  21108. var type = ref.type;
  21109. var payload = ref.payload;
  21110. var action = { type: type, payload: payload };
  21111. var entry = this._actions[type];
  21112. if (!entry) {
  21113. if ((true)) {
  21114. console.error(("[vuex] unknown action type: " + type));
  21115. }
  21116. return
  21117. }
  21118. try {
  21119. this._actionSubscribers
  21120. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  21121. .filter(function (sub) { return sub.before; })
  21122. .forEach(function (sub) { return sub.before(action, this$1.state); });
  21123. } catch (e) {
  21124. if ((true)) {
  21125. console.warn("[vuex] error in before action subscribers: ");
  21126. console.error(e);
  21127. }
  21128. }
  21129. var result = entry.length > 1
  21130. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  21131. : entry[0](payload);
  21132. return new Promise(function (resolve, reject) {
  21133. result.then(function (res) {
  21134. try {
  21135. this$1._actionSubscribers
  21136. .filter(function (sub) { return sub.after; })
  21137. .forEach(function (sub) { return sub.after(action, this$1.state); });
  21138. } catch (e) {
  21139. if ((true)) {
  21140. console.warn("[vuex] error in after action subscribers: ");
  21141. console.error(e);
  21142. }
  21143. }
  21144. resolve(res);
  21145. }, function (error) {
  21146. try {
  21147. this$1._actionSubscribers
  21148. .filter(function (sub) { return sub.error; })
  21149. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  21150. } catch (e) {
  21151. if ((true)) {
  21152. console.warn("[vuex] error in error action subscribers: ");
  21153. console.error(e);
  21154. }
  21155. }
  21156. reject(error);
  21157. });
  21158. })
  21159. };
  21160. Store.prototype.subscribe = function subscribe (fn, options) {
  21161. return genericSubscribe(fn, this._subscribers, options)
  21162. };
  21163. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  21164. var subs = typeof fn === 'function' ? { before: fn } : fn;
  21165. return genericSubscribe(subs, this._actionSubscribers, options)
  21166. };
  21167. Store.prototype.watch = function watch (getter, cb, options) {
  21168. var this$1 = this;
  21169. if ((true)) {
  21170. assert(typeof getter === 'function', "store.watch only accepts a function.");
  21171. }
  21172. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  21173. };
  21174. Store.prototype.replaceState = function replaceState (state) {
  21175. var this$1 = this;
  21176. this._withCommit(function () {
  21177. this$1._vm._data.$$state = state;
  21178. });
  21179. };
  21180. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  21181. if ( options === void 0 ) options = {};
  21182. if (typeof path === 'string') { path = [path]; }
  21183. if ((true)) {
  21184. assert(Array.isArray(path), "module path must be a string or an Array.");
  21185. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  21186. }
  21187. this._modules.register(path, rawModule);
  21188. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  21189. // reset store to update getters...
  21190. resetStoreVM(this, this.state);
  21191. };
  21192. Store.prototype.unregisterModule = function unregisterModule (path) {
  21193. var this$1 = this;
  21194. if (typeof path === 'string') { path = [path]; }
  21195. if ((true)) {
  21196. assert(Array.isArray(path), "module path must be a string or an Array.");
  21197. }
  21198. this._modules.unregister(path);
  21199. this._withCommit(function () {
  21200. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  21201. Vue.delete(parentState, path[path.length - 1]);
  21202. });
  21203. resetStore(this);
  21204. };
  21205. Store.prototype.hasModule = function hasModule (path) {
  21206. if (typeof path === 'string') { path = [path]; }
  21207. if ((true)) {
  21208. assert(Array.isArray(path), "module path must be a string or an Array.");
  21209. }
  21210. return this._modules.isRegistered(path)
  21211. };
  21212. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  21213. this._modules.update(newOptions);
  21214. resetStore(this, true);
  21215. };
  21216. Store.prototype._withCommit = function _withCommit (fn) {
  21217. var committing = this._committing;
  21218. this._committing = true;
  21219. fn();
  21220. this._committing = committing;
  21221. };
  21222. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  21223. function genericSubscribe (fn, subs, options) {
  21224. if (subs.indexOf(fn) < 0) {
  21225. options && options.prepend
  21226. ? subs.unshift(fn)
  21227. : subs.push(fn);
  21228. }
  21229. return function () {
  21230. var i = subs.indexOf(fn);
  21231. if (i > -1) {
  21232. subs.splice(i, 1);
  21233. }
  21234. }
  21235. }
  21236. function resetStore (store, hot) {
  21237. store._actions = Object.create(null);
  21238. store._mutations = Object.create(null);
  21239. store._wrappedGetters = Object.create(null);
  21240. store._modulesNamespaceMap = Object.create(null);
  21241. var state = store.state;
  21242. // init all modules
  21243. installModule(store, state, [], store._modules.root, true);
  21244. // reset vm
  21245. resetStoreVM(store, state, hot);
  21246. }
  21247. function resetStoreVM (store, state, hot) {
  21248. var oldVm = store._vm;
  21249. // bind store public getters
  21250. store.getters = {};
  21251. // reset local getters cache
  21252. store._makeLocalGettersCache = Object.create(null);
  21253. var wrappedGetters = store._wrappedGetters;
  21254. var computed = {};
  21255. forEachValue(wrappedGetters, function (fn, key) {
  21256. // use computed to leverage its lazy-caching mechanism
  21257. // direct inline function use will lead to closure preserving oldVm.
  21258. // using partial to return function with only arguments preserved in closure environment.
  21259. computed[key] = partial(fn, store);
  21260. Object.defineProperty(store.getters, key, {
  21261. get: function () { return store._vm[key]; },
  21262. enumerable: true // for local getters
  21263. });
  21264. });
  21265. // use a Vue instance to store the state tree
  21266. // suppress warnings just in case the user has added
  21267. // some funky global mixins
  21268. var silent = Vue.config.silent;
  21269. Vue.config.silent = true;
  21270. store._vm = new Vue({
  21271. data: {
  21272. $$state: state
  21273. },
  21274. computed: computed
  21275. });
  21276. Vue.config.silent = silent;
  21277. // enable strict mode for new vm
  21278. if (store.strict) {
  21279. enableStrictMode(store);
  21280. }
  21281. if (oldVm) {
  21282. if (hot) {
  21283. // dispatch changes in all subscribed watchers
  21284. // to force getter re-evaluation for hot reloading.
  21285. store._withCommit(function () {
  21286. oldVm._data.$$state = null;
  21287. });
  21288. }
  21289. Vue.nextTick(function () { return oldVm.$destroy(); });
  21290. }
  21291. }
  21292. function installModule (store, rootState, path, module, hot) {
  21293. var isRoot = !path.length;
  21294. var namespace = store._modules.getNamespace(path);
  21295. // register in namespace map
  21296. if (module.namespaced) {
  21297. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  21298. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  21299. }
  21300. store._modulesNamespaceMap[namespace] = module;
  21301. }
  21302. // set state
  21303. if (!isRoot && !hot) {
  21304. var parentState = getNestedState(rootState, path.slice(0, -1));
  21305. var moduleName = path[path.length - 1];
  21306. store._withCommit(function () {
  21307. if ((true)) {
  21308. if (moduleName in parentState) {
  21309. console.warn(
  21310. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  21311. );
  21312. }
  21313. }
  21314. Vue.set(parentState, moduleName, module.state);
  21315. });
  21316. }
  21317. var local = module.context = makeLocalContext(store, namespace, path);
  21318. module.forEachMutation(function (mutation, key) {
  21319. var namespacedType = namespace + key;
  21320. registerMutation(store, namespacedType, mutation, local);
  21321. });
  21322. module.forEachAction(function (action, key) {
  21323. var type = action.root ? key : namespace + key;
  21324. var handler = action.handler || action;
  21325. registerAction(store, type, handler, local);
  21326. });
  21327. module.forEachGetter(function (getter, key) {
  21328. var namespacedType = namespace + key;
  21329. registerGetter(store, namespacedType, getter, local);
  21330. });
  21331. module.forEachChild(function (child, key) {
  21332. installModule(store, rootState, path.concat(key), child, hot);
  21333. });
  21334. }
  21335. /**
  21336. * make localized dispatch, commit, getters and state
  21337. * if there is no namespace, just use root ones
  21338. */
  21339. function makeLocalContext (store, namespace, path) {
  21340. var noNamespace = namespace === '';
  21341. var local = {
  21342. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  21343. var args = unifyObjectStyle(_type, _payload, _options);
  21344. var payload = args.payload;
  21345. var options = args.options;
  21346. var type = args.type;
  21347. if (!options || !options.root) {
  21348. type = namespace + type;
  21349. if (( true) && !store._actions[type]) {
  21350. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  21351. return
  21352. }
  21353. }
  21354. return store.dispatch(type, payload)
  21355. },
  21356. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  21357. var args = unifyObjectStyle(_type, _payload, _options);
  21358. var payload = args.payload;
  21359. var options = args.options;
  21360. var type = args.type;
  21361. if (!options || !options.root) {
  21362. type = namespace + type;
  21363. if (( true) && !store._mutations[type]) {
  21364. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  21365. return
  21366. }
  21367. }
  21368. store.commit(type, payload, options);
  21369. }
  21370. };
  21371. // getters and state object must be gotten lazily
  21372. // because they will be changed by vm update
  21373. Object.defineProperties(local, {
  21374. getters: {
  21375. get: noNamespace
  21376. ? function () { return store.getters; }
  21377. : function () { return makeLocalGetters(store, namespace); }
  21378. },
  21379. state: {
  21380. get: function () { return getNestedState(store.state, path); }
  21381. }
  21382. });
  21383. return local
  21384. }
  21385. function makeLocalGetters (store, namespace) {
  21386. if (!store._makeLocalGettersCache[namespace]) {
  21387. var gettersProxy = {};
  21388. var splitPos = namespace.length;
  21389. Object.keys(store.getters).forEach(function (type) {
  21390. // skip if the target getter is not match this namespace
  21391. if (type.slice(0, splitPos) !== namespace) { return }
  21392. // extract local getter type
  21393. var localType = type.slice(splitPos);
  21394. // Add a port to the getters proxy.
  21395. // Define as getter property because
  21396. // we do not want to evaluate the getters in this time.
  21397. Object.defineProperty(gettersProxy, localType, {
  21398. get: function () { return store.getters[type]; },
  21399. enumerable: true
  21400. });
  21401. });
  21402. store._makeLocalGettersCache[namespace] = gettersProxy;
  21403. }
  21404. return store._makeLocalGettersCache[namespace]
  21405. }
  21406. function registerMutation (store, type, handler, local) {
  21407. var entry = store._mutations[type] || (store._mutations[type] = []);
  21408. entry.push(function wrappedMutationHandler (payload) {
  21409. handler.call(store, local.state, payload);
  21410. });
  21411. }
  21412. function registerAction (store, type, handler, local) {
  21413. var entry = store._actions[type] || (store._actions[type] = []);
  21414. entry.push(function wrappedActionHandler (payload) {
  21415. var res = handler.call(store, {
  21416. dispatch: local.dispatch,
  21417. commit: local.commit,
  21418. getters: local.getters,
  21419. state: local.state,
  21420. rootGetters: store.getters,
  21421. rootState: store.state
  21422. }, payload);
  21423. if (!isPromise(res)) {
  21424. res = Promise.resolve(res);
  21425. }
  21426. if (store._devtoolHook) {
  21427. return res.catch(function (err) {
  21428. store._devtoolHook.emit('vuex:error', err);
  21429. throw err
  21430. })
  21431. } else {
  21432. return res
  21433. }
  21434. });
  21435. }
  21436. function registerGetter (store, type, rawGetter, local) {
  21437. if (store._wrappedGetters[type]) {
  21438. if ((true)) {
  21439. console.error(("[vuex] duplicate getter key: " + type));
  21440. }
  21441. return
  21442. }
  21443. store._wrappedGetters[type] = function wrappedGetter (store) {
  21444. return rawGetter(
  21445. local.state, // local state
  21446. local.getters, // local getters
  21447. store.state, // root state
  21448. store.getters // root getters
  21449. )
  21450. };
  21451. }
  21452. function enableStrictMode (store) {
  21453. store._vm.$watch(function () { return this._data.$$state }, function () {
  21454. if ((true)) {
  21455. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  21456. }
  21457. }, { deep: true, sync: true });
  21458. }
  21459. function getNestedState (state, path) {
  21460. return path.reduce(function (state, key) { return state[key]; }, state)
  21461. }
  21462. function unifyObjectStyle (type, payload, options) {
  21463. if (isObject(type) && type.type) {
  21464. options = payload;
  21465. payload = type;
  21466. type = type.type;
  21467. }
  21468. if ((true)) {
  21469. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  21470. }
  21471. return { type: type, payload: payload, options: options }
  21472. }
  21473. function install (_Vue) {
  21474. if (Vue && _Vue === Vue) {
  21475. if ((true)) {
  21476. console.error(
  21477. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  21478. );
  21479. }
  21480. return
  21481. }
  21482. Vue = _Vue;
  21483. applyMixin(Vue);
  21484. }
  21485. /**
  21486. * Reduce the code which written in Vue.js for getting the state.
  21487. * @param {String} [namespace] - Module's namespace
  21488. * @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.
  21489. * @param {Object}
  21490. */
  21491. var mapState = normalizeNamespace(function (namespace, states) {
  21492. var res = {};
  21493. if (( true) && !isValidMap(states)) {
  21494. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  21495. }
  21496. normalizeMap(states).forEach(function (ref) {
  21497. var key = ref.key;
  21498. var val = ref.val;
  21499. res[key] = function mappedState () {
  21500. var state = this.$store.state;
  21501. var getters = this.$store.getters;
  21502. if (namespace) {
  21503. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  21504. if (!module) {
  21505. return
  21506. }
  21507. state = module.context.state;
  21508. getters = module.context.getters;
  21509. }
  21510. return typeof val === 'function'
  21511. ? val.call(this, state, getters)
  21512. : state[val]
  21513. };
  21514. // mark vuex getter for devtools
  21515. res[key].vuex = true;
  21516. });
  21517. return res
  21518. });
  21519. /**
  21520. * Reduce the code which written in Vue.js for committing the mutation
  21521. * @param {String} [namespace] - Module's namespace
  21522. * @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.
  21523. * @return {Object}
  21524. */
  21525. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  21526. var res = {};
  21527. if (( true) && !isValidMap(mutations)) {
  21528. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  21529. }
  21530. normalizeMap(mutations).forEach(function (ref) {
  21531. var key = ref.key;
  21532. var val = ref.val;
  21533. res[key] = function mappedMutation () {
  21534. var args = [], len = arguments.length;
  21535. while ( len-- ) args[ len ] = arguments[ len ];
  21536. // Get the commit method from store
  21537. var commit = this.$store.commit;
  21538. if (namespace) {
  21539. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  21540. if (!module) {
  21541. return
  21542. }
  21543. commit = module.context.commit;
  21544. }
  21545. return typeof val === 'function'
  21546. ? val.apply(this, [commit].concat(args))
  21547. : commit.apply(this.$store, [val].concat(args))
  21548. };
  21549. });
  21550. return res
  21551. });
  21552. /**
  21553. * Reduce the code which written in Vue.js for getting the getters
  21554. * @param {String} [namespace] - Module's namespace
  21555. * @param {Object|Array} getters
  21556. * @return {Object}
  21557. */
  21558. var mapGetters = normalizeNamespace(function (namespace, getters) {
  21559. var res = {};
  21560. if (( true) && !isValidMap(getters)) {
  21561. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  21562. }
  21563. normalizeMap(getters).forEach(function (ref) {
  21564. var key = ref.key;
  21565. var val = ref.val;
  21566. // The namespace has been mutated by normalizeNamespace
  21567. val = namespace + val;
  21568. res[key] = function mappedGetter () {
  21569. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  21570. return
  21571. }
  21572. if (( true) && !(val in this.$store.getters)) {
  21573. console.error(("[vuex] unknown getter: " + val));
  21574. return
  21575. }
  21576. return this.$store.getters[val]
  21577. };
  21578. // mark vuex getter for devtools
  21579. res[key].vuex = true;
  21580. });
  21581. return res
  21582. });
  21583. /**
  21584. * Reduce the code which written in Vue.js for dispatch the action
  21585. * @param {String} [namespace] - Module's namespace
  21586. * @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.
  21587. * @return {Object}
  21588. */
  21589. var mapActions = normalizeNamespace(function (namespace, actions) {
  21590. var res = {};
  21591. if (( true) && !isValidMap(actions)) {
  21592. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  21593. }
  21594. normalizeMap(actions).forEach(function (ref) {
  21595. var key = ref.key;
  21596. var val = ref.val;
  21597. res[key] = function mappedAction () {
  21598. var args = [], len = arguments.length;
  21599. while ( len-- ) args[ len ] = arguments[ len ];
  21600. // get dispatch function from store
  21601. var dispatch = this.$store.dispatch;
  21602. if (namespace) {
  21603. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  21604. if (!module) {
  21605. return
  21606. }
  21607. dispatch = module.context.dispatch;
  21608. }
  21609. return typeof val === 'function'
  21610. ? val.apply(this, [dispatch].concat(args))
  21611. : dispatch.apply(this.$store, [val].concat(args))
  21612. };
  21613. });
  21614. return res
  21615. });
  21616. /**
  21617. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  21618. * @param {String} namespace
  21619. * @return {Object}
  21620. */
  21621. var createNamespacedHelpers = function (namespace) { return ({
  21622. mapState: mapState.bind(null, namespace),
  21623. mapGetters: mapGetters.bind(null, namespace),
  21624. mapMutations: mapMutations.bind(null, namespace),
  21625. mapActions: mapActions.bind(null, namespace)
  21626. }); };
  21627. /**
  21628. * Normalize the map
  21629. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  21630. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  21631. * @param {Array|Object} map
  21632. * @return {Object}
  21633. */
  21634. function normalizeMap (map) {
  21635. if (!isValidMap(map)) {
  21636. return []
  21637. }
  21638. return Array.isArray(map)
  21639. ? map.map(function (key) { return ({ key: key, val: key }); })
  21640. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  21641. }
  21642. /**
  21643. * Validate whether given map is valid or not
  21644. * @param {*} map
  21645. * @return {Boolean}
  21646. */
  21647. function isValidMap (map) {
  21648. return Array.isArray(map) || isObject(map)
  21649. }
  21650. /**
  21651. * 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.
  21652. * @param {Function} fn
  21653. * @return {Function}
  21654. */
  21655. function normalizeNamespace (fn) {
  21656. return function (namespace, map) {
  21657. if (typeof namespace !== 'string') {
  21658. map = namespace;
  21659. namespace = '';
  21660. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  21661. namespace += '/';
  21662. }
  21663. return fn(namespace, map)
  21664. }
  21665. }
  21666. /**
  21667. * Search a special module from store by namespace. if module not exist, print error message.
  21668. * @param {Object} store
  21669. * @param {String} helper
  21670. * @param {String} namespace
  21671. * @return {Object}
  21672. */
  21673. function getModuleByNamespace (store, helper, namespace) {
  21674. var module = store._modulesNamespaceMap[namespace];
  21675. if (( true) && !module) {
  21676. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  21677. }
  21678. return module
  21679. }
  21680. // Credits: borrowed code from fcomb/redux-logger
  21681. function createLogger (ref) {
  21682. if ( ref === void 0 ) ref = {};
  21683. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  21684. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  21685. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  21686. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  21687. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  21688. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  21689. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  21690. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  21691. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  21692. return function (store) {
  21693. var prevState = deepCopy(store.state);
  21694. if (typeof logger === 'undefined') {
  21695. return
  21696. }
  21697. if (logMutations) {
  21698. store.subscribe(function (mutation, state) {
  21699. var nextState = deepCopy(state);
  21700. if (filter(mutation, prevState, nextState)) {
  21701. var formattedTime = getFormattedTime();
  21702. var formattedMutation = mutationTransformer(mutation);
  21703. var message = "mutation " + (mutation.type) + formattedTime;
  21704. startMessage(logger, message, collapsed);
  21705. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  21706. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  21707. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  21708. endMessage(logger);
  21709. }
  21710. prevState = nextState;
  21711. });
  21712. }
  21713. if (logActions) {
  21714. store.subscribeAction(function (action, state) {
  21715. if (actionFilter(action, state)) {
  21716. var formattedTime = getFormattedTime();
  21717. var formattedAction = actionTransformer(action);
  21718. var message = "action " + (action.type) + formattedTime;
  21719. startMessage(logger, message, collapsed);
  21720. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  21721. endMessage(logger);
  21722. }
  21723. });
  21724. }
  21725. }
  21726. }
  21727. function startMessage (logger, message, collapsed) {
  21728. var startMessage = collapsed
  21729. ? logger.groupCollapsed
  21730. : logger.group;
  21731. // render
  21732. try {
  21733. startMessage.call(logger, message);
  21734. } catch (e) {
  21735. logger.log(message);
  21736. }
  21737. }
  21738. function endMessage (logger) {
  21739. try {
  21740. logger.groupEnd();
  21741. } catch (e) {
  21742. logger.log('—— log end ——');
  21743. }
  21744. }
  21745. function getFormattedTime () {
  21746. var time = new Date();
  21747. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  21748. }
  21749. function repeat (str, times) {
  21750. return (new Array(times + 1)).join(str)
  21751. }
  21752. function pad (num, maxLength) {
  21753. return repeat('0', maxLength - num.toString().length) + num
  21754. }
  21755. var index_cjs = {
  21756. Store: Store,
  21757. install: install,
  21758. version: '3.6.2',
  21759. mapState: mapState,
  21760. mapMutations: mapMutations,
  21761. mapGetters: mapGetters,
  21762. mapActions: mapActions,
  21763. createNamespacedHelpers: createNamespacedHelpers,
  21764. createLogger: createLogger
  21765. };
  21766. module.exports = index_cjs;
  21767. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  21768. /***/ }),
  21769. /* 180 */,
  21770. /* 181 */,
  21771. /* 182 */,
  21772. /* 183 */,
  21773. /* 184 */,
  21774. /* 185 */,
  21775. /* 186 */,
  21776. /* 187 */,
  21777. /* 188 */,
  21778. /* 189 */,
  21779. /* 190 */,
  21780. /* 191 */,
  21781. /* 192 */,
  21782. /* 193 */,
  21783. /* 194 */
  21784. /*!************************************************************************************************************!*\
  21785. !*** D:/demo/businessCard/xiaochengxu/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js ***!
  21786. \************************************************************************************************************/
  21787. /*! no static exports found */
  21788. /***/ (function(module, exports, __webpack_require__) {
  21789. "use strict";
  21790. Object.defineProperty(exports, "__esModule", {
  21791. value: true
  21792. });
  21793. exports.default = void 0;
  21794. // mescroll-body 和 mescroll-uni 通用
  21795. var MescrollMixin = {
  21796. data: function data() {
  21797. return {
  21798. mescroll: null //mescroll实例对象
  21799. };
  21800. },
  21801. // 注册系统自带的下拉刷新 (配置down.native为true时生效, 还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  21802. onPullDownRefresh: function onPullDownRefresh() {
  21803. this.mescroll && this.mescroll.onPullDownRefresh();
  21804. },
  21805. // 注册列表滚动事件,用于判定在顶部可下拉刷新,在指定位置可显示隐藏回到顶部按钮 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  21806. onPageScroll: function onPageScroll(e) {
  21807. this.mescroll && this.mescroll.onPageScroll(e);
  21808. },
  21809. // 注册滚动到底部的事件,用于上拉加载 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  21810. onReachBottom: function onReachBottom() {
  21811. this.mescroll && this.mescroll.onReachBottom();
  21812. },
  21813. methods: {
  21814. // mescroll组件初始化的回调,可获取到mescroll对象
  21815. mescrollInit: function mescrollInit(mescroll) {
  21816. this.mescroll = mescroll;
  21817. this.mescrollInitByRef(); // 兼容字节跳动小程序
  21818. },
  21819. // 以ref的方式初始化mescroll对象 (兼容字节跳动小程序)
  21820. mescrollInitByRef: function mescrollInitByRef() {
  21821. if (!this.mescroll || !this.mescroll.resetUpScroll) {
  21822. var mescrollRef = this.$refs.mescrollRef;
  21823. if (mescrollRef) this.mescroll = mescrollRef.mescroll;
  21824. }
  21825. },
  21826. // 下拉刷新的回调 (mixin默认resetUpScroll)
  21827. downCallback: function downCallback() {
  21828. var _this = this;
  21829. if (this.mescroll.optUp.use) {
  21830. this.mescroll.resetUpScroll();
  21831. } else {
  21832. setTimeout(function () {
  21833. _this.mescroll.endSuccess();
  21834. }, 500);
  21835. }
  21836. },
  21837. // 上拉加载的回调
  21838. upCallback: function upCallback() {
  21839. var _this2 = this;
  21840. // mixin默认延时500自动结束加载
  21841. setTimeout(function () {
  21842. _this2.mescroll.endErr();
  21843. }, 500);
  21844. }
  21845. },
  21846. mounted: function mounted() {
  21847. this.mescrollInitByRef(); // 兼容字节跳动小程序, 避免未设置@init或@init此时未能取到ref的情况
  21848. }
  21849. };
  21850. var _default = MescrollMixin;
  21851. exports.default = _default;
  21852. /***/ }),
  21853. /* 195 */,
  21854. /* 196 */,
  21855. /* 197 */,
  21856. /* 198 */,
  21857. /* 199 */,
  21858. /* 200 */,
  21859. /* 201 */,
  21860. /* 202 */,
  21861. /* 203 */,
  21862. /* 204 */,
  21863. /* 205 */,
  21864. /* 206 */,
  21865. /* 207 */,
  21866. /* 208 */,
  21867. /* 209 */,
  21868. /* 210 */,
  21869. /* 211 */,
  21870. /* 212 */,
  21871. /* 213 */,
  21872. /* 214 */,
  21873. /* 215 */,
  21874. /* 216 */,
  21875. /* 217 */,
  21876. /* 218 */,
  21877. /* 219 */,
  21878. /* 220 */,
  21879. /* 221 */,
  21880. /* 222 */,
  21881. /* 223 */,
  21882. /* 224 */,
  21883. /* 225 */,
  21884. /* 226 */,
  21885. /* 227 */,
  21886. /* 228 */,
  21887. /* 229 */,
  21888. /* 230 */,
  21889. /* 231 */,
  21890. /* 232 */,
  21891. /* 233 */,
  21892. /* 234 */,
  21893. /* 235 */,
  21894. /* 236 */,
  21895. /* 237 */,
  21896. /* 238 */,
  21897. /* 239 */,
  21898. /* 240 */,
  21899. /* 241 */,
  21900. /* 242 */,
  21901. /* 243 */,
  21902. /* 244 */,
  21903. /* 245 */,
  21904. /* 246 */,
  21905. /* 247 */,
  21906. /* 248 */,
  21907. /* 249 */,
  21908. /* 250 */,
  21909. /* 251 */,
  21910. /* 252 */,
  21911. /* 253 */,
  21912. /* 254 */
  21913. /*!******************************************************************************************!*\
  21914. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-navbar/props.js ***!
  21915. \******************************************************************************************/
  21916. /*! no static exports found */
  21917. /***/ (function(module, exports, __webpack_require__) {
  21918. "use strict";
  21919. /* WEBPACK VAR INJECTION */(function(uni) {
  21920. Object.defineProperty(exports, "__esModule", {
  21921. value: true
  21922. });
  21923. exports.default = void 0;
  21924. var _default = {
  21925. props: {
  21926. // 是否开启顶部安全区适配
  21927. safeAreaInsetTop: {
  21928. type: Boolean,
  21929. default: uni.$u.props.navbar.safeAreaInsetTop
  21930. },
  21931. // 固定在顶部时,是否生成一个等高元素,以防止塌陷
  21932. placeholder: {
  21933. type: Boolean,
  21934. default: uni.$u.props.navbar.placeholder
  21935. },
  21936. // 是否固定在顶部
  21937. fixed: {
  21938. type: Boolean,
  21939. default: uni.$u.props.navbar.fixed
  21940. },
  21941. // 是否显示下边框
  21942. border: {
  21943. type: Boolean,
  21944. default: uni.$u.props.navbar.border
  21945. },
  21946. // 左边的图标
  21947. leftIcon: {
  21948. type: String,
  21949. default: uni.$u.props.navbar.leftIcon
  21950. },
  21951. // 左边的提示文字
  21952. leftText: {
  21953. type: String,
  21954. default: uni.$u.props.navbar.leftText
  21955. },
  21956. // 左右的提示文字
  21957. rightText: {
  21958. type: String,
  21959. default: uni.$u.props.navbar.rightText
  21960. },
  21961. // 右边的图标
  21962. rightIcon: {
  21963. type: String,
  21964. default: uni.$u.props.navbar.rightIcon
  21965. },
  21966. // 标题
  21967. title: {
  21968. type: [String, Number],
  21969. default: uni.$u.props.navbar.title
  21970. },
  21971. // 背景颜色
  21972. bgColor: {
  21973. type: String,
  21974. default: uni.$u.props.navbar.bgColor
  21975. },
  21976. // 标题的宽度
  21977. titleWidth: {
  21978. type: [String, Number],
  21979. default: uni.$u.props.navbar.titleWidth
  21980. },
  21981. // 导航栏高度
  21982. height: {
  21983. type: [String, Number],
  21984. default: uni.$u.props.navbar.height
  21985. },
  21986. // 左侧返回图标的大小
  21987. leftIconSize: {
  21988. type: [String, Number],
  21989. default: uni.$u.props.navbar.leftIconSize
  21990. },
  21991. // 左侧返回图标的颜色
  21992. leftIconColor: {
  21993. type: String,
  21994. default: uni.$u.props.navbar.leftIconColor
  21995. },
  21996. // 点击左侧区域(返回图标),是否自动返回上一页
  21997. autoBack: {
  21998. type: Boolean,
  21999. default: uni.$u.props.navbar.autoBack
  22000. },
  22001. // 标题的样式,对象或字符串
  22002. titleStyle: {
  22003. type: [String, Object],
  22004. default: uni.$u.props.navbar.titleStyle
  22005. }
  22006. }
  22007. };
  22008. exports.default = _default;
  22009. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22010. /***/ }),
  22011. /* 255 */,
  22012. /* 256 */,
  22013. /* 257 */,
  22014. /* 258 */,
  22015. /* 259 */,
  22016. /* 260 */,
  22017. /* 261 */,
  22018. /* 262 */
  22019. /*!****************************************************************************************!*\
  22020. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-icon/icons.js ***!
  22021. \****************************************************************************************/
  22022. /*! no static exports found */
  22023. /***/ (function(module, exports, __webpack_require__) {
  22024. "use strict";
  22025. Object.defineProperty(exports, "__esModule", {
  22026. value: true
  22027. });
  22028. exports.default = void 0;
  22029. var _default = {
  22030. 'uicon-level': "\uE693",
  22031. 'uicon-column-line': "\uE68E",
  22032. 'uicon-checkbox-mark': "\uE807",
  22033. 'uicon-folder': "\uE7F5",
  22034. 'uicon-movie': "\uE7F6",
  22035. 'uicon-star-fill': "\uE669",
  22036. 'uicon-star': "\uE65F",
  22037. 'uicon-phone-fill': "\uE64F",
  22038. 'uicon-phone': "\uE622",
  22039. 'uicon-apple-fill': "\uE881",
  22040. 'uicon-chrome-circle-fill': "\uE885",
  22041. 'uicon-backspace': "\uE67B",
  22042. 'uicon-attach': "\uE632",
  22043. 'uicon-cut': "\uE948",
  22044. 'uicon-empty-car': "\uE602",
  22045. 'uicon-empty-coupon': "\uE682",
  22046. 'uicon-empty-address': "\uE646",
  22047. 'uicon-empty-favor': "\uE67C",
  22048. 'uicon-empty-permission': "\uE686",
  22049. 'uicon-empty-news': "\uE687",
  22050. 'uicon-empty-search': "\uE664",
  22051. 'uicon-github-circle-fill': "\uE887",
  22052. 'uicon-rmb': "\uE608",
  22053. 'uicon-person-delete-fill': "\uE66A",
  22054. 'uicon-reload': "\uE788",
  22055. 'uicon-order': "\uE68F",
  22056. 'uicon-server-man': "\uE6BC",
  22057. 'uicon-search': "\uE62A",
  22058. 'uicon-fingerprint': "\uE955",
  22059. 'uicon-more-dot-fill': "\uE630",
  22060. 'uicon-scan': "\uE662",
  22061. 'uicon-share-square': "\uE60B",
  22062. 'uicon-map': "\uE61D",
  22063. 'uicon-map-fill': "\uE64E",
  22064. 'uicon-tags': "\uE629",
  22065. 'uicon-tags-fill': "\uE651",
  22066. 'uicon-bookmark-fill': "\uE63B",
  22067. 'uicon-bookmark': "\uE60A",
  22068. 'uicon-eye': "\uE613",
  22069. 'uicon-eye-fill': "\uE641",
  22070. 'uicon-mic': "\uE64A",
  22071. 'uicon-mic-off': "\uE649",
  22072. 'uicon-calendar': "\uE66E",
  22073. 'uicon-calendar-fill': "\uE634",
  22074. 'uicon-trash': "\uE623",
  22075. 'uicon-trash-fill': "\uE658",
  22076. 'uicon-play-left': "\uE66D",
  22077. 'uicon-play-right': "\uE610",
  22078. 'uicon-minus': "\uE618",
  22079. 'uicon-plus': "\uE62D",
  22080. 'uicon-info': "\uE653",
  22081. 'uicon-info-circle': "\uE7D2",
  22082. 'uicon-info-circle-fill': "\uE64B",
  22083. 'uicon-question': "\uE715",
  22084. 'uicon-error': "\uE6D3",
  22085. 'uicon-close': "\uE685",
  22086. 'uicon-checkmark': "\uE6A8",
  22087. 'uicon-android-circle-fill': "\uE67E",
  22088. 'uicon-android-fill': "\uE67D",
  22089. 'uicon-ie': "\uE87B",
  22090. 'uicon-IE-circle-fill': "\uE889",
  22091. 'uicon-google': "\uE87A",
  22092. 'uicon-google-circle-fill': "\uE88A",
  22093. 'uicon-setting-fill': "\uE872",
  22094. 'uicon-setting': "\uE61F",
  22095. 'uicon-minus-square-fill': "\uE855",
  22096. 'uicon-plus-square-fill': "\uE856",
  22097. 'uicon-heart': "\uE7DF",
  22098. 'uicon-heart-fill': "\uE851",
  22099. 'uicon-camera': "\uE7D7",
  22100. 'uicon-camera-fill': "\uE870",
  22101. 'uicon-more-circle': "\uE63E",
  22102. 'uicon-more-circle-fill': "\uE645",
  22103. 'uicon-chat': "\uE620",
  22104. 'uicon-chat-fill': "\uE61E",
  22105. 'uicon-bag-fill': "\uE617",
  22106. 'uicon-bag': "\uE619",
  22107. 'uicon-error-circle-fill': "\uE62C",
  22108. 'uicon-error-circle': "\uE624",
  22109. 'uicon-close-circle': "\uE63F",
  22110. 'uicon-close-circle-fill': "\uE637",
  22111. 'uicon-checkmark-circle': "\uE63D",
  22112. 'uicon-checkmark-circle-fill': "\uE635",
  22113. 'uicon-question-circle-fill': "\uE666",
  22114. 'uicon-question-circle': "\uE625",
  22115. 'uicon-share': "\uE631",
  22116. 'uicon-share-fill': "\uE65E",
  22117. 'uicon-shopping-cart': "\uE621",
  22118. 'uicon-shopping-cart-fill': "\uE65D",
  22119. 'uicon-bell': "\uE609",
  22120. 'uicon-bell-fill': "\uE640",
  22121. 'uicon-list': "\uE650",
  22122. 'uicon-list-dot': "\uE616",
  22123. 'uicon-zhihu': "\uE6BA",
  22124. 'uicon-zhihu-circle-fill': "\uE709",
  22125. 'uicon-zhifubao': "\uE6B9",
  22126. 'uicon-zhifubao-circle-fill': "\uE6B8",
  22127. 'uicon-weixin-circle-fill': "\uE6B1",
  22128. 'uicon-weixin-fill': "\uE6B2",
  22129. 'uicon-twitter-circle-fill': "\uE6AB",
  22130. 'uicon-twitter': "\uE6AA",
  22131. 'uicon-taobao-circle-fill': "\uE6A7",
  22132. 'uicon-taobao': "\uE6A6",
  22133. 'uicon-weibo-circle-fill': "\uE6A5",
  22134. 'uicon-weibo': "\uE6A4",
  22135. 'uicon-qq-fill': "\uE6A1",
  22136. 'uicon-qq-circle-fill': "\uE6A0",
  22137. 'uicon-moments-circel-fill': "\uE69A",
  22138. 'uicon-moments': "\uE69B",
  22139. 'uicon-qzone': "\uE695",
  22140. 'uicon-qzone-circle-fill': "\uE696",
  22141. 'uicon-baidu-circle-fill': "\uE680",
  22142. 'uicon-baidu': "\uE681",
  22143. 'uicon-facebook-circle-fill': "\uE68A",
  22144. 'uicon-facebook': "\uE689",
  22145. 'uicon-car': "\uE60C",
  22146. 'uicon-car-fill': "\uE636",
  22147. 'uicon-warning-fill': "\uE64D",
  22148. 'uicon-warning': "\uE694",
  22149. 'uicon-clock-fill': "\uE638",
  22150. 'uicon-clock': "\uE60F",
  22151. 'uicon-edit-pen': "\uE612",
  22152. 'uicon-edit-pen-fill': "\uE66B",
  22153. 'uicon-email': "\uE611",
  22154. 'uicon-email-fill': "\uE642",
  22155. 'uicon-minus-circle': "\uE61B",
  22156. 'uicon-minus-circle-fill': "\uE652",
  22157. 'uicon-plus-circle': "\uE62E",
  22158. 'uicon-plus-circle-fill': "\uE661",
  22159. 'uicon-file-text': "\uE663",
  22160. 'uicon-file-text-fill': "\uE665",
  22161. 'uicon-pushpin': "\uE7E3",
  22162. 'uicon-pushpin-fill': "\uE86E",
  22163. 'uicon-grid': "\uE673",
  22164. 'uicon-grid-fill': "\uE678",
  22165. 'uicon-play-circle': "\uE647",
  22166. 'uicon-play-circle-fill': "\uE655",
  22167. 'uicon-pause-circle-fill': "\uE654",
  22168. 'uicon-pause': "\uE8FA",
  22169. 'uicon-pause-circle': "\uE643",
  22170. 'uicon-eye-off': "\uE648",
  22171. 'uicon-eye-off-outline': "\uE62B",
  22172. 'uicon-gift-fill': "\uE65C",
  22173. 'uicon-gift': "\uE65B",
  22174. 'uicon-rmb-circle-fill': "\uE657",
  22175. 'uicon-rmb-circle': "\uE677",
  22176. 'uicon-kefu-ermai': "\uE656",
  22177. 'uicon-server-fill': "\uE751",
  22178. 'uicon-coupon-fill': "\uE8C4",
  22179. 'uicon-coupon': "\uE8AE",
  22180. 'uicon-integral': "\uE704",
  22181. 'uicon-integral-fill': "\uE703",
  22182. 'uicon-home-fill': "\uE964",
  22183. 'uicon-home': "\uE965",
  22184. 'uicon-hourglass-half-fill': "\uE966",
  22185. 'uicon-hourglass': "\uE967",
  22186. 'uicon-account': "\uE628",
  22187. 'uicon-plus-people-fill': "\uE626",
  22188. 'uicon-minus-people-fill': "\uE615",
  22189. 'uicon-account-fill': "\uE614",
  22190. 'uicon-thumb-down-fill': "\uE726",
  22191. 'uicon-thumb-down': "\uE727",
  22192. 'uicon-thumb-up': "\uE733",
  22193. 'uicon-thumb-up-fill': "\uE72F",
  22194. 'uicon-lock-fill': "\uE979",
  22195. 'uicon-lock-open': "\uE973",
  22196. 'uicon-lock-opened-fill': "\uE974",
  22197. 'uicon-lock': "\uE97A",
  22198. 'uicon-red-packet-fill': "\uE690",
  22199. 'uicon-photo-fill': "\uE98B",
  22200. 'uicon-photo': "\uE98D",
  22201. 'uicon-volume-off-fill': "\uE659",
  22202. 'uicon-volume-off': "\uE644",
  22203. 'uicon-volume-fill': "\uE670",
  22204. 'uicon-volume': "\uE633",
  22205. 'uicon-red-packet': "\uE691",
  22206. 'uicon-download': "\uE63C",
  22207. 'uicon-arrow-up-fill': "\uE6B0",
  22208. 'uicon-arrow-down-fill': "\uE600",
  22209. 'uicon-play-left-fill': "\uE675",
  22210. 'uicon-play-right-fill': "\uE676",
  22211. 'uicon-rewind-left-fill': "\uE679",
  22212. 'uicon-rewind-right-fill': "\uE67A",
  22213. 'uicon-arrow-downward': "\uE604",
  22214. 'uicon-arrow-leftward': "\uE601",
  22215. 'uicon-arrow-rightward': "\uE603",
  22216. 'uicon-arrow-upward': "\uE607",
  22217. 'uicon-arrow-down': "\uE60D",
  22218. 'uicon-arrow-right': "\uE605",
  22219. 'uicon-arrow-left': "\uE60E",
  22220. 'uicon-arrow-up': "\uE606",
  22221. 'uicon-skip-back-left': "\uE674",
  22222. 'uicon-skip-forward-right': "\uE672",
  22223. 'uicon-rewind-right': "\uE66F",
  22224. 'uicon-rewind-left': "\uE671",
  22225. 'uicon-arrow-right-double': "\uE68D",
  22226. 'uicon-arrow-left-double': "\uE68C",
  22227. 'uicon-wifi-off': "\uE668",
  22228. 'uicon-wifi': "\uE667",
  22229. 'uicon-empty-data': "\uE62F",
  22230. 'uicon-empty-history': "\uE684",
  22231. 'uicon-empty-list': "\uE68B",
  22232. 'uicon-empty-page': "\uE627",
  22233. 'uicon-empty-order': "\uE639",
  22234. 'uicon-man': "\uE697",
  22235. 'uicon-woman': "\uE69C",
  22236. 'uicon-man-add': "\uE61C",
  22237. 'uicon-man-add-fill': "\uE64C",
  22238. 'uicon-man-delete': "\uE61A",
  22239. 'uicon-man-delete-fill': "\uE66A",
  22240. 'uicon-zh': "\uE70A",
  22241. 'uicon-en': "\uE692"
  22242. };
  22243. exports.default = _default;
  22244. /***/ }),
  22245. /* 263 */
  22246. /*!****************************************************************************************!*\
  22247. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-icon/props.js ***!
  22248. \****************************************************************************************/
  22249. /*! no static exports found */
  22250. /***/ (function(module, exports, __webpack_require__) {
  22251. "use strict";
  22252. /* WEBPACK VAR INJECTION */(function(uni) {
  22253. Object.defineProperty(exports, "__esModule", {
  22254. value: true
  22255. });
  22256. exports.default = void 0;
  22257. var _default = {
  22258. props: {
  22259. // 图标类名
  22260. name: {
  22261. type: String,
  22262. default: uni.$u.props.icon.name
  22263. },
  22264. // 图标颜色,可接受主题色
  22265. color: {
  22266. type: String,
  22267. default: uni.$u.props.icon.color
  22268. },
  22269. // 字体大小,单位px
  22270. size: {
  22271. type: [String, Number],
  22272. default: uni.$u.props.icon.size
  22273. },
  22274. // 是否显示粗体
  22275. bold: {
  22276. type: Boolean,
  22277. default: uni.$u.props.icon.bold
  22278. },
  22279. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  22280. index: {
  22281. type: [String, Number],
  22282. default: uni.$u.props.icon.index
  22283. },
  22284. // 触摸图标时的类名
  22285. hoverClass: {
  22286. type: String,
  22287. default: uni.$u.props.icon.hoverClass
  22288. },
  22289. // 自定义扩展前缀,方便用户扩展自己的图标库
  22290. customPrefix: {
  22291. type: String,
  22292. default: uni.$u.props.icon.customPrefix
  22293. },
  22294. // 图标右边或者下面的文字
  22295. label: {
  22296. type: [String, Number],
  22297. default: uni.$u.props.icon.label
  22298. },
  22299. // label的位置,只能右边或者下边
  22300. labelPos: {
  22301. type: String,
  22302. default: uni.$u.props.icon.labelPos
  22303. },
  22304. // label的大小
  22305. labelSize: {
  22306. type: [String, Number],
  22307. default: uni.$u.props.icon.labelSize
  22308. },
  22309. // label的颜色
  22310. labelColor: {
  22311. type: String,
  22312. default: uni.$u.props.icon.labelColor
  22313. },
  22314. // label与图标的距离
  22315. space: {
  22316. type: [String, Number],
  22317. default: uni.$u.props.icon.space
  22318. },
  22319. // 图片的mode
  22320. imgMode: {
  22321. type: String,
  22322. default: uni.$u.props.icon.imgMode
  22323. },
  22324. // 用于显示图片小图标时,图片的宽度
  22325. width: {
  22326. type: [String, Number],
  22327. default: uni.$u.props.icon.width
  22328. },
  22329. // 用于显示图片小图标时,图片的高度
  22330. height: {
  22331. type: [String, Number],
  22332. default: uni.$u.props.icon.height
  22333. },
  22334. // 用于解决某些情况下,让图标垂直居中的用途
  22335. top: {
  22336. type: [String, Number],
  22337. default: uni.$u.props.icon.top
  22338. },
  22339. // 是否阻止事件传播
  22340. stop: {
  22341. type: Boolean,
  22342. default: uni.$u.props.icon.stop
  22343. }
  22344. }
  22345. };
  22346. exports.default = _default;
  22347. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22348. /***/ }),
  22349. /* 264 */,
  22350. /* 265 */,
  22351. /* 266 */,
  22352. /* 267 */,
  22353. /* 268 */,
  22354. /* 269 */,
  22355. /* 270 */,
  22356. /* 271 */
  22357. /*!*****************************************************************************************!*\
  22358. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-badge/props.js ***!
  22359. \*****************************************************************************************/
  22360. /*! no static exports found */
  22361. /***/ (function(module, exports, __webpack_require__) {
  22362. "use strict";
  22363. /* WEBPACK VAR INJECTION */(function(uni) {
  22364. Object.defineProperty(exports, "__esModule", {
  22365. value: true
  22366. });
  22367. exports.default = void 0;
  22368. var _default = {
  22369. props: {
  22370. // 是否显示圆点
  22371. isDot: {
  22372. type: Boolean,
  22373. default: uni.$u.props.badge.isDot
  22374. },
  22375. // 显示的内容
  22376. value: {
  22377. type: [Number, String],
  22378. default: uni.$u.props.badge.value
  22379. },
  22380. // 是否显示
  22381. show: {
  22382. type: Boolean,
  22383. default: uni.$u.props.badge.show
  22384. },
  22385. // 最大值,超过最大值会显示 '{max}+'
  22386. max: {
  22387. type: [Number, String],
  22388. default: uni.$u.props.badge.max
  22389. },
  22390. // 主题类型,error|warning|success|primary
  22391. type: {
  22392. type: String,
  22393. default: uni.$u.props.badge.type
  22394. },
  22395. // 当数值为 0 时,是否展示 Badge
  22396. showZero: {
  22397. type: Boolean,
  22398. default: uni.$u.props.badge.showZero
  22399. },
  22400. // 背景颜色,优先级比type高,如设置,type参数会失效
  22401. bgColor: {
  22402. type: [String, null],
  22403. default: uni.$u.props.badge.bgColor
  22404. },
  22405. // 字体颜色
  22406. color: {
  22407. type: [String, null],
  22408. default: uni.$u.props.badge.color
  22409. },
  22410. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  22411. shape: {
  22412. type: String,
  22413. default: uni.$u.props.badge.shape
  22414. },
  22415. // 设置数字的显示方式,overflow|ellipsis|limit
  22416. // overflow会根据max字段判断,超出显示`${max}+`
  22417. // ellipsis会根据max判断,超出显示`${max}...`
  22418. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  22419. numberType: {
  22420. type: String,
  22421. default: uni.$u.props.badge.numberType
  22422. },
  22423. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  22424. offset: {
  22425. type: Array,
  22426. default: uni.$u.props.badge.offset
  22427. },
  22428. // 是否反转背景和字体颜色
  22429. inverted: {
  22430. type: Boolean,
  22431. default: uni.$u.props.badge.inverted
  22432. },
  22433. // 是否绝对定位
  22434. absolute: {
  22435. type: Boolean,
  22436. default: uni.$u.props.badge.absolute
  22437. }
  22438. }
  22439. };
  22440. exports.default = _default;
  22441. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22442. /***/ }),
  22443. /* 272 */,
  22444. /* 273 */,
  22445. /* 274 */,
  22446. /* 275 */,
  22447. /* 276 */,
  22448. /* 277 */,
  22449. /* 278 */,
  22450. /* 279 */
  22451. /*!********************************************************************************************!*\
  22452. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  22453. \********************************************************************************************/
  22454. /*! no static exports found */
  22455. /***/ (function(module, exports, __webpack_require__) {
  22456. "use strict";
  22457. Object.defineProperty(exports, "__esModule", {
  22458. value: true
  22459. });
  22460. exports.default = void 0;
  22461. var _default = {
  22462. "id": "2852637",
  22463. "name": "uniui图标库",
  22464. "font_family": "uniicons",
  22465. "css_prefix_text": "uniui-",
  22466. "description": "",
  22467. "glyphs": [{
  22468. "icon_id": "25027049",
  22469. "name": "yanse",
  22470. "font_class": "color",
  22471. "unicode": "e6cf",
  22472. "unicode_decimal": 59087
  22473. }, {
  22474. "icon_id": "25027048",
  22475. "name": "wallet",
  22476. "font_class": "wallet",
  22477. "unicode": "e6b1",
  22478. "unicode_decimal": 59057
  22479. }, {
  22480. "icon_id": "25015720",
  22481. "name": "settings-filled",
  22482. "font_class": "settings-filled",
  22483. "unicode": "e6ce",
  22484. "unicode_decimal": 59086
  22485. }, {
  22486. "icon_id": "25015434",
  22487. "name": "shimingrenzheng-filled",
  22488. "font_class": "auth-filled",
  22489. "unicode": "e6cc",
  22490. "unicode_decimal": 59084
  22491. }, {
  22492. "icon_id": "24934246",
  22493. "name": "shop-filled",
  22494. "font_class": "shop-filled",
  22495. "unicode": "e6cd",
  22496. "unicode_decimal": 59085
  22497. }, {
  22498. "icon_id": "24934159",
  22499. "name": "staff-filled-01",
  22500. "font_class": "staff-filled",
  22501. "unicode": "e6cb",
  22502. "unicode_decimal": 59083
  22503. }, {
  22504. "icon_id": "24932461",
  22505. "name": "VIP-filled",
  22506. "font_class": "vip-filled",
  22507. "unicode": "e6c6",
  22508. "unicode_decimal": 59078
  22509. }, {
  22510. "icon_id": "24932462",
  22511. "name": "plus_circle_fill",
  22512. "font_class": "plus-filled",
  22513. "unicode": "e6c7",
  22514. "unicode_decimal": 59079
  22515. }, {
  22516. "icon_id": "24932463",
  22517. "name": "folder_add-filled",
  22518. "font_class": "folder-add-filled",
  22519. "unicode": "e6c8",
  22520. "unicode_decimal": 59080
  22521. }, {
  22522. "icon_id": "24932464",
  22523. "name": "yanse-filled",
  22524. "font_class": "color-filled",
  22525. "unicode": "e6c9",
  22526. "unicode_decimal": 59081
  22527. }, {
  22528. "icon_id": "24932465",
  22529. "name": "tune-filled",
  22530. "font_class": "tune-filled",
  22531. "unicode": "e6ca",
  22532. "unicode_decimal": 59082
  22533. }, {
  22534. "icon_id": "24932455",
  22535. "name": "a-rilidaka-filled",
  22536. "font_class": "calendar-filled",
  22537. "unicode": "e6c0",
  22538. "unicode_decimal": 59072
  22539. }, {
  22540. "icon_id": "24932456",
  22541. "name": "notification-filled",
  22542. "font_class": "notification-filled",
  22543. "unicode": "e6c1",
  22544. "unicode_decimal": 59073
  22545. }, {
  22546. "icon_id": "24932457",
  22547. "name": "wallet-filled",
  22548. "font_class": "wallet-filled",
  22549. "unicode": "e6c2",
  22550. "unicode_decimal": 59074
  22551. }, {
  22552. "icon_id": "24932458",
  22553. "name": "paihangbang-filled",
  22554. "font_class": "medal-filled",
  22555. "unicode": "e6c3",
  22556. "unicode_decimal": 59075
  22557. }, {
  22558. "icon_id": "24932459",
  22559. "name": "gift-filled",
  22560. "font_class": "gift-filled",
  22561. "unicode": "e6c4",
  22562. "unicode_decimal": 59076
  22563. }, {
  22564. "icon_id": "24932460",
  22565. "name": "fire-filled",
  22566. "font_class": "fire-filled",
  22567. "unicode": "e6c5",
  22568. "unicode_decimal": 59077
  22569. }, {
  22570. "icon_id": "24928001",
  22571. "name": "refreshempty",
  22572. "font_class": "refreshempty",
  22573. "unicode": "e6bf",
  22574. "unicode_decimal": 59071
  22575. }, {
  22576. "icon_id": "24926853",
  22577. "name": "location-ellipse",
  22578. "font_class": "location-filled",
  22579. "unicode": "e6af",
  22580. "unicode_decimal": 59055
  22581. }, {
  22582. "icon_id": "24926735",
  22583. "name": "person-filled",
  22584. "font_class": "person-filled",
  22585. "unicode": "e69d",
  22586. "unicode_decimal": 59037
  22587. }, {
  22588. "icon_id": "24926703",
  22589. "name": "personadd-filled",
  22590. "font_class": "personadd-filled",
  22591. "unicode": "e698",
  22592. "unicode_decimal": 59032
  22593. }, {
  22594. "icon_id": "24923351",
  22595. "name": "back",
  22596. "font_class": "back",
  22597. "unicode": "e6b9",
  22598. "unicode_decimal": 59065
  22599. }, {
  22600. "icon_id": "24923352",
  22601. "name": "forward",
  22602. "font_class": "forward",
  22603. "unicode": "e6ba",
  22604. "unicode_decimal": 59066
  22605. }, {
  22606. "icon_id": "24923353",
  22607. "name": "arrowthinright",
  22608. "font_class": "arrow-right",
  22609. "unicode": "e6bb",
  22610. "unicode_decimal": 59067
  22611. }, {
  22612. "icon_id": "24923353",
  22613. "name": "arrowthinright",
  22614. "font_class": "arrowthinright",
  22615. "unicode": "e6bb",
  22616. "unicode_decimal": 59067
  22617. }, {
  22618. "icon_id": "24923354",
  22619. "name": "arrowthinleft",
  22620. "font_class": "arrow-left",
  22621. "unicode": "e6bc",
  22622. "unicode_decimal": 59068
  22623. }, {
  22624. "icon_id": "24923354",
  22625. "name": "arrowthinleft",
  22626. "font_class": "arrowthinleft",
  22627. "unicode": "e6bc",
  22628. "unicode_decimal": 59068
  22629. }, {
  22630. "icon_id": "24923355",
  22631. "name": "arrowthinup",
  22632. "font_class": "arrow-up",
  22633. "unicode": "e6bd",
  22634. "unicode_decimal": 59069
  22635. }, {
  22636. "icon_id": "24923355",
  22637. "name": "arrowthinup",
  22638. "font_class": "arrowthinup",
  22639. "unicode": "e6bd",
  22640. "unicode_decimal": 59069
  22641. }, {
  22642. "icon_id": "24923356",
  22643. "name": "arrowthindown",
  22644. "font_class": "arrow-down",
  22645. "unicode": "e6be",
  22646. "unicode_decimal": 59070
  22647. }, {
  22648. "icon_id": "24923356",
  22649. "name": "arrowthindown",
  22650. "font_class": "arrowthindown",
  22651. "unicode": "e6be",
  22652. "unicode_decimal": 59070
  22653. }, {
  22654. "icon_id": "24923349",
  22655. "name": "arrowdown",
  22656. "font_class": "bottom",
  22657. "unicode": "e6b8",
  22658. "unicode_decimal": 59064
  22659. }, {
  22660. "icon_id": "24923349",
  22661. "name": "arrowdown",
  22662. "font_class": "arrowdown",
  22663. "unicode": "e6b8",
  22664. "unicode_decimal": 59064
  22665. }, {
  22666. "icon_id": "24923346",
  22667. "name": "arrowright",
  22668. "font_class": "right",
  22669. "unicode": "e6b5",
  22670. "unicode_decimal": 59061
  22671. }, {
  22672. "icon_id": "24923346",
  22673. "name": "arrowright",
  22674. "font_class": "arrowright",
  22675. "unicode": "e6b5",
  22676. "unicode_decimal": 59061
  22677. }, {
  22678. "icon_id": "24923347",
  22679. "name": "arrowup",
  22680. "font_class": "top",
  22681. "unicode": "e6b6",
  22682. "unicode_decimal": 59062
  22683. }, {
  22684. "icon_id": "24923347",
  22685. "name": "arrowup",
  22686. "font_class": "arrowup",
  22687. "unicode": "e6b6",
  22688. "unicode_decimal": 59062
  22689. }, {
  22690. "icon_id": "24923348",
  22691. "name": "arrowleft",
  22692. "font_class": "left",
  22693. "unicode": "e6b7",
  22694. "unicode_decimal": 59063
  22695. }, {
  22696. "icon_id": "24923348",
  22697. "name": "arrowleft",
  22698. "font_class": "arrowleft",
  22699. "unicode": "e6b7",
  22700. "unicode_decimal": 59063
  22701. }, {
  22702. "icon_id": "24923334",
  22703. "name": "eye",
  22704. "font_class": "eye",
  22705. "unicode": "e651",
  22706. "unicode_decimal": 58961
  22707. }, {
  22708. "icon_id": "24923335",
  22709. "name": "eye-filled",
  22710. "font_class": "eye-filled",
  22711. "unicode": "e66a",
  22712. "unicode_decimal": 58986
  22713. }, {
  22714. "icon_id": "24923336",
  22715. "name": "eye-slash",
  22716. "font_class": "eye-slash",
  22717. "unicode": "e6b3",
  22718. "unicode_decimal": 59059
  22719. }, {
  22720. "icon_id": "24923337",
  22721. "name": "eye-slash-filled",
  22722. "font_class": "eye-slash-filled",
  22723. "unicode": "e6b4",
  22724. "unicode_decimal": 59060
  22725. }, {
  22726. "icon_id": "24923305",
  22727. "name": "info-filled",
  22728. "font_class": "info-filled",
  22729. "unicode": "e649",
  22730. "unicode_decimal": 58953
  22731. }, {
  22732. "icon_id": "24923299",
  22733. "name": "reload-01",
  22734. "font_class": "reload",
  22735. "unicode": "e6b2",
  22736. "unicode_decimal": 59058
  22737. }, {
  22738. "icon_id": "24923195",
  22739. "name": "mic_slash_fill",
  22740. "font_class": "micoff-filled",
  22741. "unicode": "e6b0",
  22742. "unicode_decimal": 59056
  22743. }, {
  22744. "icon_id": "24923165",
  22745. "name": "map-pin-ellipse",
  22746. "font_class": "map-pin-ellipse",
  22747. "unicode": "e6ac",
  22748. "unicode_decimal": 59052
  22749. }, {
  22750. "icon_id": "24923166",
  22751. "name": "map-pin",
  22752. "font_class": "map-pin",
  22753. "unicode": "e6ad",
  22754. "unicode_decimal": 59053
  22755. }, {
  22756. "icon_id": "24923167",
  22757. "name": "location",
  22758. "font_class": "location",
  22759. "unicode": "e6ae",
  22760. "unicode_decimal": 59054
  22761. }, {
  22762. "icon_id": "24923064",
  22763. "name": "starhalf",
  22764. "font_class": "starhalf",
  22765. "unicode": "e683",
  22766. "unicode_decimal": 59011
  22767. }, {
  22768. "icon_id": "24923065",
  22769. "name": "star",
  22770. "font_class": "star",
  22771. "unicode": "e688",
  22772. "unicode_decimal": 59016
  22773. }, {
  22774. "icon_id": "24923066",
  22775. "name": "star-filled",
  22776. "font_class": "star-filled",
  22777. "unicode": "e68f",
  22778. "unicode_decimal": 59023
  22779. }, {
  22780. "icon_id": "24899646",
  22781. "name": "a-rilidaka",
  22782. "font_class": "calendar",
  22783. "unicode": "e6a0",
  22784. "unicode_decimal": 59040
  22785. }, {
  22786. "icon_id": "24899647",
  22787. "name": "fire",
  22788. "font_class": "fire",
  22789. "unicode": "e6a1",
  22790. "unicode_decimal": 59041
  22791. }, {
  22792. "icon_id": "24899648",
  22793. "name": "paihangbang",
  22794. "font_class": "medal",
  22795. "unicode": "e6a2",
  22796. "unicode_decimal": 59042
  22797. }, {
  22798. "icon_id": "24899649",
  22799. "name": "font",
  22800. "font_class": "font",
  22801. "unicode": "e6a3",
  22802. "unicode_decimal": 59043
  22803. }, {
  22804. "icon_id": "24899650",
  22805. "name": "gift",
  22806. "font_class": "gift",
  22807. "unicode": "e6a4",
  22808. "unicode_decimal": 59044
  22809. }, {
  22810. "icon_id": "24899651",
  22811. "name": "link",
  22812. "font_class": "link",
  22813. "unicode": "e6a5",
  22814. "unicode_decimal": 59045
  22815. }, {
  22816. "icon_id": "24899652",
  22817. "name": "notification",
  22818. "font_class": "notification",
  22819. "unicode": "e6a6",
  22820. "unicode_decimal": 59046
  22821. }, {
  22822. "icon_id": "24899653",
  22823. "name": "staff",
  22824. "font_class": "staff",
  22825. "unicode": "e6a7",
  22826. "unicode_decimal": 59047
  22827. }, {
  22828. "icon_id": "24899654",
  22829. "name": "VIP",
  22830. "font_class": "vip",
  22831. "unicode": "e6a8",
  22832. "unicode_decimal": 59048
  22833. }, {
  22834. "icon_id": "24899655",
  22835. "name": "folder_add",
  22836. "font_class": "folder-add",
  22837. "unicode": "e6a9",
  22838. "unicode_decimal": 59049
  22839. }, {
  22840. "icon_id": "24899656",
  22841. "name": "tune",
  22842. "font_class": "tune",
  22843. "unicode": "e6aa",
  22844. "unicode_decimal": 59050
  22845. }, {
  22846. "icon_id": "24899657",
  22847. "name": "shimingrenzheng",
  22848. "font_class": "auth",
  22849. "unicode": "e6ab",
  22850. "unicode_decimal": 59051
  22851. }, {
  22852. "icon_id": "24899565",
  22853. "name": "person",
  22854. "font_class": "person",
  22855. "unicode": "e699",
  22856. "unicode_decimal": 59033
  22857. }, {
  22858. "icon_id": "24899566",
  22859. "name": "email-filled",
  22860. "font_class": "email-filled",
  22861. "unicode": "e69a",
  22862. "unicode_decimal": 59034
  22863. }, {
  22864. "icon_id": "24899567",
  22865. "name": "phone-filled",
  22866. "font_class": "phone-filled",
  22867. "unicode": "e69b",
  22868. "unicode_decimal": 59035
  22869. }, {
  22870. "icon_id": "24899568",
  22871. "name": "phone",
  22872. "font_class": "phone",
  22873. "unicode": "e69c",
  22874. "unicode_decimal": 59036
  22875. }, {
  22876. "icon_id": "24899570",
  22877. "name": "email",
  22878. "font_class": "email",
  22879. "unicode": "e69e",
  22880. "unicode_decimal": 59038
  22881. }, {
  22882. "icon_id": "24899571",
  22883. "name": "personadd",
  22884. "font_class": "personadd",
  22885. "unicode": "e69f",
  22886. "unicode_decimal": 59039
  22887. }, {
  22888. "icon_id": "24899558",
  22889. "name": "chatboxes-filled",
  22890. "font_class": "chatboxes-filled",
  22891. "unicode": "e692",
  22892. "unicode_decimal": 59026
  22893. }, {
  22894. "icon_id": "24899559",
  22895. "name": "contact",
  22896. "font_class": "contact",
  22897. "unicode": "e693",
  22898. "unicode_decimal": 59027
  22899. }, {
  22900. "icon_id": "24899560",
  22901. "name": "chatbubble-filled",
  22902. "font_class": "chatbubble-filled",
  22903. "unicode": "e694",
  22904. "unicode_decimal": 59028
  22905. }, {
  22906. "icon_id": "24899561",
  22907. "name": "contact-filled",
  22908. "font_class": "contact-filled",
  22909. "unicode": "e695",
  22910. "unicode_decimal": 59029
  22911. }, {
  22912. "icon_id": "24899562",
  22913. "name": "chatboxes",
  22914. "font_class": "chatboxes",
  22915. "unicode": "e696",
  22916. "unicode_decimal": 59030
  22917. }, {
  22918. "icon_id": "24899563",
  22919. "name": "chatbubble",
  22920. "font_class": "chatbubble",
  22921. "unicode": "e697",
  22922. "unicode_decimal": 59031
  22923. }, {
  22924. "icon_id": "24881290",
  22925. "name": "upload-filled",
  22926. "font_class": "upload-filled",
  22927. "unicode": "e68e",
  22928. "unicode_decimal": 59022
  22929. }, {
  22930. "icon_id": "24881292",
  22931. "name": "upload",
  22932. "font_class": "upload",
  22933. "unicode": "e690",
  22934. "unicode_decimal": 59024
  22935. }, {
  22936. "icon_id": "24881293",
  22937. "name": "weixin",
  22938. "font_class": "weixin",
  22939. "unicode": "e691",
  22940. "unicode_decimal": 59025
  22941. }, {
  22942. "icon_id": "24881274",
  22943. "name": "compose",
  22944. "font_class": "compose",
  22945. "unicode": "e67f",
  22946. "unicode_decimal": 59007
  22947. }, {
  22948. "icon_id": "24881275",
  22949. "name": "qq",
  22950. "font_class": "qq",
  22951. "unicode": "e680",
  22952. "unicode_decimal": 59008
  22953. }, {
  22954. "icon_id": "24881276",
  22955. "name": "download-filled",
  22956. "font_class": "download-filled",
  22957. "unicode": "e681",
  22958. "unicode_decimal": 59009
  22959. }, {
  22960. "icon_id": "24881277",
  22961. "name": "pengyouquan",
  22962. "font_class": "pyq",
  22963. "unicode": "e682",
  22964. "unicode_decimal": 59010
  22965. }, {
  22966. "icon_id": "24881279",
  22967. "name": "sound",
  22968. "font_class": "sound",
  22969. "unicode": "e684",
  22970. "unicode_decimal": 59012
  22971. }, {
  22972. "icon_id": "24881280",
  22973. "name": "trash-filled",
  22974. "font_class": "trash-filled",
  22975. "unicode": "e685",
  22976. "unicode_decimal": 59013
  22977. }, {
  22978. "icon_id": "24881281",
  22979. "name": "sound-filled",
  22980. "font_class": "sound-filled",
  22981. "unicode": "e686",
  22982. "unicode_decimal": 59014
  22983. }, {
  22984. "icon_id": "24881282",
  22985. "name": "trash",
  22986. "font_class": "trash",
  22987. "unicode": "e687",
  22988. "unicode_decimal": 59015
  22989. }, {
  22990. "icon_id": "24881284",
  22991. "name": "videocam-filled",
  22992. "font_class": "videocam-filled",
  22993. "unicode": "e689",
  22994. "unicode_decimal": 59017
  22995. }, {
  22996. "icon_id": "24881285",
  22997. "name": "spinner-cycle",
  22998. "font_class": "spinner-cycle",
  22999. "unicode": "e68a",
  23000. "unicode_decimal": 59018
  23001. }, {
  23002. "icon_id": "24881286",
  23003. "name": "weibo",
  23004. "font_class": "weibo",
  23005. "unicode": "e68b",
  23006. "unicode_decimal": 59019
  23007. }, {
  23008. "icon_id": "24881288",
  23009. "name": "videocam",
  23010. "font_class": "videocam",
  23011. "unicode": "e68c",
  23012. "unicode_decimal": 59020
  23013. }, {
  23014. "icon_id": "24881289",
  23015. "name": "download",
  23016. "font_class": "download",
  23017. "unicode": "e68d",
  23018. "unicode_decimal": 59021
  23019. }, {
  23020. "icon_id": "24879601",
  23021. "name": "help",
  23022. "font_class": "help",
  23023. "unicode": "e679",
  23024. "unicode_decimal": 59001
  23025. }, {
  23026. "icon_id": "24879602",
  23027. "name": "navigate-filled",
  23028. "font_class": "navigate-filled",
  23029. "unicode": "e67a",
  23030. "unicode_decimal": 59002
  23031. }, {
  23032. "icon_id": "24879603",
  23033. "name": "plusempty",
  23034. "font_class": "plusempty",
  23035. "unicode": "e67b",
  23036. "unicode_decimal": 59003
  23037. }, {
  23038. "icon_id": "24879604",
  23039. "name": "smallcircle",
  23040. "font_class": "smallcircle",
  23041. "unicode": "e67c",
  23042. "unicode_decimal": 59004
  23043. }, {
  23044. "icon_id": "24879605",
  23045. "name": "minus-filled",
  23046. "font_class": "minus-filled",
  23047. "unicode": "e67d",
  23048. "unicode_decimal": 59005
  23049. }, {
  23050. "icon_id": "24879606",
  23051. "name": "micoff",
  23052. "font_class": "micoff",
  23053. "unicode": "e67e",
  23054. "unicode_decimal": 59006
  23055. }, {
  23056. "icon_id": "24879588",
  23057. "name": "closeempty",
  23058. "font_class": "closeempty",
  23059. "unicode": "e66c",
  23060. "unicode_decimal": 58988
  23061. }, {
  23062. "icon_id": "24879589",
  23063. "name": "clear",
  23064. "font_class": "clear",
  23065. "unicode": "e66d",
  23066. "unicode_decimal": 58989
  23067. }, {
  23068. "icon_id": "24879590",
  23069. "name": "navigate",
  23070. "font_class": "navigate",
  23071. "unicode": "e66e",
  23072. "unicode_decimal": 58990
  23073. }, {
  23074. "icon_id": "24879591",
  23075. "name": "minus",
  23076. "font_class": "minus",
  23077. "unicode": "e66f",
  23078. "unicode_decimal": 58991
  23079. }, {
  23080. "icon_id": "24879592",
  23081. "name": "image",
  23082. "font_class": "image",
  23083. "unicode": "e670",
  23084. "unicode_decimal": 58992
  23085. }, {
  23086. "icon_id": "24879593",
  23087. "name": "mic",
  23088. "font_class": "mic",
  23089. "unicode": "e671",
  23090. "unicode_decimal": 58993
  23091. }, {
  23092. "icon_id": "24879594",
  23093. "name": "paperplane",
  23094. "font_class": "paperplane",
  23095. "unicode": "e672",
  23096. "unicode_decimal": 58994
  23097. }, {
  23098. "icon_id": "24879595",
  23099. "name": "close",
  23100. "font_class": "close",
  23101. "unicode": "e673",
  23102. "unicode_decimal": 58995
  23103. }, {
  23104. "icon_id": "24879596",
  23105. "name": "help-filled",
  23106. "font_class": "help-filled",
  23107. "unicode": "e674",
  23108. "unicode_decimal": 58996
  23109. }, {
  23110. "icon_id": "24879597",
  23111. "name": "plus-filled",
  23112. "font_class": "paperplane-filled",
  23113. "unicode": "e675",
  23114. "unicode_decimal": 58997
  23115. }, {
  23116. "icon_id": "24879598",
  23117. "name": "plus",
  23118. "font_class": "plus",
  23119. "unicode": "e676",
  23120. "unicode_decimal": 58998
  23121. }, {
  23122. "icon_id": "24879599",
  23123. "name": "mic-filled",
  23124. "font_class": "mic-filled",
  23125. "unicode": "e677",
  23126. "unicode_decimal": 58999
  23127. }, {
  23128. "icon_id": "24879600",
  23129. "name": "image-filled",
  23130. "font_class": "image-filled",
  23131. "unicode": "e678",
  23132. "unicode_decimal": 59000
  23133. }, {
  23134. "icon_id": "24855900",
  23135. "name": "locked-filled",
  23136. "font_class": "locked-filled",
  23137. "unicode": "e668",
  23138. "unicode_decimal": 58984
  23139. }, {
  23140. "icon_id": "24855901",
  23141. "name": "info",
  23142. "font_class": "info",
  23143. "unicode": "e669",
  23144. "unicode_decimal": 58985
  23145. }, {
  23146. "icon_id": "24855903",
  23147. "name": "locked",
  23148. "font_class": "locked",
  23149. "unicode": "e66b",
  23150. "unicode_decimal": 58987
  23151. }, {
  23152. "icon_id": "24855884",
  23153. "name": "camera-filled",
  23154. "font_class": "camera-filled",
  23155. "unicode": "e658",
  23156. "unicode_decimal": 58968
  23157. }, {
  23158. "icon_id": "24855885",
  23159. "name": "chat-filled",
  23160. "font_class": "chat-filled",
  23161. "unicode": "e659",
  23162. "unicode_decimal": 58969
  23163. }, {
  23164. "icon_id": "24855886",
  23165. "name": "camera",
  23166. "font_class": "camera",
  23167. "unicode": "e65a",
  23168. "unicode_decimal": 58970
  23169. }, {
  23170. "icon_id": "24855887",
  23171. "name": "circle",
  23172. "font_class": "circle",
  23173. "unicode": "e65b",
  23174. "unicode_decimal": 58971
  23175. }, {
  23176. "icon_id": "24855888",
  23177. "name": "checkmarkempty",
  23178. "font_class": "checkmarkempty",
  23179. "unicode": "e65c",
  23180. "unicode_decimal": 58972
  23181. }, {
  23182. "icon_id": "24855889",
  23183. "name": "chat",
  23184. "font_class": "chat",
  23185. "unicode": "e65d",
  23186. "unicode_decimal": 58973
  23187. }, {
  23188. "icon_id": "24855890",
  23189. "name": "circle-filled",
  23190. "font_class": "circle-filled",
  23191. "unicode": "e65e",
  23192. "unicode_decimal": 58974
  23193. }, {
  23194. "icon_id": "24855891",
  23195. "name": "flag",
  23196. "font_class": "flag",
  23197. "unicode": "e65f",
  23198. "unicode_decimal": 58975
  23199. }, {
  23200. "icon_id": "24855892",
  23201. "name": "flag-filled",
  23202. "font_class": "flag-filled",
  23203. "unicode": "e660",
  23204. "unicode_decimal": 58976
  23205. }, {
  23206. "icon_id": "24855893",
  23207. "name": "gear-filled",
  23208. "font_class": "gear-filled",
  23209. "unicode": "e661",
  23210. "unicode_decimal": 58977
  23211. }, {
  23212. "icon_id": "24855894",
  23213. "name": "home",
  23214. "font_class": "home",
  23215. "unicode": "e662",
  23216. "unicode_decimal": 58978
  23217. }, {
  23218. "icon_id": "24855895",
  23219. "name": "home-filled",
  23220. "font_class": "home-filled",
  23221. "unicode": "e663",
  23222. "unicode_decimal": 58979
  23223. }, {
  23224. "icon_id": "24855896",
  23225. "name": "gear",
  23226. "font_class": "gear",
  23227. "unicode": "e664",
  23228. "unicode_decimal": 58980
  23229. }, {
  23230. "icon_id": "24855897",
  23231. "name": "smallcircle-filled",
  23232. "font_class": "smallcircle-filled",
  23233. "unicode": "e665",
  23234. "unicode_decimal": 58981
  23235. }, {
  23236. "icon_id": "24855898",
  23237. "name": "map-filled",
  23238. "font_class": "map-filled",
  23239. "unicode": "e666",
  23240. "unicode_decimal": 58982
  23241. }, {
  23242. "icon_id": "24855899",
  23243. "name": "map",
  23244. "font_class": "map",
  23245. "unicode": "e667",
  23246. "unicode_decimal": 58983
  23247. }, {
  23248. "icon_id": "24855825",
  23249. "name": "refresh-filled",
  23250. "font_class": "refresh-filled",
  23251. "unicode": "e656",
  23252. "unicode_decimal": 58966
  23253. }, {
  23254. "icon_id": "24855826",
  23255. "name": "refresh",
  23256. "font_class": "refresh",
  23257. "unicode": "e657",
  23258. "unicode_decimal": 58967
  23259. }, {
  23260. "icon_id": "24855808",
  23261. "name": "cloud-upload",
  23262. "font_class": "cloud-upload",
  23263. "unicode": "e645",
  23264. "unicode_decimal": 58949
  23265. }, {
  23266. "icon_id": "24855809",
  23267. "name": "cloud-download-filled",
  23268. "font_class": "cloud-download-filled",
  23269. "unicode": "e646",
  23270. "unicode_decimal": 58950
  23271. }, {
  23272. "icon_id": "24855810",
  23273. "name": "cloud-download",
  23274. "font_class": "cloud-download",
  23275. "unicode": "e647",
  23276. "unicode_decimal": 58951
  23277. }, {
  23278. "icon_id": "24855811",
  23279. "name": "cloud-upload-filled",
  23280. "font_class": "cloud-upload-filled",
  23281. "unicode": "e648",
  23282. "unicode_decimal": 58952
  23283. }, {
  23284. "icon_id": "24855813",
  23285. "name": "redo",
  23286. "font_class": "redo",
  23287. "unicode": "e64a",
  23288. "unicode_decimal": 58954
  23289. }, {
  23290. "icon_id": "24855814",
  23291. "name": "images-filled",
  23292. "font_class": "images-filled",
  23293. "unicode": "e64b",
  23294. "unicode_decimal": 58955
  23295. }, {
  23296. "icon_id": "24855815",
  23297. "name": "undo-filled",
  23298. "font_class": "undo-filled",
  23299. "unicode": "e64c",
  23300. "unicode_decimal": 58956
  23301. }, {
  23302. "icon_id": "24855816",
  23303. "name": "more",
  23304. "font_class": "more",
  23305. "unicode": "e64d",
  23306. "unicode_decimal": 58957
  23307. }, {
  23308. "icon_id": "24855817",
  23309. "name": "more-filled",
  23310. "font_class": "more-filled",
  23311. "unicode": "e64e",
  23312. "unicode_decimal": 58958
  23313. }, {
  23314. "icon_id": "24855818",
  23315. "name": "undo",
  23316. "font_class": "undo",
  23317. "unicode": "e64f",
  23318. "unicode_decimal": 58959
  23319. }, {
  23320. "icon_id": "24855819",
  23321. "name": "images",
  23322. "font_class": "images",
  23323. "unicode": "e650",
  23324. "unicode_decimal": 58960
  23325. }, {
  23326. "icon_id": "24855821",
  23327. "name": "paperclip",
  23328. "font_class": "paperclip",
  23329. "unicode": "e652",
  23330. "unicode_decimal": 58962
  23331. }, {
  23332. "icon_id": "24855822",
  23333. "name": "settings",
  23334. "font_class": "settings",
  23335. "unicode": "e653",
  23336. "unicode_decimal": 58963
  23337. }, {
  23338. "icon_id": "24855823",
  23339. "name": "search",
  23340. "font_class": "search",
  23341. "unicode": "e654",
  23342. "unicode_decimal": 58964
  23343. }, {
  23344. "icon_id": "24855824",
  23345. "name": "redo-filled",
  23346. "font_class": "redo-filled",
  23347. "unicode": "e655",
  23348. "unicode_decimal": 58965
  23349. }, {
  23350. "icon_id": "24841702",
  23351. "name": "list",
  23352. "font_class": "list",
  23353. "unicode": "e644",
  23354. "unicode_decimal": 58948
  23355. }, {
  23356. "icon_id": "24841489",
  23357. "name": "mail-open-filled",
  23358. "font_class": "mail-open-filled",
  23359. "unicode": "e63a",
  23360. "unicode_decimal": 58938
  23361. }, {
  23362. "icon_id": "24841491",
  23363. "name": "hand-thumbsdown-filled",
  23364. "font_class": "hand-down-filled",
  23365. "unicode": "e63c",
  23366. "unicode_decimal": 58940
  23367. }, {
  23368. "icon_id": "24841492",
  23369. "name": "hand-thumbsdown",
  23370. "font_class": "hand-down",
  23371. "unicode": "e63d",
  23372. "unicode_decimal": 58941
  23373. }, {
  23374. "icon_id": "24841493",
  23375. "name": "hand-thumbsup-filled",
  23376. "font_class": "hand-up-filled",
  23377. "unicode": "e63e",
  23378. "unicode_decimal": 58942
  23379. }, {
  23380. "icon_id": "24841494",
  23381. "name": "hand-thumbsup",
  23382. "font_class": "hand-up",
  23383. "unicode": "e63f",
  23384. "unicode_decimal": 58943
  23385. }, {
  23386. "icon_id": "24841496",
  23387. "name": "heart-filled",
  23388. "font_class": "heart-filled",
  23389. "unicode": "e641",
  23390. "unicode_decimal": 58945
  23391. }, {
  23392. "icon_id": "24841498",
  23393. "name": "mail-open",
  23394. "font_class": "mail-open",
  23395. "unicode": "e643",
  23396. "unicode_decimal": 58947
  23397. }, {
  23398. "icon_id": "24841488",
  23399. "name": "heart",
  23400. "font_class": "heart",
  23401. "unicode": "e639",
  23402. "unicode_decimal": 58937
  23403. }, {
  23404. "icon_id": "24839963",
  23405. "name": "loop",
  23406. "font_class": "loop",
  23407. "unicode": "e633",
  23408. "unicode_decimal": 58931
  23409. }, {
  23410. "icon_id": "24839866",
  23411. "name": "pulldown",
  23412. "font_class": "pulldown",
  23413. "unicode": "e632",
  23414. "unicode_decimal": 58930
  23415. }, {
  23416. "icon_id": "24813798",
  23417. "name": "scan",
  23418. "font_class": "scan",
  23419. "unicode": "e62a",
  23420. "unicode_decimal": 58922
  23421. }, {
  23422. "icon_id": "24813786",
  23423. "name": "bars",
  23424. "font_class": "bars",
  23425. "unicode": "e627",
  23426. "unicode_decimal": 58919
  23427. }, {
  23428. "icon_id": "24813788",
  23429. "name": "cart-filled",
  23430. "font_class": "cart-filled",
  23431. "unicode": "e629",
  23432. "unicode_decimal": 58921
  23433. }, {
  23434. "icon_id": "24813790",
  23435. "name": "checkbox",
  23436. "font_class": "checkbox",
  23437. "unicode": "e62b",
  23438. "unicode_decimal": 58923
  23439. }, {
  23440. "icon_id": "24813791",
  23441. "name": "checkbox-filled",
  23442. "font_class": "checkbox-filled",
  23443. "unicode": "e62c",
  23444. "unicode_decimal": 58924
  23445. }, {
  23446. "icon_id": "24813794",
  23447. "name": "shop",
  23448. "font_class": "shop",
  23449. "unicode": "e62f",
  23450. "unicode_decimal": 58927
  23451. }, {
  23452. "icon_id": "24813795",
  23453. "name": "headphones",
  23454. "font_class": "headphones",
  23455. "unicode": "e630",
  23456. "unicode_decimal": 58928
  23457. }, {
  23458. "icon_id": "24813796",
  23459. "name": "cart",
  23460. "font_class": "cart",
  23461. "unicode": "e631",
  23462. "unicode_decimal": 58929
  23463. }]
  23464. };
  23465. exports.default = _default;
  23466. /***/ }),
  23467. /* 280 */,
  23468. /* 281 */,
  23469. /* 282 */,
  23470. /* 283 */,
  23471. /* 284 */,
  23472. /* 285 */,
  23473. /* 286 */,
  23474. /* 287 */
  23475. /*!******************************************************************************************!*\
  23476. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-picker/props.js ***!
  23477. \******************************************************************************************/
  23478. /*! no static exports found */
  23479. /***/ (function(module, exports, __webpack_require__) {
  23480. "use strict";
  23481. /* WEBPACK VAR INJECTION */(function(uni) {
  23482. Object.defineProperty(exports, "__esModule", {
  23483. value: true
  23484. });
  23485. exports.default = void 0;
  23486. var _default = {
  23487. props: {
  23488. // 是否展示picker弹窗
  23489. show: {
  23490. type: Boolean,
  23491. default: uni.$u.props.picker.show
  23492. },
  23493. // 是否展示顶部的操作栏
  23494. showToolbar: {
  23495. type: Boolean,
  23496. default: uni.$u.props.picker.showToolbar
  23497. },
  23498. // 顶部标题
  23499. title: {
  23500. type: String,
  23501. default: uni.$u.props.picker.title
  23502. },
  23503. // 对象数组,设置每一列的数据
  23504. columns: {
  23505. type: Array,
  23506. default: uni.$u.props.picker.columns
  23507. },
  23508. // 是否显示加载中状态
  23509. loading: {
  23510. type: Boolean,
  23511. default: uni.$u.props.picker.loading
  23512. },
  23513. // 各列中,单个选项的高度
  23514. itemHeight: {
  23515. type: [String, Number],
  23516. default: uni.$u.props.picker.itemHeight
  23517. },
  23518. // 取消按钮的文字
  23519. cancelText: {
  23520. type: String,
  23521. default: uni.$u.props.picker.cancelText
  23522. },
  23523. // 确认按钮的文字
  23524. confirmText: {
  23525. type: String,
  23526. default: uni.$u.props.picker.confirmText
  23527. },
  23528. // 取消按钮的颜色
  23529. cancelColor: {
  23530. type: String,
  23531. default: uni.$u.props.picker.cancelColor
  23532. },
  23533. // 确认按钮的颜色
  23534. confirmColor: {
  23535. type: String,
  23536. default: uni.$u.props.picker.confirmColor
  23537. },
  23538. // 每列中可见选项的数量
  23539. visibleItemCount: {
  23540. type: [String, Number],
  23541. default: uni.$u.props.picker.visibleItemCount
  23542. },
  23543. // 选项对象中,需要展示的属性键名
  23544. keyName: {
  23545. type: String,
  23546. default: uni.$u.props.picker.keyName
  23547. },
  23548. // 是否允许点击遮罩关闭选择器
  23549. closeOnClickOverlay: {
  23550. type: Boolean,
  23551. default: uni.$u.props.picker.closeOnClickOverlay
  23552. },
  23553. // 各列的默认索引
  23554. defaultIndex: {
  23555. type: Array,
  23556. default: uni.$u.props.picker.defaultIndex
  23557. },
  23558. // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
  23559. immediateChange: {
  23560. type: Boolean,
  23561. default: uni.$u.props.picker.immediateChange
  23562. }
  23563. }
  23564. };
  23565. exports.default = _default;
  23566. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23567. /***/ }),
  23568. /* 288 */,
  23569. /* 289 */,
  23570. /* 290 */,
  23571. /* 291 */,
  23572. /* 292 */,
  23573. /* 293 */,
  23574. /* 294 */,
  23575. /* 295 */
  23576. /*!**************************************************************************************************************!*\
  23577. !*** D:/demo/businessCard/xiaochengxu/uni_modules/lyuan-tx-asr/components/lyuan-tx-asr/asrauthentication.js ***!
  23578. \**************************************************************************************************************/
  23579. /*! no static exports found */
  23580. /***/ (function(module, exports, __webpack_require__) {
  23581. "use strict";
  23582. /* WEBPACK VAR INJECTION */(function(uni) {
  23583. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  23584. Object.defineProperty(exports, "__esModule", {
  23585. value: true
  23586. });
  23587. exports.default = void 0;
  23588. var _cryptojs = _interopRequireDefault(__webpack_require__(/*! ./cryptojs.js */ 296));
  23589. /** 获取签名 start */
  23590. function toUint8Array(wordArray) {
  23591. // Shortcuts
  23592. var words = wordArray.words;
  23593. var sigBytes = wordArray.sigBytes;
  23594. // Convert
  23595. var u8 = new Uint8Array(sigBytes);
  23596. for (var i = 0; i < sigBytes; i++) {
  23597. u8[i] = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  23598. }
  23599. return u8;
  23600. }
  23601. function Uint8ArrayToString(fileData) {
  23602. var dataString = '';
  23603. for (var i = 0; i < fileData.length; i++) {
  23604. dataString += String.fromCharCode(fileData[i]);
  23605. }
  23606. return dataString;
  23607. }
  23608. // 签名函数示例
  23609. function signCallback(signStr, secretKey) {
  23610. var hash = _cryptojs.default.HmacSHA1(signStr, secretKey);
  23611. var bytes = Uint8ArrayToString(toUint8Array(hash));
  23612. return uni.arrayBufferToBase64(toUint8Array(hash));
  23613. }
  23614. /** 获取签名 end */
  23615. var _default = {
  23616. signCallback: signCallback
  23617. };
  23618. exports.default = _default;
  23619. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23620. /***/ }),
  23621. /* 296 */
  23622. /*!*****************************************************************************************************!*\
  23623. !*** D:/demo/businessCard/xiaochengxu/uni_modules/lyuan-tx-asr/components/lyuan-tx-asr/cryptojs.js ***!
  23624. \*****************************************************************************************************/
  23625. /*! no static exports found */
  23626. /***/ (function(module, exports, __webpack_require__) {
  23627. "use strict";
  23628. Object.defineProperty(exports, "__esModule", {
  23629. value: true
  23630. });
  23631. exports.default = void 0;
  23632. /*
  23633. * [js-sha1]
  23634. *
  23635. * @version 0.6.0
  23636. * @copyright H, J-C 2018-9-28
  23637. * @license MIT
  23638. */
  23639. var CryptoJS = function (g, l) {
  23640. var e = {},
  23641. d = e.lib = {},
  23642. m = function m() {},
  23643. k = d.Base = {
  23644. extend: function extend(a) {
  23645. m.prototype = this;
  23646. var c = new m();
  23647. a && c.mixIn(a);
  23648. c.hasOwnProperty("init") || (c.init = function () {
  23649. c.$super.init.apply(this, arguments);
  23650. });
  23651. c.init.prototype = c;
  23652. c.$super = this;
  23653. return c;
  23654. },
  23655. create: function create() {
  23656. var a = this.extend();
  23657. a.init.apply(a, arguments);
  23658. return a;
  23659. },
  23660. init: function init() {},
  23661. mixIn: function mixIn(a) {
  23662. for (var c in a) {
  23663. a.hasOwnProperty(c) && (this[c] = a[c]);
  23664. }
  23665. a.hasOwnProperty("toString") && (this.toString = a.toString);
  23666. },
  23667. clone: function clone() {
  23668. return this.init.prototype.extend(this);
  23669. }
  23670. },
  23671. p = d.WordArray = k.extend({
  23672. init: function init(a, c) {
  23673. a = this.words = a || [];
  23674. this.sigBytes = c != l ? c : 4 * a.length;
  23675. },
  23676. toString: function toString(a) {
  23677. return (a || n).stringify(this);
  23678. },
  23679. concat: function concat(a) {
  23680. var c = this.words,
  23681. q = a.words,
  23682. f = this.sigBytes;
  23683. a = a.sigBytes;
  23684. this.clamp();
  23685. if (f % 4) for (var b = 0; b < a; b++) {
  23686. c[f + b >>> 2] |= (q[b >>> 2] >>> 24 - 8 * (b % 4) & 255) << 24 - 8 * ((f + b) % 4);
  23687. } else if (65535 < q.length) for (b = 0; b < a; b += 4) {
  23688. c[f + b >>> 2] = q[b >>> 2];
  23689. } else c.push.apply(c, q);
  23690. this.sigBytes += a;
  23691. return this;
  23692. },
  23693. clamp: function clamp() {
  23694. var a = this.words,
  23695. c = this.sigBytes;
  23696. a[c >>> 2] &= 4294967295 << 32 - 8 * (c % 4);
  23697. a.length = g.ceil(c / 4);
  23698. },
  23699. clone: function clone() {
  23700. var a = k.clone.call(this);
  23701. a.words = this.words.slice(0);
  23702. return a;
  23703. },
  23704. random: function random(a) {
  23705. for (var c = [], b = 0; b < a; b += 4) {
  23706. c.push(4294967296 * g.random() | 0);
  23707. }
  23708. return new p.init(c, a);
  23709. }
  23710. }),
  23711. b = e.enc = {},
  23712. n = b.Hex = {
  23713. stringify: function stringify(a) {
  23714. var c = a.words;
  23715. a = a.sigBytes;
  23716. for (var b = [], f = 0; f < a; f++) {
  23717. var d = c[f >>> 2] >>> 24 - 8 * (f % 4) & 255;
  23718. b.push((d >>> 4).toString(16));
  23719. b.push((d & 15).toString(16));
  23720. }
  23721. return b.join("");
  23722. },
  23723. parse: function parse(a) {
  23724. for (var c = a.length, b = [], f = 0; f < c; f += 2) {
  23725. b[f >>> 3] |= parseInt(a.substr(f, 2), 16) << 24 - 4 * (f % 8);
  23726. }
  23727. return new p.init(b, c / 2);
  23728. }
  23729. },
  23730. j = b.Latin1 = {
  23731. stringify: function stringify(a) {
  23732. var c = a.words;
  23733. a = a.sigBytes;
  23734. for (var b = [], f = 0; f < a; f++) {
  23735. b.push(String.fromCharCode(c[f >>> 2] >>> 24 - 8 * (f % 4) & 255));
  23736. }
  23737. return b.join("");
  23738. },
  23739. parse: function parse(a) {
  23740. for (var c = a.length, b = [], f = 0; f < c; f++) {
  23741. b[f >>> 2] |= (a.charCodeAt(f) & 255) << 24 - 8 * (f % 4);
  23742. }
  23743. return new p.init(b, c);
  23744. }
  23745. },
  23746. h = b.Utf8 = {
  23747. stringify: function stringify(a) {
  23748. try {
  23749. return decodeURIComponent(escape(j.stringify(a)));
  23750. } catch (c) {
  23751. throw Error("Malformed UTF-8 data");
  23752. }
  23753. },
  23754. parse: function parse(a) {
  23755. return j.parse(unescape(encodeURIComponent(a)));
  23756. }
  23757. },
  23758. r = d.BufferedBlockAlgorithm = k.extend({
  23759. reset: function reset() {
  23760. this._data = new p.init();
  23761. this._nDataBytes = 0;
  23762. },
  23763. _append: function _append(a) {
  23764. "string" == typeof a && (a = h.parse(a));
  23765. this._data.concat(a);
  23766. this._nDataBytes += a.sigBytes;
  23767. },
  23768. _process: function _process(a) {
  23769. var c = this._data,
  23770. b = c.words,
  23771. f = c.sigBytes,
  23772. d = this.blockSize,
  23773. e = f / (4 * d),
  23774. e = a ? g.ceil(e) : g.max((e | 0) - this._minBufferSize, 0);
  23775. a = e * d;
  23776. f = g.min(4 * a, f);
  23777. if (a) {
  23778. for (var k = 0; k < a; k += d) {
  23779. this._doProcessBlock(b, k);
  23780. }
  23781. k = b.splice(0, a);
  23782. c.sigBytes -= f;
  23783. }
  23784. return new p.init(k, f);
  23785. },
  23786. clone: function clone() {
  23787. var a = k.clone.call(this);
  23788. a._data = this._data.clone();
  23789. return a;
  23790. },
  23791. _minBufferSize: 0
  23792. });
  23793. d.Hasher = r.extend({
  23794. cfg: k.extend(),
  23795. init: function init(a) {
  23796. this.cfg = this.cfg.extend(a);
  23797. this.reset();
  23798. },
  23799. reset: function reset() {
  23800. r.reset.call(this);
  23801. this._doReset();
  23802. },
  23803. update: function update(a) {
  23804. this._append(a);
  23805. this._process();
  23806. return this;
  23807. },
  23808. finalize: function finalize(a) {
  23809. a && this._append(a);
  23810. return this._doFinalize();
  23811. },
  23812. blockSize: 16,
  23813. _createHelper: function _createHelper(a) {
  23814. return function (b, d) {
  23815. return new a.init(d).finalize(b);
  23816. };
  23817. },
  23818. _createHmacHelper: function _createHmacHelper(a) {
  23819. return function (b, d) {
  23820. return new s.HMAC.init(a, d).finalize(b);
  23821. };
  23822. }
  23823. });
  23824. var s = e.algo = {};
  23825. return e;
  23826. }(Math);
  23827. (function () {
  23828. var g = CryptoJS,
  23829. l = g.lib,
  23830. e = l.WordArray,
  23831. d = l.Hasher,
  23832. m = [],
  23833. l = g.algo.SHA1 = d.extend({
  23834. _doReset: function _doReset() {
  23835. this._hash = new e.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
  23836. },
  23837. _doProcessBlock: function _doProcessBlock(d, e) {
  23838. for (var b = this._hash.words, n = b[0], j = b[1], h = b[2], g = b[3], l = b[4], a = 0; 80 > a; a++) {
  23839. if (16 > a) m[a] = d[e + a] | 0;else {
  23840. var c = m[a - 3] ^ m[a - 8] ^ m[a - 14] ^ m[a - 16];
  23841. m[a] = c << 1 | c >>> 31;
  23842. }
  23843. c = (n << 5 | n >>> 27) + l + m[a];
  23844. c = 20 > a ? c + ((j & h | ~j & g) + 1518500249) : 40 > a ? c + ((j ^ h ^ g) + 1859775393) : 60 > a ? c + ((j & h | j & g | h & g) - 1894007588) : c + ((j ^ h ^ g) - 899497514);
  23845. l = g;
  23846. g = h;
  23847. h = j << 30 | j >>> 2;
  23848. j = n;
  23849. n = c;
  23850. }
  23851. b[0] = b[0] + n | 0;
  23852. b[1] = b[1] + j | 0;
  23853. b[2] = b[2] + h | 0;
  23854. b[3] = b[3] + g | 0;
  23855. b[4] = b[4] + l | 0;
  23856. },
  23857. _doFinalize: function _doFinalize() {
  23858. var d = this._data,
  23859. e = d.words,
  23860. b = 8 * this._nDataBytes,
  23861. g = 8 * d.sigBytes;
  23862. e[g >>> 5] |= 128 << 24 - g % 32;
  23863. e[(g + 64 >>> 9 << 4) + 14] = Math.floor(b / 4294967296);
  23864. e[(g + 64 >>> 9 << 4) + 15] = b;
  23865. d.sigBytes = 4 * e.length;
  23866. this._process();
  23867. return this._hash;
  23868. },
  23869. clone: function clone() {
  23870. var e = d.clone.call(this);
  23871. e._hash = this._hash.clone();
  23872. return e;
  23873. }
  23874. });
  23875. g.SHA1 = d._createHelper(l);
  23876. g.HmacSHA1 = d._createHmacHelper(l);
  23877. })();
  23878. (function () {
  23879. var g = CryptoJS,
  23880. l = g.enc.Utf8;
  23881. g.algo.HMAC = g.lib.Base.extend({
  23882. init: function init(e, d) {
  23883. e = this._hasher = new e.init();
  23884. "string" == typeof d && (d = l.parse(d));
  23885. var g = e.blockSize,
  23886. k = 4 * g;
  23887. d.sigBytes > k && (d = e.finalize(d));
  23888. d.clamp();
  23889. for (var p = this._oKey = d.clone(), b = this._iKey = d.clone(), n = p.words, j = b.words, h = 0; h < g; h++) {
  23890. n[h] ^= 1549556828, j[h] ^= 909522486;
  23891. }
  23892. p.sigBytes = b.sigBytes = k;
  23893. this.reset();
  23894. },
  23895. reset: function reset() {
  23896. var e = this._hasher;
  23897. e.reset();
  23898. e.update(this._iKey);
  23899. },
  23900. update: function update(e) {
  23901. this._hasher.update(e);
  23902. return this;
  23903. },
  23904. finalize: function finalize(e) {
  23905. var d = this._hasher;
  23906. e = d.finalize(e);
  23907. d.reset();
  23908. return d.finalize(this._oKey.clone().concat(e));
  23909. }
  23910. });
  23911. })();
  23912. //使用算法
  23913. // var key = "f7205fffe445421fdssdfsdfdsfs"
  23914. // var sha1_result = CryptoJS.HmacSHA1("helloword", key)
  23915. // console.log('-------',sha1_result.toString())
  23916. var _default = CryptoJS;
  23917. exports.default = _default;
  23918. /***/ }),
  23919. /* 297 */,
  23920. /* 298 */,
  23921. /* 299 */,
  23922. /* 300 */,
  23923. /* 301 */,
  23924. /* 302 */,
  23925. /* 303 */,
  23926. /* 304 */,
  23927. /* 305 */,
  23928. /* 306 */,
  23929. /* 307 */,
  23930. /* 308 */,
  23931. /* 309 */,
  23932. /* 310 */,
  23933. /* 311 */
  23934. /*!**********************************************************************************************!*\
  23935. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  23936. \**********************************************************************************************/
  23937. /*! no static exports found */
  23938. /***/ (function(module, exports, __webpack_require__) {
  23939. "use strict";
  23940. /* WEBPACK VAR INJECTION */(function(uni) {
  23941. Object.defineProperty(exports, "__esModule", {
  23942. value: true
  23943. });
  23944. exports.default = void 0;
  23945. var _default = {
  23946. props: {
  23947. bgColor: {
  23948. type: String,
  23949. default: uni.$u.props.statusBar.bgColor
  23950. }
  23951. }
  23952. };
  23953. exports.default = _default;
  23954. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23955. /***/ }),
  23956. /* 312 */,
  23957. /* 313 */,
  23958. /* 314 */,
  23959. /* 315 */,
  23960. /* 316 */,
  23961. /* 317 */,
  23962. /* 318 */,
  23963. /* 319 */
  23964. /*!*****************************************************************************************!*\
  23965. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-popup/props.js ***!
  23966. \*****************************************************************************************/
  23967. /*! no static exports found */
  23968. /***/ (function(module, exports, __webpack_require__) {
  23969. "use strict";
  23970. /* WEBPACK VAR INJECTION */(function(uni) {
  23971. Object.defineProperty(exports, "__esModule", {
  23972. value: true
  23973. });
  23974. exports.default = void 0;
  23975. var _default = {
  23976. props: {
  23977. // 是否展示弹窗
  23978. show: {
  23979. type: Boolean,
  23980. default: uni.$u.props.popup.show
  23981. },
  23982. // 是否显示遮罩
  23983. overlay: {
  23984. type: Boolean,
  23985. default: uni.$u.props.popup.overlay
  23986. },
  23987. // 弹出的方向,可选值为 top bottom right left center
  23988. mode: {
  23989. type: String,
  23990. default: uni.$u.props.popup.mode
  23991. },
  23992. // 动画时长,单位ms
  23993. duration: {
  23994. type: [String, Number],
  23995. default: uni.$u.props.popup.duration
  23996. },
  23997. // 是否显示关闭图标
  23998. closeable: {
  23999. type: Boolean,
  24000. default: uni.$u.props.popup.closeable
  24001. },
  24002. // 自定义遮罩的样式
  24003. overlayStyle: {
  24004. type: [Object, String],
  24005. default: uni.$u.props.popup.overlayStyle
  24006. },
  24007. // 点击遮罩是否关闭弹窗
  24008. closeOnClickOverlay: {
  24009. type: Boolean,
  24010. default: uni.$u.props.popup.closeOnClickOverlay
  24011. },
  24012. // 层级
  24013. zIndex: {
  24014. type: [String, Number],
  24015. default: uni.$u.props.popup.zIndex
  24016. },
  24017. // 是否为iPhoneX留出底部安全距离
  24018. safeAreaInsetBottom: {
  24019. type: Boolean,
  24020. default: uni.$u.props.popup.safeAreaInsetBottom
  24021. },
  24022. // 是否留出顶部安全距离(状态栏高度)
  24023. safeAreaInsetTop: {
  24024. type: Boolean,
  24025. default: uni.$u.props.popup.safeAreaInsetTop
  24026. },
  24027. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  24028. closeIconPos: {
  24029. type: String,
  24030. default: uni.$u.props.popup.closeIconPos
  24031. },
  24032. // 是否显示圆角
  24033. round: {
  24034. type: [Boolean, String, Number],
  24035. default: uni.$u.props.popup.round
  24036. },
  24037. // mode=center,也即中部弹出时,是否使用缩放模式
  24038. zoom: {
  24039. type: Boolean,
  24040. default: uni.$u.props.popup.zoom
  24041. },
  24042. // 弹窗背景色,设置为transparent可去除白色背景
  24043. bgColor: {
  24044. type: String,
  24045. default: uni.$u.props.popup.bgColor
  24046. },
  24047. // 遮罩的透明度,0-1之间
  24048. overlayOpacity: {
  24049. type: [Number, String],
  24050. default: uni.$u.props.popup.overlayOpacity
  24051. }
  24052. }
  24053. };
  24054. exports.default = _default;
  24055. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24056. /***/ }),
  24057. /* 320 */,
  24058. /* 321 */,
  24059. /* 322 */,
  24060. /* 323 */,
  24061. /* 324 */,
  24062. /* 325 */,
  24063. /* 326 */,
  24064. /* 327 */
  24065. /*!*******************************************************************************************!*\
  24066. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-toolbar/props.js ***!
  24067. \*******************************************************************************************/
  24068. /*! no static exports found */
  24069. /***/ (function(module, exports, __webpack_require__) {
  24070. "use strict";
  24071. /* WEBPACK VAR INJECTION */(function(uni) {
  24072. Object.defineProperty(exports, "__esModule", {
  24073. value: true
  24074. });
  24075. exports.default = void 0;
  24076. var _default = {
  24077. props: {
  24078. // 是否展示工具条
  24079. show: {
  24080. type: Boolean,
  24081. default: uni.$u.props.toolbar.show
  24082. },
  24083. // 取消按钮的文字
  24084. cancelText: {
  24085. type: String,
  24086. default: uni.$u.props.toolbar.cancelText
  24087. },
  24088. // 确认按钮的文字
  24089. confirmText: {
  24090. type: String,
  24091. default: uni.$u.props.toolbar.confirmText
  24092. },
  24093. // 取消按钮的颜色
  24094. cancelColor: {
  24095. type: String,
  24096. default: uni.$u.props.toolbar.cancelColor
  24097. },
  24098. // 确认按钮的颜色
  24099. confirmColor: {
  24100. type: String,
  24101. default: uni.$u.props.toolbar.confirmColor
  24102. },
  24103. // 标题文字
  24104. title: {
  24105. type: String,
  24106. default: uni.$u.props.toolbar.title
  24107. }
  24108. }
  24109. };
  24110. exports.default = _default;
  24111. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24112. /***/ }),
  24113. /* 328 */,
  24114. /* 329 */,
  24115. /* 330 */,
  24116. /* 331 */,
  24117. /* 332 */,
  24118. /* 333 */,
  24119. /* 334 */,
  24120. /* 335 */
  24121. /*!************************************************************************************************!*\
  24122. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  24123. \************************************************************************************************/
  24124. /*! no static exports found */
  24125. /***/ (function(module, exports, __webpack_require__) {
  24126. "use strict";
  24127. /* WEBPACK VAR INJECTION */(function(uni) {
  24128. Object.defineProperty(exports, "__esModule", {
  24129. value: true
  24130. });
  24131. exports.default = void 0;
  24132. var _default = {
  24133. props: {
  24134. // 是否显示组件
  24135. show: {
  24136. type: Boolean,
  24137. default: uni.$u.props.loadingIcon.show
  24138. },
  24139. // 颜色
  24140. color: {
  24141. type: String,
  24142. default: uni.$u.props.loadingIcon.color
  24143. },
  24144. // 提示文字颜色
  24145. textColor: {
  24146. type: String,
  24147. default: uni.$u.props.loadingIcon.textColor
  24148. },
  24149. // 文字和图标是否垂直排列
  24150. vertical: {
  24151. type: Boolean,
  24152. default: uni.$u.props.loadingIcon.vertical
  24153. },
  24154. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  24155. mode: {
  24156. type: String,
  24157. default: uni.$u.props.loadingIcon.mode
  24158. },
  24159. // 图标大小,单位默认px
  24160. size: {
  24161. type: [String, Number],
  24162. default: uni.$u.props.loadingIcon.size
  24163. },
  24164. // 文字大小
  24165. textSize: {
  24166. type: [String, Number],
  24167. default: uni.$u.props.loadingIcon.textSize
  24168. },
  24169. // 文字内容
  24170. text: {
  24171. type: [String, Number],
  24172. default: uni.$u.props.loadingIcon.text
  24173. },
  24174. // 动画模式
  24175. timingFunction: {
  24176. type: String,
  24177. default: uni.$u.props.loadingIcon.timingFunction
  24178. },
  24179. // 动画执行周期时间
  24180. duration: {
  24181. type: [String, Number],
  24182. default: uni.$u.props.loadingIcon.duration
  24183. },
  24184. // mode=circle时的暗边颜色
  24185. inactiveColor: {
  24186. type: String,
  24187. default: uni.$u.props.loadingIcon.inactiveColor
  24188. }
  24189. }
  24190. };
  24191. exports.default = _default;
  24192. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24193. /***/ }),
  24194. /* 336 */,
  24195. /* 337 */,
  24196. /* 338 */,
  24197. /* 339 */,
  24198. /* 340 */,
  24199. /* 341 */,
  24200. /* 342 */,
  24201. /* 343 */
  24202. /*!*******************************************************************************************!*\
  24203. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-overlay/props.js ***!
  24204. \*******************************************************************************************/
  24205. /*! no static exports found */
  24206. /***/ (function(module, exports, __webpack_require__) {
  24207. "use strict";
  24208. /* WEBPACK VAR INJECTION */(function(uni) {
  24209. Object.defineProperty(exports, "__esModule", {
  24210. value: true
  24211. });
  24212. exports.default = void 0;
  24213. var _default = {
  24214. props: {
  24215. // 是否显示遮罩
  24216. show: {
  24217. type: Boolean,
  24218. default: uni.$u.props.overlay.show
  24219. },
  24220. // 层级z-index
  24221. zIndex: {
  24222. type: [String, Number],
  24223. default: uni.$u.props.overlay.zIndex
  24224. },
  24225. // 遮罩的过渡时间,单位为ms
  24226. duration: {
  24227. type: [String, Number],
  24228. default: uni.$u.props.overlay.duration
  24229. },
  24230. // 不透明度值,当做rgba的第四个参数
  24231. opacity: {
  24232. type: [String, Number],
  24233. default: uni.$u.props.overlay.opacity
  24234. }
  24235. }
  24236. };
  24237. exports.default = _default;
  24238. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24239. /***/ }),
  24240. /* 344 */,
  24241. /* 345 */,
  24242. /* 346 */,
  24243. /* 347 */,
  24244. /* 348 */,
  24245. /* 349 */,
  24246. /* 350 */,
  24247. /* 351 */
  24248. /*!**********************************************************************************************!*\
  24249. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-transition/props.js ***!
  24250. \**********************************************************************************************/
  24251. /*! no static exports found */
  24252. /***/ (function(module, exports, __webpack_require__) {
  24253. "use strict";
  24254. /* WEBPACK VAR INJECTION */(function(uni) {
  24255. Object.defineProperty(exports, "__esModule", {
  24256. value: true
  24257. });
  24258. exports.default = void 0;
  24259. var _default = {
  24260. props: {
  24261. // 是否展示组件
  24262. show: {
  24263. type: Boolean,
  24264. default: uni.$u.props.transition.show
  24265. },
  24266. // 使用的动画模式
  24267. mode: {
  24268. type: String,
  24269. default: uni.$u.props.transition.mode
  24270. },
  24271. // 动画的执行时间,单位ms
  24272. duration: {
  24273. type: [String, Number],
  24274. default: uni.$u.props.transition.duration
  24275. },
  24276. // 使用的动画过渡函数
  24277. timingFunction: {
  24278. type: String,
  24279. default: uni.$u.props.transition.timingFunction
  24280. }
  24281. }
  24282. };
  24283. exports.default = _default;
  24284. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24285. /***/ }),
  24286. /* 352 */
  24287. /*!***************************************************************************************************!*\
  24288. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-transition/transition.js ***!
  24289. \***************************************************************************************************/
  24290. /*! no static exports found */
  24291. /***/ (function(module, exports, __webpack_require__) {
  24292. "use strict";
  24293. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24294. Object.defineProperty(exports, "__esModule", {
  24295. value: true
  24296. });
  24297. exports.default = void 0;
  24298. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 75));
  24299. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 77));
  24300. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 353));
  24301. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  24302. var nextTick = function nextTick() {
  24303. return new Promise(function (resolve) {
  24304. return setTimeout(resolve, 1000 / 50);
  24305. });
  24306. };
  24307. // nvue动画模块实现细节抽离在外部文件
  24308. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  24309. var getClassNames = function getClassNames(name) {
  24310. return {
  24311. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  24312. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  24313. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  24314. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  24315. };
  24316. };
  24317. var _default = {
  24318. methods: {
  24319. // 组件被点击发出事件
  24320. clickHandler: function clickHandler() {
  24321. this.$emit('click');
  24322. },
  24323. // vue版本的组件进场处理
  24324. vueEnter: function vueEnter() {
  24325. var _this = this;
  24326. // 动画进入时的类名
  24327. var classNames = getClassNames(this.mode);
  24328. // 定义状态和发出动画进入前事件
  24329. this.status = 'enter';
  24330. this.$emit('beforeEnter');
  24331. this.inited = true;
  24332. this.display = true;
  24333. this.classes = classNames.enter;
  24334. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  24335. return _regenerator.default.wrap(function _callee$(_context) {
  24336. while (1) {
  24337. switch (_context.prev = _context.next) {
  24338. case 0:
  24339. // 标识动画尚未结束
  24340. _this.$emit('enter');
  24341. _this.transitionEnded = false;
  24342. // 组件动画进入后触发的事件
  24343. _this.$emit('afterEnter');
  24344. // 赋予组件enter-to类名
  24345. _this.classes = classNames['enter-to'];
  24346. case 4:
  24347. case "end":
  24348. return _context.stop();
  24349. }
  24350. }
  24351. }, _callee);
  24352. })));
  24353. },
  24354. // 动画离场处理
  24355. vueLeave: function vueLeave() {
  24356. var _this2 = this;
  24357. // 如果不是展示状态,无需执行逻辑
  24358. if (!this.display) return;
  24359. var classNames = getClassNames(this.mode);
  24360. // 标记离开状态和发出事件
  24361. this.status = 'leave';
  24362. this.$emit('beforeLeave');
  24363. // 获得类名
  24364. this.classes = classNames.leave;
  24365. this.$nextTick(function () {
  24366. // 动画正在离场的状态
  24367. _this2.transitionEnded = false;
  24368. _this2.$emit('leave');
  24369. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  24370. setTimeout(_this2.onTransitionEnd, _this2.duration);
  24371. _this2.classes = classNames['leave-to'];
  24372. });
  24373. },
  24374. // 完成过渡后触发
  24375. onTransitionEnd: function onTransitionEnd() {
  24376. // 如果已经是结束的状态,无需再处理
  24377. if (this.transitionEnded) return;
  24378. this.transitionEnded = true;
  24379. // 发出组件动画执行后的事件
  24380. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  24381. if (!this.show && this.display) {
  24382. this.display = false;
  24383. this.inited = false;
  24384. }
  24385. }
  24386. }
  24387. };
  24388. exports.default = _default;
  24389. /***/ }),
  24390. /* 353 */
  24391. /*!*****************************************************************************************************!*\
  24392. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  24393. \*****************************************************************************************************/
  24394. /*! no static exports found */
  24395. /***/ (function(module, exports, __webpack_require__) {
  24396. "use strict";
  24397. Object.defineProperty(exports, "__esModule", {
  24398. value: true
  24399. });
  24400. exports.default = void 0;
  24401. var _default = {
  24402. fade: {
  24403. enter: {
  24404. opacity: 0
  24405. },
  24406. 'enter-to': {
  24407. opacity: 1
  24408. },
  24409. leave: {
  24410. opacity: 1
  24411. },
  24412. 'leave-to': {
  24413. opacity: 0
  24414. }
  24415. },
  24416. 'fade-up': {
  24417. enter: {
  24418. opacity: 0,
  24419. transform: 'translateY(100%)'
  24420. },
  24421. 'enter-to': {
  24422. opacity: 1,
  24423. transform: 'translateY(0)'
  24424. },
  24425. leave: {
  24426. opacity: 1,
  24427. transform: 'translateY(0)'
  24428. },
  24429. 'leave-to': {
  24430. opacity: 0,
  24431. transform: 'translateY(100%)'
  24432. }
  24433. },
  24434. 'fade-down': {
  24435. enter: {
  24436. opacity: 0,
  24437. transform: 'translateY(-100%)'
  24438. },
  24439. 'enter-to': {
  24440. opacity: 1,
  24441. transform: 'translateY(0)'
  24442. },
  24443. leave: {
  24444. opacity: 1,
  24445. transform: 'translateY(0)'
  24446. },
  24447. 'leave-to': {
  24448. opacity: 0,
  24449. transform: 'translateY(-100%)'
  24450. }
  24451. },
  24452. 'fade-left': {
  24453. enter: {
  24454. opacity: 0,
  24455. transform: 'translateX(-100%)'
  24456. },
  24457. 'enter-to': {
  24458. opacity: 1,
  24459. transform: 'translateY(0)'
  24460. },
  24461. leave: {
  24462. opacity: 1,
  24463. transform: 'translateY(0)'
  24464. },
  24465. 'leave-to': {
  24466. opacity: 0,
  24467. transform: 'translateX(-100%)'
  24468. }
  24469. },
  24470. 'fade-right': {
  24471. enter: {
  24472. opacity: 0,
  24473. transform: 'translateX(100%)'
  24474. },
  24475. 'enter-to': {
  24476. opacity: 1,
  24477. transform: 'translateY(0)'
  24478. },
  24479. leave: {
  24480. opacity: 1,
  24481. transform: 'translateY(0)'
  24482. },
  24483. 'leave-to': {
  24484. opacity: 0,
  24485. transform: 'translateX(100%)'
  24486. }
  24487. },
  24488. 'slide-up': {
  24489. enter: {
  24490. transform: 'translateY(100%)'
  24491. },
  24492. 'enter-to': {
  24493. transform: 'translateY(0)'
  24494. },
  24495. leave: {
  24496. transform: 'translateY(0)'
  24497. },
  24498. 'leave-to': {
  24499. transform: 'translateY(100%)'
  24500. }
  24501. },
  24502. 'slide-down': {
  24503. enter: {
  24504. transform: 'translateY(-100%)'
  24505. },
  24506. 'enter-to': {
  24507. transform: 'translateY(0)'
  24508. },
  24509. leave: {
  24510. transform: 'translateY(0)'
  24511. },
  24512. 'leave-to': {
  24513. transform: 'translateY(-100%)'
  24514. }
  24515. },
  24516. 'slide-left': {
  24517. enter: {
  24518. transform: 'translateX(-100%)'
  24519. },
  24520. 'enter-to': {
  24521. transform: 'translateY(0)'
  24522. },
  24523. leave: {
  24524. transform: 'translateY(0)'
  24525. },
  24526. 'leave-to': {
  24527. transform: 'translateX(-100%)'
  24528. }
  24529. },
  24530. 'slide-right': {
  24531. enter: {
  24532. transform: 'translateX(100%)'
  24533. },
  24534. 'enter-to': {
  24535. transform: 'translateY(0)'
  24536. },
  24537. leave: {
  24538. transform: 'translateY(0)'
  24539. },
  24540. 'leave-to': {
  24541. transform: 'translateX(100%)'
  24542. }
  24543. },
  24544. zoom: {
  24545. enter: {
  24546. transform: 'scale(0.95)'
  24547. },
  24548. 'enter-to': {
  24549. transform: 'scale(1)'
  24550. },
  24551. leave: {
  24552. transform: 'scale(1)'
  24553. },
  24554. 'leave-to': {
  24555. transform: 'scale(0.95)'
  24556. }
  24557. },
  24558. 'fade-zoom': {
  24559. enter: {
  24560. opacity: 0,
  24561. transform: 'scale(0.95)'
  24562. },
  24563. 'enter-to': {
  24564. opacity: 1,
  24565. transform: 'scale(1)'
  24566. },
  24567. leave: {
  24568. opacity: 1,
  24569. transform: 'scale(1)'
  24570. },
  24571. 'leave-to': {
  24572. opacity: 0,
  24573. transform: 'scale(0.95)'
  24574. }
  24575. }
  24576. };
  24577. exports.default = _default;
  24578. /***/ }),
  24579. /* 354 */,
  24580. /* 355 */,
  24581. /* 356 */,
  24582. /* 357 */,
  24583. /* 358 */,
  24584. /* 359 */,
  24585. /* 360 */,
  24586. /* 361 */
  24587. /*!***********************************************************************************************!*\
  24588. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  24589. \***********************************************************************************************/
  24590. /*! no static exports found */
  24591. /***/ (function(module, exports, __webpack_require__) {
  24592. "use strict";
  24593. Object.defineProperty(exports, "__esModule", {
  24594. value: true
  24595. });
  24596. exports.default = void 0;
  24597. var _default = {
  24598. props: {}
  24599. };
  24600. exports.default = _default;
  24601. /***/ }),
  24602. /* 362 */,
  24603. /* 363 */,
  24604. /* 364 */,
  24605. /* 365 */,
  24606. /* 366 */,
  24607. /* 367 */,
  24608. /* 368 */,
  24609. /* 369 */,
  24610. /* 370 */,
  24611. /* 371 */,
  24612. /* 372 */,
  24613. /* 373 */,
  24614. /* 374 */,
  24615. /* 375 */,
  24616. /* 376 */,
  24617. /* 377 */,
  24618. /* 378 */,
  24619. /* 379 */,
  24620. /* 380 */,
  24621. /* 381 */,
  24622. /* 382 */,
  24623. /* 383 */,
  24624. /* 384 */,
  24625. /* 385 */,
  24626. /* 386 */,
  24627. /* 387 */,
  24628. /* 388 */,
  24629. /* 389 */,
  24630. /* 390 */,
  24631. /* 391 */,
  24632. /* 392 */,
  24633. /* 393 */,
  24634. /* 394 */,
  24635. /* 395 */,
  24636. /* 396 */,
  24637. /* 397 */,
  24638. /* 398 */,
  24639. /* 399 */,
  24640. /* 400 */,
  24641. /* 401 */,
  24642. /* 402 */,
  24643. /* 403 */,
  24644. /* 404 */,
  24645. /* 405 */,
  24646. /* 406 */,
  24647. /* 407 */,
  24648. /* 408 */,
  24649. /* 409 */,
  24650. /* 410 */,
  24651. /* 411 */,
  24652. /* 412 */,
  24653. /* 413 */,
  24654. /* 414 */,
  24655. /* 415 */,
  24656. /* 416 */,
  24657. /* 417 */,
  24658. /* 418 */,
  24659. /* 419 */,
  24660. /* 420 */,
  24661. /* 421 */,
  24662. /* 422 */,
  24663. /* 423 */,
  24664. /* 424 */,
  24665. /* 425 */,
  24666. /* 426 */,
  24667. /* 427 */,
  24668. /* 428 */,
  24669. /* 429 */,
  24670. /* 430 */,
  24671. /* 431 */
  24672. /*!***********************************************************************************************!*\
  24673. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  24674. \***********************************************************************************************/
  24675. /*! no static exports found */
  24676. /***/ (function(module, exports, __webpack_require__) {
  24677. "use strict";
  24678. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24679. Object.defineProperty(exports, "__esModule", {
  24680. value: true
  24681. });
  24682. exports.default = void 0;
  24683. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 75));
  24684. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 432));
  24685. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 433));
  24686. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 435));
  24687. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 77));
  24688. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  24689. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  24690. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  24691. 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); }; }
  24692. 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; } }
  24693. var pattern = {
  24694. email: /^\S+?@\S+?\.\S+?$/,
  24695. 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]$/,
  24696. 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')
  24697. };
  24698. var FORMAT_MAPPING = {
  24699. "int": 'integer',
  24700. "bool": 'boolean',
  24701. "double": 'number',
  24702. "long": 'number',
  24703. "password": 'string'
  24704. // "fileurls": 'array'
  24705. };
  24706. function formatMessage(args) {
  24707. var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  24708. var defaultMessage = ['label'];
  24709. defaultMessage.forEach(function (item) {
  24710. if (args[item] === undefined) {
  24711. args[item] = '';
  24712. }
  24713. });
  24714. var str = resources;
  24715. for (var key in args) {
  24716. var reg = new RegExp('{' + key + '}');
  24717. str = str.replace(reg, args[key]);
  24718. }
  24719. return str;
  24720. }
  24721. function isEmptyValue(value, type) {
  24722. if (value === undefined || value === null) {
  24723. return true;
  24724. }
  24725. if (typeof value === 'string' && !value) {
  24726. return true;
  24727. }
  24728. if (Array.isArray(value) && !value.length) {
  24729. return true;
  24730. }
  24731. if (type === 'object' && !Object.keys(value).length) {
  24732. return true;
  24733. }
  24734. return false;
  24735. }
  24736. var types = {
  24737. integer: function integer(value) {
  24738. return types.number(value) && parseInt(value, 10) === value;
  24739. },
  24740. string: function string(value) {
  24741. return typeof value === 'string';
  24742. },
  24743. number: function number(value) {
  24744. if (isNaN(value)) {
  24745. return false;
  24746. }
  24747. return typeof value === 'number';
  24748. },
  24749. "boolean": function boolean(value) {
  24750. return typeof value === 'boolean';
  24751. },
  24752. "float": function float(value) {
  24753. return types.number(value) && !types.integer(value);
  24754. },
  24755. array: function array(value) {
  24756. return Array.isArray(value);
  24757. },
  24758. object: function object(value) {
  24759. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  24760. },
  24761. date: function date(value) {
  24762. return value instanceof Date;
  24763. },
  24764. timestamp: function timestamp(value) {
  24765. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  24766. return false;
  24767. }
  24768. return true;
  24769. },
  24770. file: function file(value) {
  24771. return typeof value.url === 'string';
  24772. },
  24773. email: function email(value) {
  24774. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  24775. },
  24776. url: function url(value) {
  24777. return typeof value === 'string' && !!value.match(pattern.url);
  24778. },
  24779. pattern: function pattern(reg, value) {
  24780. try {
  24781. return new RegExp(reg).test(value);
  24782. } catch (e) {
  24783. return false;
  24784. }
  24785. },
  24786. method: function method(value) {
  24787. return typeof value === 'function';
  24788. },
  24789. idcard: function idcard(value) {
  24790. return typeof value === 'string' && !!value.match(pattern.idcard);
  24791. },
  24792. 'url-https': function urlHttps(value) {
  24793. return this.url(value) && value.startsWith('https://');
  24794. },
  24795. 'url-scheme': function urlScheme(value) {
  24796. return value.startsWith('://');
  24797. },
  24798. 'url-web': function urlWeb(value) {
  24799. return false;
  24800. }
  24801. };
  24802. var RuleValidator = /*#__PURE__*/function () {
  24803. function RuleValidator(message) {
  24804. (0, _classCallCheck2.default)(this, RuleValidator);
  24805. this._message = message;
  24806. }
  24807. (0, _createClass2.default)(RuleValidator, [{
  24808. key: "validateRule",
  24809. value: function () {
  24810. var _validateRule = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fieldKey, fieldValue, value, data, allData) {
  24811. var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;
  24812. return _regenerator.default.wrap(function _callee$(_context) {
  24813. while (1) {
  24814. switch (_context.prev = _context.next) {
  24815. case 0:
  24816. result = null;
  24817. rules = fieldValue.rules;
  24818. hasRequired = rules.findIndex(function (item) {
  24819. return item.required;
  24820. });
  24821. if (!(hasRequired < 0)) {
  24822. _context.next = 8;
  24823. break;
  24824. }
  24825. if (!(value === null || value === undefined)) {
  24826. _context.next = 6;
  24827. break;
  24828. }
  24829. return _context.abrupt("return", result);
  24830. case 6:
  24831. if (!(typeof value === 'string' && !value.length)) {
  24832. _context.next = 8;
  24833. break;
  24834. }
  24835. return _context.abrupt("return", result);
  24836. case 8:
  24837. message = this._message;
  24838. if (!(rules === undefined)) {
  24839. _context.next = 11;
  24840. break;
  24841. }
  24842. return _context.abrupt("return", message['default']);
  24843. case 11:
  24844. i = 0;
  24845. case 12:
  24846. if (!(i < rules.length)) {
  24847. _context.next = 35;
  24848. break;
  24849. }
  24850. rule = rules[i];
  24851. vt = this._getValidateType(rule);
  24852. Object.assign(rule, {
  24853. label: fieldValue.label || "[\"".concat(fieldKey, "\"]")
  24854. });
  24855. if (!RuleValidatorHelper[vt]) {
  24856. _context.next = 20;
  24857. break;
  24858. }
  24859. result = RuleValidatorHelper[vt](rule, value, message);
  24860. if (!(result != null)) {
  24861. _context.next = 20;
  24862. break;
  24863. }
  24864. return _context.abrupt("break", 35);
  24865. case 20:
  24866. if (!rule.validateExpr) {
  24867. _context.next = 26;
  24868. break;
  24869. }
  24870. now = Date.now();
  24871. resultExpr = rule.validateExpr(value, allData, now);
  24872. if (!(resultExpr === false)) {
  24873. _context.next = 26;
  24874. break;
  24875. }
  24876. result = this._getMessage(rule, rule.errorMessage || this._message['default']);
  24877. return _context.abrupt("break", 35);
  24878. case 26:
  24879. if (!rule.validateFunction) {
  24880. _context.next = 32;
  24881. break;
  24882. }
  24883. _context.next = 29;
  24884. return this.validateFunction(rule, value, data, allData, vt);
  24885. case 29:
  24886. result = _context.sent;
  24887. if (!(result !== null)) {
  24888. _context.next = 32;
  24889. break;
  24890. }
  24891. return _context.abrupt("break", 35);
  24892. case 32:
  24893. i++;
  24894. _context.next = 12;
  24895. break;
  24896. case 35:
  24897. if (result !== null) {
  24898. result = message.TAG + result;
  24899. }
  24900. return _context.abrupt("return", result);
  24901. case 37:
  24902. case "end":
  24903. return _context.stop();
  24904. }
  24905. }
  24906. }, _callee, this);
  24907. }));
  24908. function validateRule(_x, _x2, _x3, _x4, _x5) {
  24909. return _validateRule.apply(this, arguments);
  24910. }
  24911. return validateRule;
  24912. }()
  24913. }, {
  24914. key: "validateFunction",
  24915. value: function () {
  24916. var _validateFunction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rule, value, data, allData, vt) {
  24917. var result, callbackMessage, res;
  24918. return _regenerator.default.wrap(function _callee2$(_context2) {
  24919. while (1) {
  24920. switch (_context2.prev = _context2.next) {
  24921. case 0:
  24922. result = null;
  24923. _context2.prev = 1;
  24924. callbackMessage = null;
  24925. _context2.next = 5;
  24926. return rule.validateFunction(rule, value, allData || data, function (message) {
  24927. callbackMessage = message;
  24928. });
  24929. case 5:
  24930. res = _context2.sent;
  24931. if (callbackMessage || typeof res === 'string' && res || res === false) {
  24932. result = this._getMessage(rule, callbackMessage || res, vt);
  24933. }
  24934. _context2.next = 12;
  24935. break;
  24936. case 9:
  24937. _context2.prev = 9;
  24938. _context2.t0 = _context2["catch"](1);
  24939. result = this._getMessage(rule, _context2.t0.message, vt);
  24940. case 12:
  24941. return _context2.abrupt("return", result);
  24942. case 13:
  24943. case "end":
  24944. return _context2.stop();
  24945. }
  24946. }
  24947. }, _callee2, this, [[1, 9]]);
  24948. }));
  24949. function validateFunction(_x6, _x7, _x8, _x9, _x10) {
  24950. return _validateFunction.apply(this, arguments);
  24951. }
  24952. return validateFunction;
  24953. }()
  24954. }, {
  24955. key: "_getMessage",
  24956. value: function _getMessage(rule, message, vt) {
  24957. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  24958. }
  24959. }, {
  24960. key: "_getValidateType",
  24961. value: function _getValidateType(rule) {
  24962. var result = '';
  24963. if (rule.required) {
  24964. result = 'required';
  24965. } else if (rule.format) {
  24966. result = 'format';
  24967. } else if (rule.arrayType) {
  24968. result = 'arrayTypeFormat';
  24969. } else if (rule.range) {
  24970. result = 'range';
  24971. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  24972. result = 'rangeNumber';
  24973. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  24974. result = 'rangeLength';
  24975. } else if (rule.pattern) {
  24976. result = 'pattern';
  24977. } else if (rule.validateFunction) {
  24978. result = 'validateFunction';
  24979. }
  24980. return result;
  24981. }
  24982. }]);
  24983. return RuleValidator;
  24984. }();
  24985. var RuleValidatorHelper = {
  24986. required: function required(rule, value, message) {
  24987. if (rule.required && isEmptyValue(value, rule.format || (0, _typeof2.default)(value))) {
  24988. return formatMessage(rule, rule.errorMessage || message.required);
  24989. }
  24990. return null;
  24991. },
  24992. range: function range(rule, value, message) {
  24993. var range = rule.range,
  24994. errorMessage = rule.errorMessage;
  24995. var list = new Array(range.length);
  24996. for (var i = 0; i < range.length; i++) {
  24997. var item = range[i];
  24998. if (types.object(item) && item.value !== undefined) {
  24999. list[i] = item.value;
  25000. } else {
  25001. list[i] = item;
  25002. }
  25003. }
  25004. var result = false;
  25005. if (Array.isArray(value)) {
  25006. result = new Set(value.concat(list)).size === list.length;
  25007. } else {
  25008. if (list.indexOf(value) > -1) {
  25009. result = true;
  25010. }
  25011. }
  25012. if (!result) {
  25013. return formatMessage(rule, errorMessage || message['enum']);
  25014. }
  25015. return null;
  25016. },
  25017. rangeNumber: function rangeNumber(rule, value, message) {
  25018. if (!types.number(value)) {
  25019. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  25020. }
  25021. var minimum = rule.minimum,
  25022. maximum = rule.maximum,
  25023. exclusiveMinimum = rule.exclusiveMinimum,
  25024. exclusiveMaximum = rule.exclusiveMaximum;
  25025. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  25026. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  25027. if (minimum !== undefined && min) {
  25028. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? 'exclusiveMinimum' : 'minimum']);
  25029. } else if (maximum !== undefined && max) {
  25030. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? 'exclusiveMaximum' : 'maximum']);
  25031. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  25032. return formatMessage(rule, rule.errorMessage || message['number'].range);
  25033. }
  25034. return null;
  25035. },
  25036. rangeLength: function rangeLength(rule, value, message) {
  25037. if (!types.string(value) && !types.array(value)) {
  25038. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  25039. }
  25040. var min = rule.minLength;
  25041. var max = rule.maxLength;
  25042. var val = value.length;
  25043. if (min !== undefined && val < min) {
  25044. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  25045. } else if (max !== undefined && val > max) {
  25046. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  25047. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  25048. return formatMessage(rule, rule.errorMessage || message['length'].range);
  25049. }
  25050. return null;
  25051. },
  25052. pattern: function pattern(rule, value, message) {
  25053. if (!types['pattern'](rule.pattern, value)) {
  25054. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  25055. }
  25056. return null;
  25057. },
  25058. format: function format(rule, value, message) {
  25059. var customTypes = Object.keys(types);
  25060. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  25061. if (customTypes.indexOf(format) > -1) {
  25062. if (!types[format](value)) {
  25063. return formatMessage(rule, rule.errorMessage || message.typeError);
  25064. }
  25065. }
  25066. return null;
  25067. },
  25068. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  25069. if (!Array.isArray(value)) {
  25070. return formatMessage(rule, rule.errorMessage || message.typeError);
  25071. }
  25072. for (var i = 0; i < value.length; i++) {
  25073. var element = value[i];
  25074. var formatResult = this.format(rule, element, message);
  25075. if (formatResult !== null) {
  25076. return formatResult;
  25077. }
  25078. }
  25079. return null;
  25080. }
  25081. };
  25082. var SchemaValidator = /*#__PURE__*/function (_RuleValidator) {
  25083. (0, _inherits2.default)(SchemaValidator, _RuleValidator);
  25084. var _super = _createSuper(SchemaValidator);
  25085. function SchemaValidator(schema, options) {
  25086. var _this;
  25087. (0, _classCallCheck2.default)(this, SchemaValidator);
  25088. _this = _super.call(this, SchemaValidator.message);
  25089. _this._schema = schema;
  25090. _this._options = options || null;
  25091. return _this;
  25092. }
  25093. (0, _createClass2.default)(SchemaValidator, [{
  25094. key: "updateSchema",
  25095. value: function updateSchema(schema) {
  25096. this._schema = schema;
  25097. }
  25098. }, {
  25099. key: "validate",
  25100. value: function () {
  25101. var _validate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data, allData) {
  25102. var result;
  25103. return _regenerator.default.wrap(function _callee3$(_context3) {
  25104. while (1) {
  25105. switch (_context3.prev = _context3.next) {
  25106. case 0:
  25107. result = this._checkFieldInSchema(data);
  25108. if (result) {
  25109. _context3.next = 5;
  25110. break;
  25111. }
  25112. _context3.next = 4;
  25113. return this.invokeValidate(data, false, allData);
  25114. case 4:
  25115. result = _context3.sent;
  25116. case 5:
  25117. return _context3.abrupt("return", result.length ? result[0] : null);
  25118. case 6:
  25119. case "end":
  25120. return _context3.stop();
  25121. }
  25122. }
  25123. }, _callee3, this);
  25124. }));
  25125. function validate(_x11, _x12) {
  25126. return _validate.apply(this, arguments);
  25127. }
  25128. return validate;
  25129. }()
  25130. }, {
  25131. key: "validateAll",
  25132. value: function () {
  25133. var _validateAll = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data, allData) {
  25134. var result;
  25135. return _regenerator.default.wrap(function _callee4$(_context4) {
  25136. while (1) {
  25137. switch (_context4.prev = _context4.next) {
  25138. case 0:
  25139. result = this._checkFieldInSchema(data);
  25140. if (result) {
  25141. _context4.next = 5;
  25142. break;
  25143. }
  25144. _context4.next = 4;
  25145. return this.invokeValidate(data, true, allData);
  25146. case 4:
  25147. result = _context4.sent;
  25148. case 5:
  25149. return _context4.abrupt("return", result);
  25150. case 6:
  25151. case "end":
  25152. return _context4.stop();
  25153. }
  25154. }
  25155. }, _callee4, this);
  25156. }));
  25157. function validateAll(_x13, _x14) {
  25158. return _validateAll.apply(this, arguments);
  25159. }
  25160. return validateAll;
  25161. }()
  25162. }, {
  25163. key: "validateUpdate",
  25164. value: function () {
  25165. var _validateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(data, allData) {
  25166. var result;
  25167. return _regenerator.default.wrap(function _callee5$(_context5) {
  25168. while (1) {
  25169. switch (_context5.prev = _context5.next) {
  25170. case 0:
  25171. result = this._checkFieldInSchema(data);
  25172. if (result) {
  25173. _context5.next = 5;
  25174. break;
  25175. }
  25176. _context5.next = 4;
  25177. return this.invokeValidateUpdate(data, false, allData);
  25178. case 4:
  25179. result = _context5.sent;
  25180. case 5:
  25181. return _context5.abrupt("return", result.length ? result[0] : null);
  25182. case 6:
  25183. case "end":
  25184. return _context5.stop();
  25185. }
  25186. }
  25187. }, _callee5, this);
  25188. }));
  25189. function validateUpdate(_x15, _x16) {
  25190. return _validateUpdate.apply(this, arguments);
  25191. }
  25192. return validateUpdate;
  25193. }()
  25194. }, {
  25195. key: "invokeValidate",
  25196. value: function () {
  25197. var _invokeValidate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(data, all, allData) {
  25198. var result, schema, key, value, errorMessage;
  25199. return _regenerator.default.wrap(function _callee6$(_context6) {
  25200. while (1) {
  25201. switch (_context6.prev = _context6.next) {
  25202. case 0:
  25203. result = [];
  25204. schema = this._schema;
  25205. _context6.t0 = _regenerator.default.keys(schema);
  25206. case 3:
  25207. if ((_context6.t1 = _context6.t0()).done) {
  25208. _context6.next = 15;
  25209. break;
  25210. }
  25211. key = _context6.t1.value;
  25212. value = schema[key];
  25213. _context6.next = 8;
  25214. return this.validateRule(key, value, data[key], data, allData);
  25215. case 8:
  25216. errorMessage = _context6.sent;
  25217. if (!(errorMessage != null)) {
  25218. _context6.next = 13;
  25219. break;
  25220. }
  25221. result.push({
  25222. key: key,
  25223. errorMessage: errorMessage
  25224. });
  25225. if (all) {
  25226. _context6.next = 13;
  25227. break;
  25228. }
  25229. return _context6.abrupt("break", 15);
  25230. case 13:
  25231. _context6.next = 3;
  25232. break;
  25233. case 15:
  25234. return _context6.abrupt("return", result);
  25235. case 16:
  25236. case "end":
  25237. return _context6.stop();
  25238. }
  25239. }
  25240. }, _callee6, this);
  25241. }));
  25242. function invokeValidate(_x17, _x18, _x19) {
  25243. return _invokeValidate.apply(this, arguments);
  25244. }
  25245. return invokeValidate;
  25246. }()
  25247. }, {
  25248. key: "invokeValidateUpdate",
  25249. value: function () {
  25250. var _invokeValidateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(data, all, allData) {
  25251. var result, key, errorMessage;
  25252. return _regenerator.default.wrap(function _callee7$(_context7) {
  25253. while (1) {
  25254. switch (_context7.prev = _context7.next) {
  25255. case 0:
  25256. result = [];
  25257. _context7.t0 = _regenerator.default.keys(data);
  25258. case 2:
  25259. if ((_context7.t1 = _context7.t0()).done) {
  25260. _context7.next = 13;
  25261. break;
  25262. }
  25263. key = _context7.t1.value;
  25264. _context7.next = 6;
  25265. return this.validateRule(key, this._schema[key], data[key], data, allData);
  25266. case 6:
  25267. errorMessage = _context7.sent;
  25268. if (!(errorMessage != null)) {
  25269. _context7.next = 11;
  25270. break;
  25271. }
  25272. result.push({
  25273. key: key,
  25274. errorMessage: errorMessage
  25275. });
  25276. if (all) {
  25277. _context7.next = 11;
  25278. break;
  25279. }
  25280. return _context7.abrupt("break", 13);
  25281. case 11:
  25282. _context7.next = 2;
  25283. break;
  25284. case 13:
  25285. return _context7.abrupt("return", result);
  25286. case 14:
  25287. case "end":
  25288. return _context7.stop();
  25289. }
  25290. }
  25291. }, _callee7, this);
  25292. }));
  25293. function invokeValidateUpdate(_x20, _x21, _x22) {
  25294. return _invokeValidateUpdate.apply(this, arguments);
  25295. }
  25296. return invokeValidateUpdate;
  25297. }()
  25298. }, {
  25299. key: "_checkFieldInSchema",
  25300. value: function _checkFieldInSchema(data) {
  25301. var keys = Object.keys(data);
  25302. var keys2 = Object.keys(this._schema);
  25303. if (new Set(keys.concat(keys2)).size === keys2.length) {
  25304. return '';
  25305. }
  25306. var noExistFields = keys.filter(function (key) {
  25307. return keys2.indexOf(key) < 0;
  25308. });
  25309. var errorMessage = formatMessage({
  25310. field: JSON.stringify(noExistFields)
  25311. }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  25312. return [{
  25313. key: 'invalid',
  25314. errorMessage: errorMessage
  25315. }];
  25316. }
  25317. }]);
  25318. return SchemaValidator;
  25319. }(RuleValidator);
  25320. function Message() {
  25321. return {
  25322. TAG: "",
  25323. default: '验证错误',
  25324. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  25325. validateFunction: '验证无效',
  25326. required: '{label}必填',
  25327. 'enum': '{label}超出范围',
  25328. timestamp: '{label}格式无效',
  25329. whitespace: '{label}不能为空',
  25330. typeError: '{label}类型无效',
  25331. date: {
  25332. format: '{label}日期{value}格式无效',
  25333. parse: '{label}日期无法解析,{value}无效',
  25334. invalid: '{label}日期{value}无效'
  25335. },
  25336. length: {
  25337. minLength: '{label}长度不能少于{minLength}',
  25338. maxLength: '{label}长度不能超过{maxLength}',
  25339. range: '{label}必须介于{minLength}和{maxLength}之间'
  25340. },
  25341. number: {
  25342. minimum: '{label}不能小于{minimum}',
  25343. maximum: '{label}不能大于{maximum}',
  25344. exclusiveMinimum: '{label}不能小于等于{minimum}',
  25345. exclusiveMaximum: '{label}不能大于等于{maximum}',
  25346. range: '{label}必须介于{minimum}and{maximum}之间'
  25347. },
  25348. pattern: {
  25349. mismatch: '{label}格式不匹配'
  25350. }
  25351. };
  25352. }
  25353. SchemaValidator.message = new Message();
  25354. var _default = SchemaValidator;
  25355. exports.default = _default;
  25356. /***/ }),
  25357. /* 432 */
  25358. /*!*********************************************************!*\
  25359. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  25360. \*********************************************************/
  25361. /*! no static exports found */
  25362. /***/ (function(module, exports, __webpack_require__) {
  25363. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  25364. function _inherits(subClass, superClass) {
  25365. if (typeof superClass !== "function" && superClass !== null) {
  25366. throw new TypeError("Super expression must either be null or a function");
  25367. }
  25368. subClass.prototype = Object.create(superClass && superClass.prototype, {
  25369. constructor: {
  25370. value: subClass,
  25371. writable: true,
  25372. configurable: true
  25373. }
  25374. });
  25375. Object.defineProperty(subClass, "prototype", {
  25376. writable: false
  25377. });
  25378. if (superClass) setPrototypeOf(subClass, superClass);
  25379. }
  25380. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  25381. /***/ }),
  25382. /* 433 */
  25383. /*!**************************************************************************!*\
  25384. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  25385. \**************************************************************************/
  25386. /*! no static exports found */
  25387. /***/ (function(module, exports, __webpack_require__) {
  25388. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  25389. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 434);
  25390. function _possibleConstructorReturn(self, call) {
  25391. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  25392. return call;
  25393. } else if (call !== void 0) {
  25394. throw new TypeError("Derived constructors may only return object or undefined");
  25395. }
  25396. return assertThisInitialized(self);
  25397. }
  25398. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  25399. /***/ }),
  25400. /* 434 */
  25401. /*!**********************************************************************!*\
  25402. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  25403. \**********************************************************************/
  25404. /*! no static exports found */
  25405. /***/ (function(module, exports) {
  25406. function _assertThisInitialized(self) {
  25407. if (self === void 0) {
  25408. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  25409. }
  25410. return self;
  25411. }
  25412. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  25413. /***/ }),
  25414. /* 435 */
  25415. /*!***************************************************************!*\
  25416. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  25417. \***************************************************************/
  25418. /*! no static exports found */
  25419. /***/ (function(module, exports) {
  25420. function _getPrototypeOf(o) {
  25421. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  25422. return o.__proto__ || Object.getPrototypeOf(o);
  25423. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  25424. return _getPrototypeOf(o);
  25425. }
  25426. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  25427. /***/ }),
  25428. /* 436 */
  25429. /*!********************************************************************************************!*\
  25430. !*** D:/demo/businessCard/xiaochengxu/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  25431. \********************************************************************************************/
  25432. /*! no static exports found */
  25433. /***/ (function(module, exports, __webpack_require__) {
  25434. "use strict";
  25435. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25436. Object.defineProperty(exports, "__esModule", {
  25437. value: true
  25438. });
  25439. 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;
  25440. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  25441. /**
  25442. * 简单处理对象拷贝
  25443. * @param {Obejct} 被拷贝对象
  25444. * @@return {Object} 拷贝对象
  25445. */
  25446. var deepCopy = function deepCopy(val) {
  25447. return JSON.parse(JSON.stringify(val));
  25448. };
  25449. /**
  25450. * 过滤数字类型
  25451. * @param {String} format 数字类型
  25452. * @@return {Boolean} 返回是否为数字类型
  25453. */
  25454. exports.deepCopy = deepCopy;
  25455. var typeFilter = function typeFilter(format) {
  25456. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  25457. };
  25458. /**
  25459. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  25460. * @param {String} key 字段名
  25461. * @param {any} value 字段值
  25462. * @param {Object} rules 表单校验规则
  25463. */
  25464. exports.typeFilter = typeFilter;
  25465. var getValue = function getValue(key, value, rules) {
  25466. var isRuleNumType = rules.find(function (val) {
  25467. return val.format && typeFilter(val.format);
  25468. });
  25469. var isRuleBoolType = rules.find(function (val) {
  25470. return val.format && val.format === 'boolean' || val.format === 'bool';
  25471. });
  25472. // 输入类型为 number
  25473. if (!!isRuleNumType) {
  25474. if (!value && value !== 0) {
  25475. value = null;
  25476. } else {
  25477. value = isNumber(Number(value)) ? Number(value) : value;
  25478. }
  25479. }
  25480. // 输入类型为 boolean
  25481. if (!!isRuleBoolType) {
  25482. value = isBoolean(value) ? value : false;
  25483. }
  25484. return value;
  25485. };
  25486. /**
  25487. * 获取表单数据
  25488. * @param {String|Array} name 真实名称,需要使用 realName 获取
  25489. * @param {Object} data 原始数据
  25490. * @param {any} value 需要设置的值
  25491. */
  25492. exports.getValue = getValue;
  25493. var setDataValue = function setDataValue(field, formdata, value) {
  25494. formdata[field] = value;
  25495. return value || '';
  25496. };
  25497. /**
  25498. * 获取表单数据
  25499. * @param {String|Array} field 真实名称,需要使用 realName 获取
  25500. * @param {Object} data 原始数据
  25501. */
  25502. exports.setDataValue = setDataValue;
  25503. var getDataValue = function getDataValue(field, data) {
  25504. return objGet(data, field);
  25505. };
  25506. /**
  25507. * 获取表单类型
  25508. * @param {String|Array} field 真实名称,需要使用 realName 获取
  25509. */
  25510. exports.getDataValue = getDataValue;
  25511. var getDataValueType = function getDataValueType(field, data) {
  25512. var value = getDataValue(field, data);
  25513. return {
  25514. type: type(value),
  25515. value: value
  25516. };
  25517. };
  25518. /**
  25519. * 获取表单可用的真实name
  25520. * @param {String|Array} name 表单name
  25521. * @@return {String} 表单可用的真实name
  25522. */
  25523. exports.getDataValueType = getDataValueType;
  25524. var realName = function realName(name) {
  25525. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25526. var base_name = _basePath(name);
  25527. if ((0, _typeof2.default)(base_name) === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  25528. var realname = base_name.reduce(function (a, b) {
  25529. return a += "#".concat(b);
  25530. }, '_formdata_');
  25531. return realname;
  25532. }
  25533. return base_name[0] || name;
  25534. };
  25535. /**
  25536. * 判断是否表单可用的真实name
  25537. * @param {String|Array} name 表单name
  25538. * @@return {String} 表单可用的真实name
  25539. */
  25540. exports.realName = realName;
  25541. var isRealName = function isRealName(name) {
  25542. var reg = /^_formdata_#*/;
  25543. return reg.test(name);
  25544. };
  25545. /**
  25546. * 获取表单数据的原始格式
  25547. * @@return {Object|Array} object 需要解析的数据
  25548. */
  25549. exports.isRealName = isRealName;
  25550. var rawData = function rawData() {
  25551. var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  25552. var name = arguments.length > 1 ? arguments[1] : undefined;
  25553. var newData = JSON.parse(JSON.stringify(object));
  25554. var formData = {};
  25555. for (var i in newData) {
  25556. var path = name2arr(i);
  25557. objSet(formData, path, newData[i]);
  25558. }
  25559. return formData;
  25560. };
  25561. /**
  25562. * 真实name还原为 array
  25563. * @param {*} name
  25564. */
  25565. exports.rawData = rawData;
  25566. var name2arr = function name2arr(name) {
  25567. var field = name.replace('_formdata_#', '');
  25568. field = field.split('#').map(function (v) {
  25569. return isNumber(v) ? Number(v) : v;
  25570. });
  25571. return field;
  25572. };
  25573. /**
  25574. * 对象中设置值
  25575. * @param {Object|Array} object 源数据
  25576. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  25577. * @param {String} value 需要设置的值
  25578. */
  25579. exports.name2arr = name2arr;
  25580. var objSet = function objSet(object, path, value) {
  25581. if ((0, _typeof2.default)(object) !== 'object') return object;
  25582. _basePath(path).reduce(function (o, k, i, _) {
  25583. if (i === _.length - 1) {
  25584. // 若遍历结束直接赋值
  25585. o[k] = value;
  25586. return null;
  25587. } else if (k in o) {
  25588. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  25589. return o[k];
  25590. } else {
  25591. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  25592. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  25593. return o[k];
  25594. }
  25595. }, object);
  25596. // 返回object
  25597. return object;
  25598. };
  25599. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  25600. exports.objSet = objSet;
  25601. function _basePath(path) {
  25602. // 若是数组,则直接返回
  25603. if (Array.isArray(path)) return path;
  25604. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  25605. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  25606. }
  25607. /**
  25608. * 从对象中获取值
  25609. * @param {Object|Array} object 源数据
  25610. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  25611. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  25612. */
  25613. var objGet = function objGet(object, path) {
  25614. var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  25615. // 先将path处理成统一格式
  25616. var newPath = _basePath(path);
  25617. // 递归处理,返回最后结果
  25618. var val = newPath.reduce(function (o, k) {
  25619. return (o || {})[k];
  25620. }, object);
  25621. return !val || val !== undefined ? val : defaultVal;
  25622. };
  25623. /**
  25624. * 是否为 number 类型
  25625. * @param {any} num 需要判断的值
  25626. * @return {Boolean} 是否为 number
  25627. */
  25628. exports.objGet = objGet;
  25629. var isNumber = function isNumber(num) {
  25630. return !isNaN(Number(num));
  25631. };
  25632. /**
  25633. * 是否为 boolean 类型
  25634. * @param {any} bool 需要判断的值
  25635. * @return {Boolean} 是否为 boolean
  25636. */
  25637. exports.isNumber = isNumber;
  25638. var isBoolean = function isBoolean(bool) {
  25639. return typeof bool === 'boolean';
  25640. };
  25641. /**
  25642. * 是否有必填字段
  25643. * @param {Object} rules 规则
  25644. * @return {Boolean} 是否有必填字段
  25645. */
  25646. exports.isBoolean = isBoolean;
  25647. var isRequiredField = function isRequiredField(rules) {
  25648. var isNoField = false;
  25649. for (var i = 0; i < rules.length; i++) {
  25650. var ruleData = rules[i];
  25651. if (ruleData.required) {
  25652. isNoField = true;
  25653. break;
  25654. }
  25655. }
  25656. return isNoField;
  25657. };
  25658. /**
  25659. * 获取数据类型
  25660. * @param {Any} obj 需要获取数据类型的值
  25661. */
  25662. exports.isRequiredField = isRequiredField;
  25663. var type = function type(obj) {
  25664. var class2type = {};
  25665. // 生成class2type映射
  25666. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  25667. class2type["[object " + item + "]"] = item.toLowerCase();
  25668. });
  25669. if (obj == null) {
  25670. return obj + "";
  25671. }
  25672. return (0, _typeof2.default)(obj) === "object" || typeof obj === "function" ? class2type[Object.prototype.toString.call(obj)] || "object" : (0, _typeof2.default)(obj);
  25673. };
  25674. /**
  25675. * 判断两个值是否相等
  25676. * @param {any} a 值
  25677. * @param {any} b 值
  25678. * @return {Boolean} 是否相等
  25679. */
  25680. exports.type = type;
  25681. var isEqual = function isEqual(a, b) {
  25682. //如果a和b本来就全等
  25683. if (a === b) {
  25684. //判断是否为0和-0
  25685. return a !== 0 || 1 / a === 1 / b;
  25686. }
  25687. //判断是否为null和undefined
  25688. if (a == null || b == null) {
  25689. return a === b;
  25690. }
  25691. //接下来判断a和b的数据类型
  25692. var classNameA = toString.call(a),
  25693. classNameB = toString.call(b);
  25694. //如果数据类型不相等,则返回false
  25695. if (classNameA !== classNameB) {
  25696. return false;
  25697. }
  25698. //如果数据类型相等,再根据不同数据类型分别判断
  25699. switch (classNameA) {
  25700. case '[object RegExp]':
  25701. case '[object String]':
  25702. //进行字符串转换比较
  25703. return '' + a === '' + b;
  25704. case '[object Number]':
  25705. //进行数字转换比较,判断是否为NaN
  25706. if (+a !== +a) {
  25707. return +b !== +b;
  25708. }
  25709. //判断是否为0或-0
  25710. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  25711. case '[object Date]':
  25712. case '[object Boolean]':
  25713. return +a === +b;
  25714. }
  25715. //如果是对象类型
  25716. if (classNameA == '[object Object]') {
  25717. //获取a和b的属性长度
  25718. var propsA = Object.getOwnPropertyNames(a),
  25719. propsB = Object.getOwnPropertyNames(b);
  25720. if (propsA.length != propsB.length) {
  25721. return false;
  25722. }
  25723. for (var i = 0; i < propsA.length; i++) {
  25724. var propName = propsA[i];
  25725. //如果对应属性对应值不相等,则返回false
  25726. if (a[propName] !== b[propName]) {
  25727. return false;
  25728. }
  25729. }
  25730. return true;
  25731. }
  25732. //如果是数组类型
  25733. if (classNameA == '[object Array]') {
  25734. if (a.toString() == b.toString()) {
  25735. return true;
  25736. }
  25737. return false;
  25738. }
  25739. };
  25740. exports.isEqual = isEqual;
  25741. /***/ })
  25742. ]]);
  25743. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map