1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217 |
- (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
- /***/ 1:
- /*!*********************************************************!*\
- !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
- var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
- var target = typeof globalThis !== 'undefined' ? globalThis : function () {
- return this;
- }();
- var key = ['w', 'x'].join('');
- var oldWx = target[key];
- var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
- function isWxKey(key) {
- if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
- return false;
- }
- return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
- }
- function initWx() {
- var newWx = {};
- for (var _key in oldWx) {
- if (isWxKey(_key)) {
- // TODO wrapper function
- newWx[_key] = oldWx[_key];
- }
- }
- return newWx;
- }
- target[key] = initWx();
- var _default = target[key];
- exports.default = _default;
- /***/ }),
- /***/ 10:
- /*!****************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 100:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/image.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:01:51
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
- */
- var _default = {
- // image组件
- image: {
- src: '',
- mode: 'aspectFill',
- width: '300',
- height: '225',
- shape: 'square',
- radius: 0,
- lazyLoad: true,
- showMenuByLongpress: true,
- loadingIcon: 'photo',
- errorIcon: 'error-circle',
- showLoading: true,
- showError: true,
- fade: true,
- webp: false,
- duration: 500,
- bgColor: '#f3f4f6'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1002:
- /*!************************************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uni_modules/liu-indexed-list/components/liu-indexed-list/pinyinUtil.js ***!
- \************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.pinyin_dict_notone = exports.pinyinUtil = void 0;
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- var _polyphone;
- var dict = {};
- //拼音首字母字典文件
- var pinyin_dict_firstletter = {
- all: "YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJSDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJYLZLLLQDDZQJYJYJZYXNYYYNYJXKXDAZWYRDLJYYYRJLXLLDYXJCYWYWNQCCLDDNYYYNYCKCZHXXCCLGZQJGKWPPCQQJYSBZZXYJSQPXJPZBSBDSFNSFPZXHDWZTDWPPTFLZZBZDMYYPQJRSDZSQZSQXBDGCPZSWDWCSQZGMDHZXMWWFYBPDGPHTMJTHZSMMBGZMBZJCFZWFZBBZMQCFMBDMCJXLGPNJBBXGYHYYJGPTZGZMQBQTCGYXJXLWZKYDPDYMGCFTPFXYZTZXDZXTGKMTYBBCLBJASKYTSSQYYMSZXFJEWLXLLSZBQJJJAKLYLXLYCCTSXMCWFKKKBSXLLLLJYXTYLTJYYTDPJHNHNNKBYQNFQYYZBYYESSESSGDYHFHWTCJBSDZZTFDMXHCNJZYMQWSRYJDZJQPDQBBSTJGGFBKJBXTGQHNGWJXJGDLLTHZHHYYYYYYSXWTYYYCCBDBPYPZYCCZYJPZYWCBDLFWZCWJDXXHYHLHWZZXJTCZLCDPXUJCZZZLYXJJTXPHFXWPYWXZPTDZZBDZCYHJHMLXBQXSBYLRDTGJRRCTTTHYTCZWMXFYTWWZCWJWXJYWCSKYBZSCCTZQNHXNWXXKHKFHTSWOCCJYBCMPZZYKBNNZPBZHHZDLSYDDYTYFJPXYNGFXBYQXCBHXCPSXTYZDMKYSNXSXLHKMZXLYHDHKWHXXSSKQYHHCJYXGLHZXCSNHEKDTGZXQYPKDHEXTYKCNYMYYYPKQYYYKXZLTHJQTBYQHXBMYHSQCKWWYLLHCYYLNNEQXQWMCFBDCCMLJGGXDQKTLXKGNQCDGZJWYJJLYHHQTTTNWCHMXCXWHWSZJYDJCCDBQCDGDNYXZTHCQRXCBHZTQCBXWGQWYYBXHMBYMYQTYEXMQKYAQYRGYZSLFYKKQHYSSQYSHJGJCNXKZYCXSBXYXHYYLSTYCXQTHYSMGSCPMMGCCCCCMTZTASMGQZJHKLOSQYLSWTMXSYQKDZLJQQYPLSYCZTCQQPBBQJZCLPKHQZYYXXDTDDTSJCXFFLLCHQXMJLWCJCXTSPYCXNDTJSHJWXDQQJSKXYAMYLSJHMLALYKXCYYDMNMDQMXMCZNNCYBZKKYFLMCHCMLHXRCJJHSYLNMTJZGZGYWJXSRXCWJGJQHQZDQJDCJJZKJKGDZQGJJYJYLXZXXCDQHHHEYTMHLFSBDJSYYSHFYSTCZQLPBDRFRZTZYKYWHSZYQKWDQZRKMSYNBCRXQBJYFAZPZZEDZCJYWBCJWHYJBQSZYWRYSZPTDKZPFPBNZTKLQYHBBZPNPPTYZZYBQNYDCPJMMCYCQMCYFZZDCMNLFPBPLNGQJTBTTNJZPZBBZNJKLJQYLNBZQHKSJZNGGQSZZKYXSHPZSNBCGZKDDZQANZHJKDRTLZLSWJLJZLYWTJNDJZJHXYAYNCBGTZCSSQMNJPJYTYSWXZFKWJQTKHTZPLBHSNJZSYZBWZZZZLSYLSBJHDWWQPSLMMFBJDWAQYZTCJTBNNWZXQXCDSLQGDSDPDZHJTQQPSWLYYJZLGYXYZLCTCBJTKTYCZJTQKBSJLGMGZDMCSGPYNJZYQYYKNXRPWSZXMTNCSZZYXYBYHYZAXYWQCJTLLCKJJTJHGDXDXYQYZZBYWDLWQCGLZGJGQRQZCZSSBCRPCSKYDZNXJSQGXSSJMYDNSTZTPBDLTKZWXQWQTZEXNQCZGWEZKSSBYBRTSSSLCCGBPSZQSZLCCGLLLZXHZQTHCZMQGYZQZNMCOCSZJMMZSQPJYGQLJYJPPLDXRGZYXCCSXHSHGTZNLZWZKJCXTCFCJXLBMQBCZZWPQDNHXLJCTHYZLGYLNLSZZPCXDSCQQHJQKSXZPBAJYEMSMJTZDXLCJYRYYNWJBNGZZTMJXLTBSLYRZPYLSSCNXPHLLHYLLQQZQLXYMRSYCXZLMMCZLTZSDWTJJLLNZGGQXPFSKYGYGHBFZPDKMWGHCXMSGDXJMCJZDYCABXJDLNBCDQYGSKYDQTXDJJYXMSZQAZDZFSLQXYJSJZYLBTXXWXQQZBJZUFBBLYLWDSLJHXJYZJWTDJCZFQZQZZDZSXZZQLZCDZFJHYSPYMPQZMLPPLFFXJJNZZYLSJEYQZFPFZKSYWJJJHRDJZZXTXXGLGHYDXCSKYSWMMZCWYBAZBJKSHFHJCXMHFQHYXXYZFTSJYZFXYXPZLCHMZMBXHZZSXYFYMNCWDABAZLXKTCSHHXKXJJZJSTHYGXSXYYHHHJWXKZXSSBZZWHHHCWTZZZPJXSNXQQJGZYZYWLLCWXZFXXYXYHXMKYYSWSQMNLNAYCYSPMJKHWCQHYLAJJMZXHMMCNZHBHXCLXTJPLTXYJHDYYLTTXFSZHYXXSJBJYAYRSMXYPLCKDUYHLXRLNLLSTYZYYQYGYHHSCCSMZCTZQXKYQFPYYRPFFLKQUNTSZLLZMWWTCQQYZWTLLMLMPWMBZSSTZRBPDDTLQJJBXZCSRZQQYGWCSXFWZLXCCRSZDZMCYGGDZQSGTJSWLJMYMMZYHFBJDGYXCCPSHXNZCSBSJYJGJMPPWAFFYFNXHYZXZYLREMZGZCYZSSZDLLJCSQFNXZKPTXZGXJJGFMYYYSNBTYLBNLHPFZDCYFBMGQRRSSSZXYSGTZRNYDZZCDGPJAFJFZKNZBLCZSZPSGCYCJSZLMLRSZBZZLDLSLLYSXSQZQLYXZLSKKBRXBRBZCYCXZZZEEYFGKLZLYYHGZSGZLFJHGTGWKRAAJYZKZQTSSHJJXDCYZUYJLZYRZDQQHGJZXSSZBYKJPBFRTJXLLFQWJHYLQTYMBLPZDXTZYGBDHZZRBGXHWNJTJXLKSCFSMWLSDQYSJTXKZSCFWJLBXFTZLLJZLLQBLSQMQQCGCZFPBPHZCZJLPYYGGDTGWDCFCZQYYYQYSSCLXZSKLZZZGFFCQNWGLHQYZJJCZLQZZYJPJZZBPDCCMHJGXDQDGDLZQMFGPSYTSDYFWWDJZJYSXYYCZCYHZWPBYKXRYLYBHKJKSFXTZJMMCKHLLTNYYMSYXYZPYJQYCSYCWMTJJKQYRHLLQXPSGTLYYCLJSCPXJYZFNMLRGJJTYZBXYZMSJYJHHFZQMSYXRSZCWTLRTQZSSTKXGQKGSPTGCZNJSJCQCXHMXGGZTQYDJKZDLBZSXJLHYQGGGTHQSZPYHJHHGYYGKGGCWJZZYLCZLXQSFTGZSLLLMLJSKCTBLLZZSZMMNYTPZSXQHJCJYQXYZXZQZCPSHKZZYSXCDFGMWQRLLQXRFZTLYSTCTMJCXJJXHJNXTNRZTZFQYHQGLLGCXSZSJDJLJCYDSJTLNYXHSZXCGJZYQPYLFHDJSBPCCZHJJJQZJQDYBSSLLCMYTTMQTBHJQNNYGKYRQYQMZGCJKPDCGMYZHQLLSLLCLMHOLZGDYYFZSLJCQZLYLZQJESHNYLLJXGJXLYSYYYXNBZLJSSZCQQCJYLLZLTJYLLZLLBNYLGQCHXYYXOXCXQKYJXXXYKLXSXXYQXCYKQXQCSGYXXYQXYGYTQOHXHXPYXXXULCYEYCHZZCBWQBBWJQZSCSZSSLZYLKDESJZWMYMCYTSDSXXSCJPQQSQYLYYZYCMDJDZYWCBTJSYDJKCYDDJLBDJJSODZYSYXQQYXDHHGQQYQHDYXWGMMMAJDYBBBPPBCMUUPLJZSMTXERXJMHQNUTPJDCBSSMSSSTKJTSSMMTRCPLZSZMLQDSDMJMQPNQDXCFYNBFSDQXYXHYAYKQYDDLQYYYSSZBYDSLNTFQTZQPZMCHDHCZCWFDXTMYQSPHQYYXSRGJCWTJTZZQMGWJJTJHTQJBBHWZPXXHYQFXXQYWYYHYSCDYDHHQMNMTMWCPBSZPPZZGLMZFOLLCFWHMMSJZTTDHZZYFFYTZZGZYSKYJXQYJZQBHMBZZLYGHGFMSHPZFZSNCLPBQSNJXZSLXXFPMTYJYGBXLLDLXPZJYZJYHHZCYWHJYLSJEXFSZZYWXKZJLUYDTMLYMQJPWXYHXSKTQJEZRPXXZHHMHWQPWQLYJJQJJZSZCPHJLCHHNXJLQWZJHBMZYXBDHHYPZLHLHLGFWLCHYYTLHJXCJMSCPXSTKPNHQXSRTYXXTESYJCTLSSLSTDLLLWWYHDHRJZSFGXTSYCZYNYHTDHWJSLHTZDQDJZXXQHGYLTZPHCSQFCLNJTCLZPFSTPDYNYLGMJLLYCQHYSSHCHYLHQYQTMZYPBYWRFQYKQSYSLZDQJMPXYYSSRHZJNYWTQDFZBWWTWWRXCWHGYHXMKMYYYQMSMZHNGCEPMLQQMTCWCTMMPXJPJJHFXYYZSXZHTYBMSTSYJTTQQQYYLHYNPYQZLCYZHZWSMYLKFJXLWGXYPJYTYSYXYMZCKTTWLKSMZSYLMPWLZWXWQZSSAQSYXYRHSSNTSRAPXCPWCMGDXHXZDZYFJHGZTTSBJHGYZSZYSMYCLLLXBTYXHBBZJKSSDMALXHYCFYGMQYPJYCQXJLLLJGSLZGQLYCJCCZOTYXMTMTTLLWTGPXYMZMKLPSZZZXHKQYSXCTYJZYHXSHYXZKXLZWPSQPYHJWPJPWXQQYLXSDHMRSLZZYZWTTCYXYSZZSHBSCCSTPLWSSCJCHNLCGCHSSPHYLHFHHXJSXYLLNYLSZDHZXYLSXLWZYKCLDYAXZCMDDYSPJTQJZLNWQPSSSWCTSTSZLBLNXSMNYYMJQBQHRZWTYYDCHQLXKPZWBGQYBKFCMZWPZLLYYLSZYDWHXPSBCMLJBSCGBHXLQHYRLJXYSWXWXZSLDFHLSLYNJLZYFLYJYCDRJLFSYZFSLLCQYQFGJYHYXZLYLMSTDJCYHBZLLNWLXXYGYYHSMGDHXXHHLZZJZXCZZZCYQZFNGWPYLCPKPYYPMCLQKDGXZGGWQBDXZZKZFBXXLZXJTPJPTTBYTSZZDWSLCHZHSLTYXHQLHYXXXYYZYSWTXZKHLXZXZPYHGCHKCFSYHUTJRLXFJXPTZTWHPLYXFCRHXSHXKYXXYHZQDXQWULHYHMJTBFLKHTXCWHJFWJCFPQRYQXCYYYQYGRPYWSGSUNGWCHKZDXYFLXXHJJBYZWTSXXNCYJJYMSWZJQRMHXZWFQSYLZJZGBHYNSLBGTTCSYBYXXWXYHXYYXNSQYXMQYWRGYQLXBBZLJSYLPSYTJZYHYZAWLRORJMKSCZJXXXYXCHDYXRYXXJDTSQFXLYLTSFFYXLMTYJMJUYYYXLTZCSXQZQHZXLYYXZHDNBRXXXJCTYHLBRLMBRLLAXKYLLLJLYXXLYCRYLCJTGJCMTLZLLCYZZPZPCYAWHJJFYBDYYZSMPCKZDQYQPBPCJPDCYZMDPBCYYDYCNNPLMTMLRMFMMGWYZBSJGYGSMZQQQZTXMKQWGXLLPJGZBQCDJJJFPKJKCXBLJMSWMDTQJXLDLPPBXCWRCQFBFQJCZAHZGMYKPHYYHZYKNDKZMBPJYXPXYHLFPNYYGXJDBKXNXHJMZJXSTRSTLDXSKZYSYBZXJLXYSLBZYSLHXJPFXPQNBYLLJQKYGZMCYZZYMCCSLCLHZFWFWYXZMWSXTYNXJHPYYMCYSPMHYSMYDYSHQYZCHMJJMZCAAGCFJBBHPLYZYLXXSDJGXDHKXXTXXNBHRMLYJSLTXMRHNLXQJXYZLLYSWQGDLBJHDCGJYQYCMHWFMJYBMBYJYJWYMDPWHXQLDYGPDFXXBCGJSPCKRSSYZJMSLBZZJFLJJJLGXZGYXYXLSZQYXBEXYXHGCXBPLDYHWETTWWCJMBTXCHXYQXLLXFLYXLLJLSSFWDPZSMYJCLMWYTCZPCHQEKCQBWLCQYDPLQPPQZQFJQDJHYMMCXTXDRMJWRHXCJZYLQXDYYNHYYHRSLSRSYWWZJYMTLTLLGTQCJZYABTCKZCJYCCQLJZQXALMZYHYWLWDXZXQDLLQSHGPJFJLJHJABCQZDJGTKHSSTCYJLPSWZLXZXRWGLDLZRLZXTGSLLLLZLYXXWGDZYGBDPHZPBRLWSXQBPFDWOFMWHLYPCBJCCLDMBZPBZZLCYQXLDOMZBLZWPDWYYGDSTTHCSQSCCRSSSYSLFYBFNTYJSZDFNDPDHDZZMBBLSLCMYFFGTJJQWFTMTPJWFNLBZCMMJTGBDZLQLPYFHYYMJYLSDCHDZJWJCCTLJCLDTLJJCPDDSQDSSZYBNDBJLGGJZXSXNLYCYBJXQYCBYLZCFZPPGKCXZDZFZTJJFJSJXZBNZYJQTTYJYHTYCZHYMDJXTTMPXSPLZCDWSLSHXYPZGTFMLCJTYCBPMGDKWYCYZCDSZZYHFLYCTYGWHKJYYLSJCXGYWJCBLLCSNDDBTZBSCLYZCZZSSQDLLMQYYHFSLQLLXFTYHABXGWNYWYYPLLSDLDLLBJCYXJZMLHLJDXYYQYTDLLLBUGBFDFBBQJZZMDPJHGCLGMJJPGAEHHBWCQXAXHHHZCHXYPHJAXHLPHJPGPZJQCQZGJJZZUZDMQYYBZZPHYHYBWHAZYJHYKFGDPFQSDLZMLJXKXGALXZDAGLMDGXMWZQYXXDXXPFDMMSSYMPFMDMMKXKSYZYSHDZKXSYSMMZZZMSYDNZZCZXFPLSTMZDNMXCKJMZTYYMZMZZMSXHHDCZJEMXXKLJSTLWLSQLYJZLLZJSSDPPMHNLZJCZYHMXXHGZCJMDHXTKGRMXFWMCGMWKDTKSXQMMMFZZYDKMSCLCMPCGMHSPXQPZDSSLCXKYXTWLWJYAHZJGZQMCSNXYYMMPMLKJXMHLMLQMXCTKZMJQYSZJSYSZHSYJZJCDAJZYBSDQJZGWZQQXFKDMSDJLFWEHKZQKJPEYPZYSZCDWYJFFMZZYLTTDZZEFMZLBNPPLPLPEPSZALLTYLKCKQZKGENQLWAGYXYDPXLHSXQQWQCQXQCLHYXXMLYCCWLYMQYSKGCHLCJNSZKPYZKCQZQLJPDMDZHLASXLBYDWQLWDNBQCRYDDZTJYBKBWSZDXDTNPJDTCTQDFXQQMGNXECLTTBKPWSLCTYQLPWYZZKLPYGZCQQPLLKCCYLPQMZCZQCLJSLQZDJXLDDHPZQDLJJXZQDXYZQKZLJCYQDYJPPYPQYKJYRMPCBYMCXKLLZLLFQPYLLLMBSGLCYSSLRSYSQTMXYXZQZFDZUYSYZTFFMZZSMZQHZSSCCMLYXWTPZGXZJGZGSJSGKDDHTQGGZLLBJDZLCBCHYXYZHZFYWXYZYMSDBZZYJGTSMTFXQYXQSTDGSLNXDLRYZZLRYYLXQHTXSRTZNGZXBNQQZFMYKMZJBZYMKBPNLYZPBLMCNQYZZZSJZHJCTZKHYZZJRDYZHNPXGLFZTLKGJTCTSSYLLGZRZBBQZZKLPKLCZYSSUYXBJFPNJZZXCDWXZYJXZZDJJKGGRSRJKMSMZJLSJYWQSKYHQJSXPJZZZLSNSHRNYPZTWCHKLPSRZLZXYJQXQKYSJYCZTLQZYBBYBWZPQDWWYZCYTJCJXCKCWDKKZXSGKDZXWWYYJQYYTCYTDLLXWKCZKKLCCLZCQQDZLQLCSFQCHQHSFSMQZZLNBJJZBSJHTSZDYSJQJPDLZCDCWJKJZZLPYCGMZWDJJBSJQZSYZYHHXJPBJYDSSXDZNCGLQMBTSFSBPDZDLZNFGFJGFSMPXJQLMBLGQCYYXBQKDJJQYRFKZTJDHCZKLBSDZCFJTPLLJGXHYXZCSSZZXSTJYGKGCKGYOQXJPLZPBPGTGYJZGHZQZZLBJLSQFZGKQQJZGYCZBZQTLDXRJXBSXXPZXHYZYCLWDXJJHXMFDZPFZHQHQMQGKSLYHTYCGFRZGNQXCLPDLBZCSCZQLLJBLHBZCYPZZPPDYMZZSGYHCKCPZJGSLJLNSCDSLDLXBMSTLDDFJMKDJDHZLZXLSZQPQPGJLLYBDSZGQLBZLSLKYYHZTTNTJYQTZZPSZQZTLLJTYYLLQLLQYZQLBDZLSLYYZYMDFSZSNHLXZNCZQZPBWSKRFBSYZMTHBLGJPMCZZLSTLXSHTCSYZLZBLFEQHLXFLCJLYLJQCBZLZJHHSSTBRMHXZHJZCLXFNBGXGTQJCZTMSFZKJMSSNXLJKBHSJXNTNLZDNTLMSJXGZJYJCZXYJYJWRWWQNZTNFJSZPZSHZJFYRDJSFSZJZBJFZQZZHZLXFYSBZQLZSGYFTZDCSZXZJBQMSZKJRHYJZCKMJKHCHGTXKXQGLXPXFXTRTYLXJXHDTSJXHJZJXZWZLCQSBTXWXGXTXXHXFTSDKFJHZYJFJXRZSDLLLTQSQQZQWZXSYQTWGWBZCGZLLYZBCLMQQTZHZXZXLJFRMYZFLXYSQXXJKXRMQDZDMMYYBSQBHGZMWFWXGMXLZPYYTGZYCCDXYZXYWGSYJYZNBHPZJSQSYXSXRTFYZGRHZTXSZZTHCBFCLSYXZLZQMZLMPLMXZJXSFLBYZMYQHXJSXRXSQZZZSSLYFRCZJRCRXHHZXQYDYHXSJJHZCXZBTYNSYSXJBQLPXZQPYMLXZKYXLXCJLCYSXXZZLXDLLLJJYHZXGYJWKJRWYHCPSGNRZLFZWFZZNSXGXFLZSXZZZBFCSYJDBRJKRDHHGXJLJJTGXJXXSTJTJXLYXQFCSGSWMSBCTLQZZWLZZKXJMLTMJYHSDDBXGZHDLBMYJFRZFSGCLYJBPMLYSMSXLSZJQQHJZFXGFQFQBPXZGYYQXGZTCQWYLTLGWSGWHRLFSFGZJMGMGBGTJFSYZZGZYZAFLSSPMLPFLCWBJZCLJJMZLPJJLYMQDMYYYFBGYGYZMLYZDXQYXRQQQHSYYYQXYLJTYXFSFSLLGNQCYHYCWFHCCCFXPYLYPLLZYXXXXXKQHHXSHJZCFZSCZJXCPZWHHHHHAPYLQALPQAFYHXDYLUKMZQGGGDDESRNNZLTZGCHYPPYSQJJHCLLJTOLNJPZLJLHYMHEYDYDSQYCDDHGZUNDZCLZYZLLZNTNYZGSLHSLPJJBDGWXPCDUTJCKLKCLWKLLCASSTKZZDNQNTTLYYZSSYSSZZRYLJQKCQDHHCRXRZYDGRGCWCGZQFFFPPJFZYNAKRGYWYQPQXXFKJTSZZXSWZDDFBBXTBGTZKZNPZZPZXZPJSZBMQHKCYXYLDKLJNYPKYGHGDZJXXEAHPNZKZTZCMXCXMMJXNKSZQNMNLWBWWXJKYHCPSTMCSQTZJYXTPCTPDTNNPGLLLZSJLSPBLPLQHDTNJNLYYRSZFFJFQWDPHZDWMRZCCLODAXNSSNYZRESTYJWJYJDBCFXNMWTTBYLWSTSZGYBLJPXGLBOCLHPCBJLTMXZLJYLZXCLTPNCLCKXTPZJSWCYXSFYSZDKNTLBYJCYJLLSTGQCBXRYZXBXKLYLHZLQZLNZCXWJZLJZJNCJHXMNZZGJZZXTZJXYCYYCXXJYYXJJXSSSJSTSSTTPPGQTCSXWZDCSYFPTFBFHFBBLZJCLZZDBXGCXLQPXKFZFLSYLTUWBMQJHSZBMDDBCYSCCLDXYCDDQLYJJWMQLLCSGLJJSYFPYYCCYLTJANTJJPWYCMMGQYYSXDXQMZHSZXPFTWWZQSWQRFKJLZJQQYFBRXJHHFWJJZYQAZMYFRHCYYBYQWLPEXCCZSTYRLTTDMQLYKMBBGMYYJPRKZNPBSXYXBHYZDJDNGHPMFSGMWFZMFQMMBCMZZCJJLCNUXYQLMLRYGQZCYXZLWJGCJCGGMCJNFYZZJHYCPRRCMTZQZXHFQGTJXCCJEAQCRJYHPLQLSZDJRBCQHQDYRHYLYXJSYMHZYDWLDFRYHBPYDTSSCNWBXGLPZMLZZTQSSCPJMXXYCSJYTYCGHYCJWYRXXLFEMWJNMKLLSWTXHYYYNCMMCWJDQDJZGLLJWJRKHPZGGFLCCSCZMCBLTBHBQJXQDSPDJZZGKGLFQYWBZYZJLTSTDHQHCTCBCHFLQMPWDSHYYTQWCNZZJTLBYMBPDYYYXSQKXWYYFLXXNCWCXYPMAELYKKJMZZZBRXYYQJFLJPFHHHYTZZXSGQQMHSPGDZQWBWPJHZJDYSCQWZKTXXSQLZYYMYSDZGRXCKKUJLWPYSYSCSYZLRMLQSYLJXBCXTLWDQZPCYCYKPPPNSXFYZJJRCEMHSZMSXLXGLRWGCSTLRSXBZGBZGZTCPLUJLSLYLYMTXMTZPALZXPXJTJWTCYYZLBLXBZLQMYLXPGHDSLSSDMXMBDZZSXWHAMLCZCPJMCNHJYSNSYGCHSKQMZZQDLLKABLWJXSFMOCDXJRRLYQZKJMYBYQLYHETFJZFRFKSRYXFJTWDSXXSYSQJYSLYXWJHSNLXYYXHBHAWHHJZXWMYLJCSSLKYDZTXBZSYFDXGXZJKHSXXYBSSXDPYNZWRPTQZCZENYGCXQFJYKJBZMLJCMQQXUOXSLYXXLYLLJDZBTYMHPFSTTQQWLHOKYBLZZALZXQLHZWRRQHLSTMYPYXJJXMQSJFNBXYXYJXXYQYLTHYLQYFMLKLJTMLLHSZWKZHLJMLHLJKLJSTLQXYLMBHHLNLZXQJHXCFXXLHYHJJGBYZZKBXSCQDJQDSUJZYYHZHHMGSXCSYMXFEBCQWWRBPYYJQTYZCYQYQQZYHMWFFHGZFRJFCDPXNTQYZPDYKHJLFRZXPPXZDBBGZQSTLGDGYLCQMLCHHMFYWLZYXKJLYPQHSYWMQQGQZMLZJNSQXJQSYJYCBEHSXFSZPXZWFLLBCYYJDYTDTHWZSFJMQQYJLMQXXLLDTTKHHYBFPWTYYSQQWNQWLGWDEBZWCMYGCULKJXTMXMYJSXHYBRWFYMWFRXYQMXYSZTZZTFYKMLDHQDXWYYNLCRYJBLPSXCXYWLSPRRJWXHQYPHTYDNXHHMMYWYTZCSQMTSSCCDALWZTCPQPYJLLQZYJSWXMZZMMYLMXCLMXCZMXMZSQTZPPQQBLPGXQZHFLJJHYTJSRXWZXSCCDLXTYJDCQJXSLQYCLZXLZZXMXQRJMHRHZJBHMFLJLMLCLQNLDXZLLLPYPSYJYSXCQQDCMQJZZXHNPNXZMEKMXHYKYQLXSXTXJYYHWDCWDZHQYYBGYBCYSCFGPSJNZDYZZJZXRZRQJJYMCANYRJTLDPPYZBSTJKXXZYPFDWFGZZRPYMTNGXZQBYXNBUFNQKRJQZMJEGRZGYCLKXZDSKKNSXKCLJSPJYYZLQQJYBZSSQLLLKJXTBKTYLCCDDBLSPPFYLGYDTZJYQGGKQTTFZXBDKTYYHYBBFYTYYBCLPDYTGDHRYRNJSPTCSNYJQHKLLLZSLYDXXWBCJQSPXBPJZJCJDZFFXXBRMLAZHCSNDLBJDSZBLPRZTSWSBXBCLLXXLZDJZSJPYLYXXYFTFFFBHJJXGBYXJPMMMPSSJZJMTLYZJXSWXTYLEDQPJMYGQZJGDJLQJWJQLLSJGJGYGMSCLJJXDTYGJQJQJCJZCJGDZZSXQGSJGGCXHQXSNQLZZBXHSGZXCXYLJXYXYYDFQQJHJFXDHCTXJYRXYSQTJXYEFYYSSYYJXNCYZXFXMSYSZXYYSCHSHXZZZGZZZGFJDLTYLNPZGYJYZYYQZPBXQBDZTZCZYXXYHHSQXSHDHGQHJHGYWSZTMZMLHYXGEBTYLZKQWYTJZRCLEKYSTDBCYKQQSAYXCJXWWGSBHJYZYDHCSJKQCXSWXFLTYNYZPZCCZJQTZWJQDZZZQZLJJXLSBHPYXXPSXSHHEZTXFPTLQYZZXHYTXNCFZYYHXGNXMYWXTZSJPTHHGYMXMXQZXTSBCZYJYXXTYYZYPCQLMMSZMJZZLLZXGXZAAJZYXJMZXWDXZSXZDZXLEYJJZQBHZWZZZQTZPSXZTDSXJJJZNYAZPHXYYSRNQDTHZHYYKYJHDZXZLSWCLYBZYECWCYCRYLCXNHZYDZYDYJDFRJJHTRSQTXYXJRJHOJYNXELXSFSFJZGHPZSXZSZDZCQZBYYKLSGSJHCZSHDGQGXYZGXCHXZJWYQWGYHKSSEQZZNDZFKWYSSTCLZSTSYMCDHJXXYWEYXCZAYDMPXMDSXYBSQMJMZJMTZQLPJYQZCGQHXJHHLXXHLHDLDJQCLDWBSXFZZYYSCHTYTYYBHECXHYKGJPXHHYZJFXHWHBDZFYZBCAPNPGNYDMSXHMMMMAMYNBYJTMPXYYMCTHJBZYFCGTYHWPHFTWZZEZSBZEGPFMTSKFTYCMHFLLHGPZJXZJGZJYXZSBBQSCZZLZCCSTPGXMJSFTCCZJZDJXCYBZLFCJSYZFGSZLYBCWZZBYZDZYPSWYJZXZBDSYUXLZZBZFYGCZXBZHZFTPBGZGEJBSTGKDMFHYZZJHZLLZZGJQZLSFDJSSCBZGPDLFZFZSZYZYZSYGCXSNXXCHCZXTZZLJFZGQSQYXZJQDCCZTQCDXZJYQJQCHXZTDLGSCXZSYQJQTZWLQDQZTQCHQQJZYEZZZPBWKDJFCJPZTYPQYQTTYNLMBDKTJZPQZQZZFPZSBNJLGYJDXJDZZKZGQKXDLPZJTCJDQBXDJQJSTCKNXBXZMSLYJCQMTJQWWCJQNJNLLLHJCWQTBZQYDZCZPZZDZYDDCYZZZCCJTTJFZDPRRTZTJDCQTQZDTJNPLZBCLLCTZSXKJZQZPZLBZRBTJDCXFCZDBCCJJLTQQPLDCGZDBBZJCQDCJWYNLLZYZCCDWLLXWZLXRXNTQQCZXKQLSGDFQTDDGLRLAJJTKUYMKQLLTZYTDYYCZGJWYXDXFRSKSTQTENQMRKQZHHQKDLDAZFKYPBGGPZREBZZYKZZSPEGJXGYKQZZZSLYSYYYZWFQZYLZZLZHWCHKYPQGNPGBLPLRRJYXCCSYYHSFZFYBZYYTGZXYLXCZWXXZJZBLFFLGSKHYJZEYJHLPLLLLCZGXDRZELRHGKLZZYHZLYQSZZJZQLJZFLNBHGWLCZCFJYSPYXZLZLXGCCPZBLLCYBBBBUBBCBPCRNNZCZYRBFSRLDCGQYYQXYGMQZWTZYTYJXYFWTEHZZJYWLCCNTZYJJZDEDPZDZTSYQJHDYMBJNYJZLXTSSTPHNDJXXBYXQTZQDDTJTDYYTGWSCSZQFLSHLGLBCZPHDLYZJYCKWTYTYLBNYTSDSYCCTYSZYYEBHEXHQDTWNYGYCLXTSZYSTQMYGZAZCCSZZDSLZCLZRQXYYELJSBYMXSXZTEMBBLLYYLLYTDQYSHYMRQWKFKBFXNXSBYCHXBWJYHTQBPBSBWDZYLKGZSKYHXQZJXHXJXGNLJKZLYYCDXLFYFGHLJGJYBXQLYBXQPQGZTZPLNCYPXDJYQYDYMRBESJYYHKXXSTMXRCZZYWXYQYBMCLLYZHQYZWQXDBXBZWZMSLPDMYSKFMZKLZCYQYCZLQXFZZYDQZPZYGYJYZMZXDZFYFYTTQTZHGSPCZMLCCYTZXJCYTJMKSLPZHYSNZLLYTPZCTZZCKTXDHXXTQCYFKSMQCCYYAZHTJPCYLZLYJBJXTPNYLJYYNRXSYLMMNXJSMYBCSYSYLZYLXJJQYLDZLPQBFZZBLFNDXQKCZFYWHGQMRDSXYCYTXNQQJZYYPFZXDYZFPRXEJDGYQBXRCNFYYQPGHYJDYZXGRHTKYLNWDZNTSMPKLBTHBPYSZBZTJZSZZJTYYXZPHSSZZBZCZPTQFZMYFLYPYBBJQXZMXXDJMTSYSKKBJZXHJCKLPSMKYJZCXTMLJYXRZZQSLXXQPYZXMKYXXXJCLJPRMYYGADYSKQLSNDHYZKQXZYZTCGHZTLMLWZYBWSYCTBHJHJFCWZTXWYTKZLXQSHLYJZJXTMPLPYCGLTBZZTLZJCYJGDTCLKLPLLQPJMZPAPXYZLKKTKDZCZZBNZDYDYQZJYJGMCTXLTGXSZLMLHBGLKFWNWZHDXUHLFMKYSLGXDTWWFRJEJZTZHYDXYKSHWFZCQSHKTMQQHTZHYMJDJSKHXZJZBZZXYMPAGQMSTPXLSKLZYNWRTSQLSZBPSPSGZWYHTLKSSSWHZZLYYTNXJGMJSZSUFWNLSOZTXGXLSAMMLBWLDSZYLAKQCQCTMYCFJBSLXCLZZCLXXKSBZQCLHJPSQPLSXXCKSLNHPSFQQYTXYJZLQLDXZQJZDYYDJNZPTUZDSKJFSLJHYLZSQZLBTXYDGTQFDBYAZXDZHZJNHHQBYKNXJJQCZMLLJZKSPLDYCLBBLXKLELXJLBQYCXJXGCNLCQPLZLZYJTZLJGYZDZPLTQCSXFDMNYCXGBTJDCZNBGBQYQJWGKFHTNPYQZQGBKPBBYZMTJDYTBLSQMPSXTBNPDXKLEMYYCJYNZCTLDYKZZXDDXHQSHDGMZSJYCCTAYRZLPYLTLKXSLZCGGEXCLFXLKJRTLQJAQZNCMBYDKKCXGLCZJZXJHPTDJJMZQYKQSECQZDSHHADMLZFMMZBGNTJNNLGBYJBRBTMLBYJDZXLCJLPLDLPCQDHLXZLYCBLCXZZJADJLNZMMSSSMYBHBSQKBHRSXXJMXSDZNZPXLGBRHWGGFCXGMSKLLTSJYYCQLTSKYWYYHYWXBXQYWPYWYKQLSQPTNTKHQCWDQKTWPXXHCPTHTWUMSSYHBWCRWXHJMKMZNGWTMLKFGHKJYLSYYCXWHYECLQHKQHTTQKHFZLDXQWYZYYDESBPKYRZPJFYYZJCEQDZZDLATZBBFJLLCXDLMJSSXEGYGSJQXCWBXSSZPDYZCXDNYXPPZYDLYJCZPLTXLSXYZYRXCYYYDYLWWNZSAHJSYQYHGYWWAXTJZDAXYSRLTDPSSYYFNEJDXYZHLXLLLZQZSJNYQYQQXYJGHZGZCYJCHZLYCDSHWSHJZYJXCLLNXZJJYYXNFXMWFPYLCYLLABWDDHWDXJMCXZTZPMLQZHSFHZYNZTLLDYWLSLXHYMMYLMBWWKYXYADTXYLLDJPYBPWUXJMWMLLSAFDLLYFLBHHHBQQLTZJCQJLDJTFFKMMMBYTHYGDCQRDDWRQJXNBYSNWZDBYYTBJHPYBYTTJXAAHGQDQTMYSTQXKBTZPKJLZRBEQQSSMJJBDJOTGTBXPGBKTLHQXJJJCTHXQDWJLWRFWQGWSHCKRYSWGFTGYGBXSDWDWRFHWYTJJXXXJYZYSLPYYYPAYXHYDQKXSHXYXGSKQHYWFDDDPPLCJLQQEEWXKSYYKDYPLTJTHKJLTCYYHHJTTPLTZZCDLTHQKZXQYSTEEYWYYZYXXYYSTTJKLLPZMCYHQGXYHSRMBXPLLNQYDQHXSXXWGDQBSHYLLPJJJTHYJKYPPTHYYKTYEZYENMDSHLCRPQFDGFXZPSFTLJXXJBSWYYSKSFLXLPPLBBBLBSFXFYZBSJSSYLPBBFFFFSSCJDSTZSXZRYYSYFFSYZYZBJTBCTSBSDHRTJJBYTCXYJEYLXCBNEBJDSYXYKGSJZBXBYTFZWGENYHHTHZHHXFWGCSTBGXKLSXYWMTMBYXJSTZSCDYQRCYTWXZFHMYMCXLZNSDJTTTXRYCFYJSBSDYERXJLJXBBDEYNJGHXGCKGSCYMBLXJMSZNSKGXFBNBPTHFJAAFXYXFPXMYPQDTZCXZZPXRSYWZDLYBBKTYQPQJPZYPZJZNJPZJLZZFYSBTTSLMPTZRTDXQSJEHBZYLZDHLJSQMLHTXTJECXSLZZSPKTLZKQQYFSYGYWPCPQFHQHYTQXZKRSGTTSQCZLPTXCDYYZXSQZSLXLZMYCPCQBZYXHBSXLZDLTCDXTYLZJYYZPZYZLTXJSJXHLPMYTXCQRBLZSSFJZZTNJYTXMYJHLHPPLCYXQJQQKZZSCPZKSWALQSBLCCZJSXGWWWYGYKTJBBZTDKHXHKGTGPBKQYSLPXPJCKBMLLXDZSTBKLGGQKQLSBKKTFXRMDKBFTPZFRTBBRFERQGXYJPZSSTLBZTPSZQZSJDHLJQLZBPMSMMSXLQQNHKNBLRDDNXXDHDDJCYYGYLXGZLXSYGMQQGKHBPMXYXLYTQWLWGCPBMQXCYZYDRJBHTDJYHQSHTMJSBYPLWHLZFFNYPMHXXHPLTBQPFBJWQDBYGPNZTPFZJGSDDTQSHZEAWZZYLLTYYBWJKXXGHLFKXDJTMSZSQYNZGGSWQSPHTLSSKMCLZXYSZQZXNCJDQGZDLFNYKLJCJLLZLMZZNHYDSSHTHZZLZZBBHQZWWYCRZHLYQQJBEYFXXXWHSRXWQHWPSLMSSKZTTYGYQQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY",
- polyphone: (_polyphone = {
- "19969": "DZ",
- "19975": "WM",
- "19988": "QJ",
- "20048": "YL",
- "20056": "SC",
- "20060": "NM",
- "20094": "QG",
- "20127": "QJ",
- "20167": "QC",
- "20193": "YG",
- "20250": "KH",
- "20256": "ZC",
- "20282": "SC",
- "20285": "QJG",
- "20291": "TD",
- "20314": "YD",
- "20340": "NE",
- "20375": "TD",
- "20389": "YJ",
- "20391": "CZ",
- "20415": "PB",
- "20446": "YS",
- "20447": "SQ",
- "20504": "TC",
- "20608": "KG",
- "20854": "QJ",
- "20857": "ZC",
- "20911": "PF"
- }, (0, _defineProperty2.default)(_polyphone, "20504", "TC"), (0, _defineProperty2.default)(_polyphone, "20608", "KG"), (0, _defineProperty2.default)(_polyphone, "20854", "QJ"), (0, _defineProperty2.default)(_polyphone, "20857", "ZC"), (0, _defineProperty2.default)(_polyphone, "20911", "PF"), (0, _defineProperty2.default)(_polyphone, "20985", "AW"), (0, _defineProperty2.default)(_polyphone, "21032", "PB"), (0, _defineProperty2.default)(_polyphone, "21048", "XQ"), (0, _defineProperty2.default)(_polyphone, "21049", "SC"), (0, _defineProperty2.default)(_polyphone, "21089", "YS"), (0, _defineProperty2.default)(_polyphone, "21119", "JC"), (0, _defineProperty2.default)(_polyphone, "21242", "SB"), (0, _defineProperty2.default)(_polyphone, "21273", "SC"), (0, _defineProperty2.default)(_polyphone, "21305", "YP"), (0, _defineProperty2.default)(_polyphone, "21306", "QO"), (0, _defineProperty2.default)(_polyphone, "21330", "ZC"), (0, _defineProperty2.default)(_polyphone, "21333", "SDC"), (0, _defineProperty2.default)(_polyphone, "21345", "QK"), (0, _defineProperty2.default)(_polyphone, "21378", "CA"), (0, _defineProperty2.default)(_polyphone, "21397", "SC"), (0, _defineProperty2.default)(_polyphone, "21414", "XS"), (0, _defineProperty2.default)(_polyphone, "21442", "SC"), (0, _defineProperty2.default)(_polyphone, "21477", "JG"), (0, _defineProperty2.default)(_polyphone, "21480", "TD"), (0, _defineProperty2.default)(_polyphone, "21484", "ZS"), (0, _defineProperty2.default)(_polyphone, "21494", "YX"), (0, _defineProperty2.default)(_polyphone, "21505", "YX"), (0, _defineProperty2.default)(_polyphone, "21512", "HG"), (0, _defineProperty2.default)(_polyphone, "21523", "XH"), (0, _defineProperty2.default)(_polyphone, "21537", "PB"), (0, _defineProperty2.default)(_polyphone, "21542", "PF"), (0, _defineProperty2.default)(_polyphone, "21549", "KH"), (0, _defineProperty2.default)(_polyphone, "21571", "E"), (0, _defineProperty2.default)(_polyphone, "21574", "DA"), (0, _defineProperty2.default)(_polyphone, "21588", "TD"), (0, _defineProperty2.default)(_polyphone, "21589", "O"), (0, _defineProperty2.default)(_polyphone, "21618", "ZC"), (0, _defineProperty2.default)(_polyphone, "21621", "KHA"), (0, _defineProperty2.default)(_polyphone, "21632", "ZJ"), (0, _defineProperty2.default)(_polyphone, "21654", "KG"), (0, _defineProperty2.default)(_polyphone, "21679", "LKG"), (0, _defineProperty2.default)(_polyphone, "21683", "KH"), (0, _defineProperty2.default)(_polyphone, "21710", "A"), (0, _defineProperty2.default)(_polyphone, "21719", "YH"), (0, _defineProperty2.default)(_polyphone, "21734", "WOE"), (0, _defineProperty2.default)(_polyphone, "21769", "A"), (0, _defineProperty2.default)(_polyphone, "21780", "WN"), (0, _defineProperty2.default)(_polyphone, "21804", "XH"), (0, _defineProperty2.default)(_polyphone, "21834", "A"), (0, _defineProperty2.default)(_polyphone, "21899", "ZD"), (0, _defineProperty2.default)(_polyphone, "21903", "RN"), (0, _defineProperty2.default)(_polyphone, "21908", "WO"), (0, _defineProperty2.default)(_polyphone, "21939", "ZC"), (0, _defineProperty2.default)(_polyphone, "21956", "SA"), (0, _defineProperty2.default)(_polyphone, "21964", "YA"), (0, _defineProperty2.default)(_polyphone, "21970", "TD"), (0, _defineProperty2.default)(_polyphone, "22003", "A"), (0, _defineProperty2.default)(_polyphone, "22031", "JG"), (0, _defineProperty2.default)(_polyphone, "22040", "XS"), (0, _defineProperty2.default)(_polyphone, "22060", "ZC"), (0, _defineProperty2.default)(_polyphone, "22066", "ZC"), (0, _defineProperty2.default)(_polyphone, "22079", "MH"), (0, _defineProperty2.default)(_polyphone, "22129", "XJ"), (0, _defineProperty2.default)(_polyphone, "22179", "XA"), (0, _defineProperty2.default)(_polyphone, "22237", "NJ"), (0, _defineProperty2.default)(_polyphone, "22244", "TD"), (0, _defineProperty2.default)(_polyphone, "22280", "JQ"), (0, _defineProperty2.default)(_polyphone, "22300", "YH"), (0, _defineProperty2.default)(_polyphone, "22313", "XW"), (0, _defineProperty2.default)(_polyphone, "22331", "YQ"), (0, _defineProperty2.default)(_polyphone, "22343", "YJ"), (0, _defineProperty2.default)(_polyphone, "22351", "PH"), (0, _defineProperty2.default)(_polyphone, "22395", "DC"), (0, _defineProperty2.default)(_polyphone, "22412", "TD"), (0, _defineProperty2.default)(_polyphone, "22484", "PB"), (0, _defineProperty2.default)(_polyphone, "22500", "PB"), (0, _defineProperty2.default)(_polyphone, "22534", "ZD"), (0, _defineProperty2.default)(_polyphone, "22549", "DH"), (0, _defineProperty2.default)(_polyphone, "22561", "PB"), (0, _defineProperty2.default)(_polyphone, "22612", "TD"), (0, _defineProperty2.default)(_polyphone, "22771", "KQ"), (0, _defineProperty2.default)(_polyphone, "22831", "HB"), (0, _defineProperty2.default)(_polyphone, "22841", "JG"), (0, _defineProperty2.default)(_polyphone, "22855", "QJ"), (0, _defineProperty2.default)(_polyphone, "22865", "XQ"), (0, _defineProperty2.default)(_polyphone, "23013", "ML"), (0, _defineProperty2.default)(_polyphone, "23081", "WM"), (0, _defineProperty2.default)(_polyphone, "23487", "SX"), (0, _defineProperty2.default)(_polyphone, "23558", "QJ"), (0, _defineProperty2.default)(_polyphone, "23561", "YW"), (0, _defineProperty2.default)(_polyphone, "23586", "YW"), (0, _defineProperty2.default)(_polyphone, "23614", "YW"), (0, _defineProperty2.default)(_polyphone, "23615", "SN"), (0, _defineProperty2.default)(_polyphone, "23631", "PB"), (0, _defineProperty2.default)(_polyphone, "23646", "ZS"), (0, _defineProperty2.default)(_polyphone, "23663", "ZT"), (0, _defineProperty2.default)(_polyphone, "23673", "YG"), (0, _defineProperty2.default)(_polyphone, "23762", "TD"), (0, _defineProperty2.default)(_polyphone, "23769", "ZS"), (0, _defineProperty2.default)(_polyphone, "23780", "QJ"), (0, _defineProperty2.default)(_polyphone, "23884", "QK"), (0, _defineProperty2.default)(_polyphone, "24055", "XH"), (0, _defineProperty2.default)(_polyphone, "24113", "DC"), (0, _defineProperty2.default)(_polyphone, "24162", "ZC"), (0, _defineProperty2.default)(_polyphone, "24191", "GA"), (0, _defineProperty2.default)(_polyphone, "24273", "QJ"), (0, _defineProperty2.default)(_polyphone, "24324", "NL"), (0, _defineProperty2.default)(_polyphone, "24377", "TD"), (0, _defineProperty2.default)(_polyphone, "24378", "QJ"), (0, _defineProperty2.default)(_polyphone, "24439", "PF"), (0, _defineProperty2.default)(_polyphone, "24554", "ZS"), (0, _defineProperty2.default)(_polyphone, "24683", "TD"), (0, _defineProperty2.default)(_polyphone, "24694", "WE"), (0, _defineProperty2.default)(_polyphone, "24733", "LK"), (0, _defineProperty2.default)(_polyphone, "24925", "TN"), (0, _defineProperty2.default)(_polyphone, "25094", "ZG"), (0, _defineProperty2.default)(_polyphone, "25100", "XQ"), (0, _defineProperty2.default)(_polyphone, "25103", "XH"), (0, _defineProperty2.default)(_polyphone, "25153", "PB"), (0, _defineProperty2.default)(_polyphone, "25170", "PB"), (0, _defineProperty2.default)(_polyphone, "25179", "KG"), (0, _defineProperty2.default)(_polyphone, "25203", "PB"), (0, _defineProperty2.default)(_polyphone, "25240", "ZS"), (0, _defineProperty2.default)(_polyphone, "25282", "FB"), (0, _defineProperty2.default)(_polyphone, "25303", "NA"), (0, _defineProperty2.default)(_polyphone, "25324", "KG"), (0, _defineProperty2.default)(_polyphone, "25341", "ZY"), (0, _defineProperty2.default)(_polyphone, "25373", "WZ"), (0, _defineProperty2.default)(_polyphone, "25375", "XJ"), (0, _defineProperty2.default)(_polyphone, "25384", "A"), (0, _defineProperty2.default)(_polyphone, "25457", "A"), (0, _defineProperty2.default)(_polyphone, "25528", "SD"), (0, _defineProperty2.default)(_polyphone, "25530", "SC"), (0, _defineProperty2.default)(_polyphone, "25552", "TD"), (0, _defineProperty2.default)(_polyphone, "25774", "ZC"), (0, _defineProperty2.default)(_polyphone, "25874", "ZC"), (0, _defineProperty2.default)(_polyphone, "26044", "YW"), (0, _defineProperty2.default)(_polyphone, "26080", "WM"), (0, _defineProperty2.default)(_polyphone, "26292", "PB"), (0, _defineProperty2.default)(_polyphone, "26333", "PB"), (0, _defineProperty2.default)(_polyphone, "26355", "ZY"), (0, _defineProperty2.default)(_polyphone, "26366", "CZ"), (0, _defineProperty2.default)(_polyphone, "26397", "ZC"), (0, _defineProperty2.default)(_polyphone, "26399", "QJ"), (0, _defineProperty2.default)(_polyphone, "26415", "ZS"), (0, _defineProperty2.default)(_polyphone, "26451", "SB"), (0, _defineProperty2.default)(_polyphone, "26526", "ZC"), (0, _defineProperty2.default)(_polyphone, "26552", "JG"), (0, _defineProperty2.default)(_polyphone, "26561", "TD"), (0, _defineProperty2.default)(_polyphone, "26588", "JG"), (0, _defineProperty2.default)(_polyphone, "26597", "CZ"), (0, _defineProperty2.default)(_polyphone, "26629", "ZS"), (0, _defineProperty2.default)(_polyphone, "26638", "YL"), (0, _defineProperty2.default)(_polyphone, "26646", "XQ"), (0, _defineProperty2.default)(_polyphone, "26653", "KG"), (0, _defineProperty2.default)(_polyphone, "26657", "XJ"), (0, _defineProperty2.default)(_polyphone, "26727", "HG"), (0, _defineProperty2.default)(_polyphone, "26894", "ZC"), (0, _defineProperty2.default)(_polyphone, "26937", "ZS"), (0, _defineProperty2.default)(_polyphone, "26946", "ZC"), (0, _defineProperty2.default)(_polyphone, "26999", "KJ"), (0, _defineProperty2.default)(_polyphone, "27099", "KJ"), (0, _defineProperty2.default)(_polyphone, "27449", "YQ"), (0, _defineProperty2.default)(_polyphone, "27481", "XS"), (0, _defineProperty2.default)(_polyphone, "27542", "ZS"), (0, _defineProperty2.default)(_polyphone, "27663", "ZS"), (0, _defineProperty2.default)(_polyphone, "27748", "TS"), (0, _defineProperty2.default)(_polyphone, "27784", "SC"), (0, _defineProperty2.default)(_polyphone, "27788", "ZD"), (0, _defineProperty2.default)(_polyphone, "27795", "TD"), (0, _defineProperty2.default)(_polyphone, "27812", "O"), (0, _defineProperty2.default)(_polyphone, "27850", "PB"), (0, _defineProperty2.default)(_polyphone, "27852", "MB"), (0, _defineProperty2.default)(_polyphone, "27895", "SL"), (0, _defineProperty2.default)(_polyphone, "27898", "PL"), (0, _defineProperty2.default)(_polyphone, "27973", "QJ"), (0, _defineProperty2.default)(_polyphone, "27981", "KH"), (0, _defineProperty2.default)(_polyphone, "27986", "HX"), (0, _defineProperty2.default)(_polyphone, "27994", "XJ"), (0, _defineProperty2.default)(_polyphone, "28044", "YC"), (0, _defineProperty2.default)(_polyphone, "28065", "WG"), (0, _defineProperty2.default)(_polyphone, "28177", "SM"), (0, _defineProperty2.default)(_polyphone, "28267", "QJ"), (0, _defineProperty2.default)(_polyphone, "28291", "KH"), (0, _defineProperty2.default)(_polyphone, "28337", "ZQ"), (0, _defineProperty2.default)(_polyphone, "28463", "TL"), (0, _defineProperty2.default)(_polyphone, "28548", "DC"), (0, _defineProperty2.default)(_polyphone, "28601", "TD"), (0, _defineProperty2.default)(_polyphone, "28689", "PB"), (0, _defineProperty2.default)(_polyphone, "28805", "JG"), (0, _defineProperty2.default)(_polyphone, "28820", "QG"), (0, _defineProperty2.default)(_polyphone, "28846", "PB"), (0, _defineProperty2.default)(_polyphone, "28952", "TD"), (0, _defineProperty2.default)(_polyphone, "28975", "ZC"), (0, _defineProperty2.default)(_polyphone, "29100", "A"), (0, _defineProperty2.default)(_polyphone, "29325", "QJ"), (0, _defineProperty2.default)(_polyphone, "29575", "SL"), (0, _defineProperty2.default)(_polyphone, "29602", "FB"), (0, _defineProperty2.default)(_polyphone, "30010", "TD"), (0, _defineProperty2.default)(_polyphone, "30044", "CX"), (0, _defineProperty2.default)(_polyphone, "30058", "PF"), (0, _defineProperty2.default)(_polyphone, "30091", "YSP"), (0, _defineProperty2.default)(_polyphone, "30111", "YN"), (0, _defineProperty2.default)(_polyphone, "30229", "XJ"), (0, _defineProperty2.default)(_polyphone, "30427", "SC"), (0, _defineProperty2.default)(_polyphone, "30465", "SX"), (0, _defineProperty2.default)(_polyphone, "30631", "YQ"), (0, _defineProperty2.default)(_polyphone, "30655", "QJ"), (0, _defineProperty2.default)(_polyphone, "30684", "QJG"), (0, _defineProperty2.default)(_polyphone, "30707", "SD"), (0, _defineProperty2.default)(_polyphone, "30729", "XH"), (0, _defineProperty2.default)(_polyphone, "30796", "LG"), (0, _defineProperty2.default)(_polyphone, "30917", "PB"), (0, _defineProperty2.default)(_polyphone, "31074", "NM"), (0, _defineProperty2.default)(_polyphone, "31085", "JZ"), (0, _defineProperty2.default)(_polyphone, "31109", "SC"), (0, _defineProperty2.default)(_polyphone, "31181", "ZC"), (0, _defineProperty2.default)(_polyphone, "31192", "MLB"), (0, _defineProperty2.default)(_polyphone, "31293", "JQ"), (0, _defineProperty2.default)(_polyphone, "31400", "YX"), (0, _defineProperty2.default)(_polyphone, "31584", "YJ"), (0, _defineProperty2.default)(_polyphone, "31896", "ZN"), (0, _defineProperty2.default)(_polyphone, "31909", "ZY"), (0, _defineProperty2.default)(_polyphone, "31995", "XJ"), (0, _defineProperty2.default)(_polyphone, "32321", "PF"), (0, _defineProperty2.default)(_polyphone, "32327", "ZY"), (0, _defineProperty2.default)(_polyphone, "32418", "HG"), (0, _defineProperty2.default)(_polyphone, "32420", "XQ"), (0, _defineProperty2.default)(_polyphone, "32421", "HG"), (0, _defineProperty2.default)(_polyphone, "32438", "LG"), (0, _defineProperty2.default)(_polyphone, "32473", "GJ"), (0, _defineProperty2.default)(_polyphone, "32488", "TD"), (0, _defineProperty2.default)(_polyphone, "32521", "QJ"), (0, _defineProperty2.default)(_polyphone, "32527", "PB"), (0, _defineProperty2.default)(_polyphone, "32562", "ZSQ"), (0, _defineProperty2.default)(_polyphone, "32564", "JZ"), (0, _defineProperty2.default)(_polyphone, "32735", "ZD"), (0, _defineProperty2.default)(_polyphone, "32793", "PB"), (0, _defineProperty2.default)(_polyphone, "33071", "PF"), (0, _defineProperty2.default)(_polyphone, "33098", "XL"), (0, _defineProperty2.default)(_polyphone, "33100", "YA"), (0, _defineProperty2.default)(_polyphone, "33152", "PB"), (0, _defineProperty2.default)(_polyphone, "33261", "CX"), (0, _defineProperty2.default)(_polyphone, "33324", "BP"), (0, _defineProperty2.default)(_polyphone, "33333", "TD"), (0, _defineProperty2.default)(_polyphone, "33406", "YA"), (0, _defineProperty2.default)(_polyphone, "33426", "WM"), (0, _defineProperty2.default)(_polyphone, "33432", "PB"), (0, _defineProperty2.default)(_polyphone, "33445", "JG"), (0, _defineProperty2.default)(_polyphone, "33486", "ZN"), (0, _defineProperty2.default)(_polyphone, "33493", "TS"), (0, _defineProperty2.default)(_polyphone, "33507", "QJ"), (0, _defineProperty2.default)(_polyphone, "33540", "QJ"), (0, _defineProperty2.default)(_polyphone, "33544", "ZC"), (0, _defineProperty2.default)(_polyphone, "33564", "XQ"), (0, _defineProperty2.default)(_polyphone, "33617", "YT"), (0, _defineProperty2.default)(_polyphone, "33632", "QJ"), (0, _defineProperty2.default)(_polyphone, "33636", "XH"), (0, _defineProperty2.default)(_polyphone, "33637", "YX"), (0, _defineProperty2.default)(_polyphone, "33694", "WG"), (0, _defineProperty2.default)(_polyphone, "33705", "PF"), (0, _defineProperty2.default)(_polyphone, "33728", "YW"), (0, _defineProperty2.default)(_polyphone, "33882", "SR"), (0, _defineProperty2.default)(_polyphone, "34067", "WM"), (0, _defineProperty2.default)(_polyphone, "34074", "YW"), (0, _defineProperty2.default)(_polyphone, "34121", "QJ"), (0, _defineProperty2.default)(_polyphone, "34255", "ZC"), (0, _defineProperty2.default)(_polyphone, "34259", "XL"), (0, _defineProperty2.default)(_polyphone, "34425", "JH"), (0, _defineProperty2.default)(_polyphone, "34430", "XH"), (0, _defineProperty2.default)(_polyphone, "34485", "KH"), (0, _defineProperty2.default)(_polyphone, "34503", "YS"), (0, _defineProperty2.default)(_polyphone, "34532", "HG"), (0, _defineProperty2.default)(_polyphone, "34552", "XS"), (0, _defineProperty2.default)(_polyphone, "34558", "YE"), (0, _defineProperty2.default)(_polyphone, "34593", "ZL"), (0, _defineProperty2.default)(_polyphone, "34660", "YQ"), (0, _defineProperty2.default)(_polyphone, "34892", "XH"), (0, _defineProperty2.default)(_polyphone, "34928", "SC"), (0, _defineProperty2.default)(_polyphone, "34999", "QJ"), (0, _defineProperty2.default)(_polyphone, "35048", "PB"), (0, _defineProperty2.default)(_polyphone, "35059", "SC"), (0, _defineProperty2.default)(_polyphone, "35098", "ZC"), (0, _defineProperty2.default)(_polyphone, "35203", "TQ"), (0, _defineProperty2.default)(_polyphone, "35265", "JX"), (0, _defineProperty2.default)(_polyphone, "35299", "JX"), (0, _defineProperty2.default)(_polyphone, "35782", "SZ"), (0, _defineProperty2.default)(_polyphone, "35828", "YS"), (0, _defineProperty2.default)(_polyphone, "35830", "E"), (0, _defineProperty2.default)(_polyphone, "35843", "TD"), (0, _defineProperty2.default)(_polyphone, "35895", "YG"), (0, _defineProperty2.default)(_polyphone, "35977", "MH"), (0, _defineProperty2.default)(_polyphone, "36158", "JG"), (0, _defineProperty2.default)(_polyphone, "36228", "QJ"), (0, _defineProperty2.default)(_polyphone, "36426", "XQ"), (0, _defineProperty2.default)(_polyphone, "36466", "DC"), (0, _defineProperty2.default)(_polyphone, "36710", "JC"), (0, _defineProperty2.default)(_polyphone, "36711", "ZYG"), (0, _defineProperty2.default)(_polyphone, "36767", "PB"), (0, _defineProperty2.default)(_polyphone, "36866", "SK"), (0, _defineProperty2.default)(_polyphone, "36951", "YW"), (0, _defineProperty2.default)(_polyphone, "37034", "YX"), (0, _defineProperty2.default)(_polyphone, "37063", "XH"), (0, _defineProperty2.default)(_polyphone, "37218", "ZC"), (0, _defineProperty2.default)(_polyphone, "37325", "ZC"), (0, _defineProperty2.default)(_polyphone, "38063", "PB"), (0, _defineProperty2.default)(_polyphone, "38079", "TD"), (0, _defineProperty2.default)(_polyphone, "38085", "QY"), (0, _defineProperty2.default)(_polyphone, "38107", "DC"), (0, _defineProperty2.default)(_polyphone, "38116", "TD"), (0, _defineProperty2.default)(_polyphone, "38123", "YD"), (0, _defineProperty2.default)(_polyphone, "38224", "HG"), (0, _defineProperty2.default)(_polyphone, "38241", "XTC"), (0, _defineProperty2.default)(_polyphone, "38271", "ZC"), (0, _defineProperty2.default)(_polyphone, "38415", "YE"), (0, _defineProperty2.default)(_polyphone, "38426", "KH"), (0, _defineProperty2.default)(_polyphone, "38461", "YD"), (0, _defineProperty2.default)(_polyphone, "38463", "AE"), (0, _defineProperty2.default)(_polyphone, "38466", "PB"), (0, _defineProperty2.default)(_polyphone, "38477", "XJ"), (0, _defineProperty2.default)(_polyphone, "38518", "YT"), (0, _defineProperty2.default)(_polyphone, "38551", "WK"), (0, _defineProperty2.default)(_polyphone, "38585", "ZC"), (0, _defineProperty2.default)(_polyphone, "38704", "XS"), (0, _defineProperty2.default)(_polyphone, "38739", "LJ"), (0, _defineProperty2.default)(_polyphone, "38761", "GJ"), (0, _defineProperty2.default)(_polyphone, "38808", "SQ"), (0, _defineProperty2.default)(_polyphone, "39048", "JG"), (0, _defineProperty2.default)(_polyphone, "39049", "XJ"), (0, _defineProperty2.default)(_polyphone, "39052", "HG"), (0, _defineProperty2.default)(_polyphone, "39076", "CZ"), (0, _defineProperty2.default)(_polyphone, "39271", "XT"), (0, _defineProperty2.default)(_polyphone, "39534", "TD"), (0, _defineProperty2.default)(_polyphone, "39552", "TD"), (0, _defineProperty2.default)(_polyphone, "39584", "PB"), (0, _defineProperty2.default)(_polyphone, "39647", "SB"), (0, _defineProperty2.default)(_polyphone, "39730", "LG"), (0, _defineProperty2.default)(_polyphone, "39748", "TPB"), (0, _defineProperty2.default)(_polyphone, "40109", "ZQ"), (0, _defineProperty2.default)(_polyphone, "40479", "ND"), (0, _defineProperty2.default)(_polyphone, "40516", "HG"), (0, _defineProperty2.default)(_polyphone, "40536", "HG"), (0, _defineProperty2.default)(_polyphone, "40583", "QJ"), (0, _defineProperty2.default)(_polyphone, "40765", "YQ"), (0, _defineProperty2.default)(_polyphone, "40784", "QJ"), (0, _defineProperty2.default)(_polyphone, "40840", "YK"), (0, _defineProperty2.default)(_polyphone, "40863", "QJG"), _polyphone)
- };
- //常用汉字按照汉字使用频率由低到高排序
- var pinyin_dict_notone = {
- "a": "阿啊呵腌嗄吖锕",
- "e": "额阿俄恶鹅遏鄂厄饿峨扼娥鳄哦蛾噩愕讹锷垩婀鹗萼谔莪腭锇颚呃阏屙苊轭",
- "ai": "爱埃艾碍癌哀挨矮隘蔼唉皑哎霭捱暧嫒嗳瑷嗌锿砹",
- "ei": "诶",
- "xi": "系西席息希习吸喜细析戏洗悉锡溪惜稀袭夕洒晰昔牺腊烯熙媳栖膝隙犀蹊硒兮熄曦禧嬉玺奚汐徙羲铣淅嘻歙熹矽蟋郗唏皙隰樨浠忾蜥檄郄翕阋鳃舾屣葸螅咭粞觋欷僖醯鼷裼穸饩舄禊诶菥蓰",
- "yi": "一以已意议义益亿易医艺食依移衣异伊仪宜射遗疑毅谊亦疫役忆抑尾乙译翼蛇溢椅沂泄逸蚁夷邑怡绎彝裔姨熠贻矣屹颐倚诣胰奕翌疙弈轶蛾驿壹猗臆弋铱旖漪迤佚翊诒怿痍懿饴峄揖眙镒仡黟肄咿翳挹缢呓刈咦嶷羿钇殪荑薏蜴镱噫癔苡悒嗌瘗衤佾埸圯舣酏劓",
- "an": "安案按岸暗鞍氨俺胺铵谙庵黯鹌桉埯犴揞厂广",
- "han": "厂汉韩含旱寒汗涵函喊憾罕焊翰邯撼瀚憨捍酣悍鼾邗颔蚶晗菡旰顸犴焓撖",
- "ang": "昂仰盎肮",
- "ao": "奥澳傲熬凹鳌敖遨鏖袄坳翱嗷拗懊岙螯骜獒鏊艹媪廒聱",
- "wa": "瓦挖娃洼袜蛙凹哇佤娲呙腽",
- "yu": "于与育余预域予遇奥语誉玉鱼雨渔裕愈娱欲吁舆宇羽逾豫郁寓吾狱喻御浴愉禹俞邪榆愚渝尉淤虞屿峪粥驭瑜禺毓钰隅芋熨瘀迂煜昱汩於臾盂聿竽萸妪腴圄谕觎揄龉谀俣馀庾妤瘐鬻欤鹬阈嵛雩鹆圉蜮伛纡窬窳饫蓣狳肀舁蝓燠",
- "niu": "牛纽扭钮拗妞忸狃",
- "o": "哦噢喔",
- "ba": "把八巴拔伯吧坝爸霸罢芭跋扒叭靶疤笆耙鲅粑岜灞钯捌菝魃茇",
- "pa": "怕帕爬扒趴琶啪葩耙杷钯筢",
- "pi": "被批副否皮坏辟啤匹披疲罢僻毗坯脾譬劈媲屁琵邳裨痞癖陂丕枇噼霹吡纰砒铍淠郫埤濞睥芘蚍圮鼙罴蜱疋貔仳庀擗甓陴",
- "bi": "比必币笔毕秘避闭佛辟壁弊彼逼碧鼻臂蔽拂泌璧庇痹毙弼匕鄙陛裨贲敝蓖吡篦纰俾铋毖筚荸薜婢哔跸濞秕荜愎睥妣芘箅髀畀滗狴萆嬖襞舭",
- "bai": "百白败摆伯拜柏佰掰呗擘捭稗",
- "bo": "波博播勃拨薄佛伯玻搏柏泊舶剥渤卜驳簿脖膊簸菠礴箔铂亳钵帛擘饽跛钹趵檗啵鹁擗踣",
- "bei": "北被备倍背杯勃贝辈悲碑臂卑悖惫蓓陂钡狈呗焙碚褙庳鞴孛鹎邶鐾",
- "ban": "办版半班般板颁伴搬斑扮拌扳瓣坂阪绊钣瘢舨癍",
- "pan": "判盘番潘攀盼拚畔胖叛拌蹒磐爿蟠泮袢襻丬",
- "bin": "份宾频滨斌彬濒殡缤鬓槟摈膑玢镔豳髌傧",
- "bang": "帮邦彭旁榜棒膀镑绑傍磅蚌谤梆浜蒡",
- "pang": "旁庞乓磅螃彷滂逄耪",
- "beng": "泵崩蚌蹦迸绷甭嘣甏堋",
- "bao": "报保包宝暴胞薄爆炮饱抱堡剥鲍曝葆瀑豹刨褒雹孢苞煲褓趵鸨龅勹",
- "bu": "不部步布补捕堡埔卜埠簿哺怖钚卟瓿逋晡醭钸",
- "pu": "普暴铺浦朴堡葡谱埔扑仆蒲曝瀑溥莆圃璞濮菩蹼匍噗氆攵镨攴镤",
- "mian": "面棉免绵缅勉眠冕娩腼渑湎沔黾宀眄",
- "po": "破繁坡迫颇朴泊婆泼魄粕鄱珀陂叵笸泺皤钋钷",
- "fan": "反范犯繁饭泛翻凡返番贩烦拚帆樊藩矾梵蕃钒幡畈蘩蹯燔",
- "fu": "府服副负富复福夫妇幅付扶父符附腐赴佛浮覆辅傅伏抚赋辐腹弗肤阜袱缚甫氟斧孚敷俯拂俘咐腑孵芙涪釜脯茯馥宓绂讣呋罘麸蝠匐芾蜉跗凫滏蝮驸绋蚨砩桴赙菔呒趺苻拊阝鲋怫稃郛莩幞祓艴黻黼鳆",
- "ben": "本体奔苯笨夯贲锛畚坌",
- "feng": "风丰封峰奉凤锋冯逢缝蜂枫疯讽烽俸沣酆砜葑唪",
- "bian": "变便边编遍辩鞭辨贬匾扁卞汴辫砭苄蝙鳊弁窆笾煸褊碥忭缏",
- "pian": "便片篇偏骗翩扁骈胼蹁谝犏缏",
- "zhen": "镇真针圳振震珍阵诊填侦臻贞枕桢赈祯帧甄斟缜箴疹砧榛鸩轸稹溱蓁胗椹朕畛浈",
- "biao": "表标彪镖裱飚膘飙镳婊骠飑杓髟鳔灬瘭",
- "piao": "票朴漂飘嫖瓢剽缥殍瞟骠嘌莩螵",
- "huo": "和活或货获火伙惑霍祸豁嚯藿锪蠖钬耠镬夥灬劐攉",
- "bie": "别鳖憋瘪蹩",
- "min": "民敏闽闵皿泯岷悯珉抿黾缗玟愍苠鳘",
- "fen": "分份纷奋粉氛芬愤粪坟汾焚酚吩忿棼玢鼢瀵偾鲼",
- "bing": "并病兵冰屏饼炳秉丙摒柄槟禀枋邴冫",
- "geng": "更耕颈庚耿梗埂羹哽赓绠鲠",
- "fang": "方放房防访纺芳仿坊妨肪邡舫彷枋鲂匚钫",
- "xian": "现先县见线限显险献鲜洗宪纤陷闲贤仙衔掀咸嫌掺羡弦腺痫娴舷馅酰铣冼涎暹籼锨苋蚬跹岘藓燹鹇氙莶霰跣猃彡祆筅",
- "fou": "不否缶",
- "ca": "拆擦嚓礤",
- "cha": "查察差茶插叉刹茬楂岔诧碴嚓喳姹杈汊衩搽槎镲苴檫馇锸猹",
- "cai": "才采财材菜彩裁蔡猜踩睬",
- "can": "参残餐灿惨蚕掺璨惭粲孱骖黪",
- "shen": "信深参身神什审申甚沈伸慎渗肾绅莘呻婶娠砷蜃哂椹葚吲糁渖诜谂矧胂",
- "cen": "参岑涔",
- "san": "三参散伞叁糁馓毵",
- "cang": "藏仓苍沧舱臧伧",
- "zang": "藏脏葬赃臧奘驵",
- "chen": "称陈沈沉晨琛臣尘辰衬趁忱郴宸谌碜嗔抻榇伧谶龀肜",
- "cao": "草操曹槽糙嘈漕螬艚屮",
- "ce": "策测册侧厕栅恻",
- "ze": "责则泽择侧咋啧仄箦赜笮舴昃迮帻",
- "zhai": "债择齐宅寨侧摘窄斋祭翟砦瘵哜",
- "dao": "到道导岛倒刀盗稻蹈悼捣叨祷焘氘纛刂帱忉",
- "ceng": "层曾蹭噌",
- "zha": "查扎炸诈闸渣咋乍榨楂札栅眨咤柞喳喋铡蚱吒怍砟揸痄哳齄",
- "chai": "差拆柴钗豺侪虿瘥",
- "ci": "次此差词辞刺瓷磁兹慈茨赐祠伺雌疵鹚糍呲粢",
- "zi": "资自子字齐咨滋仔姿紫兹孜淄籽梓鲻渍姊吱秭恣甾孳訾滓锱辎趑龇赀眦缁呲笫谘嵫髭茈粢觜耔",
- "cuo": "措错磋挫搓撮蹉锉厝嵯痤矬瘥脞鹾",
- "chan": "产单阐崭缠掺禅颤铲蝉搀潺蟾馋忏婵孱觇廛谄谗澶骣羼躔蒇冁",
- "shan": "山单善陕闪衫擅汕扇掺珊禅删膳缮赡鄯栅煽姗跚鳝嬗潸讪舢苫疝掸膻钐剡蟮芟埏彡骟",
- "zhan": "展战占站崭粘湛沾瞻颤詹斩盏辗绽毡栈蘸旃谵搌",
- "xin": "新心信辛欣薪馨鑫芯锌忻莘昕衅歆囟忄镡",
- "lian": "联连练廉炼脸莲恋链帘怜涟敛琏镰濂楝鲢殓潋裢裣臁奁莶蠊蔹",
- "chang": "场长厂常偿昌唱畅倡尝肠敞倘猖娼淌裳徜昶怅嫦菖鲳阊伥苌氅惝鬯",
- "zhang": "长张章障涨掌帐胀彰丈仗漳樟账杖璋嶂仉瘴蟑獐幛鄣嫜",
- "chao": "超朝潮炒钞抄巢吵剿绰嘲晁焯耖怊",
- "zhao": "着照招找召朝赵兆昭肇罩钊沼嘲爪诏濯啁棹笊",
- "zhou": "调州周洲舟骤轴昼宙粥皱肘咒帚胄绉纣妯啁诌繇碡籀酎荮",
- "che": "车彻撤尺扯澈掣坼砗屮",
- "ju": "车局据具举且居剧巨聚渠距句拒俱柜菊拘炬桔惧矩鞠驹锯踞咀瞿枸掬沮莒橘飓疽钜趄踽遽琚龃椐苣裾榘狙倨榉苴讵雎锔窭鞫犋屦醵",
- "cheng": "成程城承称盛抢乘诚呈净惩撑澄秤橙骋逞瞠丞晟铛埕塍蛏柽铖酲裎枨",
- "rong": "容荣融绒溶蓉熔戎榕茸冗嵘肜狨蝾",
- "sheng": "生声升胜盛乘圣剩牲甸省绳笙甥嵊晟渑眚",
- "deng": "等登邓灯澄凳瞪蹬噔磴嶝镫簦戥",
- "zhi": "制之治质职只志至指织支值知识直致执置止植纸拓智殖秩旨址滞氏枝芝脂帜汁肢挚稚酯掷峙炙栉侄芷窒咫吱趾痔蜘郅桎雉祉郦陟痣蛭帙枳踯徵胝栀贽祗豸鸷摭轵卮轾彘觯絷跖埴夂黹忮骘膣踬",
- "zheng": "政正证争整征郑丁症挣蒸睁铮筝拯峥怔诤狰徵钲",
- "tang": "堂唐糖汤塘躺趟倘棠烫淌膛搪镗傥螳溏帑羰樘醣螗耥铴瑭",
- "chi": "持吃池迟赤驰尺斥齿翅匙痴耻炽侈弛叱啻坻眙嗤墀哧茌豉敕笞饬踟蚩柢媸魑篪褫彳鸱螭瘛眵傺",
- "shi": "是时实事市十使世施式势视识师史示石食始士失适试什泽室似诗饰殖释驶氏硕逝湿蚀狮誓拾尸匙仕柿矢峙侍噬嗜栅拭嘘屎恃轼虱耆舐莳铈谥炻豕鲥饣螫酾筮埘弑礻蓍鲺贳",
- "qi": "企其起期气七器汽奇齐启旗棋妻弃揭枝歧欺骑契迄亟漆戚岂稽岐琦栖缉琪泣乞砌祁崎绮祺祈凄淇杞脐麒圻憩芪伎俟畦耆葺沏萋骐鳍綦讫蕲屺颀亓碛柒啐汔綮萁嘁蛴槭欹芑桤丌蜞",
- "chuai": "揣踹啜搋膪",
- "tuo": "托脱拓拖妥驼陀沱鸵驮唾椭坨佗砣跎庹柁橐乇铊沲酡鼍箨柝",
- "duo": "多度夺朵躲铎隋咄堕舵垛惰哆踱跺掇剁柁缍沲裰哚隳",
- "xue": "学血雪削薛穴靴谑噱鳕踅泶彐",
- "chong": "重种充冲涌崇虫宠忡憧舂茺铳艟",
- "chou": "筹抽绸酬愁丑臭仇畴稠瞅踌惆俦瘳雠帱",
- "qiu": "求球秋丘邱仇酋裘龟囚遒鳅虬蚯泅楸湫犰逑巯艽俅蝤赇鼽糗",
- "xiu": "修秀休宿袖绣臭朽锈羞嗅岫溴庥馐咻髹鸺貅",
- "chu": "出处础初助除储畜触楚厨雏矗橱锄滁躇怵绌搐刍蜍黜杵蹰亍樗憷楮",
- "tuan": "团揣湍疃抟彖",
- "zhui": "追坠缀揣椎锥赘惴隹骓缒",
- "chuan": "传川船穿串喘椽舛钏遄氚巛舡",
- "zhuan": "专转传赚砖撰篆馔啭颛",
- "yuan": "元员院原源远愿园援圆缘袁怨渊苑宛冤媛猿垣沅塬垸鸳辕鸢瑗圜爰芫鼋橼螈眢箢掾",
- "cuan": "窜攒篡蹿撺爨汆镩",
- "chuang": "创床窗闯幢疮怆",
- "zhuang": "装状庄壮撞妆幢桩奘僮戆",
- "chui": "吹垂锤炊椎陲槌捶棰",
- "chun": "春纯醇淳唇椿蠢鹑朐莼肫蝽",
- "zhun": "准屯淳谆肫窀",
- "cu": "促趋趣粗簇醋卒蹴猝蹙蔟殂徂",
- "dun": "吨顿盾敦蹲墩囤沌钝炖盹遁趸砘礅",
- "qu": "区去取曲趋渠趣驱屈躯衢娶祛瞿岖龋觑朐蛐癯蛆苣阒诎劬蕖蘧氍黢蠼璩麴鸲磲",
- "xu": "需许续须序徐休蓄畜虚吁绪叙旭邪恤墟栩絮圩婿戌胥嘘浒煦酗诩朐盱蓿溆洫顼勖糈砉醑",
- "chuo": "辍绰戳淖啜龊踔辶",
- "zu": "组族足祖租阻卒俎诅镞菹",
- "ji": "济机其技基记计系期际及集级几给积极己纪即继击既激绩急奇吉季齐疾迹鸡剂辑籍寄挤圾冀亟寂暨脊跻肌稽忌饥祭缉棘矶汲畸姬藉瘠骥羁妓讥稷蓟悸嫉岌叽伎鲫诘楫荠戟箕霁嵇觊麂畿玑笈犄芨唧屐髻戢佶偈笄跽蒺乩咭赍嵴虮掎齑殛鲚剞洎丌墼蕺彐芰哜",
- "cong": "从丛匆聪葱囱琮淙枞骢苁璁",
- "zong": "总从综宗纵踪棕粽鬃偬枞腙",
- "cou": "凑辏腠楱",
- "cui": "衰催崔脆翠萃粹摧璀瘁悴淬啐隹毳榱",
- "wei": "为位委未维卫围违威伟危味微唯谓伪慰尾魏韦胃畏帷喂巍萎蔚纬潍尉渭惟薇苇炜圩娓诿玮崴桅偎逶倭猥囗葳隗痿猬涠嵬韪煨艉隹帏闱洧沩隈鲔軎",
- "cun": "村存寸忖皴",
- "zuo": "作做座左坐昨佐琢撮祚柞唑嘬酢怍笮阼胙",
- "zuan": "钻纂攥缵躜",
- "da": "大达打答搭沓瘩惮嗒哒耷鞑靼褡笪怛妲",
- "dai": "大代带待贷毒戴袋歹呆隶逮岱傣棣怠殆黛甙埭诒绐玳呔迨",
- "tai": "大台太态泰抬胎汰钛苔薹肽跆邰鲐酞骀炱",
- "ta": "他它她拓塔踏塌榻沓漯獭嗒挞蹋趿遢铊鳎溻闼",
- "dan": "但单石担丹胆旦弹蛋淡诞氮郸耽殚惮儋眈疸澹掸膻啖箪聃萏瘅赕",
- "lu": "路六陆录绿露鲁卢炉鹿禄赂芦庐碌麓颅泸卤潞鹭辘虏璐漉噜戮鲈掳橹轳逯渌蓼撸鸬栌氇胪镥簏舻辂垆",
- "tan": "谈探坦摊弹炭坛滩贪叹谭潭碳毯瘫檀痰袒坍覃忐昙郯澹钽锬",
- "ren": "人任认仁忍韧刃纫饪妊荏稔壬仞轫亻衽",
- "jie": "家结解价界接节她届介阶街借杰洁截姐揭捷劫戒皆竭桔诫楷秸睫藉拮芥诘碣嗟颉蚧孑婕疖桀讦疥偈羯袷哜喈卩鲒骱",
- "yan": "研严验演言眼烟沿延盐炎燕岩宴艳颜殷彦掩淹阎衍铅雁咽厌焰堰砚唁焉晏檐蜒奄俨腌妍谚兖筵焱偃闫嫣鄢湮赝胭琰滟阉魇酽郾恹崦芫剡鼹菸餍埏谳讠厣罨",
- "dang": "当党档荡挡宕砀铛裆凼菪谠",
- "tao": "套讨跳陶涛逃桃萄淘掏滔韬叨洮啕绦饕鼗",
- "tiao": "条调挑跳迢眺苕窕笤佻啁粜髫铫祧龆蜩鲦",
- "te": "特忑忒铽慝",
- "de": "的地得德底锝",
- "dei": "得",
- "di": "的地第提低底抵弟迪递帝敌堤蒂缔滴涤翟娣笛棣荻谛狄邸嘀砥坻诋嫡镝碲骶氐柢籴羝睇觌",
- "ti": "体提题弟替梯踢惕剔蹄棣啼屉剃涕锑倜悌逖嚏荑醍绨鹈缇裼",
- "tui": "推退弟腿褪颓蜕忒煺",
- "you": "有由又优游油友右邮尤忧幼犹诱悠幽佑釉柚铀鱿囿酉攸黝莠猷蝣疣呦蚴莸莜铕宥繇卣牖鼬尢蚰侑",
- "dian": "电点店典奠甸碘淀殿垫颠滇癫巅惦掂癜玷佃踮靛钿簟坫阽",
- "tian": "天田添填甜甸恬腆佃舔钿阗忝殄畋栝掭",
- "zhu": "主术住注助属逐宁著筑驻朱珠祝猪诸柱竹铸株瞩嘱贮煮烛苎褚蛛拄铢洙竺蛀渚伫杼侏澍诛茱箸炷躅翥潴邾槠舳橥丶瘃麈疰",
- "nian": "年念酿辗碾廿捻撵拈蔫鲶埝鲇辇黏",
- "diao": "调掉雕吊钓刁貂凋碉鲷叼铫铞",
- "yao": "要么约药邀摇耀腰遥姚窑瑶咬尧钥谣肴夭侥吆疟妖幺杳舀窕窈曜鹞爻繇徭轺铫鳐崾珧",
- "die": "跌叠蝶迭碟爹谍牒耋佚喋堞瓞鲽垤揲蹀",
- "she": "设社摄涉射折舍蛇拾舌奢慑赦赊佘麝歙畲厍猞揲滠",
- "ye": "业也夜叶射野液冶喝页爷耶邪咽椰烨掖拽曳晔谒腋噎揶靥邺铘揲",
- "xie": "些解协写血叶谢械鞋胁斜携懈契卸谐泄蟹邪歇泻屑挟燮榭蝎撷偕亵楔颉缬邂鲑瀣勰榍薤绁渫廨獬躞",
- "zhe": "这者着著浙折哲蔗遮辙辄柘锗褶蜇蛰鹧谪赭摺乇磔螫",
- "ding": "定订顶丁鼎盯钉锭叮仃铤町酊啶碇腚疔玎耵",
- "diu": "丢铥",
- "ting": "听庭停厅廷挺亭艇婷汀铤烃霆町蜓葶梃莛",
- "dong": "动东董冬洞懂冻栋侗咚峒氡恫胴硐垌鸫岽胨",
- "tong": "同通统童痛铜桶桐筒彤侗佟潼捅酮砼瞳恸峒仝嗵僮垌茼",
- "zhong": "中重种众终钟忠仲衷肿踵冢盅蚣忪锺舯螽夂",
- "dou": "都斗读豆抖兜陡逗窦渎蚪痘蔸钭篼",
- "du": "度都独督读毒渡杜堵赌睹肚镀渎笃竺嘟犊妒牍蠹椟黩芏髑",
- "duan": "断段短端锻缎煅椴簖",
- "dui": "对队追敦兑堆碓镦怼憝",
- "rui": "瑞兑锐睿芮蕊蕤蚋枘",
- "yue": "月说约越乐跃兑阅岳粤悦曰钥栎钺樾瀹龠哕刖",
- "tun": "吞屯囤褪豚臀饨暾氽",
- "hui": "会回挥汇惠辉恢徽绘毁慧灰贿卉悔秽溃荟晖彗讳诲珲堕诙蕙晦睢麾烩茴喙桧蛔洄浍虺恚蟪咴隳缋哕",
- "wu": "务物无五武午吴舞伍污乌误亡恶屋晤悟吾雾芜梧勿巫侮坞毋诬呜钨邬捂鹜兀婺妩於戊鹉浯蜈唔骛仵焐芴鋈庑鼯牾怃圬忤痦迕杌寤阢",
- "ya": "亚压雅牙押鸭呀轧涯崖邪芽哑讶鸦娅衙丫蚜碣垭伢氩桠琊揠吖睚痖疋迓岈砑",
- "he": "和合河何核盖贺喝赫荷盒鹤吓呵苛禾菏壑褐涸阂阖劾诃颌嗬貉曷翮纥盍",
- "wo": "我握窝沃卧挝涡斡渥幄蜗喔倭莴龌肟硪",
- "en": "恩摁蒽",
- "n": "嗯唔",
- "er": "而二尔儿耳迩饵洱贰铒珥佴鸸鲕",
- "fa": "发法罚乏伐阀筏砝垡珐",
- "quan": "全权券泉圈拳劝犬铨痊诠荃醛蜷颧绻犭筌鬈悛辁畎",
- "fei": "费非飞肥废菲肺啡沸匪斐蜚妃诽扉翡霏吠绯腓痱芾淝悱狒榧砩鲱篚镄",
- "pei": "配培坏赔佩陪沛裴胚妃霈淠旆帔呸醅辔锫",
- "ping": "平评凭瓶冯屏萍苹乒坪枰娉俜鲆",
- "fo": "佛",
- "hu": "和护许户核湖互乎呼胡戏忽虎沪糊壶葫狐蝴弧瑚浒鹄琥扈唬滹惚祜囫斛笏芴醐猢怙唿戽槲觳煳鹕冱瓠虍岵鹱烀轷",
- "ga": "夹咖嘎尬噶旮伽尕钆尜",
- "ge": "个合各革格歌哥盖隔割阁戈葛鸽搁胳舸疙铬骼蛤咯圪镉颌仡硌嗝鬲膈纥袼搿塥哿虼",
- "ha": "哈蛤铪",
- "xia": "下夏峡厦辖霞夹虾狭吓侠暇遐瞎匣瑕唬呷黠硖罅狎瘕柙",
- "gai": "改该盖概溉钙丐芥赅垓陔戤",
- "hai": "海还害孩亥咳骸骇氦嗨胲醢",
- "gan": "干感赶敢甘肝杆赣乾柑尴竿秆橄矸淦苷擀酐绀泔坩旰疳澉",
- "gang": "港钢刚岗纲冈杠缸扛肛罡戆筻",
- "jiang": "将强江港奖讲降疆蒋姜浆匠酱僵桨绛缰犟豇礓洚茳糨耩",
- "hang": "行航杭巷夯吭桁沆绗颃",
- "gong": "工公共供功红贡攻宫巩龚恭拱躬弓汞蚣珙觥肱廾",
- "hong": "红宏洪轰虹鸿弘哄烘泓訇蕻闳讧荭黉薨",
- "guang": "广光逛潢犷胱咣桄",
- "qiong": "穷琼穹邛茕筇跫蛩銎",
- "gao": "高告搞稿膏糕镐皋羔锆杲郜睾诰藁篙缟槁槔",
- "hao": "好号毫豪耗浩郝皓昊皋蒿壕灏嚎濠蚝貉颢嗥薅嚆",
- "li": "理力利立里李历例离励礼丽黎璃厉厘粒莉梨隶栗荔沥犁漓哩狸藜罹篱鲤砺吏澧俐骊溧砾莅锂笠蠡蛎痢雳俪傈醴栎郦俚枥喱逦娌鹂戾砬唳坜疠蜊黧猁鬲粝蓠呖跞疬缡鲡鳢嫠詈悝苈篥轹",
- "jia": "家加价假佳架甲嘉贾驾嫁夹稼钾挟拮迦伽颊浃枷戛荚痂颉镓笳珈岬胛袈郏葭袷瘕铗跏蛱恝哿",
- "luo": "落罗络洛逻螺锣骆萝裸漯烙摞骡咯箩珞捋荦硌雒椤镙跞瘰泺脶猡倮蠃",
- "ke": "可科克客刻课颗渴壳柯棵呵坷恪苛咳磕珂稞瞌溘轲窠嗑疴蝌岢铪颏髁蚵缂氪骒钶锞",
- "qia": "卡恰洽掐髂袷咭葜",
- "gei": "给",
- "gen": "根跟亘艮哏茛",
- "hen": "很狠恨痕哏",
- "gou": "构购够句沟狗钩拘勾苟垢枸篝佝媾诟岣彀缑笱鞲觏遘",
- "kou": "口扣寇叩抠佝蔻芤眍筘",
- "gu": "股古顾故固鼓骨估谷贾姑孤雇辜菇沽咕呱锢钴箍汩梏痼崮轱鸪牯蛊诂毂鹘菰罟嘏臌觚瞽蛄酤牿鲴",
- "pai": "牌排派拍迫徘湃俳哌蒎",
- "gua": "括挂瓜刮寡卦呱褂剐胍诖鸹栝呙",
- "tou": "投头透偷愉骰亠",
- "guai": "怪拐乖",
- "kuai": "会快块筷脍蒯侩浍郐蒉狯哙",
- "guan": "关管观馆官贯冠惯灌罐莞纶棺斡矜倌鹳鳏盥掼涫",
- "wan": "万完晚湾玩碗顽挽弯蔓丸莞皖宛婉腕蜿惋烷琬畹豌剜纨绾脘菀芄箢",
- "ne": "呢哪呐讷疒",
- "gui": "规贵归轨桂柜圭鬼硅瑰跪龟匮闺诡癸鳜桧皈鲑刽晷傀眭妫炅庋簋刿宄匦",
- "jun": "军均俊君峻菌竣钧骏龟浚隽郡筠皲麇捃",
- "jiong": "窘炯迥炅冂扃",
- "jue": "决绝角觉掘崛诀獗抉爵嚼倔厥蕨攫珏矍蹶谲镢鳜噱桷噘撅橛孓觖劂爝",
- "gun": "滚棍辊衮磙鲧绲丨",
- "hun": "婚混魂浑昏棍珲荤馄诨溷阍",
- "guo": "国过果郭锅裹帼涡椁囗蝈虢聒埚掴猓崞蜾呙馘",
- "hei": "黑嘿嗨",
- "kan": "看刊勘堪坎砍侃嵌槛瞰阚龛戡凵莰",
- "heng": "衡横恒亨哼珩桁蘅",
- "mo": "万没么模末冒莫摩墨默磨摸漠脉膜魔沫陌抹寞蘑摹蓦馍茉嘿谟秣蟆貉嫫镆殁耱嬷麽瘼貊貘",
- "peng": "鹏朋彭膨蓬碰苹棚捧亨烹篷澎抨硼怦砰嘭蟛堋",
- "hou": "后候厚侯猴喉吼逅篌糇骺後鲎瘊堠",
- "hua": "化华划话花画滑哗豁骅桦猾铧砉",
- "huai": "怀坏淮徊槐踝",
- "huan": "还环换欢患缓唤焕幻痪桓寰涣宦垸洹浣豢奂郇圜獾鲩鬟萑逭漶锾缳擐",
- "xun": "讯训迅孙寻询循旬巡汛勋逊熏徇浚殉驯鲟薰荀浔洵峋埙巽郇醺恂荨窨蕈曛獯",
- "huang": "黄荒煌皇凰慌晃潢谎惶簧璜恍幌湟蝗磺隍徨遑肓篁鳇蟥癀",
- "nai": "能乃奶耐奈鼐萘氖柰佴艿",
- "luan": "乱卵滦峦鸾栾銮挛孪脔娈",
- "qie": "切且契窃茄砌锲怯伽惬妾趄挈郄箧慊",
- "jian": "建间件见坚检健监减简艰践兼鉴键渐柬剑尖肩舰荐箭浅剪俭碱茧奸歼拣捡煎贱溅槛涧堑笺谏饯锏缄睑謇蹇腱菅翦戬毽笕犍硷鞯牮枧湔鲣囝裥踺搛缣鹣蒹谫僭戋趼楗",
- "nan": "南难男楠喃囡赧腩囝蝻",
- "qian": "前千钱签潜迁欠纤牵浅遣谦乾铅歉黔谴嵌倩钳茜虔堑钎骞阡掮钤扦芊犍荨仟芡悭缱佥愆褰凵肷岍搴箝慊椠",
- "qiang": "强抢疆墙枪腔锵呛羌蔷襁羟跄樯戕嫱戗炝镪锖蜣",
- "xiang": "向项相想乡象响香降像享箱羊祥湘详橡巷翔襄厢镶飨饷缃骧芗庠鲞葙蟓",
- "jiao": "教交较校角觉叫脚缴胶轿郊焦骄浇椒礁佼蕉娇矫搅绞酵剿嚼饺窖跤蛟侥狡姣皎茭峤铰醮鲛湫徼鹪僬噍艽挢敫",
- "zhuo": "着著缴桌卓捉琢灼浊酌拙茁涿镯淖啄濯焯倬擢斫棹诼浞禚",
- "qiao": "桥乔侨巧悄敲俏壳雀瞧翘窍峭锹撬荞跷樵憔鞘橇峤诮谯愀鞒硗劁缲",
- "xiao": "小效销消校晓笑肖削孝萧俏潇硝宵啸嚣霄淆哮筱逍姣箫骁枭哓绡蛸崤枵魈",
- "si": "司四思斯食私死似丝饲寺肆撕泗伺嗣祀厮驷嘶锶俟巳蛳咝耜笥纟糸鸶缌澌姒汜厶兕",
- "kai": "开凯慨岂楷恺揩锴铠忾垲剀锎蒈",
- "jin": "进金今近仅紧尽津斤禁锦劲晋谨筋巾浸襟靳瑾烬缙钅矜觐堇馑荩噤廑妗槿赆衿卺",
- "qin": "亲勤侵秦钦琴禽芹沁寝擒覃噙矜嗪揿溱芩衾廑锓吣檎螓",
- "jing": "经京精境竞景警竟井惊径静劲敬净镜睛晶颈荆兢靖泾憬鲸茎腈菁胫阱旌粳靓痉箐儆迳婧肼刭弪獍",
- "ying": "应营影英景迎映硬盈赢颖婴鹰荧莹樱瑛蝇萦莺颍膺缨瀛楹罂荥萤鹦滢蓥郢茔嘤璎嬴瘿媵撄潆",
- "jiu": "就究九酒久救旧纠舅灸疚揪咎韭玖臼柩赳鸠鹫厩啾阄桕僦鬏",
- "zui": "最罪嘴醉咀蕞觜",
- "juan": "卷捐圈眷娟倦绢隽镌涓鹃鄄蠲狷锩桊",
- "suan": "算酸蒜狻",
- "yun": "员运云允孕蕴韵酝耘晕匀芸陨纭郧筠恽韫郓氲殒愠昀菀狁",
- "qun": "群裙逡麇",
- "ka": "卡喀咖咔咯佧胩",
- "kang": "康抗扛慷炕亢糠伉钪闶",
- "keng": "坑铿吭",
- "kao": "考靠烤拷铐栲尻犒",
- "ken": "肯垦恳啃龈裉",
- "yin": "因引银印音饮阴隐姻殷淫尹荫吟瘾寅茵圻垠鄞湮蚓氤胤龈窨喑铟洇狺夤廴吲霪茚堙",
- "kong": "空控孔恐倥崆箜",
- "ku": "苦库哭酷裤枯窟挎骷堀绔刳喾",
- "kua": "跨夸垮挎胯侉",
- "kui": "亏奎愧魁馈溃匮葵窥盔逵睽馗聩喟夔篑岿喹揆隗傀暌跬蒉愦悝蝰",
- "kuan": "款宽髋",
- "kuang": "况矿框狂旷眶匡筐邝圹哐贶夼诳诓纩",
- "que": "确却缺雀鹊阙瘸榷炔阕悫",
- "kun": "困昆坤捆琨锟鲲醌髡悃阃",
- "kuo": "扩括阔廓蛞",
- "la": "拉落垃腊啦辣蜡喇剌旯砬邋瘌",
- "lai": "来莱赖睐徕籁涞赉濑癞崃疠铼",
- "lan": "兰览蓝篮栏岚烂滥缆揽澜拦懒榄斓婪阑褴罱啉谰镧漤",
- "lin": "林临邻赁琳磷淋麟霖鳞凛拎遴蔺吝粼嶙躏廪檩啉辚膦瞵懔",
- "lang": "浪朗郎廊狼琅榔螂阆锒莨啷蒗稂",
- "liang": "量两粮良辆亮梁凉谅粱晾靓踉莨椋魉墚",
- "lao": "老劳落络牢捞涝烙姥佬崂唠酪潦痨醪铑铹栳耢",
- "mu": "目模木亩幕母牧莫穆姆墓慕牟牡募睦缪沐暮拇姥钼苜仫毪坶",
- "le": "了乐勒肋叻鳓嘞仂泐",
- "lei": "类累雷勒泪蕾垒磊擂镭肋羸耒儡嫘缧酹嘞诔檑",
- "sui": "随岁虽碎尿隧遂髓穗绥隋邃睢祟濉燧谇眭荽",
- "lie": "列烈劣裂猎冽咧趔洌鬣埒捩躐",
- "leng": "冷愣棱楞塄",
- "ling": "领令另零灵龄陵岭凌玲铃菱棱伶羚苓聆翎泠瓴囹绫呤棂蛉酃鲮柃",
- "lia": "俩",
- "liao": "了料疗辽廖聊寥缪僚燎缭撂撩嘹潦镣寮蓼獠钌尥鹩",
- "liu": "流刘六留柳瘤硫溜碌浏榴琉馏遛鎏骝绺镏旒熘鹨锍",
- "lun": "论轮伦仑纶沦抡囵",
- "lv": "率律旅绿虑履吕铝屡氯缕滤侣驴榈闾偻褛捋膂稆",
- "lou": "楼露漏陋娄搂篓喽镂偻瘘髅耧蝼嵝蒌",
- "mao": "贸毛矛冒貌茂茅帽猫髦锚懋袤牦卯铆耄峁瑁蟊茆蝥旄泖昴瞀",
- "long": "龙隆弄垄笼拢聋陇胧珑窿茏咙砻垅泷栊癃",
- "nong": "农浓弄脓侬哝",
- "shuang": "双爽霜孀泷",
- "shu": "术书数属树输束述署朱熟殊蔬舒疏鼠淑叔暑枢墅俞曙抒竖蜀薯梳戍恕孰沭赎庶漱塾倏澍纾姝菽黍腧秫毹殳疋摅",
- "shuai": "率衰帅摔甩蟀",
- "lve": "略掠锊",
- "ma": "么马吗摩麻码妈玛嘛骂抹蚂唛蟆犸杩",
- "me": "么麽",
- "mai": "买卖麦迈脉埋霾荬劢",
- "man": "满慢曼漫埋蔓瞒蛮鳗馒幔谩螨熳缦镘颟墁鞔",
- "mi": "米密秘迷弥蜜谜觅靡泌眯麋猕谧咪糜宓汨醚嘧弭脒冖幂祢縻蘼芈糸敉",
- "men": "们门闷瞒汶扪焖懑鞔钔",
- "mang": "忙盲茫芒氓莽蟒邙硭漭",
- "meng": "蒙盟梦猛孟萌氓朦锰檬勐懵蟒蜢虻黾蠓艨甍艋瞢礞",
- "miao": "苗秒妙描庙瞄缪渺淼藐缈邈鹋杪眇喵",
- "mou": "某谋牟缪眸哞鍪蛑侔厶",
- "miu": "缪谬",
- "mei": "美没每煤梅媒枚妹眉魅霉昧媚玫酶镁湄寐莓袂楣糜嵋镅浼猸鹛",
- "wen": "文问闻稳温纹吻蚊雯紊瘟汶韫刎璺玟阌",
- "mie": "灭蔑篾乜咩蠛",
- "ming": "明名命鸣铭冥茗溟酩瞑螟暝",
- "na": "内南那纳拿哪娜钠呐捺衲镎肭",
- "nei": "内那哪馁",
- "nuo": "难诺挪娜糯懦傩喏搦锘",
- "ruo": "若弱偌箬",
- "nang": "囊馕囔曩攮",
- "nao": "脑闹恼挠瑙淖孬垴铙桡呶硇猱蛲",
- "ni": "你尼呢泥疑拟逆倪妮腻匿霓溺旎昵坭铌鲵伲怩睨猊",
- "nen": "嫩恁",
- "neng": "能",
- "nin": "您恁",
- "niao": "鸟尿溺袅脲茑嬲",
- "nie": "摄聂捏涅镍孽捻蘖啮蹑嗫臬镊颞乜陧",
- "niang": "娘酿",
- "ning": "宁凝拧泞柠咛狞佞聍甯",
- "nu": "努怒奴弩驽帑孥胬",
- "nv": "女钕衄恧",
- "ru": "入如女乳儒辱汝茹褥孺濡蠕嚅缛溽铷洳薷襦颥蓐",
- "nuan": "暖",
- "nve": "虐疟",
- "re": "热若惹喏",
- "ou": "区欧偶殴呕禺藕讴鸥瓯沤耦怄",
- "pao": "跑炮泡抛刨袍咆疱庖狍匏脬",
- "pou": "剖掊裒",
- "pen": "喷盆湓",
- "pie": "瞥撇苤氕丿",
- "pin": "品贫聘频拼拚颦姘嫔榀牝",
- "se": "色塞瑟涩啬穑铯槭",
- "qing": "情青清请亲轻庆倾顷卿晴氢擎氰罄磬蜻箐鲭綮苘黥圊檠謦",
- "zan": "赞暂攒堑昝簪糌瓒錾趱拶",
- "shao": "少绍召烧稍邵哨韶捎勺梢鞘芍苕劭艄筲杓潲",
- "sao": "扫骚嫂梢缫搔瘙臊埽缲鳋",
- "sha": "沙厦杀纱砂啥莎刹杉傻煞鲨霎嗄痧裟挲铩唼歃",
- "xuan": "县选宣券旋悬轩喧玄绚渲璇炫萱癣漩眩暄煊铉楦泫谖痃碹揎镟儇",
- "ran": "然染燃冉苒髯蚺",
- "rang": "让壤攘嚷瓤穰禳",
- "rao": "绕扰饶娆桡荛",
- "reng": "仍扔",
- "ri": "日",
- "rou": "肉柔揉糅鞣蹂",
- "ruan": "软阮朊",
- "run": "润闰",
- "sa": "萨洒撒飒卅仨脎",
- "suo": "所些索缩锁莎梭琐嗦唆唢娑蓑羧挲桫嗍睃",
- "sai": "思赛塞腮噻鳃",
- "shui": "说水税谁睡氵",
- "sang": "桑丧嗓搡颡磉",
- "sen": "森",
- "seng": "僧",
- "shai": "筛晒",
- "shang": "上商尚伤赏汤裳墒晌垧觞殇熵绱",
- "xing": "行省星腥猩惺兴刑型形邢饧醒幸杏性姓陉荇荥擤悻硎",
- "shou": "收手受首售授守寿瘦兽狩绶艏扌",
- "shuo": "说数硕烁朔铄妁槊蒴搠",
- "su": "速素苏诉缩塑肃俗宿粟溯酥夙愫簌稣僳谡涑蔌嗉觫",
- "shua": "刷耍唰",
- "shuan": "栓拴涮闩",
- "shun": "顺瞬舜吮",
- "song": "送松宋讼颂耸诵嵩淞怂悚崧凇忪竦菘",
- "sou": "艘搜擞嗽嗖叟馊薮飕嗾溲锼螋瞍",
- "sun": "损孙笋荪榫隼狲飧",
- "teng": "腾疼藤滕誊",
- "tie": "铁贴帖餮萜",
- "tu": "土突图途徒涂吐屠兔秃凸荼钍菟堍酴",
- "wai": "外歪崴",
- "wang": "王望往网忘亡旺汪枉妄惘罔辋魍",
- "weng": "翁嗡瓮蓊蕹",
- "zhua": "抓挝爪",
- "yang": "样养央阳洋扬杨羊详氧仰秧痒漾疡泱殃恙鸯徉佯怏炀烊鞅蛘",
- "xiong": "雄兄熊胸凶匈汹芎",
- "yo": "哟唷",
- "yong": "用永拥勇涌泳庸俑踊佣咏雍甬镛臃邕蛹恿慵壅痈鳙墉饔喁",
- "za": "杂扎咱砸咋匝咂拶",
- "zai": "在再灾载栽仔宰哉崽甾",
- "zao": "造早遭枣噪灶燥糟凿躁藻皂澡蚤唣",
- "zei": "贼",
- "zen": "怎谮",
- "zeng": "增曾综赠憎锃甑罾缯",
- "zhei": "这",
- "zou": "走邹奏揍诹驺陬楱鄹鲰",
- "zhuai": "转拽",
- "zun": "尊遵鳟樽撙",
- "dia": "嗲",
- "nou": "耨"
- };
- exports.pinyin_dict_notone = pinyin_dict_notone;
- var pinyinUtil = {
- //加载字典
- parseDict: function parseDict() {
- dict.firstletter = pinyin_dict_firstletter;
- dict.notone = {};
- dict.py2hz = pinyin_dict_notone;
- for (var i in pinyin_dict_notone) {
- var temp = pinyin_dict_notone[i];
- for (var j = 0, len = temp.length; j < len; j++) {
- dict.notone[temp[j]] = i;
- }
- }
- },
- //根据汉字获取拼音,如果不是汉字直接返回原字符
- getPinyin: function getPinyin(chinese, splitter, withtone, polyphone) {
- if (!chinese || /^ +$/g.test(chinese)) return '';
- splitter = splitter == undefined ? '' : splitter;
- withtone = withtone == undefined ? false : withtone;
- polyphone = polyphone == undefined ? false : polyphone;
- var result = [];
- if (dict.withtone) {
- // 优先使用带声调的字典文件
- for (var i = 0, len = chinese.length; i < len; i++) {
- var pinyin = dict.withtone[chinese[i]];
- if (pinyin) {
- if (!polyphone) pinyin = pinyin.replace(/ .*$/g, ''); // 如果不需要多音字
- if (!withtone) pinyin = this.removeTone(pinyin); // 如果不需要声调
- }
- result.push(pinyin || chinese[i]);
- }
- } else if (dict.notone) {
- // 使用没有声调的字典文件
- if (withtone) console.warn('pinyin_dict_notone 字典文件不支持声调!');
- if (polyphone) console.warn('pinyin_dict_notone 字典文件不支持多音字!');
- for (var i = 0, len = chinese.length; i < len; i++) {
- var temp = chinese.charAt(i);
- if (dict.notone[temp]) dict.notone[temp] = dict.notone[temp].substring(0, 1).toUpperCase() + dict.notone[temp].substring(1);
- result.push(dict.notone[temp] || temp);
- }
- } else {
- throw '抱歉,未找到合适的拼音字典文件!';
- }
- if (!polyphone) return result.join(splitter);else {
- if (window.pinyin_dict_polyphone) return parsePolyphone(chinese, result, splitter, withtone);else return handlePolyphone(result, ' ', splitter);
- }
- },
- //获取汉字的拼音首字母
- getFirstLetter: function getFirstLetter(str, polyphone) {
- polyphone = polyphone == undefined ? false : polyphone;
- if (!str || /^ +$/g.test(str)) return '';
- if (dict.firstletter)
- // 使用首字母字典文件
- {
- var result = [];
- for (var i = 0; i < str.length; i++) {
- var unicode = str.charCodeAt(i);
- var ch = str.charAt(i);
- if (unicode >= 19968 && unicode <= 40869) {
- ch = dict.firstletter.all.charAt(unicode - 19968);
- if (polyphone) ch = dict.firstletter.polyphone[unicode] || ch;
- }
- result.push(ch);
- }
- if (!polyphone) return result.join(''); // 如果不用管多音字,直接将数组拼接成字符串
- else return handlePolyphone(result, '', ''); // 处理多音字,此时的result类似于:['D', 'ZC', 'F']
- } else {
- var py = this.getPinyin(str, ' ', false, polyphone);
- py = py instanceof Array ? py : [py];
- var result = [];
- for (var i = 0; i < py.length; i++) {
- result.push(py[i].replace(/(^| )(\w)\w*/g, function (m, $1, $2) {
- return $2.toUpperCase();
- }));
- }
- if (!polyphone) return result[0];else return simpleUnique(result);
- }
- },
- //拼音转汉字,只支持单个汉字,返回所有匹配的汉字组合
- getHanzi: function getHanzi(pinyin) {
- if (!dict.py2hz) {
- throw '抱歉,未找到合适的拼音字典文件!';
- }
- return dict.py2hz[pinyin] || '';
- },
- //去除拼音中的声调,比如将 xiǎo míng tóng xué 转换成 xiao ming tong xue
- removeTone: function removeTone(pinyin) {
- var toneMap = {
- "ā": "a1",
- "á": "a2",
- "ǎ": "a3",
- "à": "a4",
- "ō": "o1",
- "ó": "o2",
- "ǒ": "o3",
- "ò": "o4",
- "ē": "e1",
- "é": "e2",
- "ě": "e3",
- "è": "e4",
- "ī": "i1",
- "í": "i2",
- "ǐ": "i3",
- "ì": "i4",
- "ū": "u1",
- "ú": "u2",
- "ǔ": "u3",
- "ù": "u4",
- "ü": "v0",
- "ǖ": "v1",
- "ǘ": "v2",
- "ǚ": "v3",
- "ǜ": "v4",
- "ń": "n2",
- "ň": "n3",
- "": "m2"
- };
- return pinyin.replace(/[āáǎàōóǒòēéěèīíǐìūúǔùüǖǘǚǜńň]/g, function (m) {
- return toneMap[m][0];
- });
- }
- };
- //处理多音字, 将类似['D', 'ZC', 'F'] 转换成['DZF', 'DCF']
- exports.pinyinUtil = pinyinUtil;
- function handlePolyphone(array, splitter, joinChar) {
- splitter = splitter || '';
- var result = [''],
- temp = [];
- for (var i = 0; i < array.length; i++) {
- temp = [];
- var t = array[i].split(splitter);
- for (var j = 0; j < t.length; j++) {
- for (var k = 0; k < result.length; k++) {
- temp.push(result[k] + (result[k] ? joinChar : '') + t[j]);
- }
- }
- result = temp;
- }
- return simpleUnique(result);
- }
- //根据词库找出多音字正确的读音
- function parsePolyphone(chinese, result, splitter, withtone) {
- var poly = window.pinyin_dict_polyphone;
- var max = 7; // 最多只考虑7个汉字的多音字词,虽然词库里面有10个字的,但是数量非常少,为了整体效率暂时忽略之
- var temp = poly[chinese];
- if (temp)
- // 如果直接找到了结果
- {
- temp = temp.split(' ');
- for (var i = 0; i < temp.length; i++) {
- result[i] = temp[i] || result[i];
- if (!withtone) result[i] = pinyinUtil.removeTone(result[i]);
- }
- return result.join(splitter);
- }
- for (var i = 0; i < chinese.length; i++) {
- temp = '';
- for (var j = 0; j < max && i + j < chinese.length; j++) {
- if (!/^[\u2E80-\u9FFF]+$/.test(chinese[i + j])) break; // 如果碰到非汉字直接停止本次查找
- temp += chinese[i + j];
- var res = poly[temp];
- if (res)
- // 如果找到了多音字词语
- {
- res = res.split(' ');
- for (var k = 0; k <= j; k++) {
- if (res[k]) result[i + k] = withtone ? res[k] : pinyinUtil.removeTone(res[k]);
- }
- break;
- }
- }
- }
- // 最后这一步是为了防止出现词库里面也没有包含的多音字词语
- for (var i = 0; i < result.length; i++) {
- result[i] = result[i].replace(/ .*$/g, '');
- }
- return result.join(splitter);
- }
- // 数组去重
- function simpleUnique(array) {
- var result = [];
- var hash = {};
- for (var i = 0; i < array.length; i++) {
- var key = (0, _typeof2.default)(array[i]) + array[i];
- if (!hash[key]) {
- result.push(array[i]);
- hash[key] = true;
- }
- }
- return result;
- }
- pinyinUtil.parseDict();
- pinyinUtil.dict = dict;
- module.exports = {
- pinyinUtil: pinyinUtil
- };
- /***/ }),
- /***/ 101:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/indexAnchor.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:13:15
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
- */
- var _default = {
- // indexAnchor 组件
- indexAnchor: {
- text: '',
- color: '#606266',
- size: 14,
- bgColor: '#dedede',
- height: 32
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1012:
- /*!********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-radio-group/props.js ***!
- \********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 绑定的值
- value: {
- type: [String, Number, Boolean],
- default: uni.$u.props.radioGroup.value
- },
- // 是否禁用全部radio
- disabled: {
- type: Boolean,
- default: uni.$u.props.radioGroup.disabled
- },
- // 形状,circle-圆形,square-方形
- shape: {
- type: String,
- default: uni.$u.props.radioGroup.shape
- },
- // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
- activeColor: {
- type: String,
- default: uni.$u.props.radioGroup.activeColor
- },
- // 未选中的颜色
- inactiveColor: {
- type: String,
- default: uni.$u.props.radioGroup.inactiveColor
- },
- // 标识符
- name: {
- type: String,
- default: uni.$u.props.radioGroup.name
- },
- // 整个组件的尺寸,默认px
- size: {
- type: [String, Number],
- default: uni.$u.props.radioGroup.size
- },
- // 布局方式,row-横向,column-纵向
- placement: {
- type: String,
- default: uni.$u.props.radioGroup.placement
- },
- // label的文本
- label: {
- type: [String],
- default: uni.$u.props.radioGroup.label
- },
- // label的颜色 (默认 '#303133' )
- labelColor: {
- type: [String],
- default: uni.$u.props.radioGroup.labelColor
- },
- // label的字体大小,px单位
- labelSize: {
- type: [String, Number],
- default: uni.$u.props.radioGroup.labelSize
- },
- // 是否禁止点击文本操作checkbox(默认 false )
- labelDisabled: {
- type: Boolean,
- default: uni.$u.props.radioGroup.labelDisabled
- },
- // 图标颜色
- iconColor: {
- type: String,
- default: uni.$u.props.radioGroup.iconColor
- },
- // 图标的大小,单位px
- iconSize: {
- type: [String, Number],
- default: uni.$u.props.radioGroup.iconSize
- },
- // 竖向配列时,是否显示下划线
- borderBottom: {
- type: Boolean,
- default: uni.$u.props.radioGroup.borderBottom
- },
- // 图标与文字的对齐方式
- iconPlacement: {
- type: String,
- default: uni.$u.props.radio.iconPlacement
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 102:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/indexList.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:13:35
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
- */
- var _default = {
- // indexList 组件
- indexList: {
- inactiveColor: '#606266',
- activeColor: '#5677fc',
- indexList: function indexList() {
- return [];
- },
- sticky: true,
- customNavHeight: 0
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1020:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-radio/props.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // radio的名称
- name: {
- type: [String, Number, Boolean],
- default: uni.$u.props.radio.name
- },
- // 形状,square为方形,circle为圆型
- shape: {
- type: String,
- default: uni.$u.props.radio.shape
- },
- // 是否禁用
- disabled: {
- type: [String, Boolean],
- default: uni.$u.props.radio.disabled
- },
- // 是否禁止点击提示语选中单选框
- labelDisabled: {
- type: [String, Boolean],
- default: uni.$u.props.radio.labelDisabled
- },
- // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
- activeColor: {
- type: String,
- default: uni.$u.props.radio.activeColor
- },
- // 未选中的颜色
- inactiveColor: {
- type: String,
- default: uni.$u.props.radio.inactiveColor
- },
- // 图标的大小,单位px
- iconSize: {
- type: [String, Number],
- default: uni.$u.props.radio.iconSize
- },
- // label的字体大小,px单位
- labelSize: {
- type: [String, Number],
- default: uni.$u.props.radio.labelSize
- },
- // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
- label: {
- type: [String, Number],
- default: uni.$u.props.radio.label
- },
- // 整体的大小
- size: {
- type: [String, Number],
- default: uni.$u.props.radio.size
- },
- // 图标颜色
- color: {
- type: String,
- default: uni.$u.props.radio.color
- },
- // label的颜色
- labelColor: {
- type: String,
- default: uni.$u.props.radio.labelColor
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 1028:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-search/props.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 搜索框形状,round-圆形,square-方形
- shape: {
- type: String,
- default: uni.$u.props.search.shape
- },
- // 搜索框背景色,默认值#f2f2f2
- bgColor: {
- type: String,
- default: uni.$u.props.search.bgColor
- },
- // 占位提示文字
- placeholder: {
- type: String,
- default: uni.$u.props.search.placeholder
- },
- // 是否启用清除控件
- clearabled: {
- type: Boolean,
- default: uni.$u.props.search.clearabled
- },
- // 是否自动聚焦
- focus: {
- type: Boolean,
- default: uni.$u.props.search.focus
- },
- // 是否在搜索框右侧显示取消按钮
- showAction: {
- type: Boolean,
- default: uni.$u.props.search.showAction
- },
- // 右边控件的样式
- actionStyle: {
- type: Object,
- default: uni.$u.props.search.actionStyle
- },
- // 取消按钮文字
- actionText: {
- type: String,
- default: uni.$u.props.search.actionText
- },
- // 输入框内容对齐方式,可选值为 left|center|right
- inputAlign: {
- type: String,
- default: uni.$u.props.search.inputAlign
- },
- // input输入框的样式,可以定义文字颜色,大小等,对象形式
- inputStyle: {
- type: Object,
- default: uni.$u.props.search.inputStyle
- },
- // 是否启用输入框
- disabled: {
- type: Boolean,
- default: uni.$u.props.search.disabled
- },
- // 边框颜色
- borderColor: {
- type: String,
- default: uni.$u.props.search.borderColor
- },
- // 搜索图标的颜色,默认同输入框字体颜色
- searchIconColor: {
- type: String,
- default: uni.$u.props.search.searchIconColor
- },
- // 输入框字体颜色
- color: {
- type: String,
- default: uni.$u.props.search.color
- },
- // placeholder的颜色
- placeholderColor: {
- type: String,
- default: uni.$u.props.search.placeholderColor
- },
- // 左边输入框的图标,可以为uView图标名称或图片路径
- searchIcon: {
- type: String,
- default: uni.$u.props.search.searchIcon
- },
- searchIconSize: {
- type: [Number, String],
- default: uni.$u.props.search.searchIconSize
- },
- // 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
- margin: {
- type: String,
- default: uni.$u.props.search.margin
- },
- // 开启showAction时,是否在input获取焦点时才显示
- animation: {
- type: Boolean,
- default: uni.$u.props.search.animation
- },
- // 输入框的初始化内容
- value: {
- type: String,
- default: uni.$u.props.search.value
- },
- // 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
- maxlength: {
- type: [String, Number],
- default: uni.$u.props.search.maxlength
- },
- // 搜索框高度,单位px
- height: {
- type: [String, Number],
- default: uni.$u.props.search.height
- },
- // 搜索框左侧文本
- label: {
- type: [String, Number, null],
- default: uni.$u.props.search.label
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 103:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/input.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:13:55
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
- */
- var _default = {
- // index 组件
- input: {
- value: '',
- type: 'text',
- fixed: false,
- disabled: false,
- disabledColor: '#f5f7fa',
- clearable: false,
- password: false,
- maxlength: -1,
- placeholder: null,
- placeholderClass: 'input-placeholder',
- placeholderStyle: 'color: #c0c4cc',
- showWordLimit: false,
- confirmType: 'done',
- confirmHold: false,
- holdKeyboard: false,
- focus: false,
- autoBlur: false,
- disableDefaultPadding: false,
- cursor: -1,
- cursorSpacing: 30,
- selectionStart: -1,
- selectionEnd: -1,
- adjustPosition: true,
- inputAlign: 'left',
- fontSize: '15px',
- color: '#303133',
- prefixIcon: '',
- prefixIconStyle: '',
- suffixIcon: '',
- suffixIconStyle: '',
- border: 'surround',
- readonly: false,
- shape: 'square',
- formatter: null
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 104:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/keyboard.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:07:49
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
- */
- var _default = {
- // 键盘组件
- keyboard: {
- mode: 'number',
- dotDisabled: false,
- tooltip: true,
- showTips: true,
- tips: '',
- showCancel: true,
- showConfirm: true,
- random: false,
- safeAreaInsetBottom: true,
- closeOnClickOverlay: true,
- show: false,
- overlay: true,
- zIndex: 10075,
- cancelText: '取消',
- confirmText: '确定',
- autoChange: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 105:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/line.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:04:49
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
- */
- var _default = {
- // line组件
- line: {
- color: '#d6d7d9',
- length: '100%',
- direction: 'row',
- hairline: true,
- margin: 0,
- dashed: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1050:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-input/props.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 输入的值
- value: {
- type: [String, Number],
- default: uni.$u.props.input.value
- },
- // 输入框类型
- // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
- // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
- // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
- // text-文本输入键盘
- type: {
- type: String,
- default: uni.$u.props.input.type
- },
- // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
- // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
- fixed: {
- type: Boolean,
- default: uni.$u.props.input.fixed
- },
- // 是否禁用输入框
- disabled: {
- type: Boolean,
- default: uni.$u.props.input.disabled
- },
- // 禁用状态时的背景色
- disabledColor: {
- type: String,
- default: uni.$u.props.input.disabledColor
- },
- // 是否显示清除控件
- clearable: {
- type: Boolean,
- default: uni.$u.props.input.clearable
- },
- // 是否密码类型
- password: {
- type: Boolean,
- default: uni.$u.props.input.password
- },
- // 最大输入长度,设置为 -1 的时候不限制最大长度
- maxlength: {
- type: [String, Number],
- default: uni.$u.props.input.maxlength
- },
- // 输入框为空时的占位符
- placeholder: {
- type: String,
- default: uni.$u.props.input.placeholder
- },
- // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
- placeholderClass: {
- type: String,
- default: uni.$u.props.input.placeholderClass
- },
- // 指定placeholder的样式
- placeholderStyle: {
- type: [String, Object],
- default: uni.$u.props.input.placeholderStyle
- },
- // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
- showWordLimit: {
- type: Boolean,
- default: uni.$u.props.input.showWordLimit
- },
- // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
- // https://uniapp.dcloud.io/component/input
- // https://uniapp.dcloud.io/component/textarea
- confirmType: {
- type: String,
- default: uni.$u.props.input.confirmType
- },
- // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
- confirmHold: {
- type: Boolean,
- default: uni.$u.props.input.confirmHold
- },
- // focus时,点击页面的时候不收起键盘,微信小程序有效
- holdKeyboard: {
- type: Boolean,
- default: uni.$u.props.input.holdKeyboard
- },
- // 自动获取焦点
- // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
- focus: {
- type: Boolean,
- default: uni.$u.props.input.focus
- },
- // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
- autoBlur: {
- type: Boolean,
- default: uni.$u.props.input.autoBlur
- },
- // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
- disableDefaultPadding: {
- type: Boolean,
- default: uni.$u.props.input.disableDefaultPadding
- },
- // 指定focus时光标的位置
- cursor: {
- type: [String, Number],
- default: uni.$u.props.input.cursor
- },
- // 输入框聚焦时底部与键盘的距离
- cursorSpacing: {
- type: [String, Number],
- default: uni.$u.props.input.cursorSpacing
- },
- // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
- selectionStart: {
- type: [String, Number],
- default: uni.$u.props.input.selectionStart
- },
- // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
- selectionEnd: {
- type: [String, Number],
- default: uni.$u.props.input.selectionEnd
- },
- // 键盘弹起时,是否自动上推页面
- adjustPosition: {
- type: Boolean,
- default: uni.$u.props.input.adjustPosition
- },
- // 输入框内容对齐方式,可选值为:left|center|right
- inputAlign: {
- type: String,
- default: uni.$u.props.input.inputAlign
- },
- // 输入框字体的大小
- fontSize: {
- type: [String, Number],
- default: uni.$u.props.input.fontSize
- },
- // 输入框字体颜色
- color: {
- type: String,
- default: uni.$u.props.input.color
- },
- // 输入框前置图标
- prefixIcon: {
- type: String,
- default: uni.$u.props.input.prefixIcon
- },
- // 前置图标样式,对象或字符串
- prefixIconStyle: {
- type: [String, Object],
- default: uni.$u.props.input.prefixIconStyle
- },
- // 输入框后置图标
- suffixIcon: {
- type: String,
- default: uni.$u.props.input.suffixIcon
- },
- // 后置图标样式,对象或字符串
- suffixIconStyle: {
- type: [String, Object],
- default: uni.$u.props.input.suffixIconStyle
- },
- // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
- border: {
- type: String,
- default: uni.$u.props.input.border
- },
- // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
- readonly: {
- type: Boolean,
- default: uni.$u.props.input.readonly
- },
- // 输入框形状,circle-圆形,square-方形
- shape: {
- type: String,
- default: uni.$u.props.input.shape
- },
- // 用于处理或者过滤输入框内容的方法
- formatter: {
- type: [Function, null],
- default: uni.$u.props.input.formatter
- },
- // 是否忽略组件内对文本合成系统事件的处理
- ignoreCompositionEvent: {
- type: Boolean,
- default: true
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 1056:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-rate/props.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 用于v-model双向绑定选中的星星数量
- value: {
- type: [String, Number],
- default: uni.$u.props.rate.value
- },
- // 要显示的星星数量
- count: {
- type: [String, Number],
- default: uni.$u.props.rate.count
- },
- // 是否不可选中
- disabled: {
- type: Boolean,
- default: uni.$u.props.rate.disabled
- },
- // 是否只读
- readonly: {
- type: Boolean,
- default: uni.$u.props.rate.readonly
- },
- // 星星的大小,单位px
- size: {
- type: [String, Number],
- default: uni.$u.props.rate.size
- },
- // 未选中时的颜色
- inactiveColor: {
- type: String,
- default: uni.$u.props.rate.inactiveColor
- },
- // 选中的颜色
- activeColor: {
- type: String,
- default: uni.$u.props.rate.activeColor
- },
- // 星星之间的间距,单位px
- gutter: {
- type: [String, Number],
- default: uni.$u.props.rate.gutter
- },
- // 最少能选择的星星个数
- minCount: {
- type: [String, Number],
- default: uni.$u.props.rate.minCount
- },
- // 是否允许半星
- allowHalf: {
- type: Boolean,
- default: uni.$u.props.rate.allowHalf
- },
- // 选中时的图标(星星)
- activeIcon: {
- type: String,
- default: uni.$u.props.rate.activeIcon
- },
- // 未选中时的图标(星星)
- inactiveIcon: {
- type: String,
- default: uni.$u.props.rate.inactiveIcon
- },
- // 是否可以通过滑动手势选择评分
- touchable: {
- type: Boolean,
- default: uni.$u.props.rate.touchable
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 106:
- /*!********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/lineProgress.js ***!
- \********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:14:11
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
- */
- var _default = {
- // lineProgress 组件
- lineProgress: {
- activeColor: '#19be6b',
- inactiveColor: '#ececec',
- percentage: 0,
- showText: true,
- height: 12
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 107:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/link.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:45:36
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
- */
- var color = _config.default.color;
- var _default = {
- // link超链接组件props参数
- link: {
- color: color['u-primary'],
- fontSize: 15,
- underLine: false,
- href: '',
- mpTips: '链接已复制,请在浏览器打开',
- lineColor: '',
- text: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1071:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-form/props.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 当前form的需要验证字段的集合
- model: {
- type: Object,
- default: uni.$u.props.form.model
- },
- // 验证规则
- rules: {
- type: [Object, Function, Array],
- default: uni.$u.props.form.rules
- },
- // 有错误时的提示方式,message-提示信息,toast-进行toast提示
- // border-bottom-下边框呈现红色,none-无提示
- errorType: {
- type: String,
- default: uni.$u.props.form.errorType
- },
- // 是否显示表单域的下划线边框
- borderBottom: {
- type: Boolean,
- default: uni.$u.props.form.borderBottom
- },
- // label的位置,left-左边,top-上边
- labelPosition: {
- type: String,
- default: uni.$u.props.form.labelPosition
- },
- // label的宽度,单位px
- labelWidth: {
- type: [String, Number],
- default: uni.$u.props.form.labelWidth
- },
- // lable字体的对齐方式
- labelAlign: {
- type: String,
- default: uni.$u.props.form.labelAlign
- },
- // lable的样式,对象形式
- labelStyle: {
- type: Object,
- default: uni.$u.props.form.labelStyle
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 1077:
- /*!******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-form-item/props.js ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // input的label提示语
- label: {
- type: String,
- default: uni.$u.props.formItem.label
- },
- // 绑定的值
- prop: {
- type: String,
- default: uni.$u.props.formItem.prop
- },
- // 是否显示表单域的下划线边框
- borderBottom: {
- type: [String, Boolean],
- default: uni.$u.props.formItem.borderBottom
- },
- // label的位置,left-左边,top-上边
- labelPosition: {
- type: String,
- default: uni.$u.props.formItem.labelPosition
- },
- // label的宽度,单位px
- labelWidth: {
- type: [String, Number],
- default: uni.$u.props.formItem.labelWidth
- },
- // 右侧图标
- rightIcon: {
- type: String,
- default: uni.$u.props.formItem.rightIcon
- },
- // 左侧图标
- leftIcon: {
- type: String,
- default: uni.$u.props.formItem.leftIcon
- },
- // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
- required: {
- type: Boolean,
- default: uni.$u.props.formItem.required
- },
- leftIconStyle: {
- type: [String, Object],
- default: uni.$u.props.formItem.leftIconStyle
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 108:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/list.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:14:53
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
- */
- var _default = {
- // list 组件
- list: {
- showScrollbar: false,
- lowerThreshold: 50,
- upperThreshold: 0,
- scrollTop: 0,
- offsetAccuracy: 10,
- enableFlex: false,
- pagingEnabled: false,
- scrollable: true,
- scrollIntoView: '',
- scrollWithAnimation: false,
- enableBackToTop: false,
- height: 0,
- width: 0,
- preLoadScreen: 1
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 109:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/listItem.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:15:40
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
- */
- var _default = {
- // listItem 组件
- listItem: {
- anchor: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 11:
- /*!***************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
- function _defineProperty(obj, key, value) {
- key = toPropertyKey(key);
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 110:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/loadingIcon.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:45:47
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
- */
- var color = _config.default.color;
- var _default = {
- // loading-icon加载中图标组件
- loadingIcon: {
- show: true,
- color: color['u-tips-color'],
- textColor: color['u-tips-color'],
- vertical: false,
- mode: 'spinner',
- size: 24,
- textSize: 15,
- text: '',
- timingFunction: 'ease-in-out',
- duration: 1200,
- inactiveColor: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 111:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/loadingPage.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:00:23
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
- */
- var _default = {
- // loading-page组件
- loadingPage: {
- loadingText: '正在加载',
- image: '',
- loadingMode: 'circle',
- loading: false,
- bgColor: '#ffffff',
- color: '#C8C8C8',
- fontSize: 19,
- iconSize: 28,
- loadingColor: '#C8C8C8'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 112:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/loadmore.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:15:26
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
- */
- var _default = {
- // loadmore 组件
- loadmore: {
- status: 'loadmore',
- bgColor: 'transparent',
- icon: true,
- fontSize: 14,
- iconSize: 17,
- color: '#606266',
- loadingIcon: 'spinner',
- loadmoreText: '加载更多',
- loadingText: '正在加载...',
- nomoreText: '没有更多了',
- isDot: false,
- iconColor: '#b7b7b7',
- marginTop: 10,
- marginBottom: 10,
- height: 'auto',
- line: false,
- lineColor: '#E6E8EB',
- dashed: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1120:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-transition/props.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 是否展示组件
- show: {
- type: Boolean,
- default: uni.$u.props.transition.show
- },
- // 使用的动画模式
- mode: {
- type: String,
- default: uni.$u.props.transition.mode
- },
- // 动画的执行时间,单位ms
- duration: {
- type: [String, Number],
- default: uni.$u.props.transition.duration
- },
- // 使用的动画过渡函数
- timingFunction: {
- type: String,
- default: uni.$u.props.transition.timingFunction
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 1121:
- /*!************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-transition/transition.js ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
- var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
- var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 1122));
- // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
- var nextTick = function nextTick() {
- return new Promise(function (resolve) {
- return setTimeout(resolve, 1000 / 50);
- });
- };
- // nvue动画模块实现细节抽离在外部文件
- // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
- var getClassNames = function getClassNames(name) {
- return {
- enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
- 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
- leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
- 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
- };
- };
- var _default = {
- methods: {
- // 组件被点击发出事件
- clickHandler: function clickHandler() {
- this.$emit('click');
- },
- // vue版本的组件进场处理
- vueEnter: function vueEnter() {
- var _this = this;
- // 动画进入时的类名
- var classNames = getClassNames(this.mode);
- // 定义状态和发出动画进入前事件
- this.status = 'enter';
- this.$emit('beforeEnter');
- this.inited = true;
- this.display = true;
- this.classes = classNames.enter;
- this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
- return _regenerator.default.wrap(function _callee$(_context) {
- while (1) {
- switch (_context.prev = _context.next) {
- case 0:
- // 标识动画尚未结束
- _this.$emit('enter');
- _this.transitionEnded = false;
- // 组件动画进入后触发的事件
- _this.$emit('afterEnter');
- // 赋予组件enter-to类名
- _this.classes = classNames['enter-to'];
- case 4:
- case "end":
- return _context.stop();
- }
- }
- }, _callee);
- })));
- },
- // 动画离场处理
- vueLeave: function vueLeave() {
- var _this2 = this;
- // 如果不是展示状态,无需执行逻辑
- if (!this.display) return;
- var classNames = getClassNames(this.mode);
- // 标记离开状态和发出事件
- this.status = 'leave';
- this.$emit('beforeLeave');
- // 获得类名
- this.classes = classNames.leave;
- this.$nextTick(function () {
- // 动画正在离场的状态
- _this2.transitionEnded = false;
- _this2.$emit('leave');
- // 组件执行动画,到了执行的执行时间后,执行一些额外处理
- setTimeout(_this2.onTransitionEnd, _this2.duration);
- _this2.classes = classNames['leave-to'];
- });
- },
- // 完成过渡后触发
- onTransitionEnd: function onTransitionEnd() {
- // 如果已经是结束的状态,无需再处理
- if (this.transitionEnded) return;
- this.transitionEnded = true;
- // 发出组件动画执行后的事件
- this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
- if (!this.show && this.display) {
- this.display = false;
- this.inited = false;
- }
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1122:
- /*!**************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-transition/nvue.ani-map.js ***!
- \**************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- fade: {
- enter: {
- opacity: 0
- },
- 'enter-to': {
- opacity: 1
- },
- leave: {
- opacity: 1
- },
- 'leave-to': {
- opacity: 0
- }
- },
- 'fade-up': {
- enter: {
- opacity: 0,
- transform: 'translateY(100%)'
- },
- 'enter-to': {
- opacity: 1,
- transform: 'translateY(0)'
- },
- leave: {
- opacity: 1,
- transform: 'translateY(0)'
- },
- 'leave-to': {
- opacity: 0,
- transform: 'translateY(100%)'
- }
- },
- 'fade-down': {
- enter: {
- opacity: 0,
- transform: 'translateY(-100%)'
- },
- 'enter-to': {
- opacity: 1,
- transform: 'translateY(0)'
- },
- leave: {
- opacity: 1,
- transform: 'translateY(0)'
- },
- 'leave-to': {
- opacity: 0,
- transform: 'translateY(-100%)'
- }
- },
- 'fade-left': {
- enter: {
- opacity: 0,
- transform: 'translateX(-100%)'
- },
- 'enter-to': {
- opacity: 1,
- transform: 'translateY(0)'
- },
- leave: {
- opacity: 1,
- transform: 'translateY(0)'
- },
- 'leave-to': {
- opacity: 0,
- transform: 'translateX(-100%)'
- }
- },
- 'fade-right': {
- enter: {
- opacity: 0,
- transform: 'translateX(100%)'
- },
- 'enter-to': {
- opacity: 1,
- transform: 'translateY(0)'
- },
- leave: {
- opacity: 1,
- transform: 'translateY(0)'
- },
- 'leave-to': {
- opacity: 0,
- transform: 'translateX(100%)'
- }
- },
- 'slide-up': {
- enter: {
- transform: 'translateY(100%)'
- },
- 'enter-to': {
- transform: 'translateY(0)'
- },
- leave: {
- transform: 'translateY(0)'
- },
- 'leave-to': {
- transform: 'translateY(100%)'
- }
- },
- 'slide-down': {
- enter: {
- transform: 'translateY(-100%)'
- },
- 'enter-to': {
- transform: 'translateY(0)'
- },
- leave: {
- transform: 'translateY(0)'
- },
- 'leave-to': {
- transform: 'translateY(-100%)'
- }
- },
- 'slide-left': {
- enter: {
- transform: 'translateX(-100%)'
- },
- 'enter-to': {
- transform: 'translateY(0)'
- },
- leave: {
- transform: 'translateY(0)'
- },
- 'leave-to': {
- transform: 'translateX(-100%)'
- }
- },
- 'slide-right': {
- enter: {
- transform: 'translateX(100%)'
- },
- 'enter-to': {
- transform: 'translateY(0)'
- },
- leave: {
- transform: 'translateY(0)'
- },
- 'leave-to': {
- transform: 'translateX(100%)'
- }
- },
- zoom: {
- enter: {
- transform: 'scale(0.95)'
- },
- 'enter-to': {
- transform: 'scale(1)'
- },
- leave: {
- transform: 'scale(1)'
- },
- 'leave-to': {
- transform: 'scale(0.95)'
- }
- },
- 'fade-zoom': {
- enter: {
- opacity: 0,
- transform: 'scale(0.95)'
- },
- 'enter-to': {
- opacity: 1,
- transform: 'scale(1)'
- },
- leave: {
- opacity: 1,
- transform: 'scale(1)'
- },
- 'leave-to': {
- opacity: 0,
- transform: 'scale(0.95)'
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 113:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/modal.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:15:59
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
- */
- var _default = {
- // modal 组件
- modal: {
- show: false,
- title: '',
- content: '',
- confirmText: '确认',
- cancelText: '取消',
- showConfirmButton: true,
- showCancelButton: false,
- confirmColor: '#2979ff',
- cancelColor: '#606266',
- buttonReverse: false,
- zoom: true,
- asyncClose: false,
- closeOnClickOverlay: false,
- negativeTop: 0,
- width: '650rpx',
- confirmButtonShape: '',
- duration: 400
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 114:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/navbar.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 115));
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:16:18
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
- */
- var _default = {
- // navbar 组件
- navbar: {
- safeAreaInsetTop: true,
- placeholder: false,
- fixed: true,
- border: false,
- leftIcon: 'arrow-left',
- leftText: '',
- rightText: '',
- rightIcon: '',
- title: '',
- bgColor: '#ffffff',
- titleWidth: '400rpx',
- height: '44px',
- leftIconSize: 20,
- leftIconColor: _color.default.mainColor,
- autoBack: false,
- titleStyle: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1144:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-textarea/props.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 输入框的内容
- value: {
- type: [String, Number],
- default: uni.$u.props.textarea.value
- },
- // 输入框为空时占位符
- placeholder: {
- type: [String, Number],
- default: uni.$u.props.textarea.placeholder
- },
- // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
- placeholderClass: {
- type: String,
- default: uni.$u.props.input.placeholderClass
- },
- // 指定placeholder的样式
- placeholderStyle: {
- type: [String, Object],
- default: uni.$u.props.input.placeholderStyle
- },
- // 输入框高度
- height: {
- type: [String, Number],
- default: uni.$u.props.textarea.height
- },
- // 设置键盘右下角按钮的文字,仅微信小程序,App-vue和H5有效
- confirmType: {
- type: String,
- default: uni.$u.props.textarea.confirmType
- },
- // 是否禁用
- disabled: {
- type: Boolean,
- default: uni.$u.props.textarea.disabled
- },
- // 是否显示统计字数
- count: {
- type: Boolean,
- default: uni.$u.props.textarea.count
- },
- // 是否自动获取焦点,nvue不支持,H5取决于浏览器的实现
- focus: {
- type: Boolean,
- default: uni.$u.props.textarea.focus
- },
- // 是否自动增加高度
- autoHeight: {
- type: Boolean,
- default: uni.$u.props.textarea.autoHeight
- },
- // 如果textarea是在一个position:fixed的区域,需要显示指定属性fixed为true
- fixed: {
- type: Boolean,
- default: uni.$u.props.textarea.fixed
- },
- // 指定光标与键盘的距离
- cursorSpacing: {
- type: Number,
- default: uni.$u.props.textarea.cursorSpacing
- },
- // 指定focus时的光标位置
- cursor: {
- type: [String, Number],
- default: uni.$u.props.textarea.cursor
- },
- // 是否显示键盘上方带有”完成“按钮那一栏,
- showConfirmBar: {
- type: Boolean,
- default: uni.$u.props.textarea.showConfirmBar
- },
- // 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
- selectionStart: {
- type: Number,
- default: uni.$u.props.textarea.selectionStart
- },
- // 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
- selectionEnd: {
- type: Number,
- default: uni.$u.props.textarea.selectionEnd
- },
- // 键盘弹起时,是否自动上推页面
- adjustPosition: {
- type: Boolean,
- default: uni.$u.props.textarea.adjustPosition
- },
- // 是否去掉 iOS 下的默认内边距,只微信小程序有效
- disableDefaultPadding: {
- type: Boolean,
- default: uni.$u.props.textarea.disableDefaultPadding
- },
- // focus时,点击页面的时候不收起键盘,只微信小程序有效
- holdKeyboard: {
- type: Boolean,
- default: uni.$u.props.textarea.holdKeyboard
- },
- // 最大输入长度,设置为 -1 的时候不限制最大长度
- maxlength: {
- type: [String, Number],
- default: uni.$u.props.textarea.maxlength
- },
- // 边框类型,surround-四周边框,bottom-底部边框
- border: {
- type: String,
- default: uni.$u.props.textarea.border
- },
- // 用于处理或者过滤输入框内容的方法
- formatter: {
- type: [Function, null],
- default: uni.$u.props.textarea.formatter
- },
- // 是否忽略组件内对文本合成系统事件的处理
- ignoreCompositionEvent: {
- type: Boolean,
- default: true
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 115:
- /*!*******************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/color.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
- // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
- var color = {
- primary: '#3c9cff',
- info: '#909399',
- default: '#909399',
- warning: '#f9ae3d',
- error: '#f56c6c',
- success: '#5ac725',
- mainColor: '#303133',
- contentColor: '#606266',
- tipsColor: '#909399',
- lightColor: '#c0c4cc',
- borderColor: '#e4e7ed'
- };
- var _default = color;
- exports.default = _default;
- /***/ }),
- /***/ 1150:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-upload/utils.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni, wx) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.chooseFile = chooseFile;
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- 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; }
- 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; }
- function pickExclude(obj, keys) {
- // 某些情况下,type可能会为
- if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
- return {};
- }
- return Object.keys(obj).reduce(function (prev, key) {
- if (!keys.includes(key)) {
- prev[key] = obj[key];
- }
- return prev;
- }, {});
- }
- function formatImage(res) {
- return res.tempFiles.map(function (item) {
- return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
- type: 'image',
- url: item.path,
- thumb: item.path,
- size: item.size
- });
- });
- }
- function formatVideo(res) {
- return [_objectSpread(_objectSpread({}, pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
- type: 'video',
- url: res.tempFilePath,
- thumb: res.thumbTempFilePath,
- size: res.size
- })];
- }
- function formatMedia(res) {
- return res.tempFiles.map(function (item) {
- return _objectSpread(_objectSpread({}, pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
- type: res.type,
- url: item.tempFilePath,
- thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
- size: item.size
- });
- });
- }
- function formatFile(res) {
- return res.tempFiles.map(function (item) {
- return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
- url: item.path,
- size: item.size
- });
- });
- }
- function chooseFile(_ref) {
- var accept = _ref.accept,
- multiple = _ref.multiple,
- capture = _ref.capture,
- compressed = _ref.compressed,
- maxDuration = _ref.maxDuration,
- sizeType = _ref.sizeType,
- camera = _ref.camera,
- maxCount = _ref.maxCount;
- return new Promise(function (resolve, reject) {
- switch (accept) {
- case 'image':
- uni.chooseImage({
- count: multiple ? Math.min(maxCount, 9) : 1,
- sourceType: capture,
- sizeType: sizeType,
- success: function success(res) {
- return resolve(formatImage(res));
- },
- fail: reject
- });
- break;
- // 只有微信小程序才支持chooseMedia接口
- case 'media':
- wx.chooseMedia({
- count: multiple ? Math.min(maxCount, 9) : 1,
- sourceType: capture,
- maxDuration: maxDuration,
- sizeType: sizeType,
- camera: camera,
- success: function success(res) {
- return resolve(formatMedia(res));
- },
- fail: reject
- });
- break;
- case 'video':
- uni.chooseVideo({
- sourceType: capture,
- compressed: compressed,
- maxDuration: maxDuration,
- camera: camera,
- success: function success(res) {
- return resolve(formatVideo(res));
- },
- fail: reject
- });
- break;
- // 只有微信小程序才支持chooseMessageFile接口
- case 'file':
- wx.chooseMessageFile({
- count: multiple ? maxCount : 1,
- type: accept,
- success: function success(res) {
- return resolve(formatFile(res));
- },
- fail: reject
- });
- break;
- default:
- // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
- wx.chooseMessageFile({
- count: multiple ? maxCount : 1,
- type: 'all',
- success: function success(res) {
- return resolve(formatFile(res));
- },
- fail: reject
- });
- }
- });
- }
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
- /***/ }),
- /***/ 1151:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-upload/mixin.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- watch: {
- // 监听accept的变化,判断是否符合个平台要求
- // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
- accept: {
- immediate: true,
- handler: function handler(val) {}
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1152:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-upload/props.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 接受的文件类型, 可选值为all media image file video
- accept: {
- type: String,
- default: uni.$u.props.upload.accept
- },
- // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
- capture: {
- type: [String, Array],
- default: uni.$u.props.upload.capture
- },
- // 当accept为video时生效,是否压缩视频,默认为true
- compressed: {
- type: Boolean,
- default: uni.$u.props.upload.compressed
- },
- // 当accept为video时生效,可选值为back或front
- camera: {
- type: String,
- default: uni.$u.props.upload.camera
- },
- // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
- maxDuration: {
- type: Number,
- default: uni.$u.props.upload.maxDuration
- },
- // 上传区域的图标,只能内置图标
- uploadIcon: {
- type: String,
- default: uni.$u.props.upload.uploadIcon
- },
- // 上传区域的图标的颜色,默认
- uploadIconColor: {
- type: String,
- default: uni.$u.props.upload.uploadIconColor
- },
- // 是否开启文件读取前事件
- useBeforeRead: {
- type: Boolean,
- default: uni.$u.props.upload.useBeforeRead
- },
- // 读取后的处理函数
- afterRead: {
- type: Function,
- default: null
- },
- // 读取前的处理函数
- beforeRead: {
- type: Function,
- default: null
- },
- // 是否显示组件自带的图片预览功能
- previewFullImage: {
- type: Boolean,
- default: uni.$u.props.upload.previewFullImage
- },
- // 最大上传数量
- maxCount: {
- type: [String, Number],
- default: uni.$u.props.upload.maxCount
- },
- // 是否启用
- disabled: {
- type: Boolean,
- default: uni.$u.props.upload.disabled
- },
- // 预览上传的图片时的裁剪模式,和image组件mode属性一致
- imageMode: {
- type: String,
- default: uni.$u.props.upload.imageMode
- },
- // 标识符,可以在回调函数的第二项参数中获取
- name: {
- type: String,
- default: uni.$u.props.upload.name
- },
- // 所选的图片的尺寸, 可选值为original compressed
- sizeType: {
- type: Array,
- default: uni.$u.props.upload.sizeType
- },
- // 是否开启图片多选,部分安卓机型不支持
- multiple: {
- type: Boolean,
- default: uni.$u.props.upload.multiple
- },
- // 是否展示删除按钮
- deletable: {
- type: Boolean,
- default: uni.$u.props.upload.deletable
- },
- // 文件大小限制,单位为byte
- maxSize: {
- type: [String, Number],
- default: uni.$u.props.upload.maxSize
- },
- // 显示已上传的文件列表
- fileList: {
- type: Array,
- default: uni.$u.props.upload.fileList
- },
- // 上传区域的提示文字
- uploadText: {
- type: String,
- default: uni.$u.props.upload.uploadText
- },
- // 内部预览图片区域和选择图片按钮的区域宽度
- width: {
- type: [String, Number],
- default: uni.$u.props.upload.width
- },
- // 内部预览图片区域和选择图片按钮的区域高度
- height: {
- type: [String, Number],
- default: uni.$u.props.upload.height
- },
- // 是否在上传完成后展示预览图
- previewImage: {
- type: Boolean,
- default: uni.$u.props.upload.previewImage
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 116:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/noNetwork.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:16:39
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
- */
- var _default = {
- // noNetwork
- noNetwork: {
- tips: '哎呀,网络信号丢失',
- zIndex: '',
- 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'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 117:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/noticeBar.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:17:13
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
- */
- var _default = {
- // noticeBar
- noticeBar: {
- text: function text() {
- return [];
- },
- direction: 'row',
- step: false,
- icon: 'volume',
- mode: '',
- color: '#f9ae3d',
- bgColor: '#fdf6ec',
- speed: 80,
- fontSize: 14,
- duration: 2000,
- disableTouch: true,
- url: '',
- linkType: 'navigateTo'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 118:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/notify.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:10:21
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
- */
- var _default = {
- // notify组件
- notify: {
- top: 0,
- type: 'primary',
- color: '#ffffff',
- bgColor: '',
- message: '',
- duration: 3000,
- fontSize: 15,
- safeAreaInsetTop: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 119:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/numberBox.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:11:46
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
- */
- var _default = {
- // 步进器组件
- numberBox: {
- name: '',
- value: 0,
- min: 1,
- max: Number.MAX_SAFE_INTEGER,
- step: 1,
- integer: false,
- disabled: false,
- disabledInput: false,
- asyncChange: false,
- inputWidth: 35,
- showMinus: true,
- showPlus: true,
- decimalLength: null,
- longPress: true,
- color: '#323233',
- buttonSize: 30,
- bgColor: '#EBECEE',
- cursorSpacing: 100,
- disableMinus: false,
- disablePlus: false,
- iconStyle: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 12:
- /*!**************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
- var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
- function toPropertyKey(t) {
- var i = toPrimitive(t, "string");
- return "symbol" == _typeof(i) ? i : i + "";
- }
- module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 120:
- /*!**********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/numberKeyboard.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:08:05
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
- */
- var _default = {
- // 数字键盘
- numberKeyboard: {
- mode: 'number',
- dotDisabled: false,
- random: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 121:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/overlay.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:06:50
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
- */
- var _default = {
- // overlay组件
- overlay: {
- show: false,
- zIndex: 10070,
- duration: 300,
- opacity: 0.5
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 122:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/parse.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:17:33
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
- */
- var _default = {
- // parse
- parse: {
- copyLink: true,
- errorImg: '',
- lazyLoad: false,
- loadingImg: '',
- pauseVideo: true,
- previewImg: true,
- setTitle: true,
- showImgMenu: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 123:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/picker.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:18:20
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
- */
- var _default = {
- // picker
- picker: {
- show: false,
- showToolbar: true,
- title: '',
- columns: function columns() {
- return [];
- },
- loading: false,
- itemHeight: 44,
- cancelText: '取消',
- confirmText: '确定',
- cancelColor: '#909193',
- confirmColor: '#3c9cff',
- visibleItemCount: 5,
- keyName: 'text',
- closeOnClickOverlay: false,
- defaultIndex: function defaultIndex() {
- return [];
- },
- immediateChange: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 124:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/popup.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:06:33
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
- */
- var _default = {
- // popup组件
- popup: {
- show: false,
- overlay: true,
- mode: 'bottom',
- duration: 300,
- closeable: false,
- overlayStyle: function overlayStyle() {},
- closeOnClickOverlay: true,
- zIndex: 10075,
- safeAreaInsetBottom: true,
- safeAreaInsetTop: false,
- closeIconPos: 'top-right',
- round: 0,
- zoom: true,
- bgColor: '',
- overlayOpacity: 0.5
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 125:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/radio.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:02:34
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
- */
- var _default = {
- // radio组件
- radio: {
- name: '',
- shape: '',
- disabled: '',
- labelDisabled: '',
- activeColor: '',
- inactiveColor: '',
- iconSize: '',
- labelSize: '',
- label: '',
- labelColor: '',
- size: '',
- iconColor: '',
- placement: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 126:
- /*!******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/radioGroup.js ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:03:12
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
- */
- var _default = {
- // radio-group组件
- radioGroup: {
- value: '',
- disabled: false,
- shape: 'circle',
- activeColor: '#2979ff',
- inactiveColor: '#c8c9cc',
- name: '',
- size: 18,
- placement: 'row',
- label: '',
- labelColor: '#303133',
- labelSize: 14,
- labelDisabled: false,
- iconColor: '#ffffff',
- iconSize: 12,
- borderBottom: false,
- iconPlacement: 'left'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 127:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/rate.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:05:09
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
- */
- var _default = {
- // rate组件
- rate: {
- value: 1,
- count: 5,
- disabled: false,
- size: 18,
- inactiveColor: '#b2b2b2',
- activeColor: '#FA3534',
- gutter: 4,
- minCount: 1,
- allowHalf: false,
- activeIcon: 'star-fill',
- inactiveIcon: 'star',
- touchable: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 128:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/readMore.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:18:41
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
- */
- var _default = {
- // readMore
- readMore: {
- showHeight: 400,
- toggle: false,
- closeText: '展开阅读全文',
- openText: '收起',
- color: '#2979ff',
- fontSize: 14,
- textIndent: '2em',
- name: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 129:
- /*!***********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/row.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:18:58
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
- */
- var _default = {
- // row
- row: {
- gutter: 0,
- justify: 'start',
- align: 'center'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 13:
- /*!*******************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _typeof(o) {
- "@babel/helpers - typeof";
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
- return typeof o;
- } : function (o) {
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
- }
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 130:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/rowNotice.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:19:13
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
- */
- var _default = {
- // rowNotice
- rowNotice: {
- text: '',
- icon: 'volume',
- mode: '',
- color: '#f9ae3d',
- bgColor: '#fdf6ec',
- fontSize: 14,
- speed: 80
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1307:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-status-bar/props.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- bgColor: {
- type: String,
- default: uni.$u.props.statusBar.bgColor
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 131:
- /*!******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/scrollList.js ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:19:28
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
- */
- var _default = {
- // scrollList
- scrollList: {
- indicatorWidth: 50,
- indicatorBarWidth: 20,
- indicator: true,
- indicatorColor: '#f2f2f2',
- indicatorActiveColor: '#3c9cff',
- indicatorStyle: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1315:
- /*!*********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-loading-icon/props.js ***!
- \*********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 是否显示组件
- show: {
- type: Boolean,
- default: uni.$u.props.loadingIcon.show
- },
- // 颜色
- color: {
- type: String,
- default: uni.$u.props.loadingIcon.color
- },
- // 提示文字颜色
- textColor: {
- type: String,
- default: uni.$u.props.loadingIcon.textColor
- },
- // 文字和图标是否垂直排列
- vertical: {
- type: Boolean,
- default: uni.$u.props.loadingIcon.vertical
- },
- // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
- mode: {
- type: String,
- default: uni.$u.props.loadingIcon.mode
- },
- // 图标大小,单位默认px
- size: {
- type: [String, Number],
- default: uni.$u.props.loadingIcon.size
- },
- // 文字大小
- textSize: {
- type: [String, Number],
- default: uni.$u.props.loadingIcon.textSize
- },
- // 文字内容
- text: {
- type: [String, Number],
- default: uni.$u.props.loadingIcon.text
- },
- // 动画模式
- timingFunction: {
- type: String,
- default: uni.$u.props.loadingIcon.timingFunction
- },
- // 动画执行周期时间
- duration: {
- type: [String, Number],
- default: uni.$u.props.loadingIcon.duration
- },
- // mode=circle时的暗边颜色
- inactiveColor: {
- type: String,
- default: uni.$u.props.loadingIcon.inactiveColor
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 132:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/search.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:19:45
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
- */
- var _default = {
- // search
- search: {
- shape: 'round',
- bgColor: '#f2f2f2',
- placeholder: '请输入关键字',
- clearabled: true,
- focus: false,
- showAction: true,
- actionStyle: function actionStyle() {
- return {};
- },
- actionText: '搜索',
- inputAlign: 'left',
- inputStyle: function inputStyle() {
- return {};
- },
- disabled: false,
- borderColor: 'transparent',
- searchIconColor: '#909399',
- searchIconSize: 22,
- color: '#606266',
- placeholderColor: '#909399',
- searchIcon: 'search',
- margin: '0',
- animation: false,
- value: '',
- maxlength: '-1',
- height: 32,
- label: null
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1323:
- /*!*************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-swiper-indicator/props.js ***!
- \*************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 轮播的长度
- length: {
- type: [String, Number],
- default: uni.$u.props.swiperIndicator.length
- },
- // 当前处于活动状态的轮播的索引
- current: {
- type: [String, Number],
- default: uni.$u.props.swiperIndicator.current
- },
- // 指示器非激活颜色
- indicatorActiveColor: {
- type: String,
- default: uni.$u.props.swiperIndicator.indicatorActiveColor
- },
- // 指示器的激活颜色
- indicatorInactiveColor: {
- type: String,
- default: uni.$u.props.swiperIndicator.indicatorInactiveColor
- },
- // 指示器模式,line-线型,dot-点型
- indicatorMode: {
- type: String,
- default: uni.$u.props.swiperIndicator.indicatorMode
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 133:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/section.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:07:33
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
- */
- var _default = {
- // u-section组件
- section: {
- title: '',
- subTitle: '更多',
- right: true,
- fontSize: 15,
- bold: true,
- color: '#303133',
- subColor: '#909399',
- showLine: true,
- lineColor: '',
- arrow: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1331:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-overlay/props.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 是否显示遮罩
- show: {
- type: Boolean,
- default: uni.$u.props.overlay.show
- },
- // 层级z-index
- zIndex: {
- type: [String, Number],
- default: uni.$u.props.overlay.zIndex
- },
- // 遮罩的过渡时间,单位为ms
- duration: {
- type: [String, Number],
- default: uni.$u.props.overlay.duration
- },
- // 不透明度值,当做rgba的第四个参数
- opacity: {
- type: [String, Number],
- default: uni.$u.props.overlay.opacity
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 1339:
- /*!********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-safe-bottom/props.js ***!
- \********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {}
- };
- exports.default = _default;
- /***/ }),
- /***/ 134:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/skeleton.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:20:14
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
- */
- var _default = {
- // skeleton
- skeleton: {
- loading: true,
- animate: true,
- rows: 0,
- rowsWidth: '100%',
- rowsHeight: 18,
- title: true,
- titleWidth: '50%',
- titleHeight: 18,
- avatar: false,
- avatarSize: 32,
- avatarShape: 'circle'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1347:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-tabbar/props.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 当前匹配项的name
- value: {
- type: [String, Number, null],
- default: uni.$u.props.tabbar.value
- },
- // 是否为iPhoneX留出底部安全距离
- safeAreaInsetBottom: {
- type: Boolean,
- default: uni.$u.props.tabbar.safeAreaInsetBottom
- },
- // 是否显示上方边框
- border: {
- type: Boolean,
- default: uni.$u.props.tabbar.border
- },
- // 元素层级z-index
- zIndex: {
- type: [String, Number],
- default: uni.$u.props.tabbar.zIndex
- },
- // 选中标签的颜色
- activeColor: {
- type: String,
- default: uni.$u.props.tabbar.activeColor
- },
- // 未选中标签的颜色
- inactiveColor: {
- type: String,
- default: uni.$u.props.tabbar.inactiveColor
- },
- // 是否固定在底部
- fixed: {
- type: Boolean,
- default: uni.$u.props.tabbar.fixed
- },
- // fixed定位固定在底部时,是否生成一个等高元素防止塌陷
- placeholder: {
- type: Boolean,
- default: uni.$u.props.tabbar.placeholder
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 135:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/slider.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:08:25
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
- */
- var _default = {
- // slider组件
- slider: {
- value: 0,
- blockSize: 18,
- min: 0,
- max: 100,
- step: 1,
- activeColor: '#2979ff',
- inactiveColor: '#c0c4cc',
- blockColor: '#ffffff',
- showValue: false,
- disabled: false,
- blockStyle: function blockStyle() {}
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1355:
- /*!********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-tabbar-item/props.js ***!
- \********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // item标签的名称,作为与u-tabbar的value参数匹配的标识符
- name: {
- type: [String, Number, null],
- default: uni.$u.props.tabbarItem.name
- },
- // uView内置图标或者绝对路径的图片
- icon: {
- icon: String,
- default: uni.$u.props.tabbarItem.icon
- },
- // 右上角的角标提示信息
- badge: {
- type: [String, Number, null],
- default: uni.$u.props.tabbarItem.badge
- },
- // 是否显示圆点,将会覆盖badge参数
- dot: {
- type: Boolean,
- default: uni.$u.props.tabbarItem.dot
- },
- // 描述文本
- text: {
- type: String,
- default: uni.$u.props.tabbarItem.text
- },
- // 控制徽标的位置,对象或者字符串形式,可以设置top和right属性
- badgeStyle: {
- type: [Object, String],
- default: uni.$u.props.tabbarItem.badgeStyle
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 136:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/statusBar.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:20:39
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
- */
- var _default = {
- // statusBar
- statusBar: {
- bgColor: 'transparent'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1363:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-gap/props.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 背景颜色(默认transparent)
- bgColor: {
- type: String,
- default: uni.$u.props.gap.bgColor
- },
- // 分割槽高度,单位px(默认30)
- height: {
- type: [String, Number],
- default: uni.$u.props.gap.height
- },
- // 与上一个组件的距离
- marginTop: {
- type: [String, Number],
- default: uni.$u.props.gap.marginTop
- },
- // 与下一个组件的距离
- marginBottom: {
- type: [String, Number],
- default: uni.$u.props.gap.marginBottom
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 137:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/steps.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:12:37
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
- */
- var _default = {
- // steps组件
- steps: {
- direction: 'row',
- current: 0,
- activeColor: '#3c9cff',
- inactiveColor: '#969799',
- activeIcon: '',
- inactiveIcon: '',
- dot: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1371:
- /*!*****************************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js ***!
- \*****************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.fontData = void 0;
- var fontData = [{
- "font_class": "arrow-down",
- "unicode": "\uE6BE"
- }, {
- "font_class": "arrow-left",
- "unicode": "\uE6BC"
- }, {
- "font_class": "arrow-right",
- "unicode": "\uE6BB"
- }, {
- "font_class": "arrow-up",
- "unicode": "\uE6BD"
- }, {
- "font_class": "auth",
- "unicode": "\uE6AB"
- }, {
- "font_class": "auth-filled",
- "unicode": "\uE6CC"
- }, {
- "font_class": "back",
- "unicode": "\uE6B9"
- }, {
- "font_class": "bars",
- "unicode": "\uE627"
- }, {
- "font_class": "calendar",
- "unicode": "\uE6A0"
- }, {
- "font_class": "calendar-filled",
- "unicode": "\uE6C0"
- }, {
- "font_class": "camera",
- "unicode": "\uE65A"
- }, {
- "font_class": "camera-filled",
- "unicode": "\uE658"
- }, {
- "font_class": "cart",
- "unicode": "\uE631"
- }, {
- "font_class": "cart-filled",
- "unicode": "\uE6D0"
- }, {
- "font_class": "chat",
- "unicode": "\uE65D"
- }, {
- "font_class": "chat-filled",
- "unicode": "\uE659"
- }, {
- "font_class": "chatboxes",
- "unicode": "\uE696"
- }, {
- "font_class": "chatboxes-filled",
- "unicode": "\uE692"
- }, {
- "font_class": "chatbubble",
- "unicode": "\uE697"
- }, {
- "font_class": "chatbubble-filled",
- "unicode": "\uE694"
- }, {
- "font_class": "checkbox",
- "unicode": "\uE62B"
- }, {
- "font_class": "checkbox-filled",
- "unicode": "\uE62C"
- }, {
- "font_class": "checkmarkempty",
- "unicode": "\uE65C"
- }, {
- "font_class": "circle",
- "unicode": "\uE65B"
- }, {
- "font_class": "circle-filled",
- "unicode": "\uE65E"
- }, {
- "font_class": "clear",
- "unicode": "\uE66D"
- }, {
- "font_class": "close",
- "unicode": "\uE673"
- }, {
- "font_class": "closeempty",
- "unicode": "\uE66C"
- }, {
- "font_class": "cloud-download",
- "unicode": "\uE647"
- }, {
- "font_class": "cloud-download-filled",
- "unicode": "\uE646"
- }, {
- "font_class": "cloud-upload",
- "unicode": "\uE645"
- }, {
- "font_class": "cloud-upload-filled",
- "unicode": "\uE648"
- }, {
- "font_class": "color",
- "unicode": "\uE6CF"
- }, {
- "font_class": "color-filled",
- "unicode": "\uE6C9"
- }, {
- "font_class": "compose",
- "unicode": "\uE67F"
- }, {
- "font_class": "contact",
- "unicode": "\uE693"
- }, {
- "font_class": "contact-filled",
- "unicode": "\uE695"
- }, {
- "font_class": "down",
- "unicode": "\uE6B8"
- }, {
- "font_class": "bottom",
- "unicode": "\uE6B8"
- }, {
- "font_class": "download",
- "unicode": "\uE68D"
- }, {
- "font_class": "download-filled",
- "unicode": "\uE681"
- }, {
- "font_class": "email",
- "unicode": "\uE69E"
- }, {
- "font_class": "email-filled",
- "unicode": "\uE69A"
- }, {
- "font_class": "eye",
- "unicode": "\uE651"
- }, {
- "font_class": "eye-filled",
- "unicode": "\uE66A"
- }, {
- "font_class": "eye-slash",
- "unicode": "\uE6B3"
- }, {
- "font_class": "eye-slash-filled",
- "unicode": "\uE6B4"
- }, {
- "font_class": "fire",
- "unicode": "\uE6A1"
- }, {
- "font_class": "fire-filled",
- "unicode": "\uE6C5"
- }, {
- "font_class": "flag",
- "unicode": "\uE65F"
- }, {
- "font_class": "flag-filled",
- "unicode": "\uE660"
- }, {
- "font_class": "folder-add",
- "unicode": "\uE6A9"
- }, {
- "font_class": "folder-add-filled",
- "unicode": "\uE6C8"
- }, {
- "font_class": "font",
- "unicode": "\uE6A3"
- }, {
- "font_class": "forward",
- "unicode": "\uE6BA"
- }, {
- "font_class": "gear",
- "unicode": "\uE664"
- }, {
- "font_class": "gear-filled",
- "unicode": "\uE661"
- }, {
- "font_class": "gift",
- "unicode": "\uE6A4"
- }, {
- "font_class": "gift-filled",
- "unicode": "\uE6C4"
- }, {
- "font_class": "hand-down",
- "unicode": "\uE63D"
- }, {
- "font_class": "hand-down-filled",
- "unicode": "\uE63C"
- }, {
- "font_class": "hand-up",
- "unicode": "\uE63F"
- }, {
- "font_class": "hand-up-filled",
- "unicode": "\uE63E"
- }, {
- "font_class": "headphones",
- "unicode": "\uE630"
- }, {
- "font_class": "heart",
- "unicode": "\uE639"
- }, {
- "font_class": "heart-filled",
- "unicode": "\uE641"
- }, {
- "font_class": "help",
- "unicode": "\uE679"
- }, {
- "font_class": "help-filled",
- "unicode": "\uE674"
- }, {
- "font_class": "home",
- "unicode": "\uE662"
- }, {
- "font_class": "home-filled",
- "unicode": "\uE663"
- }, {
- "font_class": "image",
- "unicode": "\uE670"
- }, {
- "font_class": "image-filled",
- "unicode": "\uE678"
- }, {
- "font_class": "images",
- "unicode": "\uE650"
- }, {
- "font_class": "images-filled",
- "unicode": "\uE64B"
- }, {
- "font_class": "info",
- "unicode": "\uE669"
- }, {
- "font_class": "info-filled",
- "unicode": "\uE649"
- }, {
- "font_class": "left",
- "unicode": "\uE6B7"
- }, {
- "font_class": "link",
- "unicode": "\uE6A5"
- }, {
- "font_class": "list",
- "unicode": "\uE644"
- }, {
- "font_class": "location",
- "unicode": "\uE6AE"
- }, {
- "font_class": "location-filled",
- "unicode": "\uE6AF"
- }, {
- "font_class": "locked",
- "unicode": "\uE66B"
- }, {
- "font_class": "locked-filled",
- "unicode": "\uE668"
- }, {
- "font_class": "loop",
- "unicode": "\uE633"
- }, {
- "font_class": "mail-open",
- "unicode": "\uE643"
- }, {
- "font_class": "mail-open-filled",
- "unicode": "\uE63A"
- }, {
- "font_class": "map",
- "unicode": "\uE667"
- }, {
- "font_class": "map-filled",
- "unicode": "\uE666"
- }, {
- "font_class": "map-pin",
- "unicode": "\uE6AD"
- }, {
- "font_class": "map-pin-ellipse",
- "unicode": "\uE6AC"
- }, {
- "font_class": "medal",
- "unicode": "\uE6A2"
- }, {
- "font_class": "medal-filled",
- "unicode": "\uE6C3"
- }, {
- "font_class": "mic",
- "unicode": "\uE671"
- }, {
- "font_class": "mic-filled",
- "unicode": "\uE677"
- }, {
- "font_class": "micoff",
- "unicode": "\uE67E"
- }, {
- "font_class": "micoff-filled",
- "unicode": "\uE6B0"
- }, {
- "font_class": "minus",
- "unicode": "\uE66F"
- }, {
- "font_class": "minus-filled",
- "unicode": "\uE67D"
- }, {
- "font_class": "more",
- "unicode": "\uE64D"
- }, {
- "font_class": "more-filled",
- "unicode": "\uE64E"
- }, {
- "font_class": "navigate",
- "unicode": "\uE66E"
- }, {
- "font_class": "navigate-filled",
- "unicode": "\uE67A"
- }, {
- "font_class": "notification",
- "unicode": "\uE6A6"
- }, {
- "font_class": "notification-filled",
- "unicode": "\uE6C1"
- }, {
- "font_class": "paperclip",
- "unicode": "\uE652"
- }, {
- "font_class": "paperplane",
- "unicode": "\uE672"
- }, {
- "font_class": "paperplane-filled",
- "unicode": "\uE675"
- }, {
- "font_class": "person",
- "unicode": "\uE699"
- }, {
- "font_class": "person-filled",
- "unicode": "\uE69D"
- }, {
- "font_class": "personadd",
- "unicode": "\uE69F"
- }, {
- "font_class": "personadd-filled",
- "unicode": "\uE698"
- }, {
- "font_class": "personadd-filled-copy",
- "unicode": "\uE6D1"
- }, {
- "font_class": "phone",
- "unicode": "\uE69C"
- }, {
- "font_class": "phone-filled",
- "unicode": "\uE69B"
- }, {
- "font_class": "plus",
- "unicode": "\uE676"
- }, {
- "font_class": "plus-filled",
- "unicode": "\uE6C7"
- }, {
- "font_class": "plusempty",
- "unicode": "\uE67B"
- }, {
- "font_class": "pulldown",
- "unicode": "\uE632"
- }, {
- "font_class": "pyq",
- "unicode": "\uE682"
- }, {
- "font_class": "qq",
- "unicode": "\uE680"
- }, {
- "font_class": "redo",
- "unicode": "\uE64A"
- }, {
- "font_class": "redo-filled",
- "unicode": "\uE655"
- }, {
- "font_class": "refresh",
- "unicode": "\uE657"
- }, {
- "font_class": "refresh-filled",
- "unicode": "\uE656"
- }, {
- "font_class": "refreshempty",
- "unicode": "\uE6BF"
- }, {
- "font_class": "reload",
- "unicode": "\uE6B2"
- }, {
- "font_class": "right",
- "unicode": "\uE6B5"
- }, {
- "font_class": "scan",
- "unicode": "\uE62A"
- }, {
- "font_class": "search",
- "unicode": "\uE654"
- }, {
- "font_class": "settings",
- "unicode": "\uE653"
- }, {
- "font_class": "settings-filled",
- "unicode": "\uE6CE"
- }, {
- "font_class": "shop",
- "unicode": "\uE62F"
- }, {
- "font_class": "shop-filled",
- "unicode": "\uE6CD"
- }, {
- "font_class": "smallcircle",
- "unicode": "\uE67C"
- }, {
- "font_class": "smallcircle-filled",
- "unicode": "\uE665"
- }, {
- "font_class": "sound",
- "unicode": "\uE684"
- }, {
- "font_class": "sound-filled",
- "unicode": "\uE686"
- }, {
- "font_class": "spinner-cycle",
- "unicode": "\uE68A"
- }, {
- "font_class": "staff",
- "unicode": "\uE6A7"
- }, {
- "font_class": "staff-filled",
- "unicode": "\uE6CB"
- }, {
- "font_class": "star",
- "unicode": "\uE688"
- }, {
- "font_class": "star-filled",
- "unicode": "\uE68F"
- }, {
- "font_class": "starhalf",
- "unicode": "\uE683"
- }, {
- "font_class": "trash",
- "unicode": "\uE687"
- }, {
- "font_class": "trash-filled",
- "unicode": "\uE685"
- }, {
- "font_class": "tune",
- "unicode": "\uE6AA"
- }, {
- "font_class": "tune-filled",
- "unicode": "\uE6CA"
- }, {
- "font_class": "undo",
- "unicode": "\uE64F"
- }, {
- "font_class": "undo-filled",
- "unicode": "\uE64C"
- }, {
- "font_class": "up",
- "unicode": "\uE6B6"
- }, {
- "font_class": "top",
- "unicode": "\uE6B6"
- }, {
- "font_class": "upload",
- "unicode": "\uE690"
- }, {
- "font_class": "upload-filled",
- "unicode": "\uE68E"
- }, {
- "font_class": "videocam",
- "unicode": "\uE68C"
- }, {
- "font_class": "videocam-filled",
- "unicode": "\uE689"
- }, {
- "font_class": "vip",
- "unicode": "\uE6A8"
- }, {
- "font_class": "vip-filled",
- "unicode": "\uE6C6"
- }, {
- "font_class": "wallet",
- "unicode": "\uE6B1"
- }, {
- "font_class": "wallet-filled",
- "unicode": "\uE6C2"
- }, {
- "font_class": "weibo",
- "unicode": "\uE68B"
- }, {
- "font_class": "weixin",
- "unicode": "\uE691"
- }];
- // export const fontData = JSON.parse<IconsDataItem>(fontDataJson)
- exports.fontData = fontData;
- /***/ }),
- /***/ 138:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/stepsItem.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:12:55
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
- */
- var _default = {
- // steps-item组件
- stepsItem: {
- title: '',
- desc: '',
- iconSize: 17,
- error: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1388:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-toolbar/props.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 是否展示工具条
- show: {
- type: Boolean,
- default: uni.$u.props.toolbar.show
- },
- // 取消按钮的文字
- cancelText: {
- type: String,
- default: uni.$u.props.toolbar.cancelText
- },
- // 确认按钮的文字
- confirmText: {
- type: String,
- default: uni.$u.props.toolbar.confirmText
- },
- // 取消按钮的颜色
- cancelColor: {
- type: String,
- default: uni.$u.props.toolbar.cancelColor
- },
- // 确认按钮的颜色
- confirmColor: {
- type: String,
- default: uni.$u.props.toolbar.confirmColor
- },
- // 标题文字
- title: {
- type: String,
- default: uni.$u.props.toolbar.title
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 139:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/sticky.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:01:30
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
- */
- var _default = {
- // sticky组件
- sticky: {
- offsetTop: 0,
- customNavHeight: 0,
- disabled: false,
- bgColor: 'transparent',
- zIndex: '',
- index: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 14:
- /*!************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
- function toPrimitive(t, r) {
- if ("object" != _typeof(t) || !t) return t;
- var e = t[Symbol.toPrimitive];
- if (void 0 !== e) {
- var i = e.call(t, r || "default");
- if ("object" != _typeof(i)) return i;
- throw new TypeError("@@toPrimitive must return a primitive value.");
- }
- return ("string" === r ? String : Number)(t);
- }
- module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 140:
- /*!******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/subsection.js ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:12:20
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
- */
- var _default = {
- // subsection组件
- subsection: {
- list: [],
- current: 0,
- activeColor: '#3c9cff',
- inactiveColor: '#303133',
- mode: 'button',
- fontSize: 12,
- bold: true,
- bgColor: '#eeeeef',
- keyName: 'name'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1403:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/util/async-validator.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(process) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
- 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; }
- 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; }
- function _extends() {
- _extends = Object.assign || function (target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
- return target;
- };
- return _extends.apply(this, arguments);
- }
- /* eslint no-console:0 */
- var formatRegExp = /%[sdj%]/g;
- var warning = function warning() {}; // don't print warning message when in production env or node runtime
- if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"kjds","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
- warning = function warning(type, errors) {
- if (typeof console !== 'undefined' && console.warn) {
- if (errors.every(function (e) {
- return typeof e === 'string';
- })) {
- console.warn(type, errors);
- }
- }
- };
- }
- function convertFieldsError(errors) {
- if (!errors || !errors.length) return null;
- var fields = {};
- errors.forEach(function (error) {
- var field = error.field;
- fields[field] = fields[field] || [];
- fields[field].push(error);
- });
- return fields;
- }
- function format() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- var i = 1;
- var f = args[0];
- var len = args.length;
- if (typeof f === 'function') {
- return f.apply(null, args.slice(1));
- }
- if (typeof f === 'string') {
- var str = String(f).replace(formatRegExp, function (x) {
- if (x === '%%') {
- return '%';
- }
- if (i >= len) {
- return x;
- }
- switch (x) {
- case '%s':
- return String(args[i++]);
- case '%d':
- return Number(args[i++]);
- case '%j':
- try {
- return JSON.stringify(args[i++]);
- } catch (_) {
- return '[Circular]';
- }
- break;
- default:
- return x;
- }
- });
- for (var arg = args[i]; i < len; arg = args[++i]) {
- str += " ".concat(arg);
- }
- return str;
- }
- return f;
- }
- function isNativeStringType(type) {
- return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
- }
- function isEmptyValue(value, type) {
- if (value === undefined || value === null) {
- return true;
- }
- if (type === 'array' && Array.isArray(value) && !value.length) {
- return true;
- }
- if (isNativeStringType(type) && typeof value === 'string' && !value) {
- return true;
- }
- return false;
- }
- function asyncParallelArray(arr, func, callback) {
- var results = [];
- var total = 0;
- var arrLength = arr.length;
- function count(errors) {
- results.push.apply(results, errors);
- total++;
- if (total === arrLength) {
- callback(results);
- }
- }
- arr.forEach(function (a) {
- func(a, count);
- });
- }
- function asyncSerialArray(arr, func, callback) {
- var index = 0;
- var arrLength = arr.length;
- function next(errors) {
- if (errors && errors.length) {
- callback(errors);
- return;
- }
- var original = index;
- index += 1;
- if (original < arrLength) {
- func(arr[original], next);
- } else {
- callback([]);
- }
- }
- next([]);
- }
- function flattenObjArr(objArr) {
- var ret = [];
- Object.keys(objArr).forEach(function (k) {
- ret.push.apply(ret, objArr[k]);
- });
- return ret;
- }
- function asyncMap(objArr, option, func, callback) {
- if (option.first) {
- var _pending = new Promise(function (resolve, reject) {
- var next = function next(errors) {
- callback(errors);
- return errors.length ? reject({
- errors: errors,
- fields: convertFieldsError(errors)
- }) : resolve();
- };
- var flattenArr = flattenObjArr(objArr);
- asyncSerialArray(flattenArr, func, next);
- });
- _pending.catch(function (e) {
- return e;
- });
- return _pending;
- }
- var firstFields = option.firstFields || [];
- if (firstFields === true) {
- firstFields = Object.keys(objArr);
- }
- var objArrKeys = Object.keys(objArr);
- var objArrLength = objArrKeys.length;
- var total = 0;
- var results = [];
- var pending = new Promise(function (resolve, reject) {
- var next = function next(errors) {
- results.push.apply(results, errors);
- total++;
- if (total === objArrLength) {
- callback(results);
- return results.length ? reject({
- errors: results,
- fields: convertFieldsError(results)
- }) : resolve();
- }
- };
- if (!objArrKeys.length) {
- callback(results);
- resolve();
- }
- objArrKeys.forEach(function (key) {
- var arr = objArr[key];
- if (firstFields.indexOf(key) !== -1) {
- asyncSerialArray(arr, func, next);
- } else {
- asyncParallelArray(arr, func, next);
- }
- });
- });
- pending.catch(function (e) {
- return e;
- });
- return pending;
- }
- function complementError(rule) {
- return function (oe) {
- if (oe && oe.message) {
- oe.field = oe.field || rule.fullField;
- return oe;
- }
- return {
- message: typeof oe === 'function' ? oe() : oe,
- field: oe.field || rule.fullField
- };
- };
- }
- function deepMerge(target, source) {
- if (source) {
- for (var s in source) {
- if (source.hasOwnProperty(s)) {
- var value = source[s];
- if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
- target[s] = _objectSpread(_objectSpread({}, target[s]), value);
- } else {
- target[s] = value;
- }
- }
- }
- }
- return target;
- }
- /**
- * Rule for validating required fields.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function required(rule, value, source, errors, options, type) {
- if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
- errors.push(format(options.messages.required, rule.fullField));
- }
- }
- /**
- * Rule for validating whitespace.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function whitespace(rule, value, source, errors, options) {
- if (/^\s+$/.test(value) || value === '') {
- errors.push(format(options.messages.whitespace, rule.fullField));
- }
- }
- /* eslint max-len:0 */
- var pattern = {
- // http://emailregex.com/
- email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
- 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'),
- hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
- };
- var types = {
- integer: function integer(value) {
- return /^(-)?\d+$/.test(value);
- },
- float: function float(value) {
- return /^(-)?\d+(\.\d+)?$/.test(value);
- },
- array: function array(value) {
- return Array.isArray(value);
- },
- regexp: function regexp(value) {
- if (value instanceof RegExp) {
- return true;
- }
- try {
- return !!new RegExp(value);
- } catch (e) {
- return false;
- }
- },
- date: function date(value) {
- return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
- },
- number: function number(value) {
- if (isNaN(value)) {
- return false;
- }
- // 修改源码,将字符串数值先转为数值
- return typeof +value === 'number';
- },
- object: function object(value) {
- return (0, _typeof2.default)(value) === 'object' && !types.array(value);
- },
- method: function method(value) {
- return typeof value === 'function';
- },
- email: function email(value) {
- return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
- },
- url: function url(value) {
- return typeof value === 'string' && !!value.match(pattern.url);
- },
- hex: function hex(value) {
- return typeof value === 'string' && !!value.match(pattern.hex);
- }
- };
- /**
- * Rule for validating the type of a value.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function type(rule, value, source, errors, options) {
- if (rule.required && value === undefined) {
- required(rule, value, source, errors, options);
- return;
- }
- var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
- var ruleType = rule.type;
- if (custom.indexOf(ruleType) > -1) {
- if (!types[ruleType](value)) {
- errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
- } // straight typeof check
- } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
- errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
- }
- }
- /**
- * Rule for validating minimum and maximum allowed values.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function range(rule, value, source, errors, options) {
- var len = typeof rule.len === 'number';
- var min = typeof rule.min === 'number';
- var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
- var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
- var val = value;
- var key = null;
- var num = typeof value === 'number';
- var str = typeof value === 'string';
- var arr = Array.isArray(value);
- if (num) {
- key = 'number';
- } else if (str) {
- key = 'string';
- } else if (arr) {
- key = 'array';
- } // if the value is not of a supported type for range validation
- // the validation rule rule should use the
- // type property to also test for a particular type
- if (!key) {
- return false;
- }
- if (arr) {
- val = value.length;
- }
- if (str) {
- // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
- val = value.replace(spRegexp, '_').length;
- }
- if (len) {
- if (val !== rule.len) {
- errors.push(format(options.messages[key].len, rule.fullField, rule.len));
- }
- } else if (min && !max && val < rule.min) {
- errors.push(format(options.messages[key].min, rule.fullField, rule.min));
- } else if (max && !min && val > rule.max) {
- errors.push(format(options.messages[key].max, rule.fullField, rule.max));
- } else if (min && max && (val < rule.min || val > rule.max)) {
- errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
- }
- }
- var ENUM = 'enum';
- /**
- * Rule for validating a value exists in an enumerable list.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function enumerable(rule, value, source, errors, options) {
- rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
- if (rule[ENUM].indexOf(value) === -1) {
- errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
- }
- }
- /**
- * Rule for validating a regular expression pattern.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param source The source object being validated.
- * @param errors An array of errors that this rule may add
- * validation errors to.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function pattern$1(rule, value, source, errors, options) {
- if (rule.pattern) {
- if (rule.pattern instanceof RegExp) {
- // if a RegExp instance is passed, reset `lastIndex` in case its `global`
- // flag is accidentally set to `true`, which in a validation scenario
- // is not necessary and the result might be misleading
- rule.pattern.lastIndex = 0;
- if (!rule.pattern.test(value)) {
- errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- } else if (typeof rule.pattern === 'string') {
- var _pattern = new RegExp(rule.pattern);
- if (!_pattern.test(value)) {
- errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- }
- }
- }
- var rules = {
- required: required,
- whitespace: whitespace,
- type: type,
- range: range,
- enum: enumerable,
- pattern: pattern$1
- };
- /**
- * Performs validation for string types.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function string(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, 'string') && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, 'string');
- if (!isEmptyValue(value, 'string')) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- rules.pattern(rule, value, source, errors, options);
- if (rule.whitespace === true) {
- rules.whitespace(rule, value, source, errors, options);
- }
- }
- }
- callback(errors);
- }
- /**
- * Validates a function.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function method(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a number.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function number(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (value === '') {
- value = undefined;
- }
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a boolean.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function _boolean(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates the regular expression type.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function regexp(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value)) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a number is an integer.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function integer(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a number is a floating point number.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function floatFn(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates an array.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function array(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, 'array') && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, 'array');
- if (!isEmptyValue(value, 'array')) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates an object.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function object(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- var ENUM$1 = 'enum';
- /**
- * Validates an enumerable list.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function enumerable$1(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== undefined) {
- rules[ENUM$1](rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Validates a regular expression pattern.
- *
- * Performs validation when a rule only contains
- * a pattern property but is not declared as a string type.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function pattern$2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, 'string') && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value, 'string')) {
- rules.pattern(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- function date(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value)) {
- var dateObject;
- if (typeof value === 'number') {
- dateObject = new Date(value);
- } else {
- dateObject = value;
- }
- rules.type(rule, dateObject, source, errors, options);
- if (dateObject) {
- rules.range(rule, dateObject.getTime(), source, errors, options);
- }
- }
- }
- callback(errors);
- }
- function required$1(rule, value, callback, source, options) {
- var errors = [];
- var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
- rules.required(rule, value, source, errors, options, type);
- callback(errors);
- }
- function type$1(rule, value, callback, source, options) {
- var ruleType = rule.type;
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, ruleType) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, ruleType);
- if (!isEmptyValue(value, ruleType)) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- }
- /**
- * Performs validation for any type.
- *
- * @param rule The validation rule.
- * @param value The value of the field on the source object.
- * @param callback The callback function.
- * @param source The source object being validated.
- * @param options The validation options.
- * @param options.messages The validation messages.
- */
- function any(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- }
- callback(errors);
- }
- var validators = {
- string: string,
- method: method,
- number: number,
- boolean: _boolean,
- regexp: regexp,
- integer: integer,
- float: floatFn,
- array: array,
- object: object,
- enum: enumerable$1,
- pattern: pattern$2,
- date: date,
- url: type$1,
- hex: type$1,
- email: type$1,
- required: required$1,
- any: any
- };
- function newMessages() {
- return {
- default: 'Validation error on field %s',
- required: '%s is required',
- enum: '%s must be one of %s',
- whitespace: '%s cannot be empty',
- date: {
- format: '%s date %s is invalid for format %s',
- parse: '%s date could not be parsed, %s is invalid ',
- invalid: '%s date %s is invalid'
- },
- types: {
- string: '%s is not a %s',
- method: '%s is not a %s (function)',
- array: '%s is not an %s',
- object: '%s is not an %s',
- number: '%s is not a %s',
- date: '%s is not a %s',
- boolean: '%s is not a %s',
- integer: '%s is not an %s',
- float: '%s is not a %s',
- regexp: '%s is not a valid %s',
- email: '%s is not a valid %s',
- url: '%s is not a valid %s',
- hex: '%s is not a valid %s'
- },
- string: {
- len: '%s must be exactly %s characters',
- min: '%s must be at least %s characters',
- max: '%s cannot be longer than %s characters',
- range: '%s must be between %s and %s characters'
- },
- number: {
- len: '%s must equal %s',
- min: '%s cannot be less than %s',
- max: '%s cannot be greater than %s',
- range: '%s must be between %s and %s'
- },
- array: {
- len: '%s must be exactly %s in length',
- min: '%s cannot be less than %s in length',
- max: '%s cannot be greater than %s in length',
- range: '%s must be between %s and %s in length'
- },
- pattern: {
- mismatch: '%s value %s does not match pattern %s'
- },
- clone: function clone() {
- var cloned = JSON.parse(JSON.stringify(this));
- cloned.clone = this.clone;
- return cloned;
- }
- };
- }
- var messages = newMessages();
- /**
- * Encapsulates a validation schema.
- *
- * @param descriptor An object declaring validation rules
- * for this schema.
- */
- function Schema(descriptor) {
- this.rules = null;
- this._messages = messages;
- this.define(descriptor);
- }
- Schema.prototype = {
- messages: function messages(_messages) {
- if (_messages) {
- this._messages = deepMerge(newMessages(), _messages);
- }
- return this._messages;
- },
- define: function define(rules) {
- if (!rules) {
- throw new Error('Cannot configure a schema with no rules');
- }
- if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
- throw new Error('Rules must be an object');
- }
- this.rules = {};
- var z;
- var item;
- for (z in rules) {
- if (rules.hasOwnProperty(z)) {
- item = rules[z];
- this.rules[z] = Array.isArray(item) ? item : [item];
- }
- }
- },
- validate: function validate(source_, o, oc) {
- var _this = this;
- if (o === void 0) {
- o = {};
- }
- if (oc === void 0) {
- oc = function oc() {};
- }
- var source = source_;
- var options = o;
- var callback = oc;
- if (typeof options === 'function') {
- callback = options;
- options = {};
- }
- if (!this.rules || Object.keys(this.rules).length === 0) {
- if (callback) {
- callback();
- }
- return Promise.resolve();
- }
- function complete(results) {
- var i;
- var errors = [];
- var fields = {};
- function add(e) {
- if (Array.isArray(e)) {
- var _errors;
- errors = (_errors = errors).concat.apply(_errors, e);
- } else {
- errors.push(e);
- }
- }
- for (i = 0; i < results.length; i++) {
- add(results[i]);
- }
- if (!errors.length) {
- errors = null;
- fields = null;
- } else {
- fields = convertFieldsError(errors);
- }
- callback(errors, fields);
- }
- if (options.messages) {
- var messages$1 = this.messages();
- if (messages$1 === messages) {
- messages$1 = newMessages();
- }
- deepMerge(messages$1, options.messages);
- options.messages = messages$1;
- } else {
- options.messages = this.messages();
- }
- var arr;
- var value;
- var series = {};
- var keys = options.keys || Object.keys(this.rules);
- keys.forEach(function (z) {
- arr = _this.rules[z];
- value = source[z];
- arr.forEach(function (r) {
- var rule = r;
- if (typeof rule.transform === 'function') {
- if (source === source_) {
- source = _objectSpread({}, source);
- }
- value = source[z] = rule.transform(value);
- }
- if (typeof rule === 'function') {
- rule = {
- validator: rule
- };
- } else {
- rule = _objectSpread({}, rule);
- }
- rule.validator = _this.getValidationMethod(rule);
- rule.field = z;
- rule.fullField = rule.fullField || z;
- rule.type = _this.getType(rule);
- if (!rule.validator) {
- return;
- }
- series[z] = series[z] || [];
- series[z].push({
- rule: rule,
- value: value,
- source: source,
- field: z
- });
- });
- });
- var errorFields = {};
- return asyncMap(series, options, function (data, doIt) {
- var rule = data.rule;
- var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
- deep = deep && (rule.required || !rule.required && data.value);
- rule.field = data.field;
- function addFullfield(key, schema) {
- return _objectSpread(_objectSpread({}, schema), {}, {
- fullField: "".concat(rule.fullField, ".").concat(key)
- });
- }
- function cb(e) {
- if (e === void 0) {
- e = [];
- }
- var errors = e;
- if (!Array.isArray(errors)) {
- errors = [errors];
- }
- if (!options.suppressWarning && errors.length) {
- Schema.warning('async-validator:', errors);
- }
- if (errors.length && rule.message) {
- errors = [].concat(rule.message);
- }
- errors = errors.map(complementError(rule));
- if (options.first && errors.length) {
- errorFields[rule.field] = 1;
- return doIt(errors);
- }
- if (!deep) {
- doIt(errors);
- } else {
- // if rule is required but the target object
- // does not exist fail at the rule level and don't
- // go deeper
- if (rule.required && !data.value) {
- if (rule.message) {
- errors = [].concat(rule.message).map(complementError(rule));
- } else if (options.error) {
- errors = [options.error(rule, format(options.messages.required, rule.field))];
- } else {
- errors = [];
- }
- return doIt(errors);
- }
- var fieldsSchema = {};
- if (rule.defaultField) {
- for (var k in data.value) {
- if (data.value.hasOwnProperty(k)) {
- fieldsSchema[k] = rule.defaultField;
- }
- }
- }
- fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
- for (var f in fieldsSchema) {
- if (fieldsSchema.hasOwnProperty(f)) {
- var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
- fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
- }
- }
- var schema = new Schema(fieldsSchema);
- schema.messages(options.messages);
- if (data.rule.options) {
- data.rule.options.messages = options.messages;
- data.rule.options.error = options.error;
- }
- schema.validate(data.value, data.rule.options || options, function (errs) {
- var finalErrors = [];
- if (errors && errors.length) {
- finalErrors.push.apply(finalErrors, errors);
- }
- if (errs && errs.length) {
- finalErrors.push.apply(finalErrors, errs);
- }
- doIt(finalErrors.length ? finalErrors : null);
- });
- }
- }
- var res;
- if (rule.asyncValidator) {
- res = rule.asyncValidator(rule, data.value, cb, data.source, options);
- } else if (rule.validator) {
- res = rule.validator(rule, data.value, cb, data.source, options);
- if (res === true) {
- cb();
- } else if (res === false) {
- cb(rule.message || "".concat(rule.field, " fails"));
- } else if (res instanceof Array) {
- cb(res);
- } else if (res instanceof Error) {
- cb(res.message);
- }
- }
- if (res && res.then) {
- res.then(function () {
- return cb();
- }, function (e) {
- return cb(e);
- });
- }
- }, function (results) {
- complete(results);
- });
- },
- getType: function getType(rule) {
- if (rule.type === undefined && rule.pattern instanceof RegExp) {
- rule.type = 'pattern';
- }
- if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
- throw new Error(format('Unknown rule type %s', rule.type));
- }
- return rule.type || 'string';
- },
- getValidationMethod: function getValidationMethod(rule) {
- if (typeof rule.validator === 'function') {
- return rule.validator;
- }
- var keys = Object.keys(rule);
- var messageIndex = keys.indexOf('message');
- if (messageIndex !== -1) {
- keys.splice(messageIndex, 1);
- }
- if (keys.length === 1 && keys[0] === 'required') {
- return validators.required;
- }
- return validators[this.getType(rule)] || false;
- }
- };
- Schema.register = function register(type, validator) {
- if (typeof validator !== 'function') {
- throw new Error('Cannot register a validator by type, validator is not a function');
- }
- validators[type] = validator;
- };
- Schema.warning = warning;
- Schema.messages = messages;
- var _default = Schema; // # sourceMappingURL=index.js.map
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../工具/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 1404)))
- /***/ }),
- /***/ 1404:
- /*!********************************************************!*\
- !*** ./node_modules/node-libs-browser/mock/process.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- exports.nextTick = function nextTick(fn) {
- var args = Array.prototype.slice.call(arguments);
- args.shift();
- setTimeout(function () {
- fn.apply(null, args);
- }, 0);
- };
- exports.platform = exports.arch =
- exports.execPath = exports.title = 'browser';
- exports.pid = 1;
- exports.browser = true;
- exports.env = {};
- exports.argv = [];
- exports.binding = function (name) {
- throw new Error('No such module. (Possibly not yet loaded)')
- };
- (function () {
- var cwd = '/';
- var path;
- exports.cwd = function () { return cwd };
- exports.chdir = function (dir) {
- if (!path) path = __webpack_require__(/*! path */ 1405);
- cwd = path.resolve(dir, cwd);
- };
- })();
- exports.exit = exports.kill =
- exports.umask = exports.dlopen =
- exports.uptime = exports.memoryUsage =
- exports.uvCounters = function() {};
- exports.features = {};
- /***/ }),
- /***/ 1405:
- /*!***********************************************!*\
- !*** ./node_modules/path-browserify/index.js ***!
- \***********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
- // backported and transplited with Babel, with backwards-compat fixes
- // Copyright Joyent, Inc. and other Node contributors.
- //
- // Permission is hereby granted, free of charge, to any person obtaining a
- // copy of this software and associated documentation files (the
- // "Software"), to deal in the Software without restriction, including
- // without limitation the rights to use, copy, modify, merge, publish,
- // distribute, sublicense, and/or sell copies of the Software, and to permit
- // persons to whom the Software is furnished to do so, subject to the
- // following conditions:
- //
- // The above copyright notice and this permission notice shall be included
- // in all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
- // resolves . and .. elements in a path array with directory names there
- // must be no slashes, empty elements, or device names (c:\) in the array
- // (so also no leading and trailing slashes - it does not distinguish
- // relative and absolute paths)
- function normalizeArray(parts, allowAboveRoot) {
- // if the path tries to go above the root, `up` ends up > 0
- var up = 0;
- for (var i = parts.length - 1; i >= 0; i--) {
- var last = parts[i];
- if (last === '.') {
- parts.splice(i, 1);
- } else if (last === '..') {
- parts.splice(i, 1);
- up++;
- } else if (up) {
- parts.splice(i, 1);
- up--;
- }
- }
- // if the path is allowed to go above the root, restore leading ..s
- if (allowAboveRoot) {
- for (; up--; up) {
- parts.unshift('..');
- }
- }
- return parts;
- }
- // path.resolve([from ...], to)
- // posix version
- exports.resolve = function() {
- var resolvedPath = '',
- resolvedAbsolute = false;
- for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
- var path = (i >= 0) ? arguments[i] : process.cwd();
- // Skip empty and invalid entries
- if (typeof path !== 'string') {
- throw new TypeError('Arguments to path.resolve must be strings');
- } else if (!path) {
- continue;
- }
- resolvedPath = path + '/' + resolvedPath;
- resolvedAbsolute = path.charAt(0) === '/';
- }
- // At this point the path should be resolved to a full absolute path, but
- // handle relative paths to be safe (might happen when process.cwd() fails)
- // Normalize the path
- resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
- return !!p;
- }), !resolvedAbsolute).join('/');
- return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
- };
- // path.normalize(path)
- // posix version
- exports.normalize = function(path) {
- var isAbsolute = exports.isAbsolute(path),
- trailingSlash = substr(path, -1) === '/';
- // Normalize the path
- path = normalizeArray(filter(path.split('/'), function(p) {
- return !!p;
- }), !isAbsolute).join('/');
- if (!path && !isAbsolute) {
- path = '.';
- }
- if (path && trailingSlash) {
- path += '/';
- }
- return (isAbsolute ? '/' : '') + path;
- };
- // posix version
- exports.isAbsolute = function(path) {
- return path.charAt(0) === '/';
- };
- // posix version
- exports.join = function() {
- var paths = Array.prototype.slice.call(arguments, 0);
- return exports.normalize(filter(paths, function(p, index) {
- if (typeof p !== 'string') {
- throw new TypeError('Arguments to path.join must be strings');
- }
- return p;
- }).join('/'));
- };
- // path.relative(from, to)
- // posix version
- exports.relative = function(from, to) {
- from = exports.resolve(from).substr(1);
- to = exports.resolve(to).substr(1);
- function trim(arr) {
- var start = 0;
- for (; start < arr.length; start++) {
- if (arr[start] !== '') break;
- }
- var end = arr.length - 1;
- for (; end >= 0; end--) {
- if (arr[end] !== '') break;
- }
- if (start > end) return [];
- return arr.slice(start, end - start + 1);
- }
- var fromParts = trim(from.split('/'));
- var toParts = trim(to.split('/'));
- var length = Math.min(fromParts.length, toParts.length);
- var samePartsLength = length;
- for (var i = 0; i < length; i++) {
- if (fromParts[i] !== toParts[i]) {
- samePartsLength = i;
- break;
- }
- }
- var outputParts = [];
- for (var i = samePartsLength; i < fromParts.length; i++) {
- outputParts.push('..');
- }
- outputParts = outputParts.concat(toParts.slice(samePartsLength));
- return outputParts.join('/');
- };
- exports.sep = '/';
- exports.delimiter = ':';
- exports.dirname = function (path) {
- if (typeof path !== 'string') path = path + '';
- if (path.length === 0) return '.';
- var code = path.charCodeAt(0);
- var hasRoot = code === 47 /*/*/;
- var end = -1;
- var matchedSlash = true;
- for (var i = path.length - 1; i >= 1; --i) {
- code = path.charCodeAt(i);
- if (code === 47 /*/*/) {
- if (!matchedSlash) {
- end = i;
- break;
- }
- } else {
- // We saw the first non-path separator
- matchedSlash = false;
- }
- }
- if (end === -1) return hasRoot ? '/' : '.';
- if (hasRoot && end === 1) {
- // return '//';
- // Backwards-compat fix:
- return '/';
- }
- return path.slice(0, end);
- };
- function basename(path) {
- if (typeof path !== 'string') path = path + '';
- var start = 0;
- var end = -1;
- var matchedSlash = true;
- var i;
- for (i = path.length - 1; i >= 0; --i) {
- if (path.charCodeAt(i) === 47 /*/*/) {
- // If we reached a path separator that was not part of a set of path
- // separators at the end of the string, stop now
- if (!matchedSlash) {
- start = i + 1;
- break;
- }
- } else if (end === -1) {
- // We saw the first non-path separator, mark this as the end of our
- // path component
- matchedSlash = false;
- end = i + 1;
- }
- }
- if (end === -1) return '';
- return path.slice(start, end);
- }
- // Uses a mixed approach for backwards-compatibility, as ext behavior changed
- // in new Node.js versions, so only basename() above is backported here
- exports.basename = function (path, ext) {
- var f = basename(path);
- if (ext && f.substr(-1 * ext.length) === ext) {
- f = f.substr(0, f.length - ext.length);
- }
- return f;
- };
- exports.extname = function (path) {
- if (typeof path !== 'string') path = path + '';
- var startDot = -1;
- var startPart = 0;
- var end = -1;
- var matchedSlash = true;
- // Track the state of characters (if any) we see before our first dot and
- // after any path separator we find
- var preDotState = 0;
- for (var i = path.length - 1; i >= 0; --i) {
- var code = path.charCodeAt(i);
- if (code === 47 /*/*/) {
- // If we reached a path separator that was not part of a set of path
- // separators at the end of the string, stop now
- if (!matchedSlash) {
- startPart = i + 1;
- break;
- }
- continue;
- }
- if (end === -1) {
- // We saw the first non-path separator, mark this as the end of our
- // extension
- matchedSlash = false;
- end = i + 1;
- }
- if (code === 46 /*.*/) {
- // If this is our first dot, mark it as the start of our extension
- if (startDot === -1)
- startDot = i;
- else if (preDotState !== 1)
- preDotState = 1;
- } else if (startDot !== -1) {
- // We saw a non-dot and non-path separator before our dot, so we should
- // have a good chance at having a non-empty extension
- preDotState = -1;
- }
- }
- if (startDot === -1 || end === -1 ||
- // We saw a non-dot character immediately before the dot
- preDotState === 0 ||
- // The (right-most) trimmed path component is exactly '..'
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
- return '';
- }
- return path.slice(startDot, end);
- };
- function filter (xs, f) {
- if (xs.filter) return xs.filter(f);
- var res = [];
- for (var i = 0; i < xs.length; i++) {
- if (f(xs[i], i, xs)) res.push(xs[i]);
- }
- return res;
- }
- // String.prototype.substr - negative index don't work in IE8
- var substr = 'ab'.substr(-1) === 'b'
- ? function (str, start, len) { return str.substr(start, len) }
- : function (str, start, len) {
- if (start < 0) start = str.length + start;
- return str.substr(start, len);
- }
- ;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 1404)))
- /***/ }),
- /***/ 141:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/swipeAction.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:00:42
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
- */
- var _default = {
- // swipe-action组件
- swipeAction: {
- autoClose: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1411:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-line/props.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- color: {
- type: String,
- default: uni.$u.props.line.color
- },
- // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
- length: {
- type: [String, Number],
- default: uni.$u.props.line.length
- },
- // 线条方向,col-竖向,row-横向
- direction: {
- type: String,
- default: uni.$u.props.line.direction
- },
- // 是否显示细边框
- hairline: {
- type: Boolean,
- default: uni.$u.props.line.hairline
- },
- // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
- margin: {
- type: [String, Number],
- default: uni.$u.props.line.margin
- },
- // 是否虚线,true-虚线,false-实线
- dashed: {
- type: Boolean,
- default: uni.$u.props.line.dashed
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 142:
- /*!***********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/swipeActionItem.js ***!
- \***********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:01:13
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
- */
- var _default = {
- // swipeActionItem 组件
- swipeActionItem: {
- show: false,
- name: '',
- disabled: false,
- threshold: 20,
- autoClose: true,
- options: [],
- duration: 300
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1426:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-steps/props.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 排列方向
- direction: {
- type: String,
- default: uni.$u.props.steps.direction
- },
- // 设置第几个步骤
- current: {
- type: [String, Number],
- default: uni.$u.props.steps.current
- },
- // 激活状态颜色
- activeColor: {
- type: String,
- default: uni.$u.props.steps.activeColor
- },
- // 未激活状态颜色
- inactiveColor: {
- type: String,
- default: uni.$u.props.steps.inactiveColor
- },
- // 激活状态的图标
- activeIcon: {
- type: String,
- default: uni.$u.props.steps.activeIcon
- },
- // 未激活状态图标
- inactiveIcon: {
- type: String,
- default: uni.$u.props.steps.inactiveIcon
- },
- // 是否显示点类型
- dot: {
- type: Boolean,
- default: uni.$u.props.steps.dot
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 143:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/swiper.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:21:38
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
- */
- var _default = {
- // swiper 组件
- swiper: {
- list: function list() {
- return [];
- },
- indicator: false,
- indicatorActiveColor: '#FFFFFF',
- indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
- indicatorStyle: '',
- indicatorMode: 'line',
- autoplay: true,
- current: 0,
- currentItemId: '',
- interval: 3000,
- duration: 300,
- circular: false,
- previousMargin: 0,
- nextMargin: 0,
- acceleration: false,
- displayMultipleItems: 1,
- easingFunction: 'default',
- keyName: 'url',
- imgMode: 'aspectFill',
- height: 130,
- bgColor: '#f3f4f6',
- radius: 4,
- loading: false,
- showTitle: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1434:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-steps-item/props.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 标题
- title: {
- type: [String, Number],
- default: uni.$u.props.stepsItem.title
- },
- // 描述文本
- desc: {
- type: [String, Number],
- default: uni.$u.props.stepsItem.desc
- },
- // 图标大小
- iconSize: {
- type: [String, Number],
- default: uni.$u.props.stepsItem.iconSize
- },
- // 当前步骤是否处于失败状态
- error: {
- type: Boolean,
- default: uni.$u.props.stepsItem.error
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 144:
- /*!************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/swipterIndicator.js ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:22:07
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
- */
- var _default = {
- // swiperIndicator 组件
- swiperIndicator: {
- length: 0,
- current: 0,
- indicatorActiveColor: '',
- indicatorInactiveColor: '',
- indicatorMode: 'line'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1442:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-text/props.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 主题颜色
- type: {
- type: String,
- default: uni.$u.props.text.type
- },
- // 是否显示
- show: {
- type: Boolean,
- default: uni.$u.props.text.show
- },
- // 显示的值
- text: {
- type: [String, Number],
- default: uni.$u.props.text.text
- },
- // 前置图标
- prefixIcon: {
- type: String,
- default: uni.$u.props.text.prefixIcon
- },
- // 后置图标
- suffixIcon: {
- type: String,
- default: uni.$u.props.text.suffixIcon
- },
- // 文本处理的匹配模式
- // text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
- mode: {
- type: String,
- default: uni.$u.props.text.mode
- },
- // mode=link下,配置的链接
- href: {
- type: String,
- default: uni.$u.props.text.href
- },
- // 格式化规则
- format: {
- type: [String, Function],
- default: uni.$u.props.text.format
- },
- // mode=phone时,点击文本是否拨打电话
- call: {
- type: Boolean,
- default: uni.$u.props.text.call
- },
- // 小程序的打开方式
- openType: {
- type: String,
- default: uni.$u.props.text.openType
- },
- // 是否粗体,默认normal
- bold: {
- type: Boolean,
- default: uni.$u.props.text.bold
- },
- // 是否块状
- block: {
- type: Boolean,
- default: uni.$u.props.text.block
- },
- // 文本显示的行数,如果设置,超出此行数,将会显示省略号
- lines: {
- type: [String, Number],
- default: uni.$u.props.text.lines
- },
- // 文本颜色
- color: {
- type: String,
- default: uni.$u.props.text.color
- },
- // 字体大小
- size: {
- type: [String, Number],
- default: uni.$u.props.text.size
- },
- // 图标的样式
- iconStyle: {
- type: [Object, String],
- default: uni.$u.props.text.iconStyle
- },
- // 文字装饰,下划线,中划线等,可选值 none|underline|line-through
- decoration: {
- type: String,
- default: uni.$u.props.text.decoration
- },
- // 外边距,对象、字符串,数值形式均可
- margin: {
- type: [Object, String, Number],
- default: uni.$u.props.text.margin
- },
- // 文本行高
- lineHeight: {
- type: [String, Number],
- default: uni.$u.props.text.lineHeight
- },
- // 文本对齐方式,可选值left|center|right
- align: {
- type: String,
- default: uni.$u.props.text.align
- },
- // 文字换行,可选值break-word|normal|anywhere
- wordWrap: {
- type: String,
- default: uni.$u.props.text.wordWrap
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 1448:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-text/value.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- computed: {
- // 经处理后需要显示的值
- value: function value() {
- var text = this.text,
- mode = this.mode,
- format = this.format,
- href = this.href;
- // 价格类型
- if (mode === 'price') {
- // 如果text不为金额进行提示
- if (!/^\d+(\.\d+)?$/.test(text)) {
- uni.$u.error('金额模式下,text参数需要为金额格式');
- }
- // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的金额格式化处理
- if (uni.$u.test.func(format)) {
- // 如果用户传入的是函数,使用函数格式化
- return format(text);
- }
- // 如果format非正则,非函数,则使用默认的金额格式化方法进行操作
- return uni.$u.priceFormat(text, 2);
- }
- if (mode === 'date') {
- // 判断是否合法的日期或者时间戳
- !uni.$u.test.date(text) && uni.$u.error('日期模式下,text参数需要为日期或时间戳格式');
- // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的格式化处理
- if (uni.$u.test.func(format)) {
- // 如果用户传入的是函数,使用函数格式化
- return format(text);
- }
- if (format) {
- // 如果format非正则,非函数,则使用默认的时间格式化方法进行操作
- return uni.$u.timeFormat(text, format);
- }
- // 如果没有设置format,则设置为默认的时间格式化形式
- return uni.$u.timeFormat(text, 'yyyy-mm-dd');
- }
- if (mode === 'phone') {
- // 判断是否合法的手机号
- // !uni.$u.test.mobile(text) && uni.$u.error('手机号模式下,text参数需要为手机号码格式')
- if (uni.$u.test.func(format)) {
- // 如果用户传入的是函数,使用函数格式化
- return format(text);
- }
- if (format === 'encrypt') {
- // 如果format为encrypt,则将手机号进行星号加密处理
- return "".concat(text.substr(0, 3), "****").concat(text.substr(7));
- }
- return text;
- }
- if (mode === 'name') {
- // 判断是否合法的字符粗
- !(typeof text === 'string') && uni.$u.error('姓名模式下,text参数需要为字符串格式');
- if (uni.$u.test.func(format)) {
- // 如果用户传入的是函数,使用函数格式化
- return format(text);
- }
- if (format === 'encrypt') {
- // 如果format为encrypt,则将姓名进行星号加密处理
- return this.formatName(text);
- }
- return text;
- }
- if (mode === 'link') {
- // 判断是否合法的字符粗
- !uni.$u.test.url(href) && uni.$u.error('超链接模式下,href参数需要为URL格式');
- return text;
- }
- return text;
- }
- },
- methods: {
- // 默认的姓名脱敏规则
- formatName: function formatName(name) {
- var value = '';
- if (name.length === 2) {
- value = name.substr(0, 1) + '*';
- } else if (name.length > 2) {
- var char = '';
- for (var i = 0, len = name.length - 2; i < len; i++) {
- char += '*';
- }
- value = name.substr(0, 1) + char + name.substr(-1, 1);
- } else {
- value = name;
- }
- return value;
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 1449:
- /*!*******************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/mixin/button.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- lang: String,
- sessionFrom: String,
- sendMessageTitle: String,
- sendMessagePath: String,
- sendMessageImg: String,
- showMessageCard: Boolean,
- appParameter: String,
- formType: String,
- openType: String
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 145:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/switch.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:22:24
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
- */
- var _default = {
- // switch
- switch: {
- loading: false,
- disabled: false,
- size: 25,
- activeColor: '#2979ff',
- inactiveColor: '#ffffff',
- value: false,
- activeValue: true,
- inactiveValue: false,
- asyncChange: false,
- space: 0
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1450:
- /*!*********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/mixin/openType.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- openType: String
- },
- methods: {
- onGetUserInfo: function onGetUserInfo(event) {
- this.$emit('getuserinfo', event.detail);
- },
- onContact: function onContact(event) {
- this.$emit('contact', event.detail);
- },
- onGetPhoneNumber: function onGetPhoneNumber(event) {
- this.$emit('getphonenumber', event.detail);
- },
- onError: function onError(event) {
- this.$emit('error', event.detail);
- },
- onLaunchApp: function onLaunchApp(event) {
- this.$emit('launchapp', event.detail);
- },
- onOpenSetting: function onOpenSetting(event) {
- this.$emit('opensetting', event.detail);
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 1458:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-link/props.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 文字颜色
- color: {
- type: String,
- default: uni.$u.props.link.color
- },
- // 字体大小,单位px
- fontSize: {
- type: [String, Number],
- default: uni.$u.props.link.fontSize
- },
- // 是否显示下划线
- underLine: {
- type: Boolean,
- default: uni.$u.props.link.underLine
- },
- // 要跳转的链接
- href: {
- type: String,
- default: uni.$u.props.link.href
- },
- // 小程序中复制到粘贴板的提示语
- mpTips: {
- type: String,
- default: uni.$u.props.link.mpTips
- },
- // 下划线颜色
- lineColor: {
- type: String,
- default: uni.$u.props.link.lineColor
- },
- // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
- text: {
- type: String,
- default: uni.$u.props.link.text
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 146:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/tabbar.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:22:40
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
- */
- var _default = {
- // tabbar
- tabbar: {
- value: null,
- safeAreaInsetBottom: true,
- border: true,
- zIndex: 1,
- activeColor: '#1989fa',
- inactiveColor: '#7d7e80',
- fixed: true,
- placeholder: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 147:
- /*!******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/tabbarItem.js ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:22:55
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
- */
- var _default = {
- //
- tabbarItem: {
- name: null,
- icon: '',
- badge: null,
- dot: false,
- text: '',
- badgeStyle: 'top: 6px;right:2px;'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 148:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/tabs.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:23:14
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
- */
- var _default = {
- //
- tabs: {
- duration: 300,
- list: function list() {
- return [];
- },
- lineColor: '#3c9cff',
- activeStyle: function activeStyle() {
- return {
- color: '#303133'
- };
- },
- inactiveStyle: function inactiveStyle() {
- return {
- color: '#606266'
- };
- },
- lineWidth: 20,
- lineHeight: 3,
- lineBgSize: 'cover',
- itemStyle: function itemStyle() {
- return {
- height: '44px'
- };
- },
- scrollable: true,
- current: 0,
- keyName: 'name'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 149:
- /*!***********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/tag.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:23:37
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
- */
- var _default = {
- // tag 组件
- tag: {
- type: 'primary',
- disabled: false,
- size: 'medium',
- shape: 'square',
- text: '',
- bgColor: '',
- color: '',
- borderColor: '',
- closeColor: '#C6C7CB',
- name: '',
- plainFill: false,
- plain: false,
- closable: false,
- show: true,
- icon: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 15:
- /*!**********************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
- var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
- function _construct(t, e, r) {
- if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
- var o = [null];
- o.push.apply(o, e);
- var p = new (t.bind.apply(t, o))();
- return r && setPrototypeOf(p, r.prototype), p;
- }
- module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 150:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/text.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:23:58
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
- */
- var _default = {
- // text 组件
- text: {
- type: '',
- show: true,
- text: '',
- prefixIcon: '',
- suffixIcon: '',
- mode: '',
- href: '',
- format: '',
- call: false,
- openType: '',
- bold: false,
- block: false,
- lines: '',
- color: '#303133',
- size: 15,
- iconStyle: function iconStyle() {
- return {
- fontSize: '15px'
- };
- },
- decoration: 'none',
- margin: 0,
- lineHeight: '',
- align: 'left',
- wordWrap: 'normal'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 151:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/textarea.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:24:32
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
- */
- var _default = {
- // textarea 组件
- textarea: {
- value: '',
- placeholder: '',
- placeholderClass: 'textarea-placeholder',
- placeholderStyle: 'color: #c0c4cc',
- height: 70,
- confirmType: 'done',
- disabled: false,
- count: false,
- focus: false,
- autoHeight: false,
- fixed: false,
- cursorSpacing: 0,
- cursor: '',
- showConfirmBar: true,
- selectionStart: -1,
- selectionEnd: -1,
- adjustPosition: true,
- disableDefaultPadding: false,
- holdKeyboard: false,
- maxlength: 140,
- border: 'surround',
- formatter: null
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 152:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/toast.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:07:07
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
- */
- var _default = {
- // toast组件
- toast: {
- zIndex: 10090,
- loading: false,
- text: '',
- icon: '',
- type: '',
- loadingMode: '',
- show: '',
- overlay: false,
- position: 'center',
- params: function params() {},
- duration: 2000,
- isTab: false,
- url: '',
- callback: null,
- back: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 153:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/toolbar.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:24:55
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
- */
- var _default = {
- // toolbar 组件
- toolbar: {
- show: true,
- cancelText: '取消',
- confirmText: '确认',
- cancelColor: '#909193',
- confirmColor: '#3c9cff',
- title: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 154:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/tooltip.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:25:14
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
- */
- var _default = {
- // tooltip 组件
- tooltip: {
- text: '',
- copyText: '',
- size: 14,
- color: '#606266',
- bgColor: 'transparent',
- direction: 'top',
- zIndex: 10071,
- showCopy: true,
- buttons: function buttons() {
- return [];
- },
- overlay: true,
- showToast: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 155:
- /*!******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/transition.js ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:59:00
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
- */
- var _default = {
- // transition动画组件的props
- transition: {
- show: false,
- mode: 'fade',
- duration: '300',
- timingFunction: 'ease-out'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 156:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/upload.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:09:50
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
- */
- var _default = {
- // upload组件
- upload: {
- accept: 'image',
- capture: function capture() {
- return ['album', 'camera'];
- },
- compressed: true,
- camera: 'back',
- maxDuration: 60,
- uploadIcon: 'camera-fill',
- uploadIconColor: '#D3D4D6',
- useBeforeRead: false,
- previewFullImage: true,
- maxCount: 52,
- disabled: false,
- imageMode: 'aspectFill',
- name: '',
- sizeType: function sizeType() {
- return ['original', 'compressed'];
- },
- multiple: false,
- deletable: true,
- maxSize: Number.MAX_VALUE,
- fileList: function fileList() {
- return [];
- },
- uploadText: '',
- width: 80,
- height: 80,
- previewImage: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 157:
- /*!********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/zIndex.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- // uniapp在H5中各API的z-index值如下:
- /**
- * actionsheet: 999
- * modal: 999
- * navigate: 998
- * tabbar: 998
- * toast: 999
- */
- var _default = {
- toast: 10090,
- noNetwork: 10080,
- // popup包含popup,actionsheet,keyboard,picker的值
- popup: 10075,
- mask: 10070,
- navbar: 980,
- topTips: 975,
- sticky: 970,
- indexListSticky: 965
- };
- exports.default = _default;
- /***/ }),
- /***/ 158:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/function/platform.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /**
- * 注意:
- * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
- * module.exports = {
- * transpileDependencies: ['uview-v2']
- * }
- */
- var platform = 'none';
- platform = 'vue2';
- platform = 'weixin';
- platform = 'mp';
- var _default = platform;
- exports.default = _default;
- /***/ }),
- /***/ 159:
- /*!****************************************************!*\
- !*** ./node_modules/vue-i18n/dist/vue-i18n.esm.js ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /*!
- * vue-i18n v8.28.2
- * (c) 2022 kazuya kawaguchi
- * Released under the MIT License.
- */
- /* */
- /**
- * constants
- */
- var numberFormatKeys = [
- 'compactDisplay',
- 'currency',
- 'currencyDisplay',
- 'currencySign',
- 'localeMatcher',
- 'notation',
- 'numberingSystem',
- 'signDisplay',
- 'style',
- 'unit',
- 'unitDisplay',
- 'useGrouping',
- 'minimumIntegerDigits',
- 'minimumFractionDigits',
- 'maximumFractionDigits',
- 'minimumSignificantDigits',
- 'maximumSignificantDigits'
- ];
- var dateTimeFormatKeys = [
- 'dateStyle',
- 'timeStyle',
- 'calendar',
- 'localeMatcher',
- "hour12",
- "hourCycle",
- "timeZone",
- "formatMatcher",
- 'weekday',
- 'era',
- 'year',
- 'month',
- 'day',
- 'hour',
- 'minute',
- 'second',
- 'timeZoneName' ];
- /**
- * utilities
- */
- function warn (msg, err) {
- if (typeof console !== 'undefined') {
- console.warn('[vue-i18n] ' + msg);
- /* istanbul ignore if */
- if (err) {
- console.warn(err.stack);
- }
- }
- }
- function error (msg, err) {
- if (typeof console !== 'undefined') {
- console.error('[vue-i18n] ' + msg);
- /* istanbul ignore if */
- if (err) {
- console.error(err.stack);
- }
- }
- }
- var isArray = Array.isArray;
- function isObject (obj) {
- return obj !== null && typeof obj === 'object'
- }
- function isBoolean (val) {
- return typeof val === 'boolean'
- }
- function isString (val) {
- return typeof val === 'string'
- }
- var toString = Object.prototype.toString;
- var OBJECT_STRING = '[object Object]';
- function isPlainObject (obj) {
- return toString.call(obj) === OBJECT_STRING
- }
- function isNull (val) {
- return val === null || val === undefined
- }
- function isFunction (val) {
- return typeof val === 'function'
- }
- function parseArgs () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- var locale = null;
- var params = null;
- if (args.length === 1) {
- if (isObject(args[0]) || isArray(args[0])) {
- params = args[0];
- } else if (typeof args[0] === 'string') {
- locale = args[0];
- }
- } else if (args.length === 2) {
- if (typeof args[0] === 'string') {
- locale = args[0];
- }
- /* istanbul ignore if */
- if (isObject(args[1]) || isArray(args[1])) {
- params = args[1];
- }
- }
- return { locale: locale, params: params }
- }
- function looseClone (obj) {
- return JSON.parse(JSON.stringify(obj))
- }
- function remove (arr, item) {
- if (arr.delete(item)) {
- return arr
- }
- }
- function arrayFrom (arr) {
- var ret = [];
- arr.forEach(function (a) { return ret.push(a); });
- return ret
- }
- function includes (arr, item) {
- return !!~arr.indexOf(item)
- }
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- function hasOwn (obj, key) {
- return hasOwnProperty.call(obj, key)
- }
- function merge (target) {
- var arguments$1 = arguments;
- var output = Object(target);
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments$1[i];
- if (source !== undefined && source !== null) {
- var key = (void 0);
- for (key in source) {
- if (hasOwn(source, key)) {
- if (isObject(source[key])) {
- output[key] = merge(output[key], source[key]);
- } else {
- output[key] = source[key];
- }
- }
- }
- }
- }
- return output
- }
- function looseEqual (a, b) {
- if (a === b) { return true }
- var isObjectA = isObject(a);
- var isObjectB = isObject(b);
- if (isObjectA && isObjectB) {
- try {
- var isArrayA = isArray(a);
- var isArrayB = isArray(b);
- if (isArrayA && isArrayB) {
- return a.length === b.length && a.every(function (e, i) {
- return looseEqual(e, b[i])
- })
- } else if (!isArrayA && !isArrayB) {
- var keysA = Object.keys(a);
- var keysB = Object.keys(b);
- return keysA.length === keysB.length && keysA.every(function (key) {
- return looseEqual(a[key], b[key])
- })
- } else {
- /* istanbul ignore next */
- return false
- }
- } catch (e) {
- /* istanbul ignore next */
- return false
- }
- } else if (!isObjectA && !isObjectB) {
- return String(a) === String(b)
- } else {
- return false
- }
- }
- /**
- * Sanitizes html special characters from input strings. For mitigating risk of XSS attacks.
- * @param rawText The raw input from the user that should be escaped.
- */
- function escapeHtml(rawText) {
- return rawText
- .replace(/</g, '<')
- .replace(/>/g, '>')
- .replace(/"/g, '"')
- .replace(/'/g, ''')
- }
- /**
- * Escapes html tags and special symbols from all provided params which were returned from parseArgs().params.
- * This method performs an in-place operation on the params object.
- *
- * @param {any} params Parameters as provided from `parseArgs().params`.
- * May be either an array of strings or a string->any map.
- *
- * @returns The manipulated `params` object.
- */
- function escapeParams(params) {
- if(params != null) {
- Object.keys(params).forEach(function (key) {
- if(typeof(params[key]) == 'string') {
- params[key] = escapeHtml(params[key]);
- }
- });
- }
- return params
- }
- /* */
- function extend (Vue) {
- if (!Vue.prototype.hasOwnProperty('$i18n')) {
- // $FlowFixMe
- Object.defineProperty(Vue.prototype, '$i18n', {
- get: function get () { return this._i18n }
- });
- }
- Vue.prototype.$t = function (key) {
- var values = [], len = arguments.length - 1;
- while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];
- var i18n = this.$i18n;
- return i18n._t.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this ].concat( values ))
- };
- Vue.prototype.$tc = function (key, choice) {
- var values = [], len = arguments.length - 2;
- while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];
- var i18n = this.$i18n;
- return i18n._tc.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this, choice ].concat( values ))
- };
- Vue.prototype.$te = function (key, locale) {
- var i18n = this.$i18n;
- return i18n._te(key, i18n.locale, i18n._getMessages(), locale)
- };
- Vue.prototype.$d = function (value) {
- var ref;
- var args = [], len = arguments.length - 1;
- while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
- return (ref = this.$i18n).d.apply(ref, [ value ].concat( args ))
- };
- Vue.prototype.$n = function (value) {
- var ref;
- var args = [], len = arguments.length - 1;
- while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
- return (ref = this.$i18n).n.apply(ref, [ value ].concat( args ))
- };
- }
- /* */
- /**
- * Mixin
- *
- * If `bridge` mode, empty mixin is returned,
- * else regulary mixin implementation is returned.
- */
- function defineMixin (bridge) {
- if ( bridge === void 0 ) bridge = false;
- function mounted () {
- if (this !== this.$root && this.$options.__INTLIFY_META__ && this.$el) {
- this.$el.setAttribute('data-intlify', this.$options.__INTLIFY_META__);
- }
- }
- return bridge
- ? { mounted: mounted } // delegate `vue-i18n-bridge` mixin implementation
- : { // regulary
- beforeCreate: function beforeCreate () {
- var options = this.$options;
- options.i18n = options.i18n || ((options.__i18nBridge || options.__i18n) ? {} : null);
- if (options.i18n) {
- if (options.i18n instanceof VueI18n) {
- // init locale messages via custom blocks
- if ((options.__i18nBridge || options.__i18n)) {
- try {
- var localeMessages = options.i18n && options.i18n.messages ? options.i18n.messages : {};
- var _i18n = options.__i18nBridge || options.__i18n;
- _i18n.forEach(function (resource) {
- localeMessages = merge(localeMessages, JSON.parse(resource));
- });
- Object.keys(localeMessages).forEach(function (locale) {
- options.i18n.mergeLocaleMessage(locale, localeMessages[locale]);
- });
- } catch (e) {
- if (true) {
- error("Cannot parse locale messages via custom blocks.", e);
- }
- }
- }
- this._i18n = options.i18n;
- this._i18nWatcher = this._i18n.watchI18nData();
- } else if (isPlainObject(options.i18n)) {
- var rootI18n = this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n
- ? this.$root.$i18n
- : null;
- // component local i18n
- if (rootI18n) {
- options.i18n.root = this.$root;
- options.i18n.formatter = rootI18n.formatter;
- options.i18n.fallbackLocale = rootI18n.fallbackLocale;
- options.i18n.formatFallbackMessages = rootI18n.formatFallbackMessages;
- options.i18n.silentTranslationWarn = rootI18n.silentTranslationWarn;
- options.i18n.silentFallbackWarn = rootI18n.silentFallbackWarn;
- options.i18n.pluralizationRules = rootI18n.pluralizationRules;
- options.i18n.preserveDirectiveContent = rootI18n.preserveDirectiveContent;
- }
- // init locale messages via custom blocks
- if ((options.__i18nBridge || options.__i18n)) {
- try {
- var localeMessages$1 = options.i18n && options.i18n.messages ? options.i18n.messages : {};
- var _i18n$1 = options.__i18nBridge || options.__i18n;
- _i18n$1.forEach(function (resource) {
- localeMessages$1 = merge(localeMessages$1, JSON.parse(resource));
- });
- options.i18n.messages = localeMessages$1;
- } catch (e) {
- if (true) {
- warn("Cannot parse locale messages via custom blocks.", e);
- }
- }
- }
- var ref = options.i18n;
- var sharedMessages = ref.sharedMessages;
- if (sharedMessages && isPlainObject(sharedMessages)) {
- options.i18n.messages = merge(options.i18n.messages, sharedMessages);
- }
- this._i18n = new VueI18n(options.i18n);
- this._i18nWatcher = this._i18n.watchI18nData();
- if (options.i18n.sync === undefined || !!options.i18n.sync) {
- this._localeWatcher = this.$i18n.watchLocale();
- }
- if (rootI18n) {
- rootI18n.onComponentInstanceCreated(this._i18n);
- }
- } else {
- if (true) {
- warn("Cannot be interpreted 'i18n' option.");
- }
- }
- } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {
- // root i18n
- this._i18n = this.$root.$i18n;
- } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {
- // parent i18n
- this._i18n = options.parent.$i18n;
- }
- },
- beforeMount: function beforeMount () {
- var options = this.$options;
- options.i18n = options.i18n || ((options.__i18nBridge || options.__i18n) ? {} : null);
- if (options.i18n) {
- if (options.i18n instanceof VueI18n) {
- // init locale messages via custom blocks
- this._i18n.subscribeDataChanging(this);
- this._subscribing = true;
- } else if (isPlainObject(options.i18n)) {
- this._i18n.subscribeDataChanging(this);
- this._subscribing = true;
- } else {
- if (true) {
- warn("Cannot be interpreted 'i18n' option.");
- }
- }
- } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {
- this._i18n.subscribeDataChanging(this);
- this._subscribing = true;
- } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {
- this._i18n.subscribeDataChanging(this);
- this._subscribing = true;
- }
- },
- mounted: mounted,
- beforeDestroy: function beforeDestroy () {
- if (!this._i18n) { return }
- var self = this;
- this.$nextTick(function () {
- if (self._subscribing) {
- self._i18n.unsubscribeDataChanging(self);
- delete self._subscribing;
- }
- if (self._i18nWatcher) {
- self._i18nWatcher();
- self._i18n.destroyVM();
- delete self._i18nWatcher;
- }
- if (self._localeWatcher) {
- self._localeWatcher();
- delete self._localeWatcher;
- }
- });
- }
- }
- }
- /* */
- var interpolationComponent = {
- name: 'i18n',
- functional: true,
- props: {
- tag: {
- type: [String, Boolean, Object],
- default: 'span'
- },
- path: {
- type: String,
- required: true
- },
- locale: {
- type: String
- },
- places: {
- type: [Array, Object]
- }
- },
- render: function render (h, ref) {
- var data = ref.data;
- var parent = ref.parent;
- var props = ref.props;
- var slots = ref.slots;
- var $i18n = parent.$i18n;
- if (!$i18n) {
- if (true) {
- warn('Cannot find VueI18n instance!');
- }
- return
- }
- var path = props.path;
- var locale = props.locale;
- var places = props.places;
- var params = slots();
- var children = $i18n.i(
- path,
- locale,
- onlyHasDefaultPlace(params) || places
- ? useLegacyPlaces(params.default, places)
- : params
- );
- var tag = (!!props.tag && props.tag !== true) || props.tag === false ? props.tag : 'span';
- return tag ? h(tag, data, children) : children
- }
- };
- function onlyHasDefaultPlace (params) {
- var prop;
- for (prop in params) {
- if (prop !== 'default') { return false }
- }
- return Boolean(prop)
- }
- function useLegacyPlaces (children, places) {
- var params = places ? createParamsFromPlaces(places) : {};
- if (!children) { return params }
- // Filter empty text nodes
- children = children.filter(function (child) {
- return child.tag || child.text.trim() !== ''
- });
- var everyPlace = children.every(vnodeHasPlaceAttribute);
- if ( true && everyPlace) {
- warn('`place` attribute is deprecated in next major version. Please switch to Vue slots.');
- }
- return children.reduce(
- everyPlace ? assignChildPlace : assignChildIndex,
- params
- )
- }
- function createParamsFromPlaces (places) {
- if (true) {
- warn('`places` prop is deprecated in next major version. Please switch to Vue slots.');
- }
- return Array.isArray(places)
- ? places.reduce(assignChildIndex, {})
- : Object.assign({}, places)
- }
- function assignChildPlace (params, child) {
- if (child.data && child.data.attrs && child.data.attrs.place) {
- params[child.data.attrs.place] = child;
- }
- return params
- }
- function assignChildIndex (params, child, index) {
- params[index] = child;
- return params
- }
- function vnodeHasPlaceAttribute (vnode) {
- return Boolean(vnode.data && vnode.data.attrs && vnode.data.attrs.place)
- }
- /* */
- var numberComponent = {
- name: 'i18n-n',
- functional: true,
- props: {
- tag: {
- type: [String, Boolean, Object],
- default: 'span'
- },
- value: {
- type: Number,
- required: true
- },
- format: {
- type: [String, Object]
- },
- locale: {
- type: String
- }
- },
- render: function render (h, ref) {
- var props = ref.props;
- var parent = ref.parent;
- var data = ref.data;
- var i18n = parent.$i18n;
- if (!i18n) {
- if (true) {
- warn('Cannot find VueI18n instance!');
- }
- return null
- }
- var key = null;
- var options = null;
- if (isString(props.format)) {
- key = props.format;
- } else if (isObject(props.format)) {
- if (props.format.key) {
- key = props.format.key;
- }
- // Filter out number format options only
- options = Object.keys(props.format).reduce(function (acc, prop) {
- var obj;
- if (includes(numberFormatKeys, prop)) {
- return Object.assign({}, acc, ( obj = {}, obj[prop] = props.format[prop], obj ))
- }
- return acc
- }, null);
- }
- var locale = props.locale || i18n.locale;
- var parts = i18n._ntp(props.value, locale, key, options);
- var values = parts.map(function (part, index) {
- var obj;
- var slot = data.scopedSlots && data.scopedSlots[part.type];
- return slot ? slot(( obj = {}, obj[part.type] = part.value, obj.index = index, obj.parts = parts, obj )) : part.value
- });
- var tag = (!!props.tag && props.tag !== true) || props.tag === false ? props.tag : 'span';
- return tag
- ? h(tag, {
- attrs: data.attrs,
- 'class': data['class'],
- staticClass: data.staticClass
- }, values)
- : values
- }
- };
- /* */
- function bind (el, binding, vnode) {
- if (!assert(el, vnode)) { return }
- t(el, binding, vnode);
- }
- function update (el, binding, vnode, oldVNode) {
- if (!assert(el, vnode)) { return }
- var i18n = vnode.context.$i18n;
- if (localeEqual(el, vnode) &&
- (looseEqual(binding.value, binding.oldValue) &&
- looseEqual(el._localeMessage, i18n.getLocaleMessage(i18n.locale)))) { return }
- t(el, binding, vnode);
- }
- function unbind (el, binding, vnode, oldVNode) {
- var vm = vnode.context;
- if (!vm) {
- warn('Vue instance does not exists in VNode context');
- return
- }
- var i18n = vnode.context.$i18n || {};
- if (!binding.modifiers.preserve && !i18n.preserveDirectiveContent) {
- el.textContent = '';
- }
- el._vt = undefined;
- delete el['_vt'];
- el._locale = undefined;
- delete el['_locale'];
- el._localeMessage = undefined;
- delete el['_localeMessage'];
- }
- function assert (el, vnode) {
- var vm = vnode.context;
- if (!vm) {
- warn('Vue instance does not exists in VNode context');
- return false
- }
- if (!vm.$i18n) {
- warn('VueI18n instance does not exists in Vue instance');
- return false
- }
- return true
- }
- function localeEqual (el, vnode) {
- var vm = vnode.context;
- return el._locale === vm.$i18n.locale
- }
- function t (el, binding, vnode) {
- var ref$1, ref$2;
- var value = binding.value;
- var ref = parseValue(value);
- var path = ref.path;
- var locale = ref.locale;
- var args = ref.args;
- var choice = ref.choice;
- if (!path && !locale && !args) {
- warn('value type not supported');
- return
- }
- if (!path) {
- warn('`path` is required in v-t directive');
- return
- }
- var vm = vnode.context;
- if (choice != null) {
- el._vt = el.textContent = (ref$1 = vm.$i18n).tc.apply(ref$1, [ path, choice ].concat( makeParams(locale, args) ));
- } else {
- el._vt = el.textContent = (ref$2 = vm.$i18n).t.apply(ref$2, [ path ].concat( makeParams(locale, args) ));
- }
- el._locale = vm.$i18n.locale;
- el._localeMessage = vm.$i18n.getLocaleMessage(vm.$i18n.locale);
- }
- function parseValue (value) {
- var path;
- var locale;
- var args;
- var choice;
- if (isString(value)) {
- path = value;
- } else if (isPlainObject(value)) {
- path = value.path;
- locale = value.locale;
- args = value.args;
- choice = value.choice;
- }
- return { path: path, locale: locale, args: args, choice: choice }
- }
- function makeParams (locale, args) {
- var params = [];
- locale && params.push(locale);
- if (args && (Array.isArray(args) || isPlainObject(args))) {
- params.push(args);
- }
- return params
- }
- var Vue;
- function install (_Vue, options) {
- if ( options === void 0 ) options = { bridge: false };
- /* istanbul ignore if */
- if ( true && install.installed && _Vue === Vue) {
- warn('already installed.');
- return
- }
- install.installed = true;
- Vue = _Vue;
- var version = (Vue.version && Number(Vue.version.split('.')[0])) || -1;
- /* istanbul ignore if */
- if ( true && version < 2) {
- warn(("vue-i18n (" + (install.version) + ") need to use Vue 2.0 or later (Vue: " + (Vue.version) + ")."));
- return
- }
- extend(Vue);
- Vue.mixin(defineMixin(options.bridge));
- Vue.directive('t', { bind: bind, update: update, unbind: unbind });
- Vue.component(interpolationComponent.name, interpolationComponent);
- Vue.component(numberComponent.name, numberComponent);
- // use simple mergeStrategies to prevent i18n instance lose '__proto__'
- var strats = Vue.config.optionMergeStrategies;
- strats.i18n = function (parentVal, childVal) {
- return childVal === undefined
- ? parentVal
- : childVal
- };
- }
- /* */
- var BaseFormatter = function BaseFormatter () {
- this._caches = Object.create(null);
- };
- BaseFormatter.prototype.interpolate = function interpolate (message, values) {
- if (!values) {
- return [message]
- }
- var tokens = this._caches[message];
- if (!tokens) {
- tokens = parse(message);
- this._caches[message] = tokens;
- }
- return compile(tokens, values)
- };
- var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
- var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
- function parse (format) {
- var tokens = [];
- var position = 0;
- var text = '';
- while (position < format.length) {
- var char = format[position++];
- if (char === '{') {
- if (text) {
- tokens.push({ type: 'text', value: text });
- }
- text = '';
- var sub = '';
- char = format[position++];
- while (char !== undefined && char !== '}') {
- sub += char;
- char = format[position++];
- }
- var isClosed = char === '}';
- var type = RE_TOKEN_LIST_VALUE.test(sub)
- ? 'list'
- : isClosed && RE_TOKEN_NAMED_VALUE.test(sub)
- ? 'named'
- : 'unknown';
- tokens.push({ value: sub, type: type });
- } else if (char === '%') {
- // when found rails i18n syntax, skip text capture
- if (format[(position)] !== '{') {
- text += char;
- }
- } else {
- text += char;
- }
- }
- text && tokens.push({ type: 'text', value: text });
- return tokens
- }
- function compile (tokens, values) {
- var compiled = [];
- var index = 0;
- var mode = Array.isArray(values)
- ? 'list'
- : isObject(values)
- ? 'named'
- : 'unknown';
- if (mode === 'unknown') { return compiled }
- while (index < tokens.length) {
- var token = tokens[index];
- switch (token.type) {
- case 'text':
- compiled.push(token.value);
- break
- case 'list':
- compiled.push(values[parseInt(token.value, 10)]);
- break
- case 'named':
- if (mode === 'named') {
- compiled.push((values)[token.value]);
- } else {
- if (true) {
- warn(("Type of token '" + (token.type) + "' and format of value '" + mode + "' don't match!"));
- }
- }
- break
- case 'unknown':
- if (true) {
- warn("Detect 'unknown' type of token!");
- }
- break
- }
- index++;
- }
- return compiled
- }
- /* */
- /**
- * Path parser
- * - Inspired:
- * Vue.js Path parser
- */
- // actions
- var APPEND = 0;
- var PUSH = 1;
- var INC_SUB_PATH_DEPTH = 2;
- var PUSH_SUB_PATH = 3;
- // states
- var BEFORE_PATH = 0;
- var IN_PATH = 1;
- var BEFORE_IDENT = 2;
- var IN_IDENT = 3;
- var IN_SUB_PATH = 4;
- var IN_SINGLE_QUOTE = 5;
- var IN_DOUBLE_QUOTE = 6;
- var AFTER_PATH = 7;
- var ERROR = 8;
- var pathStateMachine = [];
- pathStateMachine[BEFORE_PATH] = {
- 'ws': [BEFORE_PATH],
- 'ident': [IN_IDENT, APPEND],
- '[': [IN_SUB_PATH],
- 'eof': [AFTER_PATH]
- };
- pathStateMachine[IN_PATH] = {
- 'ws': [IN_PATH],
- '.': [BEFORE_IDENT],
- '[': [IN_SUB_PATH],
- 'eof': [AFTER_PATH]
- };
- pathStateMachine[BEFORE_IDENT] = {
- 'ws': [BEFORE_IDENT],
- 'ident': [IN_IDENT, APPEND],
- '0': [IN_IDENT, APPEND],
- 'number': [IN_IDENT, APPEND]
- };
- pathStateMachine[IN_IDENT] = {
- 'ident': [IN_IDENT, APPEND],
- '0': [IN_IDENT, APPEND],
- 'number': [IN_IDENT, APPEND],
- 'ws': [IN_PATH, PUSH],
- '.': [BEFORE_IDENT, PUSH],
- '[': [IN_SUB_PATH, PUSH],
- 'eof': [AFTER_PATH, PUSH]
- };
- pathStateMachine[IN_SUB_PATH] = {
- "'": [IN_SINGLE_QUOTE, APPEND],
- '"': [IN_DOUBLE_QUOTE, APPEND],
- '[': [IN_SUB_PATH, INC_SUB_PATH_DEPTH],
- ']': [IN_PATH, PUSH_SUB_PATH],
- 'eof': ERROR,
- 'else': [IN_SUB_PATH, APPEND]
- };
- pathStateMachine[IN_SINGLE_QUOTE] = {
- "'": [IN_SUB_PATH, APPEND],
- 'eof': ERROR,
- 'else': [IN_SINGLE_QUOTE, APPEND]
- };
- pathStateMachine[IN_DOUBLE_QUOTE] = {
- '"': [IN_SUB_PATH, APPEND],
- 'eof': ERROR,
- 'else': [IN_DOUBLE_QUOTE, APPEND]
- };
- /**
- * Check if an expression is a literal value.
- */
- var literalValueRE = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
- function isLiteral (exp) {
- return literalValueRE.test(exp)
- }
- /**
- * Strip quotes from a string
- */
- function stripQuotes (str) {
- var a = str.charCodeAt(0);
- var b = str.charCodeAt(str.length - 1);
- return a === b && (a === 0x22 || a === 0x27)
- ? str.slice(1, -1)
- : str
- }
- /**
- * Determine the type of a character in a keypath.
- */
- function getPathCharType (ch) {
- if (ch === undefined || ch === null) { return 'eof' }
- var code = ch.charCodeAt(0);
- switch (code) {
- case 0x5B: // [
- case 0x5D: // ]
- case 0x2E: // .
- case 0x22: // "
- case 0x27: // '
- return ch
- case 0x5F: // _
- case 0x24: // $
- case 0x2D: // -
- return 'ident'
- case 0x09: // Tab
- case 0x0A: // Newline
- case 0x0D: // Return
- case 0xA0: // No-break space
- case 0xFEFF: // Byte Order Mark
- case 0x2028: // Line Separator
- case 0x2029: // Paragraph Separator
- return 'ws'
- }
- return 'ident'
- }
- /**
- * Format a subPath, return its plain form if it is
- * a literal string or number. Otherwise prepend the
- * dynamic indicator (*).
- */
- function formatSubPath (path) {
- var trimmed = path.trim();
- // invalid leading 0
- if (path.charAt(0) === '0' && isNaN(path)) { return false }
- return isLiteral(trimmed) ? stripQuotes(trimmed) : '*' + trimmed
- }
- /**
- * Parse a string path into an array of segments
- */
- function parse$1 (path) {
- var keys = [];
- var index = -1;
- var mode = BEFORE_PATH;
- var subPathDepth = 0;
- var c;
- var key;
- var newChar;
- var type;
- var transition;
- var action;
- var typeMap;
- var actions = [];
- actions[PUSH] = function () {
- if (key !== undefined) {
- keys.push(key);
- key = undefined;
- }
- };
- actions[APPEND] = function () {
- if (key === undefined) {
- key = newChar;
- } else {
- key += newChar;
- }
- };
- actions[INC_SUB_PATH_DEPTH] = function () {
- actions[APPEND]();
- subPathDepth++;
- };
- actions[PUSH_SUB_PATH] = function () {
- if (subPathDepth > 0) {
- subPathDepth--;
- mode = IN_SUB_PATH;
- actions[APPEND]();
- } else {
- subPathDepth = 0;
- if (key === undefined) { return false }
- key = formatSubPath(key);
- if (key === false) {
- return false
- } else {
- actions[PUSH]();
- }
- }
- };
- function maybeUnescapeQuote () {
- var nextChar = path[index + 1];
- if ((mode === IN_SINGLE_QUOTE && nextChar === "'") ||
- (mode === IN_DOUBLE_QUOTE && nextChar === '"')) {
- index++;
- newChar = '\\' + nextChar;
- actions[APPEND]();
- return true
- }
- }
- while (mode !== null) {
- index++;
- c = path[index];
- if (c === '\\' && maybeUnescapeQuote()) {
- continue
- }
- type = getPathCharType(c);
- typeMap = pathStateMachine[mode];
- transition = typeMap[type] || typeMap['else'] || ERROR;
- if (transition === ERROR) {
- return // parse error
- }
- mode = transition[0];
- action = actions[transition[1]];
- if (action) {
- newChar = transition[2];
- newChar = newChar === undefined
- ? c
- : newChar;
- if (action() === false) {
- return
- }
- }
- if (mode === AFTER_PATH) {
- return keys
- }
- }
- }
- var I18nPath = function I18nPath () {
- this._cache = Object.create(null);
- };
- /**
- * External parse that check for a cache hit first
- */
- I18nPath.prototype.parsePath = function parsePath (path) {
- var hit = this._cache[path];
- if (!hit) {
- hit = parse$1(path);
- if (hit) {
- this._cache[path] = hit;
- }
- }
- return hit || []
- };
- /**
- * Get path value from path string
- */
- I18nPath.prototype.getPathValue = function getPathValue (obj, path) {
- if (!isObject(obj)) { return null }
- var paths = this.parsePath(path);
- if (paths.length === 0) {
- return null
- } else {
- var length = paths.length;
- var last = obj;
- var i = 0;
- while (i < length) {
- var value = last[paths[i]];
- if (value === undefined || value === null) {
- return null
- }
- last = value;
- i++;
- }
- return last
- }
- };
- /* */
- var htmlTagMatcher = /<\/?[\w\s="/.':;#-\/]+>/;
- var linkKeyMatcher = /(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g;
- var linkKeyPrefixMatcher = /^@(?:\.([a-zA-Z]+))?:/;
- var bracketsMatcher = /[()]/g;
- var defaultModifiers = {
- 'upper': function (str) { return str.toLocaleUpperCase(); },
- 'lower': function (str) { return str.toLocaleLowerCase(); },
- 'capitalize': function (str) { return ("" + (str.charAt(0).toLocaleUpperCase()) + (str.substr(1))); }
- };
- var defaultFormatter = new BaseFormatter();
- var VueI18n = function VueI18n (options) {
- var this$1 = this;
- if ( options === void 0 ) options = {};
- // Auto install if it is not done yet and `window` has `Vue`.
- // To allow users to avoid auto-installation in some cases,
- // this code should be placed here. See #290
- /* istanbul ignore if */
- if (!Vue && typeof window !== 'undefined' && window.Vue) {
- install(window.Vue);
- }
- var locale = options.locale || 'en-US';
- var fallbackLocale = options.fallbackLocale === false
- ? false
- : options.fallbackLocale || 'en-US';
- var messages = options.messages || {};
- var dateTimeFormats = options.dateTimeFormats || options.datetimeFormats || {};
- var numberFormats = options.numberFormats || {};
- this._vm = null;
- this._formatter = options.formatter || defaultFormatter;
- this._modifiers = options.modifiers || {};
- this._missing = options.missing || null;
- this._root = options.root || null;
- this._sync = options.sync === undefined ? true : !!options.sync;
- this._fallbackRoot = options.fallbackRoot === undefined
- ? true
- : !!options.fallbackRoot;
- this._fallbackRootWithEmptyString = options.fallbackRootWithEmptyString === undefined
- ? true
- : !!options.fallbackRootWithEmptyString;
- this._formatFallbackMessages = options.formatFallbackMessages === undefined
- ? false
- : !!options.formatFallbackMessages;
- this._silentTranslationWarn = options.silentTranslationWarn === undefined
- ? false
- : options.silentTranslationWarn;
- this._silentFallbackWarn = options.silentFallbackWarn === undefined
- ? false
- : !!options.silentFallbackWarn;
- this._dateTimeFormatters = {};
- this._numberFormatters = {};
- this._path = new I18nPath();
- this._dataListeners = new Set();
- this._componentInstanceCreatedListener = options.componentInstanceCreatedListener || null;
- this._preserveDirectiveContent = options.preserveDirectiveContent === undefined
- ? false
- : !!options.preserveDirectiveContent;
- this.pluralizationRules = options.pluralizationRules || {};
- this._warnHtmlInMessage = options.warnHtmlInMessage || 'off';
- this._postTranslation = options.postTranslation || null;
- this._escapeParameterHtml = options.escapeParameterHtml || false;
- if ('__VUE_I18N_BRIDGE__' in options) {
- this.__VUE_I18N_BRIDGE__ = options.__VUE_I18N_BRIDGE__;
- }
- /**
- * @param choice {number} a choice index given by the input to $tc: `$tc('path.to.rule', choiceIndex)`
- * @param choicesLength {number} an overall amount of available choices
- * @returns a final choice index
- */
- this.getChoiceIndex = function (choice, choicesLength) {
- var thisPrototype = Object.getPrototypeOf(this$1);
- if (thisPrototype && thisPrototype.getChoiceIndex) {
- var prototypeGetChoiceIndex = (thisPrototype.getChoiceIndex);
- return (prototypeGetChoiceIndex).call(this$1, choice, choicesLength)
- }
- // Default (old) getChoiceIndex implementation - english-compatible
- var defaultImpl = function (_choice, _choicesLength) {
- _choice = Math.abs(_choice);
- if (_choicesLength === 2) {
- return _choice
- ? _choice > 1
- ? 1
- : 0
- : 1
- }
- return _choice ? Math.min(_choice, 2) : 0
- };
- if (this$1.locale in this$1.pluralizationRules) {
- return this$1.pluralizationRules[this$1.locale].apply(this$1, [choice, choicesLength])
- } else {
- return defaultImpl(choice, choicesLength)
- }
- };
- this._exist = function (message, key) {
- if (!message || !key) { return false }
- if (!isNull(this$1._path.getPathValue(message, key))) { return true }
- // fallback for flat key
- if (message[key]) { return true }
- return false
- };
- if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {
- Object.keys(messages).forEach(function (locale) {
- this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);
- });
- }
- this._initVM({
- locale: locale,
- fallbackLocale: fallbackLocale,
- messages: messages,
- dateTimeFormats: dateTimeFormats,
- numberFormats: numberFormats
- });
- };
- var prototypeAccessors = { vm: { configurable: true },messages: { configurable: true },dateTimeFormats: { configurable: true },numberFormats: { configurable: true },availableLocales: { configurable: true },locale: { configurable: true },fallbackLocale: { configurable: true },formatFallbackMessages: { configurable: true },missing: { configurable: true },formatter: { configurable: true },silentTranslationWarn: { configurable: true },silentFallbackWarn: { configurable: true },preserveDirectiveContent: { configurable: true },warnHtmlInMessage: { configurable: true },postTranslation: { configurable: true },sync: { configurable: true } };
- VueI18n.prototype._checkLocaleMessage = function _checkLocaleMessage (locale, level, message) {
- var paths = [];
- var fn = function (level, locale, message, paths) {
- if (isPlainObject(message)) {
- Object.keys(message).forEach(function (key) {
- var val = message[key];
- if (isPlainObject(val)) {
- paths.push(key);
- paths.push('.');
- fn(level, locale, val, paths);
- paths.pop();
- paths.pop();
- } else {
- paths.push(key);
- fn(level, locale, val, paths);
- paths.pop();
- }
- });
- } else if (isArray(message)) {
- message.forEach(function (item, index) {
- if (isPlainObject(item)) {
- paths.push(("[" + index + "]"));
- paths.push('.');
- fn(level, locale, item, paths);
- paths.pop();
- paths.pop();
- } else {
- paths.push(("[" + index + "]"));
- fn(level, locale, item, paths);
- paths.pop();
- }
- });
- } else if (isString(message)) {
- var ret = htmlTagMatcher.test(message);
- if (ret) {
- var msg = "Detected HTML in message '" + message + "' of keypath '" + (paths.join('')) + "' at '" + locale + "'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";
- if (level === 'warn') {
- warn(msg);
- } else if (level === 'error') {
- error(msg);
- }
- }
- }
- };
- fn(level, locale, message, paths);
- };
- VueI18n.prototype._initVM = function _initVM (data) {
- var silent = Vue.config.silent;
- Vue.config.silent = true;
- this._vm = new Vue({ data: data, __VUE18N__INSTANCE__: true });
- Vue.config.silent = silent;
- };
- VueI18n.prototype.destroyVM = function destroyVM () {
- this._vm.$destroy();
- };
- VueI18n.prototype.subscribeDataChanging = function subscribeDataChanging (vm) {
- this._dataListeners.add(vm);
- };
- VueI18n.prototype.unsubscribeDataChanging = function unsubscribeDataChanging (vm) {
- remove(this._dataListeners, vm);
- };
- VueI18n.prototype.watchI18nData = function watchI18nData () {
- var this$1 = this;
- return this._vm.$watch('$data', function () {
- var listeners = arrayFrom(this$1._dataListeners);
- var i = listeners.length;
- while(i--) {
- Vue.nextTick(function () {
- listeners[i] && listeners[i].$forceUpdate();
- });
- }
- }, { deep: true })
- };
- VueI18n.prototype.watchLocale = function watchLocale (composer) {
- if (!composer) {
- /* istanbul ignore if */
- if (!this._sync || !this._root) { return null }
- var target = this._vm;
- return this._root.$i18n.vm.$watch('locale', function (val) {
- target.$set(target, 'locale', val);
- target.$forceUpdate();
- }, { immediate: true })
- } else {
- // deal with vue-i18n-bridge
- if (!this.__VUE_I18N_BRIDGE__) { return null }
- var self = this;
- var target$1 = this._vm;
- return this.vm.$watch('locale', function (val) {
- target$1.$set(target$1, 'locale', val);
- if (self.__VUE_I18N_BRIDGE__ && composer) {
- composer.locale.value = val;
- }
- target$1.$forceUpdate();
- }, { immediate: true })
- }
- };
- VueI18n.prototype.onComponentInstanceCreated = function onComponentInstanceCreated (newI18n) {
- if (this._componentInstanceCreatedListener) {
- this._componentInstanceCreatedListener(newI18n, this);
- }
- };
- prototypeAccessors.vm.get = function () { return this._vm };
- prototypeAccessors.messages.get = function () { return looseClone(this._getMessages()) };
- prototypeAccessors.dateTimeFormats.get = function () { return looseClone(this._getDateTimeFormats()) };
- prototypeAccessors.numberFormats.get = function () { return looseClone(this._getNumberFormats()) };
- prototypeAccessors.availableLocales.get = function () { return Object.keys(this.messages).sort() };
- prototypeAccessors.locale.get = function () { return this._vm.locale };
- prototypeAccessors.locale.set = function (locale) {
- this._vm.$set(this._vm, 'locale', locale);
- };
- prototypeAccessors.fallbackLocale.get = function () { return this._vm.fallbackLocale };
- prototypeAccessors.fallbackLocale.set = function (locale) {
- this._localeChainCache = {};
- this._vm.$set(this._vm, 'fallbackLocale', locale);
- };
- prototypeAccessors.formatFallbackMessages.get = function () { return this._formatFallbackMessages };
- prototypeAccessors.formatFallbackMessages.set = function (fallback) { this._formatFallbackMessages = fallback; };
- prototypeAccessors.missing.get = function () { return this._missing };
- prototypeAccessors.missing.set = function (handler) { this._missing = handler; };
- prototypeAccessors.formatter.get = function () { return this._formatter };
- prototypeAccessors.formatter.set = function (formatter) { this._formatter = formatter; };
- prototypeAccessors.silentTranslationWarn.get = function () { return this._silentTranslationWarn };
- prototypeAccessors.silentTranslationWarn.set = function (silent) { this._silentTranslationWarn = silent; };
- prototypeAccessors.silentFallbackWarn.get = function () { return this._silentFallbackWarn };
- prototypeAccessors.silentFallbackWarn.set = function (silent) { this._silentFallbackWarn = silent; };
- prototypeAccessors.preserveDirectiveContent.get = function () { return this._preserveDirectiveContent };
- prototypeAccessors.preserveDirectiveContent.set = function (preserve) { this._preserveDirectiveContent = preserve; };
- prototypeAccessors.warnHtmlInMessage.get = function () { return this._warnHtmlInMessage };
- prototypeAccessors.warnHtmlInMessage.set = function (level) {
- var this$1 = this;
- var orgLevel = this._warnHtmlInMessage;
- this._warnHtmlInMessage = level;
- if (orgLevel !== level && (level === 'warn' || level === 'error')) {
- var messages = this._getMessages();
- Object.keys(messages).forEach(function (locale) {
- this$1._checkLocaleMessage(locale, this$1._warnHtmlInMessage, messages[locale]);
- });
- }
- };
- prototypeAccessors.postTranslation.get = function () { return this._postTranslation };
- prototypeAccessors.postTranslation.set = function (handler) { this._postTranslation = handler; };
- prototypeAccessors.sync.get = function () { return this._sync };
- prototypeAccessors.sync.set = function (val) { this._sync = val; };
- VueI18n.prototype._getMessages = function _getMessages () { return this._vm.messages };
- VueI18n.prototype._getDateTimeFormats = function _getDateTimeFormats () { return this._vm.dateTimeFormats };
- VueI18n.prototype._getNumberFormats = function _getNumberFormats () { return this._vm.numberFormats };
- VueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values, interpolateMode) {
- if (!isNull(result)) { return result }
- if (this._missing) {
- var missingRet = this._missing.apply(null, [locale, key, vm, values]);
- if (isString(missingRet)) {
- return missingRet
- }
- } else {
- if ( true && !this._isSilentTranslationWarn(key)) {
- warn(
- "Cannot translate the value of keypath '" + key + "'. " +
- 'Use the value of keypath as default.'
- );
- }
- }
- if (this._formatFallbackMessages) {
- var parsedArgs = parseArgs.apply(void 0, values);
- return this._render(key, interpolateMode, parsedArgs.params, key)
- } else {
- return key
- }
- };
- VueI18n.prototype._isFallbackRoot = function _isFallbackRoot (val) {
- return (this._fallbackRootWithEmptyString? !val : isNull(val)) && !isNull(this._root) && this._fallbackRoot
- };
- VueI18n.prototype._isSilentFallbackWarn = function _isSilentFallbackWarn (key) {
- return this._silentFallbackWarn instanceof RegExp
- ? this._silentFallbackWarn.test(key)
- : this._silentFallbackWarn
- };
- VueI18n.prototype._isSilentFallback = function _isSilentFallback (locale, key) {
- return this._isSilentFallbackWarn(key) && (this._isFallbackRoot() || locale !== this.fallbackLocale)
- };
- VueI18n.prototype._isSilentTranslationWarn = function _isSilentTranslationWarn (key) {
- return this._silentTranslationWarn instanceof RegExp
- ? this._silentTranslationWarn.test(key)
- : this._silentTranslationWarn
- };
- VueI18n.prototype._interpolate = function _interpolate (
- locale,
- message,
- key,
- host,
- interpolateMode,
- values,
- visitedLinkStack
- ) {
- if (!message) { return null }
- var pathRet = this._path.getPathValue(message, key);
- if (isArray(pathRet) || isPlainObject(pathRet)) { return pathRet }
- var ret;
- if (isNull(pathRet)) {
- /* istanbul ignore else */
- if (isPlainObject(message)) {
- ret = message[key];
- if (!(isString(ret) || isFunction(ret))) {
- if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {
- warn(("Value of key '" + key + "' is not a string or function !"));
- }
- return null
- }
- } else {
- return null
- }
- } else {
- /* istanbul ignore else */
- if (isString(pathRet) || isFunction(pathRet)) {
- ret = pathRet;
- } else {
- if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallback(locale, key)) {
- warn(("Value of key '" + key + "' is not a string or function!"));
- }
- return null
- }
- }
- // Check for the existence of links within the translated string
- if (isString(ret) && (ret.indexOf('@:') >= 0 || ret.indexOf('@.') >= 0)) {
- ret = this._link(locale, message, ret, host, 'raw', values, visitedLinkStack);
- }
- return this._render(ret, interpolateMode, values, key)
- };
- VueI18n.prototype._link = function _link (
- locale,
- message,
- str,
- host,
- interpolateMode,
- values,
- visitedLinkStack
- ) {
- var ret = str;
- // Match all the links within the local
- // We are going to replace each of
- // them with its translation
- var matches = ret.match(linkKeyMatcher);
- // eslint-disable-next-line no-autofix/prefer-const
- for (var idx in matches) {
- // ie compatible: filter custom array
- // prototype method
- if (!matches.hasOwnProperty(idx)) {
- continue
- }
- var link = matches[idx];
- var linkKeyPrefixMatches = link.match(linkKeyPrefixMatcher);
- var linkPrefix = linkKeyPrefixMatches[0];
- var formatterName = linkKeyPrefixMatches[1];
- // Remove the leading @:, @.case: and the brackets
- var linkPlaceholder = link.replace(linkPrefix, '').replace(bracketsMatcher, '');
- if (includes(visitedLinkStack, linkPlaceholder)) {
- if (true) {
- warn(("Circular reference found. \"" + link + "\" is already visited in the chain of " + (visitedLinkStack.reverse().join(' <- '))));
- }
- return ret
- }
- visitedLinkStack.push(linkPlaceholder);
- // Translate the link
- var translated = this._interpolate(
- locale, message, linkPlaceholder, host,
- interpolateMode === 'raw' ? 'string' : interpolateMode,
- interpolateMode === 'raw' ? undefined : values,
- visitedLinkStack
- );
- if (this._isFallbackRoot(translated)) {
- if ( true && !this._isSilentTranslationWarn(linkPlaceholder)) {
- warn(("Fall back to translate the link placeholder '" + linkPlaceholder + "' with root locale."));
- }
- /* istanbul ignore if */
- if (!this._root) { throw Error('unexpected error') }
- var root = this._root.$i18n;
- translated = root._translate(
- root._getMessages(), root.locale, root.fallbackLocale,
- linkPlaceholder, host, interpolateMode, values
- );
- }
- translated = this._warnDefault(
- locale, linkPlaceholder, translated, host,
- isArray(values) ? values : [values],
- interpolateMode
- );
- if (this._modifiers.hasOwnProperty(formatterName)) {
- translated = this._modifiers[formatterName](translated);
- } else if (defaultModifiers.hasOwnProperty(formatterName)) {
- translated = defaultModifiers[formatterName](translated);
- }
- visitedLinkStack.pop();
- // Replace the link with the translated
- ret = !translated ? ret : ret.replace(link, translated);
- }
- return ret
- };
- VueI18n.prototype._createMessageContext = function _createMessageContext (values, formatter, path, interpolateMode) {
- var this$1 = this;
- var _list = isArray(values) ? values : [];
- var _named = isObject(values) ? values : {};
- var list = function (index) { return _list[index]; };
- var named = function (key) { return _named[key]; };
- var messages = this._getMessages();
- var locale = this.locale;
- return {
- list: list,
- named: named,
- values: values,
- formatter: formatter,
- path: path,
- messages: messages,
- locale: locale,
- linked: function (linkedKey) { return this$1._interpolate(locale, messages[locale] || {}, linkedKey, null, interpolateMode, undefined, [linkedKey]); }
- }
- };
- VueI18n.prototype._render = function _render (message, interpolateMode, values, path) {
- if (isFunction(message)) {
- return message(
- this._createMessageContext(values, this._formatter || defaultFormatter, path, interpolateMode)
- )
- }
- var ret = this._formatter.interpolate(message, values, path);
- // If the custom formatter refuses to work - apply the default one
- if (!ret) {
- ret = defaultFormatter.interpolate(message, values, path);
- }
- // if interpolateMode is **not** 'string' ('row'),
- // return the compiled data (e.g. ['foo', VNode, 'bar']) with formatter
- return interpolateMode === 'string' && !isString(ret) ? ret.join('') : ret
- };
- VueI18n.prototype._appendItemToChain = function _appendItemToChain (chain, item, blocks) {
- var follow = false;
- if (!includes(chain, item)) {
- follow = true;
- if (item) {
- follow = item[item.length - 1] !== '!';
- item = item.replace(/!/g, '');
- chain.push(item);
- if (blocks && blocks[item]) {
- follow = blocks[item];
- }
- }
- }
- return follow
- };
- VueI18n.prototype._appendLocaleToChain = function _appendLocaleToChain (chain, locale, blocks) {
- var follow;
- var tokens = locale.split('-');
- do {
- var item = tokens.join('-');
- follow = this._appendItemToChain(chain, item, blocks);
- tokens.splice(-1, 1);
- } while (tokens.length && (follow === true))
- return follow
- };
- VueI18n.prototype._appendBlockToChain = function _appendBlockToChain (chain, block, blocks) {
- var follow = true;
- for (var i = 0; (i < block.length) && (isBoolean(follow)); i++) {
- var locale = block[i];
- if (isString(locale)) {
- follow = this._appendLocaleToChain(chain, locale, blocks);
- }
- }
- return follow
- };
- VueI18n.prototype._getLocaleChain = function _getLocaleChain (start, fallbackLocale) {
- if (start === '') { return [] }
- if (!this._localeChainCache) {
- this._localeChainCache = {};
- }
- var chain = this._localeChainCache[start];
- if (!chain) {
- if (!fallbackLocale) {
- fallbackLocale = this.fallbackLocale;
- }
- chain = [];
- // first block defined by start
- var block = [start];
- // while any intervening block found
- while (isArray(block)) {
- block = this._appendBlockToChain(
- chain,
- block,
- fallbackLocale
- );
- }
- // last block defined by default
- var defaults;
- if (isArray(fallbackLocale)) {
- defaults = fallbackLocale;
- } else if (isObject(fallbackLocale)) {
- /* $FlowFixMe */
- if (fallbackLocale['default']) {
- defaults = fallbackLocale['default'];
- } else {
- defaults = null;
- }
- } else {
- defaults = fallbackLocale;
- }
- // convert defaults to array
- if (isString(defaults)) {
- block = [defaults];
- } else {
- block = defaults;
- }
- if (block) {
- this._appendBlockToChain(
- chain,
- block,
- null
- );
- }
- this._localeChainCache[start] = chain;
- }
- return chain
- };
- VueI18n.prototype._translate = function _translate (
- messages,
- locale,
- fallback,
- key,
- host,
- interpolateMode,
- args
- ) {
- var chain = this._getLocaleChain(locale, fallback);
- var res;
- for (var i = 0; i < chain.length; i++) {
- var step = chain[i];
- res =
- this._interpolate(step, messages[step], key, host, interpolateMode, args, [key]);
- if (!isNull(res)) {
- if (step !== locale && "development" !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
- warn(("Fall back to translate the keypath '" + key + "' with '" + step + "' locale."));
- }
- return res
- }
- }
- return null
- };
- VueI18n.prototype._t = function _t (key, _locale, messages, host) {
- var ref;
- var values = [], len = arguments.length - 4;
- while ( len-- > 0 ) values[ len ] = arguments[ len + 4 ];
- if (!key) { return '' }
- var parsedArgs = parseArgs.apply(void 0, values);
- if(this._escapeParameterHtml) {
- parsedArgs.params = escapeParams(parsedArgs.params);
- }
- var locale = parsedArgs.locale || _locale;
- var ret = this._translate(
- messages, locale, this.fallbackLocale, key,
- host, 'string', parsedArgs.params
- );
- if (this._isFallbackRoot(ret)) {
- if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
- warn(("Fall back to translate the keypath '" + key + "' with root locale."));
- }
- /* istanbul ignore if */
- if (!this._root) { throw Error('unexpected error') }
- return (ref = this._root).$t.apply(ref, [ key ].concat( values ))
- } else {
- ret = this._warnDefault(locale, key, ret, host, values, 'string');
- if (this._postTranslation && ret !== null && ret !== undefined) {
- ret = this._postTranslation(ret, key);
- }
- return ret
- }
- };
- VueI18n.prototype.t = function t (key) {
- var ref;
- var values = [], len = arguments.length - 1;
- while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];
- return (ref = this)._t.apply(ref, [ key, this.locale, this._getMessages(), null ].concat( values ))
- };
- VueI18n.prototype._i = function _i (key, locale, messages, host, values) {
- var ret =
- this._translate(messages, locale, this.fallbackLocale, key, host, 'raw', values);
- if (this._isFallbackRoot(ret)) {
- if ( true && !this._isSilentTranslationWarn(key)) {
- warn(("Fall back to interpolate the keypath '" + key + "' with root locale."));
- }
- if (!this._root) { throw Error('unexpected error') }
- return this._root.$i18n.i(key, locale, values)
- } else {
- return this._warnDefault(locale, key, ret, host, [values], 'raw')
- }
- };
- VueI18n.prototype.i = function i (key, locale, values) {
- /* istanbul ignore if */
- if (!key) { return '' }
- if (!isString(locale)) {
- locale = this.locale;
- }
- return this._i(key, locale, this._getMessages(), null, values)
- };
- VueI18n.prototype._tc = function _tc (
- key,
- _locale,
- messages,
- host,
- choice
- ) {
- var ref;
- var values = [], len = arguments.length - 5;
- while ( len-- > 0 ) values[ len ] = arguments[ len + 5 ];
- if (!key) { return '' }
- if (choice === undefined) {
- choice = 1;
- }
- var predefined = { 'count': choice, 'n': choice };
- var parsedArgs = parseArgs.apply(void 0, values);
- parsedArgs.params = Object.assign(predefined, parsedArgs.params);
- values = parsedArgs.locale === null ? [parsedArgs.params] : [parsedArgs.locale, parsedArgs.params];
- return this.fetchChoice((ref = this)._t.apply(ref, [ key, _locale, messages, host ].concat( values )), choice)
- };
- VueI18n.prototype.fetchChoice = function fetchChoice (message, choice) {
- /* istanbul ignore if */
- if (!message || !isString(message)) { return null }
- var choices = message.split('|');
- choice = this.getChoiceIndex(choice, choices.length);
- if (!choices[choice]) { return message }
- return choices[choice].trim()
- };
- VueI18n.prototype.tc = function tc (key, choice) {
- var ref;
- var values = [], len = arguments.length - 2;
- while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];
- return (ref = this)._tc.apply(ref, [ key, this.locale, this._getMessages(), null, choice ].concat( values ))
- };
- VueI18n.prototype._te = function _te (key, locale, messages) {
- var args = [], len = arguments.length - 3;
- while ( len-- > 0 ) args[ len ] = arguments[ len + 3 ];
- var _locale = parseArgs.apply(void 0, args).locale || locale;
- return this._exist(messages[_locale], key)
- };
- VueI18n.prototype.te = function te (key, locale) {
- return this._te(key, this.locale, this._getMessages(), locale)
- };
- VueI18n.prototype.getLocaleMessage = function getLocaleMessage (locale) {
- return looseClone(this._vm.messages[locale] || {})
- };
- VueI18n.prototype.setLocaleMessage = function setLocaleMessage (locale, message) {
- if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {
- this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);
- }
- this._vm.$set(this._vm.messages, locale, message);
- };
- VueI18n.prototype.mergeLocaleMessage = function mergeLocaleMessage (locale, message) {
- if (this._warnHtmlInMessage === 'warn' || this._warnHtmlInMessage === 'error') {
- this._checkLocaleMessage(locale, this._warnHtmlInMessage, message);
- }
- this._vm.$set(this._vm.messages, locale, merge(
- typeof this._vm.messages[locale] !== 'undefined' && Object.keys(this._vm.messages[locale]).length
- ? Object.assign({}, this._vm.messages[locale])
- : {},
- message
- ));
- };
- VueI18n.prototype.getDateTimeFormat = function getDateTimeFormat (locale) {
- return looseClone(this._vm.dateTimeFormats[locale] || {})
- };
- VueI18n.prototype.setDateTimeFormat = function setDateTimeFormat (locale, format) {
- this._vm.$set(this._vm.dateTimeFormats, locale, format);
- this._clearDateTimeFormat(locale, format);
- };
- VueI18n.prototype.mergeDateTimeFormat = function mergeDateTimeFormat (locale, format) {
- this._vm.$set(this._vm.dateTimeFormats, locale, merge(this._vm.dateTimeFormats[locale] || {}, format));
- this._clearDateTimeFormat(locale, format);
- };
- VueI18n.prototype._clearDateTimeFormat = function _clearDateTimeFormat (locale, format) {
- // eslint-disable-next-line no-autofix/prefer-const
- for (var key in format) {
- var id = locale + "__" + key;
- if (!this._dateTimeFormatters.hasOwnProperty(id)) {
- continue
- }
- delete this._dateTimeFormatters[id];
- }
- };
- VueI18n.prototype._localizeDateTime = function _localizeDateTime (
- value,
- locale,
- fallback,
- dateTimeFormats,
- key,
- options
- ) {
- var _locale = locale;
- var formats = dateTimeFormats[_locale];
- var chain = this._getLocaleChain(locale, fallback);
- for (var i = 0; i < chain.length; i++) {
- var current = _locale;
- var step = chain[i];
- formats = dateTimeFormats[step];
- _locale = step;
- // fallback locale
- if (isNull(formats) || isNull(formats[key])) {
- if (step !== locale && "development" !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
- warn(("Fall back to '" + step + "' datetime formats from '" + current + "' datetime formats."));
- }
- } else {
- break
- }
- }
- if (isNull(formats) || isNull(formats[key])) {
- return null
- } else {
- var format = formats[key];
- var formatter;
- if (options) {
- formatter = new Intl.DateTimeFormat(_locale, Object.assign({}, format, options));
- } else {
- var id = _locale + "__" + key;
- formatter = this._dateTimeFormatters[id];
- if (!formatter) {
- formatter = this._dateTimeFormatters[id] = new Intl.DateTimeFormat(_locale, format);
- }
- }
- return formatter.format(value)
- }
- };
- VueI18n.prototype._d = function _d (value, locale, key, options) {
- /* istanbul ignore if */
- if ( true && !VueI18n.availabilities.dateTimeFormat) {
- warn('Cannot format a Date value due to not supported Intl.DateTimeFormat.');
- return ''
- }
- if (!key) {
- var dtf = !options ? new Intl.DateTimeFormat(locale) : new Intl.DateTimeFormat(locale, options);
- return dtf.format(value)
- }
- var ret =
- this._localizeDateTime(value, locale, this.fallbackLocale, this._getDateTimeFormats(), key, options);
- if (this._isFallbackRoot(ret)) {
- if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
- warn(("Fall back to datetime localization of root: key '" + key + "'."));
- }
- /* istanbul ignore if */
- if (!this._root) { throw Error('unexpected error') }
- return this._root.$i18n.d(value, key, locale)
- } else {
- return ret || ''
- }
- };
- VueI18n.prototype.d = function d (value) {
- var args = [], len = arguments.length - 1;
- while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
- var locale = this.locale;
- var key = null;
- var options = null;
- if (args.length === 1) {
- if (isString(args[0])) {
- key = args[0];
- } else if (isObject(args[0])) {
- if (args[0].locale) {
- locale = args[0].locale;
- }
- if (args[0].key) {
- key = args[0].key;
- }
- }
- options = Object.keys(args[0]).reduce(function (acc, key) {
- var obj;
- if (includes(dateTimeFormatKeys, key)) {
- return Object.assign({}, acc, ( obj = {}, obj[key] = args[0][key], obj ))
- }
- return acc
- }, null);
- } else if (args.length === 2) {
- if (isString(args[0])) {
- key = args[0];
- }
- if (isString(args[1])) {
- locale = args[1];
- }
- }
- return this._d(value, locale, key, options)
- };
- VueI18n.prototype.getNumberFormat = function getNumberFormat (locale) {
- return looseClone(this._vm.numberFormats[locale] || {})
- };
- VueI18n.prototype.setNumberFormat = function setNumberFormat (locale, format) {
- this._vm.$set(this._vm.numberFormats, locale, format);
- this._clearNumberFormat(locale, format);
- };
- VueI18n.prototype.mergeNumberFormat = function mergeNumberFormat (locale, format) {
- this._vm.$set(this._vm.numberFormats, locale, merge(this._vm.numberFormats[locale] || {}, format));
- this._clearNumberFormat(locale, format);
- };
- VueI18n.prototype._clearNumberFormat = function _clearNumberFormat (locale, format) {
- // eslint-disable-next-line no-autofix/prefer-const
- for (var key in format) {
- var id = locale + "__" + key;
- if (!this._numberFormatters.hasOwnProperty(id)) {
- continue
- }
- delete this._numberFormatters[id];
- }
- };
- VueI18n.prototype._getNumberFormatter = function _getNumberFormatter (
- value,
- locale,
- fallback,
- numberFormats,
- key,
- options
- ) {
- var _locale = locale;
- var formats = numberFormats[_locale];
- var chain = this._getLocaleChain(locale, fallback);
- for (var i = 0; i < chain.length; i++) {
- var current = _locale;
- var step = chain[i];
- formats = numberFormats[step];
- _locale = step;
- // fallback locale
- if (isNull(formats) || isNull(formats[key])) {
- if (step !== locale && "development" !== 'production' && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
- warn(("Fall back to '" + step + "' number formats from '" + current + "' number formats."));
- }
- } else {
- break
- }
- }
- if (isNull(formats) || isNull(formats[key])) {
- return null
- } else {
- var format = formats[key];
- var formatter;
- if (options) {
- // If options specified - create one time number formatter
- formatter = new Intl.NumberFormat(_locale, Object.assign({}, format, options));
- } else {
- var id = _locale + "__" + key;
- formatter = this._numberFormatters[id];
- if (!formatter) {
- formatter = this._numberFormatters[id] = new Intl.NumberFormat(_locale, format);
- }
- }
- return formatter
- }
- };
- VueI18n.prototype._n = function _n (value, locale, key, options) {
- /* istanbul ignore if */
- if (!VueI18n.availabilities.numberFormat) {
- if (true) {
- warn('Cannot format a Number value due to not supported Intl.NumberFormat.');
- }
- return ''
- }
- if (!key) {
- var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);
- return nf.format(value)
- }
- var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);
- var ret = formatter && formatter.format(value);
- if (this._isFallbackRoot(ret)) {
- if ( true && !this._isSilentTranslationWarn(key) && !this._isSilentFallbackWarn(key)) {
- warn(("Fall back to number localization of root: key '" + key + "'."));
- }
- /* istanbul ignore if */
- if (!this._root) { throw Error('unexpected error') }
- return this._root.$i18n.n(value, Object.assign({}, { key: key, locale: locale }, options))
- } else {
- return ret || ''
- }
- };
- VueI18n.prototype.n = function n (value) {
- var args = [], len = arguments.length - 1;
- while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
- var locale = this.locale;
- var key = null;
- var options = null;
- if (args.length === 1) {
- if (isString(args[0])) {
- key = args[0];
- } else if (isObject(args[0])) {
- if (args[0].locale) {
- locale = args[0].locale;
- }
- if (args[0].key) {
- key = args[0].key;
- }
- // Filter out number format options only
- options = Object.keys(args[0]).reduce(function (acc, key) {
- var obj;
- if (includes(numberFormatKeys, key)) {
- return Object.assign({}, acc, ( obj = {}, obj[key] = args[0][key], obj ))
- }
- return acc
- }, null);
- }
- } else if (args.length === 2) {
- if (isString(args[0])) {
- key = args[0];
- }
- if (isString(args[1])) {
- locale = args[1];
- }
- }
- return this._n(value, locale, key, options)
- };
- VueI18n.prototype._ntp = function _ntp (value, locale, key, options) {
- /* istanbul ignore if */
- if (!VueI18n.availabilities.numberFormat) {
- if (true) {
- warn('Cannot format to parts a Number value due to not supported Intl.NumberFormat.');
- }
- return []
- }
- if (!key) {
- var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);
- return nf.formatToParts(value)
- }
- var formatter = this._getNumberFormatter(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);
- var ret = formatter && formatter.formatToParts(value);
- if (this._isFallbackRoot(ret)) {
- if ( true && !this._isSilentTranslationWarn(key)) {
- warn(("Fall back to format number to parts of root: key '" + key + "' ."));
- }
- /* istanbul ignore if */
- if (!this._root) { throw Error('unexpected error') }
- return this._root.$i18n._ntp(value, locale, key, options)
- } else {
- return ret || []
- }
- };
- Object.defineProperties( VueI18n.prototype, prototypeAccessors );
- var availabilities;
- // $FlowFixMe
- Object.defineProperty(VueI18n, 'availabilities', {
- get: function get () {
- if (!availabilities) {
- var intlDefined = typeof Intl !== 'undefined';
- availabilities = {
- dateTimeFormat: intlDefined && typeof Intl.DateTimeFormat !== 'undefined',
- numberFormat: intlDefined && typeof Intl.NumberFormat !== 'undefined'
- };
- }
- return availabilities
- }
- });
- VueI18n.install = install;
- VueI18n.version = '8.28.2';
- /* harmony default export */ __webpack_exports__["default"] = (VueI18n);
- /***/ }),
- /***/ 16:
- /*!***************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _setPrototypeOf(o, p) {
- module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
- o.__proto__ = p;
- return o;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
- return _setPrototypeOf(o, p);
- }
- module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 160:
- /*!*********************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/commont/messages.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- var _index, _index2, _index3, _index4;
- var _default = {
- //中文
- "zh-CN": {
- index: (_index = {
- homepage: "主页",
- switchLanguage: "切换语言",
- address: "地址管理",
- addAndEdit: "新增/修改地址",
- account: "账号与安全",
- password: "修改密码/手机号",
- switch: "切换语言",
- user: "用户协议",
- privacy: "隐私政策",
- platform: "平台规则",
- merchant: "商户入驻申请协议",
- layout: "退出登录",
- setup: "账号设置",
- information: "个人信息",
- headerImg: "头像",
- nickname: "昵称",
- prompt: "限4-24个字符(1汉字=2字符,1英文活数字=1字符)",
- editNextname: "编辑昵称",
- inland: "中国内地",
- international: "国际",
- initial: "默认地址",
- edit: "编辑",
- delete: "删除",
- wx: "微信导入",
- add: "新增地址",
- contacts: "联系人信息",
- wxAddress: "微信地址薄",
- newAddress: "新建地址",
- name: "姓名",
- phone: "手机号",
- city: "省市区",
- detailed: "详细地址",
- goods: "请填写收货人信息",
- pleasePhoneNumber: "请填写收货人手机号",
- township: "省市区县、乡镇等",
- sect: "请输入详细地址精确到门牌号",
- company: "公司名称(选填)",
- preserve: "保存",
- empty: "清空",
- country: "国家",
- postalCode: "邮编",
- email: "电子邮箱",
- companyName: "公司名称",
- selection: "请选择",
- PleacePostalCode: "请输入邮编",
- addressBook: "保存到地址薄",
- pleaseEmail: "请输入电子邮箱(选填)",
- editPassword: "修改登录密码",
- editPhone: "修改手机号",
- accountCancellation: "账号注销",
- setPassword: "设置密码",
- cancellation: "注销后无法恢复,请谨慎操作",
- myDeposit: "我的保证金",
- balance: "余额",
- mineFollow: "我的关注",
- myPackage: "我的包裹",
- mallOrders: "商城订单",
- whole: "全部",
- pendingPayment: "待付款",
- joiningGroups: "拼团中",
- toBeShipped: "待发货",
- toBeReceived: "待收货",
- refund: "退款/售后",
- leaderunction: "团长功能"
- }, (0, _defineProperty2.default)(_index, "platform", "平台商品库"), (0, _defineProperty2.default)(_index, "productManagement", "商品管理"), (0, _defineProperty2.default)(_index, "orderManagement", "订单管理"), (0, _defineProperty2.default)(_index, "afterSales", "售后管理"), (0, _defineProperty2.default)(_index, "supplyChain", "供应链商品"), (0, _defineProperty2.default)(_index, "PCEnd", "PC端"), (0, _defineProperty2.default)(_index, "pontact", "联系客服"), (0, _defineProperty2.default)(_index, "accountSettings", "账号设置"), (0, _defineProperty2.default)(_index, "shop", "商城"), (0, _defineProperty2.default)(_index, "border", "跨境速递"), (0, _defineProperty2.default)(_index, "item", "物品信息"), (0, _defineProperty2.default)(_index, "required", "必填"), (0, _defineProperty2.default)(_index, "flow", "跨境物流"), (0, _defineProperty2.default)(_index, "share", "分享给好友"), (0, _defineProperty2.default)(_index, "compute", "物流计算器"), (0, _defineProperty2.default)(_index, "deliver", "发往中转点"), (0, _defineProperty2.default)(_index, "Sign", "中转已签收"), (0, _defineProperty2.default)(_index, "overseas", "正发往海外"), (0, _defineProperty2.default)(_index, "mail", "去寄件"), (0, _defineProperty2.default)(_index, "mine", "我的"), (0, _defineProperty2.default)(_index, "addsign", "添加寄往中转点包裹"), (0, _defineProperty2.default)(_index, "more", "更多"), (0, _defineProperty2.default)(_index, "price", "单价"), (0, _defineProperty2.default)(_index, "already", "已拼"), (0, _defineProperty2.default)(_index, "parcel", "包裹"), (0, _defineProperty2.default)(_index, "residue", "剩余重量"), (0, _defineProperty2.default)(_index, "plan", "进度"), (0, _defineProperty2.default)(_index, "start", "开始时间"), (0, _defineProperty2.default)(_index, "cut", "截止时间"), (0, _defineProperty2.default)(_index, "parceling", "拼包发海外"), (0, _defineProperty2.default)(_index, "goparceling", "去拼包"), (0, _defineProperty2.default)(_index, "sender", "新建寄件人"), (0, _defineProperty2.default)(_index, "recipient", "新建收件人"), (0, _defineProperty2.default)(_index, "informat", "点击填写寄件地址信息"), (0, _defineProperty2.default)(_index, "informate", "点击填写收件地址信息"), (0, _defineProperty2.default)(_index, "addressbook", "地址簿"), (0, _defineProperty2.default)(_index, "select", "请选择物品信息"), (0, _defineProperty2.default)(_index, "search", "搜索"), (0, _defineProperty2.default)(_index, "Searchcon", "请输入要搜索的内容"), (0, _defineProperty2.default)(_index, "expensive", "买贵必赔"), (0, _defineProperty2.default)(_index, "Something", "全球好物"), (0, _defineProperty2.default)(_index, "postage", "包邮"), (0, _defineProperty2.default)(_index, "Trade", "以旧换新"), (0, _defineProperty2.default)(_index, "sort", "分类"), (0, _defineProperty2.default)(_index, "fill", "已补"), (0, _defineProperty2.default)(_index, "RMB", "元"), (0, _defineProperty2.default)(_index, "history", "历史地址"), (0, _defineProperty2.default)(_index, "Fill", "请填写"), (0, _defineProperty2.default)(_index, "senderinfo", "填写寄件人信息"), (0, _defineProperty2.default)(_index, "addressee", "请输入收件人姓名"), (0, _defineProperty2.default)(_index, "enter", "确定"), (0, _defineProperty2.default)(_index, "shoptype", "商品类型"), (0, _defineProperty2.default)(_index, "estimated", "预估重量"), (0, _defineProperty2.default)(_index, "piece", "件数"), (0, _defineProperty2.default)(_index, "rule", "了解计费规则"), (0, _defineProperty2.default)(_index, "Starting", "起始地"), (0, _defineProperty2.default)(_index, "destination", "目的地"), (0, _defineProperty2.default)(_index, "Commodity", "商品重量"), (0, _defineProperty2.default)(_index, "Acquisition", "获取价格"), (0, _defineProperty2.default)(_index, "Calculated", "计算重量"), (0, _defineProperty2.default)(_index, "Estimated", "预估运费"), (0, _defineProperty2.default)(_index, "details", "查看详情"), (0, _defineProperty2.default)(_index, "Normal", "普通商品"), (0, _defineProperty2.default)(_index, "special", "特殊商品"), (0, _defineProperty2.default)(_index, "orderSearch", "请输入订单编号搜索"), (0, _defineProperty2.default)(_index, "orderWeight", "当前页面加载的订单总重量"), (0, _defineProperty2.default)(_index, "purchase", "平台自购"), (0, _defineProperty2.default)(_index, "OrderNumber", "订单编号"), (0, _defineProperty2.default)(_index, "Parcelweight", "包裹重量"), (0, _defineProperty2.default)(_index, "payment", "立即付款"), (0, _defineProperty2.default)(_index, "Frozen", "冻结"), (0, _defineProperty2.default)(_index, "recover", "恢复"), (0, _defineProperty2.default)(_index, "total", "合计"), (0, _defineProperty2.default)(_index, "selfPost", "自寄"), (0, _defineProperty2.default)(_index, "receiveGoods", "待平台收货"), (0, _defineProperty2.default)(_index, "TrackingNumber", "快递单号"), (0, _defineProperty2.default)(_index, "trackingNumber", "输入快递单号,快速添加到我的包裹"), (0, _defineProperty2.default)(_index, "Expresscompany", "快递公司"), (0, _defineProperty2.default)(_index, "ExpressCompany", "输入快递公司名称"), (0, _defineProperty2.default)(_index, "parcelWeight", "请输入包裹重量"), (0, _defineProperty2.default)(_index, "Addlist", "添加到包裹列表"), (0, _defineProperty2.default)(_index, "Addparcel", "添加包裹"), (0, _defineProperty2.default)(_index, "Packlist", "拼包列表"), (0, _defineProperty2.default)(_index, "classification", "商品分类"), (0, _defineProperty2.default)(_index, "synthesis", "综合"), (0, _defineProperty2.default)(_index, "sell", "销售"), (0, _defineProperty2.default)(_index, "Pricea", "价格"), (0, _defineProperty2.default)(_index, "screen", "筛选"), (0, _defineProperty2.default)(_index, "Pricerange", "价格区间"), (0, _defineProperty2.default)(_index, "Weightinterval", "重量区间"), (0, _defineProperty2.default)(_index, "brand", "品牌"), (0, _defineProperty2.default)(_index, "Proprietary", "自营商品"), (0, _defineProperty2.default)(_index, "reset", "重置"), (0, _defineProperty2.default)(_index, "yes", "是"), (0, _defineProperty2.default)(_index, "Bottomprice", "最低价"), (0, _defineProperty2.default)(_index, "highestprice", "最高价"), (0, _defineProperty2.default)(_index, "Discounted", "折扣价"), (0, _defineProperty2.default)(_index, "service", "服务"), (0, _defineProperty2.default)(_index, "Netcontent", "净含量"), (0, _defineProperty2.default)(_index, "sametype", "同款低价"), (0, _defineProperty2.default)(_index, "review", "评论"), (0, _defineProperty2.default)(_index, "Productdetails", "商品详情"), (0, _defineProperty2.default)(_index, "Specification", "规格参数"), (0, _defineProperty2.default)(_index, "Recommended", "推荐商品"), (0, _defineProperty2.default)(_index, "material", "主要原料"), (0, _defineProperty2.default)(_index, "specification", "规格"), (0, _defineProperty2.default)(_index, "Shelflife", "保质期"), (0, _defineProperty2.default)(_index, "Suitableobject", "适合对象"), (0, _defineProperty2.default)(_index, "Customer", "客服"), (0, _defineProperty2.default)(_index, "Shopping", "购物车"), (0, _defineProperty2.default)(_index, "follow", "关注"), (0, _defineProperty2.default)(_index, "notification", "到货通知"), (0, _defineProperty2.default)(_index, "Sele", "选择"), (0, _defineProperty2.default)(_index, "Salesvolume", "销售量"), (0, _defineProperty2.default)(_index, "stroll", "逛逛"), (0, _defineProperty2.default)(_index, "article", "条"), (0, _defineProperty2.default)(_index, "know", "我知道了"), (0, _defineProperty2.default)(_index, "shar", "分享"), (0, _defineProperty2.default)(_index, "Copylink", "复制链接"), (0, _defineProperty2.default)(_index, "Generatepicture", "生成图片"), (0, _defineProperty2.default)(_index, "Cancel", "取消"), (0, _defineProperty2.default)(_index, "Paymentsuccess", "支付成功"), (0, _defineProperty2.default)(_index, "MyOrder", "可在“个人中心-我的订单”查看"), (0, _defineProperty2.default)(_index, "Vieworder", "查看订单"), (0, _defineProperty2.default)(_index, "Backtohomepage", "返回首页"), (0, _defineProperty2.default)(_index, "Channelspecification", "渠道说明"), (0, _defineProperty2.default)(_index, "Billingmode", "计费模式"), (0, _defineProperty2.default)(_index, "Chargeableweight", "计费重量"), (0, _defineProperty2.default)(_index, "Estimatedcost", "预估费用"), (0, _defineProperty2.default)(_index, "Itemtype", "物品类型"), (0, _defineProperty2.default)(_index, "Channelrule", "渠道规则"), (0, _defineProperty2.default)(_index, "Copiedpaste", "已复制,快去粘贴吧~"), (0, _defineProperty2.default)(_index, "Replicationfailure", "复制失败"), (0, _defineProperty2.default)(_index, "shelves", "当该商品有库存并上架时我们会通过微信消息提醒您"), (0, _defineProperty2.default)(_index, "Actual", "实付金额"), (0, _defineProperty2.default)(_index, "Balancepayment", "余额支付"), (0, _defineProperty2.default)(_index, "Currentbalance", "当前余额"), (0, _defineProperty2.default)(_index, "WechatPay", "微信支付"), (0, _defineProperty2.default)(_index, "applicable", "适用微信支付"), (0, _defineProperty2.default)(_index, "Customerservicepayment", "客服支付"), (0, _defineProperty2.default)(_index, "Contactpayment", "联系客服支付"), (0, _defineProperty2.default)(_index, "Paymentinstructions", "付款须知"), (0, _defineProperty2.default)(_index, "Confirmpayment", "确定付款"), (0, _defineProperty2.default)(_index, "Commodityamount", "商品金额"), (0, _defineProperty2.default)(_index, "Grosscommodityweight", "商品总重"), (0, _defineProperty2.default)(_index, "Costperkilogram", "每公斤费用"), (0, _defineProperty2.default)(_index, "freight", "运费"), (0, _defineProperty2.default)(_index, "subtotal", "小计"), (0, _defineProperty2.default)(_index, "Atotalof", "共"), (0, _defineProperty2.default)(_index, "Submitorder", "提交订单"), (0, _defineProperty2.default)(_index, "next", "下一步"), (0, _defineProperty2.default)(_index, "Shipmentdate", "发柜日期"), (0, _defineProperty2.default)(_index, "Estimatedtimeofarrival", "预计到达时间"), (0, _defineProperty2.default)(_index, "Workingday", "个工作日"), (0, _defineProperty2.default)(_index, "buy", "购买到"), (0, _defineProperty2.default)(_index, "morefavorable", "会更优惠"), (0, _defineProperty2.default)(_index, "Pleaseproductname", "请输入相关商品名称"), (0, _defineProperty2.default)(_index, "Goodgoods", "品质好货"), (0, _defineProperty2.default)(_index, "Saveeverything", "每款必省"), (0, _defineProperty2.default)(_index, "willpay", "买贵必赔"), (0, _defineProperty2.default)(_index, "Subsidized", "补贴价"), (0, _defineProperty2.default)(_index, "typeof", "类型"), (0, _defineProperty2.default)(_index, "weight", "重量"), (0, _defineProperty2.default)(_index, "number", "数量"), (0, _defineProperty2.default)(_index, "Immediatepayment", "立即支付"), (0, _defineProperty2.default)(_index, "readandagree", "我阅读并同意"), (0, _defineProperty2.default)(_index, "International", "国际快递服务协议"), (0, _defineProperty2.default)(_index, "Estimatedprice", "预估总价"), (0, _defineProperty2.default)(_index, "Marinetank", "号海运柜"), (0, _defineProperty2.default)(_index, "Expressservice", "快递服务"), (0, _defineProperty2.default)(_index, "Orderconfirmation", "确认下单"), (0, _defineProperty2.default)(_index, "successful", "下单成功"), (0, _defineProperty2.default)(_index, "pickpackage", "待快递员上门取件"), (0, _defineProperty2.default)(_index, "Ordertime", "下单时间"), (0, _defineProperty2.default)(_index, "Popularshipment", "热门寄件"), (0, _defineProperty2.default)(_index, "manage", "管理"), (0, _defineProperty2.default)(_index, "complete", "完成"), (0, _defineProperty2.default)(_index, "selectall", "全选"), (0, _defineProperty2.default)(_index, "Grossweight", "总重量"), (0, _defineProperty2.default)(_index, "GotoResult", "去结算"), (0, _defineProperty2.default)(_index, "orderpaysforitself", "坏单包赔"), (0, _defineProperty2.default)(_index, "Soldout", "已售"), (0, _defineProperty2.default)(_index, "accountBalance", "账户余额"), (0, _defineProperty2.default)(_index, "myBalance", "我的余额"), (0, _defineProperty2.default)(_index, "withdrawal", "提现"), (0, _defineProperty2.default)(_index, "recharge", "充值"), (0, _defineProperty2.default)(_index, "balanceDetails", "余额明细"), (0, _defineProperty2.default)(_index, "all", "全部"), (0, _defineProperty2.default)(_index, "theres", "没有更多数据了"), (0, _defineProperty2.default)(_index, "mineCommodity", "商品"), (0, _defineProperty2.default)(_index, "team", "团长"), (0, _defineProperty2.default)(_index, "people", "人关注"), (0, _defineProperty2.default)(_index, "see", "查看主页"), (0, _defineProperty2.default)(_index, "orderNum", "请输入订单编号搜索"), (0, _defineProperty2.default)(_index, "toTrasferimento", "发往中转点"), (0, _defineProperty2.default)(_index, "firmaPer", "中转已签收"), (0, _defineProperty2.default)(_index, "oltreoceano", "正发往海外"), (0, _defineProperty2.default)(_index, "piattaforma", "平台自购"), (0, _defineProperty2.default)(_index, "thatPerson", "个人功能"), (0, _defineProperty2.default)(_index, "become", "成为团长"), _index)
- },
- //英语
- "en-US": {
- index: (_index2 = {
- homepage: "Homepage",
- switchLanguage: "Switch Language",
- address: "Address Management",
- addAndEdit: "add/modify Address",
- account: "Account and Security",
- password: "Change password/Phone Number",
- switch: "Switch Language",
- user: "User Agreement",
- privacy: "Privacy Policy",
- platform: "Platform rules",
- merchant: "Merchant Entry Application Agreement",
- layout: "Log out and log in",
- setup: "Account Settings",
- information: "Personal Information",
- headerImg: "Avatar",
- nickname: "Nickname",
- prompt: "Limited to 4-24 characters (1 Chinese character=2 characters, 1 English live number=1 character)",
- editNextname: "Edit Nickname",
- inland: "Mainland China",
- international: "International",
- initial: "Default Address",
- edit: "Edit",
- delete: "Delete",
- wx: "WeChat import",
- add: "Add Address",
- contacts: "Contact Information ",
- wxAddress: "WeChat Address Book",
- newAddress: "New Address",
- name: "Name",
- phone: "Mobile phone number",
- city: "Provinces, cities, and districts",
- detailed: "Detailed address",
- goods: "Please fill in the recipient information",
- pleasePhoneNumber: "Please fill in the recipient's mobile phone number",
- township: "Provinces, cities, counties, townships, etc",
- sect: "Please enter a detailed address accurate to the house number",
- company: "Company name (optional)",
- preserve: "Preserve",
- empty: "Empty",
- country: "Country",
- postalCode: "Postal code",
- email: "E-mail",
- companyName: "Company Name",
- selection: "Please Select",
- PleacePostalCode: "Please enter your postal code",
- addressBook: "Save to Address Book",
- pleaseEmail: "Please enter your email address (optional)",
- cancellation: "Unable to recover after logging out, please operate with caution",
- editPassword: "Change login password",
- editPhone: "Change phone number",
- accountCancellation: "Account Cancellation",
- setPassword: "Set password",
- myDeposit: "My deposit",
- balance: "Balance",
- mineFollow: "My following",
- myPackage: "My Package",
- mallOrders: "Mall orders",
- whole: "Whole",
- pendingPayment: "Pending payment",
- joiningGroups: "Joining groups",
- toBeShipped: "To be shipped",
- toBeReceived: "To be received",
- refund: "Refund/After sales",
- leaderunction: "Leader function"
- }, (0, _defineProperty2.default)(_index2, "platform", "Platform product library"), (0, _defineProperty2.default)(_index2, "productManagement", "Product Management"), (0, _defineProperty2.default)(_index2, "orderManagement", "order management"), (0, _defineProperty2.default)(_index2, "afterSales", "After sales"), (0, _defineProperty2.default)(_index2, "supplyChain", "Supply chain goods"), (0, _defineProperty2.default)(_index2, "PCEnd", "PC end"), (0, _defineProperty2.default)(_index2, "pontact", "Contact customer service"), (0, _defineProperty2.default)(_index2, "accountSettings", "Account Settings"), (0, _defineProperty2.default)(_index2, "shop", "store"), (0, _defineProperty2.default)(_index2, "border", "border"), (0, _defineProperty2.default)(_index2, "item", "Item information"), (0, _defineProperty2.default)(_index2, "required", "required"), (0, _defineProperty2.default)(_index2, "flow", "Cross border logistics"), (0, _defineProperty2.default)(_index2, "share", "Share"), (0, _defineProperty2.default)(_index2, "compute", "The Reckoner"), (0, _defineProperty2.default)(_index2, "deliver", "To transfer point"), (0, _defineProperty2.default)(_index2, "Sign", "Transfer has been signed for"), (0, _defineProperty2.default)(_index2, "overseas", "Sending overseas"), (0, _defineProperty2.default)(_index2, "mail", "Go and send the package"), (0, _defineProperty2.default)(_index2, "mine", "mine"), (0, _defineProperty2.default)(_index2, "addsign", "Add package to transit point"), (0, _defineProperty2.default)(_index2, "more", "more"), (0, _defineProperty2.default)(_index2, "price", "unit price"), (0, _defineProperty2.default)(_index2, "already", "Spliced"), (0, _defineProperty2.default)(_index2, "parcel", "package"), (0, _defineProperty2.default)(_index2, "residue", " weight"), (0, _defineProperty2.default)(_index2, "plan", "schedule"), (0, _defineProperty2.default)(_index2, "start", "start time"), (0, _defineProperty2.default)(_index2, "cut", "Deadline"), (0, _defineProperty2.default)(_index2, "parceling", "Package shipping overseas"), (0, _defineProperty2.default)(_index2, "goparceling", "Go pack up"), (0, _defineProperty2.default)(_index2, "sender", "New sender"), (0, _defineProperty2.default)(_index2, "recipient", "New recipient"), (0, _defineProperty2.default)(_index2, "informat", "Fill in the mailing address information"), (0, _defineProperty2.default)(_index2, "informate", "Fill in the shipping address information"), (0, _defineProperty2.default)(_index2, "addressbook", "Address Book"), (0, _defineProperty2.default)(_index2, "select", "Please select item information"), (0, _defineProperty2.default)(_index2, "search", "search"), (0, _defineProperty2.default)(_index2, "Searchcon", "you want to search for"), (0, _defineProperty2.default)(_index2, "expensive", "Buy high Must compensate"), (0, _defineProperty2.default)(_index2, "Something", "Global goodies"), (0, _defineProperty2.default)(_index2, "postage", "Exempt from postage"), (0, _defineProperty2.default)(_index2, "Trade", "Trade-in"), (0, _defineProperty2.default)(_index2, "sort", "sort"), (0, _defineProperty2.default)(_index2, "fill", "subsidy"), (0, _defineProperty2.default)(_index2, "RMB", "RMB"), (0, _defineProperty2.default)(_index2, "history", "Historical address"), (0, _defineProperty2.default)(_index2, "Fill", "Fill out"), (0, _defineProperty2.default)(_index2, "senderinfo", "Sender information"), (0, _defineProperty2.default)(_index2, "addressee", "Indicare il nome del destinatario"), (0, _defineProperty2.default)(_index2, "enter", "confirm"), (0, _defineProperty2.default)(_index2, "shoptype", "type of merchandise"), (0, _defineProperty2.default)(_index2, "estimated", "estimated weight"), (0, _defineProperty2.default)(_index2, "piece", "piece"), (0, _defineProperty2.default)(_index2, "rule", "Understanding billing rules"), (0, _defineProperty2.default)(_index2, "Starting", "Starting place"), (0, _defineProperty2.default)(_index2, "destination", "destination"), (0, _defineProperty2.default)(_index2, "Commodity", "Commodity weight"), (0, _defineProperty2.default)(_index2, "Acquisition", "Acquisition price"), (0, _defineProperty2.default)(_index2, "Calculated", "Calculated weight"), (0, _defineProperty2.default)(_index2, "Estimated", "Estimated freight"), (0, _defineProperty2.default)(_index2, "details", "View details"), (0, _defineProperty2.default)(_index2, "Normal", "General goods"), (0, _defineProperty2.default)(_index2, "special", "Special goods"), (0, _defineProperty2.default)(_index2, "orderSearch", "Please enter the order number to search"), (0, _defineProperty2.default)(_index2, "orderWeight", "The total weight of the order currently loaded on the page"), (0, _defineProperty2.default)(_index2, "purchase", "Platform purchase"), (0, _defineProperty2.default)(_index2, "OrderNumber", "Order number"), (0, _defineProperty2.default)(_index2, "Parcelweight", "Parcel weight"), (0, _defineProperty2.default)(_index2, "payment", "Immediate payment"), (0, _defineProperty2.default)(_index2, "Frozen", "Frozen"), (0, _defineProperty2.default)(_index2, "recover", "recover"), (0, _defineProperty2.default)(_index2, "total", "total"), (0, _defineProperty2.default)(_index2, "selfPost", "self-post"), (0, _defineProperty2.default)(_index2, "receiveGoods", "Wait for the platform to receive the goods"), (0, _defineProperty2.default)(_index2, "TrackingNumber", "Tracking number"), (0, _defineProperty2.default)(_index2, "trackingNumber", "Enter the tracking number to quickly add to my package"), (0, _defineProperty2.default)(_index2, "Expresscompany", "Express company"), (0, _defineProperty2.default)(_index2, "ExpressCompany", "Enter the name of the Courier company"), (0, _defineProperty2.default)(_index2, "parcelWeight", "Please enter the parcel weight"), (0, _defineProperty2.default)(_index2, "Addlist", "Add to package list"), (0, _defineProperty2.default)(_index2, "Addparcel", "Add parcel"), (0, _defineProperty2.default)(_index2, "Packlist", "Pack list"), (0, _defineProperty2.default)(_index2, "classification", "Commodity classification"), (0, _defineProperty2.default)(_index2, "synthesis", "synthesis"), (0, _defineProperty2.default)(_index2, "sell", "sell"), (0, _defineProperty2.default)(_index2, "Pricea", "Price"), (0, _defineProperty2.default)(_index2, "screen", "screen"), (0, _defineProperty2.default)(_index2, "Pricerange", "Price range"), (0, _defineProperty2.default)(_index2, "Weightinterval", "Weight section"), (0, _defineProperty2.default)(_index2, "brand", "brand"), (0, _defineProperty2.default)(_index2, "Proprietary", "Proprietary commodities"), (0, _defineProperty2.default)(_index2, "reset", "reset"), (0, _defineProperty2.default)(_index2, "yes", "yes"), (0, _defineProperty2.default)(_index2, "Bottomprice", "Bottom price"), (0, _defineProperty2.default)(_index2, "highestprice", "The highest price"), (0, _defineProperty2.default)(_index2, "Discounted", "Discounted price"), (0, _defineProperty2.default)(_index2, "service", "service"), (0, _defineProperty2.default)(_index2, "Netcontent", "Net content"), (0, _defineProperty2.default)(_index2, "sametype", "Lower price of the same type"), (0, _defineProperty2.default)(_index2, "review", "review"), (0, _defineProperty2.default)(_index2, "Productdetails", "Product details"), (0, _defineProperty2.default)(_index2, "Specification", "Specification parameter"), (0, _defineProperty2.default)(_index2, "Recommended", "Recommended goods"), (0, _defineProperty2.default)(_index2, "material", "Main raw material"), (0, _defineProperty2.default)(_index2, "specification", "specification"), (0, _defineProperty2.default)(_index2, "Shelflife", "Shelf life"), (0, _defineProperty2.default)(_index2, "Suitableobject", "Suitable object"), (0, _defineProperty2.default)(_index2, "Customer", "Customer service"), (0, _defineProperty2.default)(_index2, "Shopping", "Shopping cart"), (0, _defineProperty2.default)(_index2, "follow", "follow"), (0, _defineProperty2.default)(_index2, "notification", "Notice of arrival"), (0, _defineProperty2.default)(_index2, "Sele", "Select"), (0, _defineProperty2.default)(_index2, "Salesvolume", "Sales volume"), (0, _defineProperty2.default)(_index2, "stroll", "stroll"), (0, _defineProperty2.default)(_index2, "article", "article"), (0, _defineProperty2.default)(_index2, "know", "I know"), (0, _defineProperty2.default)(_index2, "shar", "Share"), (0, _defineProperty2.default)(_index2, "Copylink", "Copy link"), (0, _defineProperty2.default)(_index2, "Generatepicture", "Generate picture"), (0, _defineProperty2.default)(_index2, "Cancel", "Cancel"), (0, _defineProperty2.default)(_index2, "Paymentsuccess", "Payment success"), (0, _defineProperty2.default)(_index2, "MyOrder", 'It can be viewed in "Personal Center - My Order"'), (0, _defineProperty2.default)(_index2, "Vieworder", "View order"), (0, _defineProperty2.default)(_index2, "Backtohomepage", "Back to home page"), (0, _defineProperty2.default)(_index2, "Channelspecification", "Channel specification"), (0, _defineProperty2.default)(_index2, "Billingmode", "Billing mode"), (0, _defineProperty2.default)(_index2, "Chargeableweight", "Chargeable weight"), (0, _defineProperty2.default)(_index2, "Estimatedcost", "Estimated cost"), (0, _defineProperty2.default)(_index2, "Itemtype", "Item type"), (0, _defineProperty2.default)(_index2, "Channelrule", "Channel rule"), (0, _defineProperty2.default)(_index2, "Copiedpaste", "Copied, go paste ~"), (0, _defineProperty2.default)(_index2, "Replicationfailure", "Replication failure"), (0, _defineProperty2.default)(_index2, "shelves", "We will alert you via wechat message when the item is in stock and on the shelves"), (0, _defineProperty2.default)(_index2, "Actual", "Actual amount paid"), (0, _defineProperty2.default)(_index2, "Balancepayment", "Balance payment"), (0, _defineProperty2.default)(_index2, "Currentbalance", "Current balance"), (0, _defineProperty2.default)(_index2, "WechatPay", "Wechat Pay"), (0, _defineProperty2.default)(_index2, "applicable", "Wechat Pay is applicable"), (0, _defineProperty2.default)(_index2, "Customerservicepayment", "Customer service payment"), (0, _defineProperty2.default)(_index2, "Contactpayment", "Contact customer service payment"), (0, _defineProperty2.default)(_index2, "Paymentinstructions", "Payment instructions"), (0, _defineProperty2.default)(_index2, "Confirmpayment", "Firm payment"), (0, _defineProperty2.default)(_index2, "Commodityamount", "Commodity amount"), (0, _defineProperty2.default)(_index2, "Grosscommodityweight", "Gross commodity weight"), (0, _defineProperty2.default)(_index2, "Costperkilogram", "Cost per kilogram"), (0, _defineProperty2.default)(_index2, "freight", "freight"), (0, _defineProperty2.default)(_index2, "subtotal", "subtotal"), (0, _defineProperty2.default)(_index2, "Atotalof", "A total of"), (0, _defineProperty2.default)(_index2, "Submitorder", "Submit an order"), (0, _defineProperty2.default)(_index2, "next", "next"), (0, _defineProperty2.default)(_index2, "Shipmentdate", "Shipment date"), (0, _defineProperty2.default)(_index2, "Estimatedtimeofarrival", "Estimated time of arrival"), (0, _defineProperty2.default)(_index2, "Workingday", "Working day"), (0, _defineProperty2.default)(_index2, "buy", "buy"), (0, _defineProperty2.default)(_index2, "morefavorable", "Will be more favorable"), (0, _defineProperty2.default)(_index2, "Pleaseproductname", "Please enter the relevant product name"), (0, _defineProperty2.default)(_index2, "Goodgoods", "Good quality goods"), (0, _defineProperty2.default)(_index2, "Saveeverything", "Save everything"), (0, _defineProperty2.default)(_index2, "willpay", "If you buy, you will pay"), (0, _defineProperty2.default)(_index2, "Subsidized", "Subsidized price"), (0, _defineProperty2.default)(_index2, "typeof", "Type"), (0, _defineProperty2.default)(_index2, "weight", "Weight"), (0, _defineProperty2.default)(_index2, "number", "Number"), (0, _defineProperty2.default)(_index2, "Immediatepayment", "Immediate Payment"), (0, _defineProperty2.default)(_index2, "readandagree", "Read and Agree"), (0, _defineProperty2.default)(_index2, "International", "International"), (0, _defineProperty2.default)(_index2, "Estimatedprice", "Estimated Price"), (0, _defineProperty2.default)(_index2, "Marinetank", "Sea Freight Container"), (0, _defineProperty2.default)(_index2, "Expressservice", "Express Service"), (0, _defineProperty2.default)(_index2, "Orderconfirmation", "Order Confirmation"), (0, _defineProperty2.default)(_index2, "successful", "Successful"), (0, _defineProperty2.default)(_index2, "pickpackage", "Waiting for Courier Pickup"), (0, _defineProperty2.default)(_index2, "Ordertime", "Order Time"), (0, _defineProperty2.default)(_index2, "Popularshipment", "Popular Shipment"), (0, _defineProperty2.default)(_index2, "manage", "Management"), (0, _defineProperty2.default)(_index2, "complete", "Complete"), (0, _defineProperty2.default)(_index2, "selectall", "Select All"), (0, _defineProperty2.default)(_index2, "Grossweight", "Gross Weight"), (0, _defineProperty2.default)(_index2, "GotoResult", "Go to Checkout"), (0, _defineProperty2.default)(_index2, "orderpaysforitself", "Order Pays for Itself"), (0, _defineProperty2.default)(_index2, "Soldout", "Sold Out"), (0, _defineProperty2.default)(_index2, "accountBalance", "Account balance"), (0, _defineProperty2.default)(_index2, "myBalance", "my Balance"), (0, _defineProperty2.default)(_index2, "withdrawal", "withdrawal"), (0, _defineProperty2.default)(_index2, "recharge", "recharge"), (0, _defineProperty2.default)(_index2, "balanceDetails", "balance Details"), (0, _defineProperty2.default)(_index2, "all", "whole"), (0, _defineProperty2.default)(_index2, "theres", "There's no more data left"), (0, _defineProperty2.default)(_index2, "mineCommodity", "commodity"), (0, _defineProperty2.default)(_index2, "team", "Team leader"), (0, _defineProperty2.default)(_index2, "people", "people follow"), (0, _defineProperty2.default)(_index2, "see", "View Home Page"), (0, _defineProperty2.default)(_index2, "thatPerson", "Personal functions"), (0, _defineProperty2.default)(_index2, "become", "Become a team leader"), _index2)
- },
- // 西班牙
- "es-ES": {
- index: (_index3 = {
- homepage: "La página",
- switchLanguage: "Cambiar el idioma",
- address: "Gestión de direcciones",
- addAndEdit: "Añadir/cambiar dirección",
- account: "Cuenta y seguridad",
- password: "Cambiar contraseña/número de teléfono móvil",
- switch: "Cambiar el idioma",
- user: "Acuerdo de usuario",
- privacy: "Política de privacidad",
- platform: "Reglas de plataforma",
- merchant: "Acuerdo de solicitud de entrada comercial",
- layout: "Salir del login",
- setup: "Configuración de cuenta",
- information: "Información personal",
- headerImg: "avatares",
- nickname: "apodo",
- prompt: "Limitado a 4-24 caracteres (1 kanji =2 caracteres, 1 número vivo en inglés =1 carácter)",
- editNextname: "Editar el apodo",
- inland: "China continental",
- international: "internacional",
- initial: "Dirección por defecto",
- edit: "editor",
- delete: "borrar",
- wx: "Importación de wechat",
- add: "Nueva dirección añadida",
- contacts: "Información de contacto",
- wxAddress: "Dirección wechat delgada",
- newAddress: "Nueva dirección",
- name: "Los nombres",
- phone: "Teléfono móvil no",
- city: "Provincia y ciudad",
- detailed: "Dirección completa",
- goods: "Por favor complete la información del destinatario",
- pleasePhoneNumber: "Por favor, introduzca el número de teléfono móvil del destinatario",
- township: "Provincia ciudad distrito condado pueblo etc",
- sect: "Por favor, introduzca la dirección exacta al número de la casa",
- company: "Nombre de la empresa (opcional)",
- preserve: "guardar",
- empty: "vacíe",
- country: "países",
- postalCode: "Código postal",
- email: "Correo electrónico",
- companyName: "Nombre de empresa",
- selection: "favor seleccione",
- PleacePostalCode: "Por favor ingrese su código postal",
- addressBook: "Guardar a la dirección delgada",
- pleaseEmail: "Por favor, introduzca su correo electrónico (opcional)",
- editPassword: "Cambiar contraseña de acceso",
- editPhone: "Cambiar el número de teléfono",
- accountCancellation: "Cierre de cuenta",
- setPassword: "Establecer una contraseña",
- cancellation: "No se puede restaurar después de la cancelación, por favor, tenga cuidado",
- myDeposit: "Mi depósito de seguridad",
- balance: "El saldo",
- mineFollow: "Mi preocupación por",
- myPackage: "Mi paquete de",
- mallOrders: "Orden del centro",
- whole: "total",
- pendingPayment: "Pendiente de pago",
- joiningGroups: "En grupo",
- toBeShipped: "Listo para enviar",
- toBeReceived: "Para recibir",
- refund: "Reembolso/post-venta",
- leaderunction: "Función jefe"
- }, (0, _defineProperty2.default)(_index3, "platform", "Plataforma mercancía biblioteca"), (0, _defineProperty2.default)(_index3, "productManagement", "Gestión de mercancías"), (0, _defineProperty2.default)(_index3, "orderManagement", "Gestión de pedidos"), (0, _defineProperty2.default)(_index3, "afterSales", "Gestión post-venta"), (0, _defineProperty2.default)(_index3, "supplyChain", "Cadena de suministro commodities"), (0, _defineProperty2.default)(_index3, "PCEnd", "PC cliente"), (0, _defineProperty2.default)(_index3, "pontact", "Contactar servicio al cliente"), (0, _defineProperty2.default)(_index3, "accountSettings", "Configuración de cuenta"), (0, _defineProperty2.default)(_index3, "shop", "Comercial"), (0, _defineProperty2.default)(_index3, "border", "transfronterizo"), (0, _defineProperty2.default)(_index3, "item", "Artículos"), (0, _defineProperty2.default)(_index3, "required", "Obligatorio"), (0, _defineProperty2.default)(_index3, "flow", "Logística transfronteriza"), (0, _defineProperty2.default)(_index3, "share", "Compartir"), (0, _defineProperty2.default)(_index3, "compute", "Calculadora"), (0, _defineProperty2.default)(_index3, "deliver", "Enviado al punto de tránsito"), (0, _defineProperty2.default)(_index3, "Sign", "El tránsito ha sido firmado"), (0, _defineProperty2.default)(_index3, "overseas", "Se está enviando al extranjero"), (0, _defineProperty2.default)(_index3, "mail", "Ir a enviar"), (0, _defineProperty2.default)(_index3, "mine", "El mío"), (0, _defineProperty2.default)(_index3, "addsign", "Añadir paquetes de puntos de tránsito"), (0, _defineProperty2.default)(_index3, "more", "Más"), (0, _defineProperty2.default)(_index3, "price", "Precio unitario"), (0, _defineProperty2.default)(_index3, "already", "Se ha luchado"), (0, _defineProperty2.default)(_index3, "parcel", "Paquete"), (0, _defineProperty2.default)(_index3, "residue", "residual"), (0, _defineProperty2.default)(_index3, "plan", "Progreso"), (0, _defineProperty2.default)(_index3, "start", "Hora de inicio"), (0, _defineProperty2.default)(_index3, "cut", "Plazo"), (0, _defineProperty2.default)(_index3, "parceling", "Envío de paquetes en el extranjero"), (0, _defineProperty2.default)(_index3, "goparceling", "Ir a empacar"), (0, _defineProperty2.default)(_index3, "sender", "Nuevo remitente"), (0, _defineProperty2.default)(_index3, "recipient", "Nuevo destinatario"), (0, _defineProperty2.default)(_index3, "informat", "Rellene la información de la dirección de envío"), (0, _defineProperty2.default)(_index3, "informate", "Rellene la información de la dirección de recepción"), (0, _defineProperty2.default)(_index3, "addressbook", "Libreta de direcciones"), (0, _defineProperty2.default)(_index3, "select", "Por favor, seleccione la información del artículo"), (0, _defineProperty2.default)(_index3, "search", "Buscar"), (0, _defineProperty2.default)(_index3, "Searchcon", "Contenido de la búsqueda"), (0, _defineProperty2.default)(_index3, "expensive", "Comprar caro Debe pagar"), (0, _defineProperty2.default)(_index3, "Something", "Cosas buenas del mundo"), (0, _defineProperty2.default)(_index3, "postage", "Envío gratis"), (0, _defineProperty2.default)(_index3, "Trade", "Cambiar lo viejo por lo nuevo"), (0, _defineProperty2.default)(_index3, "sort", "Clasificación"), (0, _defineProperty2.default)(_index3, "fill", "Subvenciones"), (0, _defineProperty2.default)(_index3, "RMB", "RMB"), (0, _defineProperty2.default)(_index3, "history", "Dirección histórica"), (0, _defineProperty2.default)(_index3, "Fill", "Por favor, rellene"), (0, _defineProperty2.default)(_index3, "senderinfo", "Rellene la información del remitente"), (0, _defineProperty2.default)(_index3, "addressee", "Por favor ingrese el nombre del destinatario"), (0, _defineProperty2.default)(_index3, "enter", "determinar"), (0, _defineProperty2.default)(_index3, "shoptype", "Tipo de mercancía"), (0, _defineProperty2.default)(_index3, "estimated", "Peso estimado estimado"), (0, _defineProperty2.default)(_index3, "piece", "algo"), (0, _defineProperty2.default)(_index3, "rule", "Entender las reglas de facturación"), (0, _defineProperty2.default)(_index3, "Starting", "incipiente"), (0, _defineProperty2.default)(_index3, "destination", "destino"), (0, _defineProperty2.default)(_index3, "Commodity", "Peso de mercancía"), (0, _defineProperty2.default)(_index3, "Acquisition", "Obtener el precio"), (0, _defineProperty2.default)(_index3, "Calculated", "Calcula el peso"), (0, _defineProperty2.default)(_index3, "Estimated", "Gastos de envío estimados"), (0, _defineProperty2.default)(_index3, "details", "Ver los detalles"), (0, _defineProperty2.default)(_index3, "Normal", "Bienes comunes"), (0, _defineProperty2.default)(_index3, "special", "Mercancía especial"), (0, _defineProperty2.default)(_index3, "orderSearch", "Por favor, introduzca el número de pedido buscar"), (0, _defineProperty2.default)(_index3, "orderWeight", "Peso total del pedido cargado por la página actual"), (0, _defineProperty2.default)(_index3, "purchase", "Plataforma de compra propia"), (0, _defineProperty2.default)(_index3, "OrderNumber", "Número de pedido"), (0, _defineProperty2.default)(_index3, "Parcelweight", "Peso del paquete"), (0, _defineProperty2.default)(_index3, "payment", "Pague ahora mismo"), (0, _defineProperty2.default)(_index3, "Frozen", " congelación"), (0, _defineProperty2.default)(_index3, "recover", " recuperación"), (0, _defineProperty2.default)(_index3, "total", "total"), (0, _defineProperty2.default)(_index3, "selfPost", "Postal desde"), (0, _defineProperty2.default)(_index3, "receiveGoods", "A recibir en la plataforma"), (0, _defineProperty2.default)(_index3, "TrackingNumber", "Número de seguimiento"), (0, _defineProperty2.default)(_index3, "trackingNumber", "Ingrese el número de seguimiento para agregar rápidamente a mi paquete"), (0, _defineProperty2.default)(_index3, "Expresscompany", "Empresa de mensajería"), (0, _defineProperty2.default)(_index3, "ExpressCompany", "Introduzca el nombre de la empresa de mensajería"), (0, _defineProperty2.default)(_index3, "parcelWeight", "Por favor ingrese el peso del paquete"), (0, _defineProperty2.default)(_index3, "Addlist", "Añadir a la lista de paquetes"), (0, _defineProperty2.default)(_index3, "Addparcel", "Añadir un paquete"), (0, _defineProperty2.default)(_index3, "Packlist", "Lista de paquetes"), (0, _defineProperty2.default)(_index3, "classification", "Clasificación de mercancías"), (0, _defineProperty2.default)(_index3, "synthesis", "integrado"), (0, _defineProperty2.default)(_index3, "sell", "venta"), (0, _defineProperty2.default)(_index3, "Pricea", "precio"), (0, _defineProperty2.default)(_index3, "screen", "selección"), (0, _defineProperty2.default)(_index3, "Pricerange", "Rango de precios"), (0, _defineProperty2.default)(_index3, "Weightinterval", "Intervalo de peso"), (0, _defineProperty2.default)(_index3, "brand", "La marca"), (0, _defineProperty2.default)(_index3, "Proprietary", "Mercancía por cuenta propia"), (0, _defineProperty2.default)(_index3, "reset", "restaurar"), (0, _defineProperty2.default)(_index3, "yes", "es"), (0, _defineProperty2.default)(_index3, "Bottomprice", "Precio más bajo"), (0, _defineProperty2.default)(_index3, "highestprice", "Precio máximo"), (0, _defineProperty2.default)(_index3, "Discounted", "Precio con descuento"), (0, _defineProperty2.default)(_index3, "service", "servicios"), (0, _defineProperty2.default)(_index3, "Netcontent", "Contenido neto"), (0, _defineProperty2.default)(_index3, "sametype", "Mismo modelo bajo precio"), (0, _defineProperty2.default)(_index3, "review", "comentarios"), (0, _defineProperty2.default)(_index3, "Productdetails", "Detalles de mercancía"), (0, _defineProperty2.default)(_index3, "Specification", "Especificaciones y parámetros"), (0, _defineProperty2.default)(_index3, "Recommended", "Artículos recomendados para"), (0, _defineProperty2.default)(_index3, "material", "Materia prima principal"), (0, _defineProperty2.default)(_index3, "specification", "Las especificaciones"), (0, _defineProperty2.default)(_index3, "Shelflife", "caducidad"), (0, _defineProperty2.default)(_index3, "Suitableobject", "Apto para objetos"), (0, _defineProperty2.default)(_index3, "Customer", "call"), (0, _defineProperty2.default)(_index3, "Shopping", "carrito"), (0, _defineProperty2.default)(_index3, "follow", "atención"), (0, _defineProperty2.default)(_index3, "notification", "Notificación de llegada"), (0, _defineProperty2.default)(_index3, "Sele", "seleccione"), (0, _defineProperty2.default)(_index3, "Salesvolume", "Volumen de ventas"), (0, _defineProperty2.default)(_index3, "stroll", "Los alrededores"), (0, _defineProperty2.default)(_index3, "article", "Art"), (0, _defineProperty2.default)(_index3, "know", "Lo sé"), (0, _defineProperty2.default)(_index3, "shar", "compartir"), (0, _defineProperty2.default)(_index3, "Copylink", "Copiar el enlace"), (0, _defineProperty2.default)(_index3, "Generatepicture", "Generar una imagen"), (0, _defineProperty2.default)(_index3, "Cancel", "cancelación"), (0, _defineProperty2.default)(_index3, "Paymentsuccess", "Pago realizado con éxito"), (0, _defineProperty2.default)(_index3, "MyOrder", "Disponible en personal center - mis pedidos"), (0, _defineProperty2.default)(_index3, "Vieworder", "Ver el pedido"), (0, _defineProperty2.default)(_index3, "Backtohomepage", "Volver al inicio"), (0, _defineProperty2.default)(_index3, "Channelspecification", "Descripción del canal"), (0, _defineProperty2.default)(_index3, "Billingmode", "Modelo de facturación"), (0, _defineProperty2.default)(_index3, "Chargeableweight", "Peso facturable"), (0, _defineProperty2.default)(_index3, "Estimatedcost", "Estimación de gastos"), (0, _defineProperty2.default)(_index3, "Itemtype", "Tipos de artículos"), (0, _defineProperty2.default)(_index3, "Channelrule", "Reglas del canal"), (0, _defineProperty2.default)(_index3, "Copiedpaste", "Ya copiado, ir y pegar"), (0, _defineProperty2.default)(_index3, "Replicationfailure", "Falla en copiar"), (0, _defineProperty2.default)(_index3, "shelves", "Le recordaremos a través del mensaje de wechat cuando el artículo está en stock y en estante"), (0, _defineProperty2.default)(_index3, "Actual", "Cantidad a pagar"), (0, _defineProperty2.default)(_index3, "Balancepayment", "Pago del saldo"), (0, _defineProperty2.default)(_index3, "Currentbalance", "Balance actual"), (0, _defineProperty2.default)(_index3, "WechatPay", "Pago con wechat"), (0, _defineProperty2.default)(_index3, "applicable", "Pago wechat aplicable"), (0, _defineProperty2.default)(_index3, "Customerservicepayment", "Servicio al cliente pago"), (0, _defineProperty2.default)(_index3, "Contactpayment", "Contacto servicio al cliente pago"), (0, _defineProperty2.default)(_index3, "Paymentinstructions", "Notas de pago"), (0, _defineProperty2.default)(_index3, "Confirmpayment", "Determine su pago"), (0, _defineProperty2.default)(_index3, "Commodityamount", "Cantidad de bienes"), (0, _defineProperty2.default)(_index3, "Grosscommodityweight", "Peso total de la mercancía"), (0, _defineProperty2.default)(_index3, "Costperkilogram", "Coste por kg"), (0, _defineProperty2.default)(_index3, "freight", "El flete"), (0, _defineProperty2.default)(_index3, "subtotal", "subtotal"), (0, _defineProperty2.default)(_index3, "Atotalof", "total"), (0, _defineProperty2.default)(_index3, "Submitorder", "Enviar un pedido"), (0, _defineProperty2.default)(_index3, "next", "Siguiente paso"), (0, _defineProperty2.default)(_index3, "Shipmentdate", "Fecha del gabinete de salida"), (0, _defineProperty2.default)(_index3, "Estimatedtimeofarrival", "Hora estimada de llegada"), (0, _defineProperty2.default)(_index3, "Workingday", "Días laborables"), (0, _defineProperty2.default)(_index3, "buy", "Comprar hasta"), (0, _defineProperty2.default)(_index3, "morefavorable", "Será mejor"), (0, _defineProperty2.default)(_index3, "Pleaseproductname", "Por favor ingrese el nombre comercial relevante"), (0, _defineProperty2.default)(_index3, "Goodgoods", "Productos de buena calidad"), (0, _defineProperty2.default)(_index3, "Saveeverything", "Cada estilo debe ahorrar"), (0, _defineProperty2.default)(_index3, "willpay", "Comprar caro, pagar"), (0, _defineProperty2.default)(_index3, "Subsidized", "Precio subvencionado"), (0, _defineProperty2.default)(_index3, "typeof", "tipo"), (0, _defineProperty2.default)(_index3, "weight", "peso"), (0, _defineProperty2.default)(_index3, "number", "número"), (0, _defineProperty2.default)(_index3, "Immediatepayment", "pago inmediato"), (0, _defineProperty2.default)(_index3, "readandagree", "he leído y acepto"), (0, _defineProperty2.default)(_index3, "International", "internacional"), (0, _defineProperty2.default)(_index3, "Estimatedprice", "precio estimado"), (0, _defineProperty2.default)(_index3, "Marinetank", "contenedor marítimo"), (0, _defineProperty2.default)(_index3, "Expressservice", "servicio de expreso"), (0, _defineProperty2.default)(_index3, "Orderconfirmation", "confirmación de pedido"), (0, _defineProperty2.default)(_index3, "successful", "exitoso"), (0, _defineProperty2.default)(_index3, "pickpackage", "esperando recogida del mensajero"), (0, _defineProperty2.default)(_index3, "Ordertime", "hora del pedido"), (0, _defineProperty2.default)(_index3, "Popularshipment", "envío popular"), (0, _defineProperty2.default)(_index3, "manage", "gestionar"), (0, _defineProperty2.default)(_index3, "complete", "completar"), (0, _defineProperty2.default)(_index3, "selectall", "seleccionar todo"), (0, _defineProperty2.default)(_index3, "Grossweight", "peso bruto"), (0, _defineProperty2.default)(_index3, "GotoResult", "ir al pago"), (0, _defineProperty2.default)(_index3, "orderpaysforitself", "compensación por pedidos defectuosos"), (0, _defineProperty2.default)(_index3, "Soldout", "agotado"), (0, _defineProperty2.default)(_index3, "accountBalance", "Saldo de la cuenta"), (0, _defineProperty2.default)(_index3, "myBalance", "Mi saldo"), (0, _defineProperty2.default)(_index3, "withdrawal", "Retiro de efectivo"), (0, _defineProperty2.default)(_index3, "recharge", "Recargar"), (0, _defineProperty2.default)(_index3, "balanceDetails", "Detalles del saldo"), (0, _defineProperty2.default)(_index3, "all", "Todo"), (0, _defineProperty2.default)(_index3, "theres", "No hay más datos"), (0, _defineProperty2.default)(_index3, "mineCommodity", "Productos Básicos"), (0, _defineProperty2.default)(_index3, "team", "Jefe del regimiento"), (0, _defineProperty2.default)(_index3, "people", "Atención humana"), (0, _defineProperty2.default)(_index3, "see", "Ver página de inicio"), (0, _defineProperty2.default)(_index3, "thatPerson", "Función personal"), (0, _defineProperty2.default)(_index3, "become", "Convertirse en Jefe de grupo"), _index3)
- },
- //意大利
- "it-IT": {
- index: (_index4 = {
- homepage: "Home page",
- switchLanguage: "Cambio di lingua",
- address: "Gestione degli indirizzi",
- addAndEdit: "Nuovi indirizzi/modifiche",
- account: "Numero di conto e sicurezza",
- password: "Modificare la parola d’ordine/numero di cellulare",
- switch: "Cambio di lingua",
- user: "Accordi per gli utenti",
- privacy: "Politica in materia di tutela della vita privata",
- platform: "Regole per le piattaforme",
- merchant: "Accordo di adesione di un commerciante",
- layout: "Uscita logon",
- setup: "Fissazione del numero di conto",
- information: "Dati personali",
- headerImg: "avatar",
- nickname: "soprannome",
- prompt: "Limite da 4 a 24 caratteri (1 cinese =2 caratteri, 1 inglese vivo =1 carattere)",
- editNextname: "Soprannomi di redazione",
- inland: "Cina continentale",
- international: "internazionale",
- initial: "Indirizzo predefinito",
- edit: "editoriale",
- delete: "cancellare",
- wx: "Importazioni di wechat",
- add: "Nuovo indirizzo",
- contacts: "Información de contacto",
- wxAddress: "Dirección wechat delgada",
- newAddress: "Nuovi indirizzi",
- name: "nomi",
- phone: "Numero di telefono",
- city: "Aree metropolitane",
- detailed: "Indirizzo completo",
- goods: "Per piacere, completare l’informazione del destinatario",
- pleasePhoneNumber: "Per piacere, completare il numero di telefono del destinatario",
- township: "I comuni e le province le regioni, le città, ecc",
- sect: "Si prega di indicare l’indirizzo completo con il numero della targa",
- company: "Nome della società (indicare il nome della società)",
- preserve: "conservazione",
- empty: "svuotati",
- country: "paesi",
- postalCode: "P.",
- email: "Posta elettronica",
- companyName: "Nome della società",
- selection: "selezione",
- PleacePostalCode: "Per favore digitate il codice postale",
- addressBook: "Conservare all’indirizzo sottile",
- pleaseEmail: "Per abbonarsi, digitare la casella di posta elettronica (indirizzatela)",
- editPassword: "Modificare la password logon",
- editPhone: "Modifica del numero di telefono",
- accountCancellation: "Annullamento dei conti",
- setPassword: "Stabilire la password",
- cancellation: "Se il recupero non è possibile dopo l’annullamento, occorre procedere con cautela",
- myDeposit: "I margine",
- balance: "saldo",
- mineFollow: "La mia preoccupazione",
- myPackage: "Il mio pacco",
- mallOrders: "Orden del centro",
- whole: "totale",
- pendingPayment: "Pagamenti da effettuare",
- joiningGroups: "Nella composizione",
- toBeShipped: "Prodotti in attesa di spedizione",
- toBeReceived: "Para recibir",
- refund: "Rimborso/assistenza post-vendita",
- leaderunction: "Funzioni del capo servizio"
- }, (0, _defineProperty2.default)(_index4, "platform", "Banca di prodotti di base"), (0, _defineProperty2.default)(_index4, "productManagement", "Gestione dei prodotti di base"), (0, _defineProperty2.default)(_index4, "orderManagement", "Gestione delle ordinazioni"), (0, _defineProperty2.default)(_index4, "afterSales", "Gestione post-vendita"), (0, _defineProperty2.default)(_index4, "supplyChain", "Prodotti della catena d’approvvigionamento"), (0, _defineProperty2.default)(_index4, "PCEnd", "PC, copiglie, pernotti"), (0, _defineProperty2.default)(_index4, "pontact", "Contatti con il servizio clienti"), (0, _defineProperty2.default)(_index4, "accountSettings", "Fissazione del numero di conto"), (0, _defineProperty2.default)(_index4, "shop", "posta"), (0, _defineProperty2.default)(_index4, "border", "transfrontaliero"), (0, _defineProperty2.default)(_index4, "item", "Informazioni sugli articoli"), (0, _defineProperty2.default)(_index4, "required", "Sarà compilata"), (0, _defineProperty2.default)(_index4, "flow", "La logistica transfrontaliera"), (0, _defineProperty2.default)(_index4, "share", "condividere"), (0, _defineProperty2.default)(_index4, "compute", "calcolatrici"), (0, _defineProperty2.default)(_index4, "deliver", "Punti di transito"), (0, _defineProperty2.default)(_index4, "Sign", "I trasferimenti sono stati firmati"), (0, _defineProperty2.default)(_index4, "overseas", "Sta andando all’estero"), (0, _defineProperty2.default)(_index4, "mail", "Per inviare gli articoli"), (0, _defineProperty2.default)(_index4, "mine", "La mia"), (0, _defineProperty2.default)(_index4, "addsign", "Aggiungere i pacchi ai punti di transito"), (0, _defineProperty2.default)(_index4, "more", "più"), (0, _defineProperty2.default)(_index4, "price", "Prezzo unitario"), (0, _defineProperty2.default)(_index4, "already", "Ha scritto"), (0, _defineProperty2.default)(_index4, "parcel", "pacchi"), (0, _defineProperty2.default)(_index4, "residue", "residuo"), (0, _defineProperty2.default)(_index4, "plan", "processo "), (0, _defineProperty2.default)(_index4, "start", "Ora di inizio"), (0, _defineProperty2.default)(_index4, "cut", "Tempo di chiusura"), (0, _defineProperty2.default)(_index4, "parceling", "Speaker all’estero"), (0, _defineProperty2.default)(_index4, "goparceling", "dischetti"), (0, _defineProperty2.default)(_index4, "sender", "Nuovi mittenti"), (0, _defineProperty2.default)(_index4, "recipient", "Nuovi destinatari"), (0, _defineProperty2.default)(_index4, "informat", "Compilare il tagliando di spedizione"), (0, _defineProperty2.default)(_index4, "informate", "Indicare l’indirizzo per il ricevimento"), (0, _defineProperty2.default)(_index4, "addressbook", "Indirizzo sottile"), (0, _defineProperty2.default)(_index4, "select", "Si prega di selezionare informazioni sugli articoli"), (0, _defineProperty2.default)(_index4, "search", "ricerca"), (0, _defineProperty2.default)(_index4, "Searchcon", "Contenuto della ricerca"), (0, _defineProperty2.default)(_index4, "expensive", "Comprare costoso Mosto del"), (0, _defineProperty2.default)(_index4, "Something", "Il bene globale"), (0, _defineProperty2.default)(_index4, "postage", "Circostanze eccezionali"), (0, _defineProperty2.default)(_index4, "Trade", "Cambiare vecchio per nuovo"), (0, _defineProperty2.default)(_index4, "sort", "classificazione"), (0, _defineProperty2.default)(_index4, "fill", "sovvenzioni"), (0, _defineProperty2.default)(_index4, "RMB", "RMB"), (0, _defineProperty2.default)(_index4, "history", "Indirizzo storico"), (0, _defineProperty2.default)(_index4, "Fill", "Per piacere"), (0, _defineProperty2.default)(_index4, "senderinfo", "Compilare le informazioni inviate ai mittenti"), (0, _defineProperty2.default)(_index4, "addressee", "Indicare il nome del destinatario"), (0, _defineProperty2.default)(_index4, "enter", "definire"), (0, _defineProperty2.default)(_index4, "shoptype", "Tipo di merce"), (0, _defineProperty2.default)(_index4, "estimated", "Peso stimato"), (0, _defineProperty2.default)(_index4, "piece", "cosa"), (0, _defineProperty2.default)(_index4, "rule", "Conoscenza delle norme di fatturazione"), (0, _defineProperty2.default)(_index4, "Starting", "Verso l’alto"), (0, _defineProperty2.default)(_index4, "destination", "destinazione"), (0, _defineProperty2.default)(_index4, "Commodity", "Peso delle merci"), (0, _defineProperty2.default)(_index4, "Acquisition", "Accesso ai prezzi"), (0, _defineProperty2.default)(_index4, "Calculated", "Calcolo del peso"), (0, _defineProperty2.default)(_index4, "Estimated", "Nolo stimato"), (0, _defineProperty2.default)(_index4, "details", "Esaminare i dettagli"), (0, _defineProperty2.default)(_index4, "Normal", "Merci comuni"), (0, _defineProperty2.default)(_index4, "special", "Prodotti speciali"), (0, _defineProperty2.default)(_index4, "orderSearch", "Digitare il numero d’ordine per effettuare la ricerca"), (0, _defineProperty2.default)(_index4, "orderWeight", "Peso totale delle ordinazioni attualmente caricate"), (0, _defineProperty2.default)(_index4, "purchase", "Acquisto di piattaforme"), (0, _defineProperty2.default)(_index4, "OrderNumber", "Numero d’ordine"), (0, _defineProperty2.default)(_index4, "Parcelweight", "Peso del pacco"), (0, _defineProperty2.default)(_index4, "payment", "Pagamenti immediati"), (0, _defineProperty2.default)(_index4, "Frozen", "congelamento"), (0, _defineProperty2.default)(_index4, "recover", "ripristino"), (0, _defineProperty2.default)(_index4, "total", "totale"), (0, _defineProperty2.default)(_index4, "selfPost", "Inviata dal"), (0, _defineProperty2.default)(_index4, "receiveGoods", "Lascia alla piattaforma il carico"), (0, _defineProperty2.default)(_index4, "TrackingNumber", "Numero del corriere espresso"), (0, _defineProperty2.default)(_index4, "trackingNumber", "Inserire il numero d’ordine del corriere rapido e completare rapidamente il pacco"), (0, _defineProperty2.default)(_index4, "Expresscompany", "Società di corriere rapido"), (0, _defineProperty2.default)(_index4, "ExpressCompany", "Indicare il nome del servizio di corriere espresso"), (0, _defineProperty2.default)(_index4, "parcelWeight", "Per piacere indicare il peso del pacco"), (0, _defineProperty2.default)(_index4, "Addlist", "Aggiunta all’elenco dei colli"), (0, _defineProperty2.default)(_index4, "Addparcel", "Aggiunta di pacchi"), (0, _defineProperty2.default)(_index4, "Packlist", "Elenco degli statuti"), (0, _defineProperty2.default)(_index4, "classification", "Classificazione delle merci"), (0, _defineProperty2.default)(_index4, "synthesis", "integrato"), (0, _defineProperty2.default)(_index4, "sell", "vendita"), (0, _defineProperty2.default)(_index4, "Pricea", "prezzi"), (0, _defineProperty2.default)(_index4, "screen", "screening"), (0, _defineProperty2.default)(_index4, "Pricerange", "Fascia di prezzo"), (0, _defineProperty2.default)(_index4, "Weightinterval", "Intervallo di peso"), (0, _defineProperty2.default)(_index4, "brand", "marca"), (0, _defineProperty2.default)(_index4, "Proprietary", "Prodotti per uso proprio"), (0, _defineProperty2.default)(_index4, "reset", "sostituzione"), (0, _defineProperty2.default)(_index4, "yes", "è"), (0, _defineProperty2.default)(_index4, "Bottomprice", "Prezzo più basso"), (0, _defineProperty2.default)(_index4, "highestprice", "Prezzo massimo"), (0, _defineProperty2.default)(_index4, "Discounted", "Prezzo ridotto"), (0, _defineProperty2.default)(_index4, "service", "servizi"), (0, _defineProperty2.default)(_index4, "Netcontent", "Tenore netto"), (0, _defineProperty2.default)(_index4, "sametype", "Prezzo ridotto dello stesso articolo"), (0, _defineProperty2.default)(_index4, "review", "commenti"), (0, _defineProperty2.default)(_index4, "Productdetails", "Dettaglio delle merci"), (0, _defineProperty2.default)(_index4, "Specification", "Parametri delle specifiche"), (0, _defineProperty2.default)(_index4, "Recommended", "Prodotti raccomandati"), (0, _defineProperty2.default)(_index4, "material", "Principali materie prime"), (0, _defineProperty2.default)(_index4, "specification", "Le specifiche"), (0, _defineProperty2.default)(_index4, "Shelflife", "Periodo di validità"), (0, _defineProperty2.default)(_index4, "Suitableobject", "Adatto agli oggetti"), (0, _defineProperty2.default)(_index4, "Customer", "servizio"), (0, _defineProperty2.default)(_index4, "Shopping", "Carrelli per acquisti"), (0, _defineProperty2.default)(_index4, "follow", "attenzione"), (0, _defineProperty2.default)(_index4, "notification", "Notifica di ricevimento"), (0, _defineProperty2.default)(_index4, "Sele", "scelta"), (0, _defineProperty2.default)(_index4, "Salesvolume", "Volume delle vendite"), (0, _defineProperty2.default)(_index4, "stroll", "gira"), (0, _defineProperty2.default)(_index4, "article", "articolo"), (0, _defineProperty2.default)(_index4, "know", "Io so che"), (0, _defineProperty2.default)(_index4, "shar", "condividere"), (0, _defineProperty2.default)(_index4, "Copylink", "Riproduzione di un link"), (0, _defineProperty2.default)(_index4, "Generatepicture", "Creazione di immagini"), (0, _defineProperty2.default)(_index4, "Cancel", "soppressione"), (0, _defineProperty2.default)(_index4, "MyOrder", "Disponibile presso il centro personale"), (0, _defineProperty2.default)(_index4, "Vieworder", "Controllare l’ordine"), (0, _defineProperty2.default)(_index4, "Backtohomepage", "Ritorno alla pagina iniziale"), (0, _defineProperty2.default)(_index4, "Channelspecification", "Descrizione dei canali"), (0, _defineProperty2.default)(_index4, "Billingmode", "Modelli di fatturazione"), (0, _defineProperty2.default)(_index4, "Chargeableweight", "Peso della fatturazione"), (0, _defineProperty2.default)(_index4, "Estimatedcost", "Oneri stimati"), (0, _defineProperty2.default)(_index4, "Itemtype", "Tipo di articolo"), (0, _defineProperty2.default)(_index4, "Channelrule", "Regolamentazione del canale"), (0, _defineProperty2.default)(_index4, "Copiedpaste", "Già copiato. Andiamo a fare affissione"), (0, _defineProperty2.default)(_index4, "Replicationfailure", "Fallimento della riproduzione"), (0, _defineProperty2.default)(_index4, "shelves", "Vi ricorderemo tramite wechat quando la merce è in stock e si mette sul mercato"), (0, _defineProperty2.default)(_index4, "Actual", "Importo versato"), (0, _defineProperty2.default)(_index4, "Balancepayment", "Pagamenti del saldo"), (0, _defineProperty2.default)(_index4, "Currentbalance", "Saldo delle partite correnti"), (0, _defineProperty2.default)(_index4, "WechatPay", "Pagamento tramite wechat"), (0, _defineProperty2.default)(_index4, "applicable", "Si applicano i pagamenti di wechat"), (0, _defineProperty2.default)(_index4, "Customerservicepayment", "Retribuzione del trasporto passeggeri"), (0, _defineProperty2.default)(_index4, "Contactpayment", "Contatti con i clienti pagamento"), (0, _defineProperty2.default)(_index4, "Paymentinstructions", "Avvisi di pagamento"), (0, _defineProperty2.default)(_index4, "Confirmpayment", "Determinazione dei pagamenti"), (0, _defineProperty2.default)(_index4, "Commodityamount", "Volume delle merci"), (0, _defineProperty2.default)(_index4, "Grosscommodityweight", "Peso totale delle merci"), (0, _defineProperty2.default)(_index4, "Costperkilogram", "Onere per kg"), (0, _defineProperty2.default)(_index4, "freight", "nolo"), (0, _defineProperty2.default)(_index4, "subtotal", "Totale parziale"), (0, _defineProperty2.default)(_index4, "Atotalof", "total"), (0, _defineProperty2.default)(_index4, "Submitorder", "Presentazione delle ordinazioni"), (0, _defineProperty2.default)(_index4, "next", "Le fasi successive"), (0, _defineProperty2.default)(_index4, "Shipmentdate", "Data di spedizione"), (0, _defineProperty2.default)(_index4, "Estimatedtimeofarrival", "Orario d’arrivo previsto"), (0, _defineProperty2.default)(_index4, "Workingday", "Giorni lavorativi"), (0, _defineProperty2.default)(_index4, "buy", "acquisti"), (0, _defineProperty2.default)(_index4, "morefavorable", "Più favorevole"), (0, _defineProperty2.default)(_index4, "Pleaseproductname", "Indicare il nome commerciale"), (0, _defineProperty2.default)(_index4, "Goodgoods", "Prodotti di qualità"), (0, _defineProperty2.default)(_index4, "Saveeverything", "Ogni contributo sarà provinciale"), (0, _defineProperty2.default)(_index4, "willpay", "L’acquisto è a pagamento"), (0, _defineProperty2.default)(_index4, "Subsidized", "Prezzo sovvenzionato"), (0, _defineProperty2.default)(_index4, "typeof", "tipo"), (0, _defineProperty2.default)(_index4, "weight", "peso"), (0, _defineProperty2.default)(_index4, "number", "numero"), (0, _defineProperty2.default)(_index4, "Immediatepayment", "pagamento immediato"), (0, _defineProperty2.default)(_index4, "readandagree", "ho letto e accetto"), (0, _defineProperty2.default)(_index4, "International", "internazionale"), (0, _defineProperty2.default)(_index4, "Estimatedprice", "prezzo stimato"), (0, _defineProperty2.default)(_index4, "Marinetank", "container marittimo"), (0, _defineProperty2.default)(_index4, "Expressservice", "servizio di espressione"), (0, _defineProperty2.default)(_index4, "Orderconfirmation", "conferma dell'ordine"), (0, _defineProperty2.default)(_index4, "successful", "riusciti"), (0, _defineProperty2.default)(_index4, "pickpackage", "in attesa della raccolta dal corriere"), (0, _defineProperty2.default)(_index4, "Ordertime", "tempo dell'ordine"), (0, _defineProperty2.default)(_index4, "switch", "commutare"), (0, _defineProperty2.default)(_index4, "Popularshipment", "spedizione popolare"), (0, _defineProperty2.default)(_index4, "manage", "gestire"), (0, _defineProperty2.default)(_index4, "complete", "completare"), (0, _defineProperty2.default)(_index4, "selectall", "seleziona tutto"), (0, _defineProperty2.default)(_index4, "Grossweight", "peso lordo"), (0, _defineProperty2.default)(_index4, "GotoResult", "vai al checkout"), (0, _defineProperty2.default)(_index4, "orderpaysforitself", "risarcimento per gli ordini difettosi"), (0, _defineProperty2.default)(_index4, "Soldout", "esaurito"), (0, _defineProperty2.default)(_index4, "accountBalance", "Saldo del conto"), (0, _defineProperty2.default)(_index4, "myBalance", "Il mio equilibrio"), (0, _defineProperty2.default)(_index4, "withdrawal", "Ritiro"), (0, _defineProperty2.default)(_index4, "recharge", "Ricarica"), (0, _defineProperty2.default)(_index4, "balanceDetails", "Dettagli del saldo"), (0, _defineProperty2.default)(_index4, "all", "intero"), (0, _defineProperty2.default)(_index4, "theres", "Non ci sono più dati"), (0, _defineProperty2.default)(_index4, "mineCommodity", "merce"), (0, _defineProperty2.default)(_index4, "team", "Team leader"), (0, _defineProperty2.default)(_index4, "people", "La gente segue"), (0, _defineProperty2.default)(_index4, "see", "Visualizza Home Page"), (0, _defineProperty2.default)(_index4, "thatPerson", "Funzioni personali"), (0, _defineProperty2.default)(_index4, "become", "Diventa un team leader"), _index4)
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 161:
- /*!*****************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/commont/http.interceptor.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(uni) {// 此vm参数为页面的实例,可以通过它引用vuex中的变量
- module.exports = function (vm) {
- // 初始化请求配置
- uni.$u.http.setConfig(function (config) {
- /* config 为默认全局配置*/
- config.baseURL = "https://cbec.hdlkeji.com"; /* 根域名 */
- return config;
- });
- // 请求拦截
- uni.$u.http.interceptors.request.use(function (config) {
- // 可使用async await 做异步操作
- // 初始化请求拦截器时,会执行此方法,此时data为undefined,赋予默认{}
- config.data = config.data || {};
- // 根据custom参数中配置的是否需要token,添加对应的请求头
- // if(config?.custom?.auth) {
- // 可以在此通过vm引用vuex中的变量,具体值在vm.$store.state中
- var token = uni.getStorageSync("token");
- config.header.Authorization = "Bearer" + " " + token;
- // }
- return config;
- }, function (config) {
- // 可使用async await 做异步操作
- return Promise.reject(config);
- });
- // 响应拦截
- uni.$u.http.interceptors.response.use(function (res) {
- var _res$config;
- /* 对响应成功做点什么 可使用async await 做异步操作*/
- var data = res.data;
- // 自定义参数
- var custom = (_res$config = res.config) === null || _res$config === void 0 ? void 0 : _res$config.custom;
- if (data.code !== 10000 && data.code !== 10011) {
- if (data.code == 10001) {
- uni.showModal({
- title: '提示',
- content: '未登录,请先登录',
- success: function success(res) {
- if (res.confirm) {
- console.log('用户点击确定');
- uni.reLaunch({
- url: '/pages/login/login'
- });
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- }
- // 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示
- else if (custom.toast !== false) {
- uni.$u.toast(data.message);
- }
- // 如果需要catch返回,则进行reject
- if (custom !== null && custom !== void 0 && custom.catch) {
- return Promise.reject(data);
- } else {
- // 否则返回一个pending中的promise,请求不会进入catch中
- return new Promise(function () {});
- }
- }
- return data.data === undefined ? {} : data.data;
- }, function (res) {
- // 对响应错误做点什么 (statusCode !== 200)
- return Promise.reject(res);
- });
- };
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 168:
- /*!********************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/network/shopApi.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.detail = detail;
- exports.recom = recom;
- var _http = __webpack_require__(/*! ./http.js */ 169);
- //商品推荐
- function recom() {
- return (0, _http.request)({
- url: "/goods/recommend",
- method: "post"
- });
- }
- //商品详情
- function detail(data) {
- return (0, _http.request)({
- url: "/goods/detail/" + data,
- method: "get",
- data: data
- });
- }
- /***/ }),
- /***/ 169:
- /*!*****************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/network/http.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _base = __webpack_require__(/*! ./base.js */ 170);
- /***/ }),
- /***/ 17:
- /*!*************************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _isNativeReflectConstruct() {
- try {
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- } catch (t) {}
- return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
- return !!t;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
- }
- module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 170:
- /*!*****************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/network/base.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.showHttpLog = exports.baseURL = void 0;
- var baseURL = "https://cbec.hdlkeji.com/api";
- exports.baseURL = baseURL;
- var showHttpLog = false;
- exports.showHttpLog = showHttpLog;
- /***/ }),
- /***/ 18:
- /*!******************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
- var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
- var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
- var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
- function _toConsumableArray(arr) {
- return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
- }
- module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 19:
- /*!******************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
- function _arrayWithoutHoles(arr) {
- if (Array.isArray(arr)) return arrayLikeToArray(arr);
- }
- module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 2:
- /*!************************************************************!*\
- !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(wx, global) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.createApp = createApp;
- exports.createComponent = createComponent;
- exports.createPage = createPage;
- exports.createPlugin = createPlugin;
- exports.createSubpackageApp = createSubpackageApp;
- exports.default = void 0;
- var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
- var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
- var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
- var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
- 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; }
- 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; }
- var realAtob;
- var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
- var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
- if (typeof atob !== 'function') {
- realAtob = function realAtob(str) {
- str = String(str).replace(/[\t\n\f\r ]+/g, '');
- if (!b64re.test(str)) {
- throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
- }
- // Adding the padding if missing, for semplicity
- str += '=='.slice(2 - (str.length & 3));
- var bitmap;
- var result = '';
- var r1;
- var r2;
- var i = 0;
- for (; i < str.length;) {
- 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++)));
- 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);
- }
- return result;
- };
- } else {
- // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
- realAtob = atob;
- }
- function b64DecodeUnicode(str) {
- return decodeURIComponent(realAtob(str).split('').map(function (c) {
- return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
- }).join(''));
- }
- function getCurrentUserInfo() {
- var token = wx.getStorageSync('uni_id_token') || '';
- var tokenArr = token.split('.');
- if (!token || tokenArr.length !== 3) {
- return {
- uid: null,
- role: [],
- permission: [],
- tokenExpired: 0
- };
- }
- var userInfo;
- try {
- userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
- } catch (error) {
- throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
- }
- userInfo.tokenExpired = userInfo.exp * 1000;
- delete userInfo.exp;
- delete userInfo.iat;
- return userInfo;
- }
- function uniIdMixin(Vue) {
- Vue.prototype.uniIDHasRole = function (roleId) {
- var _getCurrentUserInfo = getCurrentUserInfo(),
- role = _getCurrentUserInfo.role;
- return role.indexOf(roleId) > -1;
- };
- Vue.prototype.uniIDHasPermission = function (permissionId) {
- var _getCurrentUserInfo2 = getCurrentUserInfo(),
- permission = _getCurrentUserInfo2.permission;
- return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
- };
- Vue.prototype.uniIDTokenValid = function () {
- var _getCurrentUserInfo3 = getCurrentUserInfo(),
- tokenExpired = _getCurrentUserInfo3.tokenExpired;
- return tokenExpired > Date.now();
- };
- }
- var _toString = Object.prototype.toString;
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- function isFn(fn) {
- return typeof fn === 'function';
- }
- function isStr(str) {
- return typeof str === 'string';
- }
- function isObject(obj) {
- return obj !== null && (0, _typeof2.default)(obj) === 'object';
- }
- function isPlainObject(obj) {
- return _toString.call(obj) === '[object Object]';
- }
- function hasOwn(obj, key) {
- return hasOwnProperty.call(obj, key);
- }
- function noop() {}
- /**
- * Create a cached version of a pure function.
- */
- function cached(fn) {
- var cache = Object.create(null);
- return function cachedFn(str) {
- var hit = cache[str];
- return hit || (cache[str] = fn(str));
- };
- }
- /**
- * Camelize a hyphen-delimited string.
- */
- var camelizeRE = /-(\w)/g;
- var camelize = cached(function (str) {
- return str.replace(camelizeRE, function (_, c) {
- return c ? c.toUpperCase() : '';
- });
- });
- function sortObject(obj) {
- var sortObj = {};
- if (isPlainObject(obj)) {
- Object.keys(obj).sort().forEach(function (key) {
- sortObj[key] = obj[key];
- });
- }
- return !Object.keys(sortObj) ? obj : sortObj;
- }
- var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
- var globalInterceptors = {};
- var scopedInterceptors = {};
- function mergeHook(parentVal, childVal) {
- var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
- return res ? dedupeHooks(res) : res;
- }
- function dedupeHooks(hooks) {
- var res = [];
- for (var i = 0; i < hooks.length; i++) {
- if (res.indexOf(hooks[i]) === -1) {
- res.push(hooks[i]);
- }
- }
- return res;
- }
- function removeHook(hooks, hook) {
- var index = hooks.indexOf(hook);
- if (index !== -1) {
- hooks.splice(index, 1);
- }
- }
- function mergeInterceptorHook(interceptor, option) {
- Object.keys(option).forEach(function (hook) {
- if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
- interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
- }
- });
- }
- function removeInterceptorHook(interceptor, option) {
- if (!interceptor || !option) {
- return;
- }
- Object.keys(option).forEach(function (hook) {
- if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
- removeHook(interceptor[hook], option[hook]);
- }
- });
- }
- function addInterceptor(method, option) {
- if (typeof method === 'string' && isPlainObject(option)) {
- mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
- } else if (isPlainObject(method)) {
- mergeInterceptorHook(globalInterceptors, method);
- }
- }
- function removeInterceptor(method, option) {
- if (typeof method === 'string') {
- if (isPlainObject(option)) {
- removeInterceptorHook(scopedInterceptors[method], option);
- } else {
- delete scopedInterceptors[method];
- }
- } else if (isPlainObject(method)) {
- removeInterceptorHook(globalInterceptors, method);
- }
- }
- function wrapperHook(hook, params) {
- return function (data) {
- return hook(data, params) || data;
- };
- }
- function isPromise(obj) {
- return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
- }
- function queue(hooks, data, params) {
- var promise = false;
- for (var i = 0; i < hooks.length; i++) {
- var hook = hooks[i];
- if (promise) {
- promise = Promise.resolve(wrapperHook(hook, params));
- } else {
- var res = hook(data, params);
- if (isPromise(res)) {
- promise = Promise.resolve(res);
- }
- if (res === false) {
- return {
- then: function then() {}
- };
- }
- }
- }
- return promise || {
- then: function then(callback) {
- return callback(data);
- }
- };
- }
- function wrapperOptions(interceptor) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- ['success', 'fail', 'complete'].forEach(function (name) {
- if (Array.isArray(interceptor[name])) {
- var oldCallback = options[name];
- options[name] = function callbackInterceptor(res) {
- queue(interceptor[name], res, options).then(function (res) {
- /* eslint-disable no-mixed-operators */
- return isFn(oldCallback) && oldCallback(res) || res;
- });
- };
- }
- });
- return options;
- }
- function wrapperReturnValue(method, returnValue) {
- var returnValueHooks = [];
- if (Array.isArray(globalInterceptors.returnValue)) {
- returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
- }
- var interceptor = scopedInterceptors[method];
- if (interceptor && Array.isArray(interceptor.returnValue)) {
- returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
- }
- returnValueHooks.forEach(function (hook) {
- returnValue = hook(returnValue) || returnValue;
- });
- return returnValue;
- }
- function getApiInterceptorHooks(method) {
- var interceptor = Object.create(null);
- Object.keys(globalInterceptors).forEach(function (hook) {
- if (hook !== 'returnValue') {
- interceptor[hook] = globalInterceptors[hook].slice();
- }
- });
- var scopedInterceptor = scopedInterceptors[method];
- if (scopedInterceptor) {
- Object.keys(scopedInterceptor).forEach(function (hook) {
- if (hook !== 'returnValue') {
- interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
- }
- });
- }
- return interceptor;
- }
- function invokeApi(method, api, options) {
- for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
- params[_key - 3] = arguments[_key];
- }
- var interceptor = getApiInterceptorHooks(method);
- if (interceptor && Object.keys(interceptor).length) {
- if (Array.isArray(interceptor.invoke)) {
- var res = queue(interceptor.invoke, options);
- return res.then(function (options) {
- // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
- return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
- });
- } else {
- return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
- }
- }
- return api.apply(void 0, [options].concat(params));
- }
- var promiseInterceptor = {
- returnValue: function returnValue(res) {
- if (!isPromise(res)) {
- return res;
- }
- return new Promise(function (resolve, reject) {
- res.then(function (res) {
- if (res[0]) {
- reject(res[0]);
- } else {
- resolve(res[1]);
- }
- });
- });
- }
- };
- 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/;
- var CONTEXT_API_RE = /^create|Manager$/;
- // Context例外情况
- var CONTEXT_API_RE_EXC = ['createBLEConnection'];
- // 同步例外情况
- var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
- var CALLBACK_API_RE = /^on|^off/;
- function isContextApi(name) {
- return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
- }
- function isSyncApi(name) {
- return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
- }
- function isCallbackApi(name) {
- return CALLBACK_API_RE.test(name) && name !== 'onPush';
- }
- function handlePromise(promise) {
- return promise.then(function (data) {
- return [null, data];
- }).catch(function (err) {
- return [err];
- });
- }
- function shouldPromise(name) {
- if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
- return false;
- }
- return true;
- }
- /* eslint-disable no-extend-native */
- if (!Promise.prototype.finally) {
- Promise.prototype.finally = function (callback) {
- var promise = this.constructor;
- return this.then(function (value) {
- return promise.resolve(callback()).then(function () {
- return value;
- });
- }, function (reason) {
- return promise.resolve(callback()).then(function () {
- throw reason;
- });
- });
- };
- }
- function promisify(name, api) {
- if (!shouldPromise(name) || !isFn(api)) {
- return api;
- }
- return function promiseApi() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
- params[_key2 - 1] = arguments[_key2];
- }
- if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
- return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
- }
- return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
- invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
- success: resolve,
- fail: reject
- })].concat(params));
- })));
- };
- }
- var EPS = 1e-4;
- var BASE_DEVICE_WIDTH = 750;
- var isIOS = false;
- var deviceWidth = 0;
- var deviceDPR = 0;
- function checkDeviceWidth() {
- var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
- platform = _wx$getSystemInfoSync.platform,
- pixelRatio = _wx$getSystemInfoSync.pixelRatio,
- windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
- deviceWidth = windowWidth;
- deviceDPR = pixelRatio;
- isIOS = platform === 'ios';
- }
- function upx2px(number, newDeviceWidth) {
- if (deviceWidth === 0) {
- checkDeviceWidth();
- }
- number = Number(number);
- if (number === 0) {
- return 0;
- }
- var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
- if (result < 0) {
- result = -result;
- }
- result = Math.floor(result + EPS);
- if (result === 0) {
- if (deviceDPR === 1 || !isIOS) {
- result = 1;
- } else {
- result = 0.5;
- }
- }
- return number < 0 ? -result : result;
- }
- var LOCALE_ZH_HANS = 'zh-Hans';
- var LOCALE_ZH_HANT = 'zh-Hant';
- var LOCALE_EN = 'en';
- var LOCALE_FR = 'fr';
- var LOCALE_ES = 'es';
- var messages = {};
- var locale;
- {
- locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
- }
- function initI18nMessages() {
- if (!isEnableLocale()) {
- return;
- }
- var localeKeys = Object.keys(__uniConfig.locales);
- if (localeKeys.length) {
- localeKeys.forEach(function (locale) {
- var curMessages = messages[locale];
- var userMessages = __uniConfig.locales[locale];
- if (curMessages) {
- Object.assign(curMessages, userMessages);
- } else {
- messages[locale] = userMessages;
- }
- });
- }
- }
- initI18nMessages();
- var i18n = (0, _uniI18n.initVueI18n)(locale, {});
- var t = i18n.t;
- var i18nMixin = i18n.mixin = {
- beforeCreate: function beforeCreate() {
- var _this = this;
- var unwatch = i18n.i18n.watchLocale(function () {
- _this.$forceUpdate();
- });
- this.$once('hook:beforeDestroy', function () {
- unwatch();
- });
- },
- methods: {
- $$t: function $$t(key, values) {
- return t(key, values);
- }
- }
- };
- var setLocale = i18n.setLocale;
- var getLocale = i18n.getLocale;
- function initAppLocale(Vue, appVm, locale) {
- var state = Vue.observable({
- locale: locale || i18n.getLocale()
- });
- var localeWatchers = [];
- appVm.$watchLocale = function (fn) {
- localeWatchers.push(fn);
- };
- Object.defineProperty(appVm, '$locale', {
- get: function get() {
- return state.locale;
- },
- set: function set(v) {
- state.locale = v;
- localeWatchers.forEach(function (watch) {
- return watch(v);
- });
- }
- });
- }
- function isEnableLocale() {
- return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
- }
- function include(str, parts) {
- return !!parts.find(function (part) {
- return str.indexOf(part) !== -1;
- });
- }
- function startsWith(str, parts) {
- return parts.find(function (part) {
- return str.indexOf(part) === 0;
- });
- }
- function normalizeLocale(locale, messages) {
- if (!locale) {
- return;
- }
- locale = locale.trim().replace(/_/g, '-');
- if (messages && messages[locale]) {
- return locale;
- }
- locale = locale.toLowerCase();
- if (locale === 'chinese') {
- // 支付宝
- return LOCALE_ZH_HANS;
- }
- if (locale.indexOf('zh') === 0) {
- if (locale.indexOf('-hans') > -1) {
- return LOCALE_ZH_HANS;
- }
- if (locale.indexOf('-hant') > -1) {
- return LOCALE_ZH_HANT;
- }
- if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
- return LOCALE_ZH_HANT;
- }
- return LOCALE_ZH_HANS;
- }
- var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
- if (lang) {
- return lang;
- }
- }
- // export function initI18n() {
- // const localeKeys = Object.keys(__uniConfig.locales || {})
- // if (localeKeys.length) {
- // localeKeys.forEach((locale) =>
- // i18n.add(locale, __uniConfig.locales[locale])
- // )
- // }
- // }
- function getLocale$1() {
- // 优先使用 $locale
- if (isFn(getApp)) {
- var app = getApp({
- allowDefault: true
- });
- if (app && app.$vm) {
- return app.$vm.$locale;
- }
- }
- return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
- }
- function setLocale$1(locale) {
- var app = isFn(getApp) ? getApp() : false;
- if (!app) {
- return false;
- }
- var oldLocale = app.$vm.$locale;
- if (oldLocale !== locale) {
- app.$vm.$locale = locale;
- onLocaleChangeCallbacks.forEach(function (fn) {
- return fn({
- locale: locale
- });
- });
- return true;
- }
- return false;
- }
- var onLocaleChangeCallbacks = [];
- function onLocaleChange(fn) {
- if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
- onLocaleChangeCallbacks.push(fn);
- }
- }
- if (typeof global !== 'undefined') {
- global.getLocale = getLocale$1;
- }
- var interceptors = {
- promiseInterceptor: promiseInterceptor
- };
- var baseApi = /*#__PURE__*/Object.freeze({
- __proto__: null,
- upx2px: upx2px,
- getLocale: getLocale$1,
- setLocale: setLocale$1,
- onLocaleChange: onLocaleChange,
- addInterceptor: addInterceptor,
- removeInterceptor: removeInterceptor,
- interceptors: interceptors
- });
- function findExistsPageIndex(url) {
- var pages = getCurrentPages();
- var len = pages.length;
- while (len--) {
- var page = pages[len];
- if (page.$page && page.$page.fullPath === url) {
- return len;
- }
- }
- return -1;
- }
- var redirectTo = {
- name: function name(fromArgs) {
- if (fromArgs.exists === 'back' && fromArgs.delta) {
- return 'navigateBack';
- }
- return 'redirectTo';
- },
- args: function args(fromArgs) {
- if (fromArgs.exists === 'back' && fromArgs.url) {
- var existsPageIndex = findExistsPageIndex(fromArgs.url);
- if (existsPageIndex !== -1) {
- var delta = getCurrentPages().length - 1 - existsPageIndex;
- if (delta > 0) {
- fromArgs.delta = delta;
- }
- }
- }
- }
- };
- var previewImage = {
- args: function args(fromArgs) {
- var currentIndex = parseInt(fromArgs.current);
- if (isNaN(currentIndex)) {
- return;
- }
- var urls = fromArgs.urls;
- if (!Array.isArray(urls)) {
- return;
- }
- var len = urls.length;
- if (!len) {
- return;
- }
- if (currentIndex < 0) {
- currentIndex = 0;
- } else if (currentIndex >= len) {
- currentIndex = len - 1;
- }
- if (currentIndex > 0) {
- fromArgs.current = urls[currentIndex];
- fromArgs.urls = urls.filter(function (item, index) {
- return index < currentIndex ? item !== urls[currentIndex] : true;
- });
- } else {
- fromArgs.current = urls[0];
- }
- return {
- indicator: false,
- loop: false
- };
- }
- };
- var UUID_KEY = '__DC_STAT_UUID';
- var deviceId;
- function useDeviceId(result) {
- deviceId = deviceId || wx.getStorageSync(UUID_KEY);
- if (!deviceId) {
- deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
- wx.setStorage({
- key: UUID_KEY,
- data: deviceId
- });
- }
- result.deviceId = deviceId;
- }
- function addSafeAreaInsets(result) {
- if (result.safeArea) {
- var safeArea = result.safeArea;
- result.safeAreaInsets = {
- top: safeArea.top,
- left: safeArea.left,
- right: result.windowWidth - safeArea.right,
- bottom: result.screenHeight - safeArea.bottom
- };
- }
- }
- function populateParameters(result) {
- var _result$brand = result.brand,
- brand = _result$brand === void 0 ? '' : _result$brand,
- _result$model = result.model,
- model = _result$model === void 0 ? '' : _result$model,
- _result$system = result.system,
- system = _result$system === void 0 ? '' : _result$system,
- _result$language = result.language,
- language = _result$language === void 0 ? '' : _result$language,
- theme = result.theme,
- version = result.version,
- platform = result.platform,
- fontSizeSetting = result.fontSizeSetting,
- SDKVersion = result.SDKVersion,
- pixelRatio = result.pixelRatio,
- deviceOrientation = result.deviceOrientation;
- // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
- var extraParam = {};
- // osName osVersion
- var osName = '';
- var osVersion = '';
- {
- osName = system.split(' ')[0] || '';
- osVersion = system.split(' ')[1] || '';
- }
- var hostVersion = version;
- // deviceType
- var deviceType = getGetDeviceType(result, model);
- // deviceModel
- var deviceBrand = getDeviceBrand(brand);
- // hostName
- var _hostName = getHostName(result);
- // deviceOrientation
- var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
- // devicePixelRatio
- var _devicePixelRatio = pixelRatio;
- // SDKVersion
- var _SDKVersion = SDKVersion;
- // hostLanguage
- var hostLanguage = language.replace(/_/g, '-');
- // wx.getAccountInfoSync
- var parameters = {
- appId: "__UNI__EF90963",
- appName: "kjds",
- appVersion: "1.0.0",
- appVersionCode: "100",
- appLanguage: getAppLanguage(hostLanguage),
- uniCompileVersion: "4.24",
- uniRuntimeVersion: "4.24",
- uniPlatform: undefined || "mp-weixin",
- deviceBrand: deviceBrand,
- deviceModel: model,
- deviceType: deviceType,
- devicePixelRatio: _devicePixelRatio,
- deviceOrientation: _deviceOrientation,
- osName: osName.toLocaleLowerCase(),
- osVersion: osVersion,
- hostTheme: theme,
- hostVersion: hostVersion,
- hostLanguage: hostLanguage,
- hostName: _hostName,
- hostSDKVersion: _SDKVersion,
- hostFontSizeSetting: fontSizeSetting,
- windowTop: 0,
- windowBottom: 0,
- // TODO
- osLanguage: undefined,
- osTheme: undefined,
- ua: undefined,
- hostPackageName: undefined,
- browserName: undefined,
- browserVersion: undefined
- };
- Object.assign(result, parameters, extraParam);
- }
- function getGetDeviceType(result, model) {
- var deviceType = result.deviceType || 'phone';
- {
- var deviceTypeMaps = {
- ipad: 'pad',
- windows: 'pc',
- mac: 'pc'
- };
- var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
- var _model = model.toLocaleLowerCase();
- for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
- var _m = deviceTypeMapsKeys[index];
- if (_model.indexOf(_m) !== -1) {
- deviceType = deviceTypeMaps[_m];
- break;
- }
- }
- }
- return deviceType;
- }
- function getDeviceBrand(brand) {
- var deviceBrand = brand;
- if (deviceBrand) {
- deviceBrand = brand.toLocaleLowerCase();
- }
- return deviceBrand;
- }
- function getAppLanguage(defaultLanguage) {
- return getLocale$1 ? getLocale$1() : defaultLanguage;
- }
- function getHostName(result) {
- var _platform = 'WeChat';
- var _hostName = result.hostName || _platform; // mp-jd
- {
- if (result.environment) {
- _hostName = result.environment;
- } else if (result.host && result.host.env) {
- _hostName = result.host.env;
- }
- }
- return _hostName;
- }
- var getSystemInfo = {
- returnValue: function returnValue(result) {
- useDeviceId(result);
- addSafeAreaInsets(result);
- populateParameters(result);
- }
- };
- var showActionSheet = {
- args: function args(fromArgs) {
- if ((0, _typeof2.default)(fromArgs) === 'object') {
- fromArgs.alertText = fromArgs.title;
- }
- }
- };
- var getAppBaseInfo = {
- returnValue: function returnValue(result) {
- var _result = result,
- version = _result.version,
- language = _result.language,
- SDKVersion = _result.SDKVersion,
- theme = _result.theme;
- var _hostName = getHostName(result);
- var hostLanguage = language.replace('_', '-');
- result = sortObject(Object.assign(result, {
- appId: "__UNI__EF90963",
- appName: "kjds",
- appVersion: "1.0.0",
- appVersionCode: "100",
- appLanguage: getAppLanguage(hostLanguage),
- hostVersion: version,
- hostLanguage: hostLanguage,
- hostName: _hostName,
- hostSDKVersion: SDKVersion,
- hostTheme: theme
- }));
- }
- };
- var getDeviceInfo = {
- returnValue: function returnValue(result) {
- var _result2 = result,
- brand = _result2.brand,
- model = _result2.model;
- var deviceType = getGetDeviceType(result, model);
- var deviceBrand = getDeviceBrand(brand);
- useDeviceId(result);
- result = sortObject(Object.assign(result, {
- deviceType: deviceType,
- deviceBrand: deviceBrand,
- deviceModel: model
- }));
- }
- };
- var getWindowInfo = {
- returnValue: function returnValue(result) {
- addSafeAreaInsets(result);
- result = sortObject(Object.assign(result, {
- windowTop: 0,
- windowBottom: 0
- }));
- }
- };
- var getAppAuthorizeSetting = {
- returnValue: function returnValue(result) {
- var locationReducedAccuracy = result.locationReducedAccuracy;
- result.locationAccuracy = 'unsupported';
- if (locationReducedAccuracy === true) {
- result.locationAccuracy = 'reduced';
- } else if (locationReducedAccuracy === false) {
- result.locationAccuracy = 'full';
- }
- }
- };
- // import navigateTo from 'uni-helpers/navigate-to'
- var compressImage = {
- args: function args(fromArgs) {
- // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
- if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
- fromArgs.compressHeight = fromArgs.compressedHeight;
- }
- if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
- fromArgs.compressWidth = fromArgs.compressedWidth;
- }
- }
- };
- var protocols = {
- redirectTo: redirectTo,
- // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
- previewImage: previewImage,
- getSystemInfo: getSystemInfo,
- getSystemInfoSync: getSystemInfo,
- showActionSheet: showActionSheet,
- getAppBaseInfo: getAppBaseInfo,
- getDeviceInfo: getDeviceInfo,
- getWindowInfo: getWindowInfo,
- getAppAuthorizeSetting: getAppAuthorizeSetting,
- compressImage: compressImage
- };
- var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
- var canIUses = [];
- var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
- function processCallback(methodName, method, returnValue) {
- return function (res) {
- return method(processReturnValue(methodName, res, returnValue));
- };
- }
- function processArgs(methodName, fromArgs) {
- var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
- var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
- if (isPlainObject(fromArgs)) {
- // 一般 api 的参数解析
- var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
- if (isFn(argsOption)) {
- argsOption = argsOption(fromArgs, toArgs) || {};
- }
- for (var key in fromArgs) {
- if (hasOwn(argsOption, key)) {
- var keyOption = argsOption[key];
- if (isFn(keyOption)) {
- keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
- }
- if (!keyOption) {
- // 不支持的参数
- console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
- } else if (isStr(keyOption)) {
- // 重写参数 key
- toArgs[keyOption] = fromArgs[key];
- } else if (isPlainObject(keyOption)) {
- // {name:newName,value:value}可重新指定参数 key:value
- toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
- }
- } else if (CALLBACKS.indexOf(key) !== -1) {
- if (isFn(fromArgs[key])) {
- toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
- }
- } else {
- if (!keepFromArgs) {
- toArgs[key] = fromArgs[key];
- }
- }
- }
- return toArgs;
- } else if (isFn(fromArgs)) {
- fromArgs = processCallback(methodName, fromArgs, returnValue);
- }
- return fromArgs;
- }
- function processReturnValue(methodName, res, returnValue) {
- var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
- if (isFn(protocols.returnValue)) {
- // 处理通用 returnValue
- res = protocols.returnValue(methodName, res);
- }
- return processArgs(methodName, res, returnValue, {}, keepReturnValue);
- }
- function wrapper(methodName, method) {
- if (hasOwn(protocols, methodName)) {
- var protocol = protocols[methodName];
- if (!protocol) {
- // 暂不支持的 api
- return function () {
- console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
- };
- }
- return function (arg1, arg2) {
- // 目前 api 最多两个参数
- var options = protocol;
- if (isFn(protocol)) {
- options = protocol(arg1);
- }
- arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
- var args = [arg1];
- if (typeof arg2 !== 'undefined') {
- args.push(arg2);
- }
- if (isFn(options.name)) {
- methodName = options.name(arg1);
- } else if (isStr(options.name)) {
- methodName = options.name;
- }
- var returnValue = wx[methodName].apply(wx, args);
- if (isSyncApi(methodName)) {
- // 同步 api
- return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
- }
- return returnValue;
- };
- }
- return method;
- }
- var todoApis = Object.create(null);
- var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
- function createTodoApi(name) {
- return function todoApi(_ref) {
- var fail = _ref.fail,
- complete = _ref.complete;
- var res = {
- errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
- };
- isFn(fail) && fail(res);
- isFn(complete) && complete(res);
- };
- }
- TODOS.forEach(function (name) {
- todoApis[name] = createTodoApi(name);
- });
- var providers = {
- oauth: ['weixin'],
- share: ['weixin'],
- payment: ['wxpay'],
- push: ['weixin']
- };
- function getProvider(_ref2) {
- var service = _ref2.service,
- success = _ref2.success,
- fail = _ref2.fail,
- complete = _ref2.complete;
- var res = false;
- if (providers[service]) {
- res = {
- errMsg: 'getProvider:ok',
- service: service,
- provider: providers[service]
- };
- isFn(success) && success(res);
- } else {
- res = {
- errMsg: 'getProvider:fail service not found'
- };
- isFn(fail) && fail(res);
- }
- isFn(complete) && complete(res);
- }
- var extraApi = /*#__PURE__*/Object.freeze({
- __proto__: null,
- getProvider: getProvider
- });
- var getEmitter = function () {
- var Emitter;
- return function getUniEmitter() {
- if (!Emitter) {
- Emitter = new _vue.default();
- }
- return Emitter;
- };
- }();
- function apply(ctx, method, args) {
- return ctx[method].apply(ctx, args);
- }
- function $on() {
- return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
- }
- function $off() {
- return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
- }
- function $once() {
- return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
- }
- function $emit() {
- return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
- }
- var eventApi = /*#__PURE__*/Object.freeze({
- __proto__: null,
- $on: $on,
- $off: $off,
- $once: $once,
- $emit: $emit
- });
- /**
- * 框架内 try-catch
- */
- /**
- * 开发者 try-catch
- */
- function tryCatch(fn) {
- return function () {
- try {
- return fn.apply(fn, arguments);
- } catch (e) {
- // TODO
- console.error(e);
- }
- };
- }
- function getApiCallbacks(params) {
- var apiCallbacks = {};
- for (var name in params) {
- var param = params[name];
- if (isFn(param)) {
- apiCallbacks[name] = tryCatch(param);
- delete params[name];
- }
- }
- return apiCallbacks;
- }
- var cid;
- var cidErrMsg;
- var enabled;
- function normalizePushMessage(message) {
- try {
- return JSON.parse(message);
- } catch (e) {}
- return message;
- }
- function invokePushCallback(args) {
- if (args.type === 'enabled') {
- enabled = true;
- } else if (args.type === 'clientId') {
- cid = args.cid;
- cidErrMsg = args.errMsg;
- invokeGetPushCidCallbacks(cid, args.errMsg);
- } else if (args.type === 'pushMsg') {
- var message = {
- type: 'receive',
- data: normalizePushMessage(args.message)
- };
- for (var i = 0; i < onPushMessageCallbacks.length; i++) {
- var callback = onPushMessageCallbacks[i];
- callback(message);
- // 该消息已被阻止
- if (message.stopped) {
- break;
- }
- }
- } else if (args.type === 'click') {
- onPushMessageCallbacks.forEach(function (callback) {
- callback({
- type: 'click',
- data: normalizePushMessage(args.message)
- });
- });
- }
- }
- var getPushCidCallbacks = [];
- function invokeGetPushCidCallbacks(cid, errMsg) {
- getPushCidCallbacks.forEach(function (callback) {
- callback(cid, errMsg);
- });
- getPushCidCallbacks.length = 0;
- }
- function getPushClientId(args) {
- if (!isPlainObject(args)) {
- args = {};
- }
- var _getApiCallbacks = getApiCallbacks(args),
- success = _getApiCallbacks.success,
- fail = _getApiCallbacks.fail,
- complete = _getApiCallbacks.complete;
- var hasSuccess = isFn(success);
- var hasFail = isFn(fail);
- var hasComplete = isFn(complete);
- Promise.resolve().then(function () {
- if (typeof enabled === 'undefined') {
- enabled = false;
- cid = '';
- cidErrMsg = 'uniPush is not enabled';
- }
- getPushCidCallbacks.push(function (cid, errMsg) {
- var res;
- if (cid) {
- res = {
- errMsg: 'getPushClientId:ok',
- cid: cid
- };
- hasSuccess && success(res);
- } else {
- res = {
- errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
- };
- hasFail && fail(res);
- }
- hasComplete && complete(res);
- });
- if (typeof cid !== 'undefined') {
- invokeGetPushCidCallbacks(cid, cidErrMsg);
- }
- });
- }
- var onPushMessageCallbacks = [];
- // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
- var onPushMessage = function onPushMessage(fn) {
- if (onPushMessageCallbacks.indexOf(fn) === -1) {
- onPushMessageCallbacks.push(fn);
- }
- };
- var offPushMessage = function offPushMessage(fn) {
- if (!fn) {
- onPushMessageCallbacks.length = 0;
- } else {
- var index = onPushMessageCallbacks.indexOf(fn);
- if (index > -1) {
- onPushMessageCallbacks.splice(index, 1);
- }
- }
- };
- var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
- if (!baseInfo) {
- baseInfo = wx.getSystemInfoSync();
- }
- var host = baseInfo ? baseInfo.host : null;
- var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
- var api = /*#__PURE__*/Object.freeze({
- __proto__: null,
- shareVideoMessage: shareVideoMessage,
- getPushClientId: getPushClientId,
- onPushMessage: onPushMessage,
- offPushMessage: offPushMessage,
- invokePushCallback: invokePushCallback
- });
- var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
- function findVmByVueId(vm, vuePid) {
- var $children = vm.$children;
- // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
- for (var i = $children.length - 1; i >= 0; i--) {
- var childVm = $children[i];
- if (childVm.$scope._$vueId === vuePid) {
- return childVm;
- }
- }
- // 反向递归查找
- var parentVm;
- for (var _i = $children.length - 1; _i >= 0; _i--) {
- parentVm = findVmByVueId($children[_i], vuePid);
- if (parentVm) {
- return parentVm;
- }
- }
- }
- function initBehavior(options) {
- return Behavior(options);
- }
- function isPage() {
- return !!this.route;
- }
- function initRelation(detail) {
- this.triggerEvent('__l', detail);
- }
- function selectAllComponents(mpInstance, selector, $refs) {
- var components = mpInstance.selectAllComponents(selector) || [];
- components.forEach(function (component) {
- var ref = component.dataset.ref;
- $refs[ref] = component.$vm || toSkip(component);
- {
- if (component.dataset.vueGeneric === 'scoped') {
- component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
- selectAllComponents(scopedComponent, selector, $refs);
- });
- }
- }
- });
- }
- function syncRefs(refs, newRefs) {
- var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
- var newKeys = Object.keys(newRefs);
- newKeys.forEach(function (key) {
- var oldValue = refs[key];
- var newValue = newRefs[key];
- if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
- return oldValue.includes(value);
- })) {
- return;
- }
- refs[key] = newValue;
- oldKeys.delete(key);
- });
- oldKeys.forEach(function (key) {
- delete refs[key];
- });
- return refs;
- }
- function initRefs(vm) {
- var mpInstance = vm.$scope;
- var refs = {};
- Object.defineProperty(vm, '$refs', {
- get: function get() {
- var $refs = {};
- selectAllComponents(mpInstance, '.vue-ref', $refs);
- // TODO 暂不考虑 for 中的 scoped
- var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
- forComponents.forEach(function (component) {
- var ref = component.dataset.ref;
- if (!$refs[ref]) {
- $refs[ref] = [];
- }
- $refs[ref].push(component.$vm || toSkip(component));
- });
- return syncRefs(refs, $refs);
- }
- });
- }
- function handleLink(event) {
- var _ref3 = event.detail || event.value,
- vuePid = _ref3.vuePid,
- vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
- var parentVm;
- if (vuePid) {
- parentVm = findVmByVueId(this.$vm, vuePid);
- }
- if (!parentVm) {
- parentVm = this.$vm;
- }
- vueOptions.parent = parentVm;
- }
- function markMPComponent(component) {
- // 在 Vue 中标记为小程序组件
- var IS_MP = '__v_isMPComponent';
- Object.defineProperty(component, IS_MP, {
- configurable: true,
- enumerable: false,
- value: true
- });
- return component;
- }
- function toSkip(obj) {
- var OB = '__ob__';
- var SKIP = '__v_skip';
- if (isObject(obj) && Object.isExtensible(obj)) {
- // 避免被 @vue/composition-api 观测
- Object.defineProperty(obj, OB, {
- configurable: true,
- enumerable: false,
- value: (0, _defineProperty2.default)({}, SKIP, true)
- });
- }
- return obj;
- }
- var WORKLET_RE = /_(.*)_worklet_factory_/;
- function initWorkletMethods(mpMethods, vueMethods) {
- if (vueMethods) {
- Object.keys(vueMethods).forEach(function (name) {
- var matches = name.match(WORKLET_RE);
- if (matches) {
- var workletName = matches[1];
- mpMethods[name] = vueMethods[name];
- mpMethods[workletName] = vueMethods[workletName];
- }
- });
- }
- }
- var MPPage = Page;
- var MPComponent = Component;
- var customizeRE = /:/g;
- var customize = cached(function (str) {
- return camelize(str.replace(customizeRE, '-'));
- });
- function initTriggerEvent(mpInstance) {
- var oldTriggerEvent = mpInstance.triggerEvent;
- var newTriggerEvent = function newTriggerEvent(event) {
- for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
- args[_key3 - 1] = arguments[_key3];
- }
- // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
- if (this.$vm || this.dataset && this.dataset.comType) {
- event = customize(event);
- } else {
- // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
- var newEvent = customize(event);
- if (newEvent !== event) {
- oldTriggerEvent.apply(this, [newEvent].concat(args));
- }
- }
- return oldTriggerEvent.apply(this, [event].concat(args));
- };
- try {
- // 京东小程序 triggerEvent 为只读
- mpInstance.triggerEvent = newTriggerEvent;
- } catch (error) {
- mpInstance._triggerEvent = newTriggerEvent;
- }
- }
- function initHook(name, options, isComponent) {
- var oldHook = options[name];
- options[name] = function () {
- markMPComponent(this);
- initTriggerEvent(this);
- if (oldHook) {
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
- args[_key4] = arguments[_key4];
- }
- return oldHook.apply(this, args);
- }
- };
- }
- if (!MPPage.__$wrappered) {
- MPPage.__$wrappered = true;
- Page = function Page() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- initHook('onLoad', options);
- return MPPage(options);
- };
- Page.after = MPPage.after;
- Component = function Component() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- initHook('created', options);
- return MPComponent(options);
- };
- }
- var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
- function initMocks(vm, mocks) {
- var mpInstance = vm.$mp[vm.mpType];
- mocks.forEach(function (mock) {
- if (hasOwn(mpInstance, mock)) {
- vm[mock] = mpInstance[mock];
- }
- });
- }
- function hasHook(hook, vueOptions) {
- if (!vueOptions) {
- return true;
- }
- if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
- return true;
- }
- vueOptions = vueOptions.default || vueOptions;
- if (isFn(vueOptions)) {
- if (isFn(vueOptions.extendOptions[hook])) {
- return true;
- }
- if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
- return true;
- }
- return false;
- }
- if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
- return true;
- }
- var mixins = vueOptions.mixins;
- if (Array.isArray(mixins)) {
- return !!mixins.find(function (mixin) {
- return hasHook(hook, mixin);
- });
- }
- }
- function initHooks(mpOptions, hooks, vueOptions) {
- hooks.forEach(function (hook) {
- if (hasHook(hook, vueOptions)) {
- mpOptions[hook] = function (args) {
- return this.$vm && this.$vm.__call_hook(hook, args);
- };
- }
- });
- }
- function initUnknownHooks(mpOptions, vueOptions) {
- var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
- findHooks(vueOptions).forEach(function (hook) {
- return initHook$1(mpOptions, hook, excludes);
- });
- }
- function findHooks(vueOptions) {
- var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
- if (vueOptions) {
- Object.keys(vueOptions).forEach(function (name) {
- if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
- hooks.push(name);
- }
- });
- }
- return hooks;
- }
- function initHook$1(mpOptions, hook, excludes) {
- if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
- mpOptions[hook] = function (args) {
- return this.$vm && this.$vm.__call_hook(hook, args);
- };
- }
- }
- function initVueComponent(Vue, vueOptions) {
- vueOptions = vueOptions.default || vueOptions;
- var VueComponent;
- if (isFn(vueOptions)) {
- VueComponent = vueOptions;
- } else {
- VueComponent = Vue.extend(vueOptions);
- }
- vueOptions = VueComponent.options;
- return [VueComponent, vueOptions];
- }
- function initSlots(vm, vueSlots) {
- if (Array.isArray(vueSlots) && vueSlots.length) {
- var $slots = Object.create(null);
- vueSlots.forEach(function (slotName) {
- $slots[slotName] = true;
- });
- vm.$scopedSlots = vm.$slots = $slots;
- }
- }
- function initVueIds(vueIds, mpInstance) {
- vueIds = (vueIds || '').split(',');
- var len = vueIds.length;
- if (len === 1) {
- mpInstance._$vueId = vueIds[0];
- } else if (len === 2) {
- mpInstance._$vueId = vueIds[0];
- mpInstance._$vuePid = vueIds[1];
- }
- }
- function initData(vueOptions, context) {
- var data = vueOptions.data || {};
- var methods = vueOptions.methods || {};
- if (typeof data === 'function') {
- try {
- data = data.call(context); // 支持 Vue.prototype 上挂的数据
- } catch (e) {
- if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"kjds","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
- console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
- }
- }
- } else {
- try {
- // 对 data 格式化
- data = JSON.parse(JSON.stringify(data));
- } catch (e) {}
- }
- if (!isPlainObject(data)) {
- data = {};
- }
- Object.keys(methods).forEach(function (methodName) {
- if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
- data[methodName] = methods[methodName];
- }
- });
- return data;
- }
- var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
- function createObserver(name) {
- return function observer(newVal, oldVal) {
- if (this.$vm) {
- this.$vm[name] = newVal; // 为了触发其他非 render watcher
- }
- };
- }
- function initBehaviors(vueOptions, initBehavior) {
- var vueBehaviors = vueOptions.behaviors;
- var vueExtends = vueOptions.extends;
- var vueMixins = vueOptions.mixins;
- var vueProps = vueOptions.props;
- if (!vueProps) {
- vueOptions.props = vueProps = [];
- }
- var behaviors = [];
- if (Array.isArray(vueBehaviors)) {
- vueBehaviors.forEach(function (behavior) {
- behaviors.push(behavior.replace('uni://', "wx".concat("://")));
- if (behavior === 'uni://form-field') {
- if (Array.isArray(vueProps)) {
- vueProps.push('name');
- vueProps.push('value');
- } else {
- vueProps.name = {
- type: String,
- default: ''
- };
- vueProps.value = {
- type: [String, Number, Boolean, Array, Object, Date],
- default: ''
- };
- }
- }
- });
- }
- if (isPlainObject(vueExtends) && vueExtends.props) {
- behaviors.push(initBehavior({
- properties: initProperties(vueExtends.props, true)
- }));
- }
- if (Array.isArray(vueMixins)) {
- vueMixins.forEach(function (vueMixin) {
- if (isPlainObject(vueMixin) && vueMixin.props) {
- behaviors.push(initBehavior({
- properties: initProperties(vueMixin.props, true)
- }));
- }
- });
- }
- return behaviors;
- }
- function parsePropType(key, type, defaultValue, file) {
- // [String]=>String
- if (Array.isArray(type) && type.length === 1) {
- return type[0];
- }
- return type;
- }
- function initProperties(props) {
- var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
- var options = arguments.length > 3 ? arguments[3] : undefined;
- var properties = {};
- if (!isBehavior) {
- properties.vueId = {
- type: String,
- value: ''
- };
- {
- if (options.virtualHost) {
- properties.virtualHostStyle = {
- type: null,
- value: ''
- };
- properties.virtualHostClass = {
- type: null,
- value: ''
- };
- }
- }
- // scopedSlotsCompiler auto
- properties.scopedSlotsCompiler = {
- type: String,
- value: ''
- };
- properties.vueSlots = {
- // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
- type: null,
- value: [],
- observer: function observer(newVal, oldVal) {
- var $slots = Object.create(null);
- newVal.forEach(function (slotName) {
- $slots[slotName] = true;
- });
- this.setData({
- $slots: $slots
- });
- }
- };
- }
- if (Array.isArray(props)) {
- // ['title']
- props.forEach(function (key) {
- properties[key] = {
- type: null,
- observer: createObserver(key)
- };
- });
- } else if (isPlainObject(props)) {
- // {title:{type:String,default:''},content:String}
- Object.keys(props).forEach(function (key) {
- var opts = props[key];
- if (isPlainObject(opts)) {
- // title:{type:String,default:''}
- var value = opts.default;
- if (isFn(value)) {
- value = value();
- }
- opts.type = parsePropType(key, opts.type);
- properties[key] = {
- type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
- value: value,
- observer: createObserver(key)
- };
- } else {
- // content:String
- var type = parsePropType(key, opts);
- properties[key] = {
- type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
- observer: createObserver(key)
- };
- }
- });
- }
- return properties;
- }
- function wrapper$1(event) {
- // TODO 又得兼容 mpvue 的 mp 对象
- try {
- event.mp = JSON.parse(JSON.stringify(event));
- } catch (e) {}
- event.stopPropagation = noop;
- event.preventDefault = noop;
- event.target = event.target || {};
- if (!hasOwn(event, 'detail')) {
- event.detail = {};
- }
- if (hasOwn(event, 'markerId')) {
- event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
- event.detail.markerId = event.markerId;
- }
- if (isPlainObject(event.detail)) {
- event.target = Object.assign({}, event.target, event.detail);
- }
- return event;
- }
- function getExtraValue(vm, dataPathsArray) {
- var context = vm;
- dataPathsArray.forEach(function (dataPathArray) {
- var dataPath = dataPathArray[0];
- var value = dataPathArray[2];
- if (dataPath || typeof value !== 'undefined') {
- // ['','',index,'disable']
- var propPath = dataPathArray[1];
- var valuePath = dataPathArray[3];
- var vFor;
- if (Number.isInteger(dataPath)) {
- vFor = dataPath;
- } else if (!dataPath) {
- vFor = context;
- } else if (typeof dataPath === 'string' && dataPath) {
- if (dataPath.indexOf('#s#') === 0) {
- vFor = dataPath.substr(3);
- } else {
- vFor = vm.__get_value(dataPath, context);
- }
- }
- if (Number.isInteger(vFor)) {
- context = value;
- } else if (!propPath) {
- context = vFor[value];
- } else {
- if (Array.isArray(vFor)) {
- context = vFor.find(function (vForItem) {
- return vm.__get_value(propPath, vForItem) === value;
- });
- } else if (isPlainObject(vFor)) {
- context = Object.keys(vFor).find(function (vForKey) {
- return vm.__get_value(propPath, vFor[vForKey]) === value;
- });
- } else {
- console.error('v-for 暂不支持循环数据:', vFor);
- }
- }
- if (valuePath) {
- context = vm.__get_value(valuePath, context);
- }
- }
- });
- return context;
- }
- function processEventExtra(vm, extra, event, __args__) {
- var extraObj = {};
- if (Array.isArray(extra) && extra.length) {
- /**
- *[
- * ['data.items', 'data.id', item.data.id],
- * ['metas', 'id', meta.id]
- *],
- *[
- * ['data.items', 'data.id', item.data.id],
- * ['metas', 'id', meta.id]
- *],
- *'test'
- */
- extra.forEach(function (dataPath, index) {
- if (typeof dataPath === 'string') {
- if (!dataPath) {
- // model,prop.sync
- extraObj['$' + index] = vm;
- } else {
- if (dataPath === '$event') {
- // $event
- extraObj['$' + index] = event;
- } else if (dataPath === 'arguments') {
- extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
- } else if (dataPath.indexOf('$event.') === 0) {
- // $event.target.value
- extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
- } else {
- extraObj['$' + index] = vm.__get_value(dataPath);
- }
- }
- } else {
- extraObj['$' + index] = getExtraValue(vm, dataPath);
- }
- });
- }
- return extraObj;
- }
- function getObjByArray(arr) {
- var obj = {};
- for (var i = 1; i < arr.length; i++) {
- var element = arr[i];
- obj[element[0]] = element[1];
- }
- return obj;
- }
- function processEventArgs(vm, event) {
- var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
- var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
- var isCustom = arguments.length > 4 ? arguments[4] : undefined;
- var methodName = arguments.length > 5 ? arguments[5] : undefined;
- var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
- // fixed 用户直接触发 mpInstance.triggerEvent
- var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
- if (isCustom) {
- // 自定义事件
- isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
- if (!args.length) {
- // 无参数,直接传入 event 或 detail 数组
- if (isCustomMPEvent) {
- return [event];
- }
- return __args__;
- }
- }
- var extraObj = processEventExtra(vm, extra, event, __args__);
- var ret = [];
- args.forEach(function (arg) {
- if (arg === '$event') {
- if (methodName === '__set_model' && !isCustom) {
- // input v-model value
- ret.push(event.target.value);
- } else {
- if (isCustom && !isCustomMPEvent) {
- ret.push(__args__[0]);
- } else {
- // wxcomponent 组件或内置组件
- ret.push(event);
- }
- }
- } else {
- if (Array.isArray(arg) && arg[0] === 'o') {
- ret.push(getObjByArray(arg));
- } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
- ret.push(extraObj[arg]);
- } else {
- ret.push(arg);
- }
- }
- });
- return ret;
- }
- var ONCE = '~';
- var CUSTOM = '^';
- function isMatchEventType(eventType, optType) {
- return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
- }
- function getContextVm(vm) {
- var $parent = vm.$parent;
- // 父组件是 scoped slots 或者其他自定义组件时继续查找
- while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
- $parent = $parent.$parent;
- }
- return $parent && $parent.$parent;
- }
- function handleEvent(event) {
- var _this2 = this;
- event = wrapper$1(event);
- // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
- var dataset = (event.currentTarget || event.target).dataset;
- if (!dataset) {
- return console.warn('事件信息不存在');
- }
- var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
- if (!eventOpts) {
- return console.warn('事件信息不存在');
- }
- // [['handle',[1,2,a]],['handle1',[1,2,a]]]
- var eventType = event.type;
- var ret = [];
- eventOpts.forEach(function (eventOpt) {
- var type = eventOpt[0];
- var eventsArray = eventOpt[1];
- var isCustom = type.charAt(0) === CUSTOM;
- type = isCustom ? type.slice(1) : type;
- var isOnce = type.charAt(0) === ONCE;
- type = isOnce ? type.slice(1) : type;
- if (eventsArray && isMatchEventType(eventType, type)) {
- eventsArray.forEach(function (eventArray) {
- var methodName = eventArray[0];
- if (methodName) {
- var handlerCtx = _this2.$vm;
- if (handlerCtx.$options.generic) {
- // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
- handlerCtx = getContextVm(handlerCtx) || handlerCtx;
- }
- if (methodName === '$emit') {
- handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
- return;
- }
- var handler = handlerCtx[methodName];
- if (!isFn(handler)) {
- var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
- var path = _this2.route || _this2.is;
- throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
- }
- if (isOnce) {
- if (handler.once) {
- return;
- }
- handler.once = true;
- }
- var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
- params = Array.isArray(params) ? params : [];
- // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
- if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
- // eslint-disable-next-line no-sparse-arrays
- params = params.concat([,,,,,,,,,, event]);
- }
- ret.push(handler.apply(handlerCtx, params));
- }
- });
- }
- });
- if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
- return ret[0];
- }
- }
- var eventChannels = {};
- function getEventChannel(id) {
- var eventChannel = eventChannels[id];
- delete eventChannels[id];
- return eventChannel;
- }
- var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
- function initEventChannel() {
- _vue.default.prototype.getOpenerEventChannel = function () {
- // 微信小程序使用自身getOpenerEventChannel
- {
- return this.$scope.getOpenerEventChannel();
- }
- };
- var callHook = _vue.default.prototype.__call_hook;
- _vue.default.prototype.__call_hook = function (hook, args) {
- if (hook === 'onLoad' && args && args.__id__) {
- this.__eventChannel__ = getEventChannel(args.__id__);
- delete args.__id__;
- }
- return callHook.call(this, hook, args);
- };
- }
- function initScopedSlotsParams() {
- var center = {};
- var parents = {};
- function currentId(fn) {
- var vueIds = this.$options.propsData.vueId;
- if (vueIds) {
- var vueId = vueIds.split(',')[0];
- fn(vueId);
- }
- }
- _vue.default.prototype.$hasSSP = function (vueId) {
- var slot = center[vueId];
- if (!slot) {
- parents[vueId] = this;
- this.$on('hook:destroyed', function () {
- delete parents[vueId];
- });
- }
- return slot;
- };
- _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
- var slot = center[vueId];
- if (slot) {
- var params = slot[name] || [];
- if (needAll) {
- return params;
- }
- return params[0];
- }
- };
- _vue.default.prototype.$setSSP = function (name, value) {
- var index = 0;
- currentId.call(this, function (vueId) {
- var slot = center[vueId];
- var params = slot[name] = slot[name] || [];
- params.push(value);
- index = params.length - 1;
- });
- return index;
- };
- _vue.default.prototype.$initSSP = function () {
- currentId.call(this, function (vueId) {
- center[vueId] = {};
- });
- };
- _vue.default.prototype.$callSSP = function () {
- currentId.call(this, function (vueId) {
- if (parents[vueId]) {
- parents[vueId].$forceUpdate();
- }
- });
- };
- _vue.default.mixin({
- destroyed: function destroyed() {
- var propsData = this.$options.propsData;
- var vueId = propsData && propsData.vueId;
- if (vueId) {
- delete center[vueId];
- delete parents[vueId];
- }
- }
- });
- }
- function parseBaseApp(vm, _ref4) {
- var mocks = _ref4.mocks,
- initRefs = _ref4.initRefs;
- initEventChannel();
- {
- initScopedSlotsParams();
- }
- if (vm.$options.store) {
- _vue.default.prototype.$store = vm.$options.store;
- }
- uniIdMixin(_vue.default);
- _vue.default.prototype.mpHost = "mp-weixin";
- _vue.default.mixin({
- beforeCreate: function beforeCreate() {
- if (!this.$options.mpType) {
- return;
- }
- this.mpType = this.$options.mpType;
- this.$mp = (0, _defineProperty2.default)({
- data: {}
- }, this.mpType, this.$options.mpInstance);
- this.$scope = this.$options.mpInstance;
- delete this.$options.mpType;
- delete this.$options.mpInstance;
- if (this.mpType === 'page' && typeof getApp === 'function') {
- // hack vue-i18n
- var app = getApp();
- if (app.$vm && app.$vm.$i18n) {
- this._i18n = app.$vm.$i18n;
- }
- }
- if (this.mpType !== 'app') {
- initRefs(this);
- initMocks(this, mocks);
- }
- }
- });
- var appOptions = {
- onLaunch: function onLaunch(args) {
- if (this.$vm) {
- // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
- return;
- }
- {
- if (wx.canIUse && !wx.canIUse('nextTick')) {
- // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
- console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
- }
- }
- this.$vm = vm;
- this.$vm.$mp = {
- app: this
- };
- this.$vm.$scope = this;
- // vm 上也挂载 globalData
- this.$vm.globalData = this.globalData;
- this.$vm._isMounted = true;
- this.$vm.__call_hook('mounted', args);
- this.$vm.__call_hook('onLaunch', args);
- }
- };
- // 兼容旧版本 globalData
- appOptions.globalData = vm.$options.globalData || {};
- // 将 methods 中的方法挂在 getApp() 中
- var methods = vm.$options.methods;
- if (methods) {
- Object.keys(methods).forEach(function (name) {
- appOptions[name] = methods[name];
- });
- }
- initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
- initHooks(appOptions, hooks);
- initUnknownHooks(appOptions, vm.$options);
- return appOptions;
- }
- function parseApp(vm) {
- return parseBaseApp(vm, {
- mocks: mocks,
- initRefs: initRefs
- });
- }
- function createApp(vm) {
- App(parseApp(vm));
- return vm;
- }
- var encodeReserveRE = /[!'()*]/g;
- var encodeReserveReplacer = function encodeReserveReplacer(c) {
- return '%' + c.charCodeAt(0).toString(16);
- };
- var commaRE = /%2C/g;
- // fixed encodeURIComponent which is more conformant to RFC3986:
- // - escapes [!'()*]
- // - preserve commas
- var encode = function encode(str) {
- return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
- };
- function stringifyQuery(obj) {
- var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
- var res = obj ? Object.keys(obj).map(function (key) {
- var val = obj[key];
- if (val === undefined) {
- return '';
- }
- if (val === null) {
- return encodeStr(key);
- }
- if (Array.isArray(val)) {
- var result = [];
- val.forEach(function (val2) {
- if (val2 === undefined) {
- return;
- }
- if (val2 === null) {
- result.push(encodeStr(key));
- } else {
- result.push(encodeStr(key) + '=' + encodeStr(val2));
- }
- });
- return result.join('&');
- }
- return encodeStr(key) + '=' + encodeStr(val);
- }).filter(function (x) {
- return x.length > 0;
- }).join('&') : null;
- return res ? "?".concat(res) : '';
- }
- function parseBaseComponent(vueComponentOptions) {
- var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
- isPage = _ref5.isPage,
- initRelation = _ref5.initRelation;
- var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
- var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
- _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
- VueComponent = _initVueComponent2[0],
- vueOptions = _initVueComponent2[1];
- var options = _objectSpread({
- multipleSlots: true,
- // styleIsolation: 'apply-shared',
- addGlobalClass: true
- }, vueOptions.options || {});
- {
- // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
- if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
- Object.assign(options, vueOptions['mp-weixin'].options);
- }
- }
- var componentOptions = {
- options: options,
- data: initData(vueOptions, _vue.default.prototype),
- behaviors: initBehaviors(vueOptions, initBehavior),
- properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
- lifetimes: {
- attached: function attached() {
- var properties = this.properties;
- var options = {
- mpType: isPage.call(this) ? 'page' : 'component',
- mpInstance: this,
- propsData: properties
- };
- initVueIds(properties.vueId, this);
- // 处理父子关系
- initRelation.call(this, {
- vuePid: this._$vuePid,
- vueOptions: options
- });
- // 初始化 vue 实例
- this.$vm = new VueComponent(options);
- // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
- initSlots(this.$vm, properties.vueSlots);
- // 触发首次 setData
- this.$vm.$mount();
- },
- ready: function ready() {
- // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
- // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
- if (this.$vm) {
- this.$vm._isMounted = true;
- this.$vm.__call_hook('mounted');
- this.$vm.__call_hook('onReady');
- }
- },
- detached: function detached() {
- this.$vm && this.$vm.$destroy();
- }
- },
- pageLifetimes: {
- show: function show(args) {
- this.$vm && this.$vm.__call_hook('onPageShow', args);
- },
- hide: function hide() {
- this.$vm && this.$vm.__call_hook('onPageHide');
- },
- resize: function resize(size) {
- this.$vm && this.$vm.__call_hook('onPageResize', size);
- }
- },
- methods: {
- __l: handleLink,
- __e: handleEvent
- }
- };
- // externalClasses
- if (vueOptions.externalClasses) {
- componentOptions.externalClasses = vueOptions.externalClasses;
- }
- if (Array.isArray(vueOptions.wxsCallMethods)) {
- vueOptions.wxsCallMethods.forEach(function (callMethod) {
- componentOptions.methods[callMethod] = function (args) {
- return this.$vm[callMethod](args);
- };
- });
- }
- if (needVueOptions) {
- return [componentOptions, vueOptions, VueComponent];
- }
- if (isPage) {
- return componentOptions;
- }
- return [componentOptions, VueComponent];
- }
- function parseComponent(vueComponentOptions, needVueOptions) {
- return parseBaseComponent(vueComponentOptions, {
- isPage: isPage,
- initRelation: initRelation
- }, needVueOptions);
- }
- var hooks$1 = ['onShow', 'onHide', 'onUnload'];
- hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
- function parseBasePage(vuePageOptions) {
- var _parseComponent = parseComponent(vuePageOptions, true),
- _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
- pageOptions = _parseComponent2[0],
- vueOptions = _parseComponent2[1];
- initHooks(pageOptions.methods, hooks$1, vueOptions);
- pageOptions.methods.onLoad = function (query) {
- this.options = query;
- var copyQuery = Object.assign({}, query);
- delete copyQuery.__id__;
- this.$page = {
- fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
- };
- this.$vm.$mp.query = query; // 兼容 mpvue
- this.$vm.__call_hook('onLoad', query);
- };
- {
- initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
- }
- {
- initWorkletMethods(pageOptions.methods, vueOptions.methods);
- }
- return pageOptions;
- }
- function parsePage(vuePageOptions) {
- return parseBasePage(vuePageOptions);
- }
- function createPage(vuePageOptions) {
- {
- return Component(parsePage(vuePageOptions));
- }
- }
- function createComponent(vueOptions) {
- {
- return Component(parseComponent(vueOptions));
- }
- }
- function createSubpackageApp(vm) {
- var appOptions = parseApp(vm);
- var app = getApp({
- allowDefault: true
- });
- vm.$scope = app;
- var globalData = app.globalData;
- if (globalData) {
- Object.keys(appOptions.globalData).forEach(function (name) {
- if (!hasOwn(globalData, name)) {
- globalData[name] = appOptions.globalData[name];
- }
- });
- }
- Object.keys(appOptions).forEach(function (name) {
- if (!hasOwn(app, name)) {
- app[name] = appOptions[name];
- }
- });
- if (isFn(appOptions.onShow) && wx.onAppShow) {
- wx.onAppShow(function () {
- for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
- args[_key5] = arguments[_key5];
- }
- vm.__call_hook('onShow', args);
- });
- }
- if (isFn(appOptions.onHide) && wx.onAppHide) {
- wx.onAppHide(function () {
- for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
- args[_key6] = arguments[_key6];
- }
- vm.__call_hook('onHide', args);
- });
- }
- if (isFn(appOptions.onLaunch)) {
- var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
- vm.__call_hook('onLaunch', args);
- }
- return vm;
- }
- function createPlugin(vm) {
- var appOptions = parseApp(vm);
- if (isFn(appOptions.onShow) && wx.onAppShow) {
- wx.onAppShow(function () {
- for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
- args[_key7] = arguments[_key7];
- }
- vm.__call_hook('onShow', args);
- });
- }
- if (isFn(appOptions.onHide) && wx.onAppHide) {
- wx.onAppHide(function () {
- for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
- args[_key8] = arguments[_key8];
- }
- vm.__call_hook('onHide', args);
- });
- }
- if (isFn(appOptions.onLaunch)) {
- var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
- vm.__call_hook('onLaunch', args);
- }
- return vm;
- }
- todos.forEach(function (todoApi) {
- protocols[todoApi] = false;
- });
- canIUses.forEach(function (canIUseApi) {
- var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
- if (!wx.canIUse(apiName)) {
- protocols[canIUseApi] = false;
- }
- });
- var uni = {};
- if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
- uni = new Proxy({}, {
- get: function get(target, name) {
- if (hasOwn(target, name)) {
- return target[name];
- }
- if (baseApi[name]) {
- return baseApi[name];
- }
- if (api[name]) {
- return promisify(name, api[name]);
- }
- {
- if (extraApi[name]) {
- return promisify(name, extraApi[name]);
- }
- if (todoApis[name]) {
- return promisify(name, todoApis[name]);
- }
- }
- if (eventApi[name]) {
- return eventApi[name];
- }
- return promisify(name, wrapper(name, wx[name]));
- },
- set: function set(target, name, value) {
- target[name] = value;
- return true;
- }
- });
- } else {
- Object.keys(baseApi).forEach(function (name) {
- uni[name] = baseApi[name];
- });
- {
- Object.keys(todoApis).forEach(function (name) {
- uni[name] = promisify(name, todoApis[name]);
- });
- Object.keys(extraApi).forEach(function (name) {
- uni[name] = promisify(name, extraApi[name]);
- });
- }
- Object.keys(eventApi).forEach(function (name) {
- uni[name] = eventApi[name];
- });
- Object.keys(api).forEach(function (name) {
- uni[name] = promisify(name, api[name]);
- });
- Object.keys(wx).forEach(function (name) {
- if (hasOwn(wx, name) || hasOwn(protocols, name)) {
- uni[name] = promisify(name, wrapper(name, wx[name]));
- }
- });
- }
- wx.createApp = createApp;
- wx.createPage = createPage;
- wx.createComponent = createComponent;
- wx.createSubpackageApp = createSubpackageApp;
- wx.createPlugin = createPlugin;
- var uni$1 = uni;
- var _default = uni$1;
- exports.default = _default;
- /* 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)))
- /***/ }),
- /***/ 20:
- /*!****************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _iterableToArray(iter) {
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
- }
- module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 21:
- /*!******************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 211:
- /*!************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/network/api/homeApi.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.login = login;
- var _http = __webpack_require__(/*! ../http.js */ 169);
- function login(data) {
- return (0, _http.request)({
- url: "/login",
- method: "post",
- data: data
- });
- }
- /***/ }),
- /***/ 22:
- /*!*************************************************************!*\
- !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni, global) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
- exports.compileI18nJsonStr = compileI18nJsonStr;
- exports.hasI18nJson = hasI18nJson;
- exports.initVueI18n = initVueI18n;
- exports.isI18nStr = isI18nStr;
- exports.isString = void 0;
- exports.normalizeLocale = normalizeLocale;
- exports.parseI18nJson = parseI18nJson;
- exports.resolveLocale = resolveLocale;
- var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
- var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
- var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
- var isObject = function isObject(val) {
- return val !== null && (0, _typeof2.default)(val) === 'object';
- };
- var defaultDelimiters = ['{', '}'];
- var BaseFormatter = /*#__PURE__*/function () {
- function BaseFormatter() {
- (0, _classCallCheck2.default)(this, BaseFormatter);
- this._caches = Object.create(null);
- }
- (0, _createClass2.default)(BaseFormatter, [{
- key: "interpolate",
- value: function interpolate(message, values) {
- var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
- if (!values) {
- return [message];
- }
- var tokens = this._caches[message];
- if (!tokens) {
- tokens = parse(message, delimiters);
- this._caches[message] = tokens;
- }
- return compile(tokens, values);
- }
- }]);
- return BaseFormatter;
- }();
- exports.Formatter = BaseFormatter;
- var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
- var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
- function parse(format, _ref) {
- var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
- startDelimiter = _ref2[0],
- endDelimiter = _ref2[1];
- var tokens = [];
- var position = 0;
- var text = '';
- while (position < format.length) {
- var char = format[position++];
- if (char === startDelimiter) {
- if (text) {
- tokens.push({
- type: 'text',
- value: text
- });
- }
- text = '';
- var sub = '';
- char = format[position++];
- while (char !== undefined && char !== endDelimiter) {
- sub += char;
- char = format[position++];
- }
- var isClosed = char === endDelimiter;
- var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
- tokens.push({
- value: sub,
- type: type
- });
- }
- // else if (char === '%') {
- // // when found rails i18n syntax, skip text capture
- // if (format[position] !== '{') {
- // text += char
- // }
- // }
- else {
- text += char;
- }
- }
- text && tokens.push({
- type: 'text',
- value: text
- });
- return tokens;
- }
- function compile(tokens, values) {
- var compiled = [];
- var index = 0;
- var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
- if (mode === 'unknown') {
- return compiled;
- }
- while (index < tokens.length) {
- var token = tokens[index];
- switch (token.type) {
- case 'text':
- compiled.push(token.value);
- break;
- case 'list':
- compiled.push(values[parseInt(token.value, 10)]);
- break;
- case 'named':
- if (mode === 'named') {
- compiled.push(values[token.value]);
- } else {
- if (true) {
- console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
- }
- }
- break;
- case 'unknown':
- if (true) {
- console.warn("Detect 'unknown' type of token!");
- }
- break;
- }
- index++;
- }
- return compiled;
- }
- var LOCALE_ZH_HANS = 'zh-Hans';
- exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
- var LOCALE_ZH_HANT = 'zh-Hant';
- exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
- var LOCALE_EN = 'en';
- exports.LOCALE_EN = LOCALE_EN;
- var LOCALE_FR = 'fr';
- exports.LOCALE_FR = LOCALE_FR;
- var LOCALE_ES = 'es';
- exports.LOCALE_ES = LOCALE_ES;
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- var hasOwn = function hasOwn(val, key) {
- return hasOwnProperty.call(val, key);
- };
- var defaultFormatter = new BaseFormatter();
- function include(str, parts) {
- return !!parts.find(function (part) {
- return str.indexOf(part) !== -1;
- });
- }
- function startsWith(str, parts) {
- return parts.find(function (part) {
- return str.indexOf(part) === 0;
- });
- }
- function normalizeLocale(locale, messages) {
- if (!locale) {
- return;
- }
- locale = locale.trim().replace(/_/g, '-');
- if (messages && messages[locale]) {
- return locale;
- }
- locale = locale.toLowerCase();
- if (locale === 'chinese') {
- // 支付宝
- return LOCALE_ZH_HANS;
- }
- if (locale.indexOf('zh') === 0) {
- if (locale.indexOf('-hans') > -1) {
- return LOCALE_ZH_HANS;
- }
- if (locale.indexOf('-hant') > -1) {
- return LOCALE_ZH_HANT;
- }
- if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
- return LOCALE_ZH_HANT;
- }
- return LOCALE_ZH_HANS;
- }
- var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
- if (messages && Object.keys(messages).length > 0) {
- locales = Object.keys(messages);
- }
- var lang = startsWith(locale, locales);
- if (lang) {
- return lang;
- }
- }
- var I18n = /*#__PURE__*/function () {
- function I18n(_ref3) {
- var locale = _ref3.locale,
- fallbackLocale = _ref3.fallbackLocale,
- messages = _ref3.messages,
- watcher = _ref3.watcher,
- formater = _ref3.formater;
- (0, _classCallCheck2.default)(this, I18n);
- this.locale = LOCALE_EN;
- this.fallbackLocale = LOCALE_EN;
- this.message = {};
- this.messages = {};
- this.watchers = [];
- if (fallbackLocale) {
- this.fallbackLocale = fallbackLocale;
- }
- this.formater = formater || defaultFormatter;
- this.messages = messages || {};
- this.setLocale(locale || LOCALE_EN);
- if (watcher) {
- this.watchLocale(watcher);
- }
- }
- (0, _createClass2.default)(I18n, [{
- key: "setLocale",
- value: function setLocale(locale) {
- var _this = this;
- var oldLocale = this.locale;
- this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
- if (!this.messages[this.locale]) {
- // 可能初始化时不存在
- this.messages[this.locale] = {};
- }
- this.message = this.messages[this.locale];
- // 仅发生变化时,通知
- if (oldLocale !== this.locale) {
- this.watchers.forEach(function (watcher) {
- watcher(_this.locale, oldLocale);
- });
- }
- }
- }, {
- key: "getLocale",
- value: function getLocale() {
- return this.locale;
- }
- }, {
- key: "watchLocale",
- value: function watchLocale(fn) {
- var _this2 = this;
- var index = this.watchers.push(fn) - 1;
- return function () {
- _this2.watchers.splice(index, 1);
- };
- }
- }, {
- key: "add",
- value: function add(locale, message) {
- var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
- var curMessages = this.messages[locale];
- if (curMessages) {
- if (override) {
- Object.assign(curMessages, message);
- } else {
- Object.keys(message).forEach(function (key) {
- if (!hasOwn(curMessages, key)) {
- curMessages[key] = message[key];
- }
- });
- }
- } else {
- this.messages[locale] = message;
- }
- }
- }, {
- key: "f",
- value: function f(message, values, delimiters) {
- return this.formater.interpolate(message, values, delimiters).join('');
- }
- }, {
- key: "t",
- value: function t(key, locale, values) {
- var message = this.message;
- if (typeof locale === 'string') {
- locale = normalizeLocale(locale, this.messages);
- locale && (message = this.messages[locale]);
- } else {
- values = locale;
- }
- if (!hasOwn(message, key)) {
- console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
- return key;
- }
- return this.formater.interpolate(message[key], values).join('');
- }
- }]);
- return I18n;
- }();
- exports.I18n = I18n;
- function watchAppLocale(appVm, i18n) {
- // 需要保证 watch 的触发在组件渲染之前
- if (appVm.$watchLocale) {
- // vue2
- appVm.$watchLocale(function (newLocale) {
- i18n.setLocale(newLocale);
- });
- } else {
- appVm.$watch(function () {
- return appVm.$locale;
- }, function (newLocale) {
- i18n.setLocale(newLocale);
- });
- }
- }
- function getDefaultLocale() {
- if (typeof uni !== 'undefined' && uni.getLocale) {
- return uni.getLocale();
- }
- // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
- if (typeof global !== 'undefined' && global.getLocale) {
- return global.getLocale();
- }
- return LOCALE_EN;
- }
- function initVueI18n(locale) {
- var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
- var watcher = arguments.length > 3 ? arguments[3] : undefined;
- // 兼容旧版本入参
- if (typeof locale !== 'string') {
- var _ref4 = [messages, locale];
- locale = _ref4[0];
- messages = _ref4[1];
- }
- if (typeof locale !== 'string') {
- // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
- locale = getDefaultLocale();
- }
- if (typeof fallbackLocale !== 'string') {
- fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
- }
- var i18n = new I18n({
- locale: locale,
- fallbackLocale: fallbackLocale,
- messages: messages,
- watcher: watcher
- });
- var _t = function t(key, values) {
- if (typeof getApp !== 'function') {
- // app view
- /* eslint-disable no-func-assign */
- _t = function t(key, values) {
- return i18n.t(key, values);
- };
- } else {
- var isWatchedAppLocale = false;
- _t = function t(key, values) {
- var appVm = getApp().$vm;
- // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
- // options: {
- // type: Array,
- // default () {
- // return [{
- // icon: 'shop',
- // text: t("uni-goods-nav.options.shop"),
- // }, {
- // icon: 'cart',
- // text: t("uni-goods-nav.options.cart")
- // }]
- // }
- // },
- if (appVm) {
- // 触发响应式
- appVm.$locale;
- if (!isWatchedAppLocale) {
- isWatchedAppLocale = true;
- watchAppLocale(appVm, i18n);
- }
- }
- return i18n.t(key, values);
- };
- }
- return _t(key, values);
- };
- return {
- i18n: i18n,
- f: function f(message, values, delimiters) {
- return i18n.f(message, values, delimiters);
- },
- t: function t(key, values) {
- return _t(key, values);
- },
- add: function add(locale, message) {
- var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
- return i18n.add(locale, message, override);
- },
- watch: function watch(fn) {
- return i18n.watchLocale(fn);
- },
- getLocale: function getLocale() {
- return i18n.getLocale();
- },
- setLocale: function setLocale(newLocale) {
- return i18n.setLocale(newLocale);
- }
- };
- }
- var isString = function isString(val) {
- return typeof val === 'string';
- };
- exports.isString = isString;
- var formater;
- function hasI18nJson(jsonObj, delimiters) {
- if (!formater) {
- formater = new BaseFormatter();
- }
- return walkJsonObj(jsonObj, function (jsonObj, key) {
- var value = jsonObj[key];
- if (isString(value)) {
- if (isI18nStr(value, delimiters)) {
- return true;
- }
- } else {
- return hasI18nJson(value, delimiters);
- }
- });
- }
- function parseI18nJson(jsonObj, values, delimiters) {
- if (!formater) {
- formater = new BaseFormatter();
- }
- walkJsonObj(jsonObj, function (jsonObj, key) {
- var value = jsonObj[key];
- if (isString(value)) {
- if (isI18nStr(value, delimiters)) {
- jsonObj[key] = compileStr(value, values, delimiters);
- }
- } else {
- parseI18nJson(value, values, delimiters);
- }
- });
- return jsonObj;
- }
- function compileI18nJsonStr(jsonStr, _ref5) {
- var locale = _ref5.locale,
- locales = _ref5.locales,
- delimiters = _ref5.delimiters;
- if (!isI18nStr(jsonStr, delimiters)) {
- return jsonStr;
- }
- if (!formater) {
- formater = new BaseFormatter();
- }
- var localeValues = [];
- Object.keys(locales).forEach(function (name) {
- if (name !== locale) {
- localeValues.push({
- locale: name,
- values: locales[name]
- });
- }
- });
- localeValues.unshift({
- locale: locale,
- values: locales[locale]
- });
- try {
- return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
- } catch (e) {}
- return jsonStr;
- }
- function isI18nStr(value, delimiters) {
- return value.indexOf(delimiters[0]) > -1;
- }
- function compileStr(value, values, delimiters) {
- return formater.interpolate(value, values, delimiters).join('');
- }
- function compileValue(jsonObj, key, localeValues, delimiters) {
- var value = jsonObj[key];
- if (isString(value)) {
- // 存在国际化
- if (isI18nStr(value, delimiters)) {
- jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
- if (localeValues.length > 1) {
- // 格式化国际化语言
- var valueLocales = jsonObj[key + 'Locales'] = {};
- localeValues.forEach(function (localValue) {
- valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
- });
- }
- }
- } else {
- compileJsonObj(value, localeValues, delimiters);
- }
- }
- function compileJsonObj(jsonObj, localeValues, delimiters) {
- walkJsonObj(jsonObj, function (jsonObj, key) {
- compileValue(jsonObj, key, localeValues, delimiters);
- });
- return jsonObj;
- }
- function walkJsonObj(jsonObj, walk) {
- if (Array.isArray(jsonObj)) {
- for (var i = 0; i < jsonObj.length; i++) {
- if (walk(jsonObj, i)) {
- return true;
- }
- }
- } else if (isObject(jsonObj)) {
- for (var key in jsonObj) {
- if (walk(jsonObj, key)) {
- return true;
- }
- }
- }
- return false;
- }
- function resolveLocale(locales) {
- return function (locale) {
- if (!locale) {
- return locale;
- }
- locale = normalizeLocale(locale) || locale;
- return resolveLocaleChain(locale).find(function (locale) {
- return locales.indexOf(locale) > -1;
- });
- };
- }
- function resolveLocaleChain(locale) {
- var chain = [];
- var tokens = locale.split('-');
- while (tokens.length) {
- chain.push(tokens.join('-'));
- tokens.pop();
- }
- return chain;
- }
- /* 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)))
- /***/ }),
- /***/ 23:
- /*!***************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- }
- module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 24:
- /*!************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
- function _defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
- }
- }
- function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- Object.defineProperty(Constructor, "prototype", {
- writable: false
- });
- return Constructor;
- }
- module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 25:
- /*!******************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
- \******************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* WEBPACK VAR INJECTION */(function(global) {/*!
- * Vue.js v2.6.11
- * (c) 2014-2023 Evan You
- * Released under the MIT License.
- */
- /* */
- var emptyObject = Object.freeze({});
- // These helpers produce better VM code in JS engines due to their
- // explicitness and function inlining.
- function isUndef (v) {
- return v === undefined || v === null
- }
- function isDef (v) {
- return v !== undefined && v !== null
- }
- function isTrue (v) {
- return v === true
- }
- function isFalse (v) {
- return v === false
- }
- /**
- * Check if value is primitive.
- */
- function isPrimitive (value) {
- return (
- typeof value === 'string' ||
- typeof value === 'number' ||
- // $flow-disable-line
- typeof value === 'symbol' ||
- typeof value === 'boolean'
- )
- }
- /**
- * Quick object check - this is primarily used to tell
- * Objects from primitive values when we know the value
- * is a JSON-compliant type.
- */
- function isObject (obj) {
- return obj !== null && typeof obj === 'object'
- }
- /**
- * Get the raw type string of a value, e.g., [object Object].
- */
- var _toString = Object.prototype.toString;
- function toRawType (value) {
- return _toString.call(value).slice(8, -1)
- }
- /**
- * Strict object type check. Only returns true
- * for plain JavaScript objects.
- */
- function isPlainObject (obj) {
- return _toString.call(obj) === '[object Object]'
- }
- function isRegExp (v) {
- return _toString.call(v) === '[object RegExp]'
- }
- /**
- * Check if val is a valid array index.
- */
- function isValidArrayIndex (val) {
- var n = parseFloat(String(val));
- return n >= 0 && Math.floor(n) === n && isFinite(val)
- }
- function isPromise (val) {
- return (
- isDef(val) &&
- typeof val.then === 'function' &&
- typeof val.catch === 'function'
- )
- }
- /**
- * Convert a value to a string that is actually rendered.
- */
- function toString (val) {
- return val == null
- ? ''
- : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
- ? JSON.stringify(val, null, 2)
- : String(val)
- }
- /**
- * Convert an input value to a number for persistence.
- * If the conversion fails, return original string.
- */
- function toNumber (val) {
- var n = parseFloat(val);
- return isNaN(n) ? val : n
- }
- /**
- * Make a map and return a function for checking if a key
- * is in that map.
- */
- function makeMap (
- str,
- expectsLowerCase
- ) {
- var map = Object.create(null);
- var list = str.split(',');
- for (var i = 0; i < list.length; i++) {
- map[list[i]] = true;
- }
- return expectsLowerCase
- ? function (val) { return map[val.toLowerCase()]; }
- : function (val) { return map[val]; }
- }
- /**
- * Check if a tag is a built-in tag.
- */
- var isBuiltInTag = makeMap('slot,component', true);
- /**
- * Check if an attribute is a reserved attribute.
- */
- var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
- /**
- * Remove an item from an array.
- */
- function remove (arr, item) {
- if (arr.length) {
- var index = arr.indexOf(item);
- if (index > -1) {
- return arr.splice(index, 1)
- }
- }
- }
- /**
- * Check whether an object has the property.
- */
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- function hasOwn (obj, key) {
- return hasOwnProperty.call(obj, key)
- }
- /**
- * Create a cached version of a pure function.
- */
- function cached (fn) {
- var cache = Object.create(null);
- return (function cachedFn (str) {
- var hit = cache[str];
- return hit || (cache[str] = fn(str))
- })
- }
- /**
- * Camelize a hyphen-delimited string.
- */
- var camelizeRE = /-(\w)/g;
- var camelize = cached(function (str) {
- return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
- });
- /**
- * Capitalize a string.
- */
- var capitalize = cached(function (str) {
- return str.charAt(0).toUpperCase() + str.slice(1)
- });
- /**
- * Hyphenate a camelCase string.
- */
- var hyphenateRE = /\B([A-Z])/g;
- var hyphenate = cached(function (str) {
- return str.replace(hyphenateRE, '-$1').toLowerCase()
- });
- /**
- * Simple bind polyfill for environments that do not support it,
- * e.g., PhantomJS 1.x. Technically, we don't need this anymore
- * since native bind is now performant enough in most browsers.
- * But removing it would mean breaking code that was able to run in
- * PhantomJS 1.x, so this must be kept for backward compatibility.
- */
- /* istanbul ignore next */
- function polyfillBind (fn, ctx) {
- function boundFn (a) {
- var l = arguments.length;
- return l
- ? l > 1
- ? fn.apply(ctx, arguments)
- : fn.call(ctx, a)
- : fn.call(ctx)
- }
- boundFn._length = fn.length;
- return boundFn
- }
- function nativeBind (fn, ctx) {
- return fn.bind(ctx)
- }
- var bind = Function.prototype.bind
- ? nativeBind
- : polyfillBind;
- /**
- * Convert an Array-like object to a real Array.
- */
- function toArray (list, start) {
- start = start || 0;
- var i = list.length - start;
- var ret = new Array(i);
- while (i--) {
- ret[i] = list[i + start];
- }
- return ret
- }
- /**
- * Mix properties into target object.
- */
- function extend (to, _from) {
- for (var key in _from) {
- to[key] = _from[key];
- }
- return to
- }
- /**
- * Merge an Array of Objects into a single Object.
- */
- function toObject (arr) {
- var res = {};
- for (var i = 0; i < arr.length; i++) {
- if (arr[i]) {
- extend(res, arr[i]);
- }
- }
- return res
- }
- /* eslint-disable no-unused-vars */
- /**
- * Perform no operation.
- * Stubbing args to make Flow happy without leaving useless transpiled code
- * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
- */
- function noop (a, b, c) {}
- /**
- * Always return false.
- */
- var no = function (a, b, c) { return false; };
- /* eslint-enable no-unused-vars */
- /**
- * Return the same value.
- */
- var identity = function (_) { return _; };
- /**
- * Check if two values are loosely equal - that is,
- * if they are plain objects, do they have the same shape?
- */
- function looseEqual (a, b) {
- if (a === b) { return true }
- var isObjectA = isObject(a);
- var isObjectB = isObject(b);
- if (isObjectA && isObjectB) {
- try {
- var isArrayA = Array.isArray(a);
- var isArrayB = Array.isArray(b);
- if (isArrayA && isArrayB) {
- return a.length === b.length && a.every(function (e, i) {
- return looseEqual(e, b[i])
- })
- } else if (a instanceof Date && b instanceof Date) {
- return a.getTime() === b.getTime()
- } else if (!isArrayA && !isArrayB) {
- var keysA = Object.keys(a);
- var keysB = Object.keys(b);
- return keysA.length === keysB.length && keysA.every(function (key) {
- return looseEqual(a[key], b[key])
- })
- } else {
- /* istanbul ignore next */
- return false
- }
- } catch (e) {
- /* istanbul ignore next */
- return false
- }
- } else if (!isObjectA && !isObjectB) {
- return String(a) === String(b)
- } else {
- return false
- }
- }
- /**
- * Return the first index at which a loosely equal value can be
- * found in the array (if value is a plain object, the array must
- * contain an object of the same shape), or -1 if it is not present.
- */
- function looseIndexOf (arr, val) {
- for (var i = 0; i < arr.length; i++) {
- if (looseEqual(arr[i], val)) { return i }
- }
- return -1
- }
- /**
- * Ensure a function is called only once.
- */
- function once (fn) {
- var called = false;
- return function () {
- if (!called) {
- called = true;
- fn.apply(this, arguments);
- }
- }
- }
- var ASSET_TYPES = [
- 'component',
- 'directive',
- 'filter'
- ];
- var LIFECYCLE_HOOKS = [
- 'beforeCreate',
- 'created',
- 'beforeMount',
- 'mounted',
- 'beforeUpdate',
- 'updated',
- 'beforeDestroy',
- 'destroyed',
- 'activated',
- 'deactivated',
- 'errorCaptured',
- 'serverPrefetch'
- ];
- /* */
- var config = ({
- /**
- * Option merge strategies (used in core/util/options)
- */
- // $flow-disable-line
- optionMergeStrategies: Object.create(null),
- /**
- * Whether to suppress warnings.
- */
- silent: false,
- /**
- * Show production mode tip message on boot?
- */
- productionTip: "development" !== 'production',
- /**
- * Whether to enable devtools
- */
- devtools: "development" !== 'production',
- /**
- * Whether to record perf
- */
- performance: false,
- /**
- * Error handler for watcher errors
- */
- errorHandler: null,
- /**
- * Warn handler for watcher warns
- */
- warnHandler: null,
- /**
- * Ignore certain custom elements
- */
- ignoredElements: [],
- /**
- * Custom user key aliases for v-on
- */
- // $flow-disable-line
- keyCodes: Object.create(null),
- /**
- * Check if a tag is reserved so that it cannot be registered as a
- * component. This is platform-dependent and may be overwritten.
- */
- isReservedTag: no,
- /**
- * Check if an attribute is reserved so that it cannot be used as a component
- * prop. This is platform-dependent and may be overwritten.
- */
- isReservedAttr: no,
- /**
- * Check if a tag is an unknown element.
- * Platform-dependent.
- */
- isUnknownElement: no,
- /**
- * Get the namespace of an element
- */
- getTagNamespace: noop,
- /**
- * Parse the real tag name for the specific platform.
- */
- parsePlatformTagName: identity,
- /**
- * Check if an attribute must be bound using property, e.g. value
- * Platform-dependent.
- */
- mustUseProp: no,
- /**
- * Perform updates asynchronously. Intended to be used by Vue Test Utils
- * This will significantly reduce performance if set to false.
- */
- async: true,
- /**
- * Exposed for legacy reasons
- */
- _lifecycleHooks: LIFECYCLE_HOOKS
- });
- /* */
- /**
- * unicode letters used for parsing html tags, component names and property paths.
- * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
- * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
- */
- 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/;
- /**
- * Check if a string starts with $ or _
- */
- function isReserved (str) {
- var c = (str + '').charCodeAt(0);
- return c === 0x24 || c === 0x5F
- }
- /**
- * Define a property.
- */
- function def (obj, key, val, enumerable) {
- Object.defineProperty(obj, key, {
- value: val,
- enumerable: !!enumerable,
- writable: true,
- configurable: true
- });
- }
- /**
- * Parse simple path.
- */
- var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
- function parsePath (path) {
- if (bailRE.test(path)) {
- return
- }
- var segments = path.split('.');
- return function (obj) {
- for (var i = 0; i < segments.length; i++) {
- if (!obj) { return }
- obj = obj[segments[i]];
- }
- return obj
- }
- }
- /* */
- // can we use __proto__?
- var hasProto = '__proto__' in {};
- // Browser environment sniffing
- var inBrowser = typeof window !== 'undefined';
- var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
- var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
- var UA = inBrowser && window.navigator.userAgent.toLowerCase();
- var isIE = UA && /msie|trident/.test(UA);
- var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
- var isEdge = UA && UA.indexOf('edge/') > 0;
- var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
- var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
- var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
- var isPhantomJS = UA && /phantomjs/.test(UA);
- var isFF = UA && UA.match(/firefox\/(\d+)/);
- // Firefox has a "watch" function on Object.prototype...
- var nativeWatch = ({}).watch;
- if (inBrowser) {
- try {
- var opts = {};
- Object.defineProperty(opts, 'passive', ({
- get: function get () {
- }
- })); // https://github.com/facebook/flow/issues/285
- window.addEventListener('test-passive', null, opts);
- } catch (e) {}
- }
- // this needs to be lazy-evaled because vue may be required before
- // vue-server-renderer can set VUE_ENV
- var _isServer;
- var isServerRendering = function () {
- if (_isServer === undefined) {
- /* istanbul ignore if */
- if (!inBrowser && !inWeex && typeof global !== 'undefined') {
- // detect presence of vue-server-renderer and avoid
- // Webpack shimming the process
- _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
- } else {
- _isServer = false;
- }
- }
- return _isServer
- };
- // detect devtools
- var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
- /* istanbul ignore next */
- function isNative (Ctor) {
- return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
- }
- var hasSymbol =
- typeof Symbol !== 'undefined' && isNative(Symbol) &&
- typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
- var _Set;
- /* istanbul ignore if */ // $flow-disable-line
- if (typeof Set !== 'undefined' && isNative(Set)) {
- // use native Set when available.
- _Set = Set;
- } else {
- // a non-standard Set polyfill that only works with primitive keys.
- _Set = /*@__PURE__*/(function () {
- function Set () {
- this.set = Object.create(null);
- }
- Set.prototype.has = function has (key) {
- return this.set[key] === true
- };
- Set.prototype.add = function add (key) {
- this.set[key] = true;
- };
- Set.prototype.clear = function clear () {
- this.set = Object.create(null);
- };
- return Set;
- }());
- }
- /* */
- var warn = noop;
- var tip = noop;
- var generateComponentTrace = (noop); // work around flow check
- var formatComponentName = (noop);
- if (true) {
- var hasConsole = typeof console !== 'undefined';
- var classifyRE = /(?:^|[-_])(\w)/g;
- var classify = function (str) { return str
- .replace(classifyRE, function (c) { return c.toUpperCase(); })
- .replace(/[-_]/g, ''); };
- warn = function (msg, vm) {
- var trace = vm ? generateComponentTrace(vm) : '';
- if (config.warnHandler) {
- config.warnHandler.call(null, msg, vm, trace);
- } else if (hasConsole && (!config.silent)) {
- console.error(("[Vue warn]: " + msg + trace));
- }
- };
- tip = function (msg, vm) {
- if (hasConsole && (!config.silent)) {
- console.warn("[Vue tip]: " + msg + (
- vm ? generateComponentTrace(vm) : ''
- ));
- }
- };
- formatComponentName = function (vm, includeFile) {
- if (vm.$root === vm) {
- if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
- return ('') + vm.$options.__file
- }
- return '<Root>'
- }
- var options = typeof vm === 'function' && vm.cid != null
- ? vm.options
- : vm._isVue
- ? vm.$options || vm.constructor.options
- : vm;
- var name = options.name || options._componentTag;
- var file = options.__file;
- if (!name && file) {
- var match = file.match(/([^/\\]+)\.vue$/);
- name = match && match[1];
- }
- return (
- (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
- (file && includeFile !== false ? (" at " + file) : '')
- )
- };
- var repeat = function (str, n) {
- var res = '';
- while (n) {
- if (n % 2 === 1) { res += str; }
- if (n > 1) { str += str; }
- n >>= 1;
- }
- return res
- };
- generateComponentTrace = function (vm) {
- if (vm._isVue && vm.$parent) {
- var tree = [];
- var currentRecursiveSequence = 0;
- while (vm && vm.$options.name !== 'PageBody') {
- if (tree.length > 0) {
- var last = tree[tree.length - 1];
- if (last.constructor === vm.constructor) {
- currentRecursiveSequence++;
- vm = vm.$parent;
- continue
- } else if (currentRecursiveSequence > 0) {
- tree[tree.length - 1] = [last, currentRecursiveSequence];
- currentRecursiveSequence = 0;
- }
- }
- !vm.$options.isReserved && tree.push(vm);
- vm = vm.$parent;
- }
- return '\n\nfound in\n\n' + tree
- .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
- ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
- : formatComponentName(vm))); })
- .join('\n')
- } else {
- return ("\n\n(found in " + (formatComponentName(vm)) + ")")
- }
- };
- }
- /* */
- var uid = 0;
- /**
- * A dep is an observable that can have multiple
- * directives subscribing to it.
- */
- var Dep = function Dep () {
- this.id = uid++;
- this.subs = [];
- };
- Dep.prototype.addSub = function addSub (sub) {
- this.subs.push(sub);
- };
- Dep.prototype.removeSub = function removeSub (sub) {
- remove(this.subs, sub);
- };
- Dep.prototype.depend = function depend () {
- if (Dep.SharedObject.target) {
- Dep.SharedObject.target.addDep(this);
- }
- };
- Dep.prototype.notify = function notify () {
- // stabilize the subscriber list first
- var subs = this.subs.slice();
- if ( true && !config.async) {
- // subs aren't sorted in scheduler if not running async
- // we need to sort them now to make sure they fire in correct
- // order
- subs.sort(function (a, b) { return a.id - b.id; });
- }
- for (var i = 0, l = subs.length; i < l; i++) {
- subs[i].update();
- }
- };
- // The current target watcher being evaluated.
- // This is globally unique because only one watcher
- // can be evaluated at a time.
- // fixed by xxxxxx (nvue shared vuex)
- /* eslint-disable no-undef */
- Dep.SharedObject = {};
- Dep.SharedObject.target = null;
- Dep.SharedObject.targetStack = [];
- function pushTarget (target) {
- Dep.SharedObject.targetStack.push(target);
- Dep.SharedObject.target = target;
- Dep.target = target;
- }
- function popTarget () {
- Dep.SharedObject.targetStack.pop();
- Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
- Dep.target = Dep.SharedObject.target;
- }
- /* */
- var VNode = function VNode (
- tag,
- data,
- children,
- text,
- elm,
- context,
- componentOptions,
- asyncFactory
- ) {
- this.tag = tag;
- this.data = data;
- this.children = children;
- this.text = text;
- this.elm = elm;
- this.ns = undefined;
- this.context = context;
- this.fnContext = undefined;
- this.fnOptions = undefined;
- this.fnScopeId = undefined;
- this.key = data && data.key;
- this.componentOptions = componentOptions;
- this.componentInstance = undefined;
- this.parent = undefined;
- this.raw = false;
- this.isStatic = false;
- this.isRootInsert = true;
- this.isComment = false;
- this.isCloned = false;
- this.isOnce = false;
- this.asyncFactory = asyncFactory;
- this.asyncMeta = undefined;
- this.isAsyncPlaceholder = false;
- };
- var prototypeAccessors = { child: { configurable: true } };
- // DEPRECATED: alias for componentInstance for backwards compat.
- /* istanbul ignore next */
- prototypeAccessors.child.get = function () {
- return this.componentInstance
- };
- Object.defineProperties( VNode.prototype, prototypeAccessors );
- var createEmptyVNode = function (text) {
- if ( text === void 0 ) text = '';
- var node = new VNode();
- node.text = text;
- node.isComment = true;
- return node
- };
- function createTextVNode (val) {
- return new VNode(undefined, undefined, undefined, String(val))
- }
- // optimized shallow clone
- // used for static nodes and slot nodes because they may be reused across
- // multiple renders, cloning them avoids errors when DOM manipulations rely
- // on their elm reference.
- function cloneVNode (vnode) {
- var cloned = new VNode(
- vnode.tag,
- vnode.data,
- // #7975
- // clone children array to avoid mutating original in case of cloning
- // a child.
- vnode.children && vnode.children.slice(),
- vnode.text,
- vnode.elm,
- vnode.context,
- vnode.componentOptions,
- vnode.asyncFactory
- );
- cloned.ns = vnode.ns;
- cloned.isStatic = vnode.isStatic;
- cloned.key = vnode.key;
- cloned.isComment = vnode.isComment;
- cloned.fnContext = vnode.fnContext;
- cloned.fnOptions = vnode.fnOptions;
- cloned.fnScopeId = vnode.fnScopeId;
- cloned.asyncMeta = vnode.asyncMeta;
- cloned.isCloned = true;
- return cloned
- }
- /*
- * not type checking this file because flow doesn't play well with
- * dynamically accessing methods on Array prototype
- */
- var arrayProto = Array.prototype;
- var arrayMethods = Object.create(arrayProto);
- var methodsToPatch = [
- 'push',
- 'pop',
- 'shift',
- 'unshift',
- 'splice',
- 'sort',
- 'reverse'
- ];
- /**
- * Intercept mutating methods and emit events
- */
- methodsToPatch.forEach(function (method) {
- // cache original method
- var original = arrayProto[method];
- def(arrayMethods, method, function mutator () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- var result = original.apply(this, args);
- var ob = this.__ob__;
- var inserted;
- switch (method) {
- case 'push':
- case 'unshift':
- inserted = args;
- break
- case 'splice':
- inserted = args.slice(2);
- break
- }
- if (inserted) { ob.observeArray(inserted); }
- // notify change
- ob.dep.notify();
- return result
- });
- });
- /* */
- var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
- /**
- * In some cases we may want to disable observation inside a component's
- * update computation.
- */
- var shouldObserve = true;
- function toggleObserving (value) {
- shouldObserve = value;
- }
- /**
- * Observer class that is attached to each observed
- * object. Once attached, the observer converts the target
- * object's property keys into getter/setters that
- * collect dependencies and dispatch updates.
- */
- var Observer = function Observer (value) {
- this.value = value;
- this.dep = new Dep();
- this.vmCount = 0;
- def(value, '__ob__', this);
- if (Array.isArray(value)) {
- if (hasProto) {
- {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
- if(value.push !== value.__proto__.push){
- copyAugment(value, arrayMethods, arrayKeys);
- } else {
- protoAugment(value, arrayMethods);
- }
- }
- } else {
- copyAugment(value, arrayMethods, arrayKeys);
- }
- this.observeArray(value);
- } else {
- this.walk(value);
- }
- };
- /**
- * Walk through all properties and convert them into
- * getter/setters. This method should only be called when
- * value type is Object.
- */
- Observer.prototype.walk = function walk (obj) {
- var keys = Object.keys(obj);
- for (var i = 0; i < keys.length; i++) {
- defineReactive$$1(obj, keys[i]);
- }
- };
- /**
- * Observe a list of Array items.
- */
- Observer.prototype.observeArray = function observeArray (items) {
- for (var i = 0, l = items.length; i < l; i++) {
- observe(items[i]);
- }
- };
- // helpers
- /**
- * Augment a target Object or Array by intercepting
- * the prototype chain using __proto__
- */
- function protoAugment (target, src) {
- /* eslint-disable no-proto */
- target.__proto__ = src;
- /* eslint-enable no-proto */
- }
- /**
- * Augment a target Object or Array by defining
- * hidden properties.
- */
- /* istanbul ignore next */
- function copyAugment (target, src, keys) {
- for (var i = 0, l = keys.length; i < l; i++) {
- var key = keys[i];
- def(target, key, src[key]);
- }
- }
- /**
- * Attempt to create an observer instance for a value,
- * returns the new observer if successfully observed,
- * or the existing observer if the value already has one.
- */
- function observe (value, asRootData) {
- if (!isObject(value) || value instanceof VNode) {
- return
- }
- var ob;
- if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
- ob = value.__ob__;
- } else if (
- shouldObserve &&
- !isServerRendering() &&
- (Array.isArray(value) || isPlainObject(value)) &&
- Object.isExtensible(value) &&
- !value._isVue &&
- !value.__v_isMPComponent
- ) {
- ob = new Observer(value);
- }
- if (asRootData && ob) {
- ob.vmCount++;
- }
- return ob
- }
- /**
- * Define a reactive property on an Object.
- */
- function defineReactive$$1 (
- obj,
- key,
- val,
- customSetter,
- shallow
- ) {
- var dep = new Dep();
- var property = Object.getOwnPropertyDescriptor(obj, key);
- if (property && property.configurable === false) {
- return
- }
- // cater for pre-defined getter/setters
- var getter = property && property.get;
- var setter = property && property.set;
- if ((!getter || setter) && arguments.length === 2) {
- val = obj[key];
- }
- var childOb = !shallow && observe(val);
- Object.defineProperty(obj, key, {
- enumerable: true,
- configurable: true,
- get: function reactiveGetter () {
- var value = getter ? getter.call(obj) : val;
- if (Dep.SharedObject.target) { // fixed by xxxxxx
- dep.depend();
- if (childOb) {
- childOb.dep.depend();
- if (Array.isArray(value)) {
- dependArray(value);
- }
- }
- }
- return value
- },
- set: function reactiveSetter (newVal) {
- var value = getter ? getter.call(obj) : val;
- /* eslint-disable no-self-compare */
- if (newVal === value || (newVal !== newVal && value !== value)) {
- return
- }
- /* eslint-enable no-self-compare */
- if ( true && customSetter) {
- customSetter();
- }
- // #7981: for accessor properties without setter
- if (getter && !setter) { return }
- if (setter) {
- setter.call(obj, newVal);
- } else {
- val = newVal;
- }
- childOb = !shallow && observe(newVal);
- dep.notify();
- }
- });
- }
- /**
- * Set a property on an object. Adds the new property and
- * triggers change notification if the property doesn't
- * already exist.
- */
- function set (target, key, val) {
- if ( true &&
- (isUndef(target) || isPrimitive(target))
- ) {
- warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
- }
- if (Array.isArray(target) && isValidArrayIndex(key)) {
- target.length = Math.max(target.length, key);
- target.splice(key, 1, val);
- return val
- }
- if (key in target && !(key in Object.prototype)) {
- target[key] = val;
- return val
- }
- var ob = (target).__ob__;
- if (target._isVue || (ob && ob.vmCount)) {
- true && warn(
- 'Avoid adding reactive properties to a Vue instance or its root $data ' +
- 'at runtime - declare it upfront in the data option.'
- );
- return val
- }
- if (!ob) {
- target[key] = val;
- return val
- }
- defineReactive$$1(ob.value, key, val);
- ob.dep.notify();
- return val
- }
- /**
- * Delete a property and trigger change if necessary.
- */
- function del (target, key) {
- if ( true &&
- (isUndef(target) || isPrimitive(target))
- ) {
- warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
- }
- if (Array.isArray(target) && isValidArrayIndex(key)) {
- target.splice(key, 1);
- return
- }
- var ob = (target).__ob__;
- if (target._isVue || (ob && ob.vmCount)) {
- true && warn(
- 'Avoid deleting properties on a Vue instance or its root $data ' +
- '- just set it to null.'
- );
- return
- }
- if (!hasOwn(target, key)) {
- return
- }
- delete target[key];
- if (!ob) {
- return
- }
- ob.dep.notify();
- }
- /**
- * Collect dependencies on array elements when the array is touched, since
- * we cannot intercept array element access like property getters.
- */
- function dependArray (value) {
- for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
- e = value[i];
- e && e.__ob__ && e.__ob__.dep.depend();
- if (Array.isArray(e)) {
- dependArray(e);
- }
- }
- }
- /* */
- /**
- * Option overwriting strategies are functions that handle
- * how to merge a parent option value and a child option
- * value into the final value.
- */
- var strats = config.optionMergeStrategies;
- /**
- * Options with restrictions
- */
- if (true) {
- strats.el = strats.propsData = function (parent, child, vm, key) {
- if (!vm) {
- warn(
- "option \"" + key + "\" can only be used during instance " +
- 'creation with the `new` keyword.'
- );
- }
- return defaultStrat(parent, child)
- };
- }
- /**
- * Helper that recursively merges two data objects together.
- */
- function mergeData (to, from) {
- if (!from) { return to }
- var key, toVal, fromVal;
- var keys = hasSymbol
- ? Reflect.ownKeys(from)
- : Object.keys(from);
- for (var i = 0; i < keys.length; i++) {
- key = keys[i];
- // in case the object is already observed...
- if (key === '__ob__') { continue }
- toVal = to[key];
- fromVal = from[key];
- if (!hasOwn(to, key)) {
- set(to, key, fromVal);
- } else if (
- toVal !== fromVal &&
- isPlainObject(toVal) &&
- isPlainObject(fromVal)
- ) {
- mergeData(toVal, fromVal);
- }
- }
- return to
- }
- /**
- * Data
- */
- function mergeDataOrFn (
- parentVal,
- childVal,
- vm
- ) {
- if (!vm) {
- // in a Vue.extend merge, both should be functions
- if (!childVal) {
- return parentVal
- }
- if (!parentVal) {
- return childVal
- }
- // when parentVal & childVal are both present,
- // we need to return a function that returns the
- // merged result of both functions... no need to
- // check if parentVal is a function here because
- // it has to be a function to pass previous merges.
- return function mergedDataFn () {
- return mergeData(
- typeof childVal === 'function' ? childVal.call(this, this) : childVal,
- typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
- )
- }
- } else {
- return function mergedInstanceDataFn () {
- // instance merge
- var instanceData = typeof childVal === 'function'
- ? childVal.call(vm, vm)
- : childVal;
- var defaultData = typeof parentVal === 'function'
- ? parentVal.call(vm, vm)
- : parentVal;
- if (instanceData) {
- return mergeData(instanceData, defaultData)
- } else {
- return defaultData
- }
- }
- }
- }
- strats.data = function (
- parentVal,
- childVal,
- vm
- ) {
- if (!vm) {
- if (childVal && typeof childVal !== 'function') {
- true && warn(
- 'The "data" option should be a function ' +
- 'that returns a per-instance value in component ' +
- 'definitions.',
- vm
- );
- return parentVal
- }
- return mergeDataOrFn(parentVal, childVal)
- }
- return mergeDataOrFn(parentVal, childVal, vm)
- };
- /**
- * Hooks and props are merged as arrays.
- */
- function mergeHook (
- parentVal,
- childVal
- ) {
- var res = childVal
- ? parentVal
- ? parentVal.concat(childVal)
- : Array.isArray(childVal)
- ? childVal
- : [childVal]
- : parentVal;
- return res
- ? dedupeHooks(res)
- : res
- }
- function dedupeHooks (hooks) {
- var res = [];
- for (var i = 0; i < hooks.length; i++) {
- if (res.indexOf(hooks[i]) === -1) {
- res.push(hooks[i]);
- }
- }
- return res
- }
- LIFECYCLE_HOOKS.forEach(function (hook) {
- strats[hook] = mergeHook;
- });
- /**
- * Assets
- *
- * When a vm is present (instance creation), we need to do
- * a three-way merge between constructor options, instance
- * options and parent options.
- */
- function mergeAssets (
- parentVal,
- childVal,
- vm,
- key
- ) {
- var res = Object.create(parentVal || null);
- if (childVal) {
- true && assertObjectType(key, childVal, vm);
- return extend(res, childVal)
- } else {
- return res
- }
- }
- ASSET_TYPES.forEach(function (type) {
- strats[type + 's'] = mergeAssets;
- });
- /**
- * Watchers.
- *
- * Watchers hashes should not overwrite one
- * another, so we merge them as arrays.
- */
- strats.watch = function (
- parentVal,
- childVal,
- vm,
- key
- ) {
- // work around Firefox's Object.prototype.watch...
- if (parentVal === nativeWatch) { parentVal = undefined; }
- if (childVal === nativeWatch) { childVal = undefined; }
- /* istanbul ignore if */
- if (!childVal) { return Object.create(parentVal || null) }
- if (true) {
- assertObjectType(key, childVal, vm);
- }
- if (!parentVal) { return childVal }
- var ret = {};
- extend(ret, parentVal);
- for (var key$1 in childVal) {
- var parent = ret[key$1];
- var child = childVal[key$1];
- if (parent && !Array.isArray(parent)) {
- parent = [parent];
- }
- ret[key$1] = parent
- ? parent.concat(child)
- : Array.isArray(child) ? child : [child];
- }
- return ret
- };
- /**
- * Other object hashes.
- */
- strats.props =
- strats.methods =
- strats.inject =
- strats.computed = function (
- parentVal,
- childVal,
- vm,
- key
- ) {
- if (childVal && "development" !== 'production') {
- assertObjectType(key, childVal, vm);
- }
- if (!parentVal) { return childVal }
- var ret = Object.create(null);
- extend(ret, parentVal);
- if (childVal) { extend(ret, childVal); }
- return ret
- };
- strats.provide = mergeDataOrFn;
- /**
- * Default strategy.
- */
- var defaultStrat = function (parentVal, childVal) {
- return childVal === undefined
- ? parentVal
- : childVal
- };
- /**
- * Validate component names
- */
- function checkComponents (options) {
- for (var key in options.components) {
- validateComponentName(key);
- }
- }
- function validateComponentName (name) {
- if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
- warn(
- 'Invalid component name: "' + name + '". Component names ' +
- 'should conform to valid custom element name in html5 specification.'
- );
- }
- if (isBuiltInTag(name) || config.isReservedTag(name)) {
- warn(
- 'Do not use built-in or reserved HTML elements as component ' +
- 'id: ' + name
- );
- }
- }
- /**
- * Ensure all props option syntax are normalized into the
- * Object-based format.
- */
- function normalizeProps (options, vm) {
- var props = options.props;
- if (!props) { return }
- var res = {};
- var i, val, name;
- if (Array.isArray(props)) {
- i = props.length;
- while (i--) {
- val = props[i];
- if (typeof val === 'string') {
- name = camelize(val);
- res[name] = { type: null };
- } else if (true) {
- warn('props must be strings when using array syntax.');
- }
- }
- } else if (isPlainObject(props)) {
- for (var key in props) {
- val = props[key];
- name = camelize(key);
- res[name] = isPlainObject(val)
- ? val
- : { type: val };
- }
- } else if (true) {
- warn(
- "Invalid value for option \"props\": expected an Array or an Object, " +
- "but got " + (toRawType(props)) + ".",
- vm
- );
- }
- options.props = res;
- }
- /**
- * Normalize all injections into Object-based format
- */
- function normalizeInject (options, vm) {
- var inject = options.inject;
- if (!inject) { return }
- var normalized = options.inject = {};
- if (Array.isArray(inject)) {
- for (var i = 0; i < inject.length; i++) {
- normalized[inject[i]] = { from: inject[i] };
- }
- } else if (isPlainObject(inject)) {
- for (var key in inject) {
- var val = inject[key];
- normalized[key] = isPlainObject(val)
- ? extend({ from: key }, val)
- : { from: val };
- }
- } else if (true) {
- warn(
- "Invalid value for option \"inject\": expected an Array or an Object, " +
- "but got " + (toRawType(inject)) + ".",
- vm
- );
- }
- }
- /**
- * Normalize raw function directives into object format.
- */
- function normalizeDirectives (options) {
- var dirs = options.directives;
- if (dirs) {
- for (var key in dirs) {
- var def$$1 = dirs[key];
- if (typeof def$$1 === 'function') {
- dirs[key] = { bind: def$$1, update: def$$1 };
- }
- }
- }
- }
- function assertObjectType (name, value, vm) {
- if (!isPlainObject(value)) {
- warn(
- "Invalid value for option \"" + name + "\": expected an Object, " +
- "but got " + (toRawType(value)) + ".",
- vm
- );
- }
- }
- /**
- * Merge two option objects into a new one.
- * Core utility used in both instantiation and inheritance.
- */
- function mergeOptions (
- parent,
- child,
- vm
- ) {
- if (true) {
- checkComponents(child);
- }
- if (typeof child === 'function') {
- child = child.options;
- }
- normalizeProps(child, vm);
- normalizeInject(child, vm);
- normalizeDirectives(child);
- // Apply extends and mixins on the child options,
- // but only if it is a raw options object that isn't
- // the result of another mergeOptions call.
- // Only merged options has the _base property.
- if (!child._base) {
- if (child.extends) {
- parent = mergeOptions(parent, child.extends, vm);
- }
- if (child.mixins) {
- for (var i = 0, l = child.mixins.length; i < l; i++) {
- parent = mergeOptions(parent, child.mixins[i], vm);
- }
- }
- }
- var options = {};
- var key;
- for (key in parent) {
- mergeField(key);
- }
- for (key in child) {
- if (!hasOwn(parent, key)) {
- mergeField(key);
- }
- }
- function mergeField (key) {
- var strat = strats[key] || defaultStrat;
- options[key] = strat(parent[key], child[key], vm, key);
- }
- return options
- }
- /**
- * Resolve an asset.
- * This function is used because child instances need access
- * to assets defined in its ancestor chain.
- */
- function resolveAsset (
- options,
- type,
- id,
- warnMissing
- ) {
- /* istanbul ignore if */
- if (typeof id !== 'string') {
- return
- }
- var assets = options[type];
- // check local registration variations first
- if (hasOwn(assets, id)) { return assets[id] }
- var camelizedId = camelize(id);
- if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
- var PascalCaseId = capitalize(camelizedId);
- if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
- // fallback to prototype chain
- var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
- if ( true && warnMissing && !res) {
- warn(
- 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
- options
- );
- }
- return res
- }
- /* */
- function validateProp (
- key,
- propOptions,
- propsData,
- vm
- ) {
- var prop = propOptions[key];
- var absent = !hasOwn(propsData, key);
- var value = propsData[key];
- // boolean casting
- var booleanIndex = getTypeIndex(Boolean, prop.type);
- if (booleanIndex > -1) {
- if (absent && !hasOwn(prop, 'default')) {
- value = false;
- } else if (value === '' || value === hyphenate(key)) {
- // only cast empty string / same name to boolean if
- // boolean has higher priority
- var stringIndex = getTypeIndex(String, prop.type);
- if (stringIndex < 0 || booleanIndex < stringIndex) {
- value = true;
- }
- }
- }
- // check default value
- if (value === undefined) {
- value = getPropDefaultValue(vm, prop, key);
- // since the default value is a fresh copy,
- // make sure to observe it.
- var prevShouldObserve = shouldObserve;
- toggleObserving(true);
- observe(value);
- toggleObserving(prevShouldObserve);
- }
- if (
- true
- ) {
- assertProp(prop, key, value, vm, absent);
- }
- return value
- }
- /**
- * Get the default value of a prop.
- */
- function getPropDefaultValue (vm, prop, key) {
- // no default, return undefined
- if (!hasOwn(prop, 'default')) {
- return undefined
- }
- var def = prop.default;
- // warn against non-factory defaults for Object & Array
- if ( true && isObject(def)) {
- warn(
- 'Invalid default value for prop "' + key + '": ' +
- 'Props with type Object/Array must use a factory function ' +
- 'to return the default value.',
- vm
- );
- }
- // the raw prop value was also undefined from previous render,
- // return previous default value to avoid unnecessary watcher trigger
- if (vm && vm.$options.propsData &&
- vm.$options.propsData[key] === undefined &&
- vm._props[key] !== undefined
- ) {
- return vm._props[key]
- }
- // call factory function for non-Function types
- // a value is Function if its prototype is function even across different execution context
- return typeof def === 'function' && getType(prop.type) !== 'Function'
- ? def.call(vm)
- : def
- }
- /**
- * Assert whether a prop is valid.
- */
- function assertProp (
- prop,
- name,
- value,
- vm,
- absent
- ) {
- if (prop.required && absent) {
- warn(
- 'Missing required prop: "' + name + '"',
- vm
- );
- return
- }
- if (value == null && !prop.required) {
- return
- }
- var type = prop.type;
- var valid = !type || type === true;
- var expectedTypes = [];
- if (type) {
- if (!Array.isArray(type)) {
- type = [type];
- }
- for (var i = 0; i < type.length && !valid; i++) {
- var assertedType = assertType(value, type[i]);
- expectedTypes.push(assertedType.expectedType || '');
- valid = assertedType.valid;
- }
- }
- if (!valid) {
- warn(
- getInvalidTypeMessage(name, value, expectedTypes),
- vm
- );
- return
- }
- var validator = prop.validator;
- if (validator) {
- if (!validator(value)) {
- warn(
- 'Invalid prop: custom validator check failed for prop "' + name + '".',
- vm
- );
- }
- }
- }
- var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
- function assertType (value, type) {
- var valid;
- var expectedType = getType(type);
- if (simpleCheckRE.test(expectedType)) {
- var t = typeof value;
- valid = t === expectedType.toLowerCase();
- // for primitive wrapper objects
- if (!valid && t === 'object') {
- valid = value instanceof type;
- }
- } else if (expectedType === 'Object') {
- valid = isPlainObject(value);
- } else if (expectedType === 'Array') {
- valid = Array.isArray(value);
- } else {
- valid = value instanceof type;
- }
- return {
- valid: valid,
- expectedType: expectedType
- }
- }
- /**
- * Use function string name to check built-in types,
- * because a simple equality check will fail when running
- * across different vms / iframes.
- */
- function getType (fn) {
- var match = fn && fn.toString().match(/^\s*function (\w+)/);
- return match ? match[1] : ''
- }
- function isSameType (a, b) {
- return getType(a) === getType(b)
- }
- function getTypeIndex (type, expectedTypes) {
- if (!Array.isArray(expectedTypes)) {
- return isSameType(expectedTypes, type) ? 0 : -1
- }
- for (var i = 0, len = expectedTypes.length; i < len; i++) {
- if (isSameType(expectedTypes[i], type)) {
- return i
- }
- }
- return -1
- }
- function getInvalidTypeMessage (name, value, expectedTypes) {
- var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
- " Expected " + (expectedTypes.map(capitalize).join(', '));
- var expectedType = expectedTypes[0];
- var receivedType = toRawType(value);
- var expectedValue = styleValue(value, expectedType);
- var receivedValue = styleValue(value, receivedType);
- // check if we need to specify expected value
- if (expectedTypes.length === 1 &&
- isExplicable(expectedType) &&
- !isBoolean(expectedType, receivedType)) {
- message += " with value " + expectedValue;
- }
- message += ", got " + receivedType + " ";
- // check if we need to specify received value
- if (isExplicable(receivedType)) {
- message += "with value " + receivedValue + ".";
- }
- return message
- }
- function styleValue (value, type) {
- if (type === 'String') {
- return ("\"" + value + "\"")
- } else if (type === 'Number') {
- return ("" + (Number(value)))
- } else {
- return ("" + value)
- }
- }
- function isExplicable (value) {
- var explicitTypes = ['string', 'number', 'boolean'];
- return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
- }
- function isBoolean () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
- }
- /* */
- function handleError (err, vm, info) {
- // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
- // See: https://github.com/vuejs/vuex/issues/1505
- pushTarget();
- try {
- if (vm) {
- var cur = vm;
- while ((cur = cur.$parent)) {
- var hooks = cur.$options.errorCaptured;
- if (hooks) {
- for (var i = 0; i < hooks.length; i++) {
- try {
- var capture = hooks[i].call(cur, err, vm, info) === false;
- if (capture) { return }
- } catch (e) {
- globalHandleError(e, cur, 'errorCaptured hook');
- }
- }
- }
- }
- }
- globalHandleError(err, vm, info);
- } finally {
- popTarget();
- }
- }
- function invokeWithErrorHandling (
- handler,
- context,
- args,
- vm,
- info
- ) {
- var res;
- try {
- res = args ? handler.apply(context, args) : handler.call(context);
- if (res && !res._isVue && isPromise(res) && !res._handled) {
- res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
- // issue #9511
- // avoid catch triggering multiple times when nested calls
- res._handled = true;
- }
- } catch (e) {
- handleError(e, vm, info);
- }
- return res
- }
- function globalHandleError (err, vm, info) {
- if (config.errorHandler) {
- try {
- return config.errorHandler.call(null, err, vm, info)
- } catch (e) {
- // if the user intentionally throws the original error in the handler,
- // do not log it twice
- if (e !== err) {
- logError(e, null, 'config.errorHandler');
- }
- }
- }
- logError(err, vm, info);
- }
- function logError (err, vm, info) {
- if (true) {
- warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
- }
- /* istanbul ignore else */
- if ((inBrowser || inWeex) && typeof console !== 'undefined') {
- console.error(err);
- } else {
- throw err
- }
- }
- /* */
- var callbacks = [];
- var pending = false;
- function flushCallbacks () {
- pending = false;
- var copies = callbacks.slice(0);
- callbacks.length = 0;
- for (var i = 0; i < copies.length; i++) {
- copies[i]();
- }
- }
- // Here we have async deferring wrappers using microtasks.
- // In 2.5 we used (macro) tasks (in combination with microtasks).
- // However, it has subtle problems when state is changed right before repaint
- // (e.g. #6813, out-in transitions).
- // Also, using (macro) tasks in event handler would cause some weird behaviors
- // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
- // So we now use microtasks everywhere, again.
- // A major drawback of this tradeoff is that there are some scenarios
- // where microtasks have too high a priority and fire in between supposedly
- // sequential events (e.g. #4521, #6690, which have workarounds)
- // or even between bubbling of the same event (#6566).
- var timerFunc;
- // The nextTick behavior leverages the microtask queue, which can be accessed
- // via either native Promise.then or MutationObserver.
- // MutationObserver has wider support, however it is seriously bugged in
- // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
- // completely stops working after triggering a few times... so, if native
- // Promise is available, we will use it:
- /* istanbul ignore next, $flow-disable-line */
- if (typeof Promise !== 'undefined' && isNative(Promise)) {
- var p = Promise.resolve();
- timerFunc = function () {
- p.then(flushCallbacks);
- // In problematic UIWebViews, Promise.then doesn't completely break, but
- // it can get stuck in a weird state where callbacks are pushed into the
- // microtask queue but the queue isn't being flushed, until the browser
- // needs to do some other work, e.g. handle a timer. Therefore we can
- // "force" the microtask queue to be flushed by adding an empty timer.
- if (isIOS) { setTimeout(noop); }
- };
- } else if (!isIE && typeof MutationObserver !== 'undefined' && (
- isNative(MutationObserver) ||
- // PhantomJS and iOS 7.x
- MutationObserver.toString() === '[object MutationObserverConstructor]'
- )) {
- // Use MutationObserver where native Promise is not available,
- // e.g. PhantomJS, iOS7, Android 4.4
- // (#6466 MutationObserver is unreliable in IE11)
- var counter = 1;
- var observer = new MutationObserver(flushCallbacks);
- var textNode = document.createTextNode(String(counter));
- observer.observe(textNode, {
- characterData: true
- });
- timerFunc = function () {
- counter = (counter + 1) % 2;
- textNode.data = String(counter);
- };
- } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
- // Fallback to setImmediate.
- // Technically it leverages the (macro) task queue,
- // but it is still a better choice than setTimeout.
- timerFunc = function () {
- setImmediate(flushCallbacks);
- };
- } else {
- // Fallback to setTimeout.
- timerFunc = function () {
- setTimeout(flushCallbacks, 0);
- };
- }
- function nextTick (cb, ctx) {
- var _resolve;
- callbacks.push(function () {
- if (cb) {
- try {
- cb.call(ctx);
- } catch (e) {
- handleError(e, ctx, 'nextTick');
- }
- } else if (_resolve) {
- _resolve(ctx);
- }
- });
- if (!pending) {
- pending = true;
- timerFunc();
- }
- // $flow-disable-line
- if (!cb && typeof Promise !== 'undefined') {
- return new Promise(function (resolve) {
- _resolve = resolve;
- })
- }
- }
- /* */
- /* not type checking this file because flow doesn't play well with Proxy */
- var initProxy;
- if (true) {
- var allowedGlobals = makeMap(
- 'Infinity,undefined,NaN,isFinite,isNaN,' +
- 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
- 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
- 'require' // for Webpack/Browserify
- );
- var warnNonPresent = function (target, key) {
- warn(
- "Property or method \"" + key + "\" is not defined on the instance but " +
- 'referenced during render. Make sure that this property is reactive, ' +
- 'either in the data option, or for class-based components, by ' +
- 'initializing the property. ' +
- 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
- target
- );
- };
- var warnReservedPrefix = function (target, key) {
- warn(
- "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
- 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
- 'prevent conflicts with Vue internals. ' +
- 'See: https://vuejs.org/v2/api/#data',
- target
- );
- };
- var hasProxy =
- typeof Proxy !== 'undefined' && isNative(Proxy);
- if (hasProxy) {
- var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
- config.keyCodes = new Proxy(config.keyCodes, {
- set: function set (target, key, value) {
- if (isBuiltInModifier(key)) {
- warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
- return false
- } else {
- target[key] = value;
- return true
- }
- }
- });
- }
- var hasHandler = {
- has: function has (target, key) {
- var has = key in target;
- var isAllowed = allowedGlobals(key) ||
- (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
- if (!has && !isAllowed) {
- if (key in target.$data) { warnReservedPrefix(target, key); }
- else { warnNonPresent(target, key); }
- }
- return has || !isAllowed
- }
- };
- var getHandler = {
- get: function get (target, key) {
- if (typeof key === 'string' && !(key in target)) {
- if (key in target.$data) { warnReservedPrefix(target, key); }
- else { warnNonPresent(target, key); }
- }
- return target[key]
- }
- };
- initProxy = function initProxy (vm) {
- if (hasProxy) {
- // determine which proxy handler to use
- var options = vm.$options;
- var handlers = options.render && options.render._withStripped
- ? getHandler
- : hasHandler;
- vm._renderProxy = new Proxy(vm, handlers);
- } else {
- vm._renderProxy = vm;
- }
- };
- }
- /* */
- var seenObjects = new _Set();
- /**
- * Recursively traverse an object to evoke all converted
- * getters, so that every nested property inside the object
- * is collected as a "deep" dependency.
- */
- function traverse (val) {
- _traverse(val, seenObjects);
- seenObjects.clear();
- }
- function _traverse (val, seen) {
- var i, keys;
- var isA = Array.isArray(val);
- if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
- return
- }
- if (val.__ob__) {
- var depId = val.__ob__.dep.id;
- if (seen.has(depId)) {
- return
- }
- seen.add(depId);
- }
- if (isA) {
- i = val.length;
- while (i--) { _traverse(val[i], seen); }
- } else {
- keys = Object.keys(val);
- i = keys.length;
- while (i--) { _traverse(val[keys[i]], seen); }
- }
- }
- var mark;
- var measure;
- if (true) {
- var perf = inBrowser && window.performance;
- /* istanbul ignore if */
- if (
- perf &&
- perf.mark &&
- perf.measure &&
- perf.clearMarks &&
- perf.clearMeasures
- ) {
- mark = function (tag) { return perf.mark(tag); };
- measure = function (name, startTag, endTag) {
- perf.measure(name, startTag, endTag);
- perf.clearMarks(startTag);
- perf.clearMarks(endTag);
- // perf.clearMeasures(name)
- };
- }
- }
- /* */
- var normalizeEvent = cached(function (name) {
- var passive = name.charAt(0) === '&';
- name = passive ? name.slice(1) : name;
- var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
- name = once$$1 ? name.slice(1) : name;
- var capture = name.charAt(0) === '!';
- name = capture ? name.slice(1) : name;
- return {
- name: name,
- once: once$$1,
- capture: capture,
- passive: passive
- }
- });
- function createFnInvoker (fns, vm) {
- function invoker () {
- var arguments$1 = arguments;
- var fns = invoker.fns;
- if (Array.isArray(fns)) {
- var cloned = fns.slice();
- for (var i = 0; i < cloned.length; i++) {
- invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
- }
- } else {
- // return handler return value for single handlers
- return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
- }
- }
- invoker.fns = fns;
- return invoker
- }
- function updateListeners (
- on,
- oldOn,
- add,
- remove$$1,
- createOnceHandler,
- vm
- ) {
- var name, def$$1, cur, old, event;
- for (name in on) {
- def$$1 = cur = on[name];
- old = oldOn[name];
- event = normalizeEvent(name);
- if (isUndef(cur)) {
- true && warn(
- "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
- vm
- );
- } else if (isUndef(old)) {
- if (isUndef(cur.fns)) {
- cur = on[name] = createFnInvoker(cur, vm);
- }
- if (isTrue(event.once)) {
- cur = on[name] = createOnceHandler(event.name, cur, event.capture);
- }
- add(event.name, cur, event.capture, event.passive, event.params);
- } else if (cur !== old) {
- old.fns = cur;
- on[name] = old;
- }
- }
- for (name in oldOn) {
- if (isUndef(on[name])) {
- event = normalizeEvent(name);
- remove$$1(event.name, oldOn[name], event.capture);
- }
- }
- }
- /* */
- /* */
- // fixed by xxxxxx (mp properties)
- function extractPropertiesFromVNodeData(data, Ctor, res, context) {
- var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
- if (isUndef(propOptions)) {
- return res
- }
- var externalClasses = Ctor.options.mpOptions.externalClasses || [];
- var attrs = data.attrs;
- var props = data.props;
- if (isDef(attrs) || isDef(props)) {
- for (var key in propOptions) {
- var altKey = hyphenate(key);
- var result = checkProp(res, props, key, altKey, true) ||
- checkProp(res, attrs, key, altKey, false);
- // externalClass
- if (
- result &&
- res[key] &&
- externalClasses.indexOf(altKey) !== -1 &&
- context[camelize(res[key])]
- ) {
- // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
- res[key] = context[camelize(res[key])];
- }
- }
- }
- return res
- }
- function extractPropsFromVNodeData (
- data,
- Ctor,
- tag,
- context// fixed by xxxxxx
- ) {
- // we are only extracting raw values here.
- // validation and default values are handled in the child
- // component itself.
- var propOptions = Ctor.options.props;
- if (isUndef(propOptions)) {
- // fixed by xxxxxx
- return extractPropertiesFromVNodeData(data, Ctor, {}, context)
- }
- var res = {};
- var attrs = data.attrs;
- var props = data.props;
- if (isDef(attrs) || isDef(props)) {
- for (var key in propOptions) {
- var altKey = hyphenate(key);
- if (true) {
- var keyInLowerCase = key.toLowerCase();
- if (
- key !== keyInLowerCase &&
- attrs && hasOwn(attrs, keyInLowerCase)
- ) {
- tip(
- "Prop \"" + keyInLowerCase + "\" is passed to component " +
- (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
- " \"" + key + "\". " +
- "Note that HTML attributes are case-insensitive and camelCased " +
- "props need to use their kebab-case equivalents when using in-DOM " +
- "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
- );
- }
- }
- checkProp(res, props, key, altKey, true) ||
- checkProp(res, attrs, key, altKey, false);
- }
- }
- // fixed by xxxxxx
- return extractPropertiesFromVNodeData(data, Ctor, res, context)
- }
- function checkProp (
- res,
- hash,
- key,
- altKey,
- preserve
- ) {
- if (isDef(hash)) {
- if (hasOwn(hash, key)) {
- res[key] = hash[key];
- if (!preserve) {
- delete hash[key];
- }
- return true
- } else if (hasOwn(hash, altKey)) {
- res[key] = hash[altKey];
- if (!preserve) {
- delete hash[altKey];
- }
- return true
- }
- }
- return false
- }
- /* */
- // The template compiler attempts to minimize the need for normalization by
- // statically analyzing the template at compile time.
- //
- // For plain HTML markup, normalization can be completely skipped because the
- // generated render function is guaranteed to return Array<VNode>. There are
- // two cases where extra normalization is needed:
- // 1. When the children contains components - because a functional component
- // may return an Array instead of a single root. In this case, just a simple
- // normalization is needed - if any child is an Array, we flatten the whole
- // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
- // because functional components already normalize their own children.
- function simpleNormalizeChildren (children) {
- for (var i = 0; i < children.length; i++) {
- if (Array.isArray(children[i])) {
- return Array.prototype.concat.apply([], children)
- }
- }
- return children
- }
- // 2. When the children contains constructs that always generated nested Arrays,
- // e.g. <template>, <slot>, v-for, or when the children is provided by user
- // with hand-written render functions / JSX. In such cases a full normalization
- // is needed to cater to all possible types of children values.
- function normalizeChildren (children) {
- return isPrimitive(children)
- ? [createTextVNode(children)]
- : Array.isArray(children)
- ? normalizeArrayChildren(children)
- : undefined
- }
- function isTextNode (node) {
- return isDef(node) && isDef(node.text) && isFalse(node.isComment)
- }
- function normalizeArrayChildren (children, nestedIndex) {
- var res = [];
- var i, c, lastIndex, last;
- for (i = 0; i < children.length; i++) {
- c = children[i];
- if (isUndef(c) || typeof c === 'boolean') { continue }
- lastIndex = res.length - 1;
- last = res[lastIndex];
- // nested
- if (Array.isArray(c)) {
- if (c.length > 0) {
- c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
- // merge adjacent text nodes
- if (isTextNode(c[0]) && isTextNode(last)) {
- res[lastIndex] = createTextVNode(last.text + (c[0]).text);
- c.shift();
- }
- res.push.apply(res, c);
- }
- } else if (isPrimitive(c)) {
- if (isTextNode(last)) {
- // merge adjacent text nodes
- // this is necessary for SSR hydration because text nodes are
- // essentially merged when rendered to HTML strings
- res[lastIndex] = createTextVNode(last.text + c);
- } else if (c !== '') {
- // convert primitive to vnode
- res.push(createTextVNode(c));
- }
- } else {
- if (isTextNode(c) && isTextNode(last)) {
- // merge adjacent text nodes
- res[lastIndex] = createTextVNode(last.text + c.text);
- } else {
- // default key for nested array children (likely generated by v-for)
- if (isTrue(children._isVList) &&
- isDef(c.tag) &&
- isUndef(c.key) &&
- isDef(nestedIndex)) {
- c.key = "__vlist" + nestedIndex + "_" + i + "__";
- }
- res.push(c);
- }
- }
- }
- return res
- }
- /* */
- function initProvide (vm) {
- var provide = vm.$options.provide;
- if (provide) {
- vm._provided = typeof provide === 'function'
- ? provide.call(vm)
- : provide;
- }
- }
- function initInjections (vm) {
- var result = resolveInject(vm.$options.inject, vm);
- if (result) {
- toggleObserving(false);
- Object.keys(result).forEach(function (key) {
- /* istanbul ignore else */
- if (true) {
- defineReactive$$1(vm, key, result[key], function () {
- warn(
- "Avoid mutating an injected value directly since the changes will be " +
- "overwritten whenever the provided component re-renders. " +
- "injection being mutated: \"" + key + "\"",
- vm
- );
- });
- } else {}
- });
- toggleObserving(true);
- }
- }
- function resolveInject (inject, vm) {
- if (inject) {
- // inject is :any because flow is not smart enough to figure out cached
- var result = Object.create(null);
- var keys = hasSymbol
- ? Reflect.ownKeys(inject)
- : Object.keys(inject);
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- // #6574 in case the inject object is observed...
- if (key === '__ob__') { continue }
- var provideKey = inject[key].from;
- var source = vm;
- while (source) {
- if (source._provided && hasOwn(source._provided, provideKey)) {
- result[key] = source._provided[provideKey];
- break
- }
- source = source.$parent;
- }
- if (!source) {
- if ('default' in inject[key]) {
- var provideDefault = inject[key].default;
- result[key] = typeof provideDefault === 'function'
- ? provideDefault.call(vm)
- : provideDefault;
- } else if (true) {
- warn(("Injection \"" + key + "\" not found"), vm);
- }
- }
- }
- return result
- }
- }
- /* */
- /**
- * Runtime helper for resolving raw children VNodes into a slot object.
- */
- function resolveSlots (
- children,
- context
- ) {
- if (!children || !children.length) {
- return {}
- }
- var slots = {};
- for (var i = 0, l = children.length; i < l; i++) {
- var child = children[i];
- var data = child.data;
- // remove slot attribute if the node is resolved as a Vue slot node
- if (data && data.attrs && data.attrs.slot) {
- delete data.attrs.slot;
- }
- // named slots should only be respected if the vnode was rendered in the
- // same context.
- if ((child.context === context || child.fnContext === context) &&
- data && data.slot != null
- ) {
- var name = data.slot;
- var slot = (slots[name] || (slots[name] = []));
- if (child.tag === 'template') {
- slot.push.apply(slot, child.children || []);
- } else {
- slot.push(child);
- }
- } else {
- // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
- if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
- (slots['page'] || (slots['page'] = [])).push(child);
- }else{
- (slots.default || (slots.default = [])).push(child);
- }
- }
- }
- // ignore slots that contains only whitespace
- for (var name$1 in slots) {
- if (slots[name$1].every(isWhitespace)) {
- delete slots[name$1];
- }
- }
- return slots
- }
- function isWhitespace (node) {
- return (node.isComment && !node.asyncFactory) || node.text === ' '
- }
- /* */
- function normalizeScopedSlots (
- slots,
- normalSlots,
- prevSlots
- ) {
- var res;
- var hasNormalSlots = Object.keys(normalSlots).length > 0;
- var isStable = slots ? !!slots.$stable : !hasNormalSlots;
- var key = slots && slots.$key;
- if (!slots) {
- res = {};
- } else if (slots._normalized) {
- // fast path 1: child component re-render only, parent did not change
- return slots._normalized
- } else if (
- isStable &&
- prevSlots &&
- prevSlots !== emptyObject &&
- key === prevSlots.$key &&
- !hasNormalSlots &&
- !prevSlots.$hasNormal
- ) {
- // fast path 2: stable scoped slots w/ no normal slots to proxy,
- // only need to normalize once
- return prevSlots
- } else {
- res = {};
- for (var key$1 in slots) {
- if (slots[key$1] && key$1[0] !== '$') {
- res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
- }
- }
- }
- // expose normal slots on scopedSlots
- for (var key$2 in normalSlots) {
- if (!(key$2 in res)) {
- res[key$2] = proxyNormalSlot(normalSlots, key$2);
- }
- }
- // avoriaz seems to mock a non-extensible $scopedSlots object
- // and when that is passed down this would cause an error
- if (slots && Object.isExtensible(slots)) {
- (slots)._normalized = res;
- }
- def(res, '$stable', isStable);
- def(res, '$key', key);
- def(res, '$hasNormal', hasNormalSlots);
- return res
- }
- function normalizeScopedSlot(normalSlots, key, fn) {
- var normalized = function () {
- var res = arguments.length ? fn.apply(null, arguments) : fn({});
- res = res && typeof res === 'object' && !Array.isArray(res)
- ? [res] // single vnode
- : normalizeChildren(res);
- return res && (
- res.length === 0 ||
- (res.length === 1 && res[0].isComment) // #9658
- ) ? undefined
- : res
- };
- // this is a slot using the new v-slot syntax without scope. although it is
- // compiled as a scoped slot, render fn users would expect it to be present
- // on this.$slots because the usage is semantically a normal slot.
- if (fn.proxy) {
- Object.defineProperty(normalSlots, key, {
- get: normalized,
- enumerable: true,
- configurable: true
- });
- }
- return normalized
- }
- function proxyNormalSlot(slots, key) {
- return function () { return slots[key]; }
- }
- /* */
- /**
- * Runtime helper for rendering v-for lists.
- */
- function renderList (
- val,
- render
- ) {
- var ret, i, l, keys, key;
- if (Array.isArray(val) || typeof val === 'string') {
- ret = new Array(val.length);
- for (i = 0, l = val.length; i < l; i++) {
- ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
- }
- } else if (typeof val === 'number') {
- ret = new Array(val);
- for (i = 0; i < val; i++) {
- ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
- }
- } else if (isObject(val)) {
- if (hasSymbol && val[Symbol.iterator]) {
- ret = [];
- var iterator = val[Symbol.iterator]();
- var result = iterator.next();
- while (!result.done) {
- ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
- result = iterator.next();
- }
- } else {
- keys = Object.keys(val);
- ret = new Array(keys.length);
- for (i = 0, l = keys.length; i < l; i++) {
- key = keys[i];
- ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
- }
- }
- }
- if (!isDef(ret)) {
- ret = [];
- }
- (ret)._isVList = true;
- return ret
- }
- /* */
- /**
- * Runtime helper for rendering <slot>
- */
- function renderSlot (
- name,
- fallback,
- props,
- bindObject
- ) {
- var scopedSlotFn = this.$scopedSlots[name];
- var nodes;
- if (scopedSlotFn) { // scoped slot
- props = props || {};
- if (bindObject) {
- if ( true && !isObject(bindObject)) {
- warn(
- 'slot v-bind without argument expects an Object',
- this
- );
- }
- props = extend(extend({}, bindObject), props);
- }
- // fixed by xxxxxx app-plus scopedSlot
- nodes = scopedSlotFn(props, this, props._i) || fallback;
- } else {
- nodes = this.$slots[name] || fallback;
- }
- var target = props && props.slot;
- if (target) {
- return this.$createElement('template', { slot: target }, nodes)
- } else {
- return nodes
- }
- }
- /* */
- /**
- * Runtime helper for resolving filters
- */
- function resolveFilter (id) {
- return resolveAsset(this.$options, 'filters', id, true) || identity
- }
- /* */
- function isKeyNotMatch (expect, actual) {
- if (Array.isArray(expect)) {
- return expect.indexOf(actual) === -1
- } else {
- return expect !== actual
- }
- }
- /**
- * Runtime helper for checking keyCodes from config.
- * exposed as Vue.prototype._k
- * passing in eventKeyName as last argument separately for backwards compat
- */
- function checkKeyCodes (
- eventKeyCode,
- key,
- builtInKeyCode,
- eventKeyName,
- builtInKeyName
- ) {
- var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
- if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
- return isKeyNotMatch(builtInKeyName, eventKeyName)
- } else if (mappedKeyCode) {
- return isKeyNotMatch(mappedKeyCode, eventKeyCode)
- } else if (eventKeyName) {
- return hyphenate(eventKeyName) !== key
- }
- }
- /* */
- /**
- * Runtime helper for merging v-bind="object" into a VNode's data.
- */
- function bindObjectProps (
- data,
- tag,
- value,
- asProp,
- isSync
- ) {
- if (value) {
- if (!isObject(value)) {
- true && warn(
- 'v-bind without argument expects an Object or Array value',
- this
- );
- } else {
- if (Array.isArray(value)) {
- value = toObject(value);
- }
- var hash;
- var loop = function ( key ) {
- if (
- key === 'class' ||
- key === 'style' ||
- isReservedAttribute(key)
- ) {
- hash = data;
- } else {
- var type = data.attrs && data.attrs.type;
- hash = asProp || config.mustUseProp(tag, type, key)
- ? data.domProps || (data.domProps = {})
- : data.attrs || (data.attrs = {});
- }
- var camelizedKey = camelize(key);
- var hyphenatedKey = hyphenate(key);
- if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
- hash[key] = value[key];
- if (isSync) {
- var on = data.on || (data.on = {});
- on[("update:" + key)] = function ($event) {
- value[key] = $event;
- };
- }
- }
- };
- for (var key in value) loop( key );
- }
- }
- return data
- }
- /* */
- /**
- * Runtime helper for rendering static trees.
- */
- function renderStatic (
- index,
- isInFor
- ) {
- var cached = this._staticTrees || (this._staticTrees = []);
- var tree = cached[index];
- // if has already-rendered static tree and not inside v-for,
- // we can reuse the same tree.
- if (tree && !isInFor) {
- return tree
- }
- // otherwise, render a fresh tree.
- tree = cached[index] = this.$options.staticRenderFns[index].call(
- this._renderProxy,
- null,
- this // for render fns generated for functional component templates
- );
- markStatic(tree, ("__static__" + index), false);
- return tree
- }
- /**
- * Runtime helper for v-once.
- * Effectively it means marking the node as static with a unique key.
- */
- function markOnce (
- tree,
- index,
- key
- ) {
- markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
- return tree
- }
- function markStatic (
- tree,
- key,
- isOnce
- ) {
- if (Array.isArray(tree)) {
- for (var i = 0; i < tree.length; i++) {
- if (tree[i] && typeof tree[i] !== 'string') {
- markStaticNode(tree[i], (key + "_" + i), isOnce);
- }
- }
- } else {
- markStaticNode(tree, key, isOnce);
- }
- }
- function markStaticNode (node, key, isOnce) {
- node.isStatic = true;
- node.key = key;
- node.isOnce = isOnce;
- }
- /* */
- function bindObjectListeners (data, value) {
- if (value) {
- if (!isPlainObject(value)) {
- true && warn(
- 'v-on without argument expects an Object value',
- this
- );
- } else {
- var on = data.on = data.on ? extend({}, data.on) : {};
- for (var key in value) {
- var existing = on[key];
- var ours = value[key];
- on[key] = existing ? [].concat(existing, ours) : ours;
- }
- }
- }
- return data
- }
- /* */
- function resolveScopedSlots (
- fns, // see flow/vnode
- res,
- // the following are added in 2.6
- hasDynamicKeys,
- contentHashKey
- ) {
- res = res || { $stable: !hasDynamicKeys };
- for (var i = 0; i < fns.length; i++) {
- var slot = fns[i];
- if (Array.isArray(slot)) {
- resolveScopedSlots(slot, res, hasDynamicKeys);
- } else if (slot) {
- // marker for reverse proxying v-slot without scope on this.$slots
- if (slot.proxy) {
- slot.fn.proxy = true;
- }
- res[slot.key] = slot.fn;
- }
- }
- if (contentHashKey) {
- (res).$key = contentHashKey;
- }
- return res
- }
- /* */
- function bindDynamicKeys (baseObj, values) {
- for (var i = 0; i < values.length; i += 2) {
- var key = values[i];
- if (typeof key === 'string' && key) {
- baseObj[values[i]] = values[i + 1];
- } else if ( true && key !== '' && key !== null) {
- // null is a special value for explicitly removing a binding
- warn(
- ("Invalid value for dynamic directive argument (expected string or null): " + key),
- this
- );
- }
- }
- return baseObj
- }
- // helper to dynamically append modifier runtime markers to event names.
- // ensure only append when value is already string, otherwise it will be cast
- // to string and cause the type check to miss.
- function prependModifier (value, symbol) {
- return typeof value === 'string' ? symbol + value : value
- }
- /* */
- function installRenderHelpers (target) {
- target._o = markOnce;
- target._n = toNumber;
- target._s = toString;
- target._l = renderList;
- target._t = renderSlot;
- target._q = looseEqual;
- target._i = looseIndexOf;
- target._m = renderStatic;
- target._f = resolveFilter;
- target._k = checkKeyCodes;
- target._b = bindObjectProps;
- target._v = createTextVNode;
- target._e = createEmptyVNode;
- target._u = resolveScopedSlots;
- target._g = bindObjectListeners;
- target._d = bindDynamicKeys;
- target._p = prependModifier;
- }
- /* */
- function FunctionalRenderContext (
- data,
- props,
- children,
- parent,
- Ctor
- ) {
- var this$1 = this;
- var options = Ctor.options;
- // ensure the createElement function in functional components
- // gets a unique context - this is necessary for correct named slot check
- var contextVm;
- if (hasOwn(parent, '_uid')) {
- contextVm = Object.create(parent);
- // $flow-disable-line
- contextVm._original = parent;
- } else {
- // the context vm passed in is a functional context as well.
- // in this case we want to make sure we are able to get a hold to the
- // real context instance.
- contextVm = parent;
- // $flow-disable-line
- parent = parent._original;
- }
- var isCompiled = isTrue(options._compiled);
- var needNormalization = !isCompiled;
- this.data = data;
- this.props = props;
- this.children = children;
- this.parent = parent;
- this.listeners = data.on || emptyObject;
- this.injections = resolveInject(options.inject, parent);
- this.slots = function () {
- if (!this$1.$slots) {
- normalizeScopedSlots(
- data.scopedSlots,
- this$1.$slots = resolveSlots(children, parent)
- );
- }
- return this$1.$slots
- };
- Object.defineProperty(this, 'scopedSlots', ({
- enumerable: true,
- get: function get () {
- return normalizeScopedSlots(data.scopedSlots, this.slots())
- }
- }));
- // support for compiled functional template
- if (isCompiled) {
- // exposing $options for renderStatic()
- this.$options = options;
- // pre-resolve slots for renderSlot()
- this.$slots = this.slots();
- this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
- }
- if (options._scopeId) {
- this._c = function (a, b, c, d) {
- var vnode = createElement(contextVm, a, b, c, d, needNormalization);
- if (vnode && !Array.isArray(vnode)) {
- vnode.fnScopeId = options._scopeId;
- vnode.fnContext = parent;
- }
- return vnode
- };
- } else {
- this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
- }
- }
- installRenderHelpers(FunctionalRenderContext.prototype);
- function createFunctionalComponent (
- Ctor,
- propsData,
- data,
- contextVm,
- children
- ) {
- var options = Ctor.options;
- var props = {};
- var propOptions = options.props;
- if (isDef(propOptions)) {
- for (var key in propOptions) {
- props[key] = validateProp(key, propOptions, propsData || emptyObject);
- }
- } else {
- if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
- if (isDef(data.props)) { mergeProps(props, data.props); }
- }
- var renderContext = new FunctionalRenderContext(
- data,
- props,
- children,
- contextVm,
- Ctor
- );
- var vnode = options.render.call(null, renderContext._c, renderContext);
- if (vnode instanceof VNode) {
- return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
- } else if (Array.isArray(vnode)) {
- var vnodes = normalizeChildren(vnode) || [];
- var res = new Array(vnodes.length);
- for (var i = 0; i < vnodes.length; i++) {
- res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
- }
- return res
- }
- }
- function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
- // #7817 clone node before setting fnContext, otherwise if the node is reused
- // (e.g. it was from a cached normal slot) the fnContext causes named slots
- // that should not be matched to match.
- var clone = cloneVNode(vnode);
- clone.fnContext = contextVm;
- clone.fnOptions = options;
- if (true) {
- (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
- }
- if (data.slot) {
- (clone.data || (clone.data = {})).slot = data.slot;
- }
- return clone
- }
- function mergeProps (to, from) {
- for (var key in from) {
- to[camelize(key)] = from[key];
- }
- }
- /* */
- /* */
- /* */
- /* */
- // inline hooks to be invoked on component VNodes during patch
- var componentVNodeHooks = {
- init: function init (vnode, hydrating) {
- if (
- vnode.componentInstance &&
- !vnode.componentInstance._isDestroyed &&
- vnode.data.keepAlive
- ) {
- // kept-alive components, treat as a patch
- var mountedNode = vnode; // work around flow
- componentVNodeHooks.prepatch(mountedNode, mountedNode);
- } else {
- var child = vnode.componentInstance = createComponentInstanceForVnode(
- vnode,
- activeInstance
- );
- child.$mount(hydrating ? vnode.elm : undefined, hydrating);
- }
- },
- prepatch: function prepatch (oldVnode, vnode) {
- var options = vnode.componentOptions;
- var child = vnode.componentInstance = oldVnode.componentInstance;
- updateChildComponent(
- child,
- options.propsData, // updated props
- options.listeners, // updated listeners
- vnode, // new parent vnode
- options.children // new children
- );
- },
- insert: function insert (vnode) {
- var context = vnode.context;
- var componentInstance = vnode.componentInstance;
- if (!componentInstance._isMounted) {
- callHook(componentInstance, 'onServiceCreated');
- callHook(componentInstance, 'onServiceAttached');
- componentInstance._isMounted = true;
- callHook(componentInstance, 'mounted');
- }
- if (vnode.data.keepAlive) {
- if (context._isMounted) {
- // vue-router#1212
- // During updates, a kept-alive component's child components may
- // change, so directly walking the tree here may call activated hooks
- // on incorrect children. Instead we push them into a queue which will
- // be processed after the whole patch process ended.
- queueActivatedComponent(componentInstance);
- } else {
- activateChildComponent(componentInstance, true /* direct */);
- }
- }
- },
- destroy: function destroy (vnode) {
- var componentInstance = vnode.componentInstance;
- if (!componentInstance._isDestroyed) {
- if (!vnode.data.keepAlive) {
- componentInstance.$destroy();
- } else {
- deactivateChildComponent(componentInstance, true /* direct */);
- }
- }
- }
- };
- var hooksToMerge = Object.keys(componentVNodeHooks);
- function createComponent (
- Ctor,
- data,
- context,
- children,
- tag
- ) {
- if (isUndef(Ctor)) {
- return
- }
- var baseCtor = context.$options._base;
- // plain options object: turn it into a constructor
- if (isObject(Ctor)) {
- Ctor = baseCtor.extend(Ctor);
- }
- // if at this stage it's not a constructor or an async component factory,
- // reject.
- if (typeof Ctor !== 'function') {
- if (true) {
- warn(("Invalid Component definition: " + (String(Ctor))), context);
- }
- return
- }
- // async component
- var asyncFactory;
- if (isUndef(Ctor.cid)) {
- asyncFactory = Ctor;
- Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
- if (Ctor === undefined) {
- // return a placeholder node for async component, which is rendered
- // as a comment node but preserves all the raw information for the node.
- // the information will be used for async server-rendering and hydration.
- return createAsyncPlaceholder(
- asyncFactory,
- data,
- context,
- children,
- tag
- )
- }
- }
- data = data || {};
- // resolve constructor options in case global mixins are applied after
- // component constructor creation
- resolveConstructorOptions(Ctor);
- // transform component v-model data into props & events
- if (isDef(data.model)) {
- transformModel(Ctor.options, data);
- }
- // extract props
- var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
- // functional component
- if (isTrue(Ctor.options.functional)) {
- return createFunctionalComponent(Ctor, propsData, data, context, children)
- }
- // extract listeners, since these needs to be treated as
- // child component listeners instead of DOM listeners
- var listeners = data.on;
- // replace with listeners with .native modifier
- // so it gets processed during parent component patch.
- data.on = data.nativeOn;
- if (isTrue(Ctor.options.abstract)) {
- // abstract components do not keep anything
- // other than props & listeners & slot
- // work around flow
- var slot = data.slot;
- data = {};
- if (slot) {
- data.slot = slot;
- }
- }
- // install component management hooks onto the placeholder node
- installComponentHooks(data);
- // return a placeholder vnode
- var name = Ctor.options.name || tag;
- var vnode = new VNode(
- ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
- data, undefined, undefined, undefined, context,
- { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
- asyncFactory
- );
- return vnode
- }
- function createComponentInstanceForVnode (
- vnode, // we know it's MountedComponentVNode but flow doesn't
- parent // activeInstance in lifecycle state
- ) {
- var options = {
- _isComponent: true,
- _parentVnode: vnode,
- parent: parent
- };
- // check inline-template render functions
- var inlineTemplate = vnode.data.inlineTemplate;
- if (isDef(inlineTemplate)) {
- options.render = inlineTemplate.render;
- options.staticRenderFns = inlineTemplate.staticRenderFns;
- }
- return new vnode.componentOptions.Ctor(options)
- }
- function installComponentHooks (data) {
- var hooks = data.hook || (data.hook = {});
- for (var i = 0; i < hooksToMerge.length; i++) {
- var key = hooksToMerge[i];
- var existing = hooks[key];
- var toMerge = componentVNodeHooks[key];
- if (existing !== toMerge && !(existing && existing._merged)) {
- hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
- }
- }
- }
- function mergeHook$1 (f1, f2) {
- var merged = function (a, b) {
- // flow complains about extra args which is why we use any
- f1(a, b);
- f2(a, b);
- };
- merged._merged = true;
- return merged
- }
- // transform component v-model info (value and callback) into
- // prop and event handler respectively.
- function transformModel (options, data) {
- var prop = (options.model && options.model.prop) || 'value';
- var event = (options.model && options.model.event) || 'input'
- ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
- var on = data.on || (data.on = {});
- var existing = on[event];
- var callback = data.model.callback;
- if (isDef(existing)) {
- if (
- Array.isArray(existing)
- ? existing.indexOf(callback) === -1
- : existing !== callback
- ) {
- on[event] = [callback].concat(existing);
- }
- } else {
- on[event] = callback;
- }
- }
- /* */
- var SIMPLE_NORMALIZE = 1;
- var ALWAYS_NORMALIZE = 2;
- // wrapper function for providing a more flexible interface
- // without getting yelled at by flow
- function createElement (
- context,
- tag,
- data,
- children,
- normalizationType,
- alwaysNormalize
- ) {
- if (Array.isArray(data) || isPrimitive(data)) {
- normalizationType = children;
- children = data;
- data = undefined;
- }
- if (isTrue(alwaysNormalize)) {
- normalizationType = ALWAYS_NORMALIZE;
- }
- return _createElement(context, tag, data, children, normalizationType)
- }
- function _createElement (
- context,
- tag,
- data,
- children,
- normalizationType
- ) {
- if (isDef(data) && isDef((data).__ob__)) {
- true && warn(
- "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
- 'Always create fresh vnode data objects in each render!',
- context
- );
- return createEmptyVNode()
- }
- // object syntax in v-bind
- if (isDef(data) && isDef(data.is)) {
- tag = data.is;
- }
- if (!tag) {
- // in case of component :is set to falsy value
- return createEmptyVNode()
- }
- // warn against non-primitive key
- if ( true &&
- isDef(data) && isDef(data.key) && !isPrimitive(data.key)
- ) {
- {
- warn(
- 'Avoid using non-primitive value as key, ' +
- 'use string/number value instead.',
- context
- );
- }
- }
- // support single function children as default scoped slot
- if (Array.isArray(children) &&
- typeof children[0] === 'function'
- ) {
- data = data || {};
- data.scopedSlots = { default: children[0] };
- children.length = 0;
- }
- if (normalizationType === ALWAYS_NORMALIZE) {
- children = normalizeChildren(children);
- } else if (normalizationType === SIMPLE_NORMALIZE) {
- children = simpleNormalizeChildren(children);
- }
- var vnode, ns;
- if (typeof tag === 'string') {
- var Ctor;
- ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
- if (config.isReservedTag(tag)) {
- // platform built-in elements
- if ( true && isDef(data) && isDef(data.nativeOn)) {
- warn(
- ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
- context
- );
- }
- vnode = new VNode(
- config.parsePlatformTagName(tag), data, children,
- undefined, undefined, context
- );
- } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
- // component
- vnode = createComponent(Ctor, data, context, children, tag);
- } else {
- // unknown or unlisted namespaced elements
- // check at runtime because it may get assigned a namespace when its
- // parent normalizes children
- vnode = new VNode(
- tag, data, children,
- undefined, undefined, context
- );
- }
- } else {
- // direct component options / constructor
- vnode = createComponent(tag, data, context, children);
- }
- if (Array.isArray(vnode)) {
- return vnode
- } else if (isDef(vnode)) {
- if (isDef(ns)) { applyNS(vnode, ns); }
- if (isDef(data)) { registerDeepBindings(data); }
- return vnode
- } else {
- return createEmptyVNode()
- }
- }
- function applyNS (vnode, ns, force) {
- vnode.ns = ns;
- if (vnode.tag === 'foreignObject') {
- // use default namespace inside foreignObject
- ns = undefined;
- force = true;
- }
- if (isDef(vnode.children)) {
- for (var i = 0, l = vnode.children.length; i < l; i++) {
- var child = vnode.children[i];
- if (isDef(child.tag) && (
- isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
- applyNS(child, ns, force);
- }
- }
- }
- }
- // ref #5318
- // necessary to ensure parent re-render when deep bindings like :style and
- // :class are used on slot nodes
- function registerDeepBindings (data) {
- if (isObject(data.style)) {
- traverse(data.style);
- }
- if (isObject(data.class)) {
- traverse(data.class);
- }
- }
- /* */
- function initRender (vm) {
- vm._vnode = null; // the root of the child tree
- vm._staticTrees = null; // v-once cached trees
- var options = vm.$options;
- var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
- var renderContext = parentVnode && parentVnode.context;
- vm.$slots = resolveSlots(options._renderChildren, renderContext);
- vm.$scopedSlots = emptyObject;
- // bind the createElement fn to this instance
- // so that we get proper render context inside it.
- // args order: tag, data, children, normalizationType, alwaysNormalize
- // internal version is used by render functions compiled from templates
- vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
- // normalization is always applied for the public version, used in
- // user-written render functions.
- vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
- // $attrs & $listeners are exposed for easier HOC creation.
- // they need to be reactive so that HOCs using them are always updated
- var parentData = parentVnode && parentVnode.data;
- /* istanbul ignore else */
- if (true) {
- defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
- !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
- }, true);
- defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
- !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
- }, true);
- } else {}
- }
- var currentRenderingInstance = null;
- function renderMixin (Vue) {
- // install runtime convenience helpers
- installRenderHelpers(Vue.prototype);
- Vue.prototype.$nextTick = function (fn) {
- return nextTick(fn, this)
- };
- Vue.prototype._render = function () {
- var vm = this;
- var ref = vm.$options;
- var render = ref.render;
- var _parentVnode = ref._parentVnode;
- if (_parentVnode) {
- vm.$scopedSlots = normalizeScopedSlots(
- _parentVnode.data.scopedSlots,
- vm.$slots,
- vm.$scopedSlots
- );
- }
- // set parent vnode. this allows render functions to have access
- // to the data on the placeholder node.
- vm.$vnode = _parentVnode;
- // render self
- var vnode;
- try {
- // There's no need to maintain a stack because all render fns are called
- // separately from one another. Nested component's render fns are called
- // when parent component is patched.
- currentRenderingInstance = vm;
- vnode = render.call(vm._renderProxy, vm.$createElement);
- } catch (e) {
- handleError(e, vm, "render");
- // return error render result,
- // or previous vnode to prevent render error causing blank component
- /* istanbul ignore else */
- if ( true && vm.$options.renderError) {
- try {
- vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
- } catch (e) {
- handleError(e, vm, "renderError");
- vnode = vm._vnode;
- }
- } else {
- vnode = vm._vnode;
- }
- } finally {
- currentRenderingInstance = null;
- }
- // if the returned array contains only a single node, allow it
- if (Array.isArray(vnode) && vnode.length === 1) {
- vnode = vnode[0];
- }
- // return empty vnode in case the render function errored out
- if (!(vnode instanceof VNode)) {
- if ( true && Array.isArray(vnode)) {
- warn(
- 'Multiple root nodes returned from render function. Render function ' +
- 'should return a single root node.',
- vm
- );
- }
- vnode = createEmptyVNode();
- }
- // set parent
- vnode.parent = _parentVnode;
- return vnode
- };
- }
- /* */
- function ensureCtor (comp, base) {
- if (
- comp.__esModule ||
- (hasSymbol && comp[Symbol.toStringTag] === 'Module')
- ) {
- comp = comp.default;
- }
- return isObject(comp)
- ? base.extend(comp)
- : comp
- }
- function createAsyncPlaceholder (
- factory,
- data,
- context,
- children,
- tag
- ) {
- var node = createEmptyVNode();
- node.asyncFactory = factory;
- node.asyncMeta = { data: data, context: context, children: children, tag: tag };
- return node
- }
- function resolveAsyncComponent (
- factory,
- baseCtor
- ) {
- if (isTrue(factory.error) && isDef(factory.errorComp)) {
- return factory.errorComp
- }
- if (isDef(factory.resolved)) {
- return factory.resolved
- }
- var owner = currentRenderingInstance;
- if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
- // already pending
- factory.owners.push(owner);
- }
- if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
- return factory.loadingComp
- }
- if (owner && !isDef(factory.owners)) {
- var owners = factory.owners = [owner];
- var sync = true;
- var timerLoading = null;
- var timerTimeout = null
- ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
- var forceRender = function (renderCompleted) {
- for (var i = 0, l = owners.length; i < l; i++) {
- (owners[i]).$forceUpdate();
- }
- if (renderCompleted) {
- owners.length = 0;
- if (timerLoading !== null) {
- clearTimeout(timerLoading);
- timerLoading = null;
- }
- if (timerTimeout !== null) {
- clearTimeout(timerTimeout);
- timerTimeout = null;
- }
- }
- };
- var resolve = once(function (res) {
- // cache resolved
- factory.resolved = ensureCtor(res, baseCtor);
- // invoke callbacks only if this is not a synchronous resolve
- // (async resolves are shimmed as synchronous during SSR)
- if (!sync) {
- forceRender(true);
- } else {
- owners.length = 0;
- }
- });
- var reject = once(function (reason) {
- true && warn(
- "Failed to resolve async component: " + (String(factory)) +
- (reason ? ("\nReason: " + reason) : '')
- );
- if (isDef(factory.errorComp)) {
- factory.error = true;
- forceRender(true);
- }
- });
- var res = factory(resolve, reject);
- if (isObject(res)) {
- if (isPromise(res)) {
- // () => Promise
- if (isUndef(factory.resolved)) {
- res.then(resolve, reject);
- }
- } else if (isPromise(res.component)) {
- res.component.then(resolve, reject);
- if (isDef(res.error)) {
- factory.errorComp = ensureCtor(res.error, baseCtor);
- }
- if (isDef(res.loading)) {
- factory.loadingComp = ensureCtor(res.loading, baseCtor);
- if (res.delay === 0) {
- factory.loading = true;
- } else {
- timerLoading = setTimeout(function () {
- timerLoading = null;
- if (isUndef(factory.resolved) && isUndef(factory.error)) {
- factory.loading = true;
- forceRender(false);
- }
- }, res.delay || 200);
- }
- }
- if (isDef(res.timeout)) {
- timerTimeout = setTimeout(function () {
- timerTimeout = null;
- if (isUndef(factory.resolved)) {
- reject(
- true
- ? ("timeout (" + (res.timeout) + "ms)")
- : undefined
- );
- }
- }, res.timeout);
- }
- }
- }
- sync = false;
- // return in case resolved synchronously
- return factory.loading
- ? factory.loadingComp
- : factory.resolved
- }
- }
- /* */
- function isAsyncPlaceholder (node) {
- return node.isComment && node.asyncFactory
- }
- /* */
- function getFirstComponentChild (children) {
- if (Array.isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- var c = children[i];
- if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
- return c
- }
- }
- }
- }
- /* */
- /* */
- function initEvents (vm) {
- vm._events = Object.create(null);
- vm._hasHookEvent = false;
- // init parent attached events
- var listeners = vm.$options._parentListeners;
- if (listeners) {
- updateComponentListeners(vm, listeners);
- }
- }
- var target;
- function add (event, fn) {
- target.$on(event, fn);
- }
- function remove$1 (event, fn) {
- target.$off(event, fn);
- }
- function createOnceHandler (event, fn) {
- var _target = target;
- return function onceHandler () {
- var res = fn.apply(null, arguments);
- if (res !== null) {
- _target.$off(event, onceHandler);
- }
- }
- }
- function updateComponentListeners (
- vm,
- listeners,
- oldListeners
- ) {
- target = vm;
- updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
- target = undefined;
- }
- function eventsMixin (Vue) {
- var hookRE = /^hook:/;
- Vue.prototype.$on = function (event, fn) {
- var vm = this;
- if (Array.isArray(event)) {
- for (var i = 0, l = event.length; i < l; i++) {
- vm.$on(event[i], fn);
- }
- } else {
- (vm._events[event] || (vm._events[event] = [])).push(fn);
- // optimize hook:event cost by using a boolean flag marked at registration
- // instead of a hash lookup
- if (hookRE.test(event)) {
- vm._hasHookEvent = true;
- }
- }
- return vm
- };
- Vue.prototype.$once = function (event, fn) {
- var vm = this;
- function on () {
- vm.$off(event, on);
- fn.apply(vm, arguments);
- }
- on.fn = fn;
- vm.$on(event, on);
- return vm
- };
- Vue.prototype.$off = function (event, fn) {
- var vm = this;
- // all
- if (!arguments.length) {
- vm._events = Object.create(null);
- return vm
- }
- // array of events
- if (Array.isArray(event)) {
- for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
- vm.$off(event[i$1], fn);
- }
- return vm
- }
- // specific event
- var cbs = vm._events[event];
- if (!cbs) {
- return vm
- }
- if (!fn) {
- vm._events[event] = null;
- return vm
- }
- // specific handler
- var cb;
- var i = cbs.length;
- while (i--) {
- cb = cbs[i];
- if (cb === fn || cb.fn === fn) {
- cbs.splice(i, 1);
- break
- }
- }
- return vm
- };
- Vue.prototype.$emit = function (event) {
- var vm = this;
- if (true) {
- var lowerCaseEvent = event.toLowerCase();
- if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
- tip(
- "Event \"" + lowerCaseEvent + "\" is emitted in component " +
- (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
- "Note that HTML attributes are case-insensitive and you cannot use " +
- "v-on to listen to camelCase events when using in-DOM templates. " +
- "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
- );
- }
- }
- var cbs = vm._events[event];
- if (cbs) {
- cbs = cbs.length > 1 ? toArray(cbs) : cbs;
- var args = toArray(arguments, 1);
- var info = "event handler for \"" + event + "\"";
- for (var i = 0, l = cbs.length; i < l; i++) {
- invokeWithErrorHandling(cbs[i], vm, args, vm, info);
- }
- }
- return vm
- };
- }
- /* */
- var activeInstance = null;
- var isUpdatingChildComponent = false;
- function setActiveInstance(vm) {
- var prevActiveInstance = activeInstance;
- activeInstance = vm;
- return function () {
- activeInstance = prevActiveInstance;
- }
- }
- function initLifecycle (vm) {
- var options = vm.$options;
- // locate first non-abstract parent
- var parent = options.parent;
- if (parent && !options.abstract) {
- while (parent.$options.abstract && parent.$parent) {
- parent = parent.$parent;
- }
- parent.$children.push(vm);
- }
- vm.$parent = parent;
- vm.$root = parent ? parent.$root : vm;
- vm.$children = [];
- vm.$refs = {};
- vm._watcher = null;
- vm._inactive = null;
- vm._directInactive = false;
- vm._isMounted = false;
- vm._isDestroyed = false;
- vm._isBeingDestroyed = false;
- }
- function lifecycleMixin (Vue) {
- Vue.prototype._update = function (vnode, hydrating) {
- var vm = this;
- var prevEl = vm.$el;
- var prevVnode = vm._vnode;
- var restoreActiveInstance = setActiveInstance(vm);
- vm._vnode = vnode;
- // Vue.prototype.__patch__ is injected in entry points
- // based on the rendering backend used.
- if (!prevVnode) {
- // initial render
- vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
- } else {
- // updates
- vm.$el = vm.__patch__(prevVnode, vnode);
- }
- restoreActiveInstance();
- // update __vue__ reference
- if (prevEl) {
- prevEl.__vue__ = null;
- }
- if (vm.$el) {
- vm.$el.__vue__ = vm;
- }
- // if parent is an HOC, update its $el as well
- if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
- vm.$parent.$el = vm.$el;
- }
- // updated hook is called by the scheduler to ensure that children are
- // updated in a parent's updated hook.
- };
- Vue.prototype.$forceUpdate = function () {
- var vm = this;
- if (vm._watcher) {
- vm._watcher.update();
- }
- };
- Vue.prototype.$destroy = function () {
- var vm = this;
- if (vm._isBeingDestroyed) {
- return
- }
- callHook(vm, 'beforeDestroy');
- vm._isBeingDestroyed = true;
- // remove self from parent
- var parent = vm.$parent;
- if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
- remove(parent.$children, vm);
- }
- // teardown watchers
- if (vm._watcher) {
- vm._watcher.teardown();
- }
- var i = vm._watchers.length;
- while (i--) {
- vm._watchers[i].teardown();
- }
- // remove reference from data ob
- // frozen object may not have observer.
- if (vm._data.__ob__) {
- vm._data.__ob__.vmCount--;
- }
- // call the last hook...
- vm._isDestroyed = true;
- // invoke destroy hooks on current rendered tree
- vm.__patch__(vm._vnode, null);
- // fire destroyed hook
- callHook(vm, 'destroyed');
- // turn off all instance listeners.
- vm.$off();
- // remove __vue__ reference
- if (vm.$el) {
- vm.$el.__vue__ = null;
- }
- // release circular reference (#6759)
- if (vm.$vnode) {
- vm.$vnode.parent = null;
- }
- };
- }
- function updateChildComponent (
- vm,
- propsData,
- listeners,
- parentVnode,
- renderChildren
- ) {
- if (true) {
- isUpdatingChildComponent = true;
- }
- // determine whether component has slot children
- // we need to do this before overwriting $options._renderChildren.
- // check if there are dynamic scopedSlots (hand-written or compiled but with
- // dynamic slot names). Static scoped slots compiled from template has the
- // "$stable" marker.
- var newScopedSlots = parentVnode.data.scopedSlots;
- var oldScopedSlots = vm.$scopedSlots;
- var hasDynamicScopedSlot = !!(
- (newScopedSlots && !newScopedSlots.$stable) ||
- (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
- (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
- );
- // Any static slot children from the parent may have changed during parent's
- // update. Dynamic scoped slots may also have changed. In such cases, a forced
- // update is necessary to ensure correctness.
- var needsForceUpdate = !!(
- renderChildren || // has new static slots
- vm.$options._renderChildren || // has old static slots
- hasDynamicScopedSlot
- );
- vm.$options._parentVnode = parentVnode;
- vm.$vnode = parentVnode; // update vm's placeholder node without re-render
- if (vm._vnode) { // update child tree's parent
- vm._vnode.parent = parentVnode;
- }
- vm.$options._renderChildren = renderChildren;
- // update $attrs and $listeners hash
- // these are also reactive so they may trigger child update if the child
- // used them during render
- vm.$attrs = parentVnode.data.attrs || emptyObject;
- vm.$listeners = listeners || emptyObject;
- // update props
- if (propsData && vm.$options.props) {
- toggleObserving(false);
- var props = vm._props;
- var propKeys = vm.$options._propKeys || [];
- for (var i = 0; i < propKeys.length; i++) {
- var key = propKeys[i];
- var propOptions = vm.$options.props; // wtf flow?
- props[key] = validateProp(key, propOptions, propsData, vm);
- }
- toggleObserving(true);
- // keep a copy of raw propsData
- vm.$options.propsData = propsData;
- }
-
- // fixed by xxxxxx update properties(mp runtime)
- vm._$updateProperties && vm._$updateProperties(vm);
-
- // update listeners
- listeners = listeners || emptyObject;
- var oldListeners = vm.$options._parentListeners;
- vm.$options._parentListeners = listeners;
- updateComponentListeners(vm, listeners, oldListeners);
- // resolve slots + force update if has children
- if (needsForceUpdate) {
- vm.$slots = resolveSlots(renderChildren, parentVnode.context);
- vm.$forceUpdate();
- }
- if (true) {
- isUpdatingChildComponent = false;
- }
- }
- function isInInactiveTree (vm) {
- while (vm && (vm = vm.$parent)) {
- if (vm._inactive) { return true }
- }
- return false
- }
- function activateChildComponent (vm, direct) {
- if (direct) {
- vm._directInactive = false;
- if (isInInactiveTree(vm)) {
- return
- }
- } else if (vm._directInactive) {
- return
- }
- if (vm._inactive || vm._inactive === null) {
- vm._inactive = false;
- for (var i = 0; i < vm.$children.length; i++) {
- activateChildComponent(vm.$children[i]);
- }
- callHook(vm, 'activated');
- }
- }
- function deactivateChildComponent (vm, direct) {
- if (direct) {
- vm._directInactive = true;
- if (isInInactiveTree(vm)) {
- return
- }
- }
- if (!vm._inactive) {
- vm._inactive = true;
- for (var i = 0; i < vm.$children.length; i++) {
- deactivateChildComponent(vm.$children[i]);
- }
- callHook(vm, 'deactivated');
- }
- }
- function callHook (vm, hook) {
- // #7573 disable dep collection when invoking lifecycle hooks
- pushTarget();
- var handlers = vm.$options[hook];
- var info = hook + " hook";
- if (handlers) {
- for (var i = 0, j = handlers.length; i < j; i++) {
- invokeWithErrorHandling(handlers[i], vm, null, vm, info);
- }
- }
- if (vm._hasHookEvent) {
- vm.$emit('hook:' + hook);
- }
- popTarget();
- }
- /* */
- var MAX_UPDATE_COUNT = 100;
- var queue = [];
- var activatedChildren = [];
- var has = {};
- var circular = {};
- var waiting = false;
- var flushing = false;
- var index = 0;
- /**
- * Reset the scheduler's state.
- */
- function resetSchedulerState () {
- index = queue.length = activatedChildren.length = 0;
- has = {};
- if (true) {
- circular = {};
- }
- waiting = flushing = false;
- }
- // Async edge case #6566 requires saving the timestamp when event listeners are
- // attached. However, calling performance.now() has a perf overhead especially
- // if the page has thousands of event listeners. Instead, we take a timestamp
- // every time the scheduler flushes and use that for all event listeners
- // attached during that flush.
- var currentFlushTimestamp = 0;
- // Async edge case fix requires storing an event listener's attach timestamp.
- var getNow = Date.now;
- // Determine what event timestamp the browser is using. Annoyingly, the
- // timestamp can either be hi-res (relative to page load) or low-res
- // (relative to UNIX epoch), so in order to compare time we have to use the
- // same timestamp type when saving the flush timestamp.
- // All IE versions use low-res event timestamps, and have problematic clock
- // implementations (#9632)
- if (inBrowser && !isIE) {
- var performance = window.performance;
- if (
- performance &&
- typeof performance.now === 'function' &&
- getNow() > document.createEvent('Event').timeStamp
- ) {
- // if the event timestamp, although evaluated AFTER the Date.now(), is
- // smaller than it, it means the event is using a hi-res timestamp,
- // and we need to use the hi-res version for event listener timestamps as
- // well.
- getNow = function () { return performance.now(); };
- }
- }
- /**
- * Flush both queues and run the watchers.
- */
- function flushSchedulerQueue () {
- currentFlushTimestamp = getNow();
- flushing = true;
- var watcher, id;
- // Sort queue before flush.
- // This ensures that:
- // 1. Components are updated from parent to child. (because parent is always
- // created before the child)
- // 2. A component's user watchers are run before its render watcher (because
- // user watchers are created before the render watcher)
- // 3. If a component is destroyed during a parent component's watcher run,
- // its watchers can be skipped.
- queue.sort(function (a, b) { return a.id - b.id; });
- // do not cache length because more watchers might be pushed
- // as we run existing watchers
- for (index = 0; index < queue.length; index++) {
- watcher = queue[index];
- if (watcher.before) {
- watcher.before();
- }
- id = watcher.id;
- has[id] = null;
- watcher.run();
- // in dev build, check and stop circular updates.
- if ( true && has[id] != null) {
- circular[id] = (circular[id] || 0) + 1;
- if (circular[id] > MAX_UPDATE_COUNT) {
- warn(
- 'You may have an infinite update loop ' + (
- watcher.user
- ? ("in watcher with expression \"" + (watcher.expression) + "\"")
- : "in a component render function."
- ),
- watcher.vm
- );
- break
- }
- }
- }
- // keep copies of post queues before resetting state
- var activatedQueue = activatedChildren.slice();
- var updatedQueue = queue.slice();
- resetSchedulerState();
- // call component updated and activated hooks
- callActivatedHooks(activatedQueue);
- callUpdatedHooks(updatedQueue);
- // devtool hook
- /* istanbul ignore if */
- if (devtools && config.devtools) {
- devtools.emit('flush');
- }
- }
- function callUpdatedHooks (queue) {
- var i = queue.length;
- while (i--) {
- var watcher = queue[i];
- var vm = watcher.vm;
- if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
- callHook(vm, 'updated');
- }
- }
- }
- /**
- * Queue a kept-alive component that was activated during patch.
- * The queue will be processed after the entire tree has been patched.
- */
- function queueActivatedComponent (vm) {
- // setting _inactive to false here so that a render function can
- // rely on checking whether it's in an inactive tree (e.g. router-view)
- vm._inactive = false;
- activatedChildren.push(vm);
- }
- function callActivatedHooks (queue) {
- for (var i = 0; i < queue.length; i++) {
- queue[i]._inactive = true;
- activateChildComponent(queue[i], true /* true */);
- }
- }
- /**
- * Push a watcher into the watcher queue.
- * Jobs with duplicate IDs will be skipped unless it's
- * pushed when the queue is being flushed.
- */
- function queueWatcher (watcher) {
- var id = watcher.id;
- if (has[id] == null) {
- has[id] = true;
- if (!flushing) {
- queue.push(watcher);
- } else {
- // if already flushing, splice the watcher based on its id
- // if already past its id, it will be run next immediately.
- var i = queue.length - 1;
- while (i > index && queue[i].id > watcher.id) {
- i--;
- }
- queue.splice(i + 1, 0, watcher);
- }
- // queue the flush
- if (!waiting) {
- waiting = true;
- if ( true && !config.async) {
- flushSchedulerQueue();
- return
- }
- nextTick(flushSchedulerQueue);
- }
- }
- }
- /* */
- var uid$2 = 0;
- /**
- * A watcher parses an expression, collects dependencies,
- * and fires callback when the expression value changes.
- * This is used for both the $watch() api and directives.
- */
- var Watcher = function Watcher (
- vm,
- expOrFn,
- cb,
- options,
- isRenderWatcher
- ) {
- this.vm = vm;
- if (isRenderWatcher) {
- vm._watcher = this;
- }
- vm._watchers.push(this);
- // options
- if (options) {
- this.deep = !!options.deep;
- this.user = !!options.user;
- this.lazy = !!options.lazy;
- this.sync = !!options.sync;
- this.before = options.before;
- } else {
- this.deep = this.user = this.lazy = this.sync = false;
- }
- this.cb = cb;
- this.id = ++uid$2; // uid for batching
- this.active = true;
- this.dirty = this.lazy; // for lazy watchers
- this.deps = [];
- this.newDeps = [];
- this.depIds = new _Set();
- this.newDepIds = new _Set();
- this.expression = true
- ? expOrFn.toString()
- : undefined;
- // parse expression for getter
- if (typeof expOrFn === 'function') {
- this.getter = expOrFn;
- } else {
- this.getter = parsePath(expOrFn);
- if (!this.getter) {
- this.getter = noop;
- true && warn(
- "Failed watching path: \"" + expOrFn + "\" " +
- 'Watcher only accepts simple dot-delimited paths. ' +
- 'For full control, use a function instead.',
- vm
- );
- }
- }
- this.value = this.lazy
- ? undefined
- : this.get();
- };
- /**
- * Evaluate the getter, and re-collect dependencies.
- */
- Watcher.prototype.get = function get () {
- pushTarget(this);
- var value;
- var vm = this.vm;
- try {
- value = this.getter.call(vm, vm);
- } catch (e) {
- if (this.user) {
- handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
- } else {
- throw e
- }
- } finally {
- // "touch" every property so they are all tracked as
- // dependencies for deep watching
- if (this.deep) {
- traverse(value);
- }
- popTarget();
- this.cleanupDeps();
- }
- return value
- };
- /**
- * Add a dependency to this directive.
- */
- Watcher.prototype.addDep = function addDep (dep) {
- var id = dep.id;
- if (!this.newDepIds.has(id)) {
- this.newDepIds.add(id);
- this.newDeps.push(dep);
- if (!this.depIds.has(id)) {
- dep.addSub(this);
- }
- }
- };
- /**
- * Clean up for dependency collection.
- */
- Watcher.prototype.cleanupDeps = function cleanupDeps () {
- var i = this.deps.length;
- while (i--) {
- var dep = this.deps[i];
- if (!this.newDepIds.has(dep.id)) {
- dep.removeSub(this);
- }
- }
- var tmp = this.depIds;
- this.depIds = this.newDepIds;
- this.newDepIds = tmp;
- this.newDepIds.clear();
- tmp = this.deps;
- this.deps = this.newDeps;
- this.newDeps = tmp;
- this.newDeps.length = 0;
- };
- /**
- * Subscriber interface.
- * Will be called when a dependency changes.
- */
- Watcher.prototype.update = function update () {
- /* istanbul ignore else */
- if (this.lazy) {
- this.dirty = true;
- } else if (this.sync) {
- this.run();
- } else {
- queueWatcher(this);
- }
- };
- /**
- * Scheduler job interface.
- * Will be called by the scheduler.
- */
- Watcher.prototype.run = function run () {
- if (this.active) {
- var value = this.get();
- if (
- value !== this.value ||
- // Deep watchers and watchers on Object/Arrays should fire even
- // when the value is the same, because the value may
- // have mutated.
- isObject(value) ||
- this.deep
- ) {
- // set new value
- var oldValue = this.value;
- this.value = value;
- if (this.user) {
- try {
- this.cb.call(this.vm, value, oldValue);
- } catch (e) {
- handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
- }
- } else {
- this.cb.call(this.vm, value, oldValue);
- }
- }
- }
- };
- /**
- * Evaluate the value of the watcher.
- * This only gets called for lazy watchers.
- */
- Watcher.prototype.evaluate = function evaluate () {
- this.value = this.get();
- this.dirty = false;
- };
- /**
- * Depend on all deps collected by this watcher.
- */
- Watcher.prototype.depend = function depend () {
- var i = this.deps.length;
- while (i--) {
- this.deps[i].depend();
- }
- };
- /**
- * Remove self from all dependencies' subscriber list.
- */
- Watcher.prototype.teardown = function teardown () {
- if (this.active) {
- // remove self from vm's watcher list
- // this is a somewhat expensive operation so we skip it
- // if the vm is being destroyed.
- if (!this.vm._isBeingDestroyed) {
- remove(this.vm._watchers, this);
- }
- var i = this.deps.length;
- while (i--) {
- this.deps[i].removeSub(this);
- }
- this.active = false;
- }
- };
- /* */
- var sharedPropertyDefinition = {
- enumerable: true,
- configurable: true,
- get: noop,
- set: noop
- };
- function proxy (target, sourceKey, key) {
- sharedPropertyDefinition.get = function proxyGetter () {
- return this[sourceKey][key]
- };
- sharedPropertyDefinition.set = function proxySetter (val) {
- this[sourceKey][key] = val;
- };
- Object.defineProperty(target, key, sharedPropertyDefinition);
- }
- function initState (vm) {
- vm._watchers = [];
- var opts = vm.$options;
- if (opts.props) { initProps(vm, opts.props); }
- if (opts.methods) { initMethods(vm, opts.methods); }
- if (opts.data) {
- initData(vm);
- } else {
- observe(vm._data = {}, true /* asRootData */);
- }
- if (opts.computed) { initComputed(vm, opts.computed); }
- if (opts.watch && opts.watch !== nativeWatch) {
- initWatch(vm, opts.watch);
- }
- }
- function initProps (vm, propsOptions) {
- var propsData = vm.$options.propsData || {};
- var props = vm._props = {};
- // cache prop keys so that future props updates can iterate using Array
- // instead of dynamic object key enumeration.
- var keys = vm.$options._propKeys = [];
- var isRoot = !vm.$parent;
- // root instance props should be converted
- if (!isRoot) {
- toggleObserving(false);
- }
- var loop = function ( key ) {
- keys.push(key);
- var value = validateProp(key, propsOptions, propsData, vm);
- /* istanbul ignore else */
- if (true) {
- var hyphenatedKey = hyphenate(key);
- if (isReservedAttribute(hyphenatedKey) ||
- config.isReservedAttr(hyphenatedKey)) {
- warn(
- ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
- vm
- );
- }
- defineReactive$$1(props, key, value, function () {
- if (!isRoot && !isUpdatingChildComponent) {
- {
- if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
- return
- }
- //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
- if(
- key === 'value' &&
- Array.isArray(vm.$options.behaviors) &&
- vm.$options.behaviors.indexOf('uni://form-field') !== -1
- ){
- return
- }
- if(vm._getFormData){
- return
- }
- var $parent = vm.$parent;
- while($parent){
- if($parent.__next_tick_pending){
- return
- }
- $parent = $parent.$parent;
- }
- }
- warn(
- "Avoid mutating a prop directly since the value will be " +
- "overwritten whenever the parent component re-renders. " +
- "Instead, use a data or computed property based on the prop's " +
- "value. Prop being mutated: \"" + key + "\"",
- vm
- );
- }
- });
- } else {}
- // static props are already proxied on the component's prototype
- // during Vue.extend(). We only need to proxy props defined at
- // instantiation here.
- if (!(key in vm)) {
- proxy(vm, "_props", key);
- }
- };
- for (var key in propsOptions) loop( key );
- toggleObserving(true);
- }
- function initData (vm) {
- var data = vm.$options.data;
- data = vm._data = typeof data === 'function'
- ? getData(data, vm)
- : data || {};
- if (!isPlainObject(data)) {
- data = {};
- true && warn(
- 'data functions should return an object:\n' +
- 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
- vm
- );
- }
- // proxy data on instance
- var keys = Object.keys(data);
- var props = vm.$options.props;
- var methods = vm.$options.methods;
- var i = keys.length;
- while (i--) {
- var key = keys[i];
- if (true) {
- if (methods && hasOwn(methods, key)) {
- warn(
- ("Method \"" + key + "\" has already been defined as a data property."),
- vm
- );
- }
- }
- if (props && hasOwn(props, key)) {
- true && warn(
- "The data property \"" + key + "\" is already declared as a prop. " +
- "Use prop default value instead.",
- vm
- );
- } else if (!isReserved(key)) {
- proxy(vm, "_data", key);
- }
- }
- // observe data
- observe(data, true /* asRootData */);
- }
- function getData (data, vm) {
- // #7573 disable dep collection when invoking data getters
- pushTarget();
- try {
- return data.call(vm, vm)
- } catch (e) {
- handleError(e, vm, "data()");
- return {}
- } finally {
- popTarget();
- }
- }
- var computedWatcherOptions = { lazy: true };
- function initComputed (vm, computed) {
- // $flow-disable-line
- var watchers = vm._computedWatchers = Object.create(null);
- // computed properties are just getters during SSR
- var isSSR = isServerRendering();
- for (var key in computed) {
- var userDef = computed[key];
- var getter = typeof userDef === 'function' ? userDef : userDef.get;
- if ( true && getter == null) {
- warn(
- ("Getter is missing for computed property \"" + key + "\"."),
- vm
- );
- }
- if (!isSSR) {
- // create internal watcher for the computed property.
- watchers[key] = new Watcher(
- vm,
- getter || noop,
- noop,
- computedWatcherOptions
- );
- }
- // component-defined computed properties are already defined on the
- // component prototype. We only need to define computed properties defined
- // at instantiation here.
- if (!(key in vm)) {
- defineComputed(vm, key, userDef);
- } else if (true) {
- if (key in vm.$data) {
- warn(("The computed property \"" + key + "\" is already defined in data."), vm);
- } else if (vm.$options.props && key in vm.$options.props) {
- warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
- }
- }
- }
- }
- function defineComputed (
- target,
- key,
- userDef
- ) {
- var shouldCache = !isServerRendering();
- if (typeof userDef === 'function') {
- sharedPropertyDefinition.get = shouldCache
- ? createComputedGetter(key)
- : createGetterInvoker(userDef);
- sharedPropertyDefinition.set = noop;
- } else {
- sharedPropertyDefinition.get = userDef.get
- ? shouldCache && userDef.cache !== false
- ? createComputedGetter(key)
- : createGetterInvoker(userDef.get)
- : noop;
- sharedPropertyDefinition.set = userDef.set || noop;
- }
- if ( true &&
- sharedPropertyDefinition.set === noop) {
- sharedPropertyDefinition.set = function () {
- warn(
- ("Computed property \"" + key + "\" was assigned to but it has no setter."),
- this
- );
- };
- }
- Object.defineProperty(target, key, sharedPropertyDefinition);
- }
- function createComputedGetter (key) {
- return function computedGetter () {
- var watcher = this._computedWatchers && this._computedWatchers[key];
- if (watcher) {
- if (watcher.dirty) {
- watcher.evaluate();
- }
- if (Dep.SharedObject.target) {// fixed by xxxxxx
- watcher.depend();
- }
- return watcher.value
- }
- }
- }
- function createGetterInvoker(fn) {
- return function computedGetter () {
- return fn.call(this, this)
- }
- }
- function initMethods (vm, methods) {
- var props = vm.$options.props;
- for (var key in methods) {
- if (true) {
- if (typeof methods[key] !== 'function') {
- warn(
- "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
- "Did you reference the function correctly?",
- vm
- );
- }
- if (props && hasOwn(props, key)) {
- warn(
- ("Method \"" + key + "\" has already been defined as a prop."),
- vm
- );
- }
- if ((key in vm) && isReserved(key)) {
- warn(
- "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
- "Avoid defining component methods that start with _ or $."
- );
- }
- }
- vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
- }
- }
- function initWatch (vm, watch) {
- for (var key in watch) {
- var handler = watch[key];
- if (Array.isArray(handler)) {
- for (var i = 0; i < handler.length; i++) {
- createWatcher(vm, key, handler[i]);
- }
- } else {
- createWatcher(vm, key, handler);
- }
- }
- }
- function createWatcher (
- vm,
- expOrFn,
- handler,
- options
- ) {
- if (isPlainObject(handler)) {
- options = handler;
- handler = handler.handler;
- }
- if (typeof handler === 'string') {
- handler = vm[handler];
- }
- return vm.$watch(expOrFn, handler, options)
- }
- function stateMixin (Vue) {
- // flow somehow has problems with directly declared definition object
- // when using Object.defineProperty, so we have to procedurally build up
- // the object here.
- var dataDef = {};
- dataDef.get = function () { return this._data };
- var propsDef = {};
- propsDef.get = function () { return this._props };
- if (true) {
- dataDef.set = function () {
- warn(
- 'Avoid replacing instance root $data. ' +
- 'Use nested data properties instead.',
- this
- );
- };
- propsDef.set = function () {
- warn("$props is readonly.", this);
- };
- }
- Object.defineProperty(Vue.prototype, '$data', dataDef);
- Object.defineProperty(Vue.prototype, '$props', propsDef);
- Vue.prototype.$set = set;
- Vue.prototype.$delete = del;
- Vue.prototype.$watch = function (
- expOrFn,
- cb,
- options
- ) {
- var vm = this;
- if (isPlainObject(cb)) {
- return createWatcher(vm, expOrFn, cb, options)
- }
- options = options || {};
- options.user = true;
- var watcher = new Watcher(vm, expOrFn, cb, options);
- if (options.immediate) {
- try {
- cb.call(vm, watcher.value);
- } catch (error) {
- handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
- }
- }
- return function unwatchFn () {
- watcher.teardown();
- }
- };
- }
- /* */
- var uid$3 = 0;
- function initMixin (Vue) {
- Vue.prototype._init = function (options) {
- var vm = this;
- // a uid
- vm._uid = uid$3++;
- var startTag, endTag;
- /* istanbul ignore if */
- if ( true && config.performance && mark) {
- startTag = "vue-perf-start:" + (vm._uid);
- endTag = "vue-perf-end:" + (vm._uid);
- mark(startTag);
- }
- // a flag to avoid this being observed
- vm._isVue = true;
- // merge options
- if (options && options._isComponent) {
- // optimize internal component instantiation
- // since dynamic options merging is pretty slow, and none of the
- // internal component options needs special treatment.
- initInternalComponent(vm, options);
- } else {
- vm.$options = mergeOptions(
- resolveConstructorOptions(vm.constructor),
- options || {},
- vm
- );
- }
- /* istanbul ignore else */
- if (true) {
- initProxy(vm);
- } else {}
- // expose real self
- vm._self = vm;
- initLifecycle(vm);
- initEvents(vm);
- initRender(vm);
- callHook(vm, 'beforeCreate');
- !vm._$fallback && initInjections(vm); // resolve injections before data/props
- initState(vm);
- !vm._$fallback && initProvide(vm); // resolve provide after data/props
- !vm._$fallback && callHook(vm, 'created');
- /* istanbul ignore if */
- if ( true && config.performance && mark) {
- vm._name = formatComponentName(vm, false);
- mark(endTag);
- measure(("vue " + (vm._name) + " init"), startTag, endTag);
- }
- if (vm.$options.el) {
- vm.$mount(vm.$options.el);
- }
- };
- }
- function initInternalComponent (vm, options) {
- var opts = vm.$options = Object.create(vm.constructor.options);
- // doing this because it's faster than dynamic enumeration.
- var parentVnode = options._parentVnode;
- opts.parent = options.parent;
- opts._parentVnode = parentVnode;
- var vnodeComponentOptions = parentVnode.componentOptions;
- opts.propsData = vnodeComponentOptions.propsData;
- opts._parentListeners = vnodeComponentOptions.listeners;
- opts._renderChildren = vnodeComponentOptions.children;
- opts._componentTag = vnodeComponentOptions.tag;
- if (options.render) {
- opts.render = options.render;
- opts.staticRenderFns = options.staticRenderFns;
- }
- }
- function resolveConstructorOptions (Ctor) {
- var options = Ctor.options;
- if (Ctor.super) {
- var superOptions = resolveConstructorOptions(Ctor.super);
- var cachedSuperOptions = Ctor.superOptions;
- if (superOptions !== cachedSuperOptions) {
- // super option changed,
- // need to resolve new options.
- Ctor.superOptions = superOptions;
- // check if there are any late-modified/attached options (#4976)
- var modifiedOptions = resolveModifiedOptions(Ctor);
- // update base extend options
- if (modifiedOptions) {
- extend(Ctor.extendOptions, modifiedOptions);
- }
- options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
- if (options.name) {
- options.components[options.name] = Ctor;
- }
- }
- }
- return options
- }
- function resolveModifiedOptions (Ctor) {
- var modified;
- var latest = Ctor.options;
- var sealed = Ctor.sealedOptions;
- for (var key in latest) {
- if (latest[key] !== sealed[key]) {
- if (!modified) { modified = {}; }
- modified[key] = latest[key];
- }
- }
- return modified
- }
- function Vue (options) {
- if ( true &&
- !(this instanceof Vue)
- ) {
- warn('Vue is a constructor and should be called with the `new` keyword');
- }
- this._init(options);
- }
- initMixin(Vue);
- stateMixin(Vue);
- eventsMixin(Vue);
- lifecycleMixin(Vue);
- renderMixin(Vue);
- /* */
- function initUse (Vue) {
- Vue.use = function (plugin) {
- var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
- if (installedPlugins.indexOf(plugin) > -1) {
- return this
- }
- // additional parameters
- var args = toArray(arguments, 1);
- args.unshift(this);
- if (typeof plugin.install === 'function') {
- plugin.install.apply(plugin, args);
- } else if (typeof plugin === 'function') {
- plugin.apply(null, args);
- }
- installedPlugins.push(plugin);
- return this
- };
- }
- /* */
- function initMixin$1 (Vue) {
- Vue.mixin = function (mixin) {
- this.options = mergeOptions(this.options, mixin);
- return this
- };
- }
- /* */
- function initExtend (Vue) {
- /**
- * Each instance constructor, including Vue, has a unique
- * cid. This enables us to create wrapped "child
- * constructors" for prototypal inheritance and cache them.
- */
- Vue.cid = 0;
- var cid = 1;
- /**
- * Class inheritance
- */
- Vue.extend = function (extendOptions) {
- extendOptions = extendOptions || {};
- var Super = this;
- var SuperId = Super.cid;
- var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
- if (cachedCtors[SuperId]) {
- return cachedCtors[SuperId]
- }
- var name = extendOptions.name || Super.options.name;
- if ( true && name) {
- validateComponentName(name);
- }
- var Sub = function VueComponent (options) {
- this._init(options);
- };
- Sub.prototype = Object.create(Super.prototype);
- Sub.prototype.constructor = Sub;
- Sub.cid = cid++;
- Sub.options = mergeOptions(
- Super.options,
- extendOptions
- );
- Sub['super'] = Super;
- // For props and computed properties, we define the proxy getters on
- // the Vue instances at extension time, on the extended prototype. This
- // avoids Object.defineProperty calls for each instance created.
- if (Sub.options.props) {
- initProps$1(Sub);
- }
- if (Sub.options.computed) {
- initComputed$1(Sub);
- }
- // allow further extension/mixin/plugin usage
- Sub.extend = Super.extend;
- Sub.mixin = Super.mixin;
- Sub.use = Super.use;
- // create asset registers, so extended classes
- // can have their private assets too.
- ASSET_TYPES.forEach(function (type) {
- Sub[type] = Super[type];
- });
- // enable recursive self-lookup
- if (name) {
- Sub.options.components[name] = Sub;
- }
- // keep a reference to the super options at extension time.
- // later at instantiation we can check if Super's options have
- // been updated.
- Sub.superOptions = Super.options;
- Sub.extendOptions = extendOptions;
- Sub.sealedOptions = extend({}, Sub.options);
- // cache constructor
- cachedCtors[SuperId] = Sub;
- return Sub
- };
- }
- function initProps$1 (Comp) {
- var props = Comp.options.props;
- for (var key in props) {
- proxy(Comp.prototype, "_props", key);
- }
- }
- function initComputed$1 (Comp) {
- var computed = Comp.options.computed;
- for (var key in computed) {
- defineComputed(Comp.prototype, key, computed[key]);
- }
- }
- /* */
- function initAssetRegisters (Vue) {
- /**
- * Create asset registration methods.
- */
- ASSET_TYPES.forEach(function (type) {
- Vue[type] = function (
- id,
- definition
- ) {
- if (!definition) {
- return this.options[type + 's'][id]
- } else {
- /* istanbul ignore if */
- if ( true && type === 'component') {
- validateComponentName(id);
- }
- if (type === 'component' && isPlainObject(definition)) {
- definition.name = definition.name || id;
- definition = this.options._base.extend(definition);
- }
- if (type === 'directive' && typeof definition === 'function') {
- definition = { bind: definition, update: definition };
- }
- this.options[type + 's'][id] = definition;
- return definition
- }
- };
- });
- }
- /* */
- function getComponentName (opts) {
- return opts && (opts.Ctor.options.name || opts.tag)
- }
- function matches (pattern, name) {
- if (Array.isArray(pattern)) {
- return pattern.indexOf(name) > -1
- } else if (typeof pattern === 'string') {
- return pattern.split(',').indexOf(name) > -1
- } else if (isRegExp(pattern)) {
- return pattern.test(name)
- }
- /* istanbul ignore next */
- return false
- }
- function pruneCache (keepAliveInstance, filter) {
- var cache = keepAliveInstance.cache;
- var keys = keepAliveInstance.keys;
- var _vnode = keepAliveInstance._vnode;
- for (var key in cache) {
- var cachedNode = cache[key];
- if (cachedNode) {
- var name = getComponentName(cachedNode.componentOptions);
- if (name && !filter(name)) {
- pruneCacheEntry(cache, key, keys, _vnode);
- }
- }
- }
- }
- function pruneCacheEntry (
- cache,
- key,
- keys,
- current
- ) {
- var cached$$1 = cache[key];
- if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
- cached$$1.componentInstance.$destroy();
- }
- cache[key] = null;
- remove(keys, key);
- }
- var patternTypes = [String, RegExp, Array];
- var KeepAlive = {
- name: 'keep-alive',
- abstract: true,
- props: {
- include: patternTypes,
- exclude: patternTypes,
- max: [String, Number]
- },
- created: function created () {
- this.cache = Object.create(null);
- this.keys = [];
- },
- destroyed: function destroyed () {
- for (var key in this.cache) {
- pruneCacheEntry(this.cache, key, this.keys);
- }
- },
- mounted: function mounted () {
- var this$1 = this;
- this.$watch('include', function (val) {
- pruneCache(this$1, function (name) { return matches(val, name); });
- });
- this.$watch('exclude', function (val) {
- pruneCache(this$1, function (name) { return !matches(val, name); });
- });
- },
- render: function render () {
- var slot = this.$slots.default;
- var vnode = getFirstComponentChild(slot);
- var componentOptions = vnode && vnode.componentOptions;
- if (componentOptions) {
- // check pattern
- var name = getComponentName(componentOptions);
- var ref = this;
- var include = ref.include;
- var exclude = ref.exclude;
- if (
- // not included
- (include && (!name || !matches(include, name))) ||
- // excluded
- (exclude && name && matches(exclude, name))
- ) {
- return vnode
- }
- var ref$1 = this;
- var cache = ref$1.cache;
- var keys = ref$1.keys;
- var key = vnode.key == null
- // same constructor may get registered as different local components
- // so cid alone is not enough (#3269)
- ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
- : vnode.key;
- if (cache[key]) {
- vnode.componentInstance = cache[key].componentInstance;
- // make current key freshest
- remove(keys, key);
- keys.push(key);
- } else {
- cache[key] = vnode;
- keys.push(key);
- // prune oldest entry
- if (this.max && keys.length > parseInt(this.max)) {
- pruneCacheEntry(cache, keys[0], keys, this._vnode);
- }
- }
- vnode.data.keepAlive = true;
- }
- return vnode || (slot && slot[0])
- }
- };
- var builtInComponents = {
- KeepAlive: KeepAlive
- };
- /* */
- function initGlobalAPI (Vue) {
- // config
- var configDef = {};
- configDef.get = function () { return config; };
- if (true) {
- configDef.set = function () {
- warn(
- 'Do not replace the Vue.config object, set individual fields instead.'
- );
- };
- }
- Object.defineProperty(Vue, 'config', configDef);
- // exposed util methods.
- // NOTE: these are not considered part of the public API - avoid relying on
- // them unless you are aware of the risk.
- Vue.util = {
- warn: warn,
- extend: extend,
- mergeOptions: mergeOptions,
- defineReactive: defineReactive$$1
- };
- Vue.set = set;
- Vue.delete = del;
- Vue.nextTick = nextTick;
- // 2.6 explicit observable API
- Vue.observable = function (obj) {
- observe(obj);
- return obj
- };
- Vue.options = Object.create(null);
- ASSET_TYPES.forEach(function (type) {
- Vue.options[type + 's'] = Object.create(null);
- });
- // this is used to identify the "base" constructor to extend all plain-object
- // components with in Weex's multi-instance scenarios.
- Vue.options._base = Vue;
- extend(Vue.options.components, builtInComponents);
- initUse(Vue);
- initMixin$1(Vue);
- initExtend(Vue);
- initAssetRegisters(Vue);
- }
- initGlobalAPI(Vue);
- Object.defineProperty(Vue.prototype, '$isServer', {
- get: isServerRendering
- });
- Object.defineProperty(Vue.prototype, '$ssrContext', {
- get: function get () {
- /* istanbul ignore next */
- return this.$vnode && this.$vnode.ssrContext
- }
- });
- // expose FunctionalRenderContext for ssr runtime helper installation
- Object.defineProperty(Vue, 'FunctionalRenderContext', {
- value: FunctionalRenderContext
- });
- Vue.version = '2.6.11';
- /**
- * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
- */
- var ARRAYTYPE = '[object Array]';
- var OBJECTTYPE = '[object Object]';
- var NULLTYPE = '[object Null]';
- var UNDEFINEDTYPE = '[object Undefined]';
- // const FUNCTIONTYPE = '[object Function]'
- function diff(current, pre) {
- var result = {};
- syncKeys(current, pre);
- _diff(current, pre, '', result);
- return result
- }
- function syncKeys(current, pre) {
- if (current === pre) { return }
- var rootCurrentType = type(current);
- var rootPreType = type(pre);
- if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
- if(Object.keys(current).length >= Object.keys(pre).length){
- for (var key in pre) {
- var currentValue = current[key];
- if (currentValue === undefined) {
- current[key] = null;
- } else {
- syncKeys(currentValue, pre[key]);
- }
- }
- }
- } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
- if (current.length >= pre.length) {
- pre.forEach(function (item, index) {
- syncKeys(current[index], item);
- });
- }
- }
- }
- function nullOrUndefined(currentType, preType) {
- if(
- (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
- (preType === NULLTYPE || preType === UNDEFINEDTYPE)
- ) {
- return false
- }
- return true
- }
- function _diff(current, pre, path, result) {
- if (current === pre) { return }
- var rootCurrentType = type(current);
- var rootPreType = type(pre);
- if (rootCurrentType == OBJECTTYPE) {
- if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
- setResult(result, path, current);
- } else {
- var loop = function ( key ) {
- var currentValue = current[key];
- var preValue = pre[key];
- var currentType = type(currentValue);
- var preType = type(preValue);
- if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
- if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
- setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
- }
- } else if (currentType == ARRAYTYPE) {
- if (preType != ARRAYTYPE) {
- setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
- } else {
- if (currentValue.length < preValue.length) {
- setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
- } else {
- currentValue.forEach(function (item, index) {
- _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
- });
- }
- }
- } else if (currentType == OBJECTTYPE) {
- if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
- setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
- } else {
- for (var subKey in currentValue) {
- _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
- }
- }
- }
- };
- for (var key in current) loop( key );
- }
- } else if (rootCurrentType == ARRAYTYPE) {
- if (rootPreType != ARRAYTYPE) {
- setResult(result, path, current);
- } else {
- if (current.length < pre.length) {
- setResult(result, path, current);
- } else {
- current.forEach(function (item, index) {
- _diff(item, pre[index], path + '[' + index + ']', result);
- });
- }
- }
- } else {
- setResult(result, path, current);
- }
- }
- function setResult(result, k, v) {
- // if (type(v) != FUNCTIONTYPE) {
- result[k] = v;
- // }
- }
- function type(obj) {
- return Object.prototype.toString.call(obj)
- }
- /* */
- function flushCallbacks$1(vm) {
- if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
- if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"kjds","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
- var mpInstance = vm.$scope;
- console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
- ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
- }
- var copies = vm.__next_tick_callbacks.slice(0);
- vm.__next_tick_callbacks.length = 0;
- for (var i = 0; i < copies.length; i++) {
- copies[i]();
- }
- }
- }
- function hasRenderWatcher(vm) {
- return queue.find(function (watcher) { return vm._watcher === watcher; })
- }
- function nextTick$1(vm, cb) {
- //1.nextTick 之前 已 setData 且 setData 还未回调完成
- //2.nextTick 之前存在 render watcher
- if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
- if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"kjds","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
- var mpInstance = vm.$scope;
- console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
- ']:nextVueTick');
- }
- return nextTick(cb, vm)
- }else{
- if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"kjds","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
- var mpInstance$1 = vm.$scope;
- console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
- ']:nextMPTick');
- }
- }
- var _resolve;
- if (!vm.__next_tick_callbacks) {
- vm.__next_tick_callbacks = [];
- }
- vm.__next_tick_callbacks.push(function () {
- if (cb) {
- try {
- cb.call(vm);
- } catch (e) {
- handleError(e, vm, 'nextTick');
- }
- } else if (_resolve) {
- _resolve(vm);
- }
- });
- // $flow-disable-line
- if (!cb && typeof Promise !== 'undefined') {
- return new Promise(function (resolve) {
- _resolve = resolve;
- })
- }
- }
- /* */
- function clearInstance(key, value) {
- // 简易去除 Vue 和小程序组件实例
- if (value) {
- if (value._isVue || value.__v_isMPComponent) {
- return {}
- }
- }
- return value
- }
- function cloneWithData(vm) {
- // 确保当前 vm 所有数据被同步
- var ret = Object.create(null);
- var dataKeys = [].concat(
- Object.keys(vm._data || {}),
- Object.keys(vm._computedWatchers || {}));
- dataKeys.reduce(function(ret, key) {
- ret[key] = vm[key];
- return ret
- }, ret);
- // vue-composition-api
- var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
- var rawBindings = compositionApiState && compositionApiState.rawBindings;
- if (rawBindings) {
- Object.keys(rawBindings).forEach(function (key) {
- ret[key] = vm[key];
- });
- }
- //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
- Object.assign(ret, vm.$mp.data || {});
- if (
- Array.isArray(vm.$options.behaviors) &&
- vm.$options.behaviors.indexOf('uni://form-field') !== -1
- ) { //form-field
- ret['name'] = vm.name;
- ret['value'] = vm.value;
- }
- return JSON.parse(JSON.stringify(ret, clearInstance))
- }
- var patch = function(oldVnode, vnode) {
- var this$1 = this;
- if (vnode === null) { //destroy
- return
- }
- if (this.mpType === 'page' || this.mpType === 'component') {
- var mpInstance = this.$scope;
- var data = Object.create(null);
- try {
- data = cloneWithData(this);
- } catch (err) {
- console.error(err);
- }
- data.__webviewId__ = mpInstance.data.__webviewId__;
- var mpData = Object.create(null);
- Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
- mpData[key] = mpInstance.data[key];
- });
- var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
- if (Object.keys(diffData).length) {
- if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"kjds","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
- console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
- ']差量更新',
- JSON.stringify(diffData));
- }
- this.__next_tick_pending = true;
- mpInstance.setData(diffData, function () {
- this$1.__next_tick_pending = false;
- flushCallbacks$1(this$1);
- });
- } else {
- flushCallbacks$1(this);
- }
- }
- };
- /* */
- function createEmptyRender() {
- }
- function mountComponent$1(
- vm,
- el,
- hydrating
- ) {
- if (!vm.mpType) {//main.js 中的 new Vue
- return vm
- }
- if (vm.mpType === 'app') {
- vm.$options.render = createEmptyRender;
- }
- if (!vm.$options.render) {
- vm.$options.render = createEmptyRender;
- if (true) {
- /* istanbul ignore if */
- if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
- vm.$options.el || el) {
- warn(
- 'You are using the runtime-only build of Vue where the template ' +
- 'compiler is not available. Either pre-compile the templates into ' +
- 'render functions, or use the compiler-included build.',
- vm
- );
- } else {
- warn(
- 'Failed to mount component: template or render function not defined.',
- vm
- );
- }
- }
- }
-
- !vm._$fallback && callHook(vm, 'beforeMount');
- var updateComponent = function () {
- vm._update(vm._render(), hydrating);
- };
- // we set this to vm._watcher inside the watcher's constructor
- // since the watcher's initial patch may call $forceUpdate (e.g. inside child
- // component's mounted hook), which relies on vm._watcher being already defined
- new Watcher(vm, updateComponent, noop, {
- before: function before() {
- if (vm._isMounted && !vm._isDestroyed) {
- callHook(vm, 'beforeUpdate');
- }
- }
- }, true /* isRenderWatcher */);
- hydrating = false;
- return vm
- }
- /* */
- function renderClass (
- staticClass,
- dynamicClass
- ) {
- if (isDef(staticClass) || isDef(dynamicClass)) {
- return concat(staticClass, stringifyClass(dynamicClass))
- }
- /* istanbul ignore next */
- return ''
- }
- function concat (a, b) {
- return a ? b ? (a + ' ' + b) : a : (b || '')
- }
- function stringifyClass (value) {
- if (Array.isArray(value)) {
- return stringifyArray(value)
- }
- if (isObject(value)) {
- return stringifyObject(value)
- }
- if (typeof value === 'string') {
- return value
- }
- /* istanbul ignore next */
- return ''
- }
- function stringifyArray (value) {
- var res = '';
- var stringified;
- for (var i = 0, l = value.length; i < l; i++) {
- if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
- if (res) { res += ' '; }
- res += stringified;
- }
- }
- return res
- }
- function stringifyObject (value) {
- var res = '';
- for (var key in value) {
- if (value[key]) {
- if (res) { res += ' '; }
- res += key;
- }
- }
- return res
- }
- /* */
- var parseStyleText = cached(function (cssText) {
- var res = {};
- var listDelimiter = /;(?![^(]*\))/g;
- var propertyDelimiter = /:(.+)/;
- cssText.split(listDelimiter).forEach(function (item) {
- if (item) {
- var tmp = item.split(propertyDelimiter);
- tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
- }
- });
- return res
- });
- // normalize possible array / string values into Object
- function normalizeStyleBinding (bindingStyle) {
- if (Array.isArray(bindingStyle)) {
- return toObject(bindingStyle)
- }
- if (typeof bindingStyle === 'string') {
- return parseStyleText(bindingStyle)
- }
- return bindingStyle
- }
- /* */
- var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
- function getTarget(obj, path) {
- var parts = path.split('.');
- var key = parts[0];
- if (key.indexOf('__$n') === 0) { //number index
- key = parseInt(key.replace('__$n', ''));
- }
- if (parts.length === 1) {
- return obj[key]
- }
- return getTarget(obj[key], parts.slice(1).join('.'))
- }
- function internalMixin(Vue) {
- Vue.config.errorHandler = function(err, vm, info) {
- Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
- console.error(err);
- /* eslint-disable no-undef */
- var app = typeof getApp === 'function' && getApp();
- if (app && app.onError) {
- app.onError(err);
- }
- };
- var oldEmit = Vue.prototype.$emit;
- Vue.prototype.$emit = function(event) {
- if (this.$scope && event) {
- var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
- if (triggerEvent) {
- try {
- triggerEvent.call(this.$scope, event, {
- __args__: toArray(arguments, 1)
- });
- } catch (error) {
- }
- }
- }
- return oldEmit.apply(this, arguments)
- };
- Vue.prototype.$nextTick = function(fn) {
- return nextTick$1(this, fn)
- };
- MP_METHODS.forEach(function (method) {
- Vue.prototype[method] = function(args) {
- if (this.$scope && this.$scope[method]) {
- return this.$scope[method](args)
- }
- // mp-alipay
- if (typeof my === 'undefined') {
- return
- }
- if (method === 'createSelectorQuery') {
- /* eslint-disable no-undef */
- return my.createSelectorQuery(args)
- } else if (method === 'createIntersectionObserver') {
- /* eslint-disable no-undef */
- return my.createIntersectionObserver(args)
- }
- // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
- };
- });
- Vue.prototype.__init_provide = initProvide;
- Vue.prototype.__init_injections = initInjections;
- Vue.prototype.__call_hook = function(hook, args) {
- var vm = this;
- // #7573 disable dep collection when invoking lifecycle hooks
- pushTarget();
- var handlers = vm.$options[hook];
- var info = hook + " hook";
- var ret;
- if (handlers) {
- for (var i = 0, j = handlers.length; i < j; i++) {
- ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
- }
- }
- if (vm._hasHookEvent) {
- vm.$emit('hook:' + hook, args);
- }
- popTarget();
- return ret
- };
- Vue.prototype.__set_model = function(target, key, value, modifiers) {
- if (Array.isArray(modifiers)) {
- if (modifiers.indexOf('trim') !== -1) {
- value = value.trim();
- }
- if (modifiers.indexOf('number') !== -1) {
- value = this._n(value);
- }
- }
- if (!target) {
- target = this;
- }
- // 解决动态属性添加
- Vue.set(target, key, value);
- };
- Vue.prototype.__set_sync = function(target, key, value) {
- if (!target) {
- target = this;
- }
- // 解决动态属性添加
- Vue.set(target, key, value);
- };
- Vue.prototype.__get_orig = function(item) {
- if (isPlainObject(item)) {
- return item['$orig'] || item
- }
- return item
- };
- Vue.prototype.__get_value = function(dataPath, target) {
- return getTarget(target || this, dataPath)
- };
- Vue.prototype.__get_class = function(dynamicClass, staticClass) {
- return renderClass(staticClass, dynamicClass)
- };
- Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
- if (!dynamicStyle && !staticStyle) {
- return ''
- }
- var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
- var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
- return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
- };
- Vue.prototype.__map = function(val, iteratee) {
- //TODO 暂不考虑 string
- var ret, i, l, keys, key;
- if (Array.isArray(val)) {
- ret = new Array(val.length);
- for (i = 0, l = val.length; i < l; i++) {
- ret[i] = iteratee(val[i], i);
- }
- return ret
- } else if (isObject(val)) {
- keys = Object.keys(val);
- ret = Object.create(null);
- for (i = 0, l = keys.length; i < l; i++) {
- key = keys[i];
- ret[key] = iteratee(val[key], key, i);
- }
- return ret
- } else if (typeof val === 'number') {
- ret = new Array(val);
- for (i = 0, l = val; i < l; i++) {
- // 第一个参数暂时仍和小程序一致
- ret[i] = iteratee(i, i);
- }
- return ret
- }
- return []
- };
- }
- /* */
- var LIFECYCLE_HOOKS$1 = [
- //App
- 'onLaunch',
- 'onShow',
- 'onHide',
- 'onUniNViewMessage',
- 'onPageNotFound',
- 'onThemeChange',
- 'onError',
- 'onUnhandledRejection',
- //Page
- 'onInit',
- 'onLoad',
- // 'onShow',
- 'onReady',
- // 'onHide',
- 'onUnload',
- 'onPullDownRefresh',
- 'onReachBottom',
- 'onTabItemTap',
- 'onAddToFavorites',
- 'onShareTimeline',
- 'onShareAppMessage',
- 'onResize',
- 'onPageScroll',
- 'onNavigationBarButtonTap',
- 'onBackPress',
- 'onNavigationBarSearchInputChanged',
- 'onNavigationBarSearchInputConfirmed',
- 'onNavigationBarSearchInputClicked',
- 'onUploadDouyinVideo',
- 'onNFCReadMessage',
- //Component
- // 'onReady', // 兼容旧版本,应该移除该事件
- 'onPageShow',
- 'onPageHide',
- 'onPageResize'
- ];
- function lifecycleMixin$1(Vue) {
- //fixed vue-class-component
- var oldExtend = Vue.extend;
- Vue.extend = function(extendOptions) {
- extendOptions = extendOptions || {};
- var methods = extendOptions.methods;
- if (methods) {
- Object.keys(methods).forEach(function (methodName) {
- if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
- extendOptions[methodName] = methods[methodName];
- delete methods[methodName];
- }
- });
- }
- return oldExtend.call(this, extendOptions)
- };
- var strategies = Vue.config.optionMergeStrategies;
- var mergeHook = strategies.created;
- LIFECYCLE_HOOKS$1.forEach(function (hook) {
- strategies[hook] = mergeHook;
- });
- Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
- }
- /* */
- // install platform patch function
- Vue.prototype.__patch__ = patch;
- // public mount method
- Vue.prototype.$mount = function(
- el ,
- hydrating
- ) {
- return mountComponent$1(this, el, hydrating)
- };
- lifecycleMixin$1(Vue);
- internalMixin(Vue);
- /* */
- /* harmony default export */ __webpack_exports__["default"] = (Vue);
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
- /***/ }),
- /***/ 26:
- /*!************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/pages.json ***!
- \************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /***/ }),
- /***/ 3:
- /*!***********************************!*\
- !*** (webpack)/buildin/global.js ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var g;
- // This works in non-strict mode
- g = (function() {
- return this;
- })();
- try {
- // This works if eval is allowed (see CSP)
- g = g || new Function("return this")();
- } catch (e) {
- // This works if the window reference is available
- if (typeof window === "object") g = window;
- }
- // g can still be undefined, but nothing to do about it...
- // We return undefined, instead of nothing here, so it's
- // easier to handle this case. if(!global) { ...}
- module.exports = g;
- /***/ }),
- /***/ 32:
- /*!**********************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
- \**********************************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode, /* vue-cli only */
- components, // fixed by xxxxxx auto components
- renderjs // fixed by xxxxxx renderjs
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // fixed by xxxxxx auto components
- if (components) {
- if (!options.components) {
- options.components = {}
- }
- var hasOwn = Object.prototype.hasOwnProperty
- for (var name in components) {
- if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
- options.components[name] = components[name]
- }
- }
- }
- // fixed by xxxxxx renderjs
- if (renderjs) {
- if(typeof renderjs.beforeCreate === 'function'){
- renderjs.beforeCreate = [renderjs.beforeCreate]
- }
- (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
- this[renderjs.__module] = this
- });
- (options.mixins || (options.mixins = [])).push(renderjs)
- }
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 33:
- /*!**************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uni.promisify.adaptor.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
- uni.addInterceptor({
- returnValue: function returnValue(res) {
- if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
- return res;
- }
- return new Promise(function (resolve, reject) {
- res.then(function (res) {
- return res[0] ? reject(res[0]) : resolve(res[1]);
- });
- });
- }
- });
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 34:
- /*!*******************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/index.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 35));
- var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 36));
- var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 37));
- var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 55));
- var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 59));
- var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 60));
- var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 61));
- var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 62));
- var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 63));
- var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 66));
- var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 67));
- var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 157));
- var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 115));
- var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 158));
- 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; }
- 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; }
- // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
- var pleaseSetTranspileDependencies = {},
- babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
- // 引入全局mixin
- var $u = _objectSpread(_objectSpread({
- route: _route.default,
- date: _index.default.timeFormat,
- // 另名date
- colorGradient: _colorGradient.default.colorGradient,
- hexToRgb: _colorGradient.default.hexToRgb,
- rgbToHex: _colorGradient.default.rgbToHex,
- colorToRgba: _colorGradient.default.colorToRgba,
- test: _test.default,
- type: ['primary', 'success', 'error', 'warning', 'info'],
- http: new _luchRequest.default(),
- config: _config.default,
- // uView配置信息相关,比如版本号
- zIndex: _zIndex.default,
- debounce: _debounce.default,
- throttle: _throttle.default,
- mixin: _mixin.default,
- mpMixin: _mpMixin.default,
- props: _props.default
- }, _index.default), {}, {
- color: _color.default,
- platform: _platform.default
- });
- // $u挂载到uni对象上
- uni.$u = $u;
- var install = function install(Vue) {
- // 时间格式化,同时两个名称,date和timeFormat
- Vue.filter('timeFormat', function (timestamp, format) {
- return uni.$u.timeFormat(timestamp, format);
- });
- Vue.filter('date', function (timestamp, format) {
- return uni.$u.timeFormat(timestamp, format);
- });
- // 将多久以前的方法,注入到全局过滤器
- Vue.filter('timeFrom', function (timestamp, format) {
- return uni.$u.timeFrom(timestamp, format);
- });
- // 同时挂载到uni和Vue.prototype中
- // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
- Vue.prototype.$u = $u;
- Vue.mixin(_mixin.default);
- };
- var _default = {
- install: install
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 35:
- /*!******************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/mixin/mixin.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
- // 定义每个组件都可能需要用到的外部样式以及类名
- props: {
- // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
- customStyle: {
- type: [Object, String],
- default: function _default() {
- return {};
- }
- },
- customClass: {
- type: String,
- default: ''
- },
- // 跳转的页面路径
- url: {
- type: String,
- default: ''
- },
- // 页面跳转的类型
- linkType: {
- type: String,
- default: 'navigateTo'
- }
- },
- data: function data() {
- return {};
- },
- onLoad: function onLoad() {
- // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
- this.$u.getRect = this.$uGetRect;
- },
- created: function created() {
- // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
- this.$u.getRect = this.$uGetRect;
- },
- computed: {
- // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
- // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
- // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
- $u: function $u() {
- // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
- return uni.$u.deepMerge(uni.$u, {
- props: undefined,
- http: undefined,
- mixin: undefined
- });
- },
- /**
- * 生成bem规则类名
- * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
- * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
- * @param {String} name 组件名称
- * @param {Array} fixed 一直会存在的类名
- * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
- * @returns {Array|string}
- */
- bem: function bem() {
- return function (name, fixed, change) {
- var _this = this;
- // 类名前缀
- var prefix = "u-".concat(name, "--");
- var classes = {};
- if (fixed) {
- fixed.map(function (item) {
- // 这里的类名,会一直存在
- classes[prefix + _this[item]] = true;
- });
- }
- if (change) {
- change.map(function (item) {
- // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
- _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
- });
- }
- return Object.keys(classes);
- // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
- };
- }
- },
- methods: {
- // 跳转某一个页面
- openPage: function openPage() {
- var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
- var url = this[urlKey];
- if (url) {
- // 执行类似uni.navigateTo的方法
- uni[this.linkType]({
- url: url
- });
- }
- },
- // 查询节点信息
- // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
- // 解决办法为在组件根部再套一个没有任何作用的view元素
- $uGetRect: function $uGetRect(selector, all) {
- var _this2 = this;
- return new Promise(function (resolve) {
- uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
- if (all && Array.isArray(rect) && rect.length) {
- resolve(rect);
- }
- if (!all && rect) {
- resolve(rect);
- }
- }).exec();
- });
- },
- getParentData: function getParentData() {
- var _this3 = this;
- var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
- // 避免在created中去定义parent变量
- if (!this.parent) this.parent = {};
- // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
- // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
- // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
- // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
- this.parent = uni.$u.$parent.call(this, parentName);
- if (this.parent.children) {
- // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
- this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
- }
- if (this.parent && this.parentData) {
- // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
- Object.keys(this.parentData).map(function (key) {
- _this3.parentData[key] = _this3.parent[key];
- });
- }
- },
- // 阻止事件冒泡
- preventEvent: function preventEvent(e) {
- e && typeof e.stopPropagation === 'function' && e.stopPropagation();
- },
- // 空操作
- noop: function noop(e) {
- this.preventEvent(e);
- }
- },
- onReachBottom: function onReachBottom() {
- uni.$emit('uOnReachBottom');
- },
- beforeDestroy: function beforeDestroy() {
- var _this4 = this;
- // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
- // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
- if (this.parent && uni.$u.test.array(this.parent.children)) {
- // 组件销毁时,移除父组件中的children数组中对应的实例
- var childrenList = this.parent.children;
- childrenList.map(function (child, index) {
- // 如果相等,则移除
- if (child === _this4) {
- childrenList.splice(index, 1);
- }
- });
- }
- }
- };
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 36:
- /*!********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/mixin/mpMixin.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
- options: {
- virtualHost: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 37:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/index.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 38));
- var _default = _Request.default;
- exports.default = _default;
- /***/ }),
- /***/ 38:
- /*!********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/core/Request.js ***!
- \********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
- var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
- var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 39));
- var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 47));
- var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 48));
- var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 49));
- var _utils = __webpack_require__(/*! ../utils */ 42);
- var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 50));
- 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; }
- 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; }
- var Request = /*#__PURE__*/function () {
- /**
- * @param {Object} arg - 全局配置
- * @param {String} arg.baseURL - 全局根路径
- * @param {Object} arg.header - 全局header
- * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
- * @param {String} arg.dataType = [json] - 全局默认的dataType
- * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
- * @param {Object} arg.custom - 全局默认的自定义参数
- * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
- * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
- * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
- * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
- * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
- */
- function Request() {
- var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- (0, _classCallCheck2.default)(this, Request);
- if (!(0, _utils.isPlainObject)(arg)) {
- arg = {};
- console.warn('设置全局参数必须接收一个Object');
- }
- this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
- this.interceptors = {
- request: new _InterceptorManager.default(),
- response: new _InterceptorManager.default()
- };
- }
- /**
- * @Function
- * @param {Request~setConfigCallback} f - 设置全局默认配置
- */
- (0, _createClass2.default)(Request, [{
- key: "setConfig",
- value: function setConfig(f) {
- this.config = f(this.config);
- }
- }, {
- key: "middleware",
- value: function middleware(config) {
- config = (0, _mergeConfig.default)(this.config, config);
- var chain = [_dispatchRequest.default, undefined];
- var promise = Promise.resolve(config);
- this.interceptors.request.forEach(function (interceptor) {
- chain.unshift(interceptor.fulfilled, interceptor.rejected);
- });
- this.interceptors.response.forEach(function (interceptor) {
- chain.push(interceptor.fulfilled, interceptor.rejected);
- });
- while (chain.length) {
- promise = promise.then(chain.shift(), chain.shift());
- }
- return promise;
- }
- /**
- * @Function
- * @param {Object} config - 请求配置项
- * @prop {String} options.url - 请求路径
- * @prop {Object} options.data - 请求参数
- * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
- * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
- * @prop {Object} [options.header = config.header] - 请求header
- * @prop {Object} [options.method = config.method] - 请求方法
- * @returns {Promise<unknown>}
- */
- }, {
- key: "request",
- value: function request() {
- var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- return this.middleware(config);
- }
- }, {
- key: "get",
- value: function get(url) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- return this.middleware(_objectSpread({
- url: url,
- method: 'GET'
- }, options));
- }
- }, {
- key: "post",
- value: function post(url, data) {
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- return this.middleware(_objectSpread({
- url: url,
- data: data,
- method: 'POST'
- }, options));
- }
- }, {
- key: "put",
- value: function put(url, data) {
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- return this.middleware(_objectSpread({
- url: url,
- data: data,
- method: 'PUT'
- }, options));
- }
- }, {
- key: "delete",
- value: function _delete(url, data) {
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- return this.middleware(_objectSpread({
- url: url,
- data: data,
- method: 'DELETE'
- }, options));
- }
- }, {
- key: "connect",
- value: function connect(url, data) {
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- return this.middleware(_objectSpread({
- url: url,
- data: data,
- method: 'CONNECT'
- }, options));
- }
- }, {
- key: "head",
- value: function head(url, data) {
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- return this.middleware(_objectSpread({
- url: url,
- data: data,
- method: 'HEAD'
- }, options));
- }
- }, {
- key: "options",
- value: function options(url, data) {
- var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- return this.middleware(_objectSpread({
- url: url,
- data: data,
- method: 'OPTIONS'
- }, _options));
- }
- }, {
- key: "trace",
- value: function trace(url, data) {
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- return this.middleware(_objectSpread({
- url: url,
- data: data,
- method: 'TRACE'
- }, options));
- }
- }, {
- key: "upload",
- value: function upload(url) {
- var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- config.url = url;
- config.method = 'UPLOAD';
- return this.middleware(config);
- }
- }, {
- key: "download",
- value: function download(url) {
- var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- config.url = url;
- config.method = 'DOWNLOAD';
- return this.middleware(config);
- }
- }]);
- return Request;
- }();
- /**
- * setConfig回调
- * @return {Object} - 返回操作后的config
- * @callback Request~setConfigCallback
- * @param {Object} config - 全局默认config
- */
- exports.default = Request;
- /***/ }),
- /***/ 39:
- /*!****************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 40));
- var _default = function _default(config) {
- return (0, _index.default)(config);
- };
- exports.default = _default;
- /***/ }),
- /***/ 4:
- /*!**********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- "default": obj
- };
- }
- module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 40:
- /*!**********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/adapters/index.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 41));
- var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 43));
- var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 46));
- var _utils = __webpack_require__(/*! ../utils */ 42);
- 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; }
- 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; }
- /**
- * 返回可选值存在的配置
- * @param {Array} keys - 可选值数组
- * @param {Object} config2 - 配置
- * @return {{}} - 存在的配置项
- */
- var mergeKeys = function mergeKeys(keys, config2) {
- var config = {};
- keys.forEach(function (prop) {
- if (!(0, _utils.isUndefined)(config2[prop])) {
- config[prop] = config2[prop];
- }
- });
- return config;
- };
- var _default = function _default(config) {
- return new Promise(function (resolve, reject) {
- var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
- var _config = {
- url: fullPath,
- header: config.header,
- complete: function complete(response) {
- config.fullPath = fullPath;
- response.config = config;
- try {
- // 对可能字符串不是json 的情况容错
- if (typeof response.data === 'string') {
- response.data = JSON.parse(response.data);
- }
- // eslint-disable-next-line no-empty
- } catch (e) {}
- (0, _settle.default)(resolve, reject, response);
- }
- };
- var requestTask;
- if (config.method === 'UPLOAD') {
- delete _config.header['content-type'];
- delete _config.header['Content-Type'];
- var otherConfig = {
- filePath: config.filePath,
- name: config.name
- };
- var optionalKeys = ['formData'];
- requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
- } else if (config.method === 'DOWNLOAD') {
- requestTask = uni.downloadFile(_config);
- } else {
- var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
- requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
- }
- if (config.getTask) {
- config.getTask(requestTask, config);
- }
- });
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 41:
- /*!************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/helpers/buildURL.js ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = buildURL;
- var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 42));
- 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); }
- 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; }
- function encode(val) {
- return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
- }
- /**
- * Build a URL by appending params to the end
- *
- * @param {string} url The base of the url (e.g., http://www.google.com)
- * @param {object} [params] The params to be appended
- * @returns {string} The formatted url
- */
- function buildURL(url, params) {
- /* eslint no-param-reassign:0 */
- if (!params) {
- return url;
- }
- var serializedParams;
- if (utils.isURLSearchParams(params)) {
- serializedParams = params.toString();
- } else {
- var parts = [];
- utils.forEach(params, function (val, key) {
- if (val === null || typeof val === 'undefined') {
- return;
- }
- if (utils.isArray(val)) {
- key = "".concat(key, "[]");
- } else {
- val = [val];
- }
- utils.forEach(val, function (v) {
- if (utils.isDate(v)) {
- v = v.toISOString();
- } else if (utils.isObject(v)) {
- v = JSON.stringify(v);
- }
- parts.push("".concat(encode(key), "=").concat(encode(v)));
- });
- });
- serializedParams = parts.join('&');
- }
- if (serializedParams) {
- var hashmarkIndex = url.indexOf('#');
- if (hashmarkIndex !== -1) {
- url = url.slice(0, hashmarkIndex);
- }
- url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
- }
- return url;
- }
- /***/ }),
- /***/ 42:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/utils.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // utils is a library of generic helper functions non-specific to axios
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.deepMerge = deepMerge;
- exports.forEach = forEach;
- exports.isArray = isArray;
- exports.isBoolean = isBoolean;
- exports.isDate = isDate;
- exports.isObject = isObject;
- exports.isPlainObject = isPlainObject;
- exports.isURLSearchParams = isURLSearchParams;
- exports.isUndefined = isUndefined;
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
- var toString = Object.prototype.toString;
- /**
- * Determine if a value is an Array
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is an Array, otherwise false
- */
- function isArray(val) {
- return toString.call(val) === '[object Array]';
- }
- /**
- * Determine if a value is an Object
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is an Object, otherwise false
- */
- function isObject(val) {
- return val !== null && (0, _typeof2.default)(val) === 'object';
- }
- /**
- * Determine if a value is a Date
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a Date, otherwise false
- */
- function isDate(val) {
- return toString.call(val) === '[object Date]';
- }
- /**
- * Determine if a value is a URLSearchParams object
- *
- * @param {Object} val The value to test
- * @returns {boolean} True if value is a URLSearchParams object, otherwise false
- */
- function isURLSearchParams(val) {
- return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
- }
- /**
- * Iterate over an Array or an Object invoking a function for each item.
- *
- * If `obj` is an Array callback will be called passing
- * the value, index, and complete array for each item.
- *
- * If 'obj' is an Object callback will be called passing
- * the value, key, and complete object for each property.
- *
- * @param {Object|Array} obj The object to iterate
- * @param {Function} fn The callback to invoke for each item
- */
- function forEach(obj, fn) {
- // Don't bother if no value provided
- if (obj === null || typeof obj === 'undefined') {
- return;
- }
- // Force an array if not already something iterable
- if ((0, _typeof2.default)(obj) !== 'object') {
- /* eslint no-param-reassign:0 */
- obj = [obj];
- }
- if (isArray(obj)) {
- // Iterate over array values
- for (var i = 0, l = obj.length; i < l; i++) {
- fn.call(null, obj[i], i, obj);
- }
- } else {
- // Iterate over object keys
- for (var key in obj) {
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
- fn.call(null, obj[key], key, obj);
- }
- }
- }
- }
- /**
- * 是否为boolean 值
- * @param val
- * @returns {boolean}
- */
- function isBoolean(val) {
- return typeof val === 'boolean';
- }
- /**
- * 是否为真正的对象{} new Object
- * @param {any} obj - 检测的对象
- * @returns {boolean}
- */
- function isPlainObject(obj) {
- return Object.prototype.toString.call(obj) === '[object Object]';
- }
- /**
- * Function equal to merge with the difference being that no reference
- * to original objects is kept.
- *
- * @see merge
- * @param {Object} obj1 Object to merge
- * @returns {Object} Result of all merge properties
- */
- function deepMerge( /* obj1, obj2, obj3, ... */
- ) {
- var result = {};
- function assignValue(val, key) {
- if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
- result[key] = deepMerge(result[key], val);
- } else if ((0, _typeof2.default)(val) === 'object') {
- result[key] = deepMerge({}, val);
- } else {
- result[key] = val;
- }
- }
- for (var i = 0, l = arguments.length; i < l; i++) {
- forEach(arguments[i], assignValue);
- }
- return result;
- }
- function isUndefined(val) {
- return typeof val === 'undefined';
- }
- /***/ }),
- /***/ 43:
- /*!**************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/core/buildFullPath.js ***!
- \**************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = buildFullPath;
- var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 44));
- var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 45));
- /**
- * Creates a new URL by combining the baseURL with the requestedURL,
- * only when the requestedURL is not already an absolute URL.
- * If the requestURL is absolute, this function returns the requestedURL untouched.
- *
- * @param {string} baseURL The base URL
- * @param {string} requestedURL Absolute or relative URL to combine
- * @returns {string} The combined full path
- */
- function buildFullPath(baseURL, requestedURL) {
- if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
- return (0, _combineURLs.default)(baseURL, requestedURL);
- }
- return requestedURL;
- }
- /***/ }),
- /***/ 44:
- /*!*****************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Determines whether the specified URL is absolute
- *
- * @param {string} url The URL to test
- * @returns {boolean} True if the specified URL is absolute, otherwise false
- */
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = isAbsoluteURL;
- function isAbsoluteURL(url) {
- // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
- // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
- // by any combination of letters, digits, plus, period, or hyphen.
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
- }
- /***/ }),
- /***/ 45:
- /*!***************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
- \***************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /**
- * Creates a new URL by combining the specified URLs
- *
- * @param {string} baseURL The base URL
- * @param {string} relativeURL The relative URL
- * @returns {string} The combined URL
- */
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = combineURLs;
- function combineURLs(baseURL, relativeURL) {
- return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
- }
- /***/ }),
- /***/ 46:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/core/settle.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = settle;
- /**
- * Resolve or reject a Promise based on response status.
- *
- * @param {Function} resolve A function that resolves the promise.
- * @param {Function} reject A function that rejects the promise.
- * @param {object} response The response.
- */
- function settle(resolve, reject, response) {
- var validateStatus = response.config.validateStatus;
- var status = response.statusCode;
- if (status && (!validateStatus || validateStatus(status))) {
- resolve(response);
- } else {
- reject(response);
- }
- }
- /***/ }),
- /***/ 47:
- /*!*******************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
- \*******************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- function InterceptorManager() {
- this.handlers = [];
- }
- /**
- * Add a new interceptor to the stack
- *
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
- * @param {Function} rejected The function to handle `reject` for a `Promise`
- *
- * @return {Number} An ID used to remove interceptor later
- */
- InterceptorManager.prototype.use = function use(fulfilled, rejected) {
- this.handlers.push({
- fulfilled: fulfilled,
- rejected: rejected
- });
- return this.handlers.length - 1;
- };
- /**
- * Remove an interceptor from the stack
- *
- * @param {Number} id The ID that was returned by `use`
- */
- InterceptorManager.prototype.eject = function eject(id) {
- if (this.handlers[id]) {
- this.handlers[id] = null;
- }
- };
- /**
- * Iterate over all the registered interceptors
- *
- * This method is particularly useful for skipping over any
- * interceptors that may have become `null` calling `eject`.
- *
- * @param {Function} fn The function to call for each interceptor
- */
- InterceptorManager.prototype.forEach = function forEach(fn) {
- this.handlers.forEach(function (h) {
- if (h !== null) {
- fn(h);
- }
- });
- };
- var _default = InterceptorManager;
- exports.default = _default;
- /***/ }),
- /***/ 48:
- /*!************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/core/mergeConfig.js ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- var _utils = __webpack_require__(/*! ../utils */ 42);
- 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; }
- 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; }
- /**
- * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
- * @param {Array} keys - 配置项
- * @param {Object} globalsConfig - 当前的全局配置
- * @param {Object} config2 - 局部配置
- * @return {{}}
- */
- var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
- var config = {};
- keys.forEach(function (prop) {
- if (!(0, _utils.isUndefined)(config2[prop])) {
- config[prop] = config2[prop];
- } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
- config[prop] = globalsConfig[prop];
- }
- });
- return config;
- };
- /**
- *
- * @param globalsConfig - 当前实例的全局配置
- * @param config2 - 当前的局部配置
- * @return - 合并后的配置
- */
- var _default = function _default(globalsConfig) {
- var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var method = config2.method || globalsConfig.method || 'GET';
- var config = {
- baseURL: globalsConfig.baseURL || '',
- method: method,
- url: config2.url || '',
- params: config2.params || {},
- custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
- header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
- };
- var defaultToConfig2Keys = ['getTask', 'validateStatus'];
- config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
- // eslint-disable-next-line no-empty
- if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
- delete config.header['content-type'];
- delete config.header['Content-Type'];
- var uploadKeys = ['filePath', 'name', 'formData'];
- uploadKeys.forEach(function (prop) {
- if (!(0, _utils.isUndefined)(config2[prop])) {
- config[prop] = config2[prop];
- }
- });
- } else {
- var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
- config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
- }
- return config;
- };
- exports.default = _default;
- /***/ }),
- /***/ 49:
- /*!*********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/core/defaults.js ***!
- \*********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /**
- * 默认的全局配置
- */
- var _default = {
- baseURL: '',
- header: {},
- method: 'GET',
- dataType: 'json',
- responseType: 'text',
- custom: {},
- timeout: 60000,
- validateStatus: function validateStatus(status) {
- return status >= 200 && status < 300;
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 5:
- /*!**************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
- var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
- var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
- var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
- function _slicedToArray(arr, i) {
- return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
- }
- module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 50:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/luch-request/utils/clone.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(Buffer) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
- /* eslint-disable */
- var clone = function () {
- 'use strict';
- function _instanceof(obj, type) {
- return type != null && obj instanceof type;
- }
- var nativeMap;
- try {
- nativeMap = Map;
- } catch (_) {
- // maybe a reference error because no `Map`. Give it a dummy value that no
- // value will ever be an instanceof.
- nativeMap = function nativeMap() {};
- }
- var nativeSet;
- try {
- nativeSet = Set;
- } catch (_) {
- nativeSet = function nativeSet() {};
- }
- var nativePromise;
- try {
- nativePromise = Promise;
- } catch (_) {
- nativePromise = function nativePromise() {};
- }
- /**
- * Clones (copies) an Object using deep copying.
- *
- * This function supports circular references by default, but if you are certain
- * there are no circular references in your object, you can save some CPU time
- * by calling clone(obj, false).
- *
- * Caution: if `circular` is false and `parent` contains circular references,
- * your program may enter an infinite loop and crash.
- *
- * @param `parent` - the object to be cloned
- * @param `circular` - set to true if the object to be cloned may contain
- * circular references. (optional - true by default)
- * @param `depth` - set to a number if the object is only to be cloned to
- * a particular depth. (optional - defaults to Infinity)
- * @param `prototype` - sets the prototype to be used when cloning an object.
- * (optional - defaults to parent prototype).
- * @param `includeNonEnumerable` - set to true if the non-enumerable properties
- * should be cloned as well. Non-enumerable properties on the prototype
- * chain will be ignored. (optional - false by default)
- */
- function clone(parent, circular, depth, prototype, includeNonEnumerable) {
- if ((0, _typeof2.default)(circular) === 'object') {
- depth = circular.depth;
- prototype = circular.prototype;
- includeNonEnumerable = circular.includeNonEnumerable;
- circular = circular.circular;
- }
- // maintain two arrays for circular references, where corresponding parents
- // and children have the same index
- var allParents = [];
- var allChildren = [];
- var useBuffer = typeof Buffer != 'undefined';
- if (typeof circular == 'undefined') circular = true;
- if (typeof depth == 'undefined') depth = Infinity;
- // recurse this function so we don't reset allParents and allChildren
- function _clone(parent, depth) {
- // cloning null always returns null
- if (parent === null) return null;
- if (depth === 0) return parent;
- var child;
- var proto;
- if ((0, _typeof2.default)(parent) != 'object') {
- return parent;
- }
- if (_instanceof(parent, nativeMap)) {
- child = new nativeMap();
- } else if (_instanceof(parent, nativeSet)) {
- child = new nativeSet();
- } else if (_instanceof(parent, nativePromise)) {
- child = new nativePromise(function (resolve, reject) {
- parent.then(function (value) {
- resolve(_clone(value, depth - 1));
- }, function (err) {
- reject(_clone(err, depth - 1));
- });
- });
- } else if (clone.__isArray(parent)) {
- child = [];
- } else if (clone.__isRegExp(parent)) {
- child = new RegExp(parent.source, __getRegExpFlags(parent));
- if (parent.lastIndex) child.lastIndex = parent.lastIndex;
- } else if (clone.__isDate(parent)) {
- child = new Date(parent.getTime());
- } else if (useBuffer && Buffer.isBuffer(parent)) {
- if (Buffer.from) {
- // Node.js >= 5.10.0
- child = Buffer.from(parent);
- } else {
- // Older Node.js versions
- child = new Buffer(parent.length);
- parent.copy(child);
- }
- return child;
- } else if (_instanceof(parent, Error)) {
- child = Object.create(parent);
- } else {
- if (typeof prototype == 'undefined') {
- proto = Object.getPrototypeOf(parent);
- child = Object.create(proto);
- } else {
- child = Object.create(prototype);
- proto = prototype;
- }
- }
- if (circular) {
- var index = allParents.indexOf(parent);
- if (index != -1) {
- return allChildren[index];
- }
- allParents.push(parent);
- allChildren.push(child);
- }
- if (_instanceof(parent, nativeMap)) {
- parent.forEach(function (value, key) {
- var keyChild = _clone(key, depth - 1);
- var valueChild = _clone(value, depth - 1);
- child.set(keyChild, valueChild);
- });
- }
- if (_instanceof(parent, nativeSet)) {
- parent.forEach(function (value) {
- var entryChild = _clone(value, depth - 1);
- child.add(entryChild);
- });
- }
- for (var i in parent) {
- var attrs = Object.getOwnPropertyDescriptor(parent, i);
- if (attrs) {
- child[i] = _clone(parent[i], depth - 1);
- }
- try {
- var objProperty = Object.getOwnPropertyDescriptor(parent, i);
- if (objProperty.set === 'undefined') {
- // no setter defined. Skip cloning this property
- continue;
- }
- child[i] = _clone(parent[i], depth - 1);
- } catch (e) {
- if (e instanceof TypeError) {
- // when in strict mode, TypeError will be thrown if child[i] property only has a getter
- // we can't do anything about this, other than inform the user that this property cannot be set.
- continue;
- } else if (e instanceof ReferenceError) {
- //this may happen in non strict mode
- continue;
- }
- }
- }
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(parent);
- for (var i = 0; i < symbols.length; i++) {
- // Don't need to worry about cloning a symbol because it is a primitive,
- // like a number or string.
- var symbol = symbols[i];
- var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
- if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
- continue;
- }
- child[symbol] = _clone(parent[symbol], depth - 1);
- Object.defineProperty(child, symbol, descriptor);
- }
- }
- if (includeNonEnumerable) {
- var allPropertyNames = Object.getOwnPropertyNames(parent);
- for (var i = 0; i < allPropertyNames.length; i++) {
- var propertyName = allPropertyNames[i];
- var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
- if (descriptor && descriptor.enumerable) {
- continue;
- }
- child[propertyName] = _clone(parent[propertyName], depth - 1);
- Object.defineProperty(child, propertyName, descriptor);
- }
- }
- return child;
- }
- return _clone(parent, depth);
- }
- /**
- * Simple flat clone using prototype, accepts only objects, usefull for property
- * override on FLAT configuration object (no nested props).
- *
- * USE WITH CAUTION! This may not behave as you wish if you do not know how this
- * works.
- */
- clone.clonePrototype = function clonePrototype(parent) {
- if (parent === null) return null;
- var c = function c() {};
- c.prototype = parent;
- return new c();
- };
- // private utility functions
- function __objToStr(o) {
- return Object.prototype.toString.call(o);
- }
- clone.__objToStr = __objToStr;
- function __isDate(o) {
- return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
- }
- clone.__isDate = __isDate;
- function __isArray(o) {
- return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
- }
- clone.__isArray = __isArray;
- function __isRegExp(o) {
- return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
- }
- clone.__isRegExp = __isRegExp;
- function __getRegExpFlags(re) {
- var flags = '';
- if (re.global) flags += 'g';
- if (re.ignoreCase) flags += 'i';
- if (re.multiline) flags += 'm';
- return flags;
- }
- clone.__getRegExpFlags = __getRegExpFlags;
- return clone;
- }();
- var _default = clone;
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../工具/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 51).Buffer))
- /***/ }),
- /***/ 51:
- /*!**************************************!*\
- !*** ./node_modules/buffer/index.js ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(global) {/*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- /* eslint-disable no-proto */
- var base64 = __webpack_require__(/*! base64-js */ 52)
- var ieee754 = __webpack_require__(/*! ieee754 */ 53)
- var isArray = __webpack_require__(/*! isarray */ 54)
- exports.Buffer = Buffer
- exports.SlowBuffer = SlowBuffer
- exports.INSPECT_MAX_BYTES = 50
- /**
- * If `Buffer.TYPED_ARRAY_SUPPORT`:
- * === true Use Uint8Array implementation (fastest)
- * === false Use Object implementation (most compatible, even IE6)
- *
- * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
- * Opera 11.6+, iOS 4.2+.
- *
- * Due to various browser bugs, sometimes the Object implementation will be used even
- * when the browser supports typed arrays.
- *
- * Note:
- *
- * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
- * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
- *
- * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
- *
- * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
- * incorrect length in some situations.
- * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
- * get the Object implementation, which is slower but behaves correctly.
- */
- Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
- ? global.TYPED_ARRAY_SUPPORT
- : typedArraySupport()
- /*
- * Export kMaxLength after typed array support is determined.
- */
- exports.kMaxLength = kMaxLength()
- function typedArraySupport () {
- try {
- var arr = new Uint8Array(1)
- arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
- return arr.foo() === 42 && // typed array instances can be augmented
- typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
- arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
- } catch (e) {
- return false
- }
- }
- function kMaxLength () {
- return Buffer.TYPED_ARRAY_SUPPORT
- ? 0x7fffffff
- : 0x3fffffff
- }
- function createBuffer (that, length) {
- if (kMaxLength() < length) {
- throw new RangeError('Invalid typed array length')
- }
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- // Return an augmented `Uint8Array` instance, for best performance
- that = new Uint8Array(length)
- that.__proto__ = Buffer.prototype
- } else {
- // Fallback: Return an object instance of the Buffer class
- if (that === null) {
- that = new Buffer(length)
- }
- that.length = length
- }
- return that
- }
- /**
- * The Buffer constructor returns instances of `Uint8Array` that have their
- * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
- * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
- * and the `Uint8Array` methods. Square bracket notation works as expected -- it
- * returns a single octet.
- *
- * The `Uint8Array` prototype remains unmodified.
- */
- function Buffer (arg, encodingOrOffset, length) {
- if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
- return new Buffer(arg, encodingOrOffset, length)
- }
- // Common case.
- if (typeof arg === 'number') {
- if (typeof encodingOrOffset === 'string') {
- throw new Error(
- 'If encoding is specified then the first argument must be a string'
- )
- }
- return allocUnsafe(this, arg)
- }
- return from(this, arg, encodingOrOffset, length)
- }
- Buffer.poolSize = 8192 // not used by this implementation
- // TODO: Legacy, not needed anymore. Remove in next major version.
- Buffer._augment = function (arr) {
- arr.__proto__ = Buffer.prototype
- return arr
- }
- function from (that, value, encodingOrOffset, length) {
- if (typeof value === 'number') {
- throw new TypeError('"value" argument must not be a number')
- }
- if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
- return fromArrayBuffer(that, value, encodingOrOffset, length)
- }
- if (typeof value === 'string') {
- return fromString(that, value, encodingOrOffset)
- }
- return fromObject(that, value)
- }
- /**
- * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
- * if value is a number.
- * Buffer.from(str[, encoding])
- * Buffer.from(array)
- * Buffer.from(buffer)
- * Buffer.from(arrayBuffer[, byteOffset[, length]])
- **/
- Buffer.from = function (value, encodingOrOffset, length) {
- return from(null, value, encodingOrOffset, length)
- }
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- Buffer.prototype.__proto__ = Uint8Array.prototype
- Buffer.__proto__ = Uint8Array
- if (typeof Symbol !== 'undefined' && Symbol.species &&
- Buffer[Symbol.species] === Buffer) {
- // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
- Object.defineProperty(Buffer, Symbol.species, {
- value: null,
- configurable: true
- })
- }
- }
- function assertSize (size) {
- if (typeof size !== 'number') {
- throw new TypeError('"size" argument must be a number')
- } else if (size < 0) {
- throw new RangeError('"size" argument must not be negative')
- }
- }
- function alloc (that, size, fill, encoding) {
- assertSize(size)
- if (size <= 0) {
- return createBuffer(that, size)
- }
- if (fill !== undefined) {
- // Only pay attention to encoding if it's a string. This
- // prevents accidentally sending in a number that would
- // be interpretted as a start offset.
- return typeof encoding === 'string'
- ? createBuffer(that, size).fill(fill, encoding)
- : createBuffer(that, size).fill(fill)
- }
- return createBuffer(that, size)
- }
- /**
- * Creates a new filled Buffer instance.
- * alloc(size[, fill[, encoding]])
- **/
- Buffer.alloc = function (size, fill, encoding) {
- return alloc(null, size, fill, encoding)
- }
- function allocUnsafe (that, size) {
- assertSize(size)
- that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
- if (!Buffer.TYPED_ARRAY_SUPPORT) {
- for (var i = 0; i < size; ++i) {
- that[i] = 0
- }
- }
- return that
- }
- /**
- * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
- * */
- Buffer.allocUnsafe = function (size) {
- return allocUnsafe(null, size)
- }
- /**
- * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
- */
- Buffer.allocUnsafeSlow = function (size) {
- return allocUnsafe(null, size)
- }
- function fromString (that, string, encoding) {
- if (typeof encoding !== 'string' || encoding === '') {
- encoding = 'utf8'
- }
- if (!Buffer.isEncoding(encoding)) {
- throw new TypeError('"encoding" must be a valid string encoding')
- }
- var length = byteLength(string, encoding) | 0
- that = createBuffer(that, length)
- var actual = that.write(string, encoding)
- if (actual !== length) {
- // Writing a hex string, for example, that contains invalid characters will
- // cause everything after the first invalid character to be ignored. (e.g.
- // 'abxxcd' will be treated as 'ab')
- that = that.slice(0, actual)
- }
- return that
- }
- function fromArrayLike (that, array) {
- var length = array.length < 0 ? 0 : checked(array.length) | 0
- that = createBuffer(that, length)
- for (var i = 0; i < length; i += 1) {
- that[i] = array[i] & 255
- }
- return that
- }
- function fromArrayBuffer (that, array, byteOffset, length) {
- array.byteLength // this throws if `array` is not a valid ArrayBuffer
- if (byteOffset < 0 || array.byteLength < byteOffset) {
- throw new RangeError('\'offset\' is out of bounds')
- }
- if (array.byteLength < byteOffset + (length || 0)) {
- throw new RangeError('\'length\' is out of bounds')
- }
- if (byteOffset === undefined && length === undefined) {
- array = new Uint8Array(array)
- } else if (length === undefined) {
- array = new Uint8Array(array, byteOffset)
- } else {
- array = new Uint8Array(array, byteOffset, length)
- }
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- // Return an augmented `Uint8Array` instance, for best performance
- that = array
- that.__proto__ = Buffer.prototype
- } else {
- // Fallback: Return an object instance of the Buffer class
- that = fromArrayLike(that, array)
- }
- return that
- }
- function fromObject (that, obj) {
- if (Buffer.isBuffer(obj)) {
- var len = checked(obj.length) | 0
- that = createBuffer(that, len)
- if (that.length === 0) {
- return that
- }
- obj.copy(that, 0, 0, len)
- return that
- }
- if (obj) {
- if ((typeof ArrayBuffer !== 'undefined' &&
- obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
- if (typeof obj.length !== 'number' || isnan(obj.length)) {
- return createBuffer(that, 0)
- }
- return fromArrayLike(that, obj)
- }
- if (obj.type === 'Buffer' && isArray(obj.data)) {
- return fromArrayLike(that, obj.data)
- }
- }
- throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
- }
- function checked (length) {
- // Note: cannot use `length < kMaxLength()` here because that fails when
- // length is NaN (which is otherwise coerced to zero.)
- if (length >= kMaxLength()) {
- throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
- 'size: 0x' + kMaxLength().toString(16) + ' bytes')
- }
- return length | 0
- }
- function SlowBuffer (length) {
- if (+length != length) { // eslint-disable-line eqeqeq
- length = 0
- }
- return Buffer.alloc(+length)
- }
- Buffer.isBuffer = function isBuffer (b) {
- return !!(b != null && b._isBuffer)
- }
- Buffer.compare = function compare (a, b) {
- if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
- throw new TypeError('Arguments must be Buffers')
- }
- if (a === b) return 0
- var x = a.length
- var y = b.length
- for (var i = 0, len = Math.min(x, y); i < len; ++i) {
- if (a[i] !== b[i]) {
- x = a[i]
- y = b[i]
- break
- }
- }
- if (x < y) return -1
- if (y < x) return 1
- return 0
- }
- Buffer.isEncoding = function isEncoding (encoding) {
- switch (String(encoding).toLowerCase()) {
- case 'hex':
- case 'utf8':
- case 'utf-8':
- case 'ascii':
- case 'latin1':
- case 'binary':
- case 'base64':
- case 'ucs2':
- case 'ucs-2':
- case 'utf16le':
- case 'utf-16le':
- return true
- default:
- return false
- }
- }
- Buffer.concat = function concat (list, length) {
- if (!isArray(list)) {
- throw new TypeError('"list" argument must be an Array of Buffers')
- }
- if (list.length === 0) {
- return Buffer.alloc(0)
- }
- var i
- if (length === undefined) {
- length = 0
- for (i = 0; i < list.length; ++i) {
- length += list[i].length
- }
- }
- var buffer = Buffer.allocUnsafe(length)
- var pos = 0
- for (i = 0; i < list.length; ++i) {
- var buf = list[i]
- if (!Buffer.isBuffer(buf)) {
- throw new TypeError('"list" argument must be an Array of Buffers')
- }
- buf.copy(buffer, pos)
- pos += buf.length
- }
- return buffer
- }
- function byteLength (string, encoding) {
- if (Buffer.isBuffer(string)) {
- return string.length
- }
- if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
- (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
- return string.byteLength
- }
- if (typeof string !== 'string') {
- string = '' + string
- }
- var len = string.length
- if (len === 0) return 0
- // Use a for loop to avoid recursion
- var loweredCase = false
- for (;;) {
- switch (encoding) {
- case 'ascii':
- case 'latin1':
- case 'binary':
- return len
- case 'utf8':
- case 'utf-8':
- case undefined:
- return utf8ToBytes(string).length
- case 'ucs2':
- case 'ucs-2':
- case 'utf16le':
- case 'utf-16le':
- return len * 2
- case 'hex':
- return len >>> 1
- case 'base64':
- return base64ToBytes(string).length
- default:
- if (loweredCase) return utf8ToBytes(string).length // assume utf8
- encoding = ('' + encoding).toLowerCase()
- loweredCase = true
- }
- }
- }
- Buffer.byteLength = byteLength
- function slowToString (encoding, start, end) {
- var loweredCase = false
- // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
- // property of a typed array.
- // This behaves neither like String nor Uint8Array in that we set start/end
- // to their upper/lower bounds if the value passed is out of range.
- // undefined is handled specially as per ECMA-262 6th Edition,
- // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
- if (start === undefined || start < 0) {
- start = 0
- }
- // Return early if start > this.length. Done here to prevent potential uint32
- // coercion fail below.
- if (start > this.length) {
- return ''
- }
- if (end === undefined || end > this.length) {
- end = this.length
- }
- if (end <= 0) {
- return ''
- }
- // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
- end >>>= 0
- start >>>= 0
- if (end <= start) {
- return ''
- }
- if (!encoding) encoding = 'utf8'
- while (true) {
- switch (encoding) {
- case 'hex':
- return hexSlice(this, start, end)
- case 'utf8':
- case 'utf-8':
- return utf8Slice(this, start, end)
- case 'ascii':
- return asciiSlice(this, start, end)
- case 'latin1':
- case 'binary':
- return latin1Slice(this, start, end)
- case 'base64':
- return base64Slice(this, start, end)
- case 'ucs2':
- case 'ucs-2':
- case 'utf16le':
- case 'utf-16le':
- return utf16leSlice(this, start, end)
- default:
- if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
- encoding = (encoding + '').toLowerCase()
- loweredCase = true
- }
- }
- }
- // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
- // Buffer instances.
- Buffer.prototype._isBuffer = true
- function swap (b, n, m) {
- var i = b[n]
- b[n] = b[m]
- b[m] = i
- }
- Buffer.prototype.swap16 = function swap16 () {
- var len = this.length
- if (len % 2 !== 0) {
- throw new RangeError('Buffer size must be a multiple of 16-bits')
- }
- for (var i = 0; i < len; i += 2) {
- swap(this, i, i + 1)
- }
- return this
- }
- Buffer.prototype.swap32 = function swap32 () {
- var len = this.length
- if (len % 4 !== 0) {
- throw new RangeError('Buffer size must be a multiple of 32-bits')
- }
- for (var i = 0; i < len; i += 4) {
- swap(this, i, i + 3)
- swap(this, i + 1, i + 2)
- }
- return this
- }
- Buffer.prototype.swap64 = function swap64 () {
- var len = this.length
- if (len % 8 !== 0) {
- throw new RangeError('Buffer size must be a multiple of 64-bits')
- }
- for (var i = 0; i < len; i += 8) {
- swap(this, i, i + 7)
- swap(this, i + 1, i + 6)
- swap(this, i + 2, i + 5)
- swap(this, i + 3, i + 4)
- }
- return this
- }
- Buffer.prototype.toString = function toString () {
- var length = this.length | 0
- if (length === 0) return ''
- if (arguments.length === 0) return utf8Slice(this, 0, length)
- return slowToString.apply(this, arguments)
- }
- Buffer.prototype.equals = function equals (b) {
- if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
- if (this === b) return true
- return Buffer.compare(this, b) === 0
- }
- Buffer.prototype.inspect = function inspect () {
- var str = ''
- var max = exports.INSPECT_MAX_BYTES
- if (this.length > 0) {
- str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
- if (this.length > max) str += ' ... '
- }
- return '<Buffer ' + str + '>'
- }
- Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
- if (!Buffer.isBuffer(target)) {
- throw new TypeError('Argument must be a Buffer')
- }
- if (start === undefined) {
- start = 0
- }
- if (end === undefined) {
- end = target ? target.length : 0
- }
- if (thisStart === undefined) {
- thisStart = 0
- }
- if (thisEnd === undefined) {
- thisEnd = this.length
- }
- if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
- throw new RangeError('out of range index')
- }
- if (thisStart >= thisEnd && start >= end) {
- return 0
- }
- if (thisStart >= thisEnd) {
- return -1
- }
- if (start >= end) {
- return 1
- }
- start >>>= 0
- end >>>= 0
- thisStart >>>= 0
- thisEnd >>>= 0
- if (this === target) return 0
- var x = thisEnd - thisStart
- var y = end - start
- var len = Math.min(x, y)
- var thisCopy = this.slice(thisStart, thisEnd)
- var targetCopy = target.slice(start, end)
- for (var i = 0; i < len; ++i) {
- if (thisCopy[i] !== targetCopy[i]) {
- x = thisCopy[i]
- y = targetCopy[i]
- break
- }
- }
- if (x < y) return -1
- if (y < x) return 1
- return 0
- }
- // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
- // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
- //
- // Arguments:
- // - buffer - a Buffer to search
- // - val - a string, Buffer, or number
- // - byteOffset - an index into `buffer`; will be clamped to an int32
- // - encoding - an optional encoding, relevant is val is a string
- // - dir - true for indexOf, false for lastIndexOf
- function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
- // Empty buffer means no match
- if (buffer.length === 0) return -1
- // Normalize byteOffset
- if (typeof byteOffset === 'string') {
- encoding = byteOffset
- byteOffset = 0
- } else if (byteOffset > 0x7fffffff) {
- byteOffset = 0x7fffffff
- } else if (byteOffset < -0x80000000) {
- byteOffset = -0x80000000
- }
- byteOffset = +byteOffset // Coerce to Number.
- if (isNaN(byteOffset)) {
- // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
- byteOffset = dir ? 0 : (buffer.length - 1)
- }
- // Normalize byteOffset: negative offsets start from the end of the buffer
- if (byteOffset < 0) byteOffset = buffer.length + byteOffset
- if (byteOffset >= buffer.length) {
- if (dir) return -1
- else byteOffset = buffer.length - 1
- } else if (byteOffset < 0) {
- if (dir) byteOffset = 0
- else return -1
- }
- // Normalize val
- if (typeof val === 'string') {
- val = Buffer.from(val, encoding)
- }
- // Finally, search either indexOf (if dir is true) or lastIndexOf
- if (Buffer.isBuffer(val)) {
- // Special case: looking for empty string/buffer always fails
- if (val.length === 0) {
- return -1
- }
- return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
- } else if (typeof val === 'number') {
- val = val & 0xFF // Search for a byte value [0-255]
- if (Buffer.TYPED_ARRAY_SUPPORT &&
- typeof Uint8Array.prototype.indexOf === 'function') {
- if (dir) {
- return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
- } else {
- return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
- }
- }
- return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
- }
- throw new TypeError('val must be string, number or Buffer')
- }
- function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
- var indexSize = 1
- var arrLength = arr.length
- var valLength = val.length
- if (encoding !== undefined) {
- encoding = String(encoding).toLowerCase()
- if (encoding === 'ucs2' || encoding === 'ucs-2' ||
- encoding === 'utf16le' || encoding === 'utf-16le') {
- if (arr.length < 2 || val.length < 2) {
- return -1
- }
- indexSize = 2
- arrLength /= 2
- valLength /= 2
- byteOffset /= 2
- }
- }
- function read (buf, i) {
- if (indexSize === 1) {
- return buf[i]
- } else {
- return buf.readUInt16BE(i * indexSize)
- }
- }
- var i
- if (dir) {
- var foundIndex = -1
- for (i = byteOffset; i < arrLength; i++) {
- if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
- if (foundIndex === -1) foundIndex = i
- if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
- } else {
- if (foundIndex !== -1) i -= i - foundIndex
- foundIndex = -1
- }
- }
- } else {
- if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
- for (i = byteOffset; i >= 0; i--) {
- var found = true
- for (var j = 0; j < valLength; j++) {
- if (read(arr, i + j) !== read(val, j)) {
- found = false
- break
- }
- }
- if (found) return i
- }
- }
- return -1
- }
- Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
- return this.indexOf(val, byteOffset, encoding) !== -1
- }
- Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
- return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
- }
- Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
- return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
- }
- function hexWrite (buf, string, offset, length) {
- offset = Number(offset) || 0
- var remaining = buf.length - offset
- if (!length) {
- length = remaining
- } else {
- length = Number(length)
- if (length > remaining) {
- length = remaining
- }
- }
- // must be an even number of digits
- var strLen = string.length
- if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
- if (length > strLen / 2) {
- length = strLen / 2
- }
- for (var i = 0; i < length; ++i) {
- var parsed = parseInt(string.substr(i * 2, 2), 16)
- if (isNaN(parsed)) return i
- buf[offset + i] = parsed
- }
- return i
- }
- function utf8Write (buf, string, offset, length) {
- return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
- }
- function asciiWrite (buf, string, offset, length) {
- return blitBuffer(asciiToBytes(string), buf, offset, length)
- }
- function latin1Write (buf, string, offset, length) {
- return asciiWrite(buf, string, offset, length)
- }
- function base64Write (buf, string, offset, length) {
- return blitBuffer(base64ToBytes(string), buf, offset, length)
- }
- function ucs2Write (buf, string, offset, length) {
- return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
- }
- Buffer.prototype.write = function write (string, offset, length, encoding) {
- // Buffer#write(string)
- if (offset === undefined) {
- encoding = 'utf8'
- length = this.length
- offset = 0
- // Buffer#write(string, encoding)
- } else if (length === undefined && typeof offset === 'string') {
- encoding = offset
- length = this.length
- offset = 0
- // Buffer#write(string, offset[, length][, encoding])
- } else if (isFinite(offset)) {
- offset = offset | 0
- if (isFinite(length)) {
- length = length | 0
- if (encoding === undefined) encoding = 'utf8'
- } else {
- encoding = length
- length = undefined
- }
- // legacy write(string, encoding, offset, length) - remove in v0.13
- } else {
- throw new Error(
- 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
- )
- }
- var remaining = this.length - offset
- if (length === undefined || length > remaining) length = remaining
- if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
- throw new RangeError('Attempt to write outside buffer bounds')
- }
- if (!encoding) encoding = 'utf8'
- var loweredCase = false
- for (;;) {
- switch (encoding) {
- case 'hex':
- return hexWrite(this, string, offset, length)
- case 'utf8':
- case 'utf-8':
- return utf8Write(this, string, offset, length)
- case 'ascii':
- return asciiWrite(this, string, offset, length)
- case 'latin1':
- case 'binary':
- return latin1Write(this, string, offset, length)
- case 'base64':
- // Warning: maxLength not taken into account in base64Write
- return base64Write(this, string, offset, length)
- case 'ucs2':
- case 'ucs-2':
- case 'utf16le':
- case 'utf-16le':
- return ucs2Write(this, string, offset, length)
- default:
- if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
- encoding = ('' + encoding).toLowerCase()
- loweredCase = true
- }
- }
- }
- Buffer.prototype.toJSON = function toJSON () {
- return {
- type: 'Buffer',
- data: Array.prototype.slice.call(this._arr || this, 0)
- }
- }
- function base64Slice (buf, start, end) {
- if (start === 0 && end === buf.length) {
- return base64.fromByteArray(buf)
- } else {
- return base64.fromByteArray(buf.slice(start, end))
- }
- }
- function utf8Slice (buf, start, end) {
- end = Math.min(buf.length, end)
- var res = []
- var i = start
- while (i < end) {
- var firstByte = buf[i]
- var codePoint = null
- var bytesPerSequence = (firstByte > 0xEF) ? 4
- : (firstByte > 0xDF) ? 3
- : (firstByte > 0xBF) ? 2
- : 1
- if (i + bytesPerSequence <= end) {
- var secondByte, thirdByte, fourthByte, tempCodePoint
- switch (bytesPerSequence) {
- case 1:
- if (firstByte < 0x80) {
- codePoint = firstByte
- }
- break
- case 2:
- secondByte = buf[i + 1]
- if ((secondByte & 0xC0) === 0x80) {
- tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
- if (tempCodePoint > 0x7F) {
- codePoint = tempCodePoint
- }
- }
- break
- case 3:
- secondByte = buf[i + 1]
- thirdByte = buf[i + 2]
- if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
- tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
- if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
- codePoint = tempCodePoint
- }
- }
- break
- case 4:
- secondByte = buf[i + 1]
- thirdByte = buf[i + 2]
- fourthByte = buf[i + 3]
- if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
- tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
- if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
- codePoint = tempCodePoint
- }
- }
- }
- }
- if (codePoint === null) {
- // we did not generate a valid codePoint so insert a
- // replacement char (U+FFFD) and advance only 1 byte
- codePoint = 0xFFFD
- bytesPerSequence = 1
- } else if (codePoint > 0xFFFF) {
- // encode to utf16 (surrogate pair dance)
- codePoint -= 0x10000
- res.push(codePoint >>> 10 & 0x3FF | 0xD800)
- codePoint = 0xDC00 | codePoint & 0x3FF
- }
- res.push(codePoint)
- i += bytesPerSequence
- }
- return decodeCodePointsArray(res)
- }
- // Based on http://stackoverflow.com/a/22747272/680742, the browser with
- // the lowest limit is Chrome, with 0x10000 args.
- // We go 1 magnitude less, for safety
- var MAX_ARGUMENTS_LENGTH = 0x1000
- function decodeCodePointsArray (codePoints) {
- var len = codePoints.length
- if (len <= MAX_ARGUMENTS_LENGTH) {
- return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
- }
- // Decode in chunks to avoid "call stack size exceeded".
- var res = ''
- var i = 0
- while (i < len) {
- res += String.fromCharCode.apply(
- String,
- codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
- )
- }
- return res
- }
- function asciiSlice (buf, start, end) {
- var ret = ''
- end = Math.min(buf.length, end)
- for (var i = start; i < end; ++i) {
- ret += String.fromCharCode(buf[i] & 0x7F)
- }
- return ret
- }
- function latin1Slice (buf, start, end) {
- var ret = ''
- end = Math.min(buf.length, end)
- for (var i = start; i < end; ++i) {
- ret += String.fromCharCode(buf[i])
- }
- return ret
- }
- function hexSlice (buf, start, end) {
- var len = buf.length
- if (!start || start < 0) start = 0
- if (!end || end < 0 || end > len) end = len
- var out = ''
- for (var i = start; i < end; ++i) {
- out += toHex(buf[i])
- }
- return out
- }
- function utf16leSlice (buf, start, end) {
- var bytes = buf.slice(start, end)
- var res = ''
- for (var i = 0; i < bytes.length; i += 2) {
- res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
- }
- return res
- }
- Buffer.prototype.slice = function slice (start, end) {
- var len = this.length
- start = ~~start
- end = end === undefined ? len : ~~end
- if (start < 0) {
- start += len
- if (start < 0) start = 0
- } else if (start > len) {
- start = len
- }
- if (end < 0) {
- end += len
- if (end < 0) end = 0
- } else if (end > len) {
- end = len
- }
- if (end < start) end = start
- var newBuf
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- newBuf = this.subarray(start, end)
- newBuf.__proto__ = Buffer.prototype
- } else {
- var sliceLen = end - start
- newBuf = new Buffer(sliceLen, undefined)
- for (var i = 0; i < sliceLen; ++i) {
- newBuf[i] = this[i + start]
- }
- }
- return newBuf
- }
- /*
- * Need to make sure that buffer isn't trying to write out of bounds.
- */
- function checkOffset (offset, ext, length) {
- if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
- if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
- }
- Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
- offset = offset | 0
- byteLength = byteLength | 0
- if (!noAssert) checkOffset(offset, byteLength, this.length)
- var val = this[offset]
- var mul = 1
- var i = 0
- while (++i < byteLength && (mul *= 0x100)) {
- val += this[offset + i] * mul
- }
- return val
- }
- Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
- offset = offset | 0
- byteLength = byteLength | 0
- if (!noAssert) {
- checkOffset(offset, byteLength, this.length)
- }
- var val = this[offset + --byteLength]
- var mul = 1
- while (byteLength > 0 && (mul *= 0x100)) {
- val += this[offset + --byteLength] * mul
- }
- return val
- }
- Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 1, this.length)
- return this[offset]
- }
- Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 2, this.length)
- return this[offset] | (this[offset + 1] << 8)
- }
- Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 2, this.length)
- return (this[offset] << 8) | this[offset + 1]
- }
- Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 4, this.length)
- return ((this[offset]) |
- (this[offset + 1] << 8) |
- (this[offset + 2] << 16)) +
- (this[offset + 3] * 0x1000000)
- }
- Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 4, this.length)
- return (this[offset] * 0x1000000) +
- ((this[offset + 1] << 16) |
- (this[offset + 2] << 8) |
- this[offset + 3])
- }
- Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
- offset = offset | 0
- byteLength = byteLength | 0
- if (!noAssert) checkOffset(offset, byteLength, this.length)
- var val = this[offset]
- var mul = 1
- var i = 0
- while (++i < byteLength && (mul *= 0x100)) {
- val += this[offset + i] * mul
- }
- mul *= 0x80
- if (val >= mul) val -= Math.pow(2, 8 * byteLength)
- return val
- }
- Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
- offset = offset | 0
- byteLength = byteLength | 0
- if (!noAssert) checkOffset(offset, byteLength, this.length)
- var i = byteLength
- var mul = 1
- var val = this[offset + --i]
- while (i > 0 && (mul *= 0x100)) {
- val += this[offset + --i] * mul
- }
- mul *= 0x80
- if (val >= mul) val -= Math.pow(2, 8 * byteLength)
- return val
- }
- Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 1, this.length)
- if (!(this[offset] & 0x80)) return (this[offset])
- return ((0xff - this[offset] + 1) * -1)
- }
- Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 2, this.length)
- var val = this[offset] | (this[offset + 1] << 8)
- return (val & 0x8000) ? val | 0xFFFF0000 : val
- }
- Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 2, this.length)
- var val = this[offset + 1] | (this[offset] << 8)
- return (val & 0x8000) ? val | 0xFFFF0000 : val
- }
- Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 4, this.length)
- return (this[offset]) |
- (this[offset + 1] << 8) |
- (this[offset + 2] << 16) |
- (this[offset + 3] << 24)
- }
- Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 4, this.length)
- return (this[offset] << 24) |
- (this[offset + 1] << 16) |
- (this[offset + 2] << 8) |
- (this[offset + 3])
- }
- Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 4, this.length)
- return ieee754.read(this, offset, true, 23, 4)
- }
- Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 4, this.length)
- return ieee754.read(this, offset, false, 23, 4)
- }
- Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 8, this.length)
- return ieee754.read(this, offset, true, 52, 8)
- }
- Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
- if (!noAssert) checkOffset(offset, 8, this.length)
- return ieee754.read(this, offset, false, 52, 8)
- }
- function checkInt (buf, value, offset, ext, max, min) {
- if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
- if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
- if (offset + ext > buf.length) throw new RangeError('Index out of range')
- }
- Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
- value = +value
- offset = offset | 0
- byteLength = byteLength | 0
- if (!noAssert) {
- var maxBytes = Math.pow(2, 8 * byteLength) - 1
- checkInt(this, value, offset, byteLength, maxBytes, 0)
- }
- var mul = 1
- var i = 0
- this[offset] = value & 0xFF
- while (++i < byteLength && (mul *= 0x100)) {
- this[offset + i] = (value / mul) & 0xFF
- }
- return offset + byteLength
- }
- Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
- value = +value
- offset = offset | 0
- byteLength = byteLength | 0
- if (!noAssert) {
- var maxBytes = Math.pow(2, 8 * byteLength) - 1
- checkInt(this, value, offset, byteLength, maxBytes, 0)
- }
- var i = byteLength - 1
- var mul = 1
- this[offset + i] = value & 0xFF
- while (--i >= 0 && (mul *= 0x100)) {
- this[offset + i] = (value / mul) & 0xFF
- }
- return offset + byteLength
- }
- Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
- if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
- this[offset] = (value & 0xff)
- return offset + 1
- }
- function objectWriteUInt16 (buf, value, offset, littleEndian) {
- if (value < 0) value = 0xffff + value + 1
- for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
- buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
- (littleEndian ? i : 1 - i) * 8
- }
- }
- Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- this[offset] = (value & 0xff)
- this[offset + 1] = (value >>> 8)
- } else {
- objectWriteUInt16(this, value, offset, true)
- }
- return offset + 2
- }
- Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- this[offset] = (value >>> 8)
- this[offset + 1] = (value & 0xff)
- } else {
- objectWriteUInt16(this, value, offset, false)
- }
- return offset + 2
- }
- function objectWriteUInt32 (buf, value, offset, littleEndian) {
- if (value < 0) value = 0xffffffff + value + 1
- for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
- buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
- }
- }
- Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- this[offset + 3] = (value >>> 24)
- this[offset + 2] = (value >>> 16)
- this[offset + 1] = (value >>> 8)
- this[offset] = (value & 0xff)
- } else {
- objectWriteUInt32(this, value, offset, true)
- }
- return offset + 4
- }
- Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- this[offset] = (value >>> 24)
- this[offset + 1] = (value >>> 16)
- this[offset + 2] = (value >>> 8)
- this[offset + 3] = (value & 0xff)
- } else {
- objectWriteUInt32(this, value, offset, false)
- }
- return offset + 4
- }
- Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) {
- var limit = Math.pow(2, 8 * byteLength - 1)
- checkInt(this, value, offset, byteLength, limit - 1, -limit)
- }
- var i = 0
- var mul = 1
- var sub = 0
- this[offset] = value & 0xFF
- while (++i < byteLength && (mul *= 0x100)) {
- if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
- sub = 1
- }
- this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
- }
- return offset + byteLength
- }
- Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) {
- var limit = Math.pow(2, 8 * byteLength - 1)
- checkInt(this, value, offset, byteLength, limit - 1, -limit)
- }
- var i = byteLength - 1
- var mul = 1
- var sub = 0
- this[offset + i] = value & 0xFF
- while (--i >= 0 && (mul *= 0x100)) {
- if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
- sub = 1
- }
- this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
- }
- return offset + byteLength
- }
- Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
- if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
- if (value < 0) value = 0xff + value + 1
- this[offset] = (value & 0xff)
- return offset + 1
- }
- Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- this[offset] = (value & 0xff)
- this[offset + 1] = (value >>> 8)
- } else {
- objectWriteUInt16(this, value, offset, true)
- }
- return offset + 2
- }
- Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- this[offset] = (value >>> 8)
- this[offset + 1] = (value & 0xff)
- } else {
- objectWriteUInt16(this, value, offset, false)
- }
- return offset + 2
- }
- Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- this[offset] = (value & 0xff)
- this[offset + 1] = (value >>> 8)
- this[offset + 2] = (value >>> 16)
- this[offset + 3] = (value >>> 24)
- } else {
- objectWriteUInt32(this, value, offset, true)
- }
- return offset + 4
- }
- Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
- value = +value
- offset = offset | 0
- if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
- if (value < 0) value = 0xffffffff + value + 1
- if (Buffer.TYPED_ARRAY_SUPPORT) {
- this[offset] = (value >>> 24)
- this[offset + 1] = (value >>> 16)
- this[offset + 2] = (value >>> 8)
- this[offset + 3] = (value & 0xff)
- } else {
- objectWriteUInt32(this, value, offset, false)
- }
- return offset + 4
- }
- function checkIEEE754 (buf, value, offset, ext, max, min) {
- if (offset + ext > buf.length) throw new RangeError('Index out of range')
- if (offset < 0) throw new RangeError('Index out of range')
- }
- function writeFloat (buf, value, offset, littleEndian, noAssert) {
- if (!noAssert) {
- checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
- }
- ieee754.write(buf, value, offset, littleEndian, 23, 4)
- return offset + 4
- }
- Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
- return writeFloat(this, value, offset, true, noAssert)
- }
- Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
- return writeFloat(this, value, offset, false, noAssert)
- }
- function writeDouble (buf, value, offset, littleEndian, noAssert) {
- if (!noAssert) {
- checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
- }
- ieee754.write(buf, value, offset, littleEndian, 52, 8)
- return offset + 8
- }
- Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
- return writeDouble(this, value, offset, true, noAssert)
- }
- Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
- return writeDouble(this, value, offset, false, noAssert)
- }
- // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
- Buffer.prototype.copy = function copy (target, targetStart, start, end) {
- if (!start) start = 0
- if (!end && end !== 0) end = this.length
- if (targetStart >= target.length) targetStart = target.length
- if (!targetStart) targetStart = 0
- if (end > 0 && end < start) end = start
- // Copy 0 bytes; we're done
- if (end === start) return 0
- if (target.length === 0 || this.length === 0) return 0
- // Fatal error conditions
- if (targetStart < 0) {
- throw new RangeError('targetStart out of bounds')
- }
- if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
- if (end < 0) throw new RangeError('sourceEnd out of bounds')
- // Are we oob?
- if (end > this.length) end = this.length
- if (target.length - targetStart < end - start) {
- end = target.length - targetStart + start
- }
- var len = end - start
- var i
- if (this === target && start < targetStart && targetStart < end) {
- // descending copy from end
- for (i = len - 1; i >= 0; --i) {
- target[i + targetStart] = this[i + start]
- }
- } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
- // ascending copy from start
- for (i = 0; i < len; ++i) {
- target[i + targetStart] = this[i + start]
- }
- } else {
- Uint8Array.prototype.set.call(
- target,
- this.subarray(start, start + len),
- targetStart
- )
- }
- return len
- }
- // Usage:
- // buffer.fill(number[, offset[, end]])
- // buffer.fill(buffer[, offset[, end]])
- // buffer.fill(string[, offset[, end]][, encoding])
- Buffer.prototype.fill = function fill (val, start, end, encoding) {
- // Handle string cases:
- if (typeof val === 'string') {
- if (typeof start === 'string') {
- encoding = start
- start = 0
- end = this.length
- } else if (typeof end === 'string') {
- encoding = end
- end = this.length
- }
- if (val.length === 1) {
- var code = val.charCodeAt(0)
- if (code < 256) {
- val = code
- }
- }
- if (encoding !== undefined && typeof encoding !== 'string') {
- throw new TypeError('encoding must be a string')
- }
- if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
- throw new TypeError('Unknown encoding: ' + encoding)
- }
- } else if (typeof val === 'number') {
- val = val & 255
- }
- // Invalid ranges are not set to a default, so can range check early.
- if (start < 0 || this.length < start || this.length < end) {
- throw new RangeError('Out of range index')
- }
- if (end <= start) {
- return this
- }
- start = start >>> 0
- end = end === undefined ? this.length : end >>> 0
- if (!val) val = 0
- var i
- if (typeof val === 'number') {
- for (i = start; i < end; ++i) {
- this[i] = val
- }
- } else {
- var bytes = Buffer.isBuffer(val)
- ? val
- : utf8ToBytes(new Buffer(val, encoding).toString())
- var len = bytes.length
- for (i = 0; i < end - start; ++i) {
- this[i + start] = bytes[i % len]
- }
- }
- return this
- }
- // HELPER FUNCTIONS
- // ================
- var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
- function base64clean (str) {
- // Node strips out invalid characters like \n and \t from the string, base64-js does not
- str = stringtrim(str).replace(INVALID_BASE64_RE, '')
- // Node converts strings with length < 2 to ''
- if (str.length < 2) return ''
- // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
- while (str.length % 4 !== 0) {
- str = str + '='
- }
- return str
- }
- function stringtrim (str) {
- if (str.trim) return str.trim()
- return str.replace(/^\s+|\s+$/g, '')
- }
- function toHex (n) {
- if (n < 16) return '0' + n.toString(16)
- return n.toString(16)
- }
- function utf8ToBytes (string, units) {
- units = units || Infinity
- var codePoint
- var length = string.length
- var leadSurrogate = null
- var bytes = []
- for (var i = 0; i < length; ++i) {
- codePoint = string.charCodeAt(i)
- // is surrogate component
- if (codePoint > 0xD7FF && codePoint < 0xE000) {
- // last char was a lead
- if (!leadSurrogate) {
- // no lead yet
- if (codePoint > 0xDBFF) {
- // unexpected trail
- if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
- continue
- } else if (i + 1 === length) {
- // unpaired lead
- if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
- continue
- }
- // valid lead
- leadSurrogate = codePoint
- continue
- }
- // 2 leads in a row
- if (codePoint < 0xDC00) {
- if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
- leadSurrogate = codePoint
- continue
- }
- // valid surrogate pair
- codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
- } else if (leadSurrogate) {
- // valid bmp char, but last char was a lead
- if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
- }
- leadSurrogate = null
- // encode utf8
- if (codePoint < 0x80) {
- if ((units -= 1) < 0) break
- bytes.push(codePoint)
- } else if (codePoint < 0x800) {
- if ((units -= 2) < 0) break
- bytes.push(
- codePoint >> 0x6 | 0xC0,
- codePoint & 0x3F | 0x80
- )
- } else if (codePoint < 0x10000) {
- if ((units -= 3) < 0) break
- bytes.push(
- codePoint >> 0xC | 0xE0,
- codePoint >> 0x6 & 0x3F | 0x80,
- codePoint & 0x3F | 0x80
- )
- } else if (codePoint < 0x110000) {
- if ((units -= 4) < 0) break
- bytes.push(
- codePoint >> 0x12 | 0xF0,
- codePoint >> 0xC & 0x3F | 0x80,
- codePoint >> 0x6 & 0x3F | 0x80,
- codePoint & 0x3F | 0x80
- )
- } else {
- throw new Error('Invalid code point')
- }
- }
- return bytes
- }
- function asciiToBytes (str) {
- var byteArray = []
- for (var i = 0; i < str.length; ++i) {
- // Node's code seems to be doing this and not & 0x7F..
- byteArray.push(str.charCodeAt(i) & 0xFF)
- }
- return byteArray
- }
- function utf16leToBytes (str, units) {
- var c, hi, lo
- var byteArray = []
- for (var i = 0; i < str.length; ++i) {
- if ((units -= 2) < 0) break
- c = str.charCodeAt(i)
- hi = c >> 8
- lo = c % 256
- byteArray.push(lo)
- byteArray.push(hi)
- }
- return byteArray
- }
- function base64ToBytes (str) {
- return base64.toByteArray(base64clean(str))
- }
- function blitBuffer (src, dst, offset, length) {
- for (var i = 0; i < length; ++i) {
- if ((i + offset >= dst.length) || (i >= src.length)) break
- dst[i + offset] = src[i]
- }
- return i
- }
- function isnan (val) {
- return val !== val // eslint-disable-line no-self-compare
- }
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
- /***/ }),
- /***/ 52:
- /*!*****************************************!*\
- !*** ./node_modules/base64-js/index.js ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- exports.byteLength = byteLength
- exports.toByteArray = toByteArray
- exports.fromByteArray = fromByteArray
- var lookup = []
- var revLookup = []
- var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
- var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
- for (var i = 0, len = code.length; i < len; ++i) {
- lookup[i] = code[i]
- revLookup[code.charCodeAt(i)] = i
- }
- // Support decoding URL-safe base64 strings, as Node.js does.
- // See: https://en.wikipedia.org/wiki/Base64#URL_applications
- revLookup['-'.charCodeAt(0)] = 62
- revLookup['_'.charCodeAt(0)] = 63
- function getLens (b64) {
- var len = b64.length
- if (len % 4 > 0) {
- throw new Error('Invalid string. Length must be a multiple of 4')
- }
- // Trim off extra bytes after placeholder bytes are found
- // See: https://github.com/beatgammit/base64-js/issues/42
- var validLen = b64.indexOf('=')
- if (validLen === -1) validLen = len
- var placeHoldersLen = validLen === len
- ? 0
- : 4 - (validLen % 4)
- return [validLen, placeHoldersLen]
- }
- // base64 is 4/3 + up to two characters of the original data
- function byteLength (b64) {
- var lens = getLens(b64)
- var validLen = lens[0]
- var placeHoldersLen = lens[1]
- return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
- }
- function _byteLength (b64, validLen, placeHoldersLen) {
- return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
- }
- function toByteArray (b64) {
- var tmp
- var lens = getLens(b64)
- var validLen = lens[0]
- var placeHoldersLen = lens[1]
- var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
- var curByte = 0
- // if there are placeholders, only get up to the last complete 4 chars
- var len = placeHoldersLen > 0
- ? validLen - 4
- : validLen
- var i
- for (i = 0; i < len; i += 4) {
- tmp =
- (revLookup[b64.charCodeAt(i)] << 18) |
- (revLookup[b64.charCodeAt(i + 1)] << 12) |
- (revLookup[b64.charCodeAt(i + 2)] << 6) |
- revLookup[b64.charCodeAt(i + 3)]
- arr[curByte++] = (tmp >> 16) & 0xFF
- arr[curByte++] = (tmp >> 8) & 0xFF
- arr[curByte++] = tmp & 0xFF
- }
- if (placeHoldersLen === 2) {
- tmp =
- (revLookup[b64.charCodeAt(i)] << 2) |
- (revLookup[b64.charCodeAt(i + 1)] >> 4)
- arr[curByte++] = tmp & 0xFF
- }
- if (placeHoldersLen === 1) {
- tmp =
- (revLookup[b64.charCodeAt(i)] << 10) |
- (revLookup[b64.charCodeAt(i + 1)] << 4) |
- (revLookup[b64.charCodeAt(i + 2)] >> 2)
- arr[curByte++] = (tmp >> 8) & 0xFF
- arr[curByte++] = tmp & 0xFF
- }
- return arr
- }
- function tripletToBase64 (num) {
- return lookup[num >> 18 & 0x3F] +
- lookup[num >> 12 & 0x3F] +
- lookup[num >> 6 & 0x3F] +
- lookup[num & 0x3F]
- }
- function encodeChunk (uint8, start, end) {
- var tmp
- var output = []
- for (var i = start; i < end; i += 3) {
- tmp =
- ((uint8[i] << 16) & 0xFF0000) +
- ((uint8[i + 1] << 8) & 0xFF00) +
- (uint8[i + 2] & 0xFF)
- output.push(tripletToBase64(tmp))
- }
- return output.join('')
- }
- function fromByteArray (uint8) {
- var tmp
- var len = uint8.length
- var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
- var parts = []
- var maxChunkLength = 16383 // must be multiple of 3
- // go through the array every three bytes, we'll deal with trailing stuff later
- for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
- parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
- }
- // pad the end with zeros, but make sure to not forget the extra bytes
- if (extraBytes === 1) {
- tmp = uint8[len - 1]
- parts.push(
- lookup[tmp >> 2] +
- lookup[(tmp << 4) & 0x3F] +
- '=='
- )
- } else if (extraBytes === 2) {
- tmp = (uint8[len - 2] << 8) + uint8[len - 1]
- parts.push(
- lookup[tmp >> 10] +
- lookup[(tmp >> 4) & 0x3F] +
- lookup[(tmp << 2) & 0x3F] +
- '='
- )
- }
- return parts.join('')
- }
- /***/ }),
- /***/ 53:
- /*!***************************************!*\
- !*** ./node_modules/ieee754/index.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- exports.read = function (buffer, offset, isLE, mLen, nBytes) {
- var e, m
- var eLen = (nBytes * 8) - mLen - 1
- var eMax = (1 << eLen) - 1
- var eBias = eMax >> 1
- var nBits = -7
- var i = isLE ? (nBytes - 1) : 0
- var d = isLE ? -1 : 1
- var s = buffer[offset + i]
- i += d
- e = s & ((1 << (-nBits)) - 1)
- s >>= (-nBits)
- nBits += eLen
- for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
- m = e & ((1 << (-nBits)) - 1)
- e >>= (-nBits)
- nBits += mLen
- for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
- if (e === 0) {
- e = 1 - eBias
- } else if (e === eMax) {
- return m ? NaN : ((s ? -1 : 1) * Infinity)
- } else {
- m = m + Math.pow(2, mLen)
- e = e - eBias
- }
- return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
- }
- exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
- var e, m, c
- var eLen = (nBytes * 8) - mLen - 1
- var eMax = (1 << eLen) - 1
- var eBias = eMax >> 1
- var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
- var i = isLE ? 0 : (nBytes - 1)
- var d = isLE ? 1 : -1
- var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
- value = Math.abs(value)
- if (isNaN(value) || value === Infinity) {
- m = isNaN(value) ? 1 : 0
- e = eMax
- } else {
- e = Math.floor(Math.log(value) / Math.LN2)
- if (value * (c = Math.pow(2, -e)) < 1) {
- e--
- c *= 2
- }
- if (e + eBias >= 1) {
- value += rt / c
- } else {
- value += rt * Math.pow(2, 1 - eBias)
- }
- if (value * c >= 2) {
- e++
- c /= 2
- }
- if (e + eBias >= eMax) {
- m = 0
- e = eMax
- } else if (e + eBias >= 1) {
- m = ((value * c) - 1) * Math.pow(2, mLen)
- e = e + eBias
- } else {
- m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
- e = 0
- }
- }
- for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
- e = (e << mLen) | m
- eLen += mLen
- for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
- buffer[offset + i - d] |= s * 128
- }
- /***/ }),
- /***/ 54:
- /*!***************************************!*\
- !*** ./node_modules/isarray/index.js ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = Array.isArray || function (arr) {
- return toString.call(arr) == '[object Array]';
- };
- /***/ }),
- /***/ 55:
- /*!*****************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/util/route.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
- var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
- var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
- var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
- /**
- * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
- * 并且带有路由拦截功能
- */
- var Router = /*#__PURE__*/function () {
- function Router() {
- (0, _classCallCheck2.default)(this, Router);
- // 原始属性定义
- this.config = {
- type: 'navigateTo',
- url: '',
- delta: 1,
- // navigateBack页面后退时,回退的层数
- params: {},
- // 传递的参数
- animationType: 'pop-in',
- // 窗口动画,只在APP有效
- animationDuration: 300,
- // 窗口动画持续时间,单位毫秒,只在APP有效
- intercept: false // 是否需要拦截
- };
- // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
- // 这里在构造函数中进行this绑定
- this.route = this.route.bind(this);
- }
- // 判断url前面是否有"/",如果没有则加上,否则无法跳转
- (0, _createClass2.default)(Router, [{
- key: "addRootPath",
- value: function addRootPath(url) {
- return url[0] === '/' ? url : "/".concat(url);
- }
- // 整合路由参数
- }, {
- key: "mixinParam",
- value: function mixinParam(url, params) {
- url = url && this.addRootPath(url);
- // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
- // 如果有url中有get参数,转换后无需带上"?"
- var query = '';
- if (/.*\/.*\?.*=.*/.test(url)) {
- // object对象转为get类型的参数
- query = uni.$u.queryParams(params, false);
- // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
- return url += "&".concat(query);
- }
- // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
- query = uni.$u.queryParams(params);
- return url += query;
- }
- // 对外的方法名称
- }, {
- key: "route",
- value: function () {
- var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
- var options,
- params,
- mergeConfig,
- isNext,
- _args = arguments;
- return _regenerator.default.wrap(function _callee$(_context) {
- while (1) {
- switch (_context.prev = _context.next) {
- case 0:
- options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
- params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
- // 合并用户的配置和内部的默认配置
- mergeConfig = {};
- if (typeof options === 'string') {
- // 如果options为字符串,则为route(url, params)的形式
- mergeConfig.url = this.mixinParam(options, params);
- mergeConfig.type = 'navigateTo';
- } else {
- mergeConfig = uni.$u.deepMerge(this.config, options);
- // 否则正常使用mergeConfig中的url和params进行拼接
- mergeConfig.url = this.mixinParam(options.url, options.params);
- }
- // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
- if (!(mergeConfig.url === uni.$u.page())) {
- _context.next = 6;
- break;
- }
- return _context.abrupt("return");
- case 6:
- if (params.intercept) {
- this.config.intercept = params.intercept;
- }
- // params参数也带给拦截器
- mergeConfig.params = params;
- // 合并内外部参数
- mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
- // 判断用户是否定义了拦截器
- if (!(typeof uni.$u.routeIntercept === 'function')) {
- _context.next = 16;
- break;
- }
- _context.next = 12;
- return new Promise(function (resolve, reject) {
- uni.$u.routeIntercept(mergeConfig, resolve);
- });
- case 12:
- isNext = _context.sent;
- // 如果isNext为true,则执行路由跳转
- isNext && this.openPage(mergeConfig);
- _context.next = 17;
- break;
- case 16:
- this.openPage(mergeConfig);
- case 17:
- case "end":
- return _context.stop();
- }
- }
- }, _callee, this);
- }));
- function route() {
- return _route.apply(this, arguments);
- }
- return route;
- }() // 执行路由跳转
- }, {
- key: "openPage",
- value: function openPage(config) {
- // 解构参数
- var url = config.url,
- type = config.type,
- delta = config.delta,
- animationType = config.animationType,
- animationDuration = config.animationDuration;
- if (config.type == 'navigateTo' || config.type == 'to') {
- uni.navigateTo({
- url: url,
- animationType: animationType,
- animationDuration: animationDuration
- });
- }
- if (config.type == 'redirectTo' || config.type == 'redirect') {
- uni.redirectTo({
- url: url
- });
- }
- if (config.type == 'switchTab' || config.type == 'tab') {
- uni.switchTab({
- url: url
- });
- }
- if (config.type == 'reLaunch' || config.type == 'launch') {
- uni.reLaunch({
- url: url
- });
- }
- if (config.type == 'navigateBack' || config.type == 'back') {
- uni.navigateBack({
- delta: delta
- });
- }
- }
- }]);
- return Router;
- }();
- var _default = new Router().route;
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 56:
- /*!************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
- \************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // TODO(Babel 8): Remove this file.
- var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 57)();
- module.exports = runtime;
- /***/ }),
- /***/ 57:
- /*!*******************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
- function _regeneratorRuntime() {
- "use strict";
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
- return e;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
- var t,
- e = {},
- r = Object.prototype,
- n = r.hasOwnProperty,
- o = Object.defineProperty || function (t, e, r) {
- t[e] = r.value;
- },
- i = "function" == typeof Symbol ? Symbol : {},
- a = i.iterator || "@@iterator",
- c = i.asyncIterator || "@@asyncIterator",
- u = i.toStringTag || "@@toStringTag";
- function define(t, e, r) {
- return Object.defineProperty(t, e, {
- value: r,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }), t[e];
- }
- try {
- define({}, "");
- } catch (t) {
- define = function define(t, e, r) {
- return t[e] = r;
- };
- }
- function wrap(t, e, r, n) {
- var i = e && e.prototype instanceof Generator ? e : Generator,
- a = Object.create(i.prototype),
- c = new Context(n || []);
- return o(a, "_invoke", {
- value: makeInvokeMethod(t, r, c)
- }), a;
- }
- function tryCatch(t, e, r) {
- try {
- return {
- type: "normal",
- arg: t.call(e, r)
- };
- } catch (t) {
- return {
- type: "throw",
- arg: t
- };
- }
- }
- e.wrap = wrap;
- var h = "suspendedStart",
- l = "suspendedYield",
- f = "executing",
- s = "completed",
- y = {};
- function Generator() {}
- function GeneratorFunction() {}
- function GeneratorFunctionPrototype() {}
- var p = {};
- define(p, a, function () {
- return this;
- });
- var d = Object.getPrototypeOf,
- v = d && d(d(values([])));
- v && v !== r && n.call(v, a) && (p = v);
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
- function defineIteratorMethods(t) {
- ["next", "throw", "return"].forEach(function (e) {
- define(t, e, function (t) {
- return this._invoke(e, t);
- });
- });
- }
- function AsyncIterator(t, e) {
- function invoke(r, o, i, a) {
- var c = tryCatch(t[r], t, o);
- if ("throw" !== c.type) {
- var u = c.arg,
- h = u.value;
- return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
- invoke("next", t, i, a);
- }, function (t) {
- invoke("throw", t, i, a);
- }) : e.resolve(h).then(function (t) {
- u.value = t, i(u);
- }, function (t) {
- return invoke("throw", t, i, a);
- });
- }
- a(c.arg);
- }
- var r;
- o(this, "_invoke", {
- value: function value(t, n) {
- function callInvokeWithMethodAndArg() {
- return new e(function (e, r) {
- invoke(t, n, e, r);
- });
- }
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
- }
- });
- }
- function makeInvokeMethod(e, r, n) {
- var o = h;
- return function (i, a) {
- if (o === f) throw Error("Generator is already running");
- if (o === s) {
- if ("throw" === i) throw a;
- return {
- value: t,
- done: !0
- };
- }
- for (n.method = i, n.arg = a;;) {
- var c = n.delegate;
- if (c) {
- var u = maybeInvokeDelegate(c, n);
- if (u) {
- if (u === y) continue;
- return u;
- }
- }
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
- if (o === h) throw o = s, n.arg;
- n.dispatchException(n.arg);
- } else "return" === n.method && n.abrupt("return", n.arg);
- o = f;
- var p = tryCatch(e, r, n);
- if ("normal" === p.type) {
- if (o = n.done ? s : l, p.arg === y) continue;
- return {
- value: p.arg,
- done: n.done
- };
- }
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
- }
- };
- }
- function maybeInvokeDelegate(e, r) {
- var n = r.method,
- o = e.iterator[n];
- if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
- var i = tryCatch(o, e.iterator, r.arg);
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
- var a = i.arg;
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
- }
- function pushTryEntry(t) {
- var e = {
- tryLoc: t[0]
- };
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
- }
- function resetTryEntry(t) {
- var e = t.completion || {};
- e.type = "normal", delete e.arg, t.completion = e;
- }
- function Context(t) {
- this.tryEntries = [{
- tryLoc: "root"
- }], t.forEach(pushTryEntry, this), this.reset(!0);
- }
- function values(e) {
- if (e || "" === e) {
- var r = e[a];
- if (r) return r.call(e);
- if ("function" == typeof e.next) return e;
- if (!isNaN(e.length)) {
- var o = -1,
- i = function next() {
- for (; ++o < e.length;) {
- if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
- }
- return next.value = t, next.done = !0, next;
- };
- return i.next = i;
- }
- }
- throw new TypeError(_typeof(e) + " is not iterable");
- }
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
- value: GeneratorFunctionPrototype,
- configurable: !0
- }), o(GeneratorFunctionPrototype, "constructor", {
- value: GeneratorFunction,
- configurable: !0
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
- var e = "function" == typeof t && t.constructor;
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
- }, e.mark = function (t) {
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
- }, e.awrap = function (t) {
- return {
- __await: t
- };
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
- return this;
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
- void 0 === i && (i = Promise);
- var a = new AsyncIterator(wrap(t, r, n, o), i);
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
- return t.done ? t.value : a.next();
- });
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
- return this;
- }), define(g, "toString", function () {
- return "[object Generator]";
- }), e.keys = function (t) {
- var e = Object(t),
- r = [];
- for (var n in e) {
- r.push(n);
- }
- return r.reverse(), function next() {
- for (; r.length;) {
- var t = r.pop();
- if (t in e) return next.value = t, next.done = !1, next;
- }
- return next.done = !0, next;
- };
- }, e.values = values, Context.prototype = {
- constructor: Context,
- reset: function reset(e) {
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
- "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
- }
- },
- stop: function stop() {
- this.done = !0;
- var t = this.tryEntries[0].completion;
- if ("throw" === t.type) throw t.arg;
- return this.rval;
- },
- dispatchException: function dispatchException(e) {
- if (this.done) throw e;
- var r = this;
- function handle(n, o) {
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
- }
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
- var i = this.tryEntries[o],
- a = i.completion;
- if ("root" === i.tryLoc) return handle("end");
- if (i.tryLoc <= this.prev) {
- var c = n.call(i, "catchLoc"),
- u = n.call(i, "finallyLoc");
- if (c && u) {
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
- } else if (c) {
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
- } else {
- if (!u) throw Error("try statement without catch or finally");
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
- }
- }
- }
- },
- abrupt: function abrupt(t, e) {
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
- var o = this.tryEntries[r];
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
- var i = o;
- break;
- }
- }
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
- var a = i ? i.completion : {};
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
- },
- complete: function complete(t, e) {
- if ("throw" === t.type) throw t.arg;
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
- },
- finish: function finish(t) {
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
- var r = this.tryEntries[e];
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
- }
- },
- "catch": function _catch(t) {
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
- var r = this.tryEntries[e];
- if (r.tryLoc === t) {
- var n = r.completion;
- if ("throw" === n.type) {
- var o = n.arg;
- resetTryEntry(r);
- }
- return o;
- }
- }
- throw Error("illegal catch attempt");
- },
- delegateYield: function delegateYield(e, r, n) {
- return this.delegate = {
- iterator: values(e),
- resultName: r,
- nextLoc: n
- }, "next" === this.method && (this.arg = t), y;
- }
- }, e;
- }
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 58:
- /*!*****************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
- try {
- var info = gen[key](arg);
- var value = info.value;
- } catch (error) {
- reject(error);
- return;
- }
- if (info.done) {
- resolve(value);
- } else {
- Promise.resolve(value).then(_next, _throw);
- }
- }
- function _asyncToGenerator(fn) {
- return function () {
- var self = this,
- args = arguments;
- return new Promise(function (resolve, reject) {
- var gen = fn.apply(self, args);
- function _next(value) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
- }
- function _throw(err) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
- }
- _next(undefined);
- });
- };
- }
- module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 59:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/function/colorGradient.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /**
- * 求两个颜色之间的渐变值
- * @param {string} startColor 开始的颜色
- * @param {string} endColor 结束的颜色
- * @param {number} step 颜色等分的份额
- * */
- function colorGradient() {
- var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
- var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
- var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
- var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
- var startR = startRGB[0];
- var startG = startRGB[1];
- var startB = startRGB[2];
- var endRGB = hexToRgb(endColor, false);
- var endR = endRGB[0];
- var endG = endRGB[1];
- var endB = endRGB[2];
- var sR = (endR - startR) / step; // 总差值
- var sG = (endG - startG) / step;
- var sB = (endB - startB) / step;
- var colorArr = [];
- for (var i = 0; i < step; i++) {
- // 计算每一步的hex值
- var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
- // 确保第一个颜色值为startColor的值
- if (i === 0) hex = rgbToHex(startColor);
- // 确保最后一个颜色值为endColor的值
- if (i === step - 1) hex = rgbToHex(endColor);
- colorArr.push(hex);
- }
- return colorArr;
- }
- // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
- function hexToRgb(sColor) {
- var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
- sColor = String(sColor).toLowerCase();
- if (sColor && reg.test(sColor)) {
- if (sColor.length === 4) {
- var sColorNew = '#';
- for (var i = 1; i < 4; i += 1) {
- sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
- }
- sColor = sColorNew;
- }
- // 处理六位的颜色值
- var sColorChange = [];
- for (var _i = 1; _i < 7; _i += 2) {
- sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
- }
- if (!str) {
- return sColorChange;
- }
- return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
- }
- if (/^(rgb|RGB)/.test(sColor)) {
- var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
- return arr.map(function (val) {
- return Number(val);
- });
- }
- return sColor;
- }
- // 将rgb表示方式转换为hex表示方式
- function rgbToHex(rgb) {
- var _this = rgb;
- var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
- if (/^(rgb|RGB)/.test(_this)) {
- var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
- var strHex = '#';
- for (var i = 0; i < aColor.length; i++) {
- var hex = Number(aColor[i]).toString(16);
- hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
- if (hex === '0') {
- hex += hex;
- }
- strHex += hex;
- }
- if (strHex.length !== 7) {
- strHex = _this;
- }
- return strHex;
- }
- if (reg.test(_this)) {
- var aNum = _this.replace(/#/, '').split('');
- if (aNum.length === 6) {
- return _this;
- }
- if (aNum.length === 3) {
- var numHex = '#';
- for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
- numHex += aNum[_i2] + aNum[_i2];
- }
- return numHex;
- }
- } else {
- return _this;
- }
- }
- /**
- * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
- * sHex为传入的十六进制的色值
- * alpha为rgba的透明度
- */
- function colorToRgba(color, alpha) {
- color = rgbToHex(color);
- // 十六进制颜色值的正则表达式
- var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
- /* 16进制颜色转为RGB格式 */
- var sColor = String(color).toLowerCase();
- if (sColor && reg.test(sColor)) {
- if (sColor.length === 4) {
- var sColorNew = '#';
- for (var i = 1; i < 4; i += 1) {
- sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
- }
- sColor = sColorNew;
- }
- // 处理六位的颜色值
- var sColorChange = [];
- for (var _i3 = 1; _i3 < 7; _i3 += 2) {
- sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
- }
- // return sColorChange.join(',')
- return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
- }
- return sColor;
- }
- var _default = {
- colorGradient: colorGradient,
- hexToRgb: hexToRgb,
- rgbToHex: rgbToHex,
- colorToRgba: colorToRgba
- };
- exports.default = _default;
- /***/ }),
- /***/ 6:
- /*!***************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _arrayWithHoles(arr) {
- if (Array.isArray(arr)) return arr;
- }
- module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 60:
- /*!********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/function/test.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
- /**
- * 验证电子邮箱格式
- */
- function email(value) {
- return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
- }
- /**
- * 验证手机格式
- */
- function mobile(value) {
- return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
- }
- /**
- * 验证URL格式
- */
- function url(value) {
- 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);
- }
- /**
- * 验证日期格式
- */
- function date(value) {
- if (!value) return false;
- // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
- if (number(value)) value = +value;
- return !/Invalid|NaN/.test(new Date(value).toString());
- }
- /**
- * 验证ISO类型的日期格式
- */
- function dateISO(value) {
- return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
- }
- /**
- * 验证十进制数字
- */
- function number(value) {
- return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
- }
- /**
- * 验证字符串
- */
- function string(value) {
- return typeof value === 'string';
- }
- /**
- * 验证整数
- */
- function digits(value) {
- return /^\d+$/.test(value);
- }
- /**
- * 验证身份证号码
- */
- function idCard(value) {
- 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);
- }
- /**
- * 是否车牌号
- */
- function carNo(value) {
- // 新能源车牌
- var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
- // 旧车牌
- var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
- if (value.length === 7) {
- return creg.test(value);
- }
- if (value.length === 8) {
- return xreg.test(value);
- }
- return false;
- }
- /**
- * 金额,只允许2位小数
- */
- function amount(value) {
- // 金额,只允许保留两位小数
- return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
- }
- /**
- * 中文
- */
- function chinese(value) {
- var reg = /^[\u4e00-\u9fa5]+$/gi;
- return reg.test(value);
- }
- /**
- * 只能输入字母
- */
- function letter(value) {
- return /^[a-zA-Z]*$/.test(value);
- }
- /**
- * 只能是字母或者数字
- */
- function enOrNum(value) {
- // 英文或者数字
- var reg = /^[0-9a-zA-Z]*$/g;
- return reg.test(value);
- }
- /**
- * 验证是否包含某个值
- */
- function contains(value, param) {
- return value.indexOf(param) >= 0;
- }
- /**
- * 验证一个值范围[min, max]
- */
- function range(value, param) {
- return value >= param[0] && value <= param[1];
- }
- /**
- * 验证一个长度范围[min, max]
- */
- function rangeLength(value, param) {
- return value.length >= param[0] && value.length <= param[1];
- }
- /**
- * 是否固定电话
- */
- function landline(value) {
- var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
- return reg.test(value);
- }
- /**
- * 判断是否为空
- */
- function empty(value) {
- switch ((0, _typeof2.default)(value)) {
- case 'undefined':
- return true;
- case 'string':
- if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
- break;
- case 'boolean':
- if (!value) return true;
- break;
- case 'number':
- if (value === 0 || isNaN(value)) return true;
- break;
- case 'object':
- if (value === null || value.length === 0) return true;
- for (var i in value) {
- return false;
- }
- return true;
- }
- return false;
- }
- /**
- * 是否json字符串
- */
- function jsonString(value) {
- if (typeof value === 'string') {
- try {
- var obj = JSON.parse(value);
- if ((0, _typeof2.default)(obj) === 'object' && obj) {
- return true;
- }
- return false;
- } catch (e) {
- return false;
- }
- }
- return false;
- }
- /**
- * 是否数组
- */
- function array(value) {
- if (typeof Array.isArray === 'function') {
- return Array.isArray(value);
- }
- return Object.prototype.toString.call(value) === '[object Array]';
- }
- /**
- * 是否对象
- */
- function object(value) {
- return Object.prototype.toString.call(value) === '[object Object]';
- }
- /**
- * 是否短信验证码
- */
- function code(value) {
- var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
- return new RegExp("^\\d{".concat(len, "}$")).test(value);
- }
- /**
- * 是否函数方法
- * @param {Object} value
- */
- function func(value) {
- return typeof value === 'function';
- }
- /**
- * 是否promise对象
- * @param {Object} value
- */
- function promise(value) {
- return object(value) && func(value.then) && func(value.catch);
- }
- /** 是否图片格式
- * @param {Object} value
- */
- function image(value) {
- var newValue = value.split('?')[0];
- var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
- return IMAGE_REGEXP.test(newValue);
- }
- /**
- * 是否视频格式
- * @param {Object} value
- */
- function video(value) {
- var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
- return VIDEO_REGEXP.test(value);
- }
- /**
- * 是否为正则对象
- * @param {Object}
- * @return {Boolean}
- */
- function regExp(o) {
- return o && Object.prototype.toString.call(o) === '[object RegExp]';
- }
- var _default = {
- email: email,
- mobile: mobile,
- url: url,
- date: date,
- dateISO: dateISO,
- number: number,
- digits: digits,
- idCard: idCard,
- carNo: carNo,
- amount: amount,
- chinese: chinese,
- letter: letter,
- enOrNum: enOrNum,
- contains: contains,
- range: range,
- rangeLength: rangeLength,
- empty: empty,
- isEmpty: empty,
- jsonString: jsonString,
- landline: landline,
- object: object,
- array: array,
- code: code,
- func: func,
- promise: promise,
- video: video,
- image: image,
- regExp: regExp,
- string: string
- };
- exports.default = _default;
- /***/ }),
- /***/ 61:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/function/debounce.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var timeout = null;
- /**
- * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
- *
- * @param {Function} func 要执行的回调函数
- * @param {Number} wait 延时的时间
- * @param {Boolean} immediate 是否立即执行
- * @return null
- */
- function debounce(func) {
- var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
- var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
- // 清除定时器
- if (timeout !== null) clearTimeout(timeout);
- // 立即执行,此类情况一般用不到
- if (immediate) {
- var callNow = !timeout;
- timeout = setTimeout(function () {
- timeout = null;
- }, wait);
- if (callNow) typeof func === 'function' && func();
- } else {
- // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
- timeout = setTimeout(function () {
- typeof func === 'function' && func();
- }, wait);
- }
- }
- var _default = debounce;
- exports.default = _default;
- /***/ }),
- /***/ 62:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/function/throttle.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var timer;
- var flag;
- /**
- * 节流原理:在一定时间内,只能触发一次
- *
- * @param {Function} func 要执行的回调函数
- * @param {Number} wait 延时的时间
- * @param {Boolean} immediate 是否立即执行
- * @return null
- */
- function throttle(func) {
- var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
- var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
- if (immediate) {
- if (!flag) {
- flag = true;
- // 如果是立即执行,则在wait毫秒内开始时执行
- typeof func === 'function' && func();
- timer = setTimeout(function () {
- flag = false;
- }, wait);
- }
- } else if (!flag) {
- flag = true;
- // 如果是非立即执行,则在wait毫秒内的结束处执行
- timer = setTimeout(function () {
- flag = false;
- typeof func === 'function' && func();
- }, wait);
- }
- }
- var _default = throttle;
- exports.default = _default;
- /***/ }),
- /***/ 63:
- /*!*********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/function/index.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
- var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
- var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 60));
- var _digit = __webpack_require__(/*! ./digit.js */ 64);
- /**
- * @description 如果value小于min,取min;如果value大于max,取max
- * @param {number} min
- * @param {number} max
- * @param {number} value
- */
- function range() {
- var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
- var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
- var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
- return Math.max(min, Math.min(max, Number(value)));
- }
- /**
- * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
- * @param {number|string} value 用户传递值的px值
- * @param {boolean} unit
- * @returns {number|string}
- */
- function getPx(value) {
- var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- if (_test.default.number(value)) {
- return unit ? "".concat(value, "px") : Number(value);
- }
- // 如果带有rpx,先取出其数值部分,再转为px值
- if (/(rpx|upx)$/.test(value)) {
- return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
- }
- return unit ? "".concat(parseInt(value), "px") : parseInt(value);
- }
- /**
- * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
- * @param {number} value 堵塞时间 单位ms 毫秒
- * @returns {Promise} 返回promise
- */
- function sleep() {
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
- return new Promise(function (resolve) {
- setTimeout(function () {
- resolve();
- }, value);
- });
- }
- /**
- * @description 运行期判断平台
- * @returns {string} 返回所在平台(小写)
- * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
- */
- function os() {
- return uni.getSystemInfoSync().platform.toLowerCase();
- }
- /**
- * @description 获取系统信息同步接口
- * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
- */
- function sys() {
- return uni.getSystemInfoSync();
- }
- /**
- * @description 取一个区间数
- * @param {Number} min 最小值
- * @param {Number} max 最大值
- */
- function random(min, max) {
- if (min >= 0 && max > 0 && max >= min) {
- var gab = max - min + 1;
- return Math.floor(Math.random() * gab + min);
- }
- return 0;
- }
- /**
- * @param {Number} len uuid的长度
- * @param {Boolean} firstU 将返回的首字母置为"u"
- * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
- */
- function guid() {
- var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
- var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
- var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
- var uuid = [];
- radix = radix || chars.length;
- if (len) {
- // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
- for (var i = 0; i < len; i++) {
- uuid[i] = chars[0 | Math.random() * radix];
- }
- } else {
- var r;
- // rfc4122标准要求返回的uuid中,某些位为固定的字符
- uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
- uuid[14] = '4';
- for (var _i = 0; _i < 36; _i++) {
- if (!uuid[_i]) {
- r = 0 | Math.random() * 16;
- uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
- }
- }
- }
- // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
- if (firstU) {
- uuid.shift();
- return "u".concat(uuid.join(''));
- }
- return uuid.join('');
- }
- /**
- * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
- this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
- 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
- 值(默认为undefined),就是查找最顶层的$parent
- * @param {string|undefined} name 父组件的参数名
- */
- function $parent() {
- var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
- var parent = this.$parent;
- // 通过while历遍,这里主要是为了H5需要多层解析的问题
- while (parent) {
- // 父组件
- if (parent.$options && parent.$options.name !== name) {
- // 如果组件的name不相等,继续上一级寻找
- parent = parent.$parent;
- } else {
- return parent;
- }
- }
- return false;
- }
- /**
- * @description 样式转换
- * 对象转字符串,或者字符串转对象
- * @param {object | string} customStyle 需要转换的目标
- * @param {String} target 转换的目的,object-转为对象,string-转为字符串
- * @returns {object|string}
- */
- function addStyle(customStyle) {
- var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
- // 字符串转字符串,对象转对象情形,直接返回
- if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
- return customStyle;
- }
- // 字符串转对象
- if (target === 'object') {
- // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
- customStyle = trim(customStyle);
- // 根据";"将字符串转为数组形式
- var styleArray = customStyle.split(';');
- var style = {};
- // 历遍数组,拼接成对象
- for (var i = 0; i < styleArray.length; i++) {
- // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
- if (styleArray[i]) {
- var item = styleArray[i].split(':');
- style[trim(item[0])] = trim(item[1]);
- }
- }
- return style;
- }
- // 这里为对象转字符串形式
- var string = '';
- for (var _i2 in customStyle) {
- // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
- var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
- string += "".concat(key, ":").concat(customStyle[_i2], ";");
- }
- // 去除两端空格
- return trim(string);
- }
- /**
- * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
- * @param {string|number} value 需要添加单位的值
- * @param {string} unit 添加的单位名 比如px
- */
- function addUnit() {
- var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
- 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';
- value = String(value);
- // 用uView内置验证规则中的number判断是否为数值
- return _test.default.number(value) ? "".concat(value).concat(unit) : value;
- }
- /**
- * @description 深度克隆
- * @param {object} obj 需要深度克隆的对象
- * @param cache 缓存
- * @returns {*} 克隆后的对象或者原值(不是对象)
- */
- function deepClone(obj) {
- var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
- if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
- if (cache.has(obj)) return cache.get(obj);
- var clone;
- if (obj instanceof Date) {
- clone = new Date(obj.getTime());
- } else if (obj instanceof RegExp) {
- clone = new RegExp(obj);
- } else if (obj instanceof Map) {
- clone = new Map(Array.from(obj, function (_ref) {
- var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
- key = _ref2[0],
- value = _ref2[1];
- return [key, deepClone(value, cache)];
- }));
- } else if (obj instanceof Set) {
- clone = new Set(Array.from(obj, function (value) {
- return deepClone(value, cache);
- }));
- } else if (Array.isArray(obj)) {
- clone = obj.map(function (value) {
- return deepClone(value, cache);
- });
- } else if (Object.prototype.toString.call(obj) === '[object Object]') {
- clone = Object.create(Object.getPrototypeOf(obj));
- cache.set(obj, clone);
- for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
- var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
- key = _Object$entries$_i[0],
- value = _Object$entries$_i[1];
- clone[key] = deepClone(value, cache);
- }
- } else {
- clone = Object.assign({}, obj);
- }
- cache.set(obj, clone);
- return clone;
- }
- /**
- * @description JS对象深度合并
- * @param {object} target 需要拷贝的对象
- * @param {object} source 拷贝的来源对象
- * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
- */
- function deepMerge() {
- var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- target = deepClone(target);
- if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
- var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
- for (var prop in source) {
- if (!source.hasOwnProperty(prop)) continue;
- var sourceValue = source[prop];
- var targetValue = merged[prop];
- if (sourceValue instanceof Date) {
- merged[prop] = new Date(sourceValue);
- } else if (sourceValue instanceof RegExp) {
- merged[prop] = new RegExp(sourceValue);
- } else if (sourceValue instanceof Map) {
- merged[prop] = new Map(sourceValue);
- } else if (sourceValue instanceof Set) {
- merged[prop] = new Set(sourceValue);
- } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
- merged[prop] = deepMerge(targetValue, sourceValue);
- } else {
- merged[prop] = sourceValue;
- }
- }
- return merged;
- }
- /**
- * @description error提示
- * @param {*} err 错误内容
- */
- function error(err) {
- // 开发环境才提示,生产环境不会提示
- if (true) {
- console.error("uView\u63D0\u793A\uFF1A".concat(err));
- }
- }
- /**
- * @description 打乱数组
- * @param {array} array 需要打乱的数组
- * @returns {array} 打乱后的数组
- */
- function randomArray() {
- var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
- return array.sort(function () {
- return Math.random() - 0.5;
- });
- }
- // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
- // 所以这里做一个兼容polyfill的兼容处理
- if (!String.prototype.padStart) {
- // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
- String.prototype.padStart = function (maxLength) {
- var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
- if (Object.prototype.toString.call(fillString) !== '[object String]') {
- throw new TypeError('fillString must be String');
- }
- var str = this;
- // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
- if (str.length >= maxLength) return String(str);
- var fillLength = maxLength - str.length;
- var times = Math.ceil(fillLength / fillString.length);
- while (times >>= 1) {
- fillString += fillString;
- if (times === 1) {
- fillString += fillString;
- }
- }
- return fillString.slice(0, fillLength) + str;
- };
- }
- /**
- * @description 格式化时间
- * @param {String|Number} dateTime 需要格式化的时间戳
- * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
- * @returns {string} 返回格式化后的字符串
- */
- function timeFormat() {
- var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
- var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
- var date;
- // 若传入时间为假值,则取当前时间
- if (!dateTime) {
- date = new Date();
- }
- // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
- else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
- date = new Date(dateTime * 1000);
- }
- // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
- else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
- date = new Date(Number(dateTime));
- }
- // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
- // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
- else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
- date = new Date(dateTime.replace(/-/g, '/'));
- }
- // 其他都认为符合 RFC 2822 规范
- else {
- date = new Date(dateTime);
- }
- var timeSource = {
- 'y': date.getFullYear().toString(),
- // 年
- 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
- // 月
- 'd': date.getDate().toString().padStart(2, '0'),
- // 日
- 'h': date.getHours().toString().padStart(2, '0'),
- // 时
- 'M': date.getMinutes().toString().padStart(2, '0'),
- // 分
- 's': date.getSeconds().toString().padStart(2, '0') // 秒
- // 有其他格式化字符需求可以继续添加,必须转化成字符串
- };
- for (var key in timeSource) {
- var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
- _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
- ret = _ref4[0];
- if (ret) {
- // 年可能只需展示两位
- var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
- formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
- }
- }
- return formatStr;
- }
- /**
- * @description 时间戳转为多久之前
- * @param {String|Number} timestamp 时间戳
- * @param {String|Boolean} format
- * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
- * 如果为布尔值false,无论什么时间,都返回多久以前的格式
- * @returns {string} 转化后的内容
- */
- function timeFrom() {
- var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
- if (timestamp == null) timestamp = Number(new Date());
- timestamp = parseInt(timestamp);
- // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
- if (timestamp.toString().length == 10) timestamp *= 1000;
- var timer = new Date().getTime() - timestamp;
- timer = parseInt(timer / 1000);
- // 如果小于5分钟,则返回"刚刚",其他以此类推
- var tips = '';
- switch (true) {
- case timer < 300:
- tips = '刚刚';
- break;
- case timer >= 300 && timer < 3600:
- tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
- break;
- case timer >= 3600 && timer < 86400:
- tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
- break;
- case timer >= 86400 && timer < 2592000:
- tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
- break;
- default:
- // 如果format为false,则无论什么时间戳,都显示xx之前
- if (format === false) {
- if (timer >= 2592000 && timer < 365 * 86400) {
- tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
- } else {
- tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
- }
- } else {
- tips = timeFormat(timestamp, format);
- }
- }
- return tips;
- }
- /**
- * @description 去除空格
- * @param String str 需要去除空格的字符串
- * @param String pos both(左右)|left|right|all 默认both
- */
- function trim(str) {
- var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
- str = String(str);
- if (pos == 'both') {
- return str.replace(/^\s+|\s+$/g, '');
- }
- if (pos == 'left') {
- return str.replace(/^\s*/, '');
- }
- if (pos == 'right') {
- return str.replace(/(\s*$)/g, '');
- }
- if (pos == 'all') {
- return str.replace(/\s+/g, '');
- }
- return str;
- }
- /**
- * @description 对象转url参数
- * @param {object} data,对象
- * @param {Boolean} isPrefix,是否自动加上"?"
- * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
- */
- function queryParams() {
- var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
- var prefix = isPrefix ? '?' : '';
- var _result = [];
- if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
- var _loop = function _loop(key) {
- var value = data[key];
- // 去掉为空的参数
- if (['', undefined, null].indexOf(value) >= 0) {
- return "continue";
- }
- // 如果值为数组,另行处理
- if (value.constructor === Array) {
- // e.g. {ids: [1, 2, 3]}
- switch (arrayFormat) {
- case 'indices':
- // 结果: ids[0]=1&ids[1]=2&ids[2]=3
- for (var i = 0; i < value.length; i++) {
- _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
- }
- break;
- case 'brackets':
- // 结果: ids[]=1&ids[]=2&ids[]=3
- value.forEach(function (_value) {
- _result.push("".concat(key, "[]=").concat(_value));
- });
- break;
- case 'repeat':
- // 结果: ids=1&ids=2&ids=3
- value.forEach(function (_value) {
- _result.push("".concat(key, "=").concat(_value));
- });
- break;
- case 'comma':
- // 结果: ids=1,2,3
- var commaStr = '';
- value.forEach(function (_value) {
- commaStr += (commaStr ? ',' : '') + _value;
- });
- _result.push("".concat(key, "=").concat(commaStr));
- break;
- default:
- value.forEach(function (_value) {
- _result.push("".concat(key, "[]=").concat(_value));
- });
- }
- } else {
- _result.push("".concat(key, "=").concat(value));
- }
- };
- for (var key in data) {
- var _ret = _loop(key);
- if (_ret === "continue") continue;
- }
- return _result.length ? prefix + _result.join('&') : '';
- }
- /**
- * 显示消息提示框
- * @param {String} title 提示的内容,长度与 icon 取值有关。
- * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
- */
- function toast(title) {
- var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
- uni.showToast({
- title: String(title),
- icon: 'none',
- duration: duration
- });
- }
- /**
- * @description 根据主题type值,获取对应的图标
- * @param {String} type 主题名称,primary|info|error|warning|success
- * @param {boolean} fill 是否使用fill填充实体的图标
- */
- function type2icon() {
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
- var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- // 如果非预置值,默认为success
- if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
- var iconName = '';
- // 目前(2019-12-12),info和primary使用同一个图标
- switch (type) {
- case 'primary':
- iconName = 'info-circle';
- break;
- case 'info':
- iconName = 'info-circle';
- break;
- case 'error':
- iconName = 'close-circle';
- break;
- case 'warning':
- iconName = 'error-circle';
- break;
- case 'success':
- iconName = 'checkmark-circle';
- break;
- default:
- iconName = 'checkmark-circle';
- }
- // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
- if (fill) iconName += '-fill';
- return iconName;
- }
- /**
- * @description 数字格式化
- * @param {number|string} number 要格式化的数字
- * @param {number} decimals 保留几位小数
- * @param {string} decimalPoint 小数点符号
- * @param {string} thousandsSeparator 千分位符号
- * @returns {string} 格式化后的数字
- */
- function priceFormat(number) {
- var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
- var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
- var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
- number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
- var n = !isFinite(+number) ? 0 : +number;
- var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
- var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
- var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
- var s = '';
- s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
- var re = /(-?\d+)(\d{3})/;
- while (re.test(s[0])) {
- s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
- }
- if ((s[1] || '').length < prec) {
- s[1] = s[1] || '';
- s[1] += new Array(prec - s[1].length + 1).join('0');
- }
- return s.join(dec);
- }
- /**
- * @description 获取duration值
- * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
- * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
- * @param {String|number} value 比如: "1s"|"100ms"|1|100
- * @param {boolean} unit 提示: 如果是false 默认返回number
- * @return {string|number}
- */
- function getDuration(value) {
- var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var valueNum = parseInt(value);
- if (unit) {
- if (/s$/.test(value)) return value;
- return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
- }
- if (/ms$/.test(value)) return valueNum;
- if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
- return valueNum;
- }
- /**
- * @description 日期的月或日补零操作
- * @param {String} value 需要补零的值
- */
- function padZero(value) {
- return "00".concat(value).slice(-2);
- }
- /**
- * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
- * @param {*} instance
- * @param {*} event
- */
- function formValidate(instance, event) {
- var formItem = uni.$u.$parent.call(instance, 'u-form-item');
- var form = uni.$u.$parent.call(instance, 'u-form');
- // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
- // 同时将form-item的pros传递给form,让其进行精确对象验证
- if (formItem && form) {
- form.validateField(formItem.prop, function () {}, event);
- }
- }
- /**
- * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
- * @param {object} obj 对象
- * @param {string} key 需要获取的属性字段
- * @returns {*}
- */
- function getProperty(obj, key) {
- if (!obj) {
- return;
- }
- if (typeof key !== 'string' || key === '') {
- return '';
- }
- if (key.indexOf('.') !== -1) {
- var keys = key.split('.');
- var firstObj = obj[keys[0]] || {};
- for (var i = 1; i < keys.length; i++) {
- if (firstObj) {
- firstObj = firstObj[keys[i]];
- }
- }
- return firstObj;
- }
- return obj[key];
- }
- /**
- * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
- * @param {object} obj 对象
- * @param {string} key 需要设置的属性
- * @param {string} value 设置的值
- */
- function setProperty(obj, key, value) {
- if (!obj) {
- return;
- }
- // 递归赋值
- var inFn = function inFn(_obj, keys, v) {
- // 最后一个属性key
- if (keys.length === 1) {
- _obj[keys[0]] = v;
- return;
- }
- // 0~length-1个key
- while (keys.length > 1) {
- var k = keys[0];
- if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
- _obj[k] = {};
- }
- var _key = keys.shift();
- // 自调用判断是否存在属性,不存在则自动创建对象
- inFn(_obj[k], keys, v);
- }
- };
- if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
- // 支持多层级赋值操作
- var keys = key.split('.');
- inFn(obj, keys, value);
- } else {
- obj[key] = value;
- }
- }
- /**
- * @description 获取当前页面路径
- */
- function page() {
- var _pages$route, _pages;
- var pages = getCurrentPages();
- // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
- return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
- }
- /**
- * @description 获取当前路由栈实例数组
- */
- function pages() {
- var pages = getCurrentPages();
- return pages;
- }
- /**
- * 获取页面历史栈指定层实例
- * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
- */
- function getHistoryPage() {
- var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
- var pages = getCurrentPages();
- var len = pages.length;
- return pages[len - 1 + back];
- }
- /**
- * @description 修改uView内置属性值
- * @param {object} props 修改内置props属性
- * @param {object} config 修改内置config属性
- * @param {object} color 修改内置color属性
- * @param {object} zIndex 修改内置zIndex属性
- */
- function setConfig(_ref5) {
- var _ref5$props = _ref5.props,
- props = _ref5$props === void 0 ? {} : _ref5$props,
- _ref5$config = _ref5.config,
- config = _ref5$config === void 0 ? {} : _ref5$config,
- _ref5$color = _ref5.color,
- color = _ref5$color === void 0 ? {} : _ref5$color,
- _ref5$zIndex = _ref5.zIndex,
- zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
- var deepMerge = uni.$u.deepMerge;
- uni.$u.config = deepMerge(uni.$u.config, config);
- uni.$u.props = deepMerge(uni.$u.props, props);
- uni.$u.color = deepMerge(uni.$u.color, color);
- uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
- }
- var _default = {
- range: range,
- getPx: getPx,
- sleep: sleep,
- os: os,
- sys: sys,
- random: random,
- guid: guid,
- $parent: $parent,
- addStyle: addStyle,
- addUnit: addUnit,
- deepClone: deepClone,
- deepMerge: deepMerge,
- error: error,
- randomArray: randomArray,
- timeFormat: timeFormat,
- timeFrom: timeFrom,
- trim: trim,
- queryParams: queryParams,
- toast: toast,
- type2icon: type2icon,
- priceFormat: priceFormat,
- getDuration: getDuration,
- padZero: padZero,
- formValidate: formValidate,
- getProperty: getProperty,
- setProperty: setProperty,
- page: page,
- pages: pages,
- getHistoryPage: getHistoryPage,
- setConfig: setConfig
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 64:
- /*!*********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/function/digit.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- exports.divide = divide;
- exports.enableBoundaryChecking = enableBoundaryChecking;
- exports.minus = minus;
- exports.plus = plus;
- exports.round = round;
- exports.times = times;
- var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 65));
- var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
- /**
- * 把错误的数据转正
- * @private
- * @example strip(0.09999999999999998)=0.1
- */
- function strip(num) {
- var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
- return +parseFloat(Number(num).toPrecision(precision));
- }
- /**
- * Return digits length of a number
- * @private
- * @param {*number} num Input number
- */
- function digitLength(num) {
- // Get digit length of e
- var eSplit = num.toString().split(/[eE]/);
- var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
- return len > 0 ? len : 0;
- }
- /**
- * 把小数转成整数,如果是小数则放大成整数
- * @private
- * @param {*number} num 输入数
- */
- function float2Fixed(num) {
- if (num.toString().indexOf('e') === -1) {
- return Number(num.toString().replace('.', ''));
- }
- var dLen = digitLength(num);
- return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
- }
- /**
- * 检测数字是否越界,如果越界给出提示
- * @private
- * @param {*number} num 输入数
- */
- function checkBoundary(num) {
- if (_boundaryCheckingState) {
- if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
- console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
- }
- }
- }
- /**
- * 把递归操作扁平迭代化
- * @param {number[]} arr 要操作的数字数组
- * @param {function} operation 迭代操作
- * @private
- */
- function iteratorOperation(arr, operation) {
- var _arr = (0, _toArray2.default)(arr),
- num1 = _arr[0],
- num2 = _arr[1],
- others = _arr.slice(2);
- var res = operation(num1, num2);
- others.forEach(function (num) {
- res = operation(res, num);
- });
- return res;
- }
- /**
- * 高精度乘法
- * @export
- */
- function times() {
- for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
- nums[_key] = arguments[_key];
- }
- if (nums.length > 2) {
- return iteratorOperation(nums, times);
- }
- var num1 = nums[0],
- num2 = nums[1];
- var num1Changed = float2Fixed(num1);
- var num2Changed = float2Fixed(num2);
- var baseNum = digitLength(num1) + digitLength(num2);
- var leftValue = num1Changed * num2Changed;
- checkBoundary(leftValue);
- return leftValue / Math.pow(10, baseNum);
- }
- /**
- * 高精度加法
- * @export
- */
- function plus() {
- for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- nums[_key2] = arguments[_key2];
- }
- if (nums.length > 2) {
- return iteratorOperation(nums, plus);
- }
- var num1 = nums[0],
- num2 = nums[1];
- // 取最大的小数位
- var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
- // 把小数都转为整数然后再计算
- return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
- }
- /**
- * 高精度减法
- * @export
- */
- function minus() {
- for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
- nums[_key3] = arguments[_key3];
- }
- if (nums.length > 2) {
- return iteratorOperation(nums, minus);
- }
- var num1 = nums[0],
- num2 = nums[1];
- var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
- return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
- }
- /**
- * 高精度除法
- * @export
- */
- function divide() {
- for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
- nums[_key4] = arguments[_key4];
- }
- if (nums.length > 2) {
- return iteratorOperation(nums, divide);
- }
- var num1 = nums[0],
- num2 = nums[1];
- var num1Changed = float2Fixed(num1);
- var num2Changed = float2Fixed(num2);
- checkBoundary(num1Changed);
- checkBoundary(num2Changed);
- // 重要,这里必须用strip进行修正
- return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
- }
- /**
- * 四舍五入
- * @export
- */
- function round(num, ratio) {
- var base = Math.pow(10, ratio);
- var result = divide(Math.round(Math.abs(times(num, base))), base);
- if (num < 0 && result !== 0) {
- result = times(result, -1);
- }
- // 位数不足则补0
- return result;
- }
- /**
- * 是否进行边界检查,默认开启
- * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
- * @export
- */
- function enableBoundaryChecking() {
- var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
- _boundaryCheckingState = flag;
- }
- var _default = {
- times: times,
- plus: plus,
- minus: minus,
- divide: divide,
- round: round,
- enableBoundaryChecking: enableBoundaryChecking
- };
- exports.default = _default;
- /***/ }),
- /***/ 65:
- /*!********************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
- var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
- var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
- var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
- function _toArray(arr) {
- return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
- }
- module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 66:
- /*!********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/config.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- // 此版本发布于2024-03-17
- var version = '2.0.37';
- // 开发环境才提示,生产环境不会提示
- if (true) {
- console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
- }
- var _default = {
- v: version,
- version: version,
- // 主题名称
- type: ['primary', 'success', 'info', 'error', 'warning'],
- // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
- color: {
- 'u-primary': '#2979ff',
- 'u-warning': '#ff9900',
- 'u-success': '#19be6b',
- 'u-error': '#fa3534',
- 'u-info': '#909399',
- 'u-main-color': '#303133',
- 'u-content-color': '#606266',
- 'u-tips-color': '#909399',
- 'u-light-color': '#c0c4cc'
- },
- // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
- unit: 'px'
- };
- exports.default = _default;
- /***/ }),
- /***/ 67:
- /*!*******************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
- var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 66));
- var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 68));
- var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 69));
- var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 70));
- var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 71));
- var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 72));
- var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 73));
- var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 74));
- var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 75));
- var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 76));
- var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 77));
- var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 78));
- var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 79));
- var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 80));
- var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 81));
- var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 82));
- var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 83));
- var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 84));
- var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 85));
- var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 86));
- var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 87));
- var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 88));
- var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 89));
- var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 90));
- var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 91));
- var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 92));
- var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 93));
- var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 94));
- var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 95));
- var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 96));
- var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 97));
- var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 98));
- var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 99));
- var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 100));
- var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 101));
- var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 102));
- var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 103));
- var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 104));
- var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 105));
- var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 106));
- var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 107));
- var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 108));
- var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 109));
- var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 110));
- var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 111));
- var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 112));
- var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 113));
- var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 114));
- var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 116));
- var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 117));
- var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 118));
- var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 119));
- var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 120));
- var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 121));
- var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 122));
- var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 123));
- var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 124));
- var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 125));
- var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 126));
- var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 127));
- var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 128));
- var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 129));
- var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 130));
- var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 131));
- var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 132));
- var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 133));
- var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 134));
- var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 135));
- var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 136));
- var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 137));
- var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 138));
- var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 139));
- var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 140));
- var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 141));
- var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 142));
- var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 143));
- var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 144));
- var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 145));
- var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 146));
- var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 147));
- var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 148));
- var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 149));
- var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 150));
- var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 151));
- var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 152));
- var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 153));
- var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 154));
- var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 155));
- var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 156));
- 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; }
- 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; }
- var color = _config.default.color;
- 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);
- exports.default = _default;
- /***/ }),
- /***/ 68:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/actionSheet.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:44:35
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
- */
- var _default = {
- // action-sheet组件
- actionSheet: {
- show: false,
- title: '',
- description: '',
- actions: function actions() {
- return [];
- },
- index: '',
- cancelText: '',
- closeOnClickAction: true,
- safeAreaInsetBottom: true,
- openType: '',
- closeOnClickOverlay: true,
- round: 0
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 69:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/album.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:47:24
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
- */
- var _default = {
- // album 组件
- album: {
- urls: function urls() {
- return [];
- },
- keyName: '',
- singleSize: 180,
- multipleSize: 70,
- space: 6,
- singleMode: 'scaleToFill',
- multipleMode: 'aspectFill',
- maxCount: 9,
- previewFullImage: true,
- rowCount: 3,
- showMore: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 7:
- /*!*********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _iterableToArrayLimit(r, l) {
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
- if (null != t) {
- var e,
- n,
- i,
- u,
- a = [],
- f = !0,
- o = !1;
- try {
- if (i = (t = t.call(r)).next, 0 === l) {
- if (Object(t) !== t) return;
- f = !1;
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
- ;
- }
- } catch (r) {
- o = !0, n = r;
- } finally {
- try {
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
- } finally {
- if (o) throw n;
- }
- }
- return a;
- }
- }
- module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 70:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/alert.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:48:53
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
- */
- var _default = {
- // alert警告组件
- alert: {
- title: '',
- type: 'warning',
- description: '',
- closable: false,
- showIcon: false,
- effect: 'light',
- center: false,
- fontSize: 14
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 71:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/avatar.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:49:22
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
- */
- var _default = {
- // avatar 组件
- avatar: {
- src: '',
- shape: 'circle',
- size: 40,
- mode: 'scaleToFill',
- text: '',
- bgColor: '#c0c4cc',
- color: '#ffffff',
- fontSize: 18,
- icon: '',
- mpAvatar: false,
- randomBgColor: false,
- defaultUrl: '',
- colorIndex: '',
- name: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 72:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/avatarGroup.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:49:55
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
- */
- var _default = {
- // avatarGroup 组件
- avatarGroup: {
- urls: function urls() {
- return [];
- },
- maxCount: 5,
- shape: 'circle',
- mode: 'scaleToFill',
- showMore: true,
- size: 40,
- keyName: '',
- gap: 0.5,
- extraValue: 0
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 73:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/backtop.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:50:18
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
- */
- var _default = {
- // backtop组件
- backtop: {
- mode: 'circle',
- icon: 'arrow-upward',
- text: '',
- duration: 100,
- scrollTop: 0,
- top: 400,
- bottom: 100,
- right: 20,
- zIndex: 9,
- iconStyle: function iconStyle() {
- return {
- color: '#909399',
- fontSize: '19px'
- };
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 74:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/badge.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-23 19:51:50
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
- */
- var _default = {
- // 徽标数组件
- badge: {
- isDot: false,
- value: '',
- show: true,
- max: 999,
- type: 'error',
- showZero: false,
- bgColor: null,
- color: null,
- shape: 'circle',
- numberType: 'overflow',
- offset: function offset() {
- return [];
- },
- inverted: false,
- absolute: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 75:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/button.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:51:27
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
- */
- var _default = {
- // button组件
- button: {
- hairline: false,
- type: 'info',
- size: 'normal',
- shape: 'square',
- plain: false,
- disabled: false,
- loading: false,
- loadingText: '',
- loadingMode: 'spinner',
- loadingSize: 15,
- openType: '',
- formType: '',
- appParameter: '',
- hoverStopPropagation: true,
- lang: 'en',
- sessionFrom: '',
- sendMessageTitle: '',
- sendMessagePath: '',
- sendMessageImg: '',
- showMessageCard: false,
- dataName: '',
- throttleTime: 0,
- hoverStartTime: 0,
- hoverStayTime: 200,
- text: '',
- icon: '',
- iconColor: '',
- color: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 76:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/calendar.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:52:43
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
- */
- var _default = {
- // calendar 组件
- calendar: {
- title: '日期选择',
- showTitle: true,
- showSubtitle: true,
- mode: 'single',
- startText: '开始',
- endText: '结束',
- customList: function customList() {
- return [];
- },
- color: '#3c9cff',
- minDate: 0,
- maxDate: 0,
- defaultDate: null,
- maxCount: Number.MAX_SAFE_INTEGER,
- // Infinity
- rowHeight: 56,
- formatter: null,
- showLunar: false,
- showMark: true,
- confirmText: '确定',
- confirmDisabledText: '确定',
- show: false,
- closeOnClickOverlay: false,
- readonly: false,
- showConfirm: true,
- maxRange: Number.MAX_SAFE_INTEGER,
- // Infinity
- rangePrompt: '',
- showRangePrompt: true,
- allowSameDay: false,
- round: 0,
- monthNum: 3
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 77:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/carKeyboard.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:53:20
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
- */
- var _default = {
- // 车牌号键盘
- carKeyboard: {
- random: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 78:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/cell.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-23 20:53:09
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
- */
- var _default = {
- // cell组件的props
- cell: {
- customClass: '',
- title: '',
- label: '',
- value: '',
- icon: '',
- disabled: false,
- border: true,
- center: false,
- url: '',
- linkType: 'navigateTo',
- clickable: false,
- isLink: false,
- required: false,
- arrowDirection: '',
- iconStyle: {},
- rightIconStyle: {},
- rightIcon: 'arrow-right',
- titleStyle: {},
- size: '',
- stop: true,
- name: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 79:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/cellGroup.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:54:16
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
- */
- var _default = {
- // cell-group组件的props
- cellGroup: {
- title: '',
- border: true,
- customStyle: {}
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 8:
- /*!***************************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
- function _unsupportedIterableToArray(o, minLen) {
- if (!o) return;
- if (typeof o === "string") return arrayLikeToArray(o, minLen);
- var n = Object.prototype.toString.call(o).slice(8, -1);
- if (n === "Object" && o.constructor) n = o.constructor.name;
- if (n === "Map" || n === "Set") return Array.from(o);
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
- }
- module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 80:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/checkbox.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-23 21:06:59
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
- */
- var _default = {
- // checkbox组件
- checkbox: {
- name: '',
- shape: '',
- size: '',
- checkbox: false,
- disabled: '',
- activeColor: '',
- inactiveColor: '',
- iconSize: '',
- iconColor: '',
- label: '',
- labelSize: '',
- labelColor: '',
- labelDisabled: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 807:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-navbar/props.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 是否开启顶部安全区适配
- safeAreaInsetTop: {
- type: Boolean,
- default: uni.$u.props.navbar.safeAreaInsetTop
- },
- // 固定在顶部时,是否生成一个等高元素,以防止塌陷
- placeholder: {
- type: Boolean,
- default: uni.$u.props.navbar.placeholder
- },
- // 是否固定在顶部
- fixed: {
- type: Boolean,
- default: uni.$u.props.navbar.fixed
- },
- // 是否显示下边框
- border: {
- type: Boolean,
- default: uni.$u.props.navbar.border
- },
- // 左边的图标
- leftIcon: {
- type: String,
- default: uni.$u.props.navbar.leftIcon
- },
- // 左边的提示文字
- leftText: {
- type: String,
- default: uni.$u.props.navbar.leftText
- },
- // 左右的提示文字
- rightText: {
- type: String,
- default: uni.$u.props.navbar.rightText
- },
- // 右边的图标
- rightIcon: {
- type: String,
- default: uni.$u.props.navbar.rightIcon
- },
- // 标题
- title: {
- type: [String, Number],
- default: uni.$u.props.navbar.title
- },
- // 背景颜色
- bgColor: {
- type: String,
- default: uni.$u.props.navbar.bgColor
- },
- // 标题的宽度
- titleWidth: {
- type: [String, Number],
- default: uni.$u.props.navbar.titleWidth
- },
- // 导航栏高度
- height: {
- type: [String, Number],
- default: uni.$u.props.navbar.height
- },
- // 左侧返回图标的大小
- leftIconSize: {
- type: [String, Number],
- default: uni.$u.props.navbar.leftIconSize
- },
- // 左侧返回图标的颜色
- leftIconColor: {
- type: String,
- default: uni.$u.props.navbar.leftIconColor
- },
- // 点击左侧区域(返回图标),是否自动返回上一页
- autoBack: {
- type: Boolean,
- default: uni.$u.props.navbar.autoBack
- },
- // 标题的样式,对象或字符串
- titleStyle: {
- type: [String, Object],
- default: uni.$u.props.navbar.titleStyle
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 81:
- /*!*********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/checkboxGroup.js ***!
- \*********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:54:47
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
- */
- var _default = {
- // checkbox-group组件
- checkboxGroup: {
- name: '',
- value: function value() {
- return [];
- },
- shape: 'square',
- disabled: false,
- activeColor: '#2979ff',
- inactiveColor: '#c8c9cc',
- size: 18,
- placement: 'row',
- labelSize: 14,
- labelColor: '#303133',
- labelDisabled: false,
- iconColor: '#ffffff',
- iconSize: 12,
- iconPlacement: 'left',
- borderBottom: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 815:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-subsection/props.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // tab的数据
- list: {
- type: Array,
- default: uni.$u.props.subsection.list
- },
- // 当前活动的tab的index
- current: {
- type: [String, Number],
- default: uni.$u.props.subsection.current
- },
- // 激活的颜色
- activeColor: {
- type: String,
- default: uni.$u.props.subsection.activeColor
- },
- // 未激活的颜色
- inactiveColor: {
- type: String,
- default: uni.$u.props.subsection.inactiveColor
- },
- // 模式选择,mode=button为按钮形式,mode=subsection时为分段模式
- mode: {
- type: String,
- default: uni.$u.props.subsection.mode
- },
- // 字体大小
- fontSize: {
- type: [String, Number],
- default: uni.$u.props.subsection.fontSize
- },
- // 激活tab的字体是否加粗
- bold: {
- type: Boolean,
- default: uni.$u.props.subsection.bold
- },
- // mode = button时,组件背景颜色
- bgColor: {
- type: String,
- default: uni.$u.props.subsection.bgColor
- },
- // 从list元素对象中读取的键名
- keyName: {
- type: String,
- default: uni.$u.props.subsection.keyName
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 82:
- /*!**********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/circleProgress.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:55:02
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
- */
- var _default = {
- // circleProgress 组件
- circleProgress: {
- percentage: 30
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 823:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-icon/icons.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- 'uicon-level': "\uE693",
- 'uicon-column-line': "\uE68E",
- 'uicon-checkbox-mark': "\uE807",
- 'uicon-folder': "\uE7F5",
- 'uicon-movie': "\uE7F6",
- 'uicon-star-fill': "\uE669",
- 'uicon-star': "\uE65F",
- 'uicon-phone-fill': "\uE64F",
- 'uicon-phone': "\uE622",
- 'uicon-apple-fill': "\uE881",
- 'uicon-chrome-circle-fill': "\uE885",
- 'uicon-backspace': "\uE67B",
- 'uicon-attach': "\uE632",
- 'uicon-cut': "\uE948",
- 'uicon-empty-car': "\uE602",
- 'uicon-empty-coupon': "\uE682",
- 'uicon-empty-address': "\uE646",
- 'uicon-empty-favor': "\uE67C",
- 'uicon-empty-permission': "\uE686",
- 'uicon-empty-news': "\uE687",
- 'uicon-empty-search': "\uE664",
- 'uicon-github-circle-fill': "\uE887",
- 'uicon-rmb': "\uE608",
- 'uicon-person-delete-fill': "\uE66A",
- 'uicon-reload': "\uE788",
- 'uicon-order': "\uE68F",
- 'uicon-server-man': "\uE6BC",
- 'uicon-search': "\uE62A",
- 'uicon-fingerprint': "\uE955",
- 'uicon-more-dot-fill': "\uE630",
- 'uicon-scan': "\uE662",
- 'uicon-share-square': "\uE60B",
- 'uicon-map': "\uE61D",
- 'uicon-map-fill': "\uE64E",
- 'uicon-tags': "\uE629",
- 'uicon-tags-fill': "\uE651",
- 'uicon-bookmark-fill': "\uE63B",
- 'uicon-bookmark': "\uE60A",
- 'uicon-eye': "\uE613",
- 'uicon-eye-fill': "\uE641",
- 'uicon-mic': "\uE64A",
- 'uicon-mic-off': "\uE649",
- 'uicon-calendar': "\uE66E",
- 'uicon-calendar-fill': "\uE634",
- 'uicon-trash': "\uE623",
- 'uicon-trash-fill': "\uE658",
- 'uicon-play-left': "\uE66D",
- 'uicon-play-right': "\uE610",
- 'uicon-minus': "\uE618",
- 'uicon-plus': "\uE62D",
- 'uicon-info': "\uE653",
- 'uicon-info-circle': "\uE7D2",
- 'uicon-info-circle-fill': "\uE64B",
- 'uicon-question': "\uE715",
- 'uicon-error': "\uE6D3",
- 'uicon-close': "\uE685",
- 'uicon-checkmark': "\uE6A8",
- 'uicon-android-circle-fill': "\uE67E",
- 'uicon-android-fill': "\uE67D",
- 'uicon-ie': "\uE87B",
- 'uicon-IE-circle-fill': "\uE889",
- 'uicon-google': "\uE87A",
- 'uicon-google-circle-fill': "\uE88A",
- 'uicon-setting-fill': "\uE872",
- 'uicon-setting': "\uE61F",
- 'uicon-minus-square-fill': "\uE855",
- 'uicon-plus-square-fill': "\uE856",
- 'uicon-heart': "\uE7DF",
- 'uicon-heart-fill': "\uE851",
- 'uicon-camera': "\uE7D7",
- 'uicon-camera-fill': "\uE870",
- 'uicon-more-circle': "\uE63E",
- 'uicon-more-circle-fill': "\uE645",
- 'uicon-chat': "\uE620",
- 'uicon-chat-fill': "\uE61E",
- 'uicon-bag-fill': "\uE617",
- 'uicon-bag': "\uE619",
- 'uicon-error-circle-fill': "\uE62C",
- 'uicon-error-circle': "\uE624",
- 'uicon-close-circle': "\uE63F",
- 'uicon-close-circle-fill': "\uE637",
- 'uicon-checkmark-circle': "\uE63D",
- 'uicon-checkmark-circle-fill': "\uE635",
- 'uicon-question-circle-fill': "\uE666",
- 'uicon-question-circle': "\uE625",
- 'uicon-share': "\uE631",
- 'uicon-share-fill': "\uE65E",
- 'uicon-shopping-cart': "\uE621",
- 'uicon-shopping-cart-fill': "\uE65D",
- 'uicon-bell': "\uE609",
- 'uicon-bell-fill': "\uE640",
- 'uicon-list': "\uE650",
- 'uicon-list-dot': "\uE616",
- 'uicon-zhihu': "\uE6BA",
- 'uicon-zhihu-circle-fill': "\uE709",
- 'uicon-zhifubao': "\uE6B9",
- 'uicon-zhifubao-circle-fill': "\uE6B8",
- 'uicon-weixin-circle-fill': "\uE6B1",
- 'uicon-weixin-fill': "\uE6B2",
- 'uicon-twitter-circle-fill': "\uE6AB",
- 'uicon-twitter': "\uE6AA",
- 'uicon-taobao-circle-fill': "\uE6A7",
- 'uicon-taobao': "\uE6A6",
- 'uicon-weibo-circle-fill': "\uE6A5",
- 'uicon-weibo': "\uE6A4",
- 'uicon-qq-fill': "\uE6A1",
- 'uicon-qq-circle-fill': "\uE6A0",
- 'uicon-moments-circel-fill': "\uE69A",
- 'uicon-moments': "\uE69B",
- 'uicon-qzone': "\uE695",
- 'uicon-qzone-circle-fill': "\uE696",
- 'uicon-baidu-circle-fill': "\uE680",
- 'uicon-baidu': "\uE681",
- 'uicon-facebook-circle-fill': "\uE68A",
- 'uicon-facebook': "\uE689",
- 'uicon-car': "\uE60C",
- 'uicon-car-fill': "\uE636",
- 'uicon-warning-fill': "\uE64D",
- 'uicon-warning': "\uE694",
- 'uicon-clock-fill': "\uE638",
- 'uicon-clock': "\uE60F",
- 'uicon-edit-pen': "\uE612",
- 'uicon-edit-pen-fill': "\uE66B",
- 'uicon-email': "\uE611",
- 'uicon-email-fill': "\uE642",
- 'uicon-minus-circle': "\uE61B",
- 'uicon-minus-circle-fill': "\uE652",
- 'uicon-plus-circle': "\uE62E",
- 'uicon-plus-circle-fill': "\uE661",
- 'uicon-file-text': "\uE663",
- 'uicon-file-text-fill': "\uE665",
- 'uicon-pushpin': "\uE7E3",
- 'uicon-pushpin-fill': "\uE86E",
- 'uicon-grid': "\uE673",
- 'uicon-grid-fill': "\uE678",
- 'uicon-play-circle': "\uE647",
- 'uicon-play-circle-fill': "\uE655",
- 'uicon-pause-circle-fill': "\uE654",
- 'uicon-pause': "\uE8FA",
- 'uicon-pause-circle': "\uE643",
- 'uicon-eye-off': "\uE648",
- 'uicon-eye-off-outline': "\uE62B",
- 'uicon-gift-fill': "\uE65C",
- 'uicon-gift': "\uE65B",
- 'uicon-rmb-circle-fill': "\uE657",
- 'uicon-rmb-circle': "\uE677",
- 'uicon-kefu-ermai': "\uE656",
- 'uicon-server-fill': "\uE751",
- 'uicon-coupon-fill': "\uE8C4",
- 'uicon-coupon': "\uE8AE",
- 'uicon-integral': "\uE704",
- 'uicon-integral-fill': "\uE703",
- 'uicon-home-fill': "\uE964",
- 'uicon-home': "\uE965",
- 'uicon-hourglass-half-fill': "\uE966",
- 'uicon-hourglass': "\uE967",
- 'uicon-account': "\uE628",
- 'uicon-plus-people-fill': "\uE626",
- 'uicon-minus-people-fill': "\uE615",
- 'uicon-account-fill': "\uE614",
- 'uicon-thumb-down-fill': "\uE726",
- 'uicon-thumb-down': "\uE727",
- 'uicon-thumb-up': "\uE733",
- 'uicon-thumb-up-fill': "\uE72F",
- 'uicon-lock-fill': "\uE979",
- 'uicon-lock-open': "\uE973",
- 'uicon-lock-opened-fill': "\uE974",
- 'uicon-lock': "\uE97A",
- 'uicon-red-packet-fill': "\uE690",
- 'uicon-photo-fill': "\uE98B",
- 'uicon-photo': "\uE98D",
- 'uicon-volume-off-fill': "\uE659",
- 'uicon-volume-off': "\uE644",
- 'uicon-volume-fill': "\uE670",
- 'uicon-volume': "\uE633",
- 'uicon-red-packet': "\uE691",
- 'uicon-download': "\uE63C",
- 'uicon-arrow-up-fill': "\uE6B0",
- 'uicon-arrow-down-fill': "\uE600",
- 'uicon-play-left-fill': "\uE675",
- 'uicon-play-right-fill': "\uE676",
- 'uicon-rewind-left-fill': "\uE679",
- 'uicon-rewind-right-fill': "\uE67A",
- 'uicon-arrow-downward': "\uE604",
- 'uicon-arrow-leftward': "\uE601",
- 'uicon-arrow-rightward': "\uE603",
- 'uicon-arrow-upward': "\uE607",
- 'uicon-arrow-down': "\uE60D",
- 'uicon-arrow-right': "\uE605",
- 'uicon-arrow-left': "\uE60E",
- 'uicon-arrow-up': "\uE606",
- 'uicon-skip-back-left': "\uE674",
- 'uicon-skip-forward-right': "\uE672",
- 'uicon-rewind-right': "\uE66F",
- 'uicon-rewind-left': "\uE671",
- 'uicon-arrow-right-double': "\uE68D",
- 'uicon-arrow-left-double': "\uE68C",
- 'uicon-wifi-off': "\uE668",
- 'uicon-wifi': "\uE667",
- 'uicon-empty-data': "\uE62F",
- 'uicon-empty-history': "\uE684",
- 'uicon-empty-list': "\uE68B",
- 'uicon-empty-page': "\uE627",
- 'uicon-empty-order': "\uE639",
- 'uicon-man': "\uE697",
- 'uicon-woman': "\uE69C",
- 'uicon-man-add': "\uE61C",
- 'uicon-man-add-fill': "\uE64C",
- 'uicon-man-delete': "\uE61A",
- 'uicon-man-delete-fill': "\uE66A",
- 'uicon-zh': "\uE70A",
- 'uicon-en': "\uE692"
- };
- exports.default = _default;
- /***/ }),
- /***/ 824:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-icon/props.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 图标类名
- name: {
- type: String,
- default: uni.$u.props.icon.name
- },
- // 图标颜色,可接受主题色
- color: {
- type: String,
- default: uni.$u.props.icon.color
- },
- // 字体大小,单位px
- size: {
- type: [String, Number],
- default: uni.$u.props.icon.size
- },
- // 是否显示粗体
- bold: {
- type: Boolean,
- default: uni.$u.props.icon.bold
- },
- // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
- index: {
- type: [String, Number],
- default: uni.$u.props.icon.index
- },
- // 触摸图标时的类名
- hoverClass: {
- type: String,
- default: uni.$u.props.icon.hoverClass
- },
- // 自定义扩展前缀,方便用户扩展自己的图标库
- customPrefix: {
- type: String,
- default: uni.$u.props.icon.customPrefix
- },
- // 图标右边或者下面的文字
- label: {
- type: [String, Number],
- default: uni.$u.props.icon.label
- },
- // label的位置,只能右边或者下边
- labelPos: {
- type: String,
- default: uni.$u.props.icon.labelPos
- },
- // label的大小
- labelSize: {
- type: [String, Number],
- default: uni.$u.props.icon.labelSize
- },
- // label的颜色
- labelColor: {
- type: String,
- default: uni.$u.props.icon.labelColor
- },
- // label与图标的距离
- space: {
- type: [String, Number],
- default: uni.$u.props.icon.space
- },
- // 图片的mode
- imgMode: {
- type: String,
- default: uni.$u.props.icon.imgMode
- },
- // 用于显示图片小图标时,图片的宽度
- width: {
- type: [String, Number],
- default: uni.$u.props.icon.width
- },
- // 用于显示图片小图标时,图片的高度
- height: {
- type: [String, Number],
- default: uni.$u.props.icon.height
- },
- // 用于解决某些情况下,让图标垂直居中的用途
- top: {
- type: [String, Number],
- default: uni.$u.props.icon.top
- },
- // 是否阻止事件传播
- stop: {
- type: Boolean,
- default: uni.$u.props.icon.stop
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 83:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/code.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:55:27
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
- */
- var _default = {
- // code 组件
- code: {
- seconds: 60,
- startText: '获取验证码',
- changeText: 'X秒重新获取',
- endText: '重新获取',
- keepRunning: false,
- uniqueKey: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 832:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-tabs/props.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 滑块的移动过渡时间,单位ms
- duration: {
- type: Number,
- default: uni.$u.props.tabs.duration
- },
- // tabs标签数组
- list: {
- type: Array,
- default: uni.$u.props.tabs.list
- },
- // 滑块颜色
- lineColor: {
- type: String,
- default: uni.$u.props.tabs.lineColor
- },
- // 菜单选择中时的样式
- activeStyle: {
- type: [String, Object],
- default: uni.$u.props.tabs.activeStyle
- },
- // 菜单非选中时的样式
- inactiveStyle: {
- type: [String, Object],
- default: uni.$u.props.tabs.inactiveStyle
- },
- // 滑块长度
- lineWidth: {
- type: [String, Number],
- default: uni.$u.props.tabs.lineWidth
- },
- // 滑块高度
- lineHeight: {
- type: [String, Number],
- default: uni.$u.props.tabs.lineHeight
- },
- // 滑块背景显示大小,当滑块背景设置为图片时使用
- lineBgSize: {
- type: String,
- default: uni.$u.props.tabs.lineBgSize
- },
- // 菜单item的样式
- itemStyle: {
- type: [String, Object],
- default: uni.$u.props.tabs.itemStyle
- },
- // 菜单是否可滚动
- scrollable: {
- type: Boolean,
- default: uni.$u.props.tabs.scrollable
- },
- // 当前选中标签的索引
- current: {
- type: [Number, String],
- default: uni.$u.props.tabs.current
- },
- // 默认读取的键名
- keyName: {
- type: String,
- default: uni.$u.props.tabs.keyName
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 84:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/codeInput.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:55:58
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
- */
- var _default = {
- // codeInput 组件
- codeInput: {
- adjustPosition: true,
- maxlength: 6,
- dot: false,
- mode: 'box',
- hairline: false,
- space: 10,
- value: '',
- focus: false,
- bold: false,
- color: '#606266',
- fontSize: 18,
- size: 35,
- disabledKeyboard: false,
- borderColor: '#c9cacc',
- disabledDot: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 840:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-swiper/props.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
- list: {
- type: Array,
- default: uni.$u.props.swiper.list
- },
- // 是否显示面板指示器
- indicator: {
- type: Boolean,
- default: uni.$u.props.swiper.indicator
- },
- // 指示器非激活颜色
- indicatorActiveColor: {
- type: String,
- default: uni.$u.props.swiper.indicatorActiveColor
- },
- // 指示器的激活颜色
- indicatorInactiveColor: {
- type: String,
- default: uni.$u.props.swiper.indicatorInactiveColor
- },
- // 指示器样式,可通过bottom,left,right进行定位
- indicatorStyle: {
- type: [String, Object],
- default: uni.$u.props.swiper.indicatorStyle
- },
- // 指示器模式,line-线型,dot-点型
- indicatorMode: {
- type: String,
- default: uni.$u.props.swiper.indicatorMode
- },
- // 是否自动切换
- autoplay: {
- type: Boolean,
- default: uni.$u.props.swiper.autoplay
- },
- // 当前所在滑块的 index
- current: {
- type: [String, Number],
- default: uni.$u.props.swiper.current
- },
- // 当前所在滑块的 item-id ,不能与 current 被同时指定
- currentItemId: {
- type: String,
- default: uni.$u.props.swiper.currentItemId
- },
- // 滑块自动切换时间间隔
- interval: {
- type: [String, Number],
- default: uni.$u.props.swiper.interval
- },
- // 滑块切换过程所需时间
- duration: {
- type: [String, Number],
- default: uni.$u.props.swiper.duration
- },
- // 播放到末尾后是否重新回到开头
- circular: {
- type: Boolean,
- default: uni.$u.props.swiper.circular
- },
- // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
- previousMargin: {
- type: [String, Number],
- default: uni.$u.props.swiper.previousMargin
- },
- // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
- nextMargin: {
- type: [String, Number],
- default: uni.$u.props.swiper.nextMargin
- },
- // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
- acceleration: {
- type: Boolean,
- default: uni.$u.props.swiper.acceleration
- },
- // 同时显示的滑块数量,nvue、支付宝小程序不支持
- displayMultipleItems: {
- type: Number,
- default: uni.$u.props.swiper.displayMultipleItems
- },
- // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
- // 只对微信小程序有效
- easingFunction: {
- type: String,
- default: uni.$u.props.swiper.easingFunction
- },
- // list数组中指定对象的目标属性名
- keyName: {
- type: String,
- default: uni.$u.props.swiper.keyName
- },
- // 图片的裁剪模式
- imgMode: {
- type: String,
- default: uni.$u.props.swiper.imgMode
- },
- // 组件高度
- height: {
- type: [String, Number],
- default: uni.$u.props.swiper.height
- },
- // 背景颜色
- bgColor: {
- type: String,
- default: uni.$u.props.swiper.bgColor
- },
- // 组件圆角,数值或带单位的字符串
- radius: {
- type: [String, Number],
- default: uni.$u.props.swiper.radius
- },
- // 是否加载中
- loading: {
- type: Boolean,
- default: uni.$u.props.swiper.loading
- },
- // 是否显示标题,要求数组对象中有title属性
- showTitle: {
- type: Boolean,
- default: uni.$u.props.swiper.showTitle
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 848:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-popup/props.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 是否展示弹窗
- show: {
- type: Boolean,
- default: uni.$u.props.popup.show
- },
- // 是否显示遮罩
- overlay: {
- type: Boolean,
- default: uni.$u.props.popup.overlay
- },
- // 弹出的方向,可选值为 top bottom right left center
- mode: {
- type: String,
- default: uni.$u.props.popup.mode
- },
- // 动画时长,单位ms
- duration: {
- type: [String, Number],
- default: uni.$u.props.popup.duration
- },
- // 是否显示关闭图标
- closeable: {
- type: Boolean,
- default: uni.$u.props.popup.closeable
- },
- // 自定义遮罩的样式
- overlayStyle: {
- type: [Object, String],
- default: uni.$u.props.popup.overlayStyle
- },
- // 点击遮罩是否关闭弹窗
- closeOnClickOverlay: {
- type: Boolean,
- default: uni.$u.props.popup.closeOnClickOverlay
- },
- // 层级
- zIndex: {
- type: [String, Number],
- default: uni.$u.props.popup.zIndex
- },
- // 是否为iPhoneX留出底部安全距离
- safeAreaInsetBottom: {
- type: Boolean,
- default: uni.$u.props.popup.safeAreaInsetBottom
- },
- // 是否留出顶部安全距离(状态栏高度)
- safeAreaInsetTop: {
- type: Boolean,
- default: uni.$u.props.popup.safeAreaInsetTop
- },
- // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
- closeIconPos: {
- type: String,
- default: uni.$u.props.popup.closeIconPos
- },
- // 是否显示圆角
- round: {
- type: [Boolean, String, Number],
- default: uni.$u.props.popup.round
- },
- // mode=center,也即中部弹出时,是否使用缩放模式
- zoom: {
- type: Boolean,
- default: uni.$u.props.popup.zoom
- },
- // 弹窗背景色,设置为transparent可去除白色背景
- bgColor: {
- type: String,
- default: uni.$u.props.popup.bgColor
- },
- // 遮罩的透明度,0-1之间
- overlayOpacity: {
- type: [Number, String],
- default: uni.$u.props.popup.overlayOpacity
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 85:
- /*!***********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/col.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:56:12
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
- */
- var _default = {
- // col 组件
- col: {
- span: 12,
- offset: 0,
- justify: 'start',
- align: 'stretch',
- textAlign: 'left'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 856:
- /*!**************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
- \**************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(global) {/*!
- * vuex v3.6.2
- * (c) 2021 Evan You
- * @license MIT
- */
- function applyMixin (Vue) {
- var version = Number(Vue.version.split('.')[0]);
- if (version >= 2) {
- Vue.mixin({ beforeCreate: vuexInit });
- } else {
- // override init and inject vuex init procedure
- // for 1.x backwards compatibility.
- var _init = Vue.prototype._init;
- Vue.prototype._init = function (options) {
- if ( options === void 0 ) options = {};
- options.init = options.init
- ? [vuexInit].concat(options.init)
- : vuexInit;
- _init.call(this, options);
- };
- }
- /**
- * Vuex init hook, injected into each instances init hooks list.
- */
- function vuexInit () {
- var options = this.$options;
- // store injection
- if (options.store) {
- this.$store = typeof options.store === 'function'
- ? options.store()
- : options.store;
- } else if (options.parent && options.parent.$store) {
- this.$store = options.parent.$store;
- }
- }
- }
- var target = typeof window !== 'undefined'
- ? window
- : typeof global !== 'undefined'
- ? global
- : {};
- var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
- function devtoolPlugin (store) {
- if (!devtoolHook) { return }
- store._devtoolHook = devtoolHook;
- devtoolHook.emit('vuex:init', store);
- devtoolHook.on('vuex:travel-to-state', function (targetState) {
- store.replaceState(targetState);
- });
- store.subscribe(function (mutation, state) {
- devtoolHook.emit('vuex:mutation', mutation, state);
- }, { prepend: true });
- store.subscribeAction(function (action, state) {
- devtoolHook.emit('vuex:action', action, state);
- }, { prepend: true });
- }
- /**
- * Get the first item that pass the test
- * by second argument function
- *
- * @param {Array} list
- * @param {Function} f
- * @return {*}
- */
- function find (list, f) {
- return list.filter(f)[0]
- }
- /**
- * Deep copy the given object considering circular structure.
- * This function caches all nested objects and its copies.
- * If it detects circular structure, use cached copy to avoid infinite loop.
- *
- * @param {*} obj
- * @param {Array<Object>} cache
- * @return {*}
- */
- function deepCopy (obj, cache) {
- if ( cache === void 0 ) cache = [];
- // just return if obj is immutable value
- if (obj === null || typeof obj !== 'object') {
- return obj
- }
- // if obj is hit, it is in circular structure
- var hit = find(cache, function (c) { return c.original === obj; });
- if (hit) {
- return hit.copy
- }
- var copy = Array.isArray(obj) ? [] : {};
- // put the copy into cache at first
- // because we want to refer it in recursive deepCopy
- cache.push({
- original: obj,
- copy: copy
- });
- Object.keys(obj).forEach(function (key) {
- copy[key] = deepCopy(obj[key], cache);
- });
- return copy
- }
- /**
- * forEach for object
- */
- function forEachValue (obj, fn) {
- Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
- }
- function isObject (obj) {
- return obj !== null && typeof obj === 'object'
- }
- function isPromise (val) {
- return val && typeof val.then === 'function'
- }
- function assert (condition, msg) {
- if (!condition) { throw new Error(("[vuex] " + msg)) }
- }
- function partial (fn, arg) {
- return function () {
- return fn(arg)
- }
- }
- // Base data struct for store's module, package with some attribute and method
- var Module = function Module (rawModule, runtime) {
- this.runtime = runtime;
- // Store some children item
- this._children = Object.create(null);
- // Store the origin module object which passed by programmer
- this._rawModule = rawModule;
- var rawState = rawModule.state;
- // Store the origin module's state
- this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
- };
- var prototypeAccessors = { namespaced: { configurable: true } };
- prototypeAccessors.namespaced.get = function () {
- return !!this._rawModule.namespaced
- };
- Module.prototype.addChild = function addChild (key, module) {
- this._children[key] = module;
- };
- Module.prototype.removeChild = function removeChild (key) {
- delete this._children[key];
- };
- Module.prototype.getChild = function getChild (key) {
- return this._children[key]
- };
- Module.prototype.hasChild = function hasChild (key) {
- return key in this._children
- };
- Module.prototype.update = function update (rawModule) {
- this._rawModule.namespaced = rawModule.namespaced;
- if (rawModule.actions) {
- this._rawModule.actions = rawModule.actions;
- }
- if (rawModule.mutations) {
- this._rawModule.mutations = rawModule.mutations;
- }
- if (rawModule.getters) {
- this._rawModule.getters = rawModule.getters;
- }
- };
- Module.prototype.forEachChild = function forEachChild (fn) {
- forEachValue(this._children, fn);
- };
- Module.prototype.forEachGetter = function forEachGetter (fn) {
- if (this._rawModule.getters) {
- forEachValue(this._rawModule.getters, fn);
- }
- };
- Module.prototype.forEachAction = function forEachAction (fn) {
- if (this._rawModule.actions) {
- forEachValue(this._rawModule.actions, fn);
- }
- };
- Module.prototype.forEachMutation = function forEachMutation (fn) {
- if (this._rawModule.mutations) {
- forEachValue(this._rawModule.mutations, fn);
- }
- };
- Object.defineProperties( Module.prototype, prototypeAccessors );
- var ModuleCollection = function ModuleCollection (rawRootModule) {
- // register root module (Vuex.Store options)
- this.register([], rawRootModule, false);
- };
- ModuleCollection.prototype.get = function get (path) {
- return path.reduce(function (module, key) {
- return module.getChild(key)
- }, this.root)
- };
- ModuleCollection.prototype.getNamespace = function getNamespace (path) {
- var module = this.root;
- return path.reduce(function (namespace, key) {
- module = module.getChild(key);
- return namespace + (module.namespaced ? key + '/' : '')
- }, '')
- };
- ModuleCollection.prototype.update = function update$1 (rawRootModule) {
- update([], this.root, rawRootModule);
- };
- ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
- var this$1 = this;
- if ( runtime === void 0 ) runtime = true;
- if ((true)) {
- assertRawModule(path, rawModule);
- }
- var newModule = new Module(rawModule, runtime);
- if (path.length === 0) {
- this.root = newModule;
- } else {
- var parent = this.get(path.slice(0, -1));
- parent.addChild(path[path.length - 1], newModule);
- }
- // register nested modules
- if (rawModule.modules) {
- forEachValue(rawModule.modules, function (rawChildModule, key) {
- this$1.register(path.concat(key), rawChildModule, runtime);
- });
- }
- };
- ModuleCollection.prototype.unregister = function unregister (path) {
- var parent = this.get(path.slice(0, -1));
- var key = path[path.length - 1];
- var child = parent.getChild(key);
- if (!child) {
- if ((true)) {
- console.warn(
- "[vuex] trying to unregister module '" + key + "', which is " +
- "not registered"
- );
- }
- return
- }
- if (!child.runtime) {
- return
- }
- parent.removeChild(key);
- };
- ModuleCollection.prototype.isRegistered = function isRegistered (path) {
- var parent = this.get(path.slice(0, -1));
- var key = path[path.length - 1];
- if (parent) {
- return parent.hasChild(key)
- }
- return false
- };
- function update (path, targetModule, newModule) {
- if ((true)) {
- assertRawModule(path, newModule);
- }
- // update target module
- targetModule.update(newModule);
- // update nested modules
- if (newModule.modules) {
- for (var key in newModule.modules) {
- if (!targetModule.getChild(key)) {
- if ((true)) {
- console.warn(
- "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
- 'manual reload is needed'
- );
- }
- return
- }
- update(
- path.concat(key),
- targetModule.getChild(key),
- newModule.modules[key]
- );
- }
- }
- }
- var functionAssert = {
- assert: function (value) { return typeof value === 'function'; },
- expected: 'function'
- };
- var objectAssert = {
- assert: function (value) { return typeof value === 'function' ||
- (typeof value === 'object' && typeof value.handler === 'function'); },
- expected: 'function or object with "handler" function'
- };
- var assertTypes = {
- getters: functionAssert,
- mutations: functionAssert,
- actions: objectAssert
- };
- function assertRawModule (path, rawModule) {
- Object.keys(assertTypes).forEach(function (key) {
- if (!rawModule[key]) { return }
- var assertOptions = assertTypes[key];
- forEachValue(rawModule[key], function (value, type) {
- assert(
- assertOptions.assert(value),
- makeAssertionMessage(path, key, type, value, assertOptions.expected)
- );
- });
- });
- }
- function makeAssertionMessage (path, key, type, value, expected) {
- var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
- if (path.length > 0) {
- buf += " in module \"" + (path.join('.')) + "\"";
- }
- buf += " is " + (JSON.stringify(value)) + ".";
- return buf
- }
- var Vue; // bind on install
- var Store = function Store (options) {
- var this$1 = this;
- if ( options === void 0 ) options = {};
- // Auto install if it is not done yet and `window` has `Vue`.
- // To allow users to avoid auto-installation in some cases,
- // this code should be placed here. See #731
- if (!Vue && typeof window !== 'undefined' && window.Vue) {
- install(window.Vue);
- }
- if ((true)) {
- assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
- assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
- assert(this instanceof Store, "store must be called with the new operator.");
- }
- var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
- var strict = options.strict; if ( strict === void 0 ) strict = false;
- // store internal state
- this._committing = false;
- this._actions = Object.create(null);
- this._actionSubscribers = [];
- this._mutations = Object.create(null);
- this._wrappedGetters = Object.create(null);
- this._modules = new ModuleCollection(options);
- this._modulesNamespaceMap = Object.create(null);
- this._subscribers = [];
- this._watcherVM = new Vue();
- this._makeLocalGettersCache = Object.create(null);
- // bind commit and dispatch to self
- var store = this;
- var ref = this;
- var dispatch = ref.dispatch;
- var commit = ref.commit;
- this.dispatch = function boundDispatch (type, payload) {
- return dispatch.call(store, type, payload)
- };
- this.commit = function boundCommit (type, payload, options) {
- return commit.call(store, type, payload, options)
- };
- // strict mode
- this.strict = strict;
- var state = this._modules.root.state;
- // init root module.
- // this also recursively registers all sub-modules
- // and collects all module getters inside this._wrappedGetters
- installModule(this, state, [], this._modules.root);
- // initialize the store vm, which is responsible for the reactivity
- // (also registers _wrappedGetters as computed properties)
- resetStoreVM(this, state);
- // apply plugins
- plugins.forEach(function (plugin) { return plugin(this$1); });
- var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
- if (useDevtools) {
- devtoolPlugin(this);
- }
- };
- var prototypeAccessors$1 = { state: { configurable: true } };
- prototypeAccessors$1.state.get = function () {
- return this._vm._data.$$state
- };
- prototypeAccessors$1.state.set = function (v) {
- if ((true)) {
- assert(false, "use store.replaceState() to explicit replace store state.");
- }
- };
- Store.prototype.commit = function commit (_type, _payload, _options) {
- var this$1 = this;
- // check object-style commit
- var ref = unifyObjectStyle(_type, _payload, _options);
- var type = ref.type;
- var payload = ref.payload;
- var options = ref.options;
- var mutation = { type: type, payload: payload };
- var entry = this._mutations[type];
- if (!entry) {
- if ((true)) {
- console.error(("[vuex] unknown mutation type: " + type));
- }
- return
- }
- this._withCommit(function () {
- entry.forEach(function commitIterator (handler) {
- handler(payload);
- });
- });
- this._subscribers
- .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
- .forEach(function (sub) { return sub(mutation, this$1.state); });
- if (
- ( true) &&
- options && options.silent
- ) {
- console.warn(
- "[vuex] mutation type: " + type + ". Silent option has been removed. " +
- 'Use the filter functionality in the vue-devtools'
- );
- }
- };
- Store.prototype.dispatch = function dispatch (_type, _payload) {
- var this$1 = this;
- // check object-style dispatch
- var ref = unifyObjectStyle(_type, _payload);
- var type = ref.type;
- var payload = ref.payload;
- var action = { type: type, payload: payload };
- var entry = this._actions[type];
- if (!entry) {
- if ((true)) {
- console.error(("[vuex] unknown action type: " + type));
- }
- return
- }
- try {
- this._actionSubscribers
- .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
- .filter(function (sub) { return sub.before; })
- .forEach(function (sub) { return sub.before(action, this$1.state); });
- } catch (e) {
- if ((true)) {
- console.warn("[vuex] error in before action subscribers: ");
- console.error(e);
- }
- }
- var result = entry.length > 1
- ? Promise.all(entry.map(function (handler) { return handler(payload); }))
- : entry[0](payload);
- return new Promise(function (resolve, reject) {
- result.then(function (res) {
- try {
- this$1._actionSubscribers
- .filter(function (sub) { return sub.after; })
- .forEach(function (sub) { return sub.after(action, this$1.state); });
- } catch (e) {
- if ((true)) {
- console.warn("[vuex] error in after action subscribers: ");
- console.error(e);
- }
- }
- resolve(res);
- }, function (error) {
- try {
- this$1._actionSubscribers
- .filter(function (sub) { return sub.error; })
- .forEach(function (sub) { return sub.error(action, this$1.state, error); });
- } catch (e) {
- if ((true)) {
- console.warn("[vuex] error in error action subscribers: ");
- console.error(e);
- }
- }
- reject(error);
- });
- })
- };
- Store.prototype.subscribe = function subscribe (fn, options) {
- return genericSubscribe(fn, this._subscribers, options)
- };
- Store.prototype.subscribeAction = function subscribeAction (fn, options) {
- var subs = typeof fn === 'function' ? { before: fn } : fn;
- return genericSubscribe(subs, this._actionSubscribers, options)
- };
- Store.prototype.watch = function watch (getter, cb, options) {
- var this$1 = this;
- if ((true)) {
- assert(typeof getter === 'function', "store.watch only accepts a function.");
- }
- return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
- };
- Store.prototype.replaceState = function replaceState (state) {
- var this$1 = this;
- this._withCommit(function () {
- this$1._vm._data.$$state = state;
- });
- };
- Store.prototype.registerModule = function registerModule (path, rawModule, options) {
- if ( options === void 0 ) options = {};
- if (typeof path === 'string') { path = [path]; }
- if ((true)) {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- assert(path.length > 0, 'cannot register the root module by using registerModule.');
- }
- this._modules.register(path, rawModule);
- installModule(this, this.state, path, this._modules.get(path), options.preserveState);
- // reset store to update getters...
- resetStoreVM(this, this.state);
- };
- Store.prototype.unregisterModule = function unregisterModule (path) {
- var this$1 = this;
- if (typeof path === 'string') { path = [path]; }
- if ((true)) {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- }
- this._modules.unregister(path);
- this._withCommit(function () {
- var parentState = getNestedState(this$1.state, path.slice(0, -1));
- Vue.delete(parentState, path[path.length - 1]);
- });
- resetStore(this);
- };
- Store.prototype.hasModule = function hasModule (path) {
- if (typeof path === 'string') { path = [path]; }
- if ((true)) {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- }
- return this._modules.isRegistered(path)
- };
- Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
- this._modules.update(newOptions);
- resetStore(this, true);
- };
- Store.prototype._withCommit = function _withCommit (fn) {
- var committing = this._committing;
- this._committing = true;
- fn();
- this._committing = committing;
- };
- Object.defineProperties( Store.prototype, prototypeAccessors$1 );
- function genericSubscribe (fn, subs, options) {
- if (subs.indexOf(fn) < 0) {
- options && options.prepend
- ? subs.unshift(fn)
- : subs.push(fn);
- }
- return function () {
- var i = subs.indexOf(fn);
- if (i > -1) {
- subs.splice(i, 1);
- }
- }
- }
- function resetStore (store, hot) {
- store._actions = Object.create(null);
- store._mutations = Object.create(null);
- store._wrappedGetters = Object.create(null);
- store._modulesNamespaceMap = Object.create(null);
- var state = store.state;
- // init all modules
- installModule(store, state, [], store._modules.root, true);
- // reset vm
- resetStoreVM(store, state, hot);
- }
- function resetStoreVM (store, state, hot) {
- var oldVm = store._vm;
- // bind store public getters
- store.getters = {};
- // reset local getters cache
- store._makeLocalGettersCache = Object.create(null);
- var wrappedGetters = store._wrappedGetters;
- var computed = {};
- forEachValue(wrappedGetters, function (fn, key) {
- // use computed to leverage its lazy-caching mechanism
- // direct inline function use will lead to closure preserving oldVm.
- // using partial to return function with only arguments preserved in closure environment.
- computed[key] = partial(fn, store);
- Object.defineProperty(store.getters, key, {
- get: function () { return store._vm[key]; },
- enumerable: true // for local getters
- });
- });
- // use a Vue instance to store the state tree
- // suppress warnings just in case the user has added
- // some funky global mixins
- var silent = Vue.config.silent;
- Vue.config.silent = true;
- store._vm = new Vue({
- data: {
- $$state: state
- },
- computed: computed
- });
- Vue.config.silent = silent;
- // enable strict mode for new vm
- if (store.strict) {
- enableStrictMode(store);
- }
- if (oldVm) {
- if (hot) {
- // dispatch changes in all subscribed watchers
- // to force getter re-evaluation for hot reloading.
- store._withCommit(function () {
- oldVm._data.$$state = null;
- });
- }
- Vue.nextTick(function () { return oldVm.$destroy(); });
- }
- }
- function installModule (store, rootState, path, module, hot) {
- var isRoot = !path.length;
- var namespace = store._modules.getNamespace(path);
- // register in namespace map
- if (module.namespaced) {
- if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
- console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
- }
- store._modulesNamespaceMap[namespace] = module;
- }
- // set state
- if (!isRoot && !hot) {
- var parentState = getNestedState(rootState, path.slice(0, -1));
- var moduleName = path[path.length - 1];
- store._withCommit(function () {
- if ((true)) {
- if (moduleName in parentState) {
- console.warn(
- ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
- );
- }
- }
- Vue.set(parentState, moduleName, module.state);
- });
- }
- var local = module.context = makeLocalContext(store, namespace, path);
- module.forEachMutation(function (mutation, key) {
- var namespacedType = namespace + key;
- registerMutation(store, namespacedType, mutation, local);
- });
- module.forEachAction(function (action, key) {
- var type = action.root ? key : namespace + key;
- var handler = action.handler || action;
- registerAction(store, type, handler, local);
- });
- module.forEachGetter(function (getter, key) {
- var namespacedType = namespace + key;
- registerGetter(store, namespacedType, getter, local);
- });
- module.forEachChild(function (child, key) {
- installModule(store, rootState, path.concat(key), child, hot);
- });
- }
- /**
- * make localized dispatch, commit, getters and state
- * if there is no namespace, just use root ones
- */
- function makeLocalContext (store, namespace, path) {
- var noNamespace = namespace === '';
- var local = {
- dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
- var args = unifyObjectStyle(_type, _payload, _options);
- var payload = args.payload;
- var options = args.options;
- var type = args.type;
- if (!options || !options.root) {
- type = namespace + type;
- if (( true) && !store._actions[type]) {
- console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
- return
- }
- }
- return store.dispatch(type, payload)
- },
- commit: noNamespace ? store.commit : function (_type, _payload, _options) {
- var args = unifyObjectStyle(_type, _payload, _options);
- var payload = args.payload;
- var options = args.options;
- var type = args.type;
- if (!options || !options.root) {
- type = namespace + type;
- if (( true) && !store._mutations[type]) {
- console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
- return
- }
- }
- store.commit(type, payload, options);
- }
- };
- // getters and state object must be gotten lazily
- // because they will be changed by vm update
- Object.defineProperties(local, {
- getters: {
- get: noNamespace
- ? function () { return store.getters; }
- : function () { return makeLocalGetters(store, namespace); }
- },
- state: {
- get: function () { return getNestedState(store.state, path); }
- }
- });
- return local
- }
- function makeLocalGetters (store, namespace) {
- if (!store._makeLocalGettersCache[namespace]) {
- var gettersProxy = {};
- var splitPos = namespace.length;
- Object.keys(store.getters).forEach(function (type) {
- // skip if the target getter is not match this namespace
- if (type.slice(0, splitPos) !== namespace) { return }
- // extract local getter type
- var localType = type.slice(splitPos);
- // Add a port to the getters proxy.
- // Define as getter property because
- // we do not want to evaluate the getters in this time.
- Object.defineProperty(gettersProxy, localType, {
- get: function () { return store.getters[type]; },
- enumerable: true
- });
- });
- store._makeLocalGettersCache[namespace] = gettersProxy;
- }
- return store._makeLocalGettersCache[namespace]
- }
- function registerMutation (store, type, handler, local) {
- var entry = store._mutations[type] || (store._mutations[type] = []);
- entry.push(function wrappedMutationHandler (payload) {
- handler.call(store, local.state, payload);
- });
- }
- function registerAction (store, type, handler, local) {
- var entry = store._actions[type] || (store._actions[type] = []);
- entry.push(function wrappedActionHandler (payload) {
- var res = handler.call(store, {
- dispatch: local.dispatch,
- commit: local.commit,
- getters: local.getters,
- state: local.state,
- rootGetters: store.getters,
- rootState: store.state
- }, payload);
- if (!isPromise(res)) {
- res = Promise.resolve(res);
- }
- if (store._devtoolHook) {
- return res.catch(function (err) {
- store._devtoolHook.emit('vuex:error', err);
- throw err
- })
- } else {
- return res
- }
- });
- }
- function registerGetter (store, type, rawGetter, local) {
- if (store._wrappedGetters[type]) {
- if ((true)) {
- console.error(("[vuex] duplicate getter key: " + type));
- }
- return
- }
- store._wrappedGetters[type] = function wrappedGetter (store) {
- return rawGetter(
- local.state, // local state
- local.getters, // local getters
- store.state, // root state
- store.getters // root getters
- )
- };
- }
- function enableStrictMode (store) {
- store._vm.$watch(function () { return this._data.$$state }, function () {
- if ((true)) {
- assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
- }
- }, { deep: true, sync: true });
- }
- function getNestedState (state, path) {
- return path.reduce(function (state, key) { return state[key]; }, state)
- }
- function unifyObjectStyle (type, payload, options) {
- if (isObject(type) && type.type) {
- options = payload;
- payload = type;
- type = type.type;
- }
- if ((true)) {
- assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
- }
- return { type: type, payload: payload, options: options }
- }
- function install (_Vue) {
- if (Vue && _Vue === Vue) {
- if ((true)) {
- console.error(
- '[vuex] already installed. Vue.use(Vuex) should be called only once.'
- );
- }
- return
- }
- Vue = _Vue;
- applyMixin(Vue);
- }
- /**
- * Reduce the code which written in Vue.js for getting the state.
- * @param {String} [namespace] - Module's namespace
- * @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.
- * @param {Object}
- */
- var mapState = normalizeNamespace(function (namespace, states) {
- var res = {};
- if (( true) && !isValidMap(states)) {
- console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
- }
- normalizeMap(states).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedState () {
- var state = this.$store.state;
- var getters = this.$store.getters;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, 'mapState', namespace);
- if (!module) {
- return
- }
- state = module.context.state;
- getters = module.context.getters;
- }
- return typeof val === 'function'
- ? val.call(this, state, getters)
- : state[val]
- };
- // mark vuex getter for devtools
- res[key].vuex = true;
- });
- return res
- });
- /**
- * Reduce the code which written in Vue.js for committing the mutation
- * @param {String} [namespace] - Module's namespace
- * @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.
- * @return {Object}
- */
- var mapMutations = normalizeNamespace(function (namespace, mutations) {
- var res = {};
- if (( true) && !isValidMap(mutations)) {
- console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
- }
- normalizeMap(mutations).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedMutation () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- // Get the commit method from store
- var commit = this.$store.commit;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
- if (!module) {
- return
- }
- commit = module.context.commit;
- }
- return typeof val === 'function'
- ? val.apply(this, [commit].concat(args))
- : commit.apply(this.$store, [val].concat(args))
- };
- });
- return res
- });
- /**
- * Reduce the code which written in Vue.js for getting the getters
- * @param {String} [namespace] - Module's namespace
- * @param {Object|Array} getters
- * @return {Object}
- */
- var mapGetters = normalizeNamespace(function (namespace, getters) {
- var res = {};
- if (( true) && !isValidMap(getters)) {
- console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
- }
- normalizeMap(getters).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- // The namespace has been mutated by normalizeNamespace
- val = namespace + val;
- res[key] = function mappedGetter () {
- if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
- return
- }
- if (( true) && !(val in this.$store.getters)) {
- console.error(("[vuex] unknown getter: " + val));
- return
- }
- return this.$store.getters[val]
- };
- // mark vuex getter for devtools
- res[key].vuex = true;
- });
- return res
- });
- /**
- * Reduce the code which written in Vue.js for dispatch the action
- * @param {String} [namespace] - Module's namespace
- * @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.
- * @return {Object}
- */
- var mapActions = normalizeNamespace(function (namespace, actions) {
- var res = {};
- if (( true) && !isValidMap(actions)) {
- console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
- }
- normalizeMap(actions).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedAction () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- // get dispatch function from store
- var dispatch = this.$store.dispatch;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
- if (!module) {
- return
- }
- dispatch = module.context.dispatch;
- }
- return typeof val === 'function'
- ? val.apply(this, [dispatch].concat(args))
- : dispatch.apply(this.$store, [val].concat(args))
- };
- });
- return res
- });
- /**
- * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
- * @param {String} namespace
- * @return {Object}
- */
- var createNamespacedHelpers = function (namespace) { return ({
- mapState: mapState.bind(null, namespace),
- mapGetters: mapGetters.bind(null, namespace),
- mapMutations: mapMutations.bind(null, namespace),
- mapActions: mapActions.bind(null, namespace)
- }); };
- /**
- * Normalize the map
- * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
- * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
- * @param {Array|Object} map
- * @return {Object}
- */
- function normalizeMap (map) {
- if (!isValidMap(map)) {
- return []
- }
- return Array.isArray(map)
- ? map.map(function (key) { return ({ key: key, val: key }); })
- : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
- }
- /**
- * Validate whether given map is valid or not
- * @param {*} map
- * @return {Boolean}
- */
- function isValidMap (map) {
- return Array.isArray(map) || isObject(map)
- }
- /**
- * 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.
- * @param {Function} fn
- * @return {Function}
- */
- function normalizeNamespace (fn) {
- return function (namespace, map) {
- if (typeof namespace !== 'string') {
- map = namespace;
- namespace = '';
- } else if (namespace.charAt(namespace.length - 1) !== '/') {
- namespace += '/';
- }
- return fn(namespace, map)
- }
- }
- /**
- * Search a special module from store by namespace. if module not exist, print error message.
- * @param {Object} store
- * @param {String} helper
- * @param {String} namespace
- * @return {Object}
- */
- function getModuleByNamespace (store, helper, namespace) {
- var module = store._modulesNamespaceMap[namespace];
- if (( true) && !module) {
- console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
- }
- return module
- }
- // Credits: borrowed code from fcomb/redux-logger
- function createLogger (ref) {
- if ( ref === void 0 ) ref = {};
- var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
- var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
- var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
- var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
- var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
- var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
- var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
- var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
- var logger = ref.logger; if ( logger === void 0 ) logger = console;
- return function (store) {
- var prevState = deepCopy(store.state);
- if (typeof logger === 'undefined') {
- return
- }
- if (logMutations) {
- store.subscribe(function (mutation, state) {
- var nextState = deepCopy(state);
- if (filter(mutation, prevState, nextState)) {
- var formattedTime = getFormattedTime();
- var formattedMutation = mutationTransformer(mutation);
- var message = "mutation " + (mutation.type) + formattedTime;
- startMessage(logger, message, collapsed);
- logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
- logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
- logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
- endMessage(logger);
- }
- prevState = nextState;
- });
- }
- if (logActions) {
- store.subscribeAction(function (action, state) {
- if (actionFilter(action, state)) {
- var formattedTime = getFormattedTime();
- var formattedAction = actionTransformer(action);
- var message = "action " + (action.type) + formattedTime;
- startMessage(logger, message, collapsed);
- logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
- endMessage(logger);
- }
- });
- }
- }
- }
- function startMessage (logger, message, collapsed) {
- var startMessage = collapsed
- ? logger.groupCollapsed
- : logger.group;
- // render
- try {
- startMessage.call(logger, message);
- } catch (e) {
- logger.log(message);
- }
- }
- function endMessage (logger) {
- try {
- logger.groupEnd();
- } catch (e) {
- logger.log('—— log end ——');
- }
- }
- function getFormattedTime () {
- var time = new Date();
- return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
- }
- function repeat (str, times) {
- return (new Array(times + 1)).join(str)
- }
- function pad (num, maxLength) {
- return repeat('0', maxLength - num.toString().length) + num
- }
- var index_cjs = {
- Store: Store,
- install: install,
- version: '3.6.2',
- mapState: mapState,
- mapMutations: mapMutations,
- mapGetters: mapGetters,
- mapActions: mapActions,
- createNamespacedHelpers: createNamespacedHelpers,
- createLogger: createLogger
- };
- module.exports = index_cjs;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
- /***/ }),
- /***/ 86:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/collapse.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:56:30
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
- */
- var _default = {
- // collapse 组件
- collapse: {
- value: null,
- accordion: false,
- border: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 87:
- /*!********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/collapseItem.js ***!
- \********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:56:42
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
- */
- var _default = {
- // collapseItem 组件
- collapseItem: {
- title: '',
- value: '',
- label: '',
- disabled: false,
- isLink: true,
- clickable: true,
- border: true,
- align: 'left',
- name: '',
- icon: '',
- duration: 300
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 88:
- /*!********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/columnNotice.js ***!
- \********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:57:16
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
- */
- var _default = {
- // columnNotice 组件
- columnNotice: {
- text: '',
- icon: 'volume',
- mode: '',
- color: '#f9ae3d',
- bgColor: '#fdf6ec',
- fontSize: 14,
- speed: 80,
- step: false,
- duration: 1500,
- disableTouch: true
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 89:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/countDown.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:11:29
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
- */
- var _default = {
- // u-count-down 计时器组件
- countDown: {
- time: 0,
- format: 'HH:mm:ss',
- autoStart: true,
- millisecond: false
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 892:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-badge/props.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 是否显示圆点
- isDot: {
- type: Boolean,
- default: uni.$u.props.badge.isDot
- },
- // 显示的内容
- value: {
- type: [Number, String],
- default: uni.$u.props.badge.value
- },
- // 是否显示
- show: {
- type: Boolean,
- default: uni.$u.props.badge.show
- },
- // 最大值,超过最大值会显示 '{max}+'
- max: {
- type: [Number, String],
- default: uni.$u.props.badge.max
- },
- // 主题类型,error|warning|success|primary
- type: {
- type: String,
- default: uni.$u.props.badge.type
- },
- // 当数值为 0 时,是否展示 Badge
- showZero: {
- type: Boolean,
- default: uni.$u.props.badge.showZero
- },
- // 背景颜色,优先级比type高,如设置,type参数会失效
- bgColor: {
- type: [String, null],
- default: uni.$u.props.badge.bgColor
- },
- // 字体颜色
- color: {
- type: [String, null],
- default: uni.$u.props.badge.color
- },
- // 徽标形状,circle-四角均为圆角,horn-左下角为直角
- shape: {
- type: String,
- default: uni.$u.props.badge.shape
- },
- // 设置数字的显示方式,overflow|ellipsis|limit
- // overflow会根据max字段判断,超出显示`${max}+`
- // ellipsis会根据max判断,超出显示`${max}...`
- // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
- numberType: {
- type: String,
- default: uni.$u.props.badge.numberType
- },
- // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
- offset: {
- type: Array,
- default: uni.$u.props.badge.offset
- },
- // 是否反转背景和字体颜色
- inverted: {
- type: Boolean,
- default: uni.$u.props.badge.inverted
- },
- // 是否绝对定位
- absolute: {
- type: Boolean,
- default: uni.$u.props.badge.absolute
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 9:
- /*!*****************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _arrayLikeToArray(arr, len) {
- if (len == null || len > arr.length) len = arr.length;
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
- arr2[i] = arr[i];
- }
- return arr2;
- }
- module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /***/ 90:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/countTo.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:57:32
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
- */
- var _default = {
- // countTo 组件
- countTo: {
- startVal: 0,
- endVal: 0,
- duration: 2000,
- autoplay: true,
- decimals: 0,
- useEasing: true,
- decimal: '.',
- color: '#606266',
- fontSize: 22,
- bold: false,
- separator: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 900:
- /*!**********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-line-progress/props.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 激活部分的颜色
- activeColor: {
- type: String,
- default: uni.$u.props.lineProgress.activeColor
- },
- inactiveColor: {
- type: String,
- default: uni.$u.props.lineProgress.color
- },
- // 进度百分比,数值
- percentage: {
- type: [String, Number],
- default: uni.$u.props.lineProgress.inactiveColor
- },
- // 是否在进度条内部显示百分比的值
- showText: {
- type: Boolean,
- default: uni.$u.props.lineProgress.showText
- },
- // 进度条的高度,单位px
- height: {
- type: [String, Number],
- default: uni.$u.props.lineProgress.height
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 91:
- /*!**********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/datetimePicker.js ***!
- \**********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:57:48
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
- */
- var _default = {
- // datetimePicker 组件
- datetimePicker: {
- show: false,
- showToolbar: true,
- value: '',
- title: '',
- mode: 'datetime',
- maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
- minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
- minHour: 0,
- maxHour: 23,
- minMinute: 0,
- maxMinute: 59,
- filter: null,
- formatter: null,
- loading: false,
- itemHeight: 44,
- cancelText: '取消',
- confirmText: '确认',
- cancelColor: '#909193',
- confirmColor: '#3c9cff',
- visibleItemCount: 5,
- closeOnClickOverlay: false,
- defaultIndex: function defaultIndex() {
- return [];
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 915:
- /*!***********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-checkbox-group/props.js ***!
- \***********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 标识符
- name: {
- type: String,
- default: uni.$u.props.checkboxGroup.name
- },
- // 绑定的值
- value: {
- type: Array,
- default: uni.$u.props.checkboxGroup.value
- },
- // 形状,circle-圆形,square-方形
- shape: {
- type: String,
- default: uni.$u.props.checkboxGroup.shape
- },
- // 是否禁用全部checkbox
- disabled: {
- type: Boolean,
- default: uni.$u.props.checkboxGroup.disabled
- },
- // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
- activeColor: {
- type: String,
- default: uni.$u.props.checkboxGroup.activeColor
- },
- // 未选中的颜色
- inactiveColor: {
- type: String,
- default: uni.$u.props.checkboxGroup.inactiveColor
- },
- // 整个组件的尺寸,默认px
- size: {
- type: [String, Number],
- default: uni.$u.props.checkboxGroup.size
- },
- // 布局方式,row-横向,column-纵向
- placement: {
- type: String,
- default: uni.$u.props.checkboxGroup.placement
- },
- // label的字体大小,px单位
- labelSize: {
- type: [String, Number],
- default: uni.$u.props.checkboxGroup.labelSize
- },
- // label的字体颜色
- labelColor: {
- type: [String],
- default: uni.$u.props.checkboxGroup.labelColor
- },
- // 是否禁止点击文本操作
- labelDisabled: {
- type: Boolean,
- default: uni.$u.props.checkboxGroup.labelDisabled
- },
- // 图标颜色
- iconColor: {
- type: String,
- default: uni.$u.props.checkboxGroup.iconColor
- },
- // 图标的大小,单位px
- iconSize: {
- type: [String, Number],
- default: uni.$u.props.checkboxGroup.iconSize
- },
- // 勾选图标的对齐方式,left-左边,right-右边
- iconPlacement: {
- type: String,
- default: uni.$u.props.checkboxGroup.iconPlacement
- },
- // 竖向配列时,是否显示下划线
- borderBottom: {
- type: Boolean,
- default: uni.$u.props.checkboxGroup.borderBottom
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 92:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/divider.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 16:58:03
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
- */
- var _default = {
- // divider组件
- divider: {
- dashed: false,
- hairline: true,
- dot: false,
- textPosition: 'center',
- text: '',
- textSize: 14,
- textColor: '#909399',
- lineColor: '#dcdfe6'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 923:
- /*!*********************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-swipe-action/props.js ***!
- \*********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 是否自动关闭其他swipe按钮组
- autoClose: {
- type: Boolean,
- default: uni.$u.props.swipeAction.autoClose
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 929:
- /*!******************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/mixin/touch.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var MIN_DISTANCE = 10;
- function getDirection(x, y) {
- if (x > y && x > MIN_DISTANCE) {
- return 'horizontal';
- }
- if (y > x && y > MIN_DISTANCE) {
- return 'vertical';
- }
- return '';
- }
- var _default = {
- methods: {
- getTouchPoint: function getTouchPoint(e) {
- if (!e) {
- return {
- x: 0,
- y: 0
- };
- }
- if (e.touches && e.touches[0]) {
- return {
- x: e.touches[0].pageX,
- y: e.touches[0].pageY
- };
- }
- if (e.changedTouches && e.changedTouches[0]) {
- return {
- x: e.changedTouches[0].pageX,
- y: e.changedTouches[0].pageY
- };
- }
- return {
- x: e.clientX || 0,
- y: e.clientY || 0
- };
- },
- resetTouchStatus: function resetTouchStatus() {
- this.direction = '';
- this.deltaX = 0;
- this.deltaY = 0;
- this.offsetX = 0;
- this.offsetY = 0;
- },
- touchStart: function touchStart(event) {
- this.resetTouchStatus();
- var touch = this.getTouchPoint(event);
- this.startX = touch.x;
- this.startY = touch.y;
- },
- touchMove: function touchMove(event) {
- var touch = this.getTouchPoint(event);
- this.deltaX = touch.x - this.startX;
- this.deltaY = touch.y - this.startY;
- this.offsetX = Math.abs(this.deltaX);
- this.offsetY = Math.abs(this.deltaY);
- this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 93:
- /*!*************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/empty.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:03:27
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
- */
- var _default = {
- // empty组件
- empty: {
- icon: '',
- text: '',
- textColor: '#c0c4cc',
- textSize: 14,
- iconColor: '#c0c4cc',
- iconSize: 90,
- mode: 'data',
- width: 160,
- height: 160,
- show: true,
- marginTop: 0
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 930:
- /*!**************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-swipe-action-item/props.js ***!
- \**************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default2 = {
- props: {
- // 控制打开或者关闭
- show: {
- type: Boolean,
- default: uni.$u.props.swipeActionItem.show
- },
- // 标识符,如果是v-for,可用index索引值
- name: {
- type: [String, Number],
- default: uni.$u.props.swipeActionItem.name
- },
- // 是否禁用
- disabled: {
- type: Boolean,
- default: uni.$u.props.swipeActionItem.disabled
- },
- // 是否自动关闭其他swipe按钮组
- autoClose: {
- type: Boolean,
- default: uni.$u.props.swipeActionItem.autoClose
- },
- // 滑动距离阈值,只有大于此值,才被认为是要打开菜单
- threshold: {
- type: Number,
- default: uni.$u.props.swipeActionItem.threshold
- },
- // 右侧按钮内容
- options: {
- type: Array,
- default: function _default() {
- return uni.$u.props.swipeActionItem.rightOptions;
- }
- },
- // 动画过渡时间,单位ms
- duration: {
- type: [String, Number],
- default: uni.$u.props.swipeActionItem.duration
- }
- }
- };
- exports.default = _default2;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 931:
- /*!************************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-swipe-action-item/wxs.js ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- methods: {
- // 关闭时执行
- closeHandler: function closeHandler() {
- this.status = 'close';
- },
- setState: function setState(status) {
- this.status = status;
- },
- closeOther: function closeOther() {
- // 尝试关闭其他打开的单元格
- this.parent && this.parent.closeOther(this);
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 94:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/form.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:03:49
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
- */
- var _default = {
- // form 组件
- form: {
- model: function model() {
- return {};
- },
- rules: function rules() {
- return {};
- },
- errorType: 'message',
- borderBottom: true,
- labelPosition: 'left',
- labelWidth: 45,
- labelAlign: 'left',
- labelStyle: function labelStyle() {
- return {};
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 941:
- /*!*****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-checkbox/props.js ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // checkbox的名称
- name: {
- type: [String, Number, Boolean],
- default: uni.$u.props.checkbox.name
- },
- // 形状,square为方形,circle为圆型
- shape: {
- type: String,
- default: uni.$u.props.checkbox.shape
- },
- // 整体的大小
- size: {
- type: [String, Number],
- default: uni.$u.props.checkbox.size
- },
- // 是否默认选中
- checked: {
- type: Boolean,
- default: uni.$u.props.checkbox.checked
- },
- // 是否禁用
- disabled: {
- type: [String, Boolean],
- default: uni.$u.props.checkbox.disabled
- },
- // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
- activeColor: {
- type: String,
- default: uni.$u.props.checkbox.activeColor
- },
- // 未选中的颜色
- inactiveColor: {
- type: String,
- default: uni.$u.props.checkbox.inactiveColor
- },
- // 图标的大小,单位px
- iconSize: {
- type: [String, Number],
- default: uni.$u.props.checkbox.iconSize
- },
- // 图标颜色
- iconColor: {
- type: String,
- default: uni.$u.props.checkbox.iconColor
- },
- // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
- label: {
- type: [String, Number],
- default: uni.$u.props.checkbox.label
- },
- // label的字体大小,px单位
- labelSize: {
- type: [String, Number],
- default: uni.$u.props.checkbox.labelSize
- },
- // label的颜色
- labelColor: {
- type: String,
- default: uni.$u.props.checkbox.labelColor
- },
- // 是否禁止点击提示语选中复选框
- labelDisabled: {
- type: [String, Boolean],
- default: uni.$u.props.checkbox.labelDisabled
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 949:
- /*!*******************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-number-box/props.js ***!
- \*******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 步进器标识符,在change回调返回
- name: {
- type: [String, Number],
- default: uni.$u.props.numberBox.name
- },
- // 用于双向绑定的值,初始化时设置设为默认min值(最小值)
- value: {
- type: [String, Number],
- default: uni.$u.props.numberBox.value
- },
- // 最小值
- min: {
- type: [String, Number],
- default: uni.$u.props.numberBox.min
- },
- // 最大值
- max: {
- type: [String, Number],
- default: uni.$u.props.numberBox.max
- },
- // 加减的步长,可为小数
- step: {
- type: [String, Number],
- default: uni.$u.props.numberBox.step
- },
- // 是否只允许输入整数
- integer: {
- type: Boolean,
- default: uni.$u.props.numberBox.integer
- },
- // 是否禁用,包括输入框,加减按钮
- disabled: {
- type: Boolean,
- default: uni.$u.props.numberBox.disabled
- },
- // 是否禁用输入框
- disabledInput: {
- type: Boolean,
- default: uni.$u.props.numberBox.disabledInput
- },
- // 是否开启异步变更,开启后需要手动控制输入值
- asyncChange: {
- type: Boolean,
- default: uni.$u.props.numberBox.asyncChange
- },
- // 输入框宽度,单位为px
- inputWidth: {
- type: [String, Number],
- default: uni.$u.props.numberBox.inputWidth
- },
- // 是否显示减少按钮
- showMinus: {
- type: Boolean,
- default: uni.$u.props.numberBox.showMinus
- },
- // 是否显示增加按钮
- showPlus: {
- type: Boolean,
- default: uni.$u.props.numberBox.showPlus
- },
- // 显示的小数位数
- decimalLength: {
- type: [String, Number, null],
- default: uni.$u.props.numberBox.decimalLength
- },
- // 是否开启长按加减手势
- longPress: {
- type: Boolean,
- default: uni.$u.props.numberBox.longPress
- },
- // 输入框文字和加减按钮图标的颜色
- color: {
- type: String,
- default: uni.$u.props.numberBox.color
- },
- // 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致
- buttonSize: {
- type: [String, Number],
- default: uni.$u.props.numberBox.buttonSize
- },
- // 输入框和按钮的背景颜色
- bgColor: {
- type: String,
- default: uni.$u.props.numberBox.bgColor
- },
- // 指定光标于键盘的距离,避免键盘遮挡输入框,单位px
- cursorSpacing: {
- type: [String, Number],
- default: uni.$u.props.numberBox.cursorSpacing
- },
- // 是否禁用增加按钮
- disablePlus: {
- type: Boolean,
- default: uni.$u.props.numberBox.disablePlus
- },
- // 是否禁用减少按钮
- disableMinus: {
- type: Boolean,
- default: uni.$u.props.numberBox.disableMinus
- },
- // 加减按钮图标的样式
- iconStyle: {
- type: [Object, String],
- default: uni.$u.props.numberBox.iconStyle
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 95:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/formItem.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:04:32
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
- */
- var _default = {
- // formItem 组件
- formItem: {
- label: '',
- prop: '',
- borderBottom: '',
- labelPosition: '',
- labelWidth: '',
- rightIcon: '',
- leftIcon: '',
- required: false,
- leftIconStyle: ''
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 96:
- /*!***********************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/gap.js ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:05:25
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
- */
- var _default = {
- // gap组件
- gap: {
- bgColor: 'transparent',
- height: 20,
- marginTop: 0,
- marginBottom: 0,
- customStyle: {}
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 97:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/grid.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:05:57
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
- */
- var _default = {
- // grid组件
- grid: {
- col: 3,
- border: false,
- align: 'left'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 971:
- /*!**************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-parse/props.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- content: String,
- copyLink: {
- type: Boolean,
- default: uni.$u.props.parse.copyLink
- },
- domain: String,
- errorImg: {
- type: String,
- default: uni.$u.props.parse.errorImg
- },
- lazyLoad: {
- type: Boolean,
- default: uni.$u.props.parse.lazyLoad
- },
- loadingImg: {
- type: String,
- default: uni.$u.props.parse.loadingImg
- },
- pauseVideo: {
- type: Boolean,
- default: uni.$u.props.parse.pauseVideo
- },
- previewImg: {
- type: Boolean,
- default: uni.$u.props.parse.previewImg
- },
- scrollTable: Boolean,
- selectable: Boolean,
- setTitle: {
- type: Boolean,
- default: uni.$u.props.parse.setTitle
- },
- showImgMenu: {
- type: Boolean,
- default: uni.$u.props.parse.showImgMenu
- },
- tagStyle: Object,
- useAnchor: null
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 972:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-parse/parser.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni, wx) {
- /**
- * @fileoverview html 解析器
- */
- // 配置
- var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11);
- 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; }
- 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) { _defineProperty(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; }
- var config = {
- // 信任的标签(保持标签名不变)
- trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
- // 块级标签(转为 div,其他的非信任标签转为 span)
- blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
- // 要移除的标签
- ignoreTags: makeMap('area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr'),
- // 自闭合的标签
- voidTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
- // html 实体
- entities: {
- lt: '<',
- gt: '>',
- quot: '"',
- apos: "'",
- ensp: "\u2002",
- emsp: "\u2003",
- nbsp: '\xA0',
- semi: ';',
- ndash: '–',
- mdash: '—',
- middot: '·',
- lsquo: '‘',
- rsquo: '’',
- ldquo: '“',
- rdquo: '”',
- bull: '•',
- hellip: '…'
- },
- // 默认的标签样式
- tagStyle: {
- address: 'font-style:italic',
- big: 'display:inline;font-size:1.2em',
- caption: 'display:table-caption;text-align:center',
- center: 'text-align:center',
- cite: 'font-style:italic',
- dd: 'margin-left:40px',
- mark: 'background-color:yellow',
- pre: 'font-family:monospace;white-space:pre',
- s: 'text-decoration:line-through',
- small: 'display:inline;font-size:0.8em',
- u: 'text-decoration:underline'
- }
- };
- var _uni$getSystemInfoSyn = uni.getSystemInfoSync(),
- windowWidth = _uni$getSystemInfoSyn.windowWidth;
- var blankChar = makeMap(' ,\r,\n,\t,\f');
- var idIndex = 0;
- /**
- * @description 创建 map
- * @param {String} str 逗号分隔
- */
- function makeMap(str) {
- var map = Object.create(null);
- var list = str.split(',');
- for (var i = list.length; i--;) {
- map[list[i]] = true;
- }
- return map;
- }
- /**
- * @description 解码 html 实体
- * @param {String} str 要解码的字符串
- * @param {Boolean} amp 要不要解码 &
- * @returns {String} 解码后的字符串
- */
- function decodeEntity(str, amp) {
- var i = str.indexOf('&');
- while (i != -1) {
- var j = str.indexOf(';', i + 3);
- var code = void 0;
- if (j == -1) break;
- if (str[i + 1] == '#') {
- // { 形式的实体
- code = parseInt((str[i + 2] == 'x' ? '0' : '') + str.substring(i + 2, j));
- if (!isNaN(code)) str = str.substr(0, i) + String.fromCharCode(code) + str.substr(j + 1);
- } else {
- // 形式的实体
- code = str.substring(i + 1, j);
- if (config.entities[code] || code == 'amp' && amp) str = str.substr(0, i) + (config.entities[code] || '&') + str.substr(j + 1);
- }
- i = str.indexOf('&', i + 1);
- }
- return str;
- }
- /**
- * @description html 解析器
- * @param {Object} vm 组件实例
- */
- function parser(vm) {
- this.options = vm || {};
- this.tagStyle = Object.assign(config.tagStyle, this.options.tagStyle);
- this.imgList = vm.imgList || [];
- this.plugins = vm.plugins || [];
- this.attrs = Object.create(null);
- this.stack = [];
- this.nodes = [];
- }
- /**
- * @description 执行解析
- * @param {String} content 要解析的文本
- */
- parser.prototype.parse = function (content) {
- // 插件处理
- for (var i = this.plugins.length; i--;) {
- if (this.plugins[i].onUpdate) content = this.plugins[i].onUpdate(content, config) || content;
- }
- new lexer(this).parse(content); // 出栈未闭合的标签
- while (this.stack.length) {
- this.popNode();
- }
- return this.nodes;
- };
- /**
- * @description 将标签暴露出来(不被 rich-text 包含)
- */
- parser.prototype.expose = function () {
- for (var i = this.stack.length; i--;) {
- var item = this.stack[i];
- if (item.name == 'a' || item.c) return;
- item.c = 1;
- }
- };
- /**
- * @description 处理插件
- * @param {Object} node 要处理的标签
- * @returns {Boolean} 是否要移除此标签
- */
- parser.prototype.hook = function (node) {
- for (var i = this.plugins.length; i--;) {
- if (this.plugins[i].onParse && this.plugins[i].onParse(node, this) == false) return false;
- }
- return true;
- };
- /**
- * @description 将链接拼接上主域名
- * @param {String} url 需要拼接的链接
- * @returns {String} 拼接后的链接
- */
- parser.prototype.getUrl = function (url) {
- var domain = this.options.domain;
- if (url[0] == '/') {
- // // 开头的补充协议名
- if (url[1] == '/') url = "".concat(domain ? domain.split('://')[0] : 'http', ":").concat(url); // 否则补充整个域名
- else if (domain) url = domain + url;
- } else if (domain && !url.includes('data:') && !url.includes('://')) url = "".concat(domain, "/").concat(url);
- return url;
- };
- /**
- * @description 解析样式表
- * @param {Object} node 标签
- * @returns {Object}
- */
- parser.prototype.parseStyle = function (node) {
- var attrs = node.attrs;
- var list = (this.tagStyle[node.name] || '').split(';').concat((attrs.style || '').split(';'));
- var styleObj = {};
- var tmp = '';
- if (attrs.id) {
- // 暴露锚点
- if (this.options.useAnchor) this.expose();else if (node.name != 'img' && node.name != 'a' && node.name != 'video' && node.name != 'audio') attrs.id = void 0;
- } // 转换 width 和 height 属性
- if (attrs.width) {
- styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px');
- attrs.width = void 0;
- }
- if (attrs.height) {
- styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px');
- attrs.height = void 0;
- }
- for (var i = 0, len = list.length; i < len; i++) {
- var info = list[i].split(':');
- if (info.length < 2) continue;
- var key = info.shift().trim().toLowerCase();
- var value = info.join(':').trim(); // 兼容性的 css 不压缩
- if (value[0] == '-' && value.lastIndexOf('-') > 0 || value.includes('safe')) tmp += ';'.concat(key, ':').concat(value); // 重复的样式进行覆盖
- else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) {
- // 填充链接
- if (value.includes('url')) {
- var j = value.indexOf('(') + 1;
- if (j) {
- while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) {
- j++;
- }
- value = value.substr(0, j) + this.getUrl(value.substr(j));
- }
- } // 转换 rpx(rich-text 内部不支持 rpx)
- else if (value.includes('rpx')) {
- value = value.replace(/[0-9.]+\s*rpx/g, function ($) {
- return "".concat(parseFloat($) * windowWidth / 750, "px");
- });
- }
- styleObj[key] = value;
- }
- }
- node.attrs.style = tmp;
- return styleObj;
- };
- /**
- * @description 解析到标签名
- * @param {String} name 标签名
- * @private
- */
- parser.prototype.onTagName = function (name) {
- this.tagName = this.xml ? name : name.toLowerCase();
- if (this.tagName == 'svg') this.xml = true; // svg 标签内大小写敏感
- };
- /**
- * @description 解析到属性名
- * @param {String} name 属性名
- * @private
- */
- parser.prototype.onAttrName = function (name) {
- name = this.xml ? name : name.toLowerCase();
- if (name.substr(0, 5) == 'data-') {
- // data-src 自动转为 src
- if (name == 'data-src' && !this.attrs.src) this.attrName = 'src'; // a 和 img 标签保留 data- 的属性,可以在 imgtap 和 linktap 事件中使用
- else if (this.tagName == 'img' || this.tagName == 'a') this.attrName = name; // 剩余的移除以减小大小
- else this.attrName = void 0;
- } else {
- this.attrName = name;
- this.attrs[name] = 'T'; // boolean 型属性缺省设置
- }
- };
- /**
- * @description 解析到属性值
- * @param {String} val 属性值
- * @private
- */
- parser.prototype.onAttrVal = function (val) {
- var name = this.attrName || ''; // 部分属性进行实体解码
- if (name == 'style' || name == 'href') this.attrs[name] = decodeEntity(val, true); // 拼接主域名
- else if (name.includes('src')) this.attrs[name] = this.getUrl(decodeEntity(val, true));else if (name) this.attrs[name] = val;
- };
- /**
- * @description 解析到标签开始
- * @param {Boolean} selfClose 是否有自闭合标识 />
- * @private
- */
- parser.prototype.onOpenTag = function (selfClose) {
- // 拼装 node
- var node = Object.create(null);
- node.name = this.tagName;
- node.attrs = this.attrs;
- this.attrs = Object.create(null);
- var attrs = node.attrs;
- var parent = this.stack[this.stack.length - 1];
- var siblings = parent ? parent.children : this.nodes;
- var close = this.xml ? selfClose : config.voidTags[node.name]; // 转换 embed 标签
- if (node.name == 'embed') {
- var src = attrs.src || ''; // 按照后缀名和 type 将 embed 转为 video 或 audio
- if (src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8') || (attrs.type || '').includes('video')) node.name = 'video';else if (src.includes('.mp3') || src.includes('.wav') || src.includes('.aac') || src.includes('.m4a') || (attrs.type || '').includes('audio')) node.name = 'audio';
- if (attrs.autostart) attrs.autoplay = 'T';
- attrs.controls = 'T';
- }
- // 处理音视频
- if (node.name == 'video' || node.name == 'audio') {
- // 设置 id 以便获取 context
- if (node.name == 'video' && !attrs.id) attrs.id = "v".concat(idIndex++); // 没有设置 controls 也没有设置 autoplay 的自动设置 controls
- if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T'; // 用数组存储所有可用的 source
- node.src = [];
- if (attrs.src) {
- node.src.push(attrs.src);
- attrs.src = void 0;
- }
- this.expose();
- }
- // 处理自闭合标签
- if (close) {
- if (!this.hook(node) || config.ignoreTags[node.name]) {
- // 通过 base 标签设置主域名
- if (node.name == 'base' && !this.options.domain) this.options.domain = attrs.href;
- // 设置 source 标签(仅父节点为 video 或 audio 时有效)
- else if (node.name == 'source' && parent && (parent.name == 'video' || parent.name == 'audio') && attrs.src) parent.src.push(attrs.src);
- return;
- } // 解析 style
- var styleObj = this.parseStyle(node); // 处理图片
- if (node.name == 'img') {
- if (attrs.src) {
- // 标记 webp
- if (attrs.src.includes('webp')) node.webp = 'T'; // data url 图片如果没有设置 original-src 默认为不可预览的小图片
- if (attrs.src.includes('data:') && !attrs['original-src']) attrs.ignore = 'T';
- if (!attrs.ignore || node.webp || attrs.src.includes('cloud://')) {
- for (var i = this.stack.length; i--;) {
- var item = this.stack[i];
- if (item.name == 'a') {
- node.a = item.attrs;
- break;
- }
- var style = item.attrs.style || '';
- if (style.includes('flex:') && !style.includes('flex:0') && !style.includes('flex: 0') && (!styleObj.width || !styleObj.width.includes('%'))) {
- styleObj.width = '100% !important';
- styleObj.height = '';
- for (var j = i + 1; j < this.stack.length; j++) {
- this.stack[j].attrs.style = (this.stack[j].attrs.style || '').replace('inline-', '');
- }
- } else if (style.includes('flex') && styleObj.width == '100%') {
- for (var _j = i + 1; _j < this.stack.length; _j++) {
- var _style = this.stack[_j].attrs.style || '';
- if (!_style.includes(';width') && !_style.includes(' width') && _style.indexOf('width') != 0) {
- styleObj.width = '';
- break;
- }
- }
- } else if (style.includes('inline-block')) {
- if (styleObj.width && styleObj.width[styleObj.width.length - 1] == '%') {
- item.attrs.style += ";max-width:".concat(styleObj.width);
- styleObj.width = '';
- } else item.attrs.style += ';max-width:100%';
- }
- item.c = 1;
- }
- attrs.i = this.imgList.length.toString();
- var _src = attrs['original-src'] || attrs.src;
- if (this.imgList.includes(_src)) {
- // 如果有重复的链接则对域名进行随机大小写变换避免预览时错位
- var _i = _src.indexOf('://');
- if (_i != -1) {
- _i += 3;
- var newSrc = _src.substr(0, _i);
- for (; _i < _src.length; _i++) {
- if (_src[_i] == '/') break;
- newSrc += Math.random() > 0.5 ? _src[_i].toUpperCase() : _src[_i];
- }
- newSrc += _src.substr(_i);
- _src = newSrc;
- }
- }
- this.imgList.push(_src);
- }
- }
- if (styleObj.display == 'inline') styleObj.display = '';
- if (attrs.ignore) {
- styleObj['max-width'] = styleObj['max-width'] || '100%';
- attrs.style += ';-webkit-touch-callout:none';
- }
- // 设置的宽度超出屏幕,为避免变形,高度转为自动
- if (parseInt(styleObj.width) > windowWidth) styleObj.height = void 0; // 记录是否设置了宽高
- if (styleObj.width) {
- if (styleObj.width.includes('auto')) styleObj.width = '';else {
- node.w = 'T';
- if (styleObj.height && !styleObj.height.includes('auto')) node.h = 'T';
- }
- }
- } else if (node.name == 'svg') {
- siblings.push(node);
- this.stack.push(node);
- this.popNode();
- return;
- }
- for (var key in styleObj) {
- if (styleObj[key]) attrs.style += ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''));
- }
- attrs.style = attrs.style.substr(1) || void 0;
- } else {
- if (node.name == 'pre' || (attrs.style || '').includes('white-space') && attrs.style.includes('pre')) this.pre = node.pre = true;
- node.children = [];
- this.stack.push(node);
- } // 加入节点树
- siblings.push(node);
- };
- /**
- * @description 解析到标签结束
- * @param {String} name 标签名
- * @private
- */
- parser.prototype.onCloseTag = function (name) {
- // 依次出栈到匹配为止
- name = this.xml ? name : name.toLowerCase();
- var i;
- for (i = this.stack.length; i--;) {
- if (this.stack[i].name == name) break;
- }
- if (i != -1) {
- while (this.stack.length > i) {
- this.popNode();
- }
- } else if (name == 'p' || name == 'br') {
- var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
- siblings.push({
- name: name,
- attrs: {}
- });
- }
- };
- /**
- * @description 处理标签出栈
- * @private
- */
- parser.prototype.popNode = function () {
- var node = this.stack.pop();
- var attrs = node.attrs;
- var children = node.children;
- var parent = this.stack[this.stack.length - 1];
- var siblings = parent ? parent.children : this.nodes;
- if (!this.hook(node) || config.ignoreTags[node.name]) {
- // 获取标题
- if (node.name == 'title' && children.length && children[0].type == 'text' && this.options.setTitle) {
- uni.setNavigationBarTitle({
- title: children[0].text
- });
- }
- siblings.pop();
- return;
- }
- if (node.pre) {
- // 是否合并空白符标识
- node.pre = this.pre = void 0;
- for (var i = this.stack.length; i--;) {
- if (this.stack[i].pre) this.pre = true;
- }
- }
- var styleObj = {}; // 转换 svg
- if (node.name == 'svg') {
- var src = '';
- var _attrs = attrs,
- style = _attrs.style;
- attrs.style = '';
- attrs.xmlns = 'http://www.w3.org/2000/svg';
- (function traversal(node) {
- src += "<".concat(node.name);
- for (var item in node.attrs) {
- var val = node.attrs[item];
- if (val) {
- if (item == 'viewbox') item = 'viewBox';
- src += ' '.concat(item, '="').concat(val, '"');
- }
- }
- if (!node.children) src += '/>';else {
- src += '>';
- for (var _i2 = 0; _i2 < node.children.length; _i2++) {
- traversal(node.children[_i2]);
- }
- src += "</".concat(node.name, ">");
- }
- })(node);
- node.name = 'img';
- node.attrs = {
- src: "data:image/svg+xml;utf8,".concat(src.replace(/#/g, '%23')),
- style: style,
- ignore: 'T'
- };
- node.children = void 0;
- this.xml = false;
- return;
- }
- // 转换 align 属性
- if (attrs.align) {
- if (node.name == 'table') {
- if (attrs.align == 'center') styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto';else styleObj.float = attrs.align;
- } else styleObj['text-align'] = attrs.align;
- attrs.align = void 0;
- } // 转换 font 标签的属性
- if (node.name == 'font') {
- if (attrs.color) {
- styleObj.color = attrs.color;
- attrs.color = void 0;
- }
- if (attrs.face) {
- styleObj['font-family'] = attrs.face;
- attrs.face = void 0;
- }
- if (attrs.size) {
- var size = parseInt(attrs.size);
- if (!isNaN(size)) {
- if (size < 1) size = 1;else if (size > 7) size = 7;
- styleObj['font-size'] = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'][size - 1];
- }
- attrs.size = void 0;
- }
- }
- // 一些编辑器的自带 class
- if ((attrs.class || '').includes('align-center')) styleObj['text-align'] = 'center';
- Object.assign(styleObj, this.parseStyle(node));
- if (parseInt(styleObj.width) > windowWidth) {
- styleObj['max-width'] = '100%';
- styleObj['box-sizing'] = 'border-box';
- }
- if (config.blockTags[node.name]) node.name = 'div'; // 未知标签转为 span,避免无法显示
- else if (!config.trustTags[node.name] && !this.xml) node.name = 'span';
- if (node.name == 'a' || node.name == 'ad') this.expose();
- // 列表处理
- else if ((node.name == 'ul' || node.name == 'ol') && node.c) {
- var types = {
- a: 'lower-alpha',
- A: 'upper-alpha',
- i: 'lower-roman',
- I: 'upper-roman'
- };
- if (types[attrs.type]) {
- attrs.style += ";list-style-type:".concat(types[attrs.type]);
- attrs.type = void 0;
- }
- for (var _i4 = children.length; _i4--;) {
- if (children[_i4].name == 'li') children[_i4].c = 1;
- }
- } // 表格处理
- else if (node.name == 'table') {
- // cellpadding、cellspacing、border 这几个常用表格属性需要通过转换实现
- var padding = parseFloat(attrs.cellpadding);
- var spacing = parseFloat(attrs.cellspacing);
- var border = parseFloat(attrs.border);
- if (node.c) {
- // padding 和 spacing 默认 2
- if (isNaN(padding)) padding = 2;
- if (isNaN(spacing)) spacing = 2;
- }
- if (border) attrs.style += ";border:".concat(border, "px solid gray");
- if (node.flag && node.c) {
- // 有 colspan 或 rowspan 且含有链接的表格通过 grid 布局实现
- styleObj.display = 'grid';
- if (spacing) {
- styleObj['grid-gap'] = "".concat(spacing, "px");
- styleObj.padding = "".concat(spacing, "px");
- } // 无间隔的情况下避免边框重叠
- else if (border) attrs.style += ';border-left:0;border-top:0';
- var width = [];
- // 表格的列宽
- var trList = [];
- // tr 列表
- var cells = [];
- // 保存新的单元格
- var map = {}; // 被合并单元格占用的格子
- (function traversal(nodes) {
- for (var _i5 = 0; _i5 < nodes.length; _i5++) {
- if (nodes[_i5].name == 'tr') trList.push(nodes[_i5]);else traversal(nodes[_i5].children || []);
- }
- })(children);
- for (var row = 1; row <= trList.length; row++) {
- var col = 1;
- for (var j = 0; j < trList[row - 1].children.length; j++, col++) {
- var td = trList[row - 1].children[j];
- if (td.name == 'td' || td.name == 'th') {
- // 这个格子被上面的单元格占用,则列号++
- while (map["".concat(row, ".").concat(col)]) {
- col++;
- }
- var _style2 = td.attrs.style || '';
- var start = _style2.indexOf('width') ? _style2.indexOf(';width') : 0; // 提取出 td 的宽度
- if (start != -1) {
- var end = _style2.indexOf(';', start + 6);
- if (end == -1) end = _style2.length;
- if (!td.attrs.colspan) width[col] = _style2.substring(start ? start + 7 : 6, end);
- _style2 = _style2.substr(0, start) + _style2.substr(end);
- }
- _style2 += (border ? ';border:'.concat(border, 'px solid gray') + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ';padding:'.concat(padding, 'px') : ''); // 处理列合并
- if (td.attrs.colspan) {
- _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + parseInt(td.attrs.colspan));
- if (!td.attrs.rowspan) _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + 1);
- col += parseInt(td.attrs.colspan) - 1;
- } // 处理行合并
- if (td.attrs.rowspan) {
- _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + parseInt(td.attrs.rowspan));
- if (!td.attrs.colspan) _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + 1); // 记录下方单元格被占用
- for (var k = 1; k < td.attrs.rowspan; k++) {
- map["".concat(row + k, ".").concat(col)] = 1;
- }
- }
- if (_style2) td.attrs.style = _style2;
- cells.push(td);
- }
- }
- if (row == 1) {
- var temp = '';
- for (var _i6 = 1; _i6 < col; _i6++) {
- temp += "".concat(width[_i6] ? width[_i6] : 'auto', " ");
- }
- styleObj['grid-template-columns'] = temp;
- }
- }
- node.children = cells;
- } else {
- // 没有使用合并单元格的表格通过 table 布局实现
- if (node.c) styleObj.display = 'table';
- if (!isNaN(spacing)) styleObj['border-spacing'] = "".concat(spacing, "px");
- if (border || padding) {
- // 遍历
- (function traversal(nodes) {
- for (var _i7 = 0; _i7 < nodes.length; _i7++) {
- var _td = nodes[_i7];
- if (_td.name == 'th' || _td.name == 'td') {
- if (border) _td.attrs.style = 'border:'.concat(border, 'px solid gray;').concat(_td.attrs.style || '');
- if (padding) _td.attrs.style = 'padding:'.concat(padding, 'px;').concat(_td.attrs.style || '');
- } else if (_td.children) traversal(_td.children);
- }
- })(children);
- }
- } // 给表格添加一个单独的横向滚动层
- if (this.options.scrollTable && !(attrs.style || '').includes('inline')) {
- var table = _objectSpread({}, node);
- node.name = 'div';
- node.attrs = {
- style: 'overflow:auto'
- };
- node.children = [table];
- attrs = table.attrs;
- }
- } else if ((node.name == 'td' || node.name == 'th') && (attrs.colspan || attrs.rowspan)) {
- for (var _i8 = this.stack.length; _i8--;) {
- if (this.stack[_i8].name == 'table') {
- this.stack[_i8].flag = 1; // 指示含有合并单元格
- break;
- }
- }
- } // 转换 ruby
- else if (node.name == 'ruby') {
- node.name = 'span';
- for (var _i9 = 0; _i9 < children.length - 1; _i9++) {
- if (children[_i9].type == 'text' && children[_i9 + 1].name == 'rt') {
- children[_i9] = {
- name: 'div',
- attrs: {
- style: 'display:inline-block'
- },
- children: [{
- name: 'div',
- attrs: {
- style: 'font-size:50%;text-align:start'
- },
- children: children[_i9 + 1].children
- }, children[_i9]]
- };
- children.splice(_i9 + 1, 1);
- }
- }
- } else if (node.c) {
- node.c = 2;
- for (var _i10 = node.children.length; _i10--;) {
- if (!node.children[_i10].c || node.children[_i10].name == 'table') node.c = 1;
- }
- }
- if ((styleObj.display || '').includes('flex') && !node.c) {
- for (var _i11 = children.length; _i11--;) {
- var _item = children[_i11];
- if (_item.f) {
- _item.attrs.style = (_item.attrs.style || '') + _item.f;
- _item.f = void 0;
- }
- }
- } // flex 布局时部分样式需要提取到 rich-text 外层
- var flex = parent && (parent.attrs.style || '').includes('flex')
- // 检查基础库版本 virtualHost 是否可用
- && !(node.c && wx.getNFCAdapter);
- if (flex) node.f = ';max-width:100%';
- for (var key in styleObj) {
- if (styleObj[key]) {
- var val = ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''));
- if (flex && (key.includes('flex') && key != 'flex-direction' || key == 'align-self' || styleObj[key][0] == '-' || key == 'width' && val.includes('%'))) {
- node.f += val;
- if (key == 'width') attrs.style += ';width:100%';
- } else {
- attrs.style += val;
- }
- }
- }
- attrs.style = attrs.style.substr(1) || void 0;
- };
- /**
- * @description 解析到文本
- * @param {String} text 文本内容
- */
- parser.prototype.onText = function (text) {
- if (!this.pre) {
- // 合并空白符
- var trim = '';
- var flag;
- for (var i = 0, len = text.length; i < len; i++) {
- if (!blankChar[text[i]]) trim += text[i];else {
- if (trim[trim.length - 1] != ' ') trim += ' ';
- if (text[i] == '\n' && !flag) flag = true;
- }
- } // 去除含有换行符的空串
- if (trim == ' ' && flag) return;
- text = trim;
- }
- var node = Object.create(null);
- node.type = 'text';
- node.text = decodeEntity(text);
- if (this.hook(node)) {
- var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
- siblings.push(node);
- }
- };
- /**
- * @description html 词法分析器
- * @param {Object} handler 高层处理器
- */
- function lexer(handler) {
- this.handler = handler;
- }
- /**
- * @description 执行解析
- * @param {String} content 要解析的文本
- */
- lexer.prototype.parse = function (content) {
- this.content = content || '';
- this.i = 0; // 标记解析位置
- this.start = 0; // 标记一个单词的开始位置
- this.state = this.text; // 当前状态
- for (var len = this.content.length; this.i != -1 && this.i < len;) {
- this.state();
- }
- };
- /**
- * @description 检查标签是否闭合
- * @param {String} method 如果闭合要进行的操作
- * @returns {Boolean} 是否闭合
- * @private
- */
- lexer.prototype.checkClose = function (method) {
- var selfClose = this.content[this.i] == '/';
- if (this.content[this.i] == '>' || selfClose && this.content[this.i + 1] == '>') {
- if (method) this.handler[method](this.content.substring(this.start, this.i));
- this.i += selfClose ? 2 : 1;
- this.start = this.i;
- this.handler.onOpenTag(selfClose);
- if (this.handler.tagName == 'script') {
- this.i = this.content.indexOf('</', this.i);
- if (this.i != -1) {
- this.i += 2;
- this.start = this.i;
- }
- this.state = this.endTag;
- } else this.state = this.text;
- return true;
- }
- return false;
- };
- /**
- * @description 文本状态
- * @private
- */
- lexer.prototype.text = function () {
- this.i = this.content.indexOf('<', this.i); // 查找最近的标签
- if (this.i == -1) {
- // 没有标签了
- if (this.start < this.content.length) this.handler.onText(this.content.substring(this.start, this.content.length));
- return;
- }
- var c = this.content[this.i + 1];
- if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
- // 标签开头
- if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i));
- this.start = ++this.i;
- this.state = this.tagName;
- } else if (c == '/' || c == '!' || c == '?') {
- if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i));
- var next = this.content[this.i + 2];
- if (c == '/' && (next >= 'a' && next <= 'z' || next >= 'A' && next <= 'Z')) {
- // 标签结尾
- this.i += 2;
- this.start = this.i;
- return this.state = this.endTag;
- } // 处理注释
- var end = '-->';
- if (c != '!' || this.content[this.i + 2] != '-' || this.content[this.i + 3] != '-') end = '>';
- this.i = this.content.indexOf(end, this.i);
- if (this.i != -1) {
- this.i += end.length;
- this.start = this.i;
- }
- } else this.i++;
- };
- /**
- * @description 标签名状态
- * @private
- */
- lexer.prototype.tagName = function () {
- if (blankChar[this.content[this.i]]) {
- // 解析到标签名
- this.handler.onTagName(this.content.substring(this.start, this.i));
- while (blankChar[this.content[++this.i]]) {}
- if (this.i < this.content.length && !this.checkClose()) {
- this.start = this.i;
- this.state = this.attrName;
- }
- } else if (!this.checkClose('onTagName')) this.i++;
- };
- /**
- * @description 属性名状态
- * @private
- */
- lexer.prototype.attrName = function () {
- var c = this.content[this.i];
- if (blankChar[c] || c == '=') {
- // 解析到属性名
- this.handler.onAttrName(this.content.substring(this.start, this.i));
- var needVal = c == '=';
- var len = this.content.length;
- while (++this.i < len) {
- c = this.content[this.i];
- if (!blankChar[c]) {
- if (this.checkClose()) return;
- if (needVal) {
- // 等号后遇到第一个非空字符
- this.start = this.i;
- return this.state = this.attrVal;
- }
- if (this.content[this.i] == '=') needVal = true;else {
- this.start = this.i;
- return this.state = this.attrName;
- }
- }
- }
- } else if (!this.checkClose('onAttrName')) this.i++;
- };
- /**
- * @description 属性值状态
- * @private
- */
- lexer.prototype.attrVal = function () {
- var c = this.content[this.i];
- var len = this.content.length; // 有冒号的属性
- if (c == '"' || c == "'") {
- this.start = ++this.i;
- this.i = this.content.indexOf(c, this.i);
- if (this.i == -1) return;
- this.handler.onAttrVal(this.content.substring(this.start, this.i));
- } // 没有冒号的属性
- else {
- for (; this.i < len; this.i++) {
- if (blankChar[this.content[this.i]]) {
- this.handler.onAttrVal(this.content.substring(this.start, this.i));
- break;
- } else if (this.checkClose('onAttrVal')) return;
- }
- }
- while (blankChar[this.content[++this.i]]) {}
- if (this.i < len && !this.checkClose()) {
- this.start = this.i;
- this.state = this.attrName;
- }
- };
- /**
- * @description 结束标签状态
- * @returns {String} 结束的标签名
- * @private
- */
- lexer.prototype.endTag = function () {
- var c = this.content[this.i];
- if (blankChar[c] || c == '>' || c == '/') {
- this.handler.onCloseTag(this.content.substring(this.start, this.i));
- if (c != '>') {
- this.i = this.content.indexOf('>', this.i);
- if (this.i == -1) return;
- }
- this.start = ++this.i;
- this.state = this.text;
- } else this.i++;
- };
- module.exports = parser;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
- /***/ }),
- /***/ 98:
- /*!****************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/gridItem.js ***!
- \****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 17:06:13
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
- */
- var _default = {
- // grid-item组件
- gridItem: {
- name: null,
- bgColor: 'transparent'
- }
- };
- exports.default = _default;
- /***/ }),
- /***/ 980:
- /*!***************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/components/u-picker/props.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- props: {
- // 是否展示picker弹窗
- show: {
- type: Boolean,
- default: uni.$u.props.picker.show
- },
- // 是否展示顶部的操作栏
- showToolbar: {
- type: Boolean,
- default: uni.$u.props.picker.showToolbar
- },
- // 顶部标题
- title: {
- type: String,
- default: uni.$u.props.picker.title
- },
- // 对象数组,设置每一列的数据
- columns: {
- type: Array,
- default: uni.$u.props.picker.columns
- },
- // 是否显示加载中状态
- loading: {
- type: Boolean,
- default: uni.$u.props.picker.loading
- },
- // 各列中,单个选项的高度
- itemHeight: {
- type: [String, Number],
- default: uni.$u.props.picker.itemHeight
- },
- // 取消按钮的文字
- cancelText: {
- type: String,
- default: uni.$u.props.picker.cancelText
- },
- // 确认按钮的文字
- confirmText: {
- type: String,
- default: uni.$u.props.picker.confirmText
- },
- // 取消按钮的颜色
- cancelColor: {
- type: String,
- default: uni.$u.props.picker.cancelColor
- },
- // 确认按钮的颜色
- confirmColor: {
- type: String,
- default: uni.$u.props.picker.confirmColor
- },
- // 每列中可见选项的数量
- visibleItemCount: {
- type: [String, Number],
- default: uni.$u.props.picker.visibleItemCount
- },
- // 选项对象中,需要展示的属性键名
- keyName: {
- type: String,
- default: uni.$u.props.picker.keyName
- },
- // 是否允许点击遮罩关闭选择器
- closeOnClickOverlay: {
- type: Boolean,
- default: uni.$u.props.picker.closeOnClickOverlay
- },
- // 各列的默认索引
- defaultIndex: {
- type: Array,
- default: uni.$u.props.picker.defaultIndex
- },
- // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
- immediateChange: {
- type: Boolean,
- default: uni.$u.props.picker.immediateChange
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
- /***/ }),
- /***/ 99:
- /*!************************************************************************!*\
- !*** D:/project/crossBorder/wx-qhb/uview-ui/libs/config/props/icon.js ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
- /*
- * @Author : LQ
- * @Description :
- * @version : 1.0
- * @Date : 2021-08-20 16:44:21
- * @LastAuthor : LQ
- * @lastTime : 2021-08-20 18:00:14
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
- */
- var color = _config.default.color;
- var _default = {
- // icon组件
- icon: {
- name: '',
- color: color['u-content-color'],
- size: '16px',
- bold: false,
- index: '',
- hoverClass: '',
- customPrefix: 'uicon',
- label: '',
- labelPos: 'right',
- labelSize: '15px',
- labelColor: color['u-content-color'],
- space: '3px',
- imgMode: '',
- width: '',
- height: '',
- top: 0,
- stop: false
- }
- };
- exports.default = _default;
- /***/ })
- }]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|